You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@drill.apache.org by ag...@apache.org on 2020/04/16 10:18:02 UTC
[drill] branch master updated: DRILL-7693: Updated protobuf version
to 3.11.1
This is an automated email from the ASF dual-hosted git repository.
agozhiy pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/drill.git
The following commit(s) were added to refs/heads/master by this push:
new 7e6fc81 DRILL-7693: Updated protobuf version to 3.11.1
7e6fc81 is described below
commit 7e6fc81ef414cdeca8120c20e12fcce21893f7bf
Author: Anton Gozhiy <an...@gmail.com>
AuthorDate: Thu Apr 9 14:04:10 2020 +0300
DRILL-7693: Updated protobuf version to 3.11.1
---
.github/workflows/ci.yml | 10 +-
.../apache/drill/common/util/ProtobufPatcher.java | 35 +-
contrib/native/client/readme.linux | 8 +-
contrib/native/client/readme.macos | 2 +-
.../client/src/include/drill/protobuf/Types.pb.h | 498 +-
.../native/client/src/protobuf/BitControl.pb.cc | 3875 ++---
contrib/native/client/src/protobuf/BitControl.pb.h | 3181 ++--
contrib/native/client/src/protobuf/BitData.pb.cc | 1911 +--
contrib/native/client/src/protobuf/BitData.pb.h | 1548 +-
.../native/client/src/protobuf/Coordination.pb.cc | 1405 +-
.../native/client/src/protobuf/Coordination.pb.h | 1283 +-
.../client/src/protobuf/ExecutionProtos.pb.cc | 704 +-
.../client/src/protobuf/ExecutionProtos.pb.h | 557 +-
.../native/client/src/protobuf/GeneralRPC.pb.cc | 943 +-
contrib/native/client/src/protobuf/GeneralRPC.pb.h | 799 +-
contrib/native/client/src/protobuf/SchemaDef.pb.cc | 101 +-
contrib/native/client/src/protobuf/SchemaDef.pb.h | 86 +-
contrib/native/client/src/protobuf/Types.pb.cc | 627 +-
contrib/native/client/src/protobuf/User.pb.cc | 15971 ++++++++-----------
contrib/native/client/src/protobuf/User.pb.h | 14597 ++++++++++-------
.../native/client/src/protobuf/UserBitShared.pb.cc | 9875 +++++-------
.../native/client/src/protobuf/UserBitShared.pb.h | 8888 ++++++-----
exec/jdbc-all/pom.xml | 2 +-
pom.xml | 2 +-
protocol/readme.txt | 21 +-
.../org/apache/drill/common/types/TypeProtos.java | 238 +-
.../org/apache/drill/exec/proto/BitControl.java | 1481 +-
.../java/org/apache/drill/exec/proto/BitData.java | 839 +-
.../drill/exec/proto/CoordinationProtos.java | 544 +-
.../org/apache/drill/exec/proto/ExecProtos.java | 222 +-
.../apache/drill/exec/proto/GeneralRPCProtos.java | 285 +-
.../apache/drill/exec/proto/SchemaDefProtos.java | 18 +-
.../org/apache/drill/exec/proto/UserBitShared.java | 3626 +++--
.../org/apache/drill/exec/proto/UserProtos.java | 6111 ++++---
34 files changed, 42059 insertions(+), 38234 deletions(-)
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 67fe40e..c6dbe24 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -82,16 +82,16 @@ jobs:
run: |
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*; \
+ if [ -f $HOME/protobuf/protobuf_3.11.1* ]; then \
+ sudo dpkg -i $HOME/protobuf/protobuf_3.11.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 && \
+ wget https://github.com/protocolbuffers/protobuf/releases/download/v3.11.1/protobuf-java-3.11.1.zip && \
+ unzip protobuf-java-3.11.1.zip && pushd protobuf-3.11.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; \
+ mv protobuf_3.11.1* $HOME/protobuf/ && popd; \
fi && \
sudo ldconfig && popd; \
# Builds Drill project, performs license checkstyle goal and regenerates java and C++ protobuf files
diff --git a/common/src/main/java/org/apache/drill/common/util/ProtobufPatcher.java b/common/src/main/java/org/apache/drill/common/util/ProtobufPatcher.java
index f8b6c51..4312abc 100644
--- a/common/src/main/java/org/apache/drill/common/util/ProtobufPatcher.java
+++ b/common/src/main/java/org/apache/drill/common/util/ProtobufPatcher.java
@@ -30,9 +30,12 @@ import javassist.scopedpool.ScopedClassPoolRepositoryImpl;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
+import java.text.MessageFormat;
+
public class ProtobufPatcher {
private static final Logger logger = LoggerFactory.getLogger(ProtobufPatcher.class);
+ private static final String protobufPackage = "com.google.protobuf.";
private static boolean patchingAttempted = false;
@@ -57,15 +60,15 @@ public class ProtobufPatcher {
private static void patchByteString() {
try {
ClassPool classPool = getClassPool();
- CtClass byteString = classPool.get("com.google.protobuf.ByteString");
+ CtClass byteString = classPool.get(protobufPackage + "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");
+ CtClass googleLiteralByteString = classPool.get(protobufPackage + "ByteString$LiteralByteString");
removePrivate(googleLiteralByteString);
- CtClass googleBoundedByteString = classPool.get("com.google.protobuf.ByteString$BoundedByteString");
+ CtClass googleBoundedByteString = classPool.get(protobufPackage + "ByteString$BoundedByteString");
removePrivate(googleBoundedByteString);
removeFinal(googleBoundedByteString);
for (CtMethod ctMethod : googleLiteralByteString.getDeclaredMethods()) {
@@ -76,10 +79,10 @@ public class ProtobufPatcher {
googleBoundedByteString.toClass();
// Adding the classes back to the old path.
- CtClass literalByteString = classPool.makeClass("com.google.protobuf.LiteralByteString");
+ CtClass literalByteString = classPool.makeClass(protobufPackage + "LiteralByteString");
literalByteString.setSuperclass(googleLiteralByteString);
literalByteString.toClass();
- CtClass boundedByteString = classPool.makeClass("com.google.protobuf.BoundedByteString");
+ CtClass boundedByteString = classPool.makeClass(protobufPackage + "BoundedByteString");
boundedByteString.setSuperclass(googleBoundedByteString);
boundedByteString.toClass();
} catch (Exception e) {
@@ -95,7 +98,7 @@ public class ProtobufPatcher {
private static void patchGeneratedMessageLite() {
try {
ClassPool classPool = getClassPool();
- CtClass generatedMessageLite = classPool.get("com.google.protobuf.GeneratedMessageLite");
+ CtClass generatedMessageLite = classPool.get(protobufPackage + "GeneratedMessageLite");
removeFinal(generatedMessageLite.getDeclaredMethod("getParserForType"));
removeFinal(generatedMessageLite.getDeclaredMethod("isInitialized"));
@@ -104,22 +107,28 @@ public class ProtobufPatcher {
generatedMessageLite.addMethod(CtNewMethod.make("protected void makeExtensionsImmutable() { }", generatedMessageLite));
// A constructor with this signature was removed. Adding it back.
- String className = "com.google.protobuf.GeneratedMessageLite.Builder";
+ String className = protobufPackage + "GeneratedMessageLite.Builder";
generatedMessageLite.addConstructor(CtNewConstructor.make("protected GeneratedMessageLite(" + className + " 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(protobufPackage + "GeneratedMessageLite$MethodToInvoke"),
classPool.get("java.lang.Object"),
classPool.get("java.lang.Object")});
- className = "com.google.protobuf.GeneratedMessageLite.MethodToInvoke";
- addImplementation(dynamicMethod, "if ($1.equals(" + className + ".GET_DEFAULT_INSTANCE)) {" +
+ className = protobufPackage + "GeneratedMessageLite.MethodToInvoke";
+ String dynamicMethodBody = MessageFormat.format("if ($1.equals({0}.GET_DEFAULT_INSTANCE)) '{'" +
" return this;" +
- "} else {" +
+ "'}' else if ($1.equals({0}.BUILD_MESSAGE_INFO)) '{' " +
+ " {1}StructuralMessageInfo.Builder builder = {1}StructuralMessageInfo.newBuilder();" +
+ " builder.withSyntax({1}ProtoSyntax.PROTO2);" +
+ " builder.withDefaultInstance(this);" +
+ " return builder.build();" +
+ "'}' else '{'" +
" return null;" +
- "}");
+ "'}'", className, protobufPackage);
+ addImplementation(dynamicMethod, dynamicMethodBody);
generatedMessageLite.toClass();
} catch (Exception e) {
logger.warn("Unable to patch Protobuf.", e);
@@ -135,7 +144,7 @@ public class ProtobufPatcher {
private static void patchGeneratedMessageLiteBuilder() {
try {
ClassPool classPool = getClassPool();
- CtClass builder = classPool.get("com.google.protobuf.GeneratedMessageLite$Builder");
+ CtClass builder = classPool.get(protobufPackage + "GeneratedMessageLite$Builder");
removeFinal(builder.getDeclaredMethod("isInitialized"));
removeFinal(builder.getDeclaredMethod("clear"));
builder.addConstructor(CtNewConstructor.defaultConstructor(builder));
diff --git a/contrib/native/client/readme.linux b/contrib/native/client/readme.linux
index 1ca2846..63babfb 100644
--- a/contrib/native/client/readme.linux
+++ b/contrib/native/client/readme.linux
@@ -27,12 +27,12 @@ Install Prerequisites
1) CMAKE 3
$> yum install cmake3
-2.1) Download protobuf 3.6 from :
- https://github.com/protocolbuffers/protobuf/releases/download/v3.6.1/protobuf-java-3.6.1.zip
+2.1) Download protobuf 3.11 from :
+ https://github.com/protocolbuffers/protobuf/releases/download/v3.11.1/protobuf-java-3.11.1.zip
2.2) Install Protobufs
- $> unzip protobuf-java-3.6.1.zip
- $> cd protobuf-3.6.1
+ $> unzip protobuf-java-3.11.1.zip
+ $> cd protobuf-3.11.1
$> ./configure
$> sudo make
$> sudo make install
diff --git a/contrib/native/client/readme.macos b/contrib/native/client/readme.macos
index a3edd69..6d55e7b 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 3.6.1 (or higher)
+2.1) Install protobuf 3.11.1 (or higher)
$> brew install protobuf
2.2) Install zookeeper
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 0ccf40b..a4f30cd 100644
--- a/contrib/native/client/src/include/drill/protobuf/Types.pb.h
+++ b/contrib/native/client/src/include/drill/protobuf/Types.pb.h
@@ -1,24 +1,25 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: Types.proto
-#ifndef PROTOBUF_INCLUDED_Types_2eproto
-#define PROTOBUF_INCLUDED_Types_2eproto
+#ifndef GOOGLE_PROTOBUF_INCLUDED_Types_2eproto
+#define GOOGLE_PROTOBUF_INCLUDED_Types_2eproto
+#include <limits>
#include <string>
-#include <google/protobuf/stubs/common.h>
-
-#if GOOGLE_PROTOBUF_VERSION < 3006001
+#include <google/protobuf/port_def.inc>
+#if PROTOBUF_VERSION < 3011000
#error This file was generated by a newer version of protoc which is
-#error incompatible with your Protocol Buffer headers. Please update
+#error incompatible with your Protocol Buffer headers. Please update
#error your headers.
#endif
-#if 3006001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
+#if 3011001 < 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 incompatible with your Protocol Buffer headers. Please
#error regenerate this file with a newer version of protoc.
#endif
+#include <google/protobuf/port_undef.inc>
#include <google/protobuf/io/coded_stream.h>
#include <google/protobuf/arena.h>
#include <google/protobuf/arenastring.h>
@@ -26,39 +27,45 @@
#include <google/protobuf/generated_message_util.h>
#include <google/protobuf/inlined_string_field.h>
#include <google/protobuf/metadata.h>
+#include <google/protobuf/generated_message_reflection.h>
#include <google/protobuf/message.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
+#include <google/protobuf/port_def.inc>
+#define PROTOBUF_INTERNAL_EXPORT_Types_2eproto
+PROTOBUF_NAMESPACE_OPEN
+namespace internal {
+class AnyMetadata;
+} // namespace internal
+PROTOBUF_NAMESPACE_CLOSE
-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[];
+struct TableStruct_Types_2eproto {
+ static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
+ PROTOBUF_SECTION_VARIABLE(protodesc_cold);
+ static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[]
+ PROTOBUF_SECTION_VARIABLE(protodesc_cold);
+ static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1]
+ PROTOBUF_SECTION_VARIABLE(protodesc_cold);
+ static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
+ static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
+ static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[];
};
-void AddDescriptors();
-} // namespace protobuf_Types_2eproto
+extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_Types_2eproto;
namespace common {
class MajorType;
class MajorTypeDefaultTypeInternal;
extern MajorTypeDefaultTypeInternal _MajorType_default_instance_;
} // namespace common
-namespace google {
-namespace protobuf {
+PROTOBUF_NAMESPACE_OPEN
template<> ::common::MajorType* Arena::CreateMaybeMessage<::common::MajorType>(Arena*);
-} // namespace protobuf
-} // namespace google
+PROTOBUF_NAMESPACE_CLOSE
namespace common {
-enum MinorType {
+enum MinorType : int {
LATE = 0,
MAP = 1,
TINYINT = 3,
@@ -101,59 +108,66 @@ enum MinorType {
DICT = 44
};
bool MinorType_IsValid(int value);
-const MinorType MinorType_MIN = LATE;
-const MinorType MinorType_MAX = DICT;
-const int MinorType_ARRAYSIZE = MinorType_MAX + 1;
-
-const ::google::protobuf::EnumDescriptor* MinorType_descriptor();
-inline const ::std::string& MinorType_Name(MinorType value) {
- return ::google::protobuf::internal::NameOfEnum(
- MinorType_descriptor(), value);
+constexpr MinorType MinorType_MIN = LATE;
+constexpr MinorType MinorType_MAX = DICT;
+constexpr int MinorType_ARRAYSIZE = MinorType_MAX + 1;
+
+const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* MinorType_descriptor();
+template<typename T>
+inline const std::string& MinorType_Name(T enum_t_value) {
+ static_assert(::std::is_same<T, MinorType>::value ||
+ ::std::is_integral<T>::value,
+ "Incorrect type passed to function MinorType_Name.");
+ return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
+ MinorType_descriptor(), enum_t_value);
}
inline bool MinorType_Parse(
- const ::std::string& name, MinorType* value) {
- return ::google::protobuf::internal::ParseNamedEnum<MinorType>(
+ const std::string& name, MinorType* value) {
+ return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<MinorType>(
MinorType_descriptor(), name, value);
}
-enum DataMode {
+enum DataMode : int {
DM_OPTIONAL = 0,
DM_REQUIRED = 1,
DM_REPEATED = 2
};
bool DataMode_IsValid(int value);
-const DataMode DataMode_MIN = DM_OPTIONAL;
-const DataMode DataMode_MAX = DM_REPEATED;
-const int DataMode_ARRAYSIZE = DataMode_MAX + 1;
-
-const ::google::protobuf::EnumDescriptor* DataMode_descriptor();
-inline const ::std::string& DataMode_Name(DataMode value) {
- return ::google::protobuf::internal::NameOfEnum(
- DataMode_descriptor(), value);
+constexpr DataMode DataMode_MIN = DM_OPTIONAL;
+constexpr DataMode DataMode_MAX = DM_REPEATED;
+constexpr int DataMode_ARRAYSIZE = DataMode_MAX + 1;
+
+const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* DataMode_descriptor();
+template<typename T>
+inline const std::string& DataMode_Name(T enum_t_value) {
+ static_assert(::std::is_same<T, DataMode>::value ||
+ ::std::is_integral<T>::value,
+ "Incorrect type passed to function DataMode_Name.");
+ return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
+ DataMode_descriptor(), enum_t_value);
}
inline bool DataMode_Parse(
- const ::std::string& name, DataMode* value) {
- return ::google::protobuf::internal::ParseNamedEnum<DataMode>(
+ const std::string& name, DataMode* value) {
+ return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<DataMode>(
DataMode_descriptor(), name, value);
}
// ===================================================================
-class MajorType : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:common.MajorType) */ {
+class MajorType :
+ public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:common.MajorType) */ {
public:
MajorType();
virtual ~MajorType();
MajorType(const MajorType& from);
-
- inline MajorType& operator=(const MajorType& from) {
- CopyFrom(from);
- return *this;
- }
- #if LANG_CXX11
MajorType(MajorType&& from) noexcept
: MajorType() {
*this = ::std::move(from);
}
+ inline MajorType& operator=(const MajorType& from) {
+ CopyFrom(from);
+ return *this;
+ }
inline MajorType& operator=(MajorType&& from) noexcept {
if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
if (this != &from) InternalSwap(&from);
@@ -162,15 +176,23 @@ class MajorType : public ::google::protobuf::Message /* @@protoc_insertion_point
}
return *this;
}
- #endif
- inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
+
+ inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
return _internal_metadata_.unknown_fields();
}
- inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
+ inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
return _internal_metadata_.mutable_unknown_fields();
}
- static const ::google::protobuf::Descriptor* descriptor();
+ static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
+ return GetDescriptor();
+ }
+ static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
+ return GetMetadataStatic().descriptor;
+ }
+ static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
+ return GetMetadataStatic().reflection;
+ }
static const MajorType& default_instance();
static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
@@ -181,134 +203,186 @@ class MajorType : public ::google::protobuf::Message /* @@protoc_insertion_point
static constexpr int kIndexInFileMessages =
0;
- void Swap(MajorType* other);
friend void swap(MajorType& a, MajorType& b) {
a.Swap(&b);
}
+ inline void Swap(MajorType* other) {
+ if (other == this) return;
+ InternalSwap(other);
+ }
// implements Message ----------------------------------------------
inline MajorType* New() const final {
- return CreateMaybeMessage<MajorType>(NULL);
+ return CreateMaybeMessage<MajorType>(nullptr);
}
- MajorType* New(::google::protobuf::Arena* arena) const final {
+ MajorType* New(::PROTOBUF_NAMESPACE_ID::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 ::PROTOBUF_NAMESPACE_ID::Message& from) final;
+ void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
void CopyFrom(const MajorType& from);
void MergeFrom(const MajorType& from);
- void Clear() final;
+ PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
bool IsInitialized() const final;
size_t ByteSizeLong() const final;
- bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) final;
- void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const final;
- ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const final;
+ const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
+ ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
+ ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
int GetCachedSize() const final { return _cached_size_.Get(); }
private:
- void SharedCtor();
- void SharedDtor();
+ inline void SharedCtor();
+ inline void SharedDtor();
void SetCachedSize(int size) const final;
void InternalSwap(MajorType* other);
+ friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
+ static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
+ return "common.MajorType";
+ }
private:
- inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
- return NULL;
+ inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
+ return nullptr;
}
inline void* MaybeArenaPtr() const {
- return NULL;
+ return nullptr;
}
public:
- ::google::protobuf::Metadata GetMetadata() const final;
+ ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
+ private:
+ static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
+ ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_Types_2eproto);
+ return ::descriptor_table_Types_2eproto.file_level_metadata[kIndexInFileMessages];
+ }
+
+ public:
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
+ enum : int {
+ kSubTypeFieldNumber = 7,
+ kMinorTypeFieldNumber = 1,
+ kModeFieldNumber = 2,
+ kWidthFieldNumber = 3,
+ kPrecisionFieldNumber = 4,
+ kScaleFieldNumber = 5,
+ kTimeZoneFieldNumber = 6,
+ };
// repeated .common.MinorType sub_type = 7;
int sub_type_size() const;
+ private:
+ int _internal_sub_type_size() const;
+ public:
void clear_sub_type();
- static const int kSubTypeFieldNumber = 7;
+ private:
+ ::common::MinorType _internal_sub_type(int index) const;
+ void _internal_add_sub_type(::common::MinorType value);
+ ::PROTOBUF_NAMESPACE_ID::RepeatedField<int>* _internal_mutable_sub_type();
+ public:
::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();
+ const ::PROTOBUF_NAMESPACE_ID::RepeatedField<int>& sub_type() const;
+ ::PROTOBUF_NAMESPACE_ID::RepeatedField<int>* mutable_sub_type();
// optional .common.MinorType minor_type = 1;
bool has_minor_type() const;
+ private:
+ bool _internal_has_minor_type() const;
+ public:
void clear_minor_type();
- static const int kMinorTypeFieldNumber = 1;
::common::MinorType minor_type() const;
void set_minor_type(::common::MinorType value);
+ private:
+ ::common::MinorType _internal_minor_type() const;
+ void _internal_set_minor_type(::common::MinorType value);
+ public:
// optional .common.DataMode mode = 2;
bool has_mode() const;
+ private:
+ bool _internal_has_mode() const;
+ public:
void clear_mode();
- static const int kModeFieldNumber = 2;
::common::DataMode mode() const;
void set_mode(::common::DataMode value);
+ private:
+ ::common::DataMode _internal_mode() const;
+ void _internal_set_mode(::common::DataMode value);
+ public:
// optional int32 width = 3;
bool has_width() const;
+ private:
+ bool _internal_has_width() const;
+ public:
void clear_width();
- static const int kWidthFieldNumber = 3;
- ::google::protobuf::int32 width() const;
- void set_width(::google::protobuf::int32 value);
+ ::PROTOBUF_NAMESPACE_ID::int32 width() const;
+ void set_width(::PROTOBUF_NAMESPACE_ID::int32 value);
+ private:
+ ::PROTOBUF_NAMESPACE_ID::int32 _internal_width() const;
+ void _internal_set_width(::PROTOBUF_NAMESPACE_ID::int32 value);
+ public:
// optional int32 precision = 4;
bool has_precision() const;
+ private:
+ bool _internal_has_precision() const;
+ public:
void clear_precision();
- static const int kPrecisionFieldNumber = 4;
- ::google::protobuf::int32 precision() const;
- void set_precision(::google::protobuf::int32 value);
+ ::PROTOBUF_NAMESPACE_ID::int32 precision() const;
+ void set_precision(::PROTOBUF_NAMESPACE_ID::int32 value);
+ private:
+ ::PROTOBUF_NAMESPACE_ID::int32 _internal_precision() const;
+ void _internal_set_precision(::PROTOBUF_NAMESPACE_ID::int32 value);
+ public:
// optional int32 scale = 5;
bool has_scale() const;
+ private:
+ bool _internal_has_scale() const;
+ public:
void clear_scale();
- static const int kScaleFieldNumber = 5;
- ::google::protobuf::int32 scale() const;
- void set_scale(::google::protobuf::int32 value);
+ ::PROTOBUF_NAMESPACE_ID::int32 scale() const;
+ void set_scale(::PROTOBUF_NAMESPACE_ID::int32 value);
+ private:
+ ::PROTOBUF_NAMESPACE_ID::int32 _internal_scale() const;
+ void _internal_set_scale(::PROTOBUF_NAMESPACE_ID::int32 value);
+ public:
// optional int32 timeZone = 6;
bool has_timezone() const;
+ private:
+ bool _internal_has_timezone() const;
+ public:
void clear_timezone();
- static const int kTimeZoneFieldNumber = 6;
- ::google::protobuf::int32 timezone() const;
- void set_timezone(::google::protobuf::int32 value);
+ ::PROTOBUF_NAMESPACE_ID::int32 timezone() const;
+ void set_timezone(::PROTOBUF_NAMESPACE_ID::int32 value);
+ private:
+ ::PROTOBUF_NAMESPACE_ID::int32 _internal_timezone() const;
+ void _internal_set_timezone(::PROTOBUF_NAMESPACE_ID::int32 value);
+ public:
// @@protoc_insertion_point(class_scope:common.MajorType)
private:
- 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_;
+ class _Internal;
+
+ ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
+ ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
+ mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
+ ::PROTOBUF_NAMESPACE_ID::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_;
- friend struct ::protobuf_Types_2eproto::TableStruct;
+ ::PROTOBUF_NAMESPACE_ID::int32 width_;
+ ::PROTOBUF_NAMESPACE_ID::int32 precision_;
+ ::PROTOBUF_NAMESPACE_ID::int32 scale_;
+ ::PROTOBUF_NAMESPACE_ID::int32 timezone_;
+ friend struct ::TableStruct_Types_2eproto;
};
// ===================================================================
@@ -322,181 +396,218 @@ class MajorType : public ::google::protobuf::Message /* @@protoc_insertion_point
// MajorType
// optional .common.MinorType minor_type = 1;
-inline bool MajorType::has_minor_type() const {
- return (_has_bits_[0] & 0x00000001u) != 0;
-}
-inline void MajorType::set_has_minor_type() {
- _has_bits_[0] |= 0x00000001u;
+inline bool MajorType::_internal_has_minor_type() const {
+ bool value = (_has_bits_[0] & 0x00000001u) != 0;
+ return value;
}
-inline void MajorType::clear_has_minor_type() {
- _has_bits_[0] &= ~0x00000001u;
+inline bool MajorType::has_minor_type() const {
+ return _internal_has_minor_type();
}
inline void MajorType::clear_minor_type() {
minor_type_ = 0;
- clear_has_minor_type();
+ _has_bits_[0] &= ~0x00000001u;
+}
+inline ::common::MinorType MajorType::_internal_minor_type() const {
+ return static_cast< ::common::MinorType >(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_);
+ return _internal_minor_type();
}
-inline void MajorType::set_minor_type(::common::MinorType value) {
+inline void MajorType::_internal_set_minor_type(::common::MinorType value) {
assert(::common::MinorType_IsValid(value));
- set_has_minor_type();
+ _has_bits_[0] |= 0x00000001u;
minor_type_ = value;
+}
+inline void MajorType::set_minor_type(::common::MinorType value) {
+ _internal_set_minor_type(value);
// @@protoc_insertion_point(field_set:common.MajorType.minor_type)
}
// optional .common.DataMode mode = 2;
-inline bool MajorType::has_mode() const {
- return (_has_bits_[0] & 0x00000002u) != 0;
-}
-inline void MajorType::set_has_mode() {
- _has_bits_[0] |= 0x00000002u;
+inline bool MajorType::_internal_has_mode() const {
+ bool value = (_has_bits_[0] & 0x00000002u) != 0;
+ return value;
}
-inline void MajorType::clear_has_mode() {
- _has_bits_[0] &= ~0x00000002u;
+inline bool MajorType::has_mode() const {
+ return _internal_has_mode();
}
inline void MajorType::clear_mode() {
mode_ = 0;
- clear_has_mode();
+ _has_bits_[0] &= ~0x00000002u;
+}
+inline ::common::DataMode MajorType::_internal_mode() const {
+ return static_cast< ::common::DataMode >(mode_);
}
inline ::common::DataMode MajorType::mode() const {
// @@protoc_insertion_point(field_get:common.MajorType.mode)
- return static_cast< ::common::DataMode >(mode_);
+ return _internal_mode();
}
-inline void MajorType::set_mode(::common::DataMode value) {
+inline void MajorType::_internal_set_mode(::common::DataMode value) {
assert(::common::DataMode_IsValid(value));
- set_has_mode();
+ _has_bits_[0] |= 0x00000002u;
mode_ = value;
+}
+inline void MajorType::set_mode(::common::DataMode value) {
+ _internal_set_mode(value);
// @@protoc_insertion_point(field_set:common.MajorType.mode)
}
// optional int32 width = 3;
-inline bool MajorType::has_width() const {
- return (_has_bits_[0] & 0x00000004u) != 0;
-}
-inline void MajorType::set_has_width() {
- _has_bits_[0] |= 0x00000004u;
+inline bool MajorType::_internal_has_width() const {
+ bool value = (_has_bits_[0] & 0x00000004u) != 0;
+ return value;
}
-inline void MajorType::clear_has_width() {
- _has_bits_[0] &= ~0x00000004u;
+inline bool MajorType::has_width() const {
+ return _internal_has_width();
}
inline void MajorType::clear_width() {
width_ = 0;
- clear_has_width();
+ _has_bits_[0] &= ~0x00000004u;
}
-inline ::google::protobuf::int32 MajorType::width() const {
- // @@protoc_insertion_point(field_get:common.MajorType.width)
+inline ::PROTOBUF_NAMESPACE_ID::int32 MajorType::_internal_width() const {
return width_;
}
-inline void MajorType::set_width(::google::protobuf::int32 value) {
- set_has_width();
+inline ::PROTOBUF_NAMESPACE_ID::int32 MajorType::width() const {
+ // @@protoc_insertion_point(field_get:common.MajorType.width)
+ return _internal_width();
+}
+inline void MajorType::_internal_set_width(::PROTOBUF_NAMESPACE_ID::int32 value) {
+ _has_bits_[0] |= 0x00000004u;
width_ = value;
+}
+inline void MajorType::set_width(::PROTOBUF_NAMESPACE_ID::int32 value) {
+ _internal_set_width(value);
// @@protoc_insertion_point(field_set:common.MajorType.width)
}
// optional int32 precision = 4;
-inline bool MajorType::has_precision() const {
- return (_has_bits_[0] & 0x00000008u) != 0;
-}
-inline void MajorType::set_has_precision() {
- _has_bits_[0] |= 0x00000008u;
+inline bool MajorType::_internal_has_precision() const {
+ bool value = (_has_bits_[0] & 0x00000008u) != 0;
+ return value;
}
-inline void MajorType::clear_has_precision() {
- _has_bits_[0] &= ~0x00000008u;
+inline bool MajorType::has_precision() const {
+ return _internal_has_precision();
}
inline void MajorType::clear_precision() {
precision_ = 0;
- clear_has_precision();
+ _has_bits_[0] &= ~0x00000008u;
}
-inline ::google::protobuf::int32 MajorType::precision() const {
- // @@protoc_insertion_point(field_get:common.MajorType.precision)
+inline ::PROTOBUF_NAMESPACE_ID::int32 MajorType::_internal_precision() const {
return precision_;
}
-inline void MajorType::set_precision(::google::protobuf::int32 value) {
- set_has_precision();
+inline ::PROTOBUF_NAMESPACE_ID::int32 MajorType::precision() const {
+ // @@protoc_insertion_point(field_get:common.MajorType.precision)
+ return _internal_precision();
+}
+inline void MajorType::_internal_set_precision(::PROTOBUF_NAMESPACE_ID::int32 value) {
+ _has_bits_[0] |= 0x00000008u;
precision_ = value;
+}
+inline void MajorType::set_precision(::PROTOBUF_NAMESPACE_ID::int32 value) {
+ _internal_set_precision(value);
// @@protoc_insertion_point(field_set:common.MajorType.precision)
}
// optional int32 scale = 5;
-inline bool MajorType::has_scale() const {
- return (_has_bits_[0] & 0x00000010u) != 0;
+inline bool MajorType::_internal_has_scale() const {
+ bool value = (_has_bits_[0] & 0x00000010u) != 0;
+ return value;
}
-inline void MajorType::set_has_scale() {
- _has_bits_[0] |= 0x00000010u;
-}
-inline void MajorType::clear_has_scale() {
- _has_bits_[0] &= ~0x00000010u;
+inline bool MajorType::has_scale() const {
+ return _internal_has_scale();
}
inline void MajorType::clear_scale() {
scale_ = 0;
- clear_has_scale();
+ _has_bits_[0] &= ~0x00000010u;
}
-inline ::google::protobuf::int32 MajorType::scale() const {
- // @@protoc_insertion_point(field_get:common.MajorType.scale)
+inline ::PROTOBUF_NAMESPACE_ID::int32 MajorType::_internal_scale() const {
return scale_;
}
-inline void MajorType::set_scale(::google::protobuf::int32 value) {
- set_has_scale();
+inline ::PROTOBUF_NAMESPACE_ID::int32 MajorType::scale() const {
+ // @@protoc_insertion_point(field_get:common.MajorType.scale)
+ return _internal_scale();
+}
+inline void MajorType::_internal_set_scale(::PROTOBUF_NAMESPACE_ID::int32 value) {
+ _has_bits_[0] |= 0x00000010u;
scale_ = value;
+}
+inline void MajorType::set_scale(::PROTOBUF_NAMESPACE_ID::int32 value) {
+ _internal_set_scale(value);
// @@protoc_insertion_point(field_set:common.MajorType.scale)
}
// optional int32 timeZone = 6;
-inline bool MajorType::has_timezone() const {
- return (_has_bits_[0] & 0x00000020u) != 0;
-}
-inline void MajorType::set_has_timezone() {
- _has_bits_[0] |= 0x00000020u;
+inline bool MajorType::_internal_has_timezone() const {
+ bool value = (_has_bits_[0] & 0x00000020u) != 0;
+ return value;
}
-inline void MajorType::clear_has_timezone() {
- _has_bits_[0] &= ~0x00000020u;
+inline bool MajorType::has_timezone() const {
+ return _internal_has_timezone();
}
inline void MajorType::clear_timezone() {
timezone_ = 0;
- clear_has_timezone();
+ _has_bits_[0] &= ~0x00000020u;
}
-inline ::google::protobuf::int32 MajorType::timezone() const {
- // @@protoc_insertion_point(field_get:common.MajorType.timeZone)
+inline ::PROTOBUF_NAMESPACE_ID::int32 MajorType::_internal_timezone() const {
return timezone_;
}
-inline void MajorType::set_timezone(::google::protobuf::int32 value) {
- set_has_timezone();
+inline ::PROTOBUF_NAMESPACE_ID::int32 MajorType::timezone() const {
+ // @@protoc_insertion_point(field_get:common.MajorType.timeZone)
+ return _internal_timezone();
+}
+inline void MajorType::_internal_set_timezone(::PROTOBUF_NAMESPACE_ID::int32 value) {
+ _has_bits_[0] |= 0x00000020u;
timezone_ = value;
+}
+inline void MajorType::set_timezone(::PROTOBUF_NAMESPACE_ID::int32 value) {
+ _internal_set_timezone(value);
// @@protoc_insertion_point(field_set:common.MajorType.timeZone)
}
// repeated .common.MinorType sub_type = 7;
-inline int MajorType::sub_type_size() const {
+inline int MajorType::_internal_sub_type_size() const {
return sub_type_.size();
}
+inline int MajorType::sub_type_size() const {
+ return _internal_sub_type_size();
+}
inline void MajorType::clear_sub_type() {
sub_type_.Clear();
}
+inline ::common::MinorType MajorType::_internal_sub_type(int index) const {
+ return static_cast< ::common::MinorType >(sub_type_.Get(index));
+}
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));
+ return _internal_sub_type(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) {
+inline void MajorType::_internal_add_sub_type(::common::MinorType value) {
assert(::common::MinorType_IsValid(value));
sub_type_.Add(value);
+}
+inline void MajorType::add_sub_type(::common::MinorType value) {
// @@protoc_insertion_point(field_add:common.MajorType.sub_type)
+ _internal_add_sub_type(value);
}
-inline const ::google::protobuf::RepeatedField<int>&
+inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField<int>&
MajorType::sub_type() const {
// @@protoc_insertion_point(field_list:common.MajorType.sub_type)
return sub_type_;
}
-inline ::google::protobuf::RepeatedField<int>*
+inline ::PROTOBUF_NAMESPACE_ID::RepeatedField<int>*
+MajorType::_internal_mutable_sub_type() {
+ return &sub_type_;
+}
+inline ::PROTOBUF_NAMESPACE_ID::RepeatedField<int>*
MajorType::mutable_sub_type() {
// @@protoc_insertion_point(field_mutable_list:common.MajorType.sub_type)
- return &sub_type_;
+ return _internal_mutable_sub_type();
}
#ifdef __GNUC__
@@ -507,8 +618,7 @@ MajorType::mutable_sub_type() {
} // namespace common
-namespace google {
-namespace protobuf {
+PROTOBUF_NAMESPACE_OPEN
template <> struct is_proto_enum< ::common::MinorType> : ::std::true_type {};
template <>
@@ -521,9 +631,9 @@ inline const EnumDescriptor* GetEnumDescriptor< ::common::DataMode>() {
return ::common::DataMode_descriptor();
}
-} // namespace protobuf
-} // namespace google
+PROTOBUF_NAMESPACE_CLOSE
// @@protoc_insertion_point(global_scope)
-#endif // PROTOBUF_INCLUDED_Types_2eproto
+#include <google/protobuf/port_undef.inc>
+#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_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 a574273..dceed47 100644
--- a/contrib/native/client/src/protobuf/BitControl.pb.cc
+++ b/contrib/native/client/src/protobuf/BitControl.pb.cc
@@ -5,327 +5,291 @@
#include <algorithm>
-#include <google/protobuf/stubs/common.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/extension_set.h>
+#include <google/protobuf/wire_format_lite.h>
#include <google/protobuf/descriptor.h>
#include <google/protobuf/generated_message_reflection.h>
#include <google/protobuf/reflection_ops.h>
#include <google/protobuf/wire_format.h>
-// 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
+#include <google/protobuf/port_def.inc>
+extern PROTOBUF_INTERNAL_EXPORT_Coordination_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_DrillbitEndpoint_Coordination_2eproto;
+extern PROTOBUF_INTERNAL_EXPORT_ExecutionProtos_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_FragmentHandle_ExecutionProtos_2eproto;
+extern PROTOBUF_INTERNAL_EXPORT_BitControl_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Collector_BitControl_2eproto;
+extern PROTOBUF_INTERNAL_EXPORT_BitControl_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_FragmentStatus_BitControl_2eproto;
+extern PROTOBUF_INTERNAL_EXPORT_BitControl_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<5> scc_info_PlanFragment_BitControl_2eproto;
+extern PROTOBUF_INTERNAL_EXPORT_BitControl_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_QueryContextInformation_BitControl_2eproto;
+extern PROTOBUF_INTERNAL_EXPORT_UserBitShared_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<3> scc_info_MinorFragmentProfile_UserBitShared_2eproto;
+extern PROTOBUF_INTERNAL_EXPORT_UserBitShared_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_UserCredentials_UserBitShared_2eproto;
namespace exec {
namespace bit {
namespace control {
class BitControlHandshakeDefaultTypeInternal {
public:
- ::google::protobuf::internal::ExplicitlyConstructed<BitControlHandshake>
- _instance;
+ ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<BitControlHandshake> _instance;
} _BitControlHandshake_default_instance_;
class BitStatusDefaultTypeInternal {
public:
- ::google::protobuf::internal::ExplicitlyConstructed<BitStatus>
- _instance;
+ ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<BitStatus> _instance;
} _BitStatus_default_instance_;
class FragmentStatusDefaultTypeInternal {
public:
- ::google::protobuf::internal::ExplicitlyConstructed<FragmentStatus>
- _instance;
+ ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<FragmentStatus> _instance;
} _FragmentStatus_default_instance_;
class InitializeFragmentsDefaultTypeInternal {
public:
- ::google::protobuf::internal::ExplicitlyConstructed<InitializeFragments>
- _instance;
+ ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<InitializeFragments> _instance;
} _InitializeFragments_default_instance_;
class CustomMessageDefaultTypeInternal {
public:
- ::google::protobuf::internal::ExplicitlyConstructed<CustomMessage>
- _instance;
+ ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<CustomMessage> _instance;
} _CustomMessage_default_instance_;
class PlanFragmentDefaultTypeInternal {
public:
- ::google::protobuf::internal::ExplicitlyConstructed<PlanFragment>
- _instance;
+ ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<PlanFragment> _instance;
} _PlanFragment_default_instance_;
class CollectorDefaultTypeInternal {
public:
- ::google::protobuf::internal::ExplicitlyConstructed<Collector>
- _instance;
+ ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<Collector> _instance;
} _Collector_default_instance_;
class QueryContextInformationDefaultTypeInternal {
public:
- ::google::protobuf::internal::ExplicitlyConstructed<QueryContextInformation>
- _instance;
+ ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<QueryContextInformation> _instance;
} _QueryContextInformation_default_instance_;
class WorkQueueStatusDefaultTypeInternal {
public:
- ::google::protobuf::internal::ExplicitlyConstructed<WorkQueueStatus>
- _instance;
+ ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<WorkQueueStatus> _instance;
} _WorkQueueStatus_default_instance_;
class FinishedReceiverDefaultTypeInternal {
public:
- ::google::protobuf::internal::ExplicitlyConstructed<FinishedReceiver>
- _instance;
+ ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<FinishedReceiver> _instance;
} _FinishedReceiver_default_instance_;
} // namespace control
} // namespace bit
} // namespace exec
-namespace protobuf_BitControl_2eproto {
-static void InitDefaultsBitControlHandshake() {
+static void InitDefaultsscc_info_BitControlHandshake_BitControl_2eproto() {
GOOGLE_PROTOBUF_VERIFY_VERSION;
{
void* ptr = &::exec::bit::control::_BitControlHandshake_default_instance_;
new (ptr) ::exec::bit::control::BitControlHandshake();
- ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+ ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
}
::exec::bit::control::BitControlHandshake::InitAsDefaultInstance();
}
-::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,}};
+::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_BitControlHandshake_BitControl_2eproto =
+ {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_BitControlHandshake_BitControl_2eproto}, {
+ &scc_info_DrillbitEndpoint_Coordination_2eproto.base,}};
-static void InitDefaultsBitStatus() {
+static void InitDefaultsscc_info_BitStatus_BitControl_2eproto() {
GOOGLE_PROTOBUF_VERIFY_VERSION;
{
void* ptr = &::exec::bit::control::_BitStatus_default_instance_;
new (ptr) ::exec::bit::control::BitStatus();
- ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+ ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
}
::exec::bit::control::BitStatus::InitAsDefaultInstance();
}
-::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,}};
+::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_BitStatus_BitControl_2eproto =
+ {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_BitStatus_BitControl_2eproto}, {
+ &scc_info_FragmentStatus_BitControl_2eproto.base,}};
-static void InitDefaultsFragmentStatus() {
+static void InitDefaultsscc_info_Collector_BitControl_2eproto() {
GOOGLE_PROTOBUF_VERIFY_VERSION;
{
- void* ptr = &::exec::bit::control::_FragmentStatus_default_instance_;
- new (ptr) ::exec::bit::control::FragmentStatus();
- ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+ void* ptr = &::exec::bit::control::_Collector_default_instance_;
+ new (ptr) ::exec::bit::control::Collector();
+ ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
}
- ::exec::bit::control::FragmentStatus::InitAsDefaultInstance();
+ ::exec::bit::control::Collector::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,}};
+::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Collector_BitControl_2eproto =
+ {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_Collector_BitControl_2eproto}, {}};
-static void InitDefaultsInitializeFragments() {
+static void InitDefaultsscc_info_CustomMessage_BitControl_2eproto() {
GOOGLE_PROTOBUF_VERIFY_VERSION;
{
- void* ptr = &::exec::bit::control::_InitializeFragments_default_instance_;
- new (ptr) ::exec::bit::control::InitializeFragments();
- ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+ void* ptr = &::exec::bit::control::_CustomMessage_default_instance_;
+ new (ptr) ::exec::bit::control::CustomMessage();
+ ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
}
- ::exec::bit::control::InitializeFragments::InitAsDefaultInstance();
+ ::exec::bit::control::CustomMessage::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,}};
+::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_CustomMessage_BitControl_2eproto =
+ {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_CustomMessage_BitControl_2eproto}, {}};
-static void InitDefaultsCustomMessage() {
+static void InitDefaultsscc_info_FinishedReceiver_BitControl_2eproto() {
GOOGLE_PROTOBUF_VERIFY_VERSION;
{
- void* ptr = &::exec::bit::control::_CustomMessage_default_instance_;
- new (ptr) ::exec::bit::control::CustomMessage();
- ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+ void* ptr = &::exec::bit::control::_FinishedReceiver_default_instance_;
+ new (ptr) ::exec::bit::control::FinishedReceiver();
+ ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
}
- ::exec::bit::control::CustomMessage::InitAsDefaultInstance();
+ ::exec::bit::control::FinishedReceiver::InitAsDefaultInstance();
}
-::google::protobuf::internal::SCCInfo<0> scc_info_CustomMessage =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsCustomMessage}, {}};
+::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_FinishedReceiver_BitControl_2eproto =
+ {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_FinishedReceiver_BitControl_2eproto}, {
+ &scc_info_FragmentHandle_ExecutionProtos_2eproto.base,}};
-static void InitDefaultsPlanFragment() {
+static void InitDefaultsscc_info_FragmentStatus_BitControl_2eproto() {
GOOGLE_PROTOBUF_VERIFY_VERSION;
{
- void* ptr = &::exec::bit::control::_PlanFragment_default_instance_;
- new (ptr) ::exec::bit::control::PlanFragment();
- ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+ void* ptr = &::exec::bit::control::_FragmentStatus_default_instance_;
+ new (ptr) ::exec::bit::control::FragmentStatus();
+ ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
}
- ::exec::bit::control::PlanFragment::InitAsDefaultInstance();
+ ::exec::bit::control::FragmentStatus::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,}};
+::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_FragmentStatus_BitControl_2eproto =
+ {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 2, 0, InitDefaultsscc_info_FragmentStatus_BitControl_2eproto}, {
+ &scc_info_MinorFragmentProfile_UserBitShared_2eproto.base,
+ &scc_info_FragmentHandle_ExecutionProtos_2eproto.base,}};
-static void InitDefaultsCollector() {
+static void InitDefaultsscc_info_InitializeFragments_BitControl_2eproto() {
GOOGLE_PROTOBUF_VERIFY_VERSION;
{
- void* ptr = &::exec::bit::control::_Collector_default_instance_;
- new (ptr) ::exec::bit::control::Collector();
- ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+ void* ptr = &::exec::bit::control::_InitializeFragments_default_instance_;
+ new (ptr) ::exec::bit::control::InitializeFragments();
+ ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
}
- ::exec::bit::control::Collector::InitAsDefaultInstance();
+ ::exec::bit::control::InitializeFragments::InitAsDefaultInstance();
}
-::google::protobuf::internal::SCCInfo<0> scc_info_Collector =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsCollector}, {}};
+::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_InitializeFragments_BitControl_2eproto =
+ {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_InitializeFragments_BitControl_2eproto}, {
+ &scc_info_PlanFragment_BitControl_2eproto.base,}};
-static void InitDefaultsQueryContextInformation() {
+static void InitDefaultsscc_info_PlanFragment_BitControl_2eproto() {
GOOGLE_PROTOBUF_VERIFY_VERSION;
{
- void* ptr = &::exec::bit::control::_QueryContextInformation_default_instance_;
- new (ptr) ::exec::bit::control::QueryContextInformation();
- ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+ void* ptr = &::exec::bit::control::_PlanFragment_default_instance_;
+ new (ptr) ::exec::bit::control::PlanFragment();
+ ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
}
- ::exec::bit::control::QueryContextInformation::InitAsDefaultInstance();
+ ::exec::bit::control::PlanFragment::InitAsDefaultInstance();
}
-::google::protobuf::internal::SCCInfo<0> scc_info_QueryContextInformation =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsQueryContextInformation}, {}};
+::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<5> scc_info_PlanFragment_BitControl_2eproto =
+ {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 5, 0, InitDefaultsscc_info_PlanFragment_BitControl_2eproto}, {
+ &scc_info_FragmentHandle_ExecutionProtos_2eproto.base,
+ &scc_info_DrillbitEndpoint_Coordination_2eproto.base,
+ &scc_info_UserCredentials_UserBitShared_2eproto.base,
+ &scc_info_QueryContextInformation_BitControl_2eproto.base,
+ &scc_info_Collector_BitControl_2eproto.base,}};
-static void InitDefaultsWorkQueueStatus() {
+static void InitDefaultsscc_info_QueryContextInformation_BitControl_2eproto() {
GOOGLE_PROTOBUF_VERIFY_VERSION;
{
- void* ptr = &::exec::bit::control::_WorkQueueStatus_default_instance_;
- new (ptr) ::exec::bit::control::WorkQueueStatus();
- ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+ void* ptr = &::exec::bit::control::_QueryContextInformation_default_instance_;
+ new (ptr) ::exec::bit::control::QueryContextInformation();
+ ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
}
- ::exec::bit::control::WorkQueueStatus::InitAsDefaultInstance();
+ ::exec::bit::control::QueryContextInformation::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,}};
+::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_QueryContextInformation_BitControl_2eproto =
+ {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_QueryContextInformation_BitControl_2eproto}, {}};
-static void InitDefaultsFinishedReceiver() {
+static void InitDefaultsscc_info_WorkQueueStatus_BitControl_2eproto() {
GOOGLE_PROTOBUF_VERIFY_VERSION;
{
- void* ptr = &::exec::bit::control::_FinishedReceiver_default_instance_;
- new (ptr) ::exec::bit::control::FinishedReceiver();
- ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+ void* ptr = &::exec::bit::control::_WorkQueueStatus_default_instance_;
+ new (ptr) ::exec::bit::control::WorkQueueStatus();
+ ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
}
- ::exec::bit::control::FinishedReceiver::InitAsDefaultInstance();
+ ::exec::bit::control::WorkQueueStatus::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);
-}
+::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_WorkQueueStatus_BitControl_2eproto =
+ {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_WorkQueueStatus_BitControl_2eproto}, {
+ &scc_info_DrillbitEndpoint_Coordination_2eproto.base,}};
-::google::protobuf::Metadata file_level_metadata[10];
-const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors[1];
+static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_BitControl_2eproto[10];
+static const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* file_level_enum_descriptors_BitControl_2eproto[1];
+static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_BitControl_2eproto = nullptr;
-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_),
+const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_BitControl_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
+ PROTOBUF_FIELD_OFFSET(::exec::bit::control::BitControlHandshake, _has_bits_),
+ PROTOBUF_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_),
+ PROTOBUF_FIELD_OFFSET(::exec::bit::control::BitControlHandshake, rpc_version_),
+ PROTOBUF_FIELD_OFFSET(::exec::bit::control::BitControlHandshake, channel_),
+ PROTOBUF_FIELD_OFFSET(::exec::bit::control::BitControlHandshake, endpoint_),
+ PROTOBUF_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_),
+ PROTOBUF_FIELD_OFFSET(::exec::bit::control::BitStatus, _has_bits_),
+ PROTOBUF_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_),
+ PROTOBUF_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_),
+ PROTOBUF_FIELD_OFFSET(::exec::bit::control::FragmentStatus, _has_bits_),
+ PROTOBUF_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_),
+ PROTOBUF_FIELD_OFFSET(::exec::bit::control::FragmentStatus, profile_),
+ PROTOBUF_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_),
+ PROTOBUF_FIELD_OFFSET(::exec::bit::control::InitializeFragments, _has_bits_),
+ PROTOBUF_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_),
+ PROTOBUF_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_),
+ PROTOBUF_FIELD_OFFSET(::exec::bit::control::CustomMessage, _has_bits_),
+ PROTOBUF_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_),
+ PROTOBUF_FIELD_OFFSET(::exec::bit::control::CustomMessage, type_),
+ PROTOBUF_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_),
+ PROTOBUF_FIELD_OFFSET(::exec::bit::control::PlanFragment, _has_bits_),
+ PROTOBUF_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_),
+ PROTOBUF_FIELD_OFFSET(::exec::bit::control::PlanFragment, handle_),
+ PROTOBUF_FIELD_OFFSET(::exec::bit::control::PlanFragment, network_cost_),
+ PROTOBUF_FIELD_OFFSET(::exec::bit::control::PlanFragment, cpu_cost_),
+ PROTOBUF_FIELD_OFFSET(::exec::bit::control::PlanFragment, disk_cost_),
+ PROTOBUF_FIELD_OFFSET(::exec::bit::control::PlanFragment, memory_cost_),
+ PROTOBUF_FIELD_OFFSET(::exec::bit::control::PlanFragment, fragment_json_),
+ PROTOBUF_FIELD_OFFSET(::exec::bit::control::PlanFragment, leaf_fragment_),
+ PROTOBUF_FIELD_OFFSET(::exec::bit::control::PlanFragment, assignment_),
+ PROTOBUF_FIELD_OFFSET(::exec::bit::control::PlanFragment, foreman_),
+ PROTOBUF_FIELD_OFFSET(::exec::bit::control::PlanFragment, mem_initial_),
+ PROTOBUF_FIELD_OFFSET(::exec::bit::control::PlanFragment, mem_max_),
+ PROTOBUF_FIELD_OFFSET(::exec::bit::control::PlanFragment, credentials_),
+ PROTOBUF_FIELD_OFFSET(::exec::bit::control::PlanFragment, options_json_),
+ PROTOBUF_FIELD_OFFSET(::exec::bit::control::PlanFragment, context_),
+ PROTOBUF_FIELD_OFFSET(::exec::bit::control::PlanFragment, collector_),
2,
7,
8,
@@ -341,56 +305,56 @@ const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUT
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_),
+ PROTOBUF_FIELD_OFFSET(::exec::bit::control::Collector, _has_bits_),
+ PROTOBUF_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_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::bit::control::Collector, enable_dynamic_fc_),
+ PROTOBUF_FIELD_OFFSET(::exec::bit::control::Collector, opposite_major_fragment_id_),
+ PROTOBUF_FIELD_OFFSET(::exec::bit::control::Collector, incoming_minor_fragment_),
+ PROTOBUF_FIELD_OFFSET(::exec::bit::control::Collector, supports_out_of_order_),
+ PROTOBUF_FIELD_OFFSET(::exec::bit::control::Collector, is_spooling_),
+ PROTOBUF_FIELD_OFFSET(::exec::bit::control::Collector, enable_dynamic_fc_),
0,
~0u,
1,
2,
3,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::bit::control::QueryContextInformation, _has_bits_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::bit::control::QueryContextInformation, _internal_metadata_),
+ PROTOBUF_FIELD_OFFSET(::exec::bit::control::QueryContextInformation, _has_bits_),
+ PROTOBUF_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_),
+ PROTOBUF_FIELD_OFFSET(::exec::bit::control::QueryContextInformation, query_start_time_),
+ PROTOBUF_FIELD_OFFSET(::exec::bit::control::QueryContextInformation, time_zone_),
+ PROTOBUF_FIELD_OFFSET(::exec::bit::control::QueryContextInformation, default_schema_name_),
+ PROTOBUF_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_),
+ PROTOBUF_FIELD_OFFSET(::exec::bit::control::WorkQueueStatus, _has_bits_),
+ PROTOBUF_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_),
+ PROTOBUF_FIELD_OFFSET(::exec::bit::control::WorkQueueStatus, endpoint_),
+ PROTOBUF_FIELD_OFFSET(::exec::bit::control::WorkQueueStatus, queue_length_),
+ PROTOBUF_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_),
+ PROTOBUF_FIELD_OFFSET(::exec::bit::control::FinishedReceiver, _has_bits_),
+ PROTOBUF_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_),
+ PROTOBUF_FIELD_OFFSET(::exec::bit::control::FinishedReceiver, receiver_),
+ PROTOBUF_FIELD_OFFSET(::exec::bit::control::FinishedReceiver, sender_),
0,
1,
};
-static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
+static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_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)},
@@ -403,118 +367,106 @@ static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROT
{ 119, 126, 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_),
+static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = {
+ reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::exec::bit::control::_BitControlHandshake_default_instance_),
+ reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::exec::bit::control::_BitStatus_default_instance_),
+ reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::exec::bit::control::_FragmentStatus_default_instance_),
+ reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::exec::bit::control::_InitializeFragments_default_instance_),
+ reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::exec::bit::control::_CustomMessage_default_instance_),
+ reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::exec::bit::control::_PlanFragment_default_instance_),
+ reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::exec::bit::control::_Collector_default_instance_),
+ reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::exec::bit::control::_QueryContextInformation_default_instance_),
+ reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::exec::bit::control::_WorkQueueStatus_default_instance_),
+ reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::exec::bit::control::_FinishedReceiver_default_instance_),
+};
+
+const char descriptor_table_protodef_BitControl_2eproto[] PROTOBUF_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\"\243\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\022\031\n\021enabl"
+ "e_dynamic_fc\030\005 \001(\010\"w\n\027QueryContextInform"
+ "ation\022\030\n\020query_start_time\030\001 \001(\003\022\021\n\ttime_"
+ "zone\030\002 \001(\005\022\033\n\023default_schema_name\030\003 \001(\t\022"
+ "\022\n\nsession_id\030\004 \001(\t\"f\n\017WorkQueueStatus\022("
+ "\n\010endpoint\030\001 \001(\0132\026.exec.DrillbitEndpoint"
+ "\022\024\n\014queue_length\030\002 \001(\005\022\023\n\013report_time\030\003 "
+ "\001(\003\"h\n\020FinishedReceiver\022*\n\010receiver\030\001 \001("
+ "\0132\030.exec.bit.FragmentHandle\022(\n\006sender\030\002 "
+ "\001(\0132\030.exec.bit.FragmentHandle*\206\003\n\007RpcTyp"
+ "e\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_CANC"
+ "EL_FRAGMENT\020\006\022\031\n\025REQ_RECEIVER_FINISHED\020\007"
+ "\022\027\n\023REQ_FRAGMENT_STATUS\020\010\022\022\n\016REQ_BIT_STA"
+ "TUS\020\t\022\024\n\020REQ_QUERY_STATUS\020\n\022\024\n\020REQ_QUERY"
+ "_CANCEL\020\017\022\030\n\024REQ_UNPAUSE_FRAGMENT\020\020\022\016\n\nR"
+ "EQ_CUSTOM\020\021\022\030\n\024RESP_FRAGMENT_HANDLE\020\013\022\030\n"
+ "\024RESP_FRAGMENT_STATUS\020\014\022\023\n\017RESP_BIT_STAT"
+ "US\020\r\022\025\n\021RESP_QUERY_STATUS\020\016\022\017\n\013RESP_CUST"
+ "OM\020\022\022\020\n\014SASL_MESSAGE\020\023B+\n\033org.apache.dri"
+ "ll.exec.protoB\nBitControlH\001"
+ ;
+static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_BitControl_2eproto_deps[3] = {
+ &::descriptor_table_Coordination_2eproto,
+ &::descriptor_table_ExecutionProtos_2eproto,
+ &::descriptor_table_UserBitShared_2eproto,
+};
+static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_BitControl_2eproto_sccs[10] = {
+ &scc_info_BitControlHandshake_BitControl_2eproto.base,
+ &scc_info_BitStatus_BitControl_2eproto.base,
+ &scc_info_Collector_BitControl_2eproto.base,
+ &scc_info_CustomMessage_BitControl_2eproto.base,
+ &scc_info_FinishedReceiver_BitControl_2eproto.base,
+ &scc_info_FragmentStatus_BitControl_2eproto.base,
+ &scc_info_InitializeFragments_BitControl_2eproto.base,
+ &scc_info_PlanFragment_BitControl_2eproto.base,
+ &scc_info_QueryContextInformation_BitControl_2eproto.base,
+ &scc_info_WorkQueueStatus_BitControl_2eproto.base,
+};
+static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_BitControl_2eproto_once;
+static bool descriptor_table_BitControl_2eproto_initialized = false;
+const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_BitControl_2eproto = {
+ &descriptor_table_BitControl_2eproto_initialized, descriptor_table_protodef_BitControl_2eproto, "BitControl.proto", 2027,
+ &descriptor_table_BitControl_2eproto_once, descriptor_table_BitControl_2eproto_sccs, descriptor_table_BitControl_2eproto_deps, 10, 3,
+ schemas, file_default_instances, TableStruct_BitControl_2eproto::offsets,
+ file_level_metadata_BitControl_2eproto, 10, file_level_enum_descriptors_BitControl_2eproto, file_level_service_descriptors_BitControl_2eproto,
};
-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\"\243\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\022\031\n\021enabl"
- "e_dynamic_fc\030\005 \001(\010\"w\n\027QueryContextInform"
- "ation\022\030\n\020query_start_time\030\001 \001(\003\022\021\n\ttime_"
- "zone\030\002 \001(\005\022\033\n\023default_schema_name\030\003 \001(\t\022"
- "\022\n\nsession_id\030\004 \001(\t\"f\n\017WorkQueueStatus\022("
- "\n\010endpoint\030\001 \001(\0132\026.exec.DrillbitEndpoint"
- "\022\024\n\014queue_length\030\002 \001(\005\022\023\n\013report_time\030\003 "
- "\001(\003\"h\n\020FinishedReceiver\022*\n\010receiver\030\001 \001("
- "\0132\030.exec.bit.FragmentHandle\022(\n\006sender\030\002 "
- "\001(\0132\030.exec.bit.FragmentHandle*\206\003\n\007RpcTyp"
- "e\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_CANC"
- "EL_FRAGMENT\020\006\022\031\n\025REQ_RECEIVER_FINISHED\020\007"
- "\022\027\n\023REQ_FRAGMENT_STATUS\020\010\022\022\n\016REQ_BIT_STA"
- "TUS\020\t\022\024\n\020REQ_QUERY_STATUS\020\n\022\024\n\020REQ_QUERY"
- "_CANCEL\020\017\022\030\n\024REQ_UNPAUSE_FRAGMENT\020\020\022\016\n\nR"
- "EQ_CUSTOM\020\021\022\030\n\024RESP_FRAGMENT_HANDLE\020\013\022\030\n"
- "\024RESP_FRAGMENT_STATUS\020\014\022\023\n\017RESP_BIT_STAT"
- "US\020\r\022\025\n\021RESP_QUERY_STATUS\020\016\022\017\n\013RESP_CUST"
- "OM\020\022\022\020\n\014SASL_MESSAGE\020\023B+\n\033org.apache.dri"
- "ll.exec.protoB\nBitControlH\001"
- };
- ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
- descriptor, 2027);
- ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
- "BitControl.proto", &protobuf_RegisterTypes);
- ::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
+// Force running AddDescriptors() at dynamic initialization time.
+static bool dynamic_init_dummy_BitControl_2eproto = ( ::PROTOBUF_NAMESPACE_ID::internal::AddDescriptors(&descriptor_table_BitControl_2eproto), true);
namespace exec {
namespace bit {
namespace control {
-const ::google::protobuf::EnumDescriptor* RpcType_descriptor() {
- protobuf_BitControl_2eproto::protobuf_AssignDescriptorsOnce();
- return protobuf_BitControl_2eproto::file_level_enum_descriptors[0];
+const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* RpcType_descriptor() {
+ ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_BitControl_2eproto);
+ return file_level_enum_descriptors_BitControl_2eproto[0];
}
bool RpcType_IsValid(int value) {
switch (value) {
@@ -549,34 +501,44 @@ void BitControlHandshake::InitAsDefaultInstance() {
::exec::bit::control::_BitControlHandshake_default_instance_._instance.get_mutable()->endpoint_ = const_cast< ::exec::DrillbitEndpoint*>(
::exec::DrillbitEndpoint::internal_default_instance());
}
+class BitControlHandshake::_Internal {
+ public:
+ using HasBits = decltype(std::declval<BitControlHandshake>()._has_bits_);
+ static void set_has_rpc_version(HasBits* has_bits) {
+ (*has_bits)[0] |= 2u;
+ }
+ static void set_has_channel(HasBits* has_bits) {
+ (*has_bits)[0] |= 4u;
+ }
+ static const ::exec::DrillbitEndpoint& endpoint(const BitControlHandshake* msg);
+ static void set_has_endpoint(HasBits* has_bits) {
+ (*has_bits)[0] |= 1u;
+ }
+};
+
+const ::exec::DrillbitEndpoint&
+BitControlHandshake::_Internal::endpoint(const BitControlHandshake* msg) {
+ return *msg->endpoint_;
+}
void BitControlHandshake::clear_endpoint() {
- if (endpoint_ != NULL) endpoint_->Clear();
- clear_has_endpoint();
+ if (endpoint_ != nullptr) endpoint_->Clear();
+ _has_bits_[0] &= ~0x00000001u;
}
-#if !defined(_MSC_VER) || _MSC_VER >= 1900
-const int BitControlHandshake::kRpcVersionFieldNumber;
-const int BitControlHandshake::kChannelFieldNumber;
-const int BitControlHandshake::kEndpointFieldNumber;
-const int BitControlHandshake::kAuthenticationMechanismsFieldNumber;
-#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
-
BitControlHandshake::BitControlHandshake()
- : ::google::protobuf::Message(), _internal_metadata_(NULL) {
- ::google::protobuf::internal::InitSCC(
- &protobuf_BitControl_2eproto::scc_info_BitControlHandshake.base);
+ : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
SharedCtor();
// @@protoc_insertion_point(constructor:exec.bit.control.BitControlHandshake)
}
BitControlHandshake::BitControlHandshake(const BitControlHandshake& from)
- : ::google::protobuf::Message(),
- _internal_metadata_(NULL),
+ : ::PROTOBUF_NAMESPACE_ID::Message(),
+ _internal_metadata_(nullptr),
_has_bits_(from._has_bits_),
authenticationmechanisms_(from.authenticationmechanisms_) {
_internal_metadata_.MergeFrom(from._internal_metadata_);
- if (from.has_endpoint()) {
+ if (from._internal_has_endpoint()) {
endpoint_ = new ::exec::DrillbitEndpoint(*from.endpoint_);
} else {
- endpoint_ = NULL;
+ endpoint_ = nullptr;
}
::memcpy(&rpc_version_, &from.rpc_version_,
static_cast<size_t>(reinterpret_cast<char*>(&channel_) -
@@ -585,6 +547,7 @@ BitControlHandshake::BitControlHandshake(const BitControlHandshake& from)
}
void BitControlHandshake::SharedCtor() {
+ ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_BitControlHandshake_BitControl_2eproto.base);
::memset(&endpoint_, 0, static_cast<size_t>(
reinterpret_cast<char*>(&channel_) -
reinterpret_cast<char*>(&endpoint_)) + sizeof(channel_));
@@ -602,30 +565,25 @@ void BitControlHandshake::SharedDtor() {
void BitControlHandshake::SetCachedSize(int size) const {
_cached_size_.Set(size);
}
-const ::google::protobuf::Descriptor* BitControlHandshake::descriptor() {
- ::protobuf_BitControl_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_BitControl_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
-}
-
const BitControlHandshake& BitControlHandshake::default_instance() {
- ::google::protobuf::internal::InitSCC(&protobuf_BitControl_2eproto::scc_info_BitControlHandshake.base);
+ ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_BitControlHandshake_BitControl_2eproto.base);
return *internal_default_instance();
}
void BitControlHandshake::Clear() {
// @@protoc_insertion_point(message_clear_start:exec.bit.control.BitControlHandshake)
- ::google::protobuf::uint32 cached_has_bits = 0;
+ ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
authenticationmechanisms_.Clear();
cached_has_bits = _has_bits_[0];
if (cached_has_bits & 0x00000001u) {
- GOOGLE_DCHECK(endpoint_ != NULL);
+ GOOGLE_DCHECK(endpoint_ != nullptr);
endpoint_->Clear();
}
- if (cached_has_bits & 6u) {
+ if (cached_has_bits & 0x00000006u) {
::memset(&rpc_version_, 0, static_cast<size_t>(
reinterpret_cast<char*>(&channel_) -
reinterpret_cast<char*>(&rpc_version_)) + sizeof(channel_));
@@ -634,179 +592,119 @@ void BitControlHandshake::Clear() {
_internal_metadata_.Clear();
}
-bool BitControlHandshake::MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) {
-#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
- ::google::protobuf::uint32 tag;
- // @@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)) {
+const char* BitControlHandshake::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
+#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
+ _Internal::HasBits has_bits{};
+ while (!ctx->Done(&ptr)) {
+ ::PROTOBUF_NAMESPACE_ID::uint32 tag;
+ ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
+ CHK_(ptr);
+ switch (tag >> 3) {
// optional int32 rpc_version = 1;
- case 1: {
- 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_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
-
+ case 1:
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) {
+ _Internal::set_has_rpc_version(&has_bits);
+ rpc_version_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
+ CHK_(ptr);
+ } else goto handle_unusual;
+ continue;
// optional .exec.shared.RpcChannel channel = 2 [default = BIT_CONTROL];
- case 2: {
- 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>(
- input, &value)));
- if (::exec::shared::RpcChannel_IsValid(value)) {
- set_channel(static_cast< ::exec::shared::RpcChannel >(value));
+ case 2:
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) {
+ ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
+ CHK_(ptr);
+ if (PROTOBUF_PREDICT_TRUE(::exec::shared::RpcChannel_IsValid(val))) {
+ _internal_set_channel(static_cast<::exec::shared::RpcChannel>(val));
} else {
- mutable_unknown_fields()->AddVarint(
- 2, static_cast< ::google::protobuf::uint64>(value));
+ ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(2, val, mutable_unknown_fields());
}
- } else {
- goto handle_unusual;
- }
- break;
- }
-
+ } else goto handle_unusual;
+ continue;
// optional .exec.DrillbitEndpoint endpoint = 3;
- case 3: {
- 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_unusual;
- }
- break;
- }
-
+ case 3:
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) {
+ ptr = ctx->ParseMessage(_internal_mutable_endpoint(), ptr);
+ CHK_(ptr);
+ } else goto handle_unusual;
+ continue;
// repeated string authenticationMechanisms = 4;
- case 4: {
- 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::VerifyUTF8StringNamedField(
- this->authenticationmechanisms(this->authenticationmechanisms_size() - 1).data(),
- static_cast<int>(this->authenticationmechanisms(this->authenticationmechanisms_size() - 1).length()),
- ::google::protobuf::internal::WireFormat::PARSE,
- "exec.bit.control.BitControlHandshake.authenticationMechanisms");
- } else {
- goto handle_unusual;
- }
- break;
- }
-
+ case 4:
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) {
+ ptr -= 1;
+ do {
+ ptr += 1;
+ auto str = _internal_add_authenticationmechanisms();
+ ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
+ #ifndef NDEBUG
+ ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "exec.bit.control.BitControlHandshake.authenticationMechanisms");
+ #endif // !NDEBUG
+ CHK_(ptr);
+ if (!ctx->DataAvailable(ptr)) break;
+ } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<34>(ptr));
+ } else goto handle_unusual;
+ continue;
default: {
handle_unusual:
- if (tag == 0) {
+ if ((tag & 7) == 4 || tag == 0) {
+ ctx->SetLastTag(tag);
goto success;
}
- DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, _internal_metadata_.mutable_unknown_fields()));
- break;
+ ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
+ CHK_(ptr != nullptr);
+ continue;
}
- }
- }
+ } // switch
+ } // while
success:
- // @@protoc_insertion_point(parse_success:exec.bit.control.BitControlHandshake)
- return true;
+ _has_bits_.Or(has_bits);
+ return ptr;
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 (cached_has_bits & 0x00000002u) {
- ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->rpc_version(), output);
- }
-
- // optional .exec.shared.RpcChannel channel = 2 [default = BIT_CONTROL];
- if (cached_has_bits & 0x00000004u) {
- ::google::protobuf::internal::WireFormatLite::WriteEnum(
- 2, this->channel(), output);
- }
-
- // optional .exec.DrillbitEndpoint endpoint = 3;
- if (cached_has_bits & 0x00000001u) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 3, this->_internal_endpoint(), output);
- }
-
- // repeated string authenticationMechanisms = 4;
- 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 (_internal_metadata_.have_unknown_fields()) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- _internal_metadata_.unknown_fields(), output);
- }
- // @@protoc_insertion_point(serialize_end:exec.bit.control.BitControlHandshake)
+ ptr = nullptr;
+ goto success;
+#undef CHK_
}
-::google::protobuf::uint8* BitControlHandshake::InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const {
- (void)deterministic; // Unused
+::PROTOBUF_NAMESPACE_ID::uint8* BitControlHandshake::_InternalSerialize(
+ ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
// @@protoc_insertion_point(serialize_to_array_start:exec.bit.control.BitControlHandshake)
- ::google::protobuf::uint32 cached_has_bits = 0;
+ ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
(void) cached_has_bits;
cached_has_bits = _has_bits_[0];
// optional int32 rpc_version = 1;
if (cached_has_bits & 0x00000002u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->rpc_version(), target);
+ target = stream->EnsureSpace(target);
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_rpc_version(), target);
}
// optional .exec.shared.RpcChannel channel = 2 [default = BIT_CONTROL];
if (cached_has_bits & 0x00000004u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
- 2, this->channel(), target);
+ target = stream->EnsureSpace(target);
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray(
+ 2, this->_internal_channel(), target);
}
// optional .exec.DrillbitEndpoint endpoint = 3;
if (cached_has_bits & 0x00000001u) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 3, this->_internal_endpoint(), deterministic, target);
+ target = stream->EnsureSpace(target);
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
+ InternalWriteMessage(
+ 3, _Internal::endpoint(this), target, stream);
}
// repeated string authenticationMechanisms = 4;
- 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,
+ for (int i = 0, n = this->_internal_authenticationmechanisms_size(); i < n; i++) {
+ const auto& s = this->_internal_authenticationmechanisms(i);
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
+ s.data(), static_cast<int>(s.length()),
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
"exec.bit.control.BitControlHandshake.authenticationMechanisms");
- target = ::google::protobuf::internal::WireFormatLite::
- WriteStringToArray(4, this->authenticationmechanisms(i), target);
+ target = stream->WriteString(4, s, target);
}
- if (_internal_metadata_.have_unknown_fields()) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields(), target);
+ if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
+ _internal_metadata_.unknown_fields(), target, stream);
}
// @@protoc_insertion_point(serialize_to_array_end:exec.bit.control.BitControlHandshake)
return target;
@@ -816,55 +714,59 @@ 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());
- }
+ ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
// 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));
+ ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(authenticationmechanisms_.size());
+ for (int i = 0, n = authenticationmechanisms_.size(); i < n; i++) {
+ total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
+ authenticationmechanisms_.Get(i));
}
- if (_has_bits_[0 / 32] & 7u) {
+ cached_has_bits = _has_bits_[0];
+ if (cached_has_bits & 0x00000007u) {
// optional .exec.DrillbitEndpoint endpoint = 3;
- if (has_endpoint()) {
+ if (cached_has_bits & 0x00000001u) {
total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
*endpoint_);
}
// optional int32 rpc_version = 1;
- if (has_rpc_version()) {
+ if (cached_has_bits & 0x00000002u) {
total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->rpc_version());
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
+ this->_internal_rpc_version());
}
// optional .exec.shared.RpcChannel channel = 2 [default = BIT_CONTROL];
- if (has_channel()) {
+ if (cached_has_bits & 0x00000004u) {
total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::EnumSize(this->channel());
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_channel());
}
}
- int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+ if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
+ return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
+ _internal_metadata_, total_size, &_cached_size_);
+ }
+ int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
SetCachedSize(cached_size);
return total_size;
}
-void BitControlHandshake::MergeFrom(const ::google::protobuf::Message& from) {
+void BitControlHandshake::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
// @@protoc_insertion_point(generalized_merge_from_start:exec.bit.control.BitControlHandshake)
GOOGLE_DCHECK_NE(&from, this);
const BitControlHandshake* source =
- ::google::protobuf::internal::DynamicCastToGenerated<const BitControlHandshake>(
+ ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<BitControlHandshake>(
&from);
- if (source == NULL) {
+ if (source == nullptr) {
// @@protoc_insertion_point(generalized_merge_from_cast_fail:exec.bit.control.BitControlHandshake)
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
+ ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
} else {
// @@protoc_insertion_point(generalized_merge_from_cast_success:exec.bit.control.BitControlHandshake)
MergeFrom(*source);
@@ -875,14 +777,14 @@ void BitControlHandshake::MergeFrom(const BitControlHandshake& from) {
// @@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;
+ ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
(void) cached_has_bits;
authenticationmechanisms_.MergeFrom(from.authenticationmechanisms_);
cached_has_bits = from._has_bits_[0];
- if (cached_has_bits & 7u) {
+ if (cached_has_bits & 0x00000007u) {
if (cached_has_bits & 0x00000001u) {
- mutable_endpoint()->::exec::DrillbitEndpoint::MergeFrom(from.endpoint());
+ _internal_mutable_endpoint()->::exec::DrillbitEndpoint::MergeFrom(from._internal_endpoint());
}
if (cached_has_bits & 0x00000002u) {
rpc_version_ = from.rpc_version_;
@@ -894,7 +796,7 @@ void BitControlHandshake::MergeFrom(const BitControlHandshake& from) {
}
}
-void BitControlHandshake::CopyFrom(const ::google::protobuf::Message& from) {
+void BitControlHandshake::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
// @@protoc_insertion_point(generalized_copy_from_start:exec.bit.control.BitControlHandshake)
if (&from == this) return;
Clear();
@@ -912,23 +814,18 @@ bool BitControlHandshake::IsInitialized() const {
return true;
}
-void BitControlHandshake::Swap(BitControlHandshake* other) {
- if (other == this) return;
- InternalSwap(other);
-}
void BitControlHandshake::InternalSwap(BitControlHandshake* other) {
using std::swap;
- authenticationmechanisms_.InternalSwap(CastToBase(&other->authenticationmechanisms_));
+ _internal_metadata_.Swap(&other->_internal_metadata_);
+ swap(_has_bits_[0], other->_has_bits_[0]);
+ authenticationmechanisms_.InternalSwap(&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_BitControl_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_BitControl_2eproto::file_level_metadata[kIndexInFileMessages];
+::PROTOBUF_NAMESPACE_ID::Metadata BitControlHandshake::GetMetadata() const {
+ return GetMetadataStatic();
}
@@ -936,20 +833,19 @@ void BitControlHandshake::InternalSwap(BitControlHandshake* other) {
void BitStatus::InitAsDefaultInstance() {
}
-#if !defined(_MSC_VER) || _MSC_VER >= 1900
-const int BitStatus::kFragmentStatusFieldNumber;
-#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
+class BitStatus::_Internal {
+ public:
+ using HasBits = decltype(std::declval<BitStatus>()._has_bits_);
+};
BitStatus::BitStatus()
- : ::google::protobuf::Message(), _internal_metadata_(NULL) {
- ::google::protobuf::internal::InitSCC(
- &protobuf_BitControl_2eproto::scc_info_BitStatus.base);
+ : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
SharedCtor();
// @@protoc_insertion_point(constructor:exec.bit.control.BitStatus)
}
BitStatus::BitStatus(const BitStatus& from)
- : ::google::protobuf::Message(),
- _internal_metadata_(NULL),
+ : ::PROTOBUF_NAMESPACE_ID::Message(),
+ _internal_metadata_(nullptr),
_has_bits_(from._has_bits_),
fragment_status_(from.fragment_status_) {
_internal_metadata_.MergeFrom(from._internal_metadata_);
@@ -957,6 +853,7 @@ BitStatus::BitStatus(const BitStatus& from)
}
void BitStatus::SharedCtor() {
+ ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_BitStatus_BitControl_2eproto.base);
}
BitStatus::~BitStatus() {
@@ -970,20 +867,15 @@ void BitStatus::SharedDtor() {
void BitStatus::SetCachedSize(int size) const {
_cached_size_.Set(size);
}
-const ::google::protobuf::Descriptor* BitStatus::descriptor() {
- ::protobuf_BitControl_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_BitControl_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
-}
-
const BitStatus& BitStatus::default_instance() {
- ::google::protobuf::internal::InitSCC(&protobuf_BitControl_2eproto::scc_info_BitStatus.base);
+ ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_BitStatus_BitControl_2eproto.base);
return *internal_default_instance();
}
void BitStatus::Clear() {
// @@protoc_insertion_point(message_clear_start:exec.bit.control.BitStatus)
- ::google::protobuf::uint32 cached_has_bits = 0;
+ ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
@@ -992,88 +884,62 @@ void BitStatus::Clear() {
_internal_metadata_.Clear();
}
-bool BitStatus::MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) {
-#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
- ::google::protobuf::uint32 tag;
- // @@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)) {
+const char* BitStatus::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
+#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
+ while (!ctx->Done(&ptr)) {
+ ::PROTOBUF_NAMESPACE_ID::uint32 tag;
+ ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
+ CHK_(ptr);
+ switch (tag >> 3) {
// repeated .exec.bit.control.FragmentStatus fragment_status = 1;
- case 1: {
- 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_unusual;
- }
- break;
- }
-
+ case 1:
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
+ ptr -= 1;
+ do {
+ ptr += 1;
+ ptr = ctx->ParseMessage(_internal_add_fragment_status(), ptr);
+ CHK_(ptr);
+ if (!ctx->DataAvailable(ptr)) break;
+ } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr));
+ } else goto handle_unusual;
+ continue;
default: {
handle_unusual:
- if (tag == 0) {
+ if ((tag & 7) == 4 || tag == 0) {
+ ctx->SetLastTag(tag);
goto success;
}
- DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, _internal_metadata_.mutable_unknown_fields()));
- break;
+ ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
+ CHK_(ptr != nullptr);
+ continue;
}
- }
- }
+ } // switch
+ } // while
success:
- // @@protoc_insertion_point(parse_success:exec.bit.control.BitStatus)
- return true;
+ return ptr;
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 (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(static_cast<int>(i)),
- output);
- }
-
- if (_internal_metadata_.have_unknown_fields()) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- _internal_metadata_.unknown_fields(), output);
- }
- // @@protoc_insertion_point(serialize_end:exec.bit.control.BitStatus)
+ ptr = nullptr;
+ goto success;
+#undef CHK_
}
-::google::protobuf::uint8* BitStatus::InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const {
- (void)deterministic; // Unused
+::PROTOBUF_NAMESPACE_ID::uint8* BitStatus::_InternalSerialize(
+ ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
// @@protoc_insertion_point(serialize_to_array_start:exec.bit.control.BitStatus)
- ::google::protobuf::uint32 cached_has_bits = 0;
+ ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
(void) cached_has_bits;
// repeated .exec.bit.control.FragmentStatus fragment_status = 1;
for (unsigned int i = 0,
- n = static_cast<unsigned int>(this->fragment_status_size()); i < n; i++) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 1, this->fragment_status(static_cast<int>(i)), deterministic, target);
+ n = static_cast<unsigned int>(this->_internal_fragment_status_size()); i < n; i++) {
+ target = stream->EnsureSpace(target);
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
+ InternalWriteMessage(1, this->_internal_fragment_status(i), target, stream);
}
- if (_internal_metadata_.have_unknown_fields()) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields(), target);
+ if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
+ _internal_metadata_.unknown_fields(), target, stream);
}
// @@protoc_insertion_point(serialize_to_array_end:exec.bit.control.BitStatus)
return target;
@@ -1083,36 +949,35 @@ size_t BitStatus::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:exec.bit.control.BitStatus)
size_t total_size = 0;
- if (_internal_metadata_.have_unknown_fields()) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- _internal_metadata_.unknown_fields());
- }
+ ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
// 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)));
- }
+ total_size += 1UL * this->_internal_fragment_status_size();
+ for (const auto& msg : this->fragment_status_) {
+ total_size +=
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
}
- int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+ if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
+ return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
+ _internal_metadata_, total_size, &_cached_size_);
+ }
+ int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
SetCachedSize(cached_size);
return total_size;
}
-void BitStatus::MergeFrom(const ::google::protobuf::Message& from) {
+void BitStatus::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
// @@protoc_insertion_point(generalized_merge_from_start:exec.bit.control.BitStatus)
GOOGLE_DCHECK_NE(&from, this);
const BitStatus* source =
- ::google::protobuf::internal::DynamicCastToGenerated<const BitStatus>(
+ ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<BitStatus>(
&from);
- if (source == NULL) {
+ if (source == nullptr) {
// @@protoc_insertion_point(generalized_merge_from_cast_fail:exec.bit.control.BitStatus)
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
+ ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
} else {
// @@protoc_insertion_point(generalized_merge_from_cast_success:exec.bit.control.BitStatus)
MergeFrom(*source);
@@ -1123,13 +988,13 @@ void BitStatus::MergeFrom(const BitStatus& from) {
// @@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;
+ ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
(void) cached_has_bits;
fragment_status_.MergeFrom(from.fragment_status_);
}
-void BitStatus::CopyFrom(const ::google::protobuf::Message& from) {
+void BitStatus::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
// @@protoc_insertion_point(generalized_copy_from_start:exec.bit.control.BitStatus)
if (&from == this) return;
Clear();
@@ -1147,20 +1012,15 @@ bool BitStatus::IsInitialized() const {
return true;
}
-void BitStatus::Swap(BitStatus* other) {
- 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_);
+ swap(_has_bits_[0], other->_has_bits_[0]);
+ fragment_status_.InternalSwap(&other->fragment_status_);
}
-::google::protobuf::Metadata BitStatus::GetMetadata() const {
- protobuf_BitControl_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_BitControl_2eproto::file_level_metadata[kIndexInFileMessages];
+::PROTOBUF_NAMESPACE_ID::Metadata BitStatus::GetMetadata() const {
+ return GetMetadataStatic();
}
@@ -1172,45 +1032,60 @@ void FragmentStatus::InitAsDefaultInstance() {
::exec::bit::control::_FragmentStatus_default_instance_._instance.get_mutable()->handle_ = const_cast< ::exec::bit::FragmentHandle*>(
::exec::bit::FragmentHandle::internal_default_instance());
}
+class FragmentStatus::_Internal {
+ public:
+ using HasBits = decltype(std::declval<FragmentStatus>()._has_bits_);
+ static const ::exec::shared::MinorFragmentProfile& profile(const FragmentStatus* msg);
+ static void set_has_profile(HasBits* has_bits) {
+ (*has_bits)[0] |= 1u;
+ }
+ static const ::exec::bit::FragmentHandle& handle(const FragmentStatus* msg);
+ static void set_has_handle(HasBits* has_bits) {
+ (*has_bits)[0] |= 2u;
+ }
+};
+
+const ::exec::shared::MinorFragmentProfile&
+FragmentStatus::_Internal::profile(const FragmentStatus* msg) {
+ return *msg->profile_;
+}
+const ::exec::bit::FragmentHandle&
+FragmentStatus::_Internal::handle(const FragmentStatus* msg) {
+ return *msg->handle_;
+}
void FragmentStatus::clear_profile() {
- if (profile_ != NULL) profile_->Clear();
- clear_has_profile();
+ if (profile_ != nullptr) profile_->Clear();
+ _has_bits_[0] &= ~0x00000001u;
}
void FragmentStatus::clear_handle() {
- if (handle_ != NULL) handle_->Clear();
- clear_has_handle();
+ if (handle_ != nullptr) handle_->Clear();
+ _has_bits_[0] &= ~0x00000002u;
}
-#if !defined(_MSC_VER) || _MSC_VER >= 1900
-const int FragmentStatus::kProfileFieldNumber;
-const int FragmentStatus::kHandleFieldNumber;
-#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
-
FragmentStatus::FragmentStatus()
- : ::google::protobuf::Message(), _internal_metadata_(NULL) {
- ::google::protobuf::internal::InitSCC(
- &protobuf_BitControl_2eproto::scc_info_FragmentStatus.base);
+ : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
SharedCtor();
// @@protoc_insertion_point(constructor:exec.bit.control.FragmentStatus)
}
FragmentStatus::FragmentStatus(const FragmentStatus& from)
- : ::google::protobuf::Message(),
- _internal_metadata_(NULL),
+ : ::PROTOBUF_NAMESPACE_ID::Message(),
+ _internal_metadata_(nullptr),
_has_bits_(from._has_bits_) {
_internal_metadata_.MergeFrom(from._internal_metadata_);
- if (from.has_profile()) {
+ if (from._internal_has_profile()) {
profile_ = new ::exec::shared::MinorFragmentProfile(*from.profile_);
} else {
- profile_ = NULL;
+ profile_ = nullptr;
}
- if (from.has_handle()) {
+ if (from._internal_has_handle()) {
handle_ = new ::exec::bit::FragmentHandle(*from.handle_);
} else {
- handle_ = NULL;
+ handle_ = nullptr;
}
// @@protoc_insertion_point(copy_constructor:exec.bit.control.FragmentStatus)
}
void FragmentStatus::SharedCtor() {
+ ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_FragmentStatus_BitControl_2eproto.base);
::memset(&profile_, 0, static_cast<size_t>(
reinterpret_cast<char*>(&handle_) -
reinterpret_cast<char*>(&profile_)) + sizeof(handle_));
@@ -1229,31 +1104,26 @@ void FragmentStatus::SharedDtor() {
void FragmentStatus::SetCachedSize(int size) const {
_cached_size_.Set(size);
}
-const ::google::protobuf::Descriptor* FragmentStatus::descriptor() {
- ::protobuf_BitControl_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_BitControl_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
-}
-
const FragmentStatus& FragmentStatus::default_instance() {
- ::google::protobuf::internal::InitSCC(&protobuf_BitControl_2eproto::scc_info_FragmentStatus.base);
+ ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_FragmentStatus_BitControl_2eproto.base);
return *internal_default_instance();
}
void FragmentStatus::Clear() {
// @@protoc_insertion_point(message_clear_start:exec.bit.control.FragmentStatus)
- ::google::protobuf::uint32 cached_has_bits = 0;
+ ::PROTOBUF_NAMESPACE_ID::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 & 0x00000003u) {
if (cached_has_bits & 0x00000001u) {
- GOOGLE_DCHECK(profile_ != NULL);
+ GOOGLE_DCHECK(profile_ != nullptr);
profile_->Clear();
}
if (cached_has_bits & 0x00000002u) {
- GOOGLE_DCHECK(handle_ != NULL);
+ GOOGLE_DCHECK(handle_ != nullptr);
handle_->Clear();
}
}
@@ -1261,111 +1131,75 @@ void FragmentStatus::Clear() {
_internal_metadata_.Clear();
}
-bool FragmentStatus::MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) {
-#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
- ::google::protobuf::uint32 tag;
- // @@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)) {
+const char* FragmentStatus::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
+#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
+ _Internal::HasBits has_bits{};
+ while (!ctx->Done(&ptr)) {
+ ::PROTOBUF_NAMESPACE_ID::uint32 tag;
+ ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
+ CHK_(ptr);
+ switch (tag >> 3) {
// optional .exec.shared.MinorFragmentProfile profile = 1;
- case 1: {
- 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_unusual;
- }
- break;
- }
-
+ case 1:
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
+ ptr = ctx->ParseMessage(_internal_mutable_profile(), ptr);
+ CHK_(ptr);
+ } else goto handle_unusual;
+ continue;
// optional .exec.bit.FragmentHandle handle = 2;
- case 2: {
- 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_unusual;
- }
- break;
- }
-
+ case 2:
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
+ ptr = ctx->ParseMessage(_internal_mutable_handle(), ptr);
+ CHK_(ptr);
+ } else goto handle_unusual;
+ continue;
default: {
handle_unusual:
- if (tag == 0) {
+ if ((tag & 7) == 4 || tag == 0) {
+ ctx->SetLastTag(tag);
goto success;
}
- DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, _internal_metadata_.mutable_unknown_fields()));
- break;
+ ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
+ CHK_(ptr != nullptr);
+ continue;
}
- }
- }
+ } // switch
+ } // while
success:
- // @@protoc_insertion_point(parse_success:exec.bit.control.FragmentStatus)
- return true;
+ _has_bits_.Or(has_bits);
+ return ptr;
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 (cached_has_bits & 0x00000001u) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 1, this->_internal_profile(), output);
- }
-
- // optional .exec.bit.FragmentHandle handle = 2;
- if (cached_has_bits & 0x00000002u) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 2, this->_internal_handle(), output);
- }
-
- if (_internal_metadata_.have_unknown_fields()) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- _internal_metadata_.unknown_fields(), output);
- }
- // @@protoc_insertion_point(serialize_end:exec.bit.control.FragmentStatus)
+ ptr = nullptr;
+ goto success;
+#undef CHK_
}
-::google::protobuf::uint8* FragmentStatus::InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const {
- (void)deterministic; // Unused
+::PROTOBUF_NAMESPACE_ID::uint8* FragmentStatus::_InternalSerialize(
+ ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
// @@protoc_insertion_point(serialize_to_array_start:exec.bit.control.FragmentStatus)
- ::google::protobuf::uint32 cached_has_bits = 0;
+ ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
(void) cached_has_bits;
cached_has_bits = _has_bits_[0];
// optional .exec.shared.MinorFragmentProfile profile = 1;
if (cached_has_bits & 0x00000001u) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 1, this->_internal_profile(), deterministic, target);
+ target = stream->EnsureSpace(target);
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
+ InternalWriteMessage(
+ 1, _Internal::profile(this), target, stream);
}
// optional .exec.bit.FragmentHandle handle = 2;
if (cached_has_bits & 0x00000002u) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 2, this->_internal_handle(), deterministic, target);
+ target = stream->EnsureSpace(target);
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
+ InternalWriteMessage(
+ 2, _Internal::handle(this), target, stream);
}
- if (_internal_metadata_.have_unknown_fields()) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields(), target);
+ if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
+ _internal_metadata_.unknown_fields(), target, stream);
}
// @@protoc_insertion_point(serialize_to_array_end:exec.bit.control.FragmentStatus)
return target;
@@ -1375,41 +1209,45 @@ size_t FragmentStatus::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:exec.bit.control.FragmentStatus)
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) {
+ ::PROTOBUF_NAMESPACE_ID::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 & 0x00000003u) {
// optional .exec.shared.MinorFragmentProfile profile = 1;
- if (has_profile()) {
+ if (cached_has_bits & 0x00000001u) {
total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
*profile_);
}
// optional .exec.bit.FragmentHandle handle = 2;
- if (has_handle()) {
+ if (cached_has_bits & 0x00000002u) {
total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
*handle_);
}
}
- int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+ if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
+ return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
+ _internal_metadata_, total_size, &_cached_size_);
+ }
+ int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
SetCachedSize(cached_size);
return total_size;
}
-void FragmentStatus::MergeFrom(const ::google::protobuf::Message& from) {
+void FragmentStatus::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
// @@protoc_insertion_point(generalized_merge_from_start:exec.bit.control.FragmentStatus)
GOOGLE_DCHECK_NE(&from, this);
const FragmentStatus* source =
- ::google::protobuf::internal::DynamicCastToGenerated<const FragmentStatus>(
+ ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<FragmentStatus>(
&from);
- if (source == NULL) {
+ if (source == nullptr) {
// @@protoc_insertion_point(generalized_merge_from_cast_fail:exec.bit.control.FragmentStatus)
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
+ ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
} else {
// @@protoc_insertion_point(generalized_merge_from_cast_success:exec.bit.control.FragmentStatus)
MergeFrom(*source);
@@ -1420,21 +1258,21 @@ void FragmentStatus::MergeFrom(const FragmentStatus& from) {
// @@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;
+ ::PROTOBUF_NAMESPACE_ID::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 & 0x00000003u) {
if (cached_has_bits & 0x00000001u) {
- mutable_profile()->::exec::shared::MinorFragmentProfile::MergeFrom(from.profile());
+ _internal_mutable_profile()->::exec::shared::MinorFragmentProfile::MergeFrom(from._internal_profile());
}
if (cached_has_bits & 0x00000002u) {
- mutable_handle()->::exec::bit::FragmentHandle::MergeFrom(from.handle());
+ _internal_mutable_handle()->::exec::bit::FragmentHandle::MergeFrom(from._internal_handle());
}
}
}
-void FragmentStatus::CopyFrom(const ::google::protobuf::Message& from) {
+void FragmentStatus::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
// @@protoc_insertion_point(generalized_copy_from_start:exec.bit.control.FragmentStatus)
if (&from == this) return;
Clear();
@@ -1452,21 +1290,16 @@ bool FragmentStatus::IsInitialized() const {
return true;
}
-void FragmentStatus::Swap(FragmentStatus* other) {
- if (other == this) return;
- InternalSwap(other);
-}
void FragmentStatus::InternalSwap(FragmentStatus* other) {
using std::swap;
+ _internal_metadata_.Swap(&other->_internal_metadata_);
+ swap(_has_bits_[0], other->_has_bits_[0]);
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_BitControl_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_BitControl_2eproto::file_level_metadata[kIndexInFileMessages];
+::PROTOBUF_NAMESPACE_ID::Metadata FragmentStatus::GetMetadata() const {
+ return GetMetadataStatic();
}
@@ -1474,20 +1307,19 @@ void FragmentStatus::InternalSwap(FragmentStatus* other) {
void InitializeFragments::InitAsDefaultInstance() {
}
-#if !defined(_MSC_VER) || _MSC_VER >= 1900
-const int InitializeFragments::kFragmentFieldNumber;
-#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
+class InitializeFragments::_Internal {
+ public:
+ using HasBits = decltype(std::declval<InitializeFragments>()._has_bits_);
+};
InitializeFragments::InitializeFragments()
- : ::google::protobuf::Message(), _internal_metadata_(NULL) {
- ::google::protobuf::internal::InitSCC(
- &protobuf_BitControl_2eproto::scc_info_InitializeFragments.base);
+ : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
SharedCtor();
// @@protoc_insertion_point(constructor:exec.bit.control.InitializeFragments)
}
InitializeFragments::InitializeFragments(const InitializeFragments& from)
- : ::google::protobuf::Message(),
- _internal_metadata_(NULL),
+ : ::PROTOBUF_NAMESPACE_ID::Message(),
+ _internal_metadata_(nullptr),
_has_bits_(from._has_bits_),
fragment_(from.fragment_) {
_internal_metadata_.MergeFrom(from._internal_metadata_);
@@ -1495,6 +1327,7 @@ InitializeFragments::InitializeFragments(const InitializeFragments& from)
}
void InitializeFragments::SharedCtor() {
+ ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_InitializeFragments_BitControl_2eproto.base);
}
InitializeFragments::~InitializeFragments() {
@@ -1508,20 +1341,15 @@ void InitializeFragments::SharedDtor() {
void InitializeFragments::SetCachedSize(int size) const {
_cached_size_.Set(size);
}
-const ::google::protobuf::Descriptor* InitializeFragments::descriptor() {
- ::protobuf_BitControl_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_BitControl_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
-}
-
const InitializeFragments& InitializeFragments::default_instance() {
- ::google::protobuf::internal::InitSCC(&protobuf_BitControl_2eproto::scc_info_InitializeFragments.base);
+ ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_InitializeFragments_BitControl_2eproto.base);
return *internal_default_instance();
}
void InitializeFragments::Clear() {
// @@protoc_insertion_point(message_clear_start:exec.bit.control.InitializeFragments)
- ::google::protobuf::uint32 cached_has_bits = 0;
+ ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
@@ -1530,88 +1358,62 @@ void InitializeFragments::Clear() {
_internal_metadata_.Clear();
}
-bool InitializeFragments::MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) {
-#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
- ::google::protobuf::uint32 tag;
- // @@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)) {
+const char* InitializeFragments::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
+#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
+ while (!ctx->Done(&ptr)) {
+ ::PROTOBUF_NAMESPACE_ID::uint32 tag;
+ ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
+ CHK_(ptr);
+ switch (tag >> 3) {
// repeated .exec.bit.control.PlanFragment fragment = 1;
- case 1: {
- 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_unusual;
- }
- break;
- }
-
+ case 1:
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
+ ptr -= 1;
+ do {
+ ptr += 1;
+ ptr = ctx->ParseMessage(_internal_add_fragment(), ptr);
+ CHK_(ptr);
+ if (!ctx->DataAvailable(ptr)) break;
+ } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr));
+ } else goto handle_unusual;
+ continue;
default: {
handle_unusual:
- if (tag == 0) {
+ if ((tag & 7) == 4 || tag == 0) {
+ ctx->SetLastTag(tag);
goto success;
}
- DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, _internal_metadata_.mutable_unknown_fields()));
- break;
+ ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
+ CHK_(ptr != nullptr);
+ continue;
}
- }
- }
+ } // switch
+ } // while
success:
- // @@protoc_insertion_point(parse_success:exec.bit.control.InitializeFragments)
- return true;
+ return ptr;
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 (unsigned int i = 0,
- n = static_cast<unsigned int>(this->fragment_size()); i < n; i++) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 1,
- this->fragment(static_cast<int>(i)),
- output);
- }
-
- if (_internal_metadata_.have_unknown_fields()) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- _internal_metadata_.unknown_fields(), output);
- }
- // @@protoc_insertion_point(serialize_end:exec.bit.control.InitializeFragments)
+ ptr = nullptr;
+ goto success;
+#undef CHK_
}
-::google::protobuf::uint8* InitializeFragments::InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const {
- (void)deterministic; // Unused
+::PROTOBUF_NAMESPACE_ID::uint8* InitializeFragments::_InternalSerialize(
+ ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
// @@protoc_insertion_point(serialize_to_array_start:exec.bit.control.InitializeFragments)
- ::google::protobuf::uint32 cached_has_bits = 0;
+ ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
(void) cached_has_bits;
// repeated .exec.bit.control.PlanFragment fragment = 1;
for (unsigned int i = 0,
- n = static_cast<unsigned int>(this->fragment_size()); i < n; i++) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 1, this->fragment(static_cast<int>(i)), deterministic, target);
+ n = static_cast<unsigned int>(this->_internal_fragment_size()); i < n; i++) {
+ target = stream->EnsureSpace(target);
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
+ InternalWriteMessage(1, this->_internal_fragment(i), target, stream);
}
- if (_internal_metadata_.have_unknown_fields()) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields(), target);
+ if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
+ _internal_metadata_.unknown_fields(), target, stream);
}
// @@protoc_insertion_point(serialize_to_array_end:exec.bit.control.InitializeFragments)
return target;
@@ -1621,36 +1423,35 @@ size_t InitializeFragments::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:exec.bit.control.InitializeFragments)
size_t total_size = 0;
- if (_internal_metadata_.have_unknown_fields()) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- _internal_metadata_.unknown_fields());
- }
+ ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
// 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)));
- }
+ total_size += 1UL * this->_internal_fragment_size();
+ for (const auto& msg : this->fragment_) {
+ total_size +=
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
}
- int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+ if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
+ return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
+ _internal_metadata_, total_size, &_cached_size_);
+ }
+ int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
SetCachedSize(cached_size);
return total_size;
}
-void InitializeFragments::MergeFrom(const ::google::protobuf::Message& from) {
+void InitializeFragments::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
// @@protoc_insertion_point(generalized_merge_from_start:exec.bit.control.InitializeFragments)
GOOGLE_DCHECK_NE(&from, this);
const InitializeFragments* source =
- ::google::protobuf::internal::DynamicCastToGenerated<const InitializeFragments>(
+ ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<InitializeFragments>(
&from);
- if (source == NULL) {
+ if (source == nullptr) {
// @@protoc_insertion_point(generalized_merge_from_cast_fail:exec.bit.control.InitializeFragments)
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
+ ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
} else {
// @@protoc_insertion_point(generalized_merge_from_cast_success:exec.bit.control.InitializeFragments)
MergeFrom(*source);
@@ -1661,13 +1462,13 @@ void InitializeFragments::MergeFrom(const InitializeFragments& from) {
// @@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;
+ ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
(void) cached_has_bits;
fragment_.MergeFrom(from.fragment_);
}
-void InitializeFragments::CopyFrom(const ::google::protobuf::Message& from) {
+void InitializeFragments::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
// @@protoc_insertion_point(generalized_copy_from_start:exec.bit.control.InitializeFragments)
if (&from == this) return;
Clear();
@@ -1685,20 +1486,15 @@ bool InitializeFragments::IsInitialized() const {
return true;
}
-void InitializeFragments::Swap(InitializeFragments* other) {
- 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_);
+ swap(_has_bits_[0], other->_has_bits_[0]);
+ fragment_.InternalSwap(&other->fragment_);
}
-::google::protobuf::Metadata InitializeFragments::GetMetadata() const {
- protobuf_BitControl_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_BitControl_2eproto::file_level_metadata[kIndexInFileMessages];
+::PROTOBUF_NAMESPACE_ID::Metadata InitializeFragments::GetMetadata() const {
+ return GetMetadataStatic();
}
@@ -1706,33 +1502,38 @@ void InitializeFragments::InternalSwap(InitializeFragments* other) {
void CustomMessage::InitAsDefaultInstance() {
}
-#if !defined(_MSC_VER) || _MSC_VER >= 1900
-const int CustomMessage::kTypeFieldNumber;
-const int CustomMessage::kMessageFieldNumber;
-#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
+class CustomMessage::_Internal {
+ public:
+ using HasBits = decltype(std::declval<CustomMessage>()._has_bits_);
+ static void set_has_type(HasBits* has_bits) {
+ (*has_bits)[0] |= 2u;
+ }
+ static void set_has_message(HasBits* has_bits) {
+ (*has_bits)[0] |= 1u;
+ }
+};
CustomMessage::CustomMessage()
- : ::google::protobuf::Message(), _internal_metadata_(NULL) {
- ::google::protobuf::internal::InitSCC(
- &protobuf_BitControl_2eproto::scc_info_CustomMessage.base);
+ : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
SharedCtor();
// @@protoc_insertion_point(constructor:exec.bit.control.CustomMessage)
}
CustomMessage::CustomMessage(const CustomMessage& from)
- : ::google::protobuf::Message(),
- _internal_metadata_(NULL),
+ : ::PROTOBUF_NAMESPACE_ID::Message(),
+ _internal_metadata_(nullptr),
_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_);
+ message_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
+ if (from._internal_has_message()) {
+ message_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.message_);
}
type_ = from.type_;
// @@protoc_insertion_point(copy_constructor:exec.bit.control.CustomMessage)
}
void CustomMessage::SharedCtor() {
- message_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_CustomMessage_BitControl_2eproto.base);
+ message_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
type_ = 0;
}
@@ -1742,26 +1543,21 @@ CustomMessage::~CustomMessage() {
}
void CustomMessage::SharedDtor() {
- message_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ message_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
}
void CustomMessage::SetCachedSize(int size) const {
_cached_size_.Set(size);
}
-const ::google::protobuf::Descriptor* CustomMessage::descriptor() {
- ::protobuf_BitControl_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_BitControl_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
-}
-
const CustomMessage& CustomMessage::default_instance() {
- ::google::protobuf::internal::InitSCC(&protobuf_BitControl_2eproto::scc_info_CustomMessage.base);
+ ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_CustomMessage_BitControl_2eproto.base);
return *internal_default_instance();
}
void CustomMessage::Clear() {
// @@protoc_insertion_point(message_clear_start:exec.bit.control.CustomMessage)
- ::google::protobuf::uint32 cached_has_bits = 0;
+ ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
@@ -1774,110 +1570,73 @@ void CustomMessage::Clear() {
_internal_metadata_.Clear();
}
-bool CustomMessage::MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) {
-#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
- ::google::protobuf::uint32 tag;
- // @@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)) {
+const char* CustomMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
+#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
+ _Internal::HasBits has_bits{};
+ while (!ctx->Done(&ptr)) {
+ ::PROTOBUF_NAMESPACE_ID::uint32 tag;
+ ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
+ CHK_(ptr);
+ switch (tag >> 3) {
// optional int32 type = 1;
- case 1: {
- 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_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
-
+ case 1:
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) {
+ _Internal::set_has_type(&has_bits);
+ type_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
+ CHK_(ptr);
+ } else goto handle_unusual;
+ continue;
// optional bytes message = 2;
- case 2: {
- 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_unusual;
- }
- break;
- }
-
+ case 2:
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
+ auto str = _internal_mutable_message();
+ ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
+ CHK_(ptr);
+ } else goto handle_unusual;
+ continue;
default: {
handle_unusual:
- if (tag == 0) {
+ if ((tag & 7) == 4 || tag == 0) {
+ ctx->SetLastTag(tag);
goto success;
}
- DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, _internal_metadata_.mutable_unknown_fields()));
- break;
+ ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
+ CHK_(ptr != nullptr);
+ continue;
}
- }
- }
+ } // switch
+ } // while
success:
- // @@protoc_insertion_point(parse_success:exec.bit.control.CustomMessage)
- return true;
+ _has_bits_.Or(has_bits);
+ return ptr;
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 (cached_has_bits & 0x00000002u) {
- ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->type(), output);
- }
-
- // optional bytes message = 2;
- if (cached_has_bits & 0x00000001u) {
- ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
- 2, this->message(), output);
- }
-
- if (_internal_metadata_.have_unknown_fields()) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- _internal_metadata_.unknown_fields(), output);
- }
- // @@protoc_insertion_point(serialize_end:exec.bit.control.CustomMessage)
+ ptr = nullptr;
+ goto success;
+#undef CHK_
}
-::google::protobuf::uint8* CustomMessage::InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const {
- (void)deterministic; // Unused
+::PROTOBUF_NAMESPACE_ID::uint8* CustomMessage::_InternalSerialize(
+ ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
// @@protoc_insertion_point(serialize_to_array_start:exec.bit.control.CustomMessage)
- ::google::protobuf::uint32 cached_has_bits = 0;
+ ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
(void) cached_has_bits;
cached_has_bits = _has_bits_[0];
// optional int32 type = 1;
if (cached_has_bits & 0x00000002u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->type(), target);
+ target = stream->EnsureSpace(target);
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_type(), target);
}
// optional bytes message = 2;
if (cached_has_bits & 0x00000001u) {
- target =
- ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
- 2, this->message(), target);
+ target = stream->WriteBytesMaybeAliased(
+ 2, this->_internal_message(), target);
}
- if (_internal_metadata_.have_unknown_fields()) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields(), target);
+ if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
+ _internal_metadata_.unknown_fields(), target, stream);
}
// @@protoc_insertion_point(serialize_to_array_end:exec.bit.control.CustomMessage)
return target;
@@ -1887,41 +1646,45 @@ 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) {
+ ::PROTOBUF_NAMESPACE_ID::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 & 0x00000003u) {
// optional bytes message = 2;
- if (has_message()) {
+ if (cached_has_bits & 0x00000001u) {
total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::BytesSize(
- this->message());
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize(
+ this->_internal_message());
}
// optional int32 type = 1;
- if (has_type()) {
+ if (cached_has_bits & 0x00000002u) {
total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->type());
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
+ this->_internal_type());
}
}
- int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+ if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
+ return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
+ _internal_metadata_, total_size, &_cached_size_);
+ }
+ int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
SetCachedSize(cached_size);
return total_size;
}
-void CustomMessage::MergeFrom(const ::google::protobuf::Message& from) {
+void CustomMessage::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
// @@protoc_insertion_point(generalized_merge_from_start:exec.bit.control.CustomMessage)
GOOGLE_DCHECK_NE(&from, this);
const CustomMessage* source =
- ::google::protobuf::internal::DynamicCastToGenerated<const CustomMessage>(
+ ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<CustomMessage>(
&from);
- if (source == NULL) {
+ if (source == nullptr) {
// @@protoc_insertion_point(generalized_merge_from_cast_fail:exec.bit.control.CustomMessage)
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
+ ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
} else {
// @@protoc_insertion_point(generalized_merge_from_cast_success:exec.bit.control.CustomMessage)
MergeFrom(*source);
@@ -1932,14 +1695,14 @@ void CustomMessage::MergeFrom(const CustomMessage& from) {
// @@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;
+ ::PROTOBUF_NAMESPACE_ID::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 & 0x00000003u) {
if (cached_has_bits & 0x00000001u) {
- set_has_message();
- message_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.message_);
+ _has_bits_[0] |= 0x00000001u;
+ message_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.message_);
}
if (cached_has_bits & 0x00000002u) {
type_ = from.type_;
@@ -1948,7 +1711,7 @@ void CustomMessage::MergeFrom(const CustomMessage& from) {
}
}
-void CustomMessage::CopyFrom(const ::google::protobuf::Message& from) {
+void CustomMessage::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
// @@protoc_insertion_point(generalized_copy_from_start:exec.bit.control.CustomMessage)
if (&from == this) return;
Clear();
@@ -1966,22 +1729,17 @@ bool CustomMessage::IsInitialized() const {
return true;
}
-void CustomMessage::Swap(CustomMessage* other) {
- if (other == this) return;
- InternalSwap(other);
-}
void CustomMessage::InternalSwap(CustomMessage* other) {
using std::swap;
- message_.Swap(&other->message_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ _internal_metadata_.Swap(&other->_internal_metadata_);
+ swap(_has_bits_[0], other->_has_bits_[0]);
+ message_.Swap(&other->message_, &::PROTOBUF_NAMESPACE_ID::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_BitControl_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_BitControl_2eproto::file_level_metadata[kIndexInFileMessages];
+::PROTOBUF_NAMESPACE_ID::Metadata CustomMessage::GetMetadata() const {
+ return GetMetadataStatic();
}
@@ -1999,85 +1757,137 @@ void PlanFragment::InitAsDefaultInstance() {
::exec::bit::control::_PlanFragment_default_instance_._instance.get_mutable()->context_ = const_cast< ::exec::bit::control::QueryContextInformation*>(
::exec::bit::control::QueryContextInformation::internal_default_instance());
}
+class PlanFragment::_Internal {
+ public:
+ using HasBits = decltype(std::declval<PlanFragment>()._has_bits_);
+ static const ::exec::bit::FragmentHandle& handle(const PlanFragment* msg);
+ static void set_has_handle(HasBits* has_bits) {
+ (*has_bits)[0] |= 4u;
+ }
+ static void set_has_network_cost(HasBits* has_bits) {
+ (*has_bits)[0] |= 128u;
+ }
+ static void set_has_cpu_cost(HasBits* has_bits) {
+ (*has_bits)[0] |= 256u;
+ }
+ static void set_has_disk_cost(HasBits* has_bits) {
+ (*has_bits)[0] |= 512u;
+ }
+ static void set_has_memory_cost(HasBits* has_bits) {
+ (*has_bits)[0] |= 1024u;
+ }
+ static void set_has_fragment_json(HasBits* has_bits) {
+ (*has_bits)[0] |= 1u;
+ }
+ static void set_has_leaf_fragment(HasBits* has_bits) {
+ (*has_bits)[0] |= 2048u;
+ }
+ static const ::exec::DrillbitEndpoint& assignment(const PlanFragment* msg);
+ static void set_has_assignment(HasBits* has_bits) {
+ (*has_bits)[0] |= 8u;
+ }
+ static const ::exec::DrillbitEndpoint& foreman(const PlanFragment* msg);
+ static void set_has_foreman(HasBits* has_bits) {
+ (*has_bits)[0] |= 16u;
+ }
+ static void set_has_mem_initial(HasBits* has_bits) {
+ (*has_bits)[0] |= 4096u;
+ }
+ static void set_has_mem_max(HasBits* has_bits) {
+ (*has_bits)[0] |= 8192u;
+ }
+ static const ::exec::shared::UserCredentials& credentials(const PlanFragment* msg);
+ static void set_has_credentials(HasBits* has_bits) {
+ (*has_bits)[0] |= 32u;
+ }
+ static void set_has_options_json(HasBits* has_bits) {
+ (*has_bits)[0] |= 2u;
+ }
+ static const ::exec::bit::control::QueryContextInformation& context(const PlanFragment* msg);
+ static void set_has_context(HasBits* has_bits) {
+ (*has_bits)[0] |= 64u;
+ }
+};
+
+const ::exec::bit::FragmentHandle&
+PlanFragment::_Internal::handle(const PlanFragment* msg) {
+ return *msg->handle_;
+}
+const ::exec::DrillbitEndpoint&
+PlanFragment::_Internal::assignment(const PlanFragment* msg) {
+ return *msg->assignment_;
+}
+const ::exec::DrillbitEndpoint&
+PlanFragment::_Internal::foreman(const PlanFragment* msg) {
+ return *msg->foreman_;
+}
+const ::exec::shared::UserCredentials&
+PlanFragment::_Internal::credentials(const PlanFragment* msg) {
+ return *msg->credentials_;
+}
+const ::exec::bit::control::QueryContextInformation&
+PlanFragment::_Internal::context(const PlanFragment* msg) {
+ return *msg->context_;
+}
void PlanFragment::clear_handle() {
- if (handle_ != NULL) handle_->Clear();
- clear_has_handle();
+ if (handle_ != nullptr) handle_->Clear();
+ _has_bits_[0] &= ~0x00000004u;
}
void PlanFragment::clear_assignment() {
- if (assignment_ != NULL) assignment_->Clear();
- clear_has_assignment();
+ if (assignment_ != nullptr) assignment_->Clear();
+ _has_bits_[0] &= ~0x00000008u;
}
void PlanFragment::clear_foreman() {
- if (foreman_ != NULL) foreman_->Clear();
- clear_has_foreman();
+ if (foreman_ != nullptr) foreman_->Clear();
+ _has_bits_[0] &= ~0x00000010u;
}
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;
-const int PlanFragment::kDiskCostFieldNumber;
-const int PlanFragment::kMemoryCostFieldNumber;
-const int PlanFragment::kFragmentJsonFieldNumber;
-const int PlanFragment::kLeafFragmentFieldNumber;
-const int PlanFragment::kAssignmentFieldNumber;
-const int PlanFragment::kForemanFieldNumber;
-const int PlanFragment::kMemInitialFieldNumber;
-const int PlanFragment::kMemMaxFieldNumber;
-const int PlanFragment::kCredentialsFieldNumber;
-const int PlanFragment::kOptionsJsonFieldNumber;
-const int PlanFragment::kContextFieldNumber;
-const int PlanFragment::kCollectorFieldNumber;
-#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
-
+ if (credentials_ != nullptr) credentials_->Clear();
+ _has_bits_[0] &= ~0x00000020u;
+}
PlanFragment::PlanFragment()
- : ::google::protobuf::Message(), _internal_metadata_(NULL) {
- ::google::protobuf::internal::InitSCC(
- &protobuf_BitControl_2eproto::scc_info_PlanFragment.base);
+ : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
SharedCtor();
// @@protoc_insertion_point(constructor:exec.bit.control.PlanFragment)
}
PlanFragment::PlanFragment(const PlanFragment& from)
- : ::google::protobuf::Message(),
- _internal_metadata_(NULL),
+ : ::PROTOBUF_NAMESPACE_ID::Message(),
+ _internal_metadata_(nullptr),
_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_);
+ fragment_json_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
+ if (from._internal_has_fragment_json()) {
+ fragment_json_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::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_);
+ options_json_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
+ if (from._internal_has_options_json()) {
+ options_json_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.options_json_);
}
- if (from.has_handle()) {
+ if (from._internal_has_handle()) {
handle_ = new ::exec::bit::FragmentHandle(*from.handle_);
} else {
- handle_ = NULL;
+ handle_ = nullptr;
}
- if (from.has_assignment()) {
+ if (from._internal_has_assignment()) {
assignment_ = new ::exec::DrillbitEndpoint(*from.assignment_);
} else {
- assignment_ = NULL;
+ assignment_ = nullptr;
}
- if (from.has_foreman()) {
+ if (from._internal_has_foreman()) {
foreman_ = new ::exec::DrillbitEndpoint(*from.foreman_);
} else {
- foreman_ = NULL;
+ foreman_ = nullptr;
}
- if (from.has_credentials()) {
+ if (from._internal_has_credentials()) {
credentials_ = new ::exec::shared::UserCredentials(*from.credentials_);
} else {
- credentials_ = NULL;
+ credentials_ = nullptr;
}
- if (from.has_context()) {
+ if (from._internal_has_context()) {
context_ = new ::exec::bit::control::QueryContextInformation(*from.context_);
} else {
- context_ = NULL;
+ context_ = nullptr;
}
::memcpy(&network_cost_, &from.network_cost_,
static_cast<size_t>(reinterpret_cast<char*>(&mem_max_) -
@@ -2086,13 +1896,14 @@ PlanFragment::PlanFragment(const PlanFragment& from)
}
void PlanFragment::SharedCtor() {
- fragment_json_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- options_json_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_PlanFragment_BitControl_2eproto.base);
+ fragment_json_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
+ options_json_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::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);
+ mem_initial_ = PROTOBUF_LONGLONG(20000000);
+ mem_max_ = PROTOBUF_LONGLONG(2000000000);
}
PlanFragment::~PlanFragment() {
@@ -2101,8 +1912,8 @@ PlanFragment::~PlanFragment() {
}
void PlanFragment::SharedDtor() {
- fragment_json_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- options_json_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ fragment_json_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
+ options_json_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
if (this != internal_default_instance()) delete handle_;
if (this != internal_default_instance()) delete assignment_;
if (this != internal_default_instance()) delete foreman_;
@@ -2113,26 +1924,21 @@ void PlanFragment::SharedDtor() {
void PlanFragment::SetCachedSize(int size) const {
_cached_size_.Set(size);
}
-const ::google::protobuf::Descriptor* PlanFragment::descriptor() {
- ::protobuf_BitControl_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_BitControl_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
-}
-
const PlanFragment& PlanFragment::default_instance() {
- ::google::protobuf::internal::InitSCC(&protobuf_BitControl_2eproto::scc_info_PlanFragment.base);
+ ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_PlanFragment_BitControl_2eproto.base);
return *internal_default_instance();
}
void PlanFragment::Clear() {
// @@protoc_insertion_point(message_clear_start:exec.bit.control.PlanFragment)
- ::google::protobuf::uint32 cached_has_bits = 0;
+ ::PROTOBUF_NAMESPACE_ID::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 & 0x0000007fu) {
if (cached_has_bits & 0x00000001u) {
fragment_json_.ClearNonDefaultToEmptyNoArena();
}
@@ -2140,489 +1946,312 @@ void PlanFragment::Clear() {
options_json_.ClearNonDefaultToEmptyNoArena();
}
if (cached_has_bits & 0x00000004u) {
- GOOGLE_DCHECK(handle_ != NULL);
+ GOOGLE_DCHECK(handle_ != nullptr);
handle_->Clear();
}
if (cached_has_bits & 0x00000008u) {
- GOOGLE_DCHECK(assignment_ != NULL);
+ GOOGLE_DCHECK(assignment_ != nullptr);
assignment_->Clear();
}
if (cached_has_bits & 0x00000010u) {
- GOOGLE_DCHECK(foreman_ != NULL);
+ GOOGLE_DCHECK(foreman_ != nullptr);
foreman_->Clear();
}
if (cached_has_bits & 0x00000020u) {
- GOOGLE_DCHECK(credentials_ != NULL);
+ GOOGLE_DCHECK(credentials_ != nullptr);
credentials_->Clear();
}
if (cached_has_bits & 0x00000040u) {
- GOOGLE_DCHECK(context_ != NULL);
+ GOOGLE_DCHECK(context_ != nullptr);
context_->Clear();
}
}
network_cost_ = 0;
- if (cached_has_bits & 16128u) {
+ if (cached_has_bits & 0x00003f00u) {
::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);
+ mem_initial_ = PROTOBUF_LONGLONG(20000000);
+ mem_max_ = PROTOBUF_LONGLONG(2000000000);
}
_has_bits_.Clear();
_internal_metadata_.Clear();
}
-bool PlanFragment::MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) {
-#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
- ::google::protobuf::uint32 tag;
- // @@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)) {
+const char* PlanFragment::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
+#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
+ _Internal::HasBits has_bits{};
+ while (!ctx->Done(&ptr)) {
+ ::PROTOBUF_NAMESPACE_ID::uint32 tag;
+ ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
+ CHK_(ptr);
+ switch (tag >> 3) {
// optional .exec.bit.FragmentHandle handle = 1;
- case 1: {
- 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_unusual;
- }
- break;
- }
-
+ case 1:
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
+ ptr = ctx->ParseMessage(_internal_mutable_handle(), ptr);
+ CHK_(ptr);
+ } else goto handle_unusual;
+ continue;
// optional float network_cost = 4;
- case 4: {
- 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_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
-
+ case 4:
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 37)) {
+ _Internal::set_has_network_cost(&has_bits);
+ network_cost_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
+ ptr += sizeof(float);
+ } else goto handle_unusual;
+ continue;
// optional float cpu_cost = 5;
- case 5: {
- 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_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
-
+ case 5:
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 45)) {
+ _Internal::set_has_cpu_cost(&has_bits);
+ cpu_cost_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
+ ptr += sizeof(float);
+ } else goto handle_unusual;
+ continue;
// optional float disk_cost = 6;
- case 6: {
- 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_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
-
+ case 6:
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 53)) {
+ _Internal::set_has_disk_cost(&has_bits);
+ disk_cost_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
+ ptr += sizeof(float);
+ } else goto handle_unusual;
+ continue;
// optional float memory_cost = 7;
- case 7: {
- 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_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
-
+ case 7:
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 61)) {
+ _Internal::set_has_memory_cost(&has_bits);
+ memory_cost_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
+ ptr += sizeof(float);
+ } else goto handle_unusual;
+ continue;
// optional string fragment_json = 8;
- case 8: {
- 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::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_unusual;
- }
- break;
- }
-
+ case 8:
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 66)) {
+ auto str = _internal_mutable_fragment_json();
+ ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
+ #ifndef NDEBUG
+ ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "exec.bit.control.PlanFragment.fragment_json");
+ #endif // !NDEBUG
+ CHK_(ptr);
+ } else goto handle_unusual;
+ continue;
// optional bool leaf_fragment = 9;
- case 9: {
- 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_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
-
+ case 9:
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 72)) {
+ _Internal::set_has_leaf_fragment(&has_bits);
+ leaf_fragment_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
+ CHK_(ptr);
+ } else goto handle_unusual;
+ continue;
// optional .exec.DrillbitEndpoint assignment = 10;
- case 10: {
- 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_unusual;
- }
- break;
- }
-
+ case 10:
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 82)) {
+ ptr = ctx->ParseMessage(_internal_mutable_assignment(), ptr);
+ CHK_(ptr);
+ } else goto handle_unusual;
+ continue;
// optional .exec.DrillbitEndpoint foreman = 11;
- case 11: {
- 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_unusual;
- }
- break;
- }
-
+ case 11:
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 90)) {
+ ptr = ctx->ParseMessage(_internal_mutable_foreman(), ptr);
+ CHK_(ptr);
+ } else goto handle_unusual;
+ continue;
// optional int64 mem_initial = 12 [default = 20000000];
- case 12: {
- 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_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
-
+ case 12:
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 96)) {
+ _Internal::set_has_mem_initial(&has_bits);
+ mem_initial_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
+ CHK_(ptr);
+ } else goto handle_unusual;
+ continue;
// optional int64 mem_max = 13 [default = 2000000000];
- case 13: {
- 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_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
-
+ case 13:
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 104)) {
+ _Internal::set_has_mem_max(&has_bits);
+ mem_max_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
+ CHK_(ptr);
+ } else goto handle_unusual;
+ continue;
// optional .exec.shared.UserCredentials credentials = 14;
- case 14: {
- 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_unusual;
- }
- break;
- }
-
+ case 14:
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 114)) {
+ ptr = ctx->ParseMessage(_internal_mutable_credentials(), ptr);
+ CHK_(ptr);
+ } else goto handle_unusual;
+ continue;
// optional string options_json = 15;
- case 15: {
- 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::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_unusual;
- }
- break;
- }
-
+ case 15:
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 122)) {
+ auto str = _internal_mutable_options_json();
+ ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
+ #ifndef NDEBUG
+ ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "exec.bit.control.PlanFragment.options_json");
+ #endif // !NDEBUG
+ CHK_(ptr);
+ } else goto handle_unusual;
+ continue;
// optional .exec.bit.control.QueryContextInformation context = 16;
- case 16: {
- 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_unusual;
- }
- break;
- }
-
+ case 16:
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 130)) {
+ ptr = ctx->ParseMessage(_internal_mutable_context(), ptr);
+ CHK_(ptr);
+ } else goto handle_unusual;
+ continue;
// repeated .exec.bit.control.Collector collector = 17;
- case 17: {
- 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_unusual;
- }
- break;
- }
-
+ case 17:
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 138)) {
+ ptr -= 2;
+ do {
+ ptr += 2;
+ ptr = ctx->ParseMessage(_internal_add_collector(), ptr);
+ CHK_(ptr);
+ if (!ctx->DataAvailable(ptr)) break;
+ } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<138>(ptr));
+ } else goto handle_unusual;
+ continue;
default: {
handle_unusual:
- if (tag == 0) {
+ if ((tag & 7) == 4 || tag == 0) {
+ ctx->SetLastTag(tag);
goto success;
}
- DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, _internal_metadata_.mutable_unknown_fields()));
- break;
+ ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
+ CHK_(ptr != nullptr);
+ continue;
}
- }
- }
+ } // switch
+ } // while
success:
- // @@protoc_insertion_point(parse_success:exec.bit.control.PlanFragment)
- return true;
+ _has_bits_.Or(has_bits);
+ return ptr;
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 (cached_has_bits & 0x00000004u) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 1, this->_internal_handle(), output);
- }
-
- // optional float network_cost = 4;
- if (cached_has_bits & 0x00000080u) {
- ::google::protobuf::internal::WireFormatLite::WriteFloat(4, this->network_cost(), output);
- }
-
- // optional float cpu_cost = 5;
- if (cached_has_bits & 0x00000100u) {
- ::google::protobuf::internal::WireFormatLite::WriteFloat(5, this->cpu_cost(), output);
- }
-
- // optional float disk_cost = 6;
- if (cached_has_bits & 0x00000200u) {
- ::google::protobuf::internal::WireFormatLite::WriteFloat(6, this->disk_cost(), output);
- }
-
- // optional float memory_cost = 7;
- if (cached_has_bits & 0x00000400u) {
- ::google::protobuf::internal::WireFormatLite::WriteFloat(7, this->memory_cost(), output);
- }
-
- // optional string fragment_json = 8;
- 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 (cached_has_bits & 0x00000800u) {
- ::google::protobuf::internal::WireFormatLite::WriteBool(9, this->leaf_fragment(), output);
- }
-
- // optional .exec.DrillbitEndpoint assignment = 10;
- if (cached_has_bits & 0x00000008u) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 10, this->_internal_assignment(), output);
- }
-
- // optional .exec.DrillbitEndpoint foreman = 11;
- if (cached_has_bits & 0x00000010u) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 11, this->_internal_foreman(), output);
- }
-
- // optional int64 mem_initial = 12 [default = 20000000];
- if (cached_has_bits & 0x00001000u) {
- ::google::protobuf::internal::WireFormatLite::WriteInt64(12, this->mem_initial(), output);
- }
-
- // optional int64 mem_max = 13 [default = 2000000000];
- if (cached_has_bits & 0x00002000u) {
- ::google::protobuf::internal::WireFormatLite::WriteInt64(13, this->mem_max(), output);
- }
-
- // optional .exec.shared.UserCredentials credentials = 14;
- if (cached_has_bits & 0x00000020u) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 14, this->_internal_credentials(), output);
- }
-
- // optional string options_json = 15;
- 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 (cached_has_bits & 0x00000040u) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 16, this->_internal_context(), output);
- }
-
- // repeated .exec.bit.control.Collector collector = 17;
- for (unsigned int i = 0,
- n = static_cast<unsigned int>(this->collector_size()); i < n; i++) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 17,
- this->collector(static_cast<int>(i)),
- output);
- }
-
- if (_internal_metadata_.have_unknown_fields()) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- _internal_metadata_.unknown_fields(), output);
- }
- // @@protoc_insertion_point(serialize_end:exec.bit.control.PlanFragment)
+ ptr = nullptr;
+ goto success;
+#undef CHK_
}
-::google::protobuf::uint8* PlanFragment::InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const {
- (void)deterministic; // Unused
+::PROTOBUF_NAMESPACE_ID::uint8* PlanFragment::_InternalSerialize(
+ ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
// @@protoc_insertion_point(serialize_to_array_start:exec.bit.control.PlanFragment)
- ::google::protobuf::uint32 cached_has_bits = 0;
+ ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
(void) cached_has_bits;
cached_has_bits = _has_bits_[0];
// optional .exec.bit.FragmentHandle handle = 1;
if (cached_has_bits & 0x00000004u) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 1, this->_internal_handle(), deterministic, target);
+ target = stream->EnsureSpace(target);
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
+ InternalWriteMessage(
+ 1, _Internal::handle(this), target, stream);
}
// optional float network_cost = 4;
if (cached_has_bits & 0x00000080u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(4, this->network_cost(), target);
+ target = stream->EnsureSpace(target);
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(4, this->_internal_network_cost(), target);
}
// optional float cpu_cost = 5;
if (cached_has_bits & 0x00000100u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(5, this->cpu_cost(), target);
+ target = stream->EnsureSpace(target);
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(5, this->_internal_cpu_cost(), target);
}
// optional float disk_cost = 6;
if (cached_has_bits & 0x00000200u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(6, this->disk_cost(), target);
+ target = stream->EnsureSpace(target);
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(6, this->_internal_disk_cost(), target);
}
// optional float memory_cost = 7;
if (cached_has_bits & 0x00000400u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(7, this->memory_cost(), target);
+ target = stream->EnsureSpace(target);
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(7, this->_internal_memory_cost(), target);
}
// optional string fragment_json = 8;
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,
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->_internal_fragment_json().data(), static_cast<int>(this->_internal_fragment_json().length()),
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
"exec.bit.control.PlanFragment.fragment_json");
- target =
- ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
- 8, this->fragment_json(), target);
+ target = stream->WriteStringMaybeAliased(
+ 8, this->_internal_fragment_json(), target);
}
// optional bool leaf_fragment = 9;
if (cached_has_bits & 0x00000800u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(9, this->leaf_fragment(), target);
+ target = stream->EnsureSpace(target);
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(9, this->_internal_leaf_fragment(), target);
}
// optional .exec.DrillbitEndpoint assignment = 10;
if (cached_has_bits & 0x00000008u) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 10, this->_internal_assignment(), deterministic, target);
+ target = stream->EnsureSpace(target);
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
+ InternalWriteMessage(
+ 10, _Internal::assignment(this), target, stream);
}
// optional .exec.DrillbitEndpoint foreman = 11;
if (cached_has_bits & 0x00000010u) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 11, this->_internal_foreman(), deterministic, target);
+ target = stream->EnsureSpace(target);
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
+ InternalWriteMessage(
+ 11, _Internal::foreman(this), target, stream);
}
// optional int64 mem_initial = 12 [default = 20000000];
if (cached_has_bits & 0x00001000u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(12, this->mem_initial(), target);
+ target = stream->EnsureSpace(target);
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(12, this->_internal_mem_initial(), target);
}
// optional int64 mem_max = 13 [default = 2000000000];
if (cached_has_bits & 0x00002000u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(13, this->mem_max(), target);
+ target = stream->EnsureSpace(target);
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(13, this->_internal_mem_max(), target);
}
// optional .exec.shared.UserCredentials credentials = 14;
if (cached_has_bits & 0x00000020u) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 14, this->_internal_credentials(), deterministic, target);
+ target = stream->EnsureSpace(target);
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
+ InternalWriteMessage(
+ 14, _Internal::credentials(this), target, stream);
}
// optional string options_json = 15;
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,
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->_internal_options_json().data(), static_cast<int>(this->_internal_options_json().length()),
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
"exec.bit.control.PlanFragment.options_json");
- target =
- ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
- 15, this->options_json(), target);
+ target = stream->WriteStringMaybeAliased(
+ 15, this->_internal_options_json(), target);
}
// optional .exec.bit.control.QueryContextInformation context = 16;
if (cached_has_bits & 0x00000040u) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 16, this->_internal_context(), deterministic, target);
+ target = stream->EnsureSpace(target);
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
+ InternalWriteMessage(
+ 16, _Internal::context(this), target, stream);
}
// repeated .exec.bit.control.Collector collector = 17;
for (unsigned int i = 0,
- n = static_cast<unsigned int>(this->collector_size()); i < n; i++) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 17, this->collector(static_cast<int>(i)), deterministic, target);
+ n = static_cast<unsigned int>(this->_internal_collector_size()); i < n; i++) {
+ target = stream->EnsureSpace(target);
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
+ InternalWriteMessage(17, this->_internal_collector(i), target, stream);
}
- if (_internal_metadata_.have_unknown_fields()) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields(), target);
+ if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
+ _internal_metadata_.unknown_fields(), target, stream);
}
// @@protoc_insertion_point(serialize_to_array_end:exec.bit.control.PlanFragment)
return target;
@@ -2632,128 +2261,128 @@ 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());
- }
+ ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
// 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)));
- }
+ total_size += 2UL * this->_internal_collector_size();
+ for (const auto& msg : this->collector_) {
+ total_size +=
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
}
- if (_has_bits_[0 / 32] & 255u) {
+ cached_has_bits = _has_bits_[0];
+ if (cached_has_bits & 0x000000ffu) {
// optional string fragment_json = 8;
- if (has_fragment_json()) {
+ if (cached_has_bits & 0x00000001u) {
total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::StringSize(
- this->fragment_json());
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
+ this->_internal_fragment_json());
}
// optional string options_json = 15;
- if (has_options_json()) {
+ if (cached_has_bits & 0x00000002u) {
total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::StringSize(
- this->options_json());
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
+ this->_internal_options_json());
}
// optional .exec.bit.FragmentHandle handle = 1;
- if (has_handle()) {
+ if (cached_has_bits & 0x00000004u) {
total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
*handle_);
}
// optional .exec.DrillbitEndpoint assignment = 10;
- if (has_assignment()) {
+ if (cached_has_bits & 0x00000008u) {
total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
*assignment_);
}
// optional .exec.DrillbitEndpoint foreman = 11;
- if (has_foreman()) {
+ if (cached_has_bits & 0x00000010u) {
total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
*foreman_);
}
// optional .exec.shared.UserCredentials credentials = 14;
- if (has_credentials()) {
+ if (cached_has_bits & 0x00000020u) {
total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
*credentials_);
}
// optional .exec.bit.control.QueryContextInformation context = 16;
- if (has_context()) {
+ if (cached_has_bits & 0x00000040u) {
total_size += 2 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
*context_);
}
// optional float network_cost = 4;
- if (has_network_cost()) {
+ if (cached_has_bits & 0x00000080u) {
total_size += 1 + 4;
}
}
- if (_has_bits_[8 / 32] & 16128u) {
+ if (cached_has_bits & 0x00003f00u) {
// optional float cpu_cost = 5;
- if (has_cpu_cost()) {
+ if (cached_has_bits & 0x00000100u) {
total_size += 1 + 4;
}
// optional float disk_cost = 6;
- if (has_disk_cost()) {
+ if (cached_has_bits & 0x00000200u) {
total_size += 1 + 4;
}
// optional float memory_cost = 7;
- if (has_memory_cost()) {
+ if (cached_has_bits & 0x00000400u) {
total_size += 1 + 4;
}
// optional bool leaf_fragment = 9;
- if (has_leaf_fragment()) {
+ if (cached_has_bits & 0x00000800u) {
total_size += 1 + 1;
}
// optional int64 mem_initial = 12 [default = 20000000];
- if (has_mem_initial()) {
+ if (cached_has_bits & 0x00001000u) {
total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int64Size(
- this->mem_initial());
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size(
+ this->_internal_mem_initial());
}
// optional int64 mem_max = 13 [default = 2000000000];
- if (has_mem_max()) {
+ if (cached_has_bits & 0x00002000u) {
total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int64Size(
- this->mem_max());
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size(
+ this->_internal_mem_max());
}
}
- int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+ if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
+ return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
+ _internal_metadata_, total_size, &_cached_size_);
+ }
+ int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
SetCachedSize(cached_size);
return total_size;
}
-void PlanFragment::MergeFrom(const ::google::protobuf::Message& from) {
+void PlanFragment::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
// @@protoc_insertion_point(generalized_merge_from_start:exec.bit.control.PlanFragment)
GOOGLE_DCHECK_NE(&from, this);
const PlanFragment* source =
- ::google::protobuf::internal::DynamicCastToGenerated<const PlanFragment>(
+ ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<PlanFragment>(
&from);
- if (source == NULL) {
+ if (source == nullptr) {
// @@protoc_insertion_point(generalized_merge_from_cast_fail:exec.bit.control.PlanFragment)
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
+ ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
} else {
// @@protoc_insertion_point(generalized_merge_from_cast_success:exec.bit.control.PlanFragment)
MergeFrom(*source);
@@ -2764,41 +2393,41 @@ void PlanFragment::MergeFrom(const PlanFragment& from) {
// @@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;
+ ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
(void) cached_has_bits;
collector_.MergeFrom(from.collector_);
cached_has_bits = from._has_bits_[0];
- if (cached_has_bits & 255u) {
+ if (cached_has_bits & 0x000000ffu) {
if (cached_has_bits & 0x00000001u) {
- set_has_fragment_json();
- fragment_json_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.fragment_json_);
+ _has_bits_[0] |= 0x00000001u;
+ fragment_json_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.fragment_json_);
}
if (cached_has_bits & 0x00000002u) {
- set_has_options_json();
- options_json_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.options_json_);
+ _has_bits_[0] |= 0x00000002u;
+ options_json_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.options_json_);
}
if (cached_has_bits & 0x00000004u) {
- mutable_handle()->::exec::bit::FragmentHandle::MergeFrom(from.handle());
+ _internal_mutable_handle()->::exec::bit::FragmentHandle::MergeFrom(from._internal_handle());
}
if (cached_has_bits & 0x00000008u) {
- mutable_assignment()->::exec::DrillbitEndpoint::MergeFrom(from.assignment());
+ _internal_mutable_assignment()->::exec::DrillbitEndpoint::MergeFrom(from._internal_assignment());
}
if (cached_has_bits & 0x00000010u) {
- mutable_foreman()->::exec::DrillbitEndpoint::MergeFrom(from.foreman());
+ _internal_mutable_foreman()->::exec::DrillbitEndpoint::MergeFrom(from._internal_foreman());
}
if (cached_has_bits & 0x00000020u) {
- mutable_credentials()->::exec::shared::UserCredentials::MergeFrom(from.credentials());
+ _internal_mutable_credentials()->::exec::shared::UserCredentials::MergeFrom(from._internal_credentials());
}
if (cached_has_bits & 0x00000040u) {
- mutable_context()->::exec::bit::control::QueryContextInformation::MergeFrom(from.context());
+ _internal_mutable_context()->::exec::bit::control::QueryContextInformation::MergeFrom(from._internal_context());
}
if (cached_has_bits & 0x00000080u) {
network_cost_ = from.network_cost_;
}
_has_bits_[0] |= cached_has_bits;
}
- if (cached_has_bits & 16128u) {
+ if (cached_has_bits & 0x00003f00u) {
if (cached_has_bits & 0x00000100u) {
cpu_cost_ = from.cpu_cost_;
}
@@ -2821,7 +2450,7 @@ void PlanFragment::MergeFrom(const PlanFragment& from) {
}
}
-void PlanFragment::CopyFrom(const ::google::protobuf::Message& from) {
+void PlanFragment::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
// @@protoc_insertion_point(generalized_copy_from_start:exec.bit.control.PlanFragment)
if (&from == this) return;
Clear();
@@ -2839,16 +2468,14 @@ bool PlanFragment::IsInitialized() const {
return true;
}
-void PlanFragment::Swap(PlanFragment* other) {
- 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(),
+ _internal_metadata_.Swap(&other->_internal_metadata_);
+ swap(_has_bits_[0], other->_has_bits_[0]);
+ collector_.InternalSwap(&other->collector_);
+ fragment_json_.Swap(&other->fragment_json_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
GetArenaNoVirtual());
- options_json_.Swap(&other->options_json_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ options_json_.Swap(&other->options_json_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
GetArenaNoVirtual());
swap(handle_, other->handle_);
swap(assignment_, other->assignment_);
@@ -2862,13 +2489,10 @@ void PlanFragment::InternalSwap(PlanFragment* other) {
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_BitControl_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_BitControl_2eproto::file_level_metadata[kIndexInFileMessages];
+::PROTOBUF_NAMESPACE_ID::Metadata PlanFragment::GetMetadata() const {
+ return GetMetadataStatic();
}
@@ -2876,24 +2500,31 @@ void PlanFragment::InternalSwap(PlanFragment* other) {
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;
-const int Collector::kEnableDynamicFcFieldNumber;
-#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
+class Collector::_Internal {
+ public:
+ using HasBits = decltype(std::declval<Collector>()._has_bits_);
+ static void set_has_opposite_major_fragment_id(HasBits* has_bits) {
+ (*has_bits)[0] |= 1u;
+ }
+ static void set_has_supports_out_of_order(HasBits* has_bits) {
+ (*has_bits)[0] |= 2u;
+ }
+ static void set_has_is_spooling(HasBits* has_bits) {
+ (*has_bits)[0] |= 4u;
+ }
+ static void set_has_enable_dynamic_fc(HasBits* has_bits) {
+ (*has_bits)[0] |= 8u;
+ }
+};
Collector::Collector()
- : ::google::protobuf::Message(), _internal_metadata_(NULL) {
- ::google::protobuf::internal::InitSCC(
- &protobuf_BitControl_2eproto::scc_info_Collector.base);
+ : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
SharedCtor();
// @@protoc_insertion_point(constructor:exec.bit.control.Collector)
}
Collector::Collector(const Collector& from)
- : ::google::protobuf::Message(),
- _internal_metadata_(NULL),
+ : ::PROTOBUF_NAMESPACE_ID::Message(),
+ _internal_metadata_(nullptr),
_has_bits_(from._has_bits_),
incoming_minor_fragment_(from.incoming_minor_fragment_) {
_internal_metadata_.MergeFrom(from._internal_metadata_);
@@ -2920,26 +2551,21 @@ void Collector::SharedDtor() {
void Collector::SetCachedSize(int size) const {
_cached_size_.Set(size);
}
-const ::google::protobuf::Descriptor* Collector::descriptor() {
- ::protobuf_BitControl_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_BitControl_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
-}
-
const Collector& Collector::default_instance() {
- ::google::protobuf::internal::InitSCC(&protobuf_BitControl_2eproto::scc_info_Collector.base);
+ ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_Collector_BitControl_2eproto.base);
return *internal_default_instance();
}
void Collector::Clear() {
// @@protoc_insertion_point(message_clear_start:exec.bit.control.Collector)
- ::google::protobuf::uint32 cached_has_bits = 0;
+ ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
incoming_minor_fragment_.Clear();
cached_has_bits = _has_bits_[0];
- if (cached_has_bits & 15u) {
+ if (cached_has_bits & 0x0000000fu) {
::memset(&opposite_major_fragment_id_, 0, static_cast<size_t>(
reinterpret_cast<char*>(&enable_dynamic_fc_) -
reinterpret_cast<char*>(&opposite_major_fragment_id_)) + sizeof(enable_dynamic_fc_));
@@ -2948,200 +2574,120 @@ void Collector::Clear() {
_internal_metadata_.Clear();
}
-bool Collector::MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) {
-#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
- ::google::protobuf::uint32 tag;
- // @@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)) {
+const char* Collector::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
+#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
+ _Internal::HasBits has_bits{};
+ while (!ctx->Done(&ptr)) {
+ ::PROTOBUF_NAMESPACE_ID::uint32 tag;
+ ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
+ CHK_(ptr);
+ switch (tag >> 3) {
// optional int32 opposite_major_fragment_id = 1;
- case 1: {
- 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_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
-
+ case 1:
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) {
+ _Internal::set_has_opposite_major_fragment_id(&has_bits);
+ opposite_major_fragment_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
+ CHK_(ptr);
+ } else goto handle_unusual;
+ continue;
// repeated int32 incoming_minor_fragment = 2 [packed = true];
- case 2: {
- 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 (
- 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, 18u, input, this->mutable_incoming_minor_fragment())));
- } else {
- goto handle_unusual;
- }
- break;
- }
-
+ case 2:
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
+ ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedInt32Parser(_internal_mutable_incoming_minor_fragment(), ptr, ctx);
+ CHK_(ptr);
+ } else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16) {
+ _internal_add_incoming_minor_fragment(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr));
+ CHK_(ptr);
+ } else goto handle_unusual;
+ continue;
// optional bool supports_out_of_order = 3;
- case 3: {
- 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_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
-
+ case 3:
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) {
+ _Internal::set_has_supports_out_of_order(&has_bits);
+ supports_out_of_order_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
+ CHK_(ptr);
+ } else goto handle_unusual;
+ continue;
// optional bool is_spooling = 4;
- case 4: {
- 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_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
-
+ case 4:
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) {
+ _Internal::set_has_is_spooling(&has_bits);
+ is_spooling_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
+ CHK_(ptr);
+ } else goto handle_unusual;
+ continue;
// optional bool enable_dynamic_fc = 5;
- case 5: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) {
- set_has_enable_dynamic_fc();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
- input, &enable_dynamic_fc_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
-
+ case 5:
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 40)) {
+ _Internal::set_has_enable_dynamic_fc(&has_bits);
+ enable_dynamic_fc_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
+ CHK_(ptr);
+ } else goto handle_unusual;
+ continue;
default: {
handle_unusual:
- if (tag == 0) {
+ if ((tag & 7) == 4 || tag == 0) {
+ ctx->SetLastTag(tag);
goto success;
}
- DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, _internal_metadata_.mutable_unknown_fields()));
- break;
+ ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
+ CHK_(ptr != nullptr);
+ continue;
}
- }
- }
+ } // switch
+ } // while
success:
- // @@protoc_insertion_point(parse_success:exec.bit.control.Collector)
- return true;
+ _has_bits_.Or(has_bits);
+ return ptr;
failure:
- // @@protoc_insertion_point(parse_failure:exec.bit.control.Collector)
- return false;
-#undef DO_
+ ptr = nullptr;
+ goto success;
+#undef CHK_
}
-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 (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(static_cast< ::google::protobuf::uint32>(
- _incoming_minor_fragment_cached_byte_size_));
- }
- 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 (cached_has_bits & 0x00000002u) {
- ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->supports_out_of_order(), output);
- }
-
- // optional bool is_spooling = 4;
- if (cached_has_bits & 0x00000004u) {
- ::google::protobuf::internal::WireFormatLite::WriteBool(4, this->is_spooling(), output);
- }
-
- // optional bool enable_dynamic_fc = 5;
- if (cached_has_bits & 0x00000008u) {
- ::google::protobuf::internal::WireFormatLite::WriteBool(5, this->enable_dynamic_fc(), output);
- }
-
- if (_internal_metadata_.have_unknown_fields()) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- _internal_metadata_.unknown_fields(), output);
- }
- // @@protoc_insertion_point(serialize_end:exec.bit.control.Collector)
-}
-
-::google::protobuf::uint8* Collector::InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const {
- (void)deterministic; // Unused
+::PROTOBUF_NAMESPACE_ID::uint8* Collector::_InternalSerialize(
+ ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
// @@protoc_insertion_point(serialize_to_array_start:exec.bit.control.Collector)
- ::google::protobuf::uint32 cached_has_bits = 0;
+ ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
(void) cached_has_bits;
cached_has_bits = _has_bits_[0];
// optional int32 opposite_major_fragment_id = 1;
if (cached_has_bits & 0x00000001u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->opposite_major_fragment_id(), target);
+ target = stream->EnsureSpace(target);
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_opposite_major_fragment_id(), target);
}
// repeated int32 incoming_minor_fragment = 2 [packed = true];
- if (this->incoming_minor_fragment_size() > 0) {
- target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray(
- 2,
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED,
- target);
- target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray(
- static_cast< ::google::protobuf::int32>(
- _incoming_minor_fragment_cached_byte_size_), target);
- target = ::google::protobuf::internal::WireFormatLite::
- WriteInt32NoTagToArray(this->incoming_minor_fragment_, target);
+ {
+ int byte_size = _incoming_minor_fragment_cached_byte_size_.load(std::memory_order_relaxed);
+ if (byte_size > 0) {
+ target = stream->WriteInt32Packed(
+ 2, _internal_incoming_minor_fragment(), byte_size, target);
+ }
}
// optional bool supports_out_of_order = 3;
if (cached_has_bits & 0x00000002u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->supports_out_of_order(), target);
+ target = stream->EnsureSpace(target);
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(3, this->_internal_supports_out_of_order(), target);
}
// optional bool is_spooling = 4;
if (cached_has_bits & 0x00000004u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(4, this->is_spooling(), target);
+ target = stream->EnsureSpace(target);
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(4, this->_internal_is_spooling(), target);
}
// optional bool enable_dynamic_fc = 5;
if (cached_has_bits & 0x00000008u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(5, this->enable_dynamic_fc(), target);
+ target = stream->EnsureSpace(target);
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(5, this->_internal_enable_dynamic_fc(), target);
}
- if (_internal_metadata_.have_unknown_fields()) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields(), target);
+ if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
+ _internal_metadata_.unknown_fields(), target, stream);
}
// @@protoc_insertion_point(serialize_to_array_end:exec.bit.control.Collector)
return target;
@@ -3151,65 +2697,68 @@ size_t Collector::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:exec.bit.control.Collector)
size_t total_size = 0;
- if (_internal_metadata_.have_unknown_fields()) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- _internal_metadata_.unknown_fields());
- }
+ ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
// repeated int32 incoming_minor_fragment = 2 [packed = true];
{
- size_t data_size = ::google::protobuf::internal::WireFormatLite::
+ size_t data_size = ::PROTOBUF_NAMESPACE_ID::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));
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
+ static_cast<::PROTOBUF_NAMESPACE_ID::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();
+ int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size);
+ _incoming_minor_fragment_cached_byte_size_.store(cached_size,
+ std::memory_order_relaxed);
total_size += data_size;
}
- if (_has_bits_[0 / 32] & 15u) {
+ cached_has_bits = _has_bits_[0];
+ if (cached_has_bits & 0x0000000fu) {
// optional int32 opposite_major_fragment_id = 1;
- if (has_opposite_major_fragment_id()) {
+ if (cached_has_bits & 0x00000001u) {
total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->opposite_major_fragment_id());
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
+ this->_internal_opposite_major_fragment_id());
}
// optional bool supports_out_of_order = 3;
- if (has_supports_out_of_order()) {
+ if (cached_has_bits & 0x00000002u) {
total_size += 1 + 1;
}
// optional bool is_spooling = 4;
- if (has_is_spooling()) {
+ if (cached_has_bits & 0x00000004u) {
total_size += 1 + 1;
}
// optional bool enable_dynamic_fc = 5;
- if (has_enable_dynamic_fc()) {
+ if (cached_has_bits & 0x00000008u) {
total_size += 1 + 1;
}
}
- int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+ if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
+ return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
+ _internal_metadata_, total_size, &_cached_size_);
+ }
+ int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
SetCachedSize(cached_size);
return total_size;
}
-void Collector::MergeFrom(const ::google::protobuf::Message& from) {
+void Collector::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
// @@protoc_insertion_point(generalized_merge_from_start:exec.bit.control.Collector)
GOOGLE_DCHECK_NE(&from, this);
const Collector* source =
- ::google::protobuf::internal::DynamicCastToGenerated<const Collector>(
+ ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<Collector>(
&from);
- if (source == NULL) {
+ if (source == nullptr) {
// @@protoc_insertion_point(generalized_merge_from_cast_fail:exec.bit.control.Collector)
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
+ ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
} else {
// @@protoc_insertion_point(generalized_merge_from_cast_success:exec.bit.control.Collector)
MergeFrom(*source);
@@ -3220,12 +2769,12 @@ void Collector::MergeFrom(const Collector& from) {
// @@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;
+ ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
(void) cached_has_bits;
incoming_minor_fragment_.MergeFrom(from.incoming_minor_fragment_);
cached_has_bits = from._has_bits_[0];
- if (cached_has_bits & 15u) {
+ if (cached_has_bits & 0x0000000fu) {
if (cached_has_bits & 0x00000001u) {
opposite_major_fragment_id_ = from.opposite_major_fragment_id_;
}
@@ -3242,7 +2791,7 @@ void Collector::MergeFrom(const Collector& from) {
}
}
-void Collector::CopyFrom(const ::google::protobuf::Message& from) {
+void Collector::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
// @@protoc_insertion_point(generalized_copy_from_start:exec.bit.control.Collector)
if (&from == this) return;
Clear();
@@ -3260,24 +2809,19 @@ bool Collector::IsInitialized() const {
return true;
}
-void Collector::Swap(Collector* other) {
- if (other == this) return;
- InternalSwap(other);
-}
void Collector::InternalSwap(Collector* other) {
using std::swap;
+ _internal_metadata_.Swap(&other->_internal_metadata_);
+ swap(_has_bits_[0], other->_has_bits_[0]);
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(enable_dynamic_fc_, other->enable_dynamic_fc_);
- swap(_has_bits_[0], other->_has_bits_[0]);
- _internal_metadata_.Swap(&other->_internal_metadata_);
}
-::google::protobuf::Metadata Collector::GetMetadata() const {
- protobuf_BitControl_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_BitControl_2eproto::file_level_metadata[kIndexInFileMessages];
+::PROTOBUF_NAMESPACE_ID::Metadata Collector::GetMetadata() const {
+ return GetMetadataStatic();
}
@@ -3285,32 +2829,40 @@ void Collector::InternalSwap(Collector* other) {
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 // !defined(_MSC_VER) || _MSC_VER >= 1900
+class QueryContextInformation::_Internal {
+ public:
+ using HasBits = decltype(std::declval<QueryContextInformation>()._has_bits_);
+ static void set_has_query_start_time(HasBits* has_bits) {
+ (*has_bits)[0] |= 4u;
+ }
+ static void set_has_time_zone(HasBits* has_bits) {
+ (*has_bits)[0] |= 8u;
+ }
+ static void set_has_default_schema_name(HasBits* has_bits) {
+ (*has_bits)[0] |= 1u;
+ }
+ static void set_has_session_id(HasBits* has_bits) {
+ (*has_bits)[0] |= 2u;
+ }
+};
QueryContextInformation::QueryContextInformation()
- : ::google::protobuf::Message(), _internal_metadata_(NULL) {
- ::google::protobuf::internal::InitSCC(
- &protobuf_BitControl_2eproto::scc_info_QueryContextInformation.base);
+ : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
SharedCtor();
// @@protoc_insertion_point(constructor:exec.bit.control.QueryContextInformation)
}
QueryContextInformation::QueryContextInformation(const QueryContextInformation& from)
- : ::google::protobuf::Message(),
- _internal_metadata_(NULL),
+ : ::PROTOBUF_NAMESPACE_ID::Message(),
+ _internal_metadata_(nullptr),
_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_);
+ default_schema_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
+ if (from._internal_has_default_schema_name()) {
+ default_schema_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::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_);
+ session_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
+ if (from._internal_has_session_id()) {
+ session_id_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.session_id_);
}
::memcpy(&query_start_time_, &from.query_start_time_,
static_cast<size_t>(reinterpret_cast<char*>(&time_zone_) -
@@ -3319,8 +2871,9 @@ QueryContextInformation::QueryContextInformation(const QueryContextInformation&
}
void QueryContextInformation::SharedCtor() {
- default_schema_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- session_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_QueryContextInformation_BitControl_2eproto.base);
+ default_schema_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
+ session_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::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_));
@@ -3332,32 +2885,27 @@ QueryContextInformation::~QueryContextInformation() {
}
void QueryContextInformation::SharedDtor() {
- default_schema_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- session_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ default_schema_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
+ session_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
}
void QueryContextInformation::SetCachedSize(int size) const {
_cached_size_.Set(size);
}
-const ::google::protobuf::Descriptor* QueryContextInformation::descriptor() {
- ::protobuf_BitControl_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_BitControl_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
-}
-
const QueryContextInformation& QueryContextInformation::default_instance() {
- ::google::protobuf::internal::InitSCC(&protobuf_BitControl_2eproto::scc_info_QueryContextInformation.base);
+ ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_QueryContextInformation_BitControl_2eproto.base);
return *internal_default_instance();
}
void QueryContextInformation::Clear() {
// @@protoc_insertion_point(message_clear_start:exec.bit.control.QueryContextInformation)
- ::google::protobuf::uint32 cached_has_bits = 0;
+ ::PROTOBUF_NAMESPACE_ID::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 & 0x00000003u) {
if (cached_has_bits & 0x00000001u) {
default_schema_name_.ClearNonDefaultToEmptyNoArena();
}
@@ -3365,7 +2913,7 @@ void QueryContextInformation::Clear() {
session_id_.ClearNonDefaultToEmptyNoArena();
}
}
- if (cached_has_bits & 12u) {
+ if (cached_has_bits & 0x0000000cu) {
::memset(&query_start_time_, 0, static_cast<size_t>(
reinterpret_cast<char*>(&time_zone_) -
reinterpret_cast<char*>(&query_start_time_)) + sizeof(time_zone_));
@@ -3374,183 +2922,115 @@ void QueryContextInformation::Clear() {
_internal_metadata_.Clear();
}
-bool QueryContextInformation::MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) {
-#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
- ::google::protobuf::uint32 tag;
- // @@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)) {
+const char* QueryContextInformation::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
+#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
+ _Internal::HasBits has_bits{};
+ while (!ctx->Done(&ptr)) {
+ ::PROTOBUF_NAMESPACE_ID::uint32 tag;
+ ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
+ CHK_(ptr);
+ switch (tag >> 3) {
// optional int64 query_start_time = 1;
- case 1: {
- 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_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
-
+ case 1:
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) {
+ _Internal::set_has_query_start_time(&has_bits);
+ query_start_time_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
+ CHK_(ptr);
+ } else goto handle_unusual;
+ continue;
// optional int32 time_zone = 2;
- case 2: {
- 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_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
-
+ case 2:
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) {
+ _Internal::set_has_time_zone(&has_bits);
+ time_zone_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
+ CHK_(ptr);
+ } else goto handle_unusual;
+ continue;
// optional string default_schema_name = 3;
- case 3: {
- 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::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_unusual;
- }
- break;
- }
-
+ case 3:
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) {
+ auto str = _internal_mutable_default_schema_name();
+ ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
+ #ifndef NDEBUG
+ ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "exec.bit.control.QueryContextInformation.default_schema_name");
+ #endif // !NDEBUG
+ CHK_(ptr);
+ } else goto handle_unusual;
+ continue;
// optional string session_id = 4;
- case 4: {
- 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::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_unusual;
- }
- break;
- }
-
+ case 4:
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) {
+ auto str = _internal_mutable_session_id();
+ ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
+ #ifndef NDEBUG
+ ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "exec.bit.control.QueryContextInformation.session_id");
+ #endif // !NDEBUG
+ CHK_(ptr);
+ } else goto handle_unusual;
+ continue;
default: {
handle_unusual:
- if (tag == 0) {
+ if ((tag & 7) == 4 || tag == 0) {
+ ctx->SetLastTag(tag);
goto success;
}
- DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, _internal_metadata_.mutable_unknown_fields()));
- break;
+ ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
+ CHK_(ptr != nullptr);
+ continue;
}
- }
- }
+ } // switch
+ } // while
success:
- // @@protoc_insertion_point(parse_success:exec.bit.control.QueryContextInformation)
- return true;
+ _has_bits_.Or(has_bits);
+ return ptr;
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 (cached_has_bits & 0x00000004u) {
- ::google::protobuf::internal::WireFormatLite::WriteInt64(1, this->query_start_time(), output);
- }
-
- // optional int32 time_zone = 2;
- if (cached_has_bits & 0x00000008u) {
- ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->time_zone(), output);
- }
-
- // optional string default_schema_name = 3;
- 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 (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 (_internal_metadata_.have_unknown_fields()) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- _internal_metadata_.unknown_fields(), output);
- }
- // @@protoc_insertion_point(serialize_end:exec.bit.control.QueryContextInformation)
+ ptr = nullptr;
+ goto success;
+#undef CHK_
}
-::google::protobuf::uint8* QueryContextInformation::InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const {
- (void)deterministic; // Unused
+::PROTOBUF_NAMESPACE_ID::uint8* QueryContextInformation::_InternalSerialize(
+ ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
// @@protoc_insertion_point(serialize_to_array_start:exec.bit.control.QueryContextInformation)
- ::google::protobuf::uint32 cached_has_bits = 0;
+ ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
(void) cached_has_bits;
cached_has_bits = _has_bits_[0];
// optional int64 query_start_time = 1;
if (cached_has_bits & 0x00000004u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(1, this->query_start_time(), target);
+ target = stream->EnsureSpace(target);
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(1, this->_internal_query_start_time(), target);
}
// optional int32 time_zone = 2;
if (cached_has_bits & 0x00000008u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->time_zone(), target);
+ target = stream->EnsureSpace(target);
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_time_zone(), target);
}
// optional string default_schema_name = 3;
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,
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->_internal_default_schema_name().data(), static_cast<int>(this->_internal_default_schema_name().length()),
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
"exec.bit.control.QueryContextInformation.default_schema_name");
- target =
- ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
- 3, this->default_schema_name(), target);
+ target = stream->WriteStringMaybeAliased(
+ 3, this->_internal_default_schema_name(), target);
}
// optional string session_id = 4;
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,
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->_internal_session_id().data(), static_cast<int>(this->_internal_session_id().length()),
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
"exec.bit.control.QueryContextInformation.session_id");
- target =
- ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
- 4, this->session_id(), target);
+ target = stream->WriteStringMaybeAliased(
+ 4, this->_internal_session_id(), target);
}
- if (_internal_metadata_.have_unknown_fields()) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields(), target);
+ if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
+ _internal_metadata_.unknown_fields(), target, stream);
}
// @@protoc_insertion_point(serialize_to_array_end:exec.bit.control.QueryContextInformation)
return target;
@@ -3560,55 +3040,59 @@ 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) {
+ ::PROTOBUF_NAMESPACE_ID::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 & 0x0000000fu) {
// optional string default_schema_name = 3;
- if (has_default_schema_name()) {
+ if (cached_has_bits & 0x00000001u) {
total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::StringSize(
- this->default_schema_name());
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
+ this->_internal_default_schema_name());
}
// optional string session_id = 4;
- if (has_session_id()) {
+ if (cached_has_bits & 0x00000002u) {
total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::StringSize(
- this->session_id());
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
+ this->_internal_session_id());
}
// optional int64 query_start_time = 1;
- if (has_query_start_time()) {
+ if (cached_has_bits & 0x00000004u) {
total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int64Size(
- this->query_start_time());
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size(
+ this->_internal_query_start_time());
}
// optional int32 time_zone = 2;
- if (has_time_zone()) {
+ if (cached_has_bits & 0x00000008u) {
total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->time_zone());
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
+ this->_internal_time_zone());
}
}
- int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+ if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
+ return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
+ _internal_metadata_, total_size, &_cached_size_);
+ }
+ int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
SetCachedSize(cached_size);
return total_size;
}
-void QueryContextInformation::MergeFrom(const ::google::protobuf::Message& from) {
+void QueryContextInformation::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
// @@protoc_insertion_point(generalized_merge_from_start:exec.bit.control.QueryContextInformation)
GOOGLE_DCHECK_NE(&from, this);
const QueryContextInformation* source =
- ::google::protobuf::internal::DynamicCastToGenerated<const QueryContextInformation>(
+ ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<QueryContextInformation>(
&from);
- if (source == NULL) {
+ if (source == nullptr) {
// @@protoc_insertion_point(generalized_merge_from_cast_fail:exec.bit.control.QueryContextInformation)
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
+ ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
} else {
// @@protoc_insertion_point(generalized_merge_from_cast_success:exec.bit.control.QueryContextInformation)
MergeFrom(*source);
@@ -3619,18 +3103,18 @@ void QueryContextInformation::MergeFrom(const QueryContextInformation& from) {
// @@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;
+ ::PROTOBUF_NAMESPACE_ID::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 & 0x0000000fu) {
if (cached_has_bits & 0x00000001u) {
- set_has_default_schema_name();
- default_schema_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.default_schema_name_);
+ _has_bits_[0] |= 0x00000001u;
+ default_schema_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.default_schema_name_);
}
if (cached_has_bits & 0x00000002u) {
- set_has_session_id();
- session_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.session_id_);
+ _has_bits_[0] |= 0x00000002u;
+ session_id_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.session_id_);
}
if (cached_has_bits & 0x00000004u) {
query_start_time_ = from.query_start_time_;
@@ -3642,7 +3126,7 @@ void QueryContextInformation::MergeFrom(const QueryContextInformation& from) {
}
}
-void QueryContextInformation::CopyFrom(const ::google::protobuf::Message& from) {
+void QueryContextInformation::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
// @@protoc_insertion_point(generalized_copy_from_start:exec.bit.control.QueryContextInformation)
if (&from == this) return;
Clear();
@@ -3660,25 +3144,20 @@ bool QueryContextInformation::IsInitialized() const {
return true;
}
-void QueryContextInformation::Swap(QueryContextInformation* other) {
- 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(),
+ _internal_metadata_.Swap(&other->_internal_metadata_);
+ swap(_has_bits_[0], other->_has_bits_[0]);
+ default_schema_name_.Swap(&other->default_schema_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
GetArenaNoVirtual());
- session_id_.Swap(&other->session_id_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ session_id_.Swap(&other->session_id_, &::PROTOBUF_NAMESPACE_ID::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_BitControl_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_BitControl_2eproto::file_level_metadata[kIndexInFileMessages];
+::PROTOBUF_NAMESPACE_ID::Metadata QueryContextInformation::GetMetadata() const {
+ return GetMetadataStatic();
}
@@ -3688,32 +3167,43 @@ void WorkQueueStatus::InitAsDefaultInstance() {
::exec::bit::control::_WorkQueueStatus_default_instance_._instance.get_mutable()->endpoint_ = const_cast< ::exec::DrillbitEndpoint*>(
::exec::DrillbitEndpoint::internal_default_instance());
}
+class WorkQueueStatus::_Internal {
+ public:
+ using HasBits = decltype(std::declval<WorkQueueStatus>()._has_bits_);
+ static const ::exec::DrillbitEndpoint& endpoint(const WorkQueueStatus* msg);
+ static void set_has_endpoint(HasBits* has_bits) {
+ (*has_bits)[0] |= 1u;
+ }
+ static void set_has_queue_length(HasBits* has_bits) {
+ (*has_bits)[0] |= 4u;
+ }
+ static void set_has_report_time(HasBits* has_bits) {
+ (*has_bits)[0] |= 2u;
+ }
+};
+
+const ::exec::DrillbitEndpoint&
+WorkQueueStatus::_Internal::endpoint(const WorkQueueStatus* msg) {
+ return *msg->endpoint_;
+}
void WorkQueueStatus::clear_endpoint() {
- if (endpoint_ != NULL) endpoint_->Clear();
- clear_has_endpoint();
+ if (endpoint_ != nullptr) endpoint_->Clear();
+ _has_bits_[0] &= ~0x00000001u;
}
-#if !defined(_MSC_VER) || _MSC_VER >= 1900
-const int WorkQueueStatus::kEndpointFieldNumber;
-const int WorkQueueStatus::kQueueLengthFieldNumber;
-const int WorkQueueStatus::kReportTimeFieldNumber;
-#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
-
WorkQueueStatus::WorkQueueStatus()
- : ::google::protobuf::Message(), _internal_metadata_(NULL) {
- ::google::protobuf::internal::InitSCC(
- &protobuf_BitControl_2eproto::scc_info_WorkQueueStatus.base);
+ : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
SharedCtor();
// @@protoc_insertion_point(constructor:exec.bit.control.WorkQueueStatus)
}
WorkQueueStatus::WorkQueueStatus(const WorkQueueStatus& from)
- : ::google::protobuf::Message(),
- _internal_metadata_(NULL),
+ : ::PROTOBUF_NAMESPACE_ID::Message(),
+ _internal_metadata_(nullptr),
_has_bits_(from._has_bits_) {
_internal_metadata_.MergeFrom(from._internal_metadata_);
- if (from.has_endpoint()) {
+ if (from._internal_has_endpoint()) {
endpoint_ = new ::exec::DrillbitEndpoint(*from.endpoint_);
} else {
- endpoint_ = NULL;
+ endpoint_ = nullptr;
}
::memcpy(&report_time_, &from.report_time_,
static_cast<size_t>(reinterpret_cast<char*>(&queue_length_) -
@@ -3722,6 +3212,7 @@ WorkQueueStatus::WorkQueueStatus(const WorkQueueStatus& from)
}
void WorkQueueStatus::SharedCtor() {
+ ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_WorkQueueStatus_BitControl_2eproto.base);
::memset(&endpoint_, 0, static_cast<size_t>(
reinterpret_cast<char*>(&queue_length_) -
reinterpret_cast<char*>(&endpoint_)) + sizeof(queue_length_));
@@ -3739,29 +3230,24 @@ void WorkQueueStatus::SharedDtor() {
void WorkQueueStatus::SetCachedSize(int size) const {
_cached_size_.Set(size);
}
-const ::google::protobuf::Descriptor* WorkQueueStatus::descriptor() {
- ::protobuf_BitControl_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_BitControl_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
-}
-
const WorkQueueStatus& WorkQueueStatus::default_instance() {
- ::google::protobuf::internal::InitSCC(&protobuf_BitControl_2eproto::scc_info_WorkQueueStatus.base);
+ ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_WorkQueueStatus_BitControl_2eproto.base);
return *internal_default_instance();
}
void WorkQueueStatus::Clear() {
// @@protoc_insertion_point(message_clear_start:exec.bit.control.WorkQueueStatus)
- ::google::protobuf::uint32 cached_has_bits = 0;
+ ::PROTOBUF_NAMESPACE_ID::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);
+ GOOGLE_DCHECK(endpoint_ != nullptr);
endpoint_->Clear();
}
- if (cached_has_bits & 6u) {
+ if (cached_has_bits & 0x00000006u) {
::memset(&report_time_, 0, static_cast<size_t>(
reinterpret_cast<char*>(&queue_length_) -
reinterpret_cast<char*>(&report_time_)) + sizeof(queue_length_));
@@ -3770,134 +3256,88 @@ void WorkQueueStatus::Clear() {
_internal_metadata_.Clear();
}
-bool WorkQueueStatus::MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) {
-#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
- ::google::protobuf::uint32 tag;
- // @@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)) {
+const char* WorkQueueStatus::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
+#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
+ _Internal::HasBits has_bits{};
+ while (!ctx->Done(&ptr)) {
+ ::PROTOBUF_NAMESPACE_ID::uint32 tag;
+ ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
+ CHK_(ptr);
+ switch (tag >> 3) {
// optional .exec.DrillbitEndpoint endpoint = 1;
- case 1: {
- 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_unusual;
- }
- break;
- }
-
+ case 1:
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
+ ptr = ctx->ParseMessage(_internal_mutable_endpoint(), ptr);
+ CHK_(ptr);
+ } else goto handle_unusual;
+ continue;
// optional int32 queue_length = 2;
- case 2: {
- 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_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
-
+ case 2:
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) {
+ _Internal::set_has_queue_length(&has_bits);
+ queue_length_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
+ CHK_(ptr);
+ } else goto handle_unusual;
+ continue;
// optional int64 report_time = 3;
- case 3: {
- 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_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
-
+ case 3:
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) {
+ _Internal::set_has_report_time(&has_bits);
+ report_time_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
+ CHK_(ptr);
+ } else goto handle_unusual;
+ continue;
default: {
handle_unusual:
- if (tag == 0) {
+ if ((tag & 7) == 4 || tag == 0) {
+ ctx->SetLastTag(tag);
goto success;
}
- DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, _internal_metadata_.mutable_unknown_fields()));
- break;
+ ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
+ CHK_(ptr != nullptr);
+ continue;
}
- }
- }
+ } // switch
+ } // while
success:
- // @@protoc_insertion_point(parse_success:exec.bit.control.WorkQueueStatus)
- return true;
+ _has_bits_.Or(has_bits);
+ return ptr;
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 (cached_has_bits & 0x00000001u) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 1, this->_internal_endpoint(), output);
- }
-
- // optional int32 queue_length = 2;
- if (cached_has_bits & 0x00000004u) {
- ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->queue_length(), output);
- }
-
- // optional int64 report_time = 3;
- if (cached_has_bits & 0x00000002u) {
- ::google::protobuf::internal::WireFormatLite::WriteInt64(3, this->report_time(), output);
- }
-
- if (_internal_metadata_.have_unknown_fields()) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- _internal_metadata_.unknown_fields(), output);
- }
- // @@protoc_insertion_point(serialize_end:exec.bit.control.WorkQueueStatus)
+ ptr = nullptr;
+ goto success;
+#undef CHK_
}
-::google::protobuf::uint8* WorkQueueStatus::InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const {
- (void)deterministic; // Unused
+::PROTOBUF_NAMESPACE_ID::uint8* WorkQueueStatus::_InternalSerialize(
+ ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
// @@protoc_insertion_point(serialize_to_array_start:exec.bit.control.WorkQueueStatus)
- ::google::protobuf::uint32 cached_has_bits = 0;
+ ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
(void) cached_has_bits;
cached_has_bits = _has_bits_[0];
// optional .exec.DrillbitEndpoint endpoint = 1;
if (cached_has_bits & 0x00000001u) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 1, this->_internal_endpoint(), deterministic, target);
+ target = stream->EnsureSpace(target);
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
+ InternalWriteMessage(
+ 1, _Internal::endpoint(this), target, stream);
}
// optional int32 queue_length = 2;
if (cached_has_bits & 0x00000004u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->queue_length(), target);
+ target = stream->EnsureSpace(target);
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_queue_length(), target);
}
// optional int64 report_time = 3;
if (cached_has_bits & 0x00000002u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(3, this->report_time(), target);
+ target = stream->EnsureSpace(target);
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(3, this->_internal_report_time(), target);
}
- if (_internal_metadata_.have_unknown_fields()) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields(), target);
+ if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
+ _internal_metadata_.unknown_fields(), target, stream);
}
// @@protoc_insertion_point(serialize_to_array_end:exec.bit.control.WorkQueueStatus)
return target;
@@ -3907,48 +3347,52 @@ size_t WorkQueueStatus::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:exec.bit.control.WorkQueueStatus)
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) {
+ ::PROTOBUF_NAMESPACE_ID::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 & 0x00000007u) {
// optional .exec.DrillbitEndpoint endpoint = 1;
- if (has_endpoint()) {
+ if (cached_has_bits & 0x00000001u) {
total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
*endpoint_);
}
// optional int64 report_time = 3;
- if (has_report_time()) {
+ if (cached_has_bits & 0x00000002u) {
total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int64Size(
- this->report_time());
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size(
+ this->_internal_report_time());
}
// optional int32 queue_length = 2;
- if (has_queue_length()) {
+ if (cached_has_bits & 0x00000004u) {
total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->queue_length());
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
+ this->_internal_queue_length());
}
}
- int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+ if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
+ return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
+ _internal_metadata_, total_size, &_cached_size_);
+ }
+ int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
SetCachedSize(cached_size);
return total_size;
}
-void WorkQueueStatus::MergeFrom(const ::google::protobuf::Message& from) {
+void WorkQueueStatus::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
// @@protoc_insertion_point(generalized_merge_from_start:exec.bit.control.WorkQueueStatus)
GOOGLE_DCHECK_NE(&from, this);
const WorkQueueStatus* source =
- ::google::protobuf::internal::DynamicCastToGenerated<const WorkQueueStatus>(
+ ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<WorkQueueStatus>(
&from);
- if (source == NULL) {
+ if (source == nullptr) {
// @@protoc_insertion_point(generalized_merge_from_cast_fail:exec.bit.control.WorkQueueStatus)
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
+ ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
} else {
// @@protoc_insertion_point(generalized_merge_from_cast_success:exec.bit.control.WorkQueueStatus)
MergeFrom(*source);
@@ -3959,13 +3403,13 @@ void WorkQueueStatus::MergeFrom(const WorkQueueStatus& from) {
// @@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;
+ ::PROTOBUF_NAMESPACE_ID::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 & 0x00000007u) {
if (cached_has_bits & 0x00000001u) {
- mutable_endpoint()->::exec::DrillbitEndpoint::MergeFrom(from.endpoint());
+ _internal_mutable_endpoint()->::exec::DrillbitEndpoint::MergeFrom(from._internal_endpoint());
}
if (cached_has_bits & 0x00000002u) {
report_time_ = from.report_time_;
@@ -3977,7 +3421,7 @@ void WorkQueueStatus::MergeFrom(const WorkQueueStatus& from) {
}
}
-void WorkQueueStatus::CopyFrom(const ::google::protobuf::Message& from) {
+void WorkQueueStatus::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
// @@protoc_insertion_point(generalized_copy_from_start:exec.bit.control.WorkQueueStatus)
if (&from == this) return;
Clear();
@@ -3995,22 +3439,17 @@ bool WorkQueueStatus::IsInitialized() const {
return true;
}
-void WorkQueueStatus::Swap(WorkQueueStatus* other) {
- if (other == this) return;
- InternalSwap(other);
-}
void WorkQueueStatus::InternalSwap(WorkQueueStatus* other) {
using std::swap;
+ _internal_metadata_.Swap(&other->_internal_metadata_);
+ swap(_has_bits_[0], other->_has_bits_[0]);
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_BitControl_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_BitControl_2eproto::file_level_metadata[kIndexInFileMessages];
+::PROTOBUF_NAMESPACE_ID::Metadata WorkQueueStatus::GetMetadata() const {
+ return GetMetadataStatic();
}
@@ -4022,45 +3461,60 @@ void FinishedReceiver::InitAsDefaultInstance() {
::exec::bit::control::_FinishedReceiver_default_instance_._instance.get_mutable()->sender_ = const_cast< ::exec::bit::FragmentHandle*>(
::exec::bit::FragmentHandle::internal_default_instance());
}
+class FinishedReceiver::_Internal {
+ public:
+ using HasBits = decltype(std::declval<FinishedReceiver>()._has_bits_);
+ static const ::exec::bit::FragmentHandle& receiver(const FinishedReceiver* msg);
+ static void set_has_receiver(HasBits* has_bits) {
+ (*has_bits)[0] |= 1u;
+ }
+ static const ::exec::bit::FragmentHandle& sender(const FinishedReceiver* msg);
+ static void set_has_sender(HasBits* has_bits) {
+ (*has_bits)[0] |= 2u;
+ }
+};
+
+const ::exec::bit::FragmentHandle&
+FinishedReceiver::_Internal::receiver(const FinishedReceiver* msg) {
+ return *msg->receiver_;
+}
+const ::exec::bit::FragmentHandle&
+FinishedReceiver::_Internal::sender(const FinishedReceiver* msg) {
+ return *msg->sender_;
+}
void FinishedReceiver::clear_receiver() {
- if (receiver_ != NULL) receiver_->Clear();
- clear_has_receiver();
+ if (receiver_ != nullptr) receiver_->Clear();
+ _has_bits_[0] &= ~0x00000001u;
}
void FinishedReceiver::clear_sender() {
- if (sender_ != NULL) sender_->Clear();
- clear_has_sender();
+ if (sender_ != nullptr) sender_->Clear();
+ _has_bits_[0] &= ~0x00000002u;
}
-#if !defined(_MSC_VER) || _MSC_VER >= 1900
-const int FinishedReceiver::kReceiverFieldNumber;
-const int FinishedReceiver::kSenderFieldNumber;
-#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
-
FinishedReceiver::FinishedReceiver()
- : ::google::protobuf::Message(), _internal_metadata_(NULL) {
- ::google::protobuf::internal::InitSCC(
- &protobuf_BitControl_2eproto::scc_info_FinishedReceiver.base);
+ : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
SharedCtor();
// @@protoc_insertion_point(constructor:exec.bit.control.FinishedReceiver)
}
FinishedReceiver::FinishedReceiver(const FinishedReceiver& from)
- : ::google::protobuf::Message(),
- _internal_metadata_(NULL),
+ : ::PROTOBUF_NAMESPACE_ID::Message(),
+ _internal_metadata_(nullptr),
_has_bits_(from._has_bits_) {
_internal_metadata_.MergeFrom(from._internal_metadata_);
- if (from.has_receiver()) {
+ if (from._internal_has_receiver()) {
receiver_ = new ::exec::bit::FragmentHandle(*from.receiver_);
} else {
- receiver_ = NULL;
+ receiver_ = nullptr;
}
- if (from.has_sender()) {
+ if (from._internal_has_sender()) {
sender_ = new ::exec::bit::FragmentHandle(*from.sender_);
} else {
- sender_ = NULL;
+ sender_ = nullptr;
}
// @@protoc_insertion_point(copy_constructor:exec.bit.control.FinishedReceiver)
}
void FinishedReceiver::SharedCtor() {
+ ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_FinishedReceiver_BitControl_2eproto.base);
::memset(&receiver_, 0, static_cast<size_t>(
reinterpret_cast<char*>(&sender_) -
reinterpret_cast<char*>(&receiver_)) + sizeof(sender_));
@@ -4079,31 +3533,26 @@ void FinishedReceiver::SharedDtor() {
void FinishedReceiver::SetCachedSize(int size) const {
_cached_size_.Set(size);
}
-const ::google::protobuf::Descriptor* FinishedReceiver::descriptor() {
- ::protobuf_BitControl_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_BitControl_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
-}
-
const FinishedReceiver& FinishedReceiver::default_instance() {
- ::google::protobuf::internal::InitSCC(&protobuf_BitControl_2eproto::scc_info_FinishedReceiver.base);
+ ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_FinishedReceiver_BitControl_2eproto.base);
return *internal_default_instance();
}
void FinishedReceiver::Clear() {
// @@protoc_insertion_point(message_clear_start:exec.bit.control.FinishedReceiver)
- ::google::protobuf::uint32 cached_has_bits = 0;
+ ::PROTOBUF_NAMESPACE_ID::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 & 0x00000003u) {
if (cached_has_bits & 0x00000001u) {
- GOOGLE_DCHECK(receiver_ != NULL);
+ GOOGLE_DCHECK(receiver_ != nullptr);
receiver_->Clear();
}
if (cached_has_bits & 0x00000002u) {
- GOOGLE_DCHECK(sender_ != NULL);
+ GOOGLE_DCHECK(sender_ != nullptr);
sender_->Clear();
}
}
@@ -4111,111 +3560,75 @@ void FinishedReceiver::Clear() {
_internal_metadata_.Clear();
}
-bool FinishedReceiver::MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) {
-#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
- ::google::protobuf::uint32 tag;
- // @@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)) {
+const char* FinishedReceiver::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
+#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
+ _Internal::HasBits has_bits{};
+ while (!ctx->Done(&ptr)) {
+ ::PROTOBUF_NAMESPACE_ID::uint32 tag;
+ ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
+ CHK_(ptr);
+ switch (tag >> 3) {
// optional .exec.bit.FragmentHandle receiver = 1;
- case 1: {
- 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_unusual;
- }
- break;
- }
-
+ case 1:
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
+ ptr = ctx->ParseMessage(_internal_mutable_receiver(), ptr);
+ CHK_(ptr);
+ } else goto handle_unusual;
+ continue;
// optional .exec.bit.FragmentHandle sender = 2;
- case 2: {
- 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_unusual;
- }
- break;
- }
-
+ case 2:
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
+ ptr = ctx->ParseMessage(_internal_mutable_sender(), ptr);
+ CHK_(ptr);
+ } else goto handle_unusual;
+ continue;
default: {
handle_unusual:
- if (tag == 0) {
+ if ((tag & 7) == 4 || tag == 0) {
+ ctx->SetLastTag(tag);
goto success;
}
- DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, _internal_metadata_.mutable_unknown_fields()));
- break;
+ ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
+ CHK_(ptr != nullptr);
+ continue;
}
- }
- }
+ } // switch
+ } // while
success:
- // @@protoc_insertion_point(parse_success:exec.bit.control.FinishedReceiver)
- return true;
+ _has_bits_.Or(has_bits);
+ return ptr;
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 (cached_has_bits & 0x00000001u) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 1, this->_internal_receiver(), output);
- }
-
- // optional .exec.bit.FragmentHandle sender = 2;
- if (cached_has_bits & 0x00000002u) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 2, this->_internal_sender(), output);
- }
-
- if (_internal_metadata_.have_unknown_fields()) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- _internal_metadata_.unknown_fields(), output);
- }
- // @@protoc_insertion_point(serialize_end:exec.bit.control.FinishedReceiver)
+ ptr = nullptr;
+ goto success;
+#undef CHK_
}
-::google::protobuf::uint8* FinishedReceiver::InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const {
- (void)deterministic; // Unused
+::PROTOBUF_NAMESPACE_ID::uint8* FinishedReceiver::_InternalSerialize(
+ ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
// @@protoc_insertion_point(serialize_to_array_start:exec.bit.control.FinishedReceiver)
- ::google::protobuf::uint32 cached_has_bits = 0;
+ ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
(void) cached_has_bits;
cached_has_bits = _has_bits_[0];
// optional .exec.bit.FragmentHandle receiver = 1;
if (cached_has_bits & 0x00000001u) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 1, this->_internal_receiver(), deterministic, target);
+ target = stream->EnsureSpace(target);
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
+ InternalWriteMessage(
+ 1, _Internal::receiver(this), target, stream);
}
// optional .exec.bit.FragmentHandle sender = 2;
if (cached_has_bits & 0x00000002u) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 2, this->_internal_sender(), deterministic, target);
+ target = stream->EnsureSpace(target);
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
+ InternalWriteMessage(
+ 2, _Internal::sender(this), target, stream);
}
- if (_internal_metadata_.have_unknown_fields()) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields(), target);
+ if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
+ _internal_metadata_.unknown_fields(), target, stream);
}
// @@protoc_insertion_point(serialize_to_array_end:exec.bit.control.FinishedReceiver)
return target;
@@ -4225,41 +3638,45 @@ size_t FinishedReceiver::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:exec.bit.control.FinishedReceiver)
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) {
+ ::PROTOBUF_NAMESPACE_ID::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 & 0x00000003u) {
// optional .exec.bit.FragmentHandle receiver = 1;
- if (has_receiver()) {
+ if (cached_has_bits & 0x00000001u) {
total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
*receiver_);
}
// optional .exec.bit.FragmentHandle sender = 2;
- if (has_sender()) {
+ if (cached_has_bits & 0x00000002u) {
total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
*sender_);
}
}
- int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+ if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
+ return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
+ _internal_metadata_, total_size, &_cached_size_);
+ }
+ int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
SetCachedSize(cached_size);
return total_size;
}
-void FinishedReceiver::MergeFrom(const ::google::protobuf::Message& from) {
+void FinishedReceiver::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
// @@protoc_insertion_point(generalized_merge_from_start:exec.bit.control.FinishedReceiver)
GOOGLE_DCHECK_NE(&from, this);
const FinishedReceiver* source =
- ::google::protobuf::internal::DynamicCastToGenerated<const FinishedReceiver>(
+ ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<FinishedReceiver>(
&from);
- if (source == NULL) {
+ if (source == nullptr) {
// @@protoc_insertion_point(generalized_merge_from_cast_fail:exec.bit.control.FinishedReceiver)
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
+ ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
} else {
// @@protoc_insertion_point(generalized_merge_from_cast_success:exec.bit.control.FinishedReceiver)
MergeFrom(*source);
@@ -4270,21 +3687,21 @@ void FinishedReceiver::MergeFrom(const FinishedReceiver& from) {
// @@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;
+ ::PROTOBUF_NAMESPACE_ID::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 & 0x00000003u) {
if (cached_has_bits & 0x00000001u) {
- mutable_receiver()->::exec::bit::FragmentHandle::MergeFrom(from.receiver());
+ _internal_mutable_receiver()->::exec::bit::FragmentHandle::MergeFrom(from._internal_receiver());
}
if (cached_has_bits & 0x00000002u) {
- mutable_sender()->::exec::bit::FragmentHandle::MergeFrom(from.sender());
+ _internal_mutable_sender()->::exec::bit::FragmentHandle::MergeFrom(from._internal_sender());
}
}
}
-void FinishedReceiver::CopyFrom(const ::google::protobuf::Message& from) {
+void FinishedReceiver::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
// @@protoc_insertion_point(generalized_copy_from_start:exec.bit.control.FinishedReceiver)
if (&from == this) return;
Clear();
@@ -4302,21 +3719,16 @@ bool FinishedReceiver::IsInitialized() const {
return true;
}
-void FinishedReceiver::Swap(FinishedReceiver* other) {
- if (other == this) return;
- InternalSwap(other);
-}
void FinishedReceiver::InternalSwap(FinishedReceiver* other) {
using std::swap;
+ _internal_metadata_.Swap(&other->_internal_metadata_);
+ swap(_has_bits_[0], other->_has_bits_[0]);
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_BitControl_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_BitControl_2eproto::file_level_metadata[kIndexInFileMessages];
+::PROTOBUF_NAMESPACE_ID::Metadata FinishedReceiver::GetMetadata() const {
+ return GetMetadataStatic();
}
@@ -4324,39 +3736,38 @@ void FinishedReceiver::InternalSwap(FinishedReceiver* other) {
} // 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) {
+PROTOBUF_NAMESPACE_OPEN
+template<> PROTOBUF_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) {
+template<> PROTOBUF_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) {
+template<> PROTOBUF_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) {
+template<> PROTOBUF_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) {
+template<> PROTOBUF_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) {
+template<> PROTOBUF_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) {
+template<> PROTOBUF_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) {
+template<> PROTOBUF_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) {
+template<> PROTOBUF_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) {
+template<> PROTOBUF_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
+PROTOBUF_NAMESPACE_CLOSE
// @@protoc_insertion_point(global_scope)
+#include <google/protobuf/port_undef.inc>
diff --git a/contrib/native/client/src/protobuf/BitControl.pb.h b/contrib/native/client/src/protobuf/BitControl.pb.h
index 8ed08df..dce43cb 100644
--- a/contrib/native/client/src/protobuf/BitControl.pb.h
+++ b/contrib/native/client/src/protobuf/BitControl.pb.h
@@ -1,24 +1,25 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: BitControl.proto
-#ifndef PROTOBUF_INCLUDED_BitControl_2eproto
-#define PROTOBUF_INCLUDED_BitControl_2eproto
+#ifndef GOOGLE_PROTOBUF_INCLUDED_BitControl_2eproto
+#define GOOGLE_PROTOBUF_INCLUDED_BitControl_2eproto
+#include <limits>
#include <string>
-#include <google/protobuf/stubs/common.h>
-
-#if GOOGLE_PROTOBUF_VERSION < 3006001
+#include <google/protobuf/port_def.inc>
+#if PROTOBUF_VERSION < 3011000
#error This file was generated by a newer version of protoc which is
-#error incompatible with your Protocol Buffer headers. Please update
+#error incompatible with your Protocol Buffer headers. Please update
#error your headers.
#endif
-#if 3006001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
+#if 3011001 < 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 incompatible with your Protocol Buffer headers. Please
#error regenerate this file with a newer version of protoc.
#endif
+#include <google/protobuf/port_undef.inc>
#include <google/protobuf/io/coded_stream.h>
#include <google/protobuf/arena.h>
#include <google/protobuf/arenastring.h>
@@ -26,6 +27,7 @@
#include <google/protobuf/generated_message_util.h>
#include <google/protobuf/inlined_string_field.h>
#include <google/protobuf/metadata.h>
+#include <google/protobuf/generated_message_reflection.h>
#include <google/protobuf/message.h>
#include <google/protobuf/repeated_field.h> // IWYU pragma: export
#include <google/protobuf/extension_set.h> // IWYU pragma: export
@@ -35,20 +37,27 @@
#include "Coordination.pb.h"
#include "UserBitShared.pb.h"
// @@protoc_insertion_point(includes)
-#define PROTOBUF_INTERNAL_EXPORT_protobuf_BitControl_2eproto
+#include <google/protobuf/port_def.inc>
+#define PROTOBUF_INTERNAL_EXPORT_BitControl_2eproto
+PROTOBUF_NAMESPACE_OPEN
+namespace internal {
+class AnyMetadata;
+} // namespace internal
+PROTOBUF_NAMESPACE_CLOSE
-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[];
+struct TableStruct_BitControl_2eproto {
+ static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
+ PROTOBUF_SECTION_VARIABLE(protodesc_cold);
+ static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[]
+ PROTOBUF_SECTION_VARIABLE(protodesc_cold);
+ static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[10]
+ PROTOBUF_SECTION_VARIABLE(protodesc_cold);
+ static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
+ static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
+ static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[];
};
-void AddDescriptors();
-} // namespace protobuf_BitControl_2eproto
+extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_BitControl_2eproto;
namespace exec {
namespace bit {
namespace control {
@@ -85,8 +94,7 @@ extern WorkQueueStatusDefaultTypeInternal _WorkQueueStatus_default_instance_;
} // namespace control
} // namespace bit
} // namespace exec
-namespace google {
-namespace protobuf {
+PROTOBUF_NAMESPACE_OPEN
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*);
@@ -97,13 +105,12 @@ template<> ::exec::bit::control::InitializeFragments* Arena::CreateMaybeMessage<
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
+PROTOBUF_NAMESPACE_CLOSE
namespace exec {
namespace bit {
namespace control {
-enum RpcType {
+enum RpcType : int {
HANDSHAKE = 0,
ACK = 1,
GOODBYE = 2,
@@ -124,39 +131,42 @@ enum RpcType {
SASL_MESSAGE = 19
};
bool RpcType_IsValid(int value);
-const RpcType RpcType_MIN = HANDSHAKE;
-const RpcType RpcType_MAX = SASL_MESSAGE;
-const int RpcType_ARRAYSIZE = RpcType_MAX + 1;
-
-const ::google::protobuf::EnumDescriptor* RpcType_descriptor();
-inline const ::std::string& RpcType_Name(RpcType value) {
- return ::google::protobuf::internal::NameOfEnum(
- RpcType_descriptor(), value);
+constexpr RpcType RpcType_MIN = HANDSHAKE;
+constexpr RpcType RpcType_MAX = SASL_MESSAGE;
+constexpr int RpcType_ARRAYSIZE = RpcType_MAX + 1;
+
+const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* RpcType_descriptor();
+template<typename T>
+inline const std::string& RpcType_Name(T enum_t_value) {
+ static_assert(::std::is_same<T, RpcType>::value ||
+ ::std::is_integral<T>::value,
+ "Incorrect type passed to function RpcType_Name.");
+ return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
+ RpcType_descriptor(), enum_t_value);
}
inline bool RpcType_Parse(
- const ::std::string& name, RpcType* value) {
- return ::google::protobuf::internal::ParseNamedEnum<RpcType>(
+ const std::string& name, RpcType* value) {
+ return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<RpcType>(
RpcType_descriptor(), name, value);
}
// ===================================================================
-class BitControlHandshake : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:exec.bit.control.BitControlHandshake) */ {
+class BitControlHandshake :
+ public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:exec.bit.control.BitControlHandshake) */ {
public:
BitControlHandshake();
virtual ~BitControlHandshake();
BitControlHandshake(const BitControlHandshake& from);
-
- inline BitControlHandshake& operator=(const BitControlHandshake& from) {
- CopyFrom(from);
- return *this;
- }
- #if LANG_CXX11
BitControlHandshake(BitControlHandshake&& from) noexcept
: BitControlHandshake() {
*this = ::std::move(from);
}
+ inline BitControlHandshake& operator=(const BitControlHandshake& from) {
+ CopyFrom(from);
+ return *this;
+ }
inline BitControlHandshake& operator=(BitControlHandshake&& from) noexcept {
if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
if (this != &from) InternalSwap(&from);
@@ -165,15 +175,23 @@ class BitControlHandshake : public ::google::protobuf::Message /* @@protoc_inser
}
return *this;
}
- #endif
- inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
+
+ inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
return _internal_metadata_.unknown_fields();
}
- inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
+ inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
return _internal_metadata_.mutable_unknown_fields();
}
- static const ::google::protobuf::Descriptor* descriptor();
+ static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
+ return GetDescriptor();
+ }
+ static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
+ return GetMetadataStatic().descriptor;
+ }
+ static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
+ return GetMetadataStatic().reflection;
+ }
static const BitControlHandshake& default_instance();
static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
@@ -184,141 +202,169 @@ class BitControlHandshake : public ::google::protobuf::Message /* @@protoc_inser
static constexpr int kIndexInFileMessages =
0;
- void Swap(BitControlHandshake* other);
friend void swap(BitControlHandshake& a, BitControlHandshake& b) {
a.Swap(&b);
}
+ inline void Swap(BitControlHandshake* other) {
+ if (other == this) return;
+ InternalSwap(other);
+ }
// implements Message ----------------------------------------------
inline BitControlHandshake* New() const final {
- return CreateMaybeMessage<BitControlHandshake>(NULL);
+ return CreateMaybeMessage<BitControlHandshake>(nullptr);
}
- BitControlHandshake* New(::google::protobuf::Arena* arena) const final {
+ BitControlHandshake* New(::PROTOBUF_NAMESPACE_ID::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 ::PROTOBUF_NAMESPACE_ID::Message& from) final;
+ void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
void CopyFrom(const BitControlHandshake& from);
void MergeFrom(const BitControlHandshake& from);
- void Clear() final;
+ PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
bool IsInitialized() const final;
size_t ByteSizeLong() const final;
- bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) final;
- void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const final;
- ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const final;
+ const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
+ ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
+ ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
int GetCachedSize() const final { return _cached_size_.Get(); }
private:
- void SharedCtor();
- void SharedDtor();
+ inline void SharedCtor();
+ inline void SharedDtor();
void SetCachedSize(int size) const final;
void InternalSwap(BitControlHandshake* other);
+ friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
+ static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
+ return "exec.bit.control.BitControlHandshake";
+ }
private:
- inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
- return NULL;
+ inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
+ return nullptr;
}
inline void* MaybeArenaPtr() const {
- return NULL;
+ return nullptr;
}
public:
- ::google::protobuf::Metadata GetMetadata() const final;
+ ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
+ private:
+ static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
+ ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_BitControl_2eproto);
+ return ::descriptor_table_BitControl_2eproto.file_level_metadata[kIndexInFileMessages];
+ }
+
+ public:
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
+ enum : int {
+ kAuthenticationMechanismsFieldNumber = 4,
+ kEndpointFieldNumber = 3,
+ kRpcVersionFieldNumber = 1,
+ kChannelFieldNumber = 2,
+ };
// repeated string authenticationMechanisms = 4;
int authenticationmechanisms_size() const;
+ private:
+ int _internal_authenticationmechanisms_size() const;
+ public:
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
+ const std::string& authenticationmechanisms(int index) const;
+ std::string* mutable_authenticationmechanisms(int index);
+ void set_authenticationmechanisms(int index, const std::string& value);
+ void set_authenticationmechanisms(int index, std::string&& value);
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
+ std::string* add_authenticationmechanisms();
+ void add_authenticationmechanisms(const std::string& value);
+ void add_authenticationmechanisms(std::string&& value);
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();
+ const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& authenticationmechanisms() const;
+ ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* mutable_authenticationmechanisms();
+ private:
+ const std::string& _internal_authenticationmechanisms(int index) const;
+ std::string* _internal_add_authenticationmechanisms();
+ public:
// optional .exec.DrillbitEndpoint endpoint = 3;
bool has_endpoint() const;
- void clear_endpoint();
- static const int kEndpointFieldNumber = 3;
private:
- const ::exec::DrillbitEndpoint& _internal_endpoint() const;
+ bool _internal_has_endpoint() const;
public:
+ void clear_endpoint();
const ::exec::DrillbitEndpoint& endpoint() const;
::exec::DrillbitEndpoint* release_endpoint();
::exec::DrillbitEndpoint* mutable_endpoint();
void set_allocated_endpoint(::exec::DrillbitEndpoint* endpoint);
+ private:
+ const ::exec::DrillbitEndpoint& _internal_endpoint() const;
+ ::exec::DrillbitEndpoint* _internal_mutable_endpoint();
+ public:
// optional int32 rpc_version = 1;
bool has_rpc_version() const;
+ private:
+ bool _internal_has_rpc_version() const;
+ public:
void clear_rpc_version();
- static const int kRpcVersionFieldNumber = 1;
- ::google::protobuf::int32 rpc_version() const;
- void set_rpc_version(::google::protobuf::int32 value);
+ ::PROTOBUF_NAMESPACE_ID::int32 rpc_version() const;
+ void set_rpc_version(::PROTOBUF_NAMESPACE_ID::int32 value);
+ private:
+ ::PROTOBUF_NAMESPACE_ID::int32 _internal_rpc_version() const;
+ void _internal_set_rpc_version(::PROTOBUF_NAMESPACE_ID::int32 value);
+ public:
// optional .exec.shared.RpcChannel channel = 2 [default = BIT_CONTROL];
bool has_channel() const;
+ private:
+ bool _internal_has_channel() const;
+ public:
void clear_channel();
- static const int kChannelFieldNumber = 2;
::exec::shared::RpcChannel channel() const;
void set_channel(::exec::shared::RpcChannel value);
+ private:
+ ::exec::shared::RpcChannel _internal_channel() const;
+ void _internal_set_channel(::exec::shared::RpcChannel value);
+ public:
// @@protoc_insertion_point(class_scope:exec.bit.control.BitControlHandshake)
private:
- 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_;
+ class _Internal;
+
+ ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
+ ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
+ mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
+ ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string> authenticationmechanisms_;
::exec::DrillbitEndpoint* endpoint_;
- ::google::protobuf::int32 rpc_version_;
+ ::PROTOBUF_NAMESPACE_ID::int32 rpc_version_;
int channel_;
- friend struct ::protobuf_BitControl_2eproto::TableStruct;
+ friend struct ::TableStruct_BitControl_2eproto;
};
// -------------------------------------------------------------------
-class BitStatus : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:exec.bit.control.BitStatus) */ {
+class BitStatus :
+ public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:exec.bit.control.BitStatus) */ {
public:
BitStatus();
virtual ~BitStatus();
BitStatus(const BitStatus& from);
-
- inline BitStatus& operator=(const BitStatus& from) {
- CopyFrom(from);
- return *this;
- }
- #if LANG_CXX11
BitStatus(BitStatus&& from) noexcept
: BitStatus() {
*this = ::std::move(from);
}
+ inline BitStatus& operator=(const BitStatus& from) {
+ CopyFrom(from);
+ return *this;
+ }
inline BitStatus& operator=(BitStatus&& from) noexcept {
if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
if (this != &from) InternalSwap(&from);
@@ -327,15 +373,23 @@ class BitStatus : public ::google::protobuf::Message /* @@protoc_insertion_point
}
return *this;
}
- #endif
- inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
+
+ inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
return _internal_metadata_.unknown_fields();
}
- inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
+ inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
return _internal_metadata_.mutable_unknown_fields();
}
- static const ::google::protobuf::Descriptor* descriptor();
+ static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
+ return GetDescriptor();
+ }
+ static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
+ return GetMetadataStatic().descriptor;
+ }
+ static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
+ return GetMetadataStatic().reflection;
+ }
static const BitStatus& default_instance();
static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
@@ -346,96 +400,116 @@ class BitStatus : public ::google::protobuf::Message /* @@protoc_insertion_point
static constexpr int kIndexInFileMessages =
1;
- void Swap(BitStatus* other);
friend void swap(BitStatus& a, BitStatus& b) {
a.Swap(&b);
}
+ inline void Swap(BitStatus* other) {
+ if (other == this) return;
+ InternalSwap(other);
+ }
// implements Message ----------------------------------------------
inline BitStatus* New() const final {
- return CreateMaybeMessage<BitStatus>(NULL);
+ return CreateMaybeMessage<BitStatus>(nullptr);
}
- BitStatus* New(::google::protobuf::Arena* arena) const final {
+ BitStatus* New(::PROTOBUF_NAMESPACE_ID::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 ::PROTOBUF_NAMESPACE_ID::Message& from) final;
+ void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
void CopyFrom(const BitStatus& from);
void MergeFrom(const BitStatus& from);
- void Clear() final;
+ PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
bool IsInitialized() const final;
size_t ByteSizeLong() const final;
- bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) final;
- void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const final;
- ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const final;
+ const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
+ ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
+ ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
int GetCachedSize() const final { return _cached_size_.Get(); }
private:
- void SharedCtor();
- void SharedDtor();
+ inline void SharedCtor();
+ inline void SharedDtor();
void SetCachedSize(int size) const final;
void InternalSwap(BitStatus* other);
+ friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
+ static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
+ return "exec.bit.control.BitStatus";
+ }
private:
- inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
- return NULL;
+ inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
+ return nullptr;
}
inline void* MaybeArenaPtr() const {
- return NULL;
+ return nullptr;
}
public:
- ::google::protobuf::Metadata GetMetadata() const final;
+ ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
+ private:
+ static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
+ ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_BitControl_2eproto);
+ return ::descriptor_table_BitControl_2eproto.file_level_metadata[kIndexInFileMessages];
+ }
+
+ public:
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
+ enum : int {
+ kFragmentStatusFieldNumber = 1,
+ };
// repeated .exec.bit.control.FragmentStatus fragment_status = 1;
int fragment_status_size() const;
+ private:
+ int _internal_fragment_status_size() const;
+ public:
void clear_fragment_status();
- static const int kFragmentStatusFieldNumber = 1;
::exec::bit::control::FragmentStatus* mutable_fragment_status(int index);
- ::google::protobuf::RepeatedPtrField< ::exec::bit::control::FragmentStatus >*
+ ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::exec::bit::control::FragmentStatus >*
mutable_fragment_status();
+ private:
+ const ::exec::bit::control::FragmentStatus& _internal_fragment_status(int index) const;
+ ::exec::bit::control::FragmentStatus* _internal_add_fragment_status();
+ public:
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 >&
+ const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::exec::bit::control::FragmentStatus >&
fragment_status() const;
// @@protoc_insertion_point(class_scope:exec.bit.control.BitStatus)
private:
+ class _Internal;
- ::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_;
- friend struct ::protobuf_BitControl_2eproto::TableStruct;
+ ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
+ ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
+ mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
+ ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::exec::bit::control::FragmentStatus > fragment_status_;
+ friend struct ::TableStruct_BitControl_2eproto;
};
// -------------------------------------------------------------------
-class FragmentStatus : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:exec.bit.control.FragmentStatus) */ {
+class FragmentStatus :
+ public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:exec.bit.control.FragmentStatus) */ {
public:
FragmentStatus();
virtual ~FragmentStatus();
FragmentStatus(const FragmentStatus& from);
-
- inline FragmentStatus& operator=(const FragmentStatus& from) {
- CopyFrom(from);
- return *this;
- }
- #if LANG_CXX11
FragmentStatus(FragmentStatus&& from) noexcept
: FragmentStatus() {
*this = ::std::move(from);
}
+ inline FragmentStatus& operator=(const FragmentStatus& from) {
+ CopyFrom(from);
+ return *this;
+ }
inline FragmentStatus& operator=(FragmentStatus&& from) noexcept {
if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
if (this != &from) InternalSwap(&from);
@@ -444,15 +518,23 @@ class FragmentStatus : public ::google::protobuf::Message /* @@protoc_insertion_
}
return *this;
}
- #endif
- inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
+
+ inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
return _internal_metadata_.unknown_fields();
}
- inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
+ inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
return _internal_metadata_.mutable_unknown_fields();
}
- static const ::google::protobuf::Descriptor* descriptor();
+ static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
+ return GetDescriptor();
+ }
+ static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
+ return GetMetadataStatic().descriptor;
+ }
+ static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
+ return GetMetadataStatic().reflection;
+ }
static const FragmentStatus& default_instance();
static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
@@ -463,113 +545,130 @@ class FragmentStatus : public ::google::protobuf::Message /* @@protoc_insertion_
static constexpr int kIndexInFileMessages =
2;
- void Swap(FragmentStatus* other);
friend void swap(FragmentStatus& a, FragmentStatus& b) {
a.Swap(&b);
}
+ inline void Swap(FragmentStatus* other) {
+ if (other == this) return;
+ InternalSwap(other);
+ }
// implements Message ----------------------------------------------
inline FragmentStatus* New() const final {
- return CreateMaybeMessage<FragmentStatus>(NULL);
+ return CreateMaybeMessage<FragmentStatus>(nullptr);
}
- FragmentStatus* New(::google::protobuf::Arena* arena) const final {
+ FragmentStatus* New(::PROTOBUF_NAMESPACE_ID::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 ::PROTOBUF_NAMESPACE_ID::Message& from) final;
+ void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
void CopyFrom(const FragmentStatus& from);
void MergeFrom(const FragmentStatus& from);
- void Clear() final;
+ PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
bool IsInitialized() const final;
size_t ByteSizeLong() const final;
- bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) final;
- void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const final;
- ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const final;
+ const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
+ ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
+ ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
int GetCachedSize() const final { return _cached_size_.Get(); }
private:
- void SharedCtor();
- void SharedDtor();
+ inline void SharedCtor();
+ inline void SharedDtor();
void SetCachedSize(int size) const final;
void InternalSwap(FragmentStatus* other);
+ friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
+ static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
+ return "exec.bit.control.FragmentStatus";
+ }
private:
- inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
- return NULL;
+ inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
+ return nullptr;
}
inline void* MaybeArenaPtr() const {
- return NULL;
+ return nullptr;
}
public:
- ::google::protobuf::Metadata GetMetadata() const final;
+ ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
+ private:
+ static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
+ ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_BitControl_2eproto);
+ return ::descriptor_table_BitControl_2eproto.file_level_metadata[kIndexInFileMessages];
+ }
+
+ public:
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
+ enum : int {
+ kProfileFieldNumber = 1,
+ kHandleFieldNumber = 2,
+ };
// optional .exec.shared.MinorFragmentProfile profile = 1;
bool has_profile() const;
- void clear_profile();
- static const int kProfileFieldNumber = 1;
private:
- const ::exec::shared::MinorFragmentProfile& _internal_profile() const;
+ bool _internal_has_profile() const;
public:
+ void clear_profile();
const ::exec::shared::MinorFragmentProfile& profile() const;
::exec::shared::MinorFragmentProfile* release_profile();
::exec::shared::MinorFragmentProfile* mutable_profile();
void set_allocated_profile(::exec::shared::MinorFragmentProfile* profile);
+ private:
+ const ::exec::shared::MinorFragmentProfile& _internal_profile() const;
+ ::exec::shared::MinorFragmentProfile* _internal_mutable_profile();
+ public:
// optional .exec.bit.FragmentHandle handle = 2;
bool has_handle() const;
- void clear_handle();
- static const int kHandleFieldNumber = 2;
private:
- const ::exec::bit::FragmentHandle& _internal_handle() const;
+ bool _internal_has_handle() const;
public:
+ void clear_handle();
const ::exec::bit::FragmentHandle& handle() const;
::exec::bit::FragmentHandle* release_handle();
::exec::bit::FragmentHandle* mutable_handle();
void set_allocated_handle(::exec::bit::FragmentHandle* handle);
+ private:
+ const ::exec::bit::FragmentHandle& _internal_handle() const;
+ ::exec::bit::FragmentHandle* _internal_mutable_handle();
+ public:
// @@protoc_insertion_point(class_scope:exec.bit.control.FragmentStatus)
private:
- 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_;
+ class _Internal;
+
+ ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
+ ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
+ mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
::exec::shared::MinorFragmentProfile* profile_;
::exec::bit::FragmentHandle* handle_;
- friend struct ::protobuf_BitControl_2eproto::TableStruct;
+ friend struct ::TableStruct_BitControl_2eproto;
};
// -------------------------------------------------------------------
-class InitializeFragments : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:exec.bit.control.InitializeFragments) */ {
+class InitializeFragments :
+ public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:exec.bit.control.InitializeFragments) */ {
public:
InitializeFragments();
virtual ~InitializeFragments();
InitializeFragments(const InitializeFragments& from);
-
- inline InitializeFragments& operator=(const InitializeFragments& from) {
- CopyFrom(from);
- return *this;
- }
- #if LANG_CXX11
InitializeFragments(InitializeFragments&& from) noexcept
: InitializeFragments() {
*this = ::std::move(from);
}
+ inline InitializeFragments& operator=(const InitializeFragments& from) {
+ CopyFrom(from);
+ return *this;
+ }
inline InitializeFragments& operator=(InitializeFragments&& from) noexcept {
if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
if (this != &from) InternalSwap(&from);
@@ -578,15 +677,23 @@ class InitializeFragments : public ::google::protobuf::Message /* @@protoc_inser
}
return *this;
}
- #endif
- inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
+
+ inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
return _internal_metadata_.unknown_fields();
}
- inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
+ inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
return _internal_metadata_.mutable_unknown_fields();
}
- static const ::google::protobuf::Descriptor* descriptor();
+ static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
+ return GetDescriptor();
+ }
+ static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
+ return GetMetadataStatic().descriptor;
+ }
+ static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
+ return GetMetadataStatic().reflection;
+ }
static const InitializeFragments& default_instance();
static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
@@ -597,96 +704,116 @@ class InitializeFragments : public ::google::protobuf::Message /* @@protoc_inser
static constexpr int kIndexInFileMessages =
3;
- void Swap(InitializeFragments* other);
friend void swap(InitializeFragments& a, InitializeFragments& b) {
a.Swap(&b);
}
+ inline void Swap(InitializeFragments* other) {
+ if (other == this) return;
+ InternalSwap(other);
+ }
// implements Message ----------------------------------------------
inline InitializeFragments* New() const final {
- return CreateMaybeMessage<InitializeFragments>(NULL);
+ return CreateMaybeMessage<InitializeFragments>(nullptr);
}
- InitializeFragments* New(::google::protobuf::Arena* arena) const final {
+ InitializeFragments* New(::PROTOBUF_NAMESPACE_ID::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 ::PROTOBUF_NAMESPACE_ID::Message& from) final;
+ void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
void CopyFrom(const InitializeFragments& from);
void MergeFrom(const InitializeFragments& from);
- void Clear() final;
+ PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
bool IsInitialized() const final;
size_t ByteSizeLong() const final;
- bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) final;
- void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const final;
- ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const final;
+ const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
+ ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
+ ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
int GetCachedSize() const final { return _cached_size_.Get(); }
private:
- void SharedCtor();
- void SharedDtor();
+ inline void SharedCtor();
+ inline void SharedDtor();
void SetCachedSize(int size) const final;
void InternalSwap(InitializeFragments* other);
+ friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
+ static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
+ return "exec.bit.control.InitializeFragments";
+ }
private:
- inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
- return NULL;
+ inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
+ return nullptr;
}
inline void* MaybeArenaPtr() const {
- return NULL;
+ return nullptr;
}
public:
- ::google::protobuf::Metadata GetMetadata() const final;
+ ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
+ private:
+ static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
+ ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_BitControl_2eproto);
+ return ::descriptor_table_BitControl_2eproto.file_level_metadata[kIndexInFileMessages];
+ }
+
+ public:
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
+ enum : int {
+ kFragmentFieldNumber = 1,
+ };
// repeated .exec.bit.control.PlanFragment fragment = 1;
int fragment_size() const;
+ private:
+ int _internal_fragment_size() const;
+ public:
void clear_fragment();
- static const int kFragmentFieldNumber = 1;
::exec::bit::control::PlanFragment* mutable_fragment(int index);
- ::google::protobuf::RepeatedPtrField< ::exec::bit::control::PlanFragment >*
+ ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::exec::bit::control::PlanFragment >*
mutable_fragment();
+ private:
+ const ::exec::bit::control::PlanFragment& _internal_fragment(int index) const;
+ ::exec::bit::control::PlanFragment* _internal_add_fragment();
+ public:
const ::exec::bit::control::PlanFragment& fragment(int index) const;
::exec::bit::control::PlanFragment* add_fragment();
- const ::google::protobuf::RepeatedPtrField< ::exec::bit::control::PlanFragment >&
+ const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::exec::bit::control::PlanFragment >&
fragment() const;
// @@protoc_insertion_point(class_scope:exec.bit.control.InitializeFragments)
private:
+ class _Internal;
- ::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_;
- friend struct ::protobuf_BitControl_2eproto::TableStruct;
+ ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
+ ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
+ mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
+ ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::exec::bit::control::PlanFragment > fragment_;
+ friend struct ::TableStruct_BitControl_2eproto;
};
// -------------------------------------------------------------------
-class CustomMessage : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:exec.bit.control.CustomMessage) */ {
+class CustomMessage :
+ public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:exec.bit.control.CustomMessage) */ {
public:
CustomMessage();
virtual ~CustomMessage();
CustomMessage(const CustomMessage& from);
-
- inline CustomMessage& operator=(const CustomMessage& from) {
- CopyFrom(from);
- return *this;
- }
- #if LANG_CXX11
CustomMessage(CustomMessage&& from) noexcept
: CustomMessage() {
*this = ::std::move(from);
}
+ inline CustomMessage& operator=(const CustomMessage& from) {
+ CopyFrom(from);
+ return *this;
+ }
inline CustomMessage& operator=(CustomMessage&& from) noexcept {
if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
if (this != &from) InternalSwap(&from);
@@ -695,15 +822,23 @@ class CustomMessage : public ::google::protobuf::Message /* @@protoc_insertion_p
}
return *this;
}
- #endif
- inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
+
+ inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
return _internal_metadata_.unknown_fields();
}
- inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
+ inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
return _internal_metadata_.mutable_unknown_fields();
}
- static const ::google::protobuf::Descriptor* descriptor();
+ static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
+ return GetDescriptor();
+ }
+ static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
+ return GetMetadataStatic().descriptor;
+ }
+ static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
+ return GetMetadataStatic().reflection;
+ }
static const CustomMessage& default_instance();
static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
@@ -714,111 +849,133 @@ class CustomMessage : public ::google::protobuf::Message /* @@protoc_insertion_p
static constexpr int kIndexInFileMessages =
4;
- void Swap(CustomMessage* other);
friend void swap(CustomMessage& a, CustomMessage& b) {
a.Swap(&b);
}
+ inline void Swap(CustomMessage* other) {
+ if (other == this) return;
+ InternalSwap(other);
+ }
// implements Message ----------------------------------------------
inline CustomMessage* New() const final {
- return CreateMaybeMessage<CustomMessage>(NULL);
+ return CreateMaybeMessage<CustomMessage>(nullptr);
}
- CustomMessage* New(::google::protobuf::Arena* arena) const final {
+ CustomMessage* New(::PROTOBUF_NAMESPACE_ID::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 ::PROTOBUF_NAMESPACE_ID::Message& from) final;
+ void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
void CopyFrom(const CustomMessage& from);
void MergeFrom(const CustomMessage& from);
- void Clear() final;
+ PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
bool IsInitialized() const final;
size_t ByteSizeLong() const final;
- bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) final;
- void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const final;
- ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const final;
+ const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
+ ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
+ ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
int GetCachedSize() const final { return _cached_size_.Get(); }
private:
- void SharedCtor();
- void SharedDtor();
+ inline void SharedCtor();
+ inline void SharedDtor();
void SetCachedSize(int size) const final;
void InternalSwap(CustomMessage* other);
+ friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
+ static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
+ return "exec.bit.control.CustomMessage";
+ }
private:
- inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
- return NULL;
+ inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
+ return nullptr;
}
inline void* MaybeArenaPtr() const {
- return NULL;
+ return nullptr;
}
public:
- ::google::protobuf::Metadata GetMetadata() const final;
+ ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
+ private:
+ static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
+ ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_BitControl_2eproto);
+ return ::descriptor_table_BitControl_2eproto.file_level_metadata[kIndexInFileMessages];
+ }
+
+ public:
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
+ enum : int {
+ kMessageFieldNumber = 2,
+ kTypeFieldNumber = 1,
+ };
// optional bytes message = 2;
bool has_message() const;
+ private:
+ bool _internal_has_message() const;
+ public:
void clear_message();
- static const int kMessageFieldNumber = 2;
- const ::std::string& message() const;
- void set_message(const ::std::string& value);
- #if LANG_CXX11
- void set_message(::std::string&& value);
- #endif
+ const std::string& message() const;
+ void set_message(const std::string& value);
+ void set_message(std::string&& value);
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);
+ std::string* mutable_message();
+ std::string* release_message();
+ void set_allocated_message(std::string* message);
+ private:
+ const std::string& _internal_message() const;
+ void _internal_set_message(const std::string& value);
+ std::string* _internal_mutable_message();
+ public:
// optional int32 type = 1;
bool has_type() const;
+ private:
+ bool _internal_has_type() const;
+ public:
void clear_type();
- static const int kTypeFieldNumber = 1;
- ::google::protobuf::int32 type() const;
- void set_type(::google::protobuf::int32 value);
+ ::PROTOBUF_NAMESPACE_ID::int32 type() const;
+ void set_type(::PROTOBUF_NAMESPACE_ID::int32 value);
+ private:
+ ::PROTOBUF_NAMESPACE_ID::int32 _internal_type() const;
+ void _internal_set_type(::PROTOBUF_NAMESPACE_ID::int32 value);
+ public:
// @@protoc_insertion_point(class_scope:exec.bit.control.CustomMessage)
private:
- 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_;
- friend struct ::protobuf_BitControl_2eproto::TableStruct;
+ class _Internal;
+
+ ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
+ ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
+ mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
+ ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr message_;
+ ::PROTOBUF_NAMESPACE_ID::int32 type_;
+ friend struct ::TableStruct_BitControl_2eproto;
};
// -------------------------------------------------------------------
-class PlanFragment : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:exec.bit.control.PlanFragment) */ {
+class PlanFragment :
+ public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:exec.bit.control.PlanFragment) */ {
public:
PlanFragment();
virtual ~PlanFragment();
PlanFragment(const PlanFragment& from);
-
- inline PlanFragment& operator=(const PlanFragment& from) {
- CopyFrom(from);
- return *this;
- }
- #if LANG_CXX11
PlanFragment(PlanFragment&& from) noexcept
: PlanFragment() {
*this = ::std::move(from);
}
+ inline PlanFragment& operator=(const PlanFragment& from) {
+ CopyFrom(from);
+ return *this;
+ }
inline PlanFragment& operator=(PlanFragment&& from) noexcept {
if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
if (this != &from) InternalSwap(&from);
@@ -827,15 +984,23 @@ class PlanFragment : public ::google::protobuf::Message /* @@protoc_insertion_po
}
return *this;
}
- #endif
- inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
+
+ inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
return _internal_metadata_.unknown_fields();
}
- inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
+ inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
return _internal_metadata_.mutable_unknown_fields();
}
- static const ::google::protobuf::Descriptor* descriptor();
+ static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
+ return GetDescriptor();
+ }
+ static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
+ return GetMetadataStatic().descriptor;
+ }
+ static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
+ return GetMetadataStatic().reflection;
+ }
static const PlanFragment& default_instance();
static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
@@ -846,244 +1011,318 @@ class PlanFragment : public ::google::protobuf::Message /* @@protoc_insertion_po
static constexpr int kIndexInFileMessages =
5;
- void Swap(PlanFragment* other);
friend void swap(PlanFragment& a, PlanFragment& b) {
a.Swap(&b);
}
+ inline void Swap(PlanFragment* other) {
+ if (other == this) return;
+ InternalSwap(other);
+ }
// implements Message ----------------------------------------------
inline PlanFragment* New() const final {
- return CreateMaybeMessage<PlanFragment>(NULL);
+ return CreateMaybeMessage<PlanFragment>(nullptr);
}
- PlanFragment* New(::google::protobuf::Arena* arena) const final {
+ PlanFragment* New(::PROTOBUF_NAMESPACE_ID::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 ::PROTOBUF_NAMESPACE_ID::Message& from) final;
+ void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
void CopyFrom(const PlanFragment& from);
void MergeFrom(const PlanFragment& from);
- void Clear() final;
+ PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
bool IsInitialized() const final;
size_t ByteSizeLong() const final;
- bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) final;
- void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const final;
- ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const final;
+ const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
+ ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
+ ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
int GetCachedSize() const final { return _cached_size_.Get(); }
private:
- void SharedCtor();
- void SharedDtor();
+ inline void SharedCtor();
+ inline void SharedDtor();
void SetCachedSize(int size) const final;
void InternalSwap(PlanFragment* other);
+ friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
+ static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
+ return "exec.bit.control.PlanFragment";
+ }
private:
- inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
- return NULL;
+ inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
+ return nullptr;
}
inline void* MaybeArenaPtr() const {
- return NULL;
+ return nullptr;
}
public:
- ::google::protobuf::Metadata GetMetadata() const final;
+ ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
+ private:
+ static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
+ ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_BitControl_2eproto);
+ return ::descriptor_table_BitControl_2eproto.file_level_metadata[kIndexInFileMessages];
+ }
+
+ public:
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
+ enum : int {
+ kCollectorFieldNumber = 17,
+ kFragmentJsonFieldNumber = 8,
+ kOptionsJsonFieldNumber = 15,
+ kHandleFieldNumber = 1,
+ kAssignmentFieldNumber = 10,
+ kForemanFieldNumber = 11,
+ kCredentialsFieldNumber = 14,
+ kContextFieldNumber = 16,
+ kNetworkCostFieldNumber = 4,
+ kCpuCostFieldNumber = 5,
+ kDiskCostFieldNumber = 6,
+ kMemoryCostFieldNumber = 7,
+ kLeafFragmentFieldNumber = 9,
+ kMemInitialFieldNumber = 12,
+ kMemMaxFieldNumber = 13,
+ };
// repeated .exec.bit.control.Collector collector = 17;
int collector_size() const;
+ private:
+ int _internal_collector_size() const;
+ public:
void clear_collector();
- static const int kCollectorFieldNumber = 17;
::exec::bit::control::Collector* mutable_collector(int index);
- ::google::protobuf::RepeatedPtrField< ::exec::bit::control::Collector >*
+ ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::exec::bit::control::Collector >*
mutable_collector();
+ private:
+ const ::exec::bit::control::Collector& _internal_collector(int index) const;
+ ::exec::bit::control::Collector* _internal_add_collector();
+ public:
const ::exec::bit::control::Collector& collector(int index) const;
::exec::bit::control::Collector* add_collector();
- const ::google::protobuf::RepeatedPtrField< ::exec::bit::control::Collector >&
+ const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::exec::bit::control::Collector >&
collector() const;
// optional string fragment_json = 8;
bool has_fragment_json() const;
+ private:
+ bool _internal_has_fragment_json() const;
+ public:
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
+ const std::string& fragment_json() const;
+ void set_fragment_json(const std::string& value);
+ void set_fragment_json(std::string&& value);
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);
+ std::string* mutable_fragment_json();
+ std::string* release_fragment_json();
+ void set_allocated_fragment_json(std::string* fragment_json);
+ private:
+ const std::string& _internal_fragment_json() const;
+ void _internal_set_fragment_json(const std::string& value);
+ std::string* _internal_mutable_fragment_json();
+ public:
// optional string options_json = 15;
bool has_options_json() const;
+ private:
+ bool _internal_has_options_json() const;
+ public:
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
+ const std::string& options_json() const;
+ void set_options_json(const std::string& value);
+ void set_options_json(std::string&& value);
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);
+ std::string* mutable_options_json();
+ std::string* release_options_json();
+ void set_allocated_options_json(std::string* options_json);
+ private:
+ const std::string& _internal_options_json() const;
+ void _internal_set_options_json(const std::string& value);
+ std::string* _internal_mutable_options_json();
+ public:
// optional .exec.bit.FragmentHandle handle = 1;
bool has_handle() const;
- void clear_handle();
- static const int kHandleFieldNumber = 1;
private:
- const ::exec::bit::FragmentHandle& _internal_handle() const;
+ bool _internal_has_handle() const;
public:
+ void clear_handle();
const ::exec::bit::FragmentHandle& handle() const;
::exec::bit::FragmentHandle* release_handle();
::exec::bit::FragmentHandle* mutable_handle();
void set_allocated_handle(::exec::bit::FragmentHandle* handle);
+ private:
+ const ::exec::bit::FragmentHandle& _internal_handle() const;
+ ::exec::bit::FragmentHandle* _internal_mutable_handle();
+ public:
// optional .exec.DrillbitEndpoint assignment = 10;
bool has_assignment() const;
- void clear_assignment();
- static const int kAssignmentFieldNumber = 10;
private:
- const ::exec::DrillbitEndpoint& _internal_assignment() const;
+ bool _internal_has_assignment() const;
public:
+ void clear_assignment();
const ::exec::DrillbitEndpoint& assignment() const;
::exec::DrillbitEndpoint* release_assignment();
::exec::DrillbitEndpoint* mutable_assignment();
void set_allocated_assignment(::exec::DrillbitEndpoint* assignment);
+ private:
+ const ::exec::DrillbitEndpoint& _internal_assignment() const;
+ ::exec::DrillbitEndpoint* _internal_mutable_assignment();
+ public:
// optional .exec.DrillbitEndpoint foreman = 11;
bool has_foreman() const;
- void clear_foreman();
- static const int kForemanFieldNumber = 11;
private:
- const ::exec::DrillbitEndpoint& _internal_foreman() const;
+ bool _internal_has_foreman() const;
public:
+ void clear_foreman();
const ::exec::DrillbitEndpoint& foreman() const;
::exec::DrillbitEndpoint* release_foreman();
::exec::DrillbitEndpoint* mutable_foreman();
void set_allocated_foreman(::exec::DrillbitEndpoint* foreman);
+ private:
+ const ::exec::DrillbitEndpoint& _internal_foreman() const;
+ ::exec::DrillbitEndpoint* _internal_mutable_foreman();
+ public:
// 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;
+ bool _internal_has_credentials() const;
public:
+ void clear_credentials();
const ::exec::shared::UserCredentials& credentials() const;
::exec::shared::UserCredentials* release_credentials();
::exec::shared::UserCredentials* mutable_credentials();
void set_allocated_credentials(::exec::shared::UserCredentials* credentials);
+ private:
+ const ::exec::shared::UserCredentials& _internal_credentials() const;
+ ::exec::shared::UserCredentials* _internal_mutable_credentials();
+ public:
// 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;
+ bool _internal_has_context() const;
public:
+ void clear_context();
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);
+ private:
+ const ::exec::bit::control::QueryContextInformation& _internal_context() const;
+ ::exec::bit::control::QueryContextInformation* _internal_mutable_context();
+ public:
// optional float network_cost = 4;
bool has_network_cost() const;
+ private:
+ bool _internal_has_network_cost() const;
+ public:
void clear_network_cost();
- static const int kNetworkCostFieldNumber = 4;
float network_cost() const;
void set_network_cost(float value);
+ private:
+ float _internal_network_cost() const;
+ void _internal_set_network_cost(float value);
+ public:
// optional float cpu_cost = 5;
bool has_cpu_cost() const;
+ private:
+ bool _internal_has_cpu_cost() const;
+ public:
void clear_cpu_cost();
- static const int kCpuCostFieldNumber = 5;
float cpu_cost() const;
void set_cpu_cost(float value);
+ private:
+ float _internal_cpu_cost() const;
+ void _internal_set_cpu_cost(float value);
+ public:
// optional float disk_cost = 6;
bool has_disk_cost() const;
+ private:
+ bool _internal_has_disk_cost() const;
+ public:
void clear_disk_cost();
- static const int kDiskCostFieldNumber = 6;
float disk_cost() const;
void set_disk_cost(float value);
+ private:
+ float _internal_disk_cost() const;
+ void _internal_set_disk_cost(float value);
+ public:
// optional float memory_cost = 7;
bool has_memory_cost() const;
+ private:
+ bool _internal_has_memory_cost() const;
+ public:
void clear_memory_cost();
- static const int kMemoryCostFieldNumber = 7;
float memory_cost() const;
void set_memory_cost(float value);
+ private:
+ float _internal_memory_cost() const;
+ void _internal_set_memory_cost(float value);
+ public:
// optional bool leaf_fragment = 9;
bool has_leaf_fragment() const;
+ private:
+ bool _internal_has_leaf_fragment() const;
+ public:
void clear_leaf_fragment();
- static const int kLeafFragmentFieldNumber = 9;
bool leaf_fragment() const;
void set_leaf_fragment(bool value);
+ private:
+ bool _internal_leaf_fragment() const;
+ void _internal_set_leaf_fragment(bool value);
+ public:
// optional int64 mem_initial = 12 [default = 20000000];
bool has_mem_initial() const;
+ private:
+ bool _internal_has_mem_initial() const;
+ public:
void clear_mem_initial();
- static const int kMemInitialFieldNumber = 12;
- ::google::protobuf::int64 mem_initial() const;
- void set_mem_initial(::google::protobuf::int64 value);
+ ::PROTOBUF_NAMESPACE_ID::int64 mem_initial() const;
+ void set_mem_initial(::PROTOBUF_NAMESPACE_ID::int64 value);
+ private:
+ ::PROTOBUF_NAMESPACE_ID::int64 _internal_mem_initial() const;
+ void _internal_set_mem_initial(::PROTOBUF_NAMESPACE_ID::int64 value);
+ public:
// optional int64 mem_max = 13 [default = 2000000000];
bool has_mem_max() const;
+ private:
+ bool _internal_has_mem_max() const;
+ public:
void clear_mem_max();
- static const int kMemMaxFieldNumber = 13;
- ::google::protobuf::int64 mem_max() const;
- void set_mem_max(::google::protobuf::int64 value);
+ ::PROTOBUF_NAMESPACE_ID::int64 mem_max() const;
+ void set_mem_max(::PROTOBUF_NAMESPACE_ID::int64 value);
+ private:
+ ::PROTOBUF_NAMESPACE_ID::int64 _internal_mem_max() const;
+ void _internal_set_mem_max(::PROTOBUF_NAMESPACE_ID::int64 value);
+ public:
// @@protoc_insertion_point(class_scope:exec.bit.control.PlanFragment)
private:
- 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_;
+ class _Internal;
+
+ ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
+ ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
+ mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
+ ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::exec::bit::control::Collector > collector_;
+ ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr fragment_json_;
+ ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr options_json_;
::exec::bit::FragmentHandle* handle_;
::exec::DrillbitEndpoint* assignment_;
::exec::DrillbitEndpoint* foreman_;
@@ -1094,29 +1333,28 @@ class PlanFragment : public ::google::protobuf::Message /* @@protoc_insertion_po
float disk_cost_;
float memory_cost_;
bool leaf_fragment_;
- ::google::protobuf::int64 mem_initial_;
- ::google::protobuf::int64 mem_max_;
- friend struct ::protobuf_BitControl_2eproto::TableStruct;
+ ::PROTOBUF_NAMESPACE_ID::int64 mem_initial_;
+ ::PROTOBUF_NAMESPACE_ID::int64 mem_max_;
+ friend struct ::TableStruct_BitControl_2eproto;
};
// -------------------------------------------------------------------
-class Collector : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:exec.bit.control.Collector) */ {
+class Collector :
+ public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:exec.bit.control.Collector) */ {
public:
Collector();
virtual ~Collector();
Collector(const Collector& from);
-
- inline Collector& operator=(const Collector& from) {
- CopyFrom(from);
- return *this;
- }
- #if LANG_CXX11
Collector(Collector&& from) noexcept
: Collector() {
*this = ::std::move(from);
}
+ inline Collector& operator=(const Collector& from) {
+ CopyFrom(from);
+ return *this;
+ }
inline Collector& operator=(Collector&& from) noexcept {
if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
if (this != &from) InternalSwap(&from);
@@ -1125,15 +1363,23 @@ class Collector : public ::google::protobuf::Message /* @@protoc_insertion_point
}
return *this;
}
- #endif
- inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
+
+ inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
return _internal_metadata_.unknown_fields();
}
- inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
+ inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
return _internal_metadata_.mutable_unknown_fields();
}
- static const ::google::protobuf::Descriptor* descriptor();
+ static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
+ return GetDescriptor();
+ }
+ static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
+ return GetMetadataStatic().descriptor;
+ }
+ static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
+ return GetMetadataStatic().reflection;
+ }
static const Collector& default_instance();
static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
@@ -1144,137 +1390,181 @@ class Collector : public ::google::protobuf::Message /* @@protoc_insertion_point
static constexpr int kIndexInFileMessages =
6;
- void Swap(Collector* other);
friend void swap(Collector& a, Collector& b) {
a.Swap(&b);
}
+ inline void Swap(Collector* other) {
+ if (other == this) return;
+ InternalSwap(other);
+ }
// implements Message ----------------------------------------------
inline Collector* New() const final {
- return CreateMaybeMessage<Collector>(NULL);
+ return CreateMaybeMessage<Collector>(nullptr);
}
- Collector* New(::google::protobuf::Arena* arena) const final {
+ Collector* New(::PROTOBUF_NAMESPACE_ID::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 ::PROTOBUF_NAMESPACE_ID::Message& from) final;
+ void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
void CopyFrom(const Collector& from);
void MergeFrom(const Collector& from);
- void Clear() final;
+ PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
bool IsInitialized() const final;
size_t ByteSizeLong() const final;
- bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) final;
- void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const final;
- ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const final;
+ const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
+ ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
+ ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
int GetCachedSize() const final { return _cached_size_.Get(); }
private:
- void SharedCtor();
- void SharedDtor();
+ inline void SharedCtor();
+ inline void SharedDtor();
void SetCachedSize(int size) const final;
void InternalSwap(Collector* other);
+ friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
+ static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
+ return "exec.bit.control.Collector";
+ }
private:
- inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
- return NULL;
+ inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
+ return nullptr;
}
inline void* MaybeArenaPtr() const {
- return NULL;
+ return nullptr;
}
public:
- ::google::protobuf::Metadata GetMetadata() const final;
+ ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
+ private:
+ static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
+ ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_BitControl_2eproto);
+ return ::descriptor_table_BitControl_2eproto.file_level_metadata[kIndexInFileMessages];
+ }
+
+ public:
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
+ enum : int {
+ kIncomingMinorFragmentFieldNumber = 2,
+ kOppositeMajorFragmentIdFieldNumber = 1,
+ kSupportsOutOfOrderFieldNumber = 3,
+ kIsSpoolingFieldNumber = 4,
+ kEnableDynamicFcFieldNumber = 5,
+ };
// repeated int32 incoming_minor_fragment = 2 [packed = true];
int incoming_minor_fragment_size() const;
+ private:
+ int _internal_incoming_minor_fragment_size() const;
+ public:
void clear_incoming_minor_fragment();
- static const int kIncomingMinorFragmentFieldNumber = 2;
- ::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;
- ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
+ private:
+ ::PROTOBUF_NAMESPACE_ID::int32 _internal_incoming_minor_fragment(int index) const;
+ const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >&
+ _internal_incoming_minor_fragment() const;
+ void _internal_add_incoming_minor_fragment(::PROTOBUF_NAMESPACE_ID::int32 value);
+ ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >*
+ _internal_mutable_incoming_minor_fragment();
+ public:
+ ::PROTOBUF_NAMESPACE_ID::int32 incoming_minor_fragment(int index) const;
+ void set_incoming_minor_fragment(int index, ::PROTOBUF_NAMESPACE_ID::int32 value);
+ void add_incoming_minor_fragment(::PROTOBUF_NAMESPACE_ID::int32 value);
+ const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >&
+ incoming_minor_fragment() const;
+ ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >*
mutable_incoming_minor_fragment();
// optional int32 opposite_major_fragment_id = 1;
bool has_opposite_major_fragment_id() const;
+ private:
+ bool _internal_has_opposite_major_fragment_id() const;
+ public:
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);
+ ::PROTOBUF_NAMESPACE_ID::int32 opposite_major_fragment_id() const;
+ void set_opposite_major_fragment_id(::PROTOBUF_NAMESPACE_ID::int32 value);
+ private:
+ ::PROTOBUF_NAMESPACE_ID::int32 _internal_opposite_major_fragment_id() const;
+ void _internal_set_opposite_major_fragment_id(::PROTOBUF_NAMESPACE_ID::int32 value);
+ public:
// optional bool supports_out_of_order = 3;
bool has_supports_out_of_order() const;
+ private:
+ bool _internal_has_supports_out_of_order() const;
+ public:
void clear_supports_out_of_order();
- static const int kSupportsOutOfOrderFieldNumber = 3;
bool supports_out_of_order() const;
void set_supports_out_of_order(bool value);
+ private:
+ bool _internal_supports_out_of_order() const;
+ void _internal_set_supports_out_of_order(bool value);
+ public:
// optional bool is_spooling = 4;
bool has_is_spooling() const;
+ private:
+ bool _internal_has_is_spooling() const;
+ public:
void clear_is_spooling();
- static const int kIsSpoolingFieldNumber = 4;
bool is_spooling() const;
void set_is_spooling(bool value);
+ private:
+ bool _internal_is_spooling() const;
+ void _internal_set_is_spooling(bool value);
+ public:
// optional bool enable_dynamic_fc = 5;
bool has_enable_dynamic_fc() const;
+ private:
+ bool _internal_has_enable_dynamic_fc() const;
+ public:
void clear_enable_dynamic_fc();
- static const int kEnableDynamicFcFieldNumber = 5;
bool enable_dynamic_fc() const;
void set_enable_dynamic_fc(bool value);
+ private:
+ bool _internal_enable_dynamic_fc() const;
+ void _internal_set_enable_dynamic_fc(bool value);
+ public:
// @@protoc_insertion_point(class_scope:exec.bit.control.Collector)
private:
- 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();
- void set_has_enable_dynamic_fc();
- void clear_has_enable_dynamic_fc();
-
- ::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_;
+ class _Internal;
+
+ ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
+ ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
+ mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
+ ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 > incoming_minor_fragment_;
+ mutable std::atomic<int> _incoming_minor_fragment_cached_byte_size_;
+ ::PROTOBUF_NAMESPACE_ID::int32 opposite_major_fragment_id_;
bool supports_out_of_order_;
bool is_spooling_;
bool enable_dynamic_fc_;
- friend struct ::protobuf_BitControl_2eproto::TableStruct;
+ friend struct ::TableStruct_BitControl_2eproto;
};
// -------------------------------------------------------------------
-class QueryContextInformation : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:exec.bit.control.QueryContextInformation) */ {
+class QueryContextInformation :
+ public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:exec.bit.control.QueryContextInformation) */ {
public:
QueryContextInformation();
virtual ~QueryContextInformation();
QueryContextInformation(const QueryContextInformation& from);
-
- inline QueryContextInformation& operator=(const QueryContextInformation& from) {
- CopyFrom(from);
- return *this;
- }
- #if LANG_CXX11
QueryContextInformation(QueryContextInformation&& from) noexcept
: QueryContextInformation() {
*this = ::std::move(from);
}
+ inline QueryContextInformation& operator=(const QueryContextInformation& from) {
+ CopyFrom(from);
+ return *this;
+ }
inline QueryContextInformation& operator=(QueryContextInformation&& from) noexcept {
if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
if (this != &from) InternalSwap(&from);
@@ -1283,15 +1573,23 @@ class QueryContextInformation : public ::google::protobuf::Message /* @@protoc_i
}
return *this;
}
- #endif
- inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
+
+ inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
return _internal_metadata_.unknown_fields();
}
- inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
+ inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
return _internal_metadata_.mutable_unknown_fields();
}
- static const ::google::protobuf::Descriptor* descriptor();
+ static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
+ return GetDescriptor();
+ }
+ static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
+ return GetMetadataStatic().descriptor;
+ }
+ static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
+ return GetMetadataStatic().reflection;
+ }
static const QueryContextInformation& default_instance();
static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
@@ -1302,139 +1600,170 @@ class QueryContextInformation : public ::google::protobuf::Message /* @@protoc_i
static constexpr int kIndexInFileMessages =
7;
- void Swap(QueryContextInformation* other);
friend void swap(QueryContextInformation& a, QueryContextInformation& b) {
a.Swap(&b);
}
+ inline void Swap(QueryContextInformation* other) {
+ if (other == this) return;
+ InternalSwap(other);
+ }
// implements Message ----------------------------------------------
inline QueryContextInformation* New() const final {
- return CreateMaybeMessage<QueryContextInformation>(NULL);
+ return CreateMaybeMessage<QueryContextInformation>(nullptr);
}
- QueryContextInformation* New(::google::protobuf::Arena* arena) const final {
+ QueryContextInformation* New(::PROTOBUF_NAMESPACE_ID::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 ::PROTOBUF_NAMESPACE_ID::Message& from) final;
+ void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
void CopyFrom(const QueryContextInformation& from);
void MergeFrom(const QueryContextInformation& from);
- void Clear() final;
+ PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
bool IsInitialized() const final;
size_t ByteSizeLong() const final;
- bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) final;
- void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const final;
- ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const final;
+ const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
+ ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
+ ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
int GetCachedSize() const final { return _cached_size_.Get(); }
private:
- void SharedCtor();
- void SharedDtor();
+ inline void SharedCtor();
+ inline void SharedDtor();
void SetCachedSize(int size) const final;
void InternalSwap(QueryContextInformation* other);
+ friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
+ static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
+ return "exec.bit.control.QueryContextInformation";
+ }
private:
- inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
- return NULL;
+ inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
+ return nullptr;
}
inline void* MaybeArenaPtr() const {
- return NULL;
+ return nullptr;
}
public:
- ::google::protobuf::Metadata GetMetadata() const final;
+ ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
+ private:
+ static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
+ ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_BitControl_2eproto);
+ return ::descriptor_table_BitControl_2eproto.file_level_metadata[kIndexInFileMessages];
+ }
+
+ public:
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
+ enum : int {
+ kDefaultSchemaNameFieldNumber = 3,
+ kSessionIdFieldNumber = 4,
+ kQueryStartTimeFieldNumber = 1,
+ kTimeZoneFieldNumber = 2,
+ };
// optional string default_schema_name = 3;
bool has_default_schema_name() const;
+ private:
+ bool _internal_has_default_schema_name() const;
+ public:
void clear_default_schema_name();
- static const int kDefaultSchemaNameFieldNumber = 3;
- 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
+ const std::string& default_schema_name() const;
+ void set_default_schema_name(const std::string& value);
+ void set_default_schema_name(std::string&& value);
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);
+ std::string* mutable_default_schema_name();
+ std::string* release_default_schema_name();
+ void set_allocated_default_schema_name(std::string* default_schema_name);
+ private:
+ const std::string& _internal_default_schema_name() const;
+ void _internal_set_default_schema_name(const std::string& value);
+ std::string* _internal_mutable_default_schema_name();
+ public:
// optional string session_id = 4;
bool has_session_id() const;
+ private:
+ bool _internal_has_session_id() const;
+ public:
void clear_session_id();
- static const int kSessionIdFieldNumber = 4;
- 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
+ const std::string& session_id() const;
+ void set_session_id(const std::string& value);
+ void set_session_id(std::string&& value);
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);
+ std::string* mutable_session_id();
+ std::string* release_session_id();
+ void set_allocated_session_id(std::string* session_id);
+ private:
+ const std::string& _internal_session_id() const;
+ void _internal_set_session_id(const std::string& value);
+ std::string* _internal_mutable_session_id();
+ public:
// optional int64 query_start_time = 1;
bool has_query_start_time() const;
+ private:
+ bool _internal_has_query_start_time() const;
+ public:
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);
+ ::PROTOBUF_NAMESPACE_ID::int64 query_start_time() const;
+ void set_query_start_time(::PROTOBUF_NAMESPACE_ID::int64 value);
+ private:
+ ::PROTOBUF_NAMESPACE_ID::int64 _internal_query_start_time() const;
+ void _internal_set_query_start_time(::PROTOBUF_NAMESPACE_ID::int64 value);
+ public:
// optional int32 time_zone = 2;
bool has_time_zone() const;
+ private:
+ bool _internal_has_time_zone() const;
+ public:
void clear_time_zone();
- static const int kTimeZoneFieldNumber = 2;
- ::google::protobuf::int32 time_zone() const;
- void set_time_zone(::google::protobuf::int32 value);
+ ::PROTOBUF_NAMESPACE_ID::int32 time_zone() const;
+ void set_time_zone(::PROTOBUF_NAMESPACE_ID::int32 value);
+ private:
+ ::PROTOBUF_NAMESPACE_ID::int32 _internal_time_zone() const;
+ void _internal_set_time_zone(::PROTOBUF_NAMESPACE_ID::int32 value);
+ public:
// @@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_;
- ::google::protobuf::int32 time_zone_;
- friend struct ::protobuf_BitControl_2eproto::TableStruct;
+ class _Internal;
+
+ ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
+ ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
+ mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
+ ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr default_schema_name_;
+ ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr session_id_;
+ ::PROTOBUF_NAMESPACE_ID::int64 query_start_time_;
+ ::PROTOBUF_NAMESPACE_ID::int32 time_zone_;
+ friend struct ::TableStruct_BitControl_2eproto;
};
// -------------------------------------------------------------------
-class WorkQueueStatus : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:exec.bit.control.WorkQueueStatus) */ {
+class WorkQueueStatus :
+ public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:exec.bit.control.WorkQueueStatus) */ {
public:
WorkQueueStatus();
virtual ~WorkQueueStatus();
WorkQueueStatus(const WorkQueueStatus& from);
-
- inline WorkQueueStatus& operator=(const WorkQueueStatus& from) {
- CopyFrom(from);
- return *this;
- }
- #if LANG_CXX11
WorkQueueStatus(WorkQueueStatus&& from) noexcept
: WorkQueueStatus() {
*this = ::std::move(from);
}
+ inline WorkQueueStatus& operator=(const WorkQueueStatus& from) {
+ CopyFrom(from);
+ return *this;
+ }
inline WorkQueueStatus& operator=(WorkQueueStatus&& from) noexcept {
if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
if (this != &from) InternalSwap(&from);
@@ -1443,15 +1772,23 @@ class WorkQueueStatus : public ::google::protobuf::Message /* @@protoc_insertion
}
return *this;
}
- #endif
- inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
+
+ inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
return _internal_metadata_.unknown_fields();
}
- inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
+ inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
return _internal_metadata_.mutable_unknown_fields();
}
- static const ::google::protobuf::Descriptor* descriptor();
+ static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
+ return GetDescriptor();
+ }
+ static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
+ return GetMetadataStatic().descriptor;
+ }
+ static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
+ return GetMetadataStatic().reflection;
+ }
static const WorkQueueStatus& default_instance();
static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
@@ -1462,118 +1799,143 @@ class WorkQueueStatus : public ::google::protobuf::Message /* @@protoc_insertion
static constexpr int kIndexInFileMessages =
8;
- void Swap(WorkQueueStatus* other);
friend void swap(WorkQueueStatus& a, WorkQueueStatus& b) {
a.Swap(&b);
}
+ inline void Swap(WorkQueueStatus* other) {
+ if (other == this) return;
+ InternalSwap(other);
+ }
// implements Message ----------------------------------------------
inline WorkQueueStatus* New() const final {
- return CreateMaybeMessage<WorkQueueStatus>(NULL);
+ return CreateMaybeMessage<WorkQueueStatus>(nullptr);
}
- WorkQueueStatus* New(::google::protobuf::Arena* arena) const final {
+ WorkQueueStatus* New(::PROTOBUF_NAMESPACE_ID::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 ::PROTOBUF_NAMESPACE_ID::Message& from) final;
+ void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
void CopyFrom(const WorkQueueStatus& from);
void MergeFrom(const WorkQueueStatus& from);
- void Clear() final;
+ PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
bool IsInitialized() const final;
size_t ByteSizeLong() const final;
- bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) final;
- void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const final;
- ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const final;
+ const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
+ ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
+ ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
int GetCachedSize() const final { return _cached_size_.Get(); }
private:
- void SharedCtor();
- void SharedDtor();
+ inline void SharedCtor();
+ inline void SharedDtor();
void SetCachedSize(int size) const final;
void InternalSwap(WorkQueueStatus* other);
+ friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
+ static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
+ return "exec.bit.control.WorkQueueStatus";
+ }
private:
- inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
- return NULL;
+ inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
+ return nullptr;
}
inline void* MaybeArenaPtr() const {
- return NULL;
+ return nullptr;
}
public:
- ::google::protobuf::Metadata GetMetadata() const final;
+ ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
+ private:
+ static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
+ ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_BitControl_2eproto);
+ return ::descriptor_table_BitControl_2eproto.file_level_metadata[kIndexInFileMessages];
+ }
+
+ public:
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
+ enum : int {
+ kEndpointFieldNumber = 1,
+ kReportTimeFieldNumber = 3,
+ kQueueLengthFieldNumber = 2,
+ };
// optional .exec.DrillbitEndpoint endpoint = 1;
bool has_endpoint() const;
- void clear_endpoint();
- static const int kEndpointFieldNumber = 1;
private:
- const ::exec::DrillbitEndpoint& _internal_endpoint() const;
+ bool _internal_has_endpoint() const;
public:
+ void clear_endpoint();
const ::exec::DrillbitEndpoint& endpoint() const;
::exec::DrillbitEndpoint* release_endpoint();
::exec::DrillbitEndpoint* mutable_endpoint();
void set_allocated_endpoint(::exec::DrillbitEndpoint* endpoint);
+ private:
+ const ::exec::DrillbitEndpoint& _internal_endpoint() const;
+ ::exec::DrillbitEndpoint* _internal_mutable_endpoint();
+ public:
// optional int64 report_time = 3;
bool has_report_time() const;
+ private:
+ bool _internal_has_report_time() const;
+ public:
void clear_report_time();
- static const int kReportTimeFieldNumber = 3;
- ::google::protobuf::int64 report_time() const;
- void set_report_time(::google::protobuf::int64 value);
+ ::PROTOBUF_NAMESPACE_ID::int64 report_time() const;
+ void set_report_time(::PROTOBUF_NAMESPACE_ID::int64 value);
+ private:
+ ::PROTOBUF_NAMESPACE_ID::int64 _internal_report_time() const;
+ void _internal_set_report_time(::PROTOBUF_NAMESPACE_ID::int64 value);
+ public:
// optional int32 queue_length = 2;
bool has_queue_length() const;
+ private:
+ bool _internal_has_queue_length() const;
+ public:
void clear_queue_length();
- static const int kQueueLengthFieldNumber = 2;
- ::google::protobuf::int32 queue_length() const;
- void set_queue_length(::google::protobuf::int32 value);
+ ::PROTOBUF_NAMESPACE_ID::int32 queue_length() const;
+ void set_queue_length(::PROTOBUF_NAMESPACE_ID::int32 value);
+ private:
+ ::PROTOBUF_NAMESPACE_ID::int32 _internal_queue_length() const;
+ void _internal_set_queue_length(::PROTOBUF_NAMESPACE_ID::int32 value);
+ public:
// @@protoc_insertion_point(class_scope:exec.bit.control.WorkQueueStatus)
private:
- 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_;
+ class _Internal;
+
+ ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
+ ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
+ mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
::exec::DrillbitEndpoint* endpoint_;
- ::google::protobuf::int64 report_time_;
- ::google::protobuf::int32 queue_length_;
- friend struct ::protobuf_BitControl_2eproto::TableStruct;
+ ::PROTOBUF_NAMESPACE_ID::int64 report_time_;
+ ::PROTOBUF_NAMESPACE_ID::int32 queue_length_;
+ friend struct ::TableStruct_BitControl_2eproto;
};
// -------------------------------------------------------------------
-class FinishedReceiver : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:exec.bit.control.FinishedReceiver) */ {
+class FinishedReceiver :
+ public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:exec.bit.control.FinishedReceiver) */ {
public:
FinishedReceiver();
virtual ~FinishedReceiver();
FinishedReceiver(const FinishedReceiver& from);
-
- inline FinishedReceiver& operator=(const FinishedReceiver& from) {
- CopyFrom(from);
- return *this;
- }
- #if LANG_CXX11
FinishedReceiver(FinishedReceiver&& from) noexcept
: FinishedReceiver() {
*this = ::std::move(from);
}
+ inline FinishedReceiver& operator=(const FinishedReceiver& from) {
+ CopyFrom(from);
+ return *this;
+ }
inline FinishedReceiver& operator=(FinishedReceiver&& from) noexcept {
if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
if (this != &from) InternalSwap(&from);
@@ -1582,15 +1944,23 @@ class FinishedReceiver : public ::google::protobuf::Message /* @@protoc_insertio
}
return *this;
}
- #endif
- inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
+
+ inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
return _internal_metadata_.unknown_fields();
}
- inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
+ inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
return _internal_metadata_.mutable_unknown_fields();
}
- static const ::google::protobuf::Descriptor* descriptor();
+ static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
+ return GetDescriptor();
+ }
+ static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
+ return GetMetadataStatic().descriptor;
+ }
+ static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
+ return GetMetadataStatic().reflection;
+ }
static const FinishedReceiver& default_instance();
static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
@@ -1601,93 +1971,111 @@ class FinishedReceiver : public ::google::protobuf::Message /* @@protoc_insertio
static constexpr int kIndexInFileMessages =
9;
- void Swap(FinishedReceiver* other);
friend void swap(FinishedReceiver& a, FinishedReceiver& b) {
a.Swap(&b);
}
+ inline void Swap(FinishedReceiver* other) {
+ if (other == this) return;
+ InternalSwap(other);
+ }
// implements Message ----------------------------------------------
inline FinishedReceiver* New() const final {
- return CreateMaybeMessage<FinishedReceiver>(NULL);
+ return CreateMaybeMessage<FinishedReceiver>(nullptr);
}
- FinishedReceiver* New(::google::protobuf::Arena* arena) const final {
+ FinishedReceiver* New(::PROTOBUF_NAMESPACE_ID::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 ::PROTOBUF_NAMESPACE_ID::Message& from) final;
+ void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
void CopyFrom(const FinishedReceiver& from);
void MergeFrom(const FinishedReceiver& from);
- void Clear() final;
+ PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
bool IsInitialized() const final;
size_t ByteSizeLong() const final;
- bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) final;
- void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const final;
- ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const final;
+ const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
+ ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
+ ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
int GetCachedSize() const final { return _cached_size_.Get(); }
private:
- void SharedCtor();
- void SharedDtor();
+ inline void SharedCtor();
+ inline void SharedDtor();
void SetCachedSize(int size) const final;
void InternalSwap(FinishedReceiver* other);
+ friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
+ static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
+ return "exec.bit.control.FinishedReceiver";
+ }
private:
- inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
- return NULL;
+ inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
+ return nullptr;
}
inline void* MaybeArenaPtr() const {
- return NULL;
+ return nullptr;
}
public:
- ::google::protobuf::Metadata GetMetadata() const final;
+ ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
+ private:
+ static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
+ ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_BitControl_2eproto);
+ return ::descriptor_table_BitControl_2eproto.file_level_metadata[kIndexInFileMessages];
+ }
+
+ public:
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
+ enum : int {
+ kReceiverFieldNumber = 1,
+ kSenderFieldNumber = 2,
+ };
// optional .exec.bit.FragmentHandle receiver = 1;
bool has_receiver() const;
- void clear_receiver();
- static const int kReceiverFieldNumber = 1;
private:
- const ::exec::bit::FragmentHandle& _internal_receiver() const;
+ bool _internal_has_receiver() const;
public:
+ void clear_receiver();
const ::exec::bit::FragmentHandle& receiver() const;
::exec::bit::FragmentHandle* release_receiver();
::exec::bit::FragmentHandle* mutable_receiver();
void set_allocated_receiver(::exec::bit::FragmentHandle* receiver);
+ private:
+ const ::exec::bit::FragmentHandle& _internal_receiver() const;
+ ::exec::bit::FragmentHandle* _internal_mutable_receiver();
+ public:
// optional .exec.bit.FragmentHandle sender = 2;
bool has_sender() const;
- void clear_sender();
- static const int kSenderFieldNumber = 2;
private:
- const ::exec::bit::FragmentHandle& _internal_sender() const;
+ bool _internal_has_sender() const;
public:
+ void clear_sender();
const ::exec::bit::FragmentHandle& sender() const;
::exec::bit::FragmentHandle* release_sender();
::exec::bit::FragmentHandle* mutable_sender();
void set_allocated_sender(::exec::bit::FragmentHandle* sender);
+ private:
+ const ::exec::bit::FragmentHandle& _internal_sender() const;
+ ::exec::bit::FragmentHandle* _internal_mutable_sender();
+ public:
// @@protoc_insertion_point(class_scope:exec.bit.control.FinishedReceiver)
private:
- 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_;
+ class _Internal;
+
+ ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
+ ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
+ mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
::exec::bit::FragmentHandle* receiver_;
::exec::bit::FragmentHandle* sender_;
- friend struct ::protobuf_BitControl_2eproto::TableStruct;
+ friend struct ::TableStruct_BitControl_2eproto;
};
// ===================================================================
@@ -1701,135 +2089,153 @@ class FinishedReceiver : public ::google::protobuf::Message /* @@protoc_insertio
// BitControlHandshake
// optional int32 rpc_version = 1;
-inline bool BitControlHandshake::has_rpc_version() const {
- return (_has_bits_[0] & 0x00000002u) != 0;
-}
-inline void BitControlHandshake::set_has_rpc_version() {
- _has_bits_[0] |= 0x00000002u;
+inline bool BitControlHandshake::_internal_has_rpc_version() const {
+ bool value = (_has_bits_[0] & 0x00000002u) != 0;
+ return value;
}
-inline void BitControlHandshake::clear_has_rpc_version() {
- _has_bits_[0] &= ~0x00000002u;
+inline bool BitControlHandshake::has_rpc_version() const {
+ return _internal_has_rpc_version();
}
inline void BitControlHandshake::clear_rpc_version() {
rpc_version_ = 0;
- clear_has_rpc_version();
+ _has_bits_[0] &= ~0x00000002u;
}
-inline ::google::protobuf::int32 BitControlHandshake::rpc_version() const {
- // @@protoc_insertion_point(field_get:exec.bit.control.BitControlHandshake.rpc_version)
+inline ::PROTOBUF_NAMESPACE_ID::int32 BitControlHandshake::_internal_rpc_version() const {
return rpc_version_;
}
-inline void BitControlHandshake::set_rpc_version(::google::protobuf::int32 value) {
- set_has_rpc_version();
+inline ::PROTOBUF_NAMESPACE_ID::int32 BitControlHandshake::rpc_version() const {
+ // @@protoc_insertion_point(field_get:exec.bit.control.BitControlHandshake.rpc_version)
+ return _internal_rpc_version();
+}
+inline void BitControlHandshake::_internal_set_rpc_version(::PROTOBUF_NAMESPACE_ID::int32 value) {
+ _has_bits_[0] |= 0x00000002u;
rpc_version_ = value;
+}
+inline void BitControlHandshake::set_rpc_version(::PROTOBUF_NAMESPACE_ID::int32 value) {
+ _internal_set_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] & 0x00000004u) != 0;
+inline bool BitControlHandshake::_internal_has_channel() const {
+ bool value = (_has_bits_[0] & 0x00000004u) != 0;
+ return value;
}
-inline void BitControlHandshake::set_has_channel() {
- _has_bits_[0] |= 0x00000004u;
-}
-inline void BitControlHandshake::clear_has_channel() {
- _has_bits_[0] &= ~0x00000004u;
+inline bool BitControlHandshake::has_channel() const {
+ return _internal_has_channel();
}
inline void BitControlHandshake::clear_channel() {
channel_ = 0;
- clear_has_channel();
+ _has_bits_[0] &= ~0x00000004u;
+}
+inline ::exec::shared::RpcChannel BitControlHandshake::_internal_channel() const {
+ return static_cast< ::exec::shared::RpcChannel >(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_);
+ return _internal_channel();
}
-inline void BitControlHandshake::set_channel(::exec::shared::RpcChannel value) {
+inline void BitControlHandshake::_internal_set_channel(::exec::shared::RpcChannel value) {
assert(::exec::shared::RpcChannel_IsValid(value));
- set_has_channel();
+ _has_bits_[0] |= 0x00000004u;
channel_ = value;
+}
+inline void BitControlHandshake::set_channel(::exec::shared::RpcChannel value) {
+ _internal_set_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] & 0x00000001u) != 0;
-}
-inline void BitControlHandshake::set_has_endpoint() {
- _has_bits_[0] |= 0x00000001u;
+inline bool BitControlHandshake::_internal_has_endpoint() const {
+ bool value = (_has_bits_[0] & 0x00000001u) != 0;
+ PROTOBUF_ASSUME(!value || endpoint_ != nullptr);
+ return value;
}
-inline void BitControlHandshake::clear_has_endpoint() {
- _has_bits_[0] &= ~0x00000001u;
+inline bool BitControlHandshake::has_endpoint() const {
+ return _internal_has_endpoint();
}
inline const ::exec::DrillbitEndpoint& BitControlHandshake::_internal_endpoint() const {
- return *endpoint_;
+ const ::exec::DrillbitEndpoint* p = endpoint_;
+ return p != nullptr ? *p : *reinterpret_cast<const ::exec::DrillbitEndpoint*>(
+ &::exec::_DrillbitEndpoint_default_instance_);
}
inline const ::exec::DrillbitEndpoint& BitControlHandshake::endpoint() const {
- 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_);
+ return _internal_endpoint();
}
inline ::exec::DrillbitEndpoint* BitControlHandshake::release_endpoint() {
// @@protoc_insertion_point(field_release:exec.bit.control.BitControlHandshake.endpoint)
- clear_has_endpoint();
+ _has_bits_[0] &= ~0x00000001u;
::exec::DrillbitEndpoint* temp = endpoint_;
- endpoint_ = NULL;
+ endpoint_ = nullptr;
return temp;
}
-inline ::exec::DrillbitEndpoint* BitControlHandshake::mutable_endpoint() {
- set_has_endpoint();
- if (endpoint_ == NULL) {
+inline ::exec::DrillbitEndpoint* BitControlHandshake::_internal_mutable_endpoint() {
+ _has_bits_[0] |= 0x00000001u;
+ if (endpoint_ == nullptr) {
auto* p = CreateMaybeMessage<::exec::DrillbitEndpoint>(GetArenaNoVirtual());
endpoint_ = p;
}
- // @@protoc_insertion_point(field_mutable:exec.bit.control.BitControlHandshake.endpoint)
return endpoint_;
}
+inline ::exec::DrillbitEndpoint* BitControlHandshake::mutable_endpoint() {
+ // @@protoc_insertion_point(field_mutable:exec.bit.control.BitControlHandshake.endpoint)
+ return _internal_mutable_endpoint();
+}
inline void BitControlHandshake::set_allocated_endpoint(::exec::DrillbitEndpoint* endpoint) {
- ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
- if (message_arena == NULL) {
- delete reinterpret_cast< ::google::protobuf::MessageLite*>(endpoint_);
+ ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
+ if (message_arena == nullptr) {
+ delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(endpoint_);
}
if (endpoint) {
- ::google::protobuf::Arena* submessage_arena = NULL;
+ ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr;
if (message_arena != submessage_arena) {
- endpoint = ::google::protobuf::internal::GetOwnedMessage(
+ endpoint = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
message_arena, endpoint, submessage_arena);
}
- set_has_endpoint();
+ _has_bits_[0] |= 0x00000001u;
} else {
- clear_has_endpoint();
+ _has_bits_[0] &= ~0x00000001u;
}
endpoint_ = endpoint;
// @@protoc_insertion_point(field_set_allocated:exec.bit.control.BitControlHandshake.endpoint)
}
// repeated string authenticationMechanisms = 4;
-inline int BitControlHandshake::authenticationmechanisms_size() const {
+inline int BitControlHandshake::_internal_authenticationmechanisms_size() const {
return authenticationmechanisms_.size();
}
+inline int BitControlHandshake::authenticationmechanisms_size() const {
+ return _internal_authenticationmechanisms_size();
+}
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)
+inline std::string* BitControlHandshake::add_authenticationmechanisms() {
+ // @@protoc_insertion_point(field_add_mutable:exec.bit.control.BitControlHandshake.authenticationMechanisms)
+ return _internal_add_authenticationmechanisms();
+}
+inline const std::string& BitControlHandshake::_internal_authenticationmechanisms(int index) const {
return authenticationmechanisms_.Get(index);
}
-inline ::std::string* BitControlHandshake::mutable_authenticationmechanisms(int index) {
+inline const std::string& BitControlHandshake::authenticationmechanisms(int index) const {
+ // @@protoc_insertion_point(field_get:exec.bit.control.BitControlHandshake.authenticationMechanisms)
+ return _internal_authenticationmechanisms(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) {
+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) {
+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);
+ GOOGLE_DCHECK(value != nullptr);
authenticationmechanisms_.Mutable(index)->assign(value);
// @@protoc_insertion_point(field_set_char:exec.bit.control.BitControlHandshake.authenticationMechanisms)
}
@@ -1838,22 +2244,19 @@ inline void BitControlHandshake::set_authenticationmechanisms(int index, const c
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)
+inline std::string* BitControlHandshake::_internal_add_authenticationmechanisms() {
return authenticationmechanisms_.Add();
}
-inline void BitControlHandshake::add_authenticationmechanisms(const ::std::string& value) {
+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) {
+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);
+ GOOGLE_DCHECK(value != nullptr);
authenticationmechanisms_.Add()->assign(value);
// @@protoc_insertion_point(field_add_char:exec.bit.control.BitControlHandshake.authenticationMechanisms)
}
@@ -1861,12 +2264,12 @@ inline void BitControlHandshake::add_authenticationmechanisms(const char* value,
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>&
+inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>&
BitControlHandshake::authenticationmechanisms() const {
// @@protoc_insertion_point(field_list:exec.bit.control.BitControlHandshake.authenticationMechanisms)
return authenticationmechanisms_;
}
-inline ::google::protobuf::RepeatedPtrField< ::std::string>*
+inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>*
BitControlHandshake::mutable_authenticationmechanisms() {
// @@protoc_insertion_point(field_mutable_list:exec.bit.control.BitControlHandshake.authenticationMechanisms)
return &authenticationmechanisms_;
@@ -1877,9 +2280,12 @@ BitControlHandshake::mutable_authenticationmechanisms() {
// BitStatus
// repeated .exec.bit.control.FragmentStatus fragment_status = 1;
-inline int BitStatus::fragment_status_size() const {
+inline int BitStatus::_internal_fragment_status_size() const {
return fragment_status_.size();
}
+inline int BitStatus::fragment_status_size() const {
+ return _internal_fragment_status_size();
+}
inline void BitStatus::clear_fragment_status() {
fragment_status_.Clear();
}
@@ -1887,20 +2293,26 @@ inline ::exec::bit::control::FragmentStatus* BitStatus::mutable_fragment_status(
// @@protoc_insertion_point(field_mutable:exec.bit.control.BitStatus.fragment_status)
return fragment_status_.Mutable(index);
}
-inline ::google::protobuf::RepeatedPtrField< ::exec::bit::control::FragmentStatus >*
+inline ::PROTOBUF_NAMESPACE_ID::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::_internal_fragment_status(int index) const {
+ return fragment_status_.Get(index);
+}
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);
+ return _internal_fragment_status(index);
+}
+inline ::exec::bit::control::FragmentStatus* BitStatus::_internal_add_fragment_status() {
+ return fragment_status_.Add();
}
inline ::exec::bit::control::FragmentStatus* BitStatus::add_fragment_status() {
// @@protoc_insertion_point(field_add:exec.bit.control.BitStatus.fragment_status)
- return fragment_status_.Add();
+ return _internal_add_fragment_status();
}
-inline const ::google::protobuf::RepeatedPtrField< ::exec::bit::control::FragmentStatus >&
+inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::exec::bit::control::FragmentStatus >&
BitStatus::fragment_status() const {
// @@protoc_insertion_point(field_list:exec.bit.control.BitStatus.fragment_status)
return fragment_status_;
@@ -1911,108 +2323,112 @@ BitStatus::fragment_status() const {
// FragmentStatus
// optional .exec.shared.MinorFragmentProfile profile = 1;
-inline bool FragmentStatus::has_profile() const {
- return (_has_bits_[0] & 0x00000001u) != 0;
-}
-inline void FragmentStatus::set_has_profile() {
- _has_bits_[0] |= 0x00000001u;
+inline bool FragmentStatus::_internal_has_profile() const {
+ bool value = (_has_bits_[0] & 0x00000001u) != 0;
+ PROTOBUF_ASSUME(!value || profile_ != nullptr);
+ return value;
}
-inline void FragmentStatus::clear_has_profile() {
- _has_bits_[0] &= ~0x00000001u;
+inline bool FragmentStatus::has_profile() const {
+ return _internal_has_profile();
}
inline const ::exec::shared::MinorFragmentProfile& FragmentStatus::_internal_profile() const {
- return *profile_;
+ const ::exec::shared::MinorFragmentProfile* p = profile_;
+ return p != nullptr ? *p : *reinterpret_cast<const ::exec::shared::MinorFragmentProfile*>(
+ &::exec::shared::_MinorFragmentProfile_default_instance_);
}
inline const ::exec::shared::MinorFragmentProfile& FragmentStatus::profile() const {
- 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_);
+ return _internal_profile();
}
inline ::exec::shared::MinorFragmentProfile* FragmentStatus::release_profile() {
// @@protoc_insertion_point(field_release:exec.bit.control.FragmentStatus.profile)
- clear_has_profile();
+ _has_bits_[0] &= ~0x00000001u;
::exec::shared::MinorFragmentProfile* temp = profile_;
- profile_ = NULL;
+ profile_ = nullptr;
return temp;
}
-inline ::exec::shared::MinorFragmentProfile* FragmentStatus::mutable_profile() {
- set_has_profile();
- if (profile_ == NULL) {
+inline ::exec::shared::MinorFragmentProfile* FragmentStatus::_internal_mutable_profile() {
+ _has_bits_[0] |= 0x00000001u;
+ if (profile_ == nullptr) {
auto* p = CreateMaybeMessage<::exec::shared::MinorFragmentProfile>(GetArenaNoVirtual());
profile_ = p;
}
- // @@protoc_insertion_point(field_mutable:exec.bit.control.FragmentStatus.profile)
return profile_;
}
+inline ::exec::shared::MinorFragmentProfile* FragmentStatus::mutable_profile() {
+ // @@protoc_insertion_point(field_mutable:exec.bit.control.FragmentStatus.profile)
+ return _internal_mutable_profile();
+}
inline void FragmentStatus::set_allocated_profile(::exec::shared::MinorFragmentProfile* profile) {
- ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
- if (message_arena == NULL) {
- delete reinterpret_cast< ::google::protobuf::MessageLite*>(profile_);
+ ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
+ if (message_arena == nullptr) {
+ delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(profile_);
}
if (profile) {
- ::google::protobuf::Arena* submessage_arena = NULL;
+ ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr;
if (message_arena != submessage_arena) {
- profile = ::google::protobuf::internal::GetOwnedMessage(
+ profile = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
message_arena, profile, submessage_arena);
}
- set_has_profile();
+ _has_bits_[0] |= 0x00000001u;
} else {
- clear_has_profile();
+ _has_bits_[0] &= ~0x00000001u;
}
profile_ = profile;
// @@protoc_insertion_point(field_set_allocated:exec.bit.control.FragmentStatus.profile)
}
// optional .exec.bit.FragmentHandle handle = 2;
-inline bool FragmentStatus::has_handle() const {
- return (_has_bits_[0] & 0x00000002u) != 0;
-}
-inline void FragmentStatus::set_has_handle() {
- _has_bits_[0] |= 0x00000002u;
+inline bool FragmentStatus::_internal_has_handle() const {
+ bool value = (_has_bits_[0] & 0x00000002u) != 0;
+ PROTOBUF_ASSUME(!value || handle_ != nullptr);
+ return value;
}
-inline void FragmentStatus::clear_has_handle() {
- _has_bits_[0] &= ~0x00000002u;
+inline bool FragmentStatus::has_handle() const {
+ return _internal_has_handle();
}
inline const ::exec::bit::FragmentHandle& FragmentStatus::_internal_handle() const {
- return *handle_;
+ const ::exec::bit::FragmentHandle* p = handle_;
+ return p != nullptr ? *p : *reinterpret_cast<const ::exec::bit::FragmentHandle*>(
+ &::exec::bit::_FragmentHandle_default_instance_);
}
inline const ::exec::bit::FragmentHandle& FragmentStatus::handle() const {
- 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_);
+ return _internal_handle();
}
inline ::exec::bit::FragmentHandle* FragmentStatus::release_handle() {
// @@protoc_insertion_point(field_release:exec.bit.control.FragmentStatus.handle)
- clear_has_handle();
+ _has_bits_[0] &= ~0x00000002u;
::exec::bit::FragmentHandle* temp = handle_;
- handle_ = NULL;
+ handle_ = nullptr;
return temp;
}
-inline ::exec::bit::FragmentHandle* FragmentStatus::mutable_handle() {
- set_has_handle();
- if (handle_ == NULL) {
+inline ::exec::bit::FragmentHandle* FragmentStatus::_internal_mutable_handle() {
+ _has_bits_[0] |= 0x00000002u;
+ if (handle_ == nullptr) {
auto* p = CreateMaybeMessage<::exec::bit::FragmentHandle>(GetArenaNoVirtual());
handle_ = p;
}
- // @@protoc_insertion_point(field_mutable:exec.bit.control.FragmentStatus.handle)
return handle_;
}
+inline ::exec::bit::FragmentHandle* FragmentStatus::mutable_handle() {
+ // @@protoc_insertion_point(field_mutable:exec.bit.control.FragmentStatus.handle)
+ return _internal_mutable_handle();
+}
inline void FragmentStatus::set_allocated_handle(::exec::bit::FragmentHandle* handle) {
- ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
- if (message_arena == NULL) {
- delete reinterpret_cast< ::google::protobuf::MessageLite*>(handle_);
+ ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
+ if (message_arena == nullptr) {
+ delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(handle_);
}
if (handle) {
- ::google::protobuf::Arena* submessage_arena = NULL;
+ ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr;
if (message_arena != submessage_arena) {
- handle = ::google::protobuf::internal::GetOwnedMessage(
+ handle = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
message_arena, handle, submessage_arena);
}
- set_has_handle();
+ _has_bits_[0] |= 0x00000002u;
} else {
- clear_has_handle();
+ _has_bits_[0] &= ~0x00000002u;
}
handle_ = handle;
// @@protoc_insertion_point(field_set_allocated:exec.bit.control.FragmentStatus.handle)
@@ -2023,9 +2439,12 @@ inline void FragmentStatus::set_allocated_handle(::exec::bit::FragmentHandle* ha
// InitializeFragments
// repeated .exec.bit.control.PlanFragment fragment = 1;
-inline int InitializeFragments::fragment_size() const {
+inline int InitializeFragments::_internal_fragment_size() const {
return fragment_.size();
}
+inline int InitializeFragments::fragment_size() const {
+ return _internal_fragment_size();
+}
inline void InitializeFragments::clear_fragment() {
fragment_.Clear();
}
@@ -2033,20 +2452,26 @@ inline ::exec::bit::control::PlanFragment* InitializeFragments::mutable_fragment
// @@protoc_insertion_point(field_mutable:exec.bit.control.InitializeFragments.fragment)
return fragment_.Mutable(index);
}
-inline ::google::protobuf::RepeatedPtrField< ::exec::bit::control::PlanFragment >*
+inline ::PROTOBUF_NAMESPACE_ID::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::_internal_fragment(int index) const {
+ return fragment_.Get(index);
+}
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);
+ return _internal_fragment(index);
+}
+inline ::exec::bit::control::PlanFragment* InitializeFragments::_internal_add_fragment() {
+ return fragment_.Add();
}
inline ::exec::bit::control::PlanFragment* InitializeFragments::add_fragment() {
// @@protoc_insertion_point(field_add:exec.bit.control.InitializeFragments.fragment)
- return fragment_.Add();
+ return _internal_add_fragment();
}
-inline const ::google::protobuf::RepeatedPtrField< ::exec::bit::control::PlanFragment >&
+inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::exec::bit::control::PlanFragment >&
InitializeFragments::fragment() const {
// @@protoc_insertion_point(field_list:exec.bit.control.InitializeFragments.fragment)
return fragment_;
@@ -2057,92 +2482,101 @@ InitializeFragments::fragment() const {
// CustomMessage
// optional int32 type = 1;
-inline bool CustomMessage::has_type() const {
- return (_has_bits_[0] & 0x00000002u) != 0;
-}
-inline void CustomMessage::set_has_type() {
- _has_bits_[0] |= 0x00000002u;
+inline bool CustomMessage::_internal_has_type() const {
+ bool value = (_has_bits_[0] & 0x00000002u) != 0;
+ return value;
}
-inline void CustomMessage::clear_has_type() {
- _has_bits_[0] &= ~0x00000002u;
+inline bool CustomMessage::has_type() const {
+ return _internal_has_type();
}
inline void CustomMessage::clear_type() {
type_ = 0;
- clear_has_type();
+ _has_bits_[0] &= ~0x00000002u;
}
-inline ::google::protobuf::int32 CustomMessage::type() const {
- // @@protoc_insertion_point(field_get:exec.bit.control.CustomMessage.type)
+inline ::PROTOBUF_NAMESPACE_ID::int32 CustomMessage::_internal_type() const {
return type_;
}
-inline void CustomMessage::set_type(::google::protobuf::int32 value) {
- set_has_type();
+inline ::PROTOBUF_NAMESPACE_ID::int32 CustomMessage::type() const {
+ // @@protoc_insertion_point(field_get:exec.bit.control.CustomMessage.type)
+ return _internal_type();
+}
+inline void CustomMessage::_internal_set_type(::PROTOBUF_NAMESPACE_ID::int32 value) {
+ _has_bits_[0] |= 0x00000002u;
type_ = value;
+}
+inline void CustomMessage::set_type(::PROTOBUF_NAMESPACE_ID::int32 value) {
+ _internal_set_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] & 0x00000001u) != 0;
-}
-inline void CustomMessage::set_has_message() {
- _has_bits_[0] |= 0x00000001u;
+inline bool CustomMessage::_internal_has_message() const {
+ bool value = (_has_bits_[0] & 0x00000001u) != 0;
+ return value;
}
-inline void CustomMessage::clear_has_message() {
- _has_bits_[0] &= ~0x00000001u;
+inline bool CustomMessage::has_message() const {
+ return _internal_has_message();
}
inline void CustomMessage::clear_message() {
- message_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- clear_has_message();
+ message_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
+ _has_bits_[0] &= ~0x00000001u;
}
-inline const ::std::string& CustomMessage::message() const {
+inline const std::string& CustomMessage::message() const {
// @@protoc_insertion_point(field_get:exec.bit.control.CustomMessage.message)
- return message_.GetNoArena();
+ return _internal_message();
}
-inline void CustomMessage::set_message(const ::std::string& value) {
- set_has_message();
- message_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
+inline void CustomMessage::set_message(const std::string& value) {
+ _internal_set_message(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();
+inline std::string* CustomMessage::mutable_message() {
+ // @@protoc_insertion_point(field_mutable:exec.bit.control.CustomMessage.message)
+ return _internal_mutable_message();
+}
+inline const std::string& CustomMessage::_internal_message() const {
+ return message_.GetNoArena();
+}
+inline void CustomMessage::_internal_set_message(const std::string& value) {
+ _has_bits_[0] |= 0x00000001u;
+ message_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
+}
+inline void CustomMessage::set_message(std::string&& value) {
+ _has_bits_[0] |= 0x00000001u;
message_.SetNoArena(
- &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
+ &::PROTOBUF_NAMESPACE_ID::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();
- message_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
+ GOOGLE_DCHECK(value != nullptr);
+ _has_bits_[0] |= 0x00000001u;
+ message_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::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();
- message_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ _has_bits_[0] |= 0x00000001u;
+ message_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::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();
- // @@protoc_insertion_point(field_mutable:exec.bit.control.CustomMessage.message)
- return message_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+inline std::string* CustomMessage::_internal_mutable_message() {
+ _has_bits_[0] |= 0x00000001u;
+ return message_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
}
-inline ::std::string* CustomMessage::release_message() {
+inline std::string* CustomMessage::release_message() {
// @@protoc_insertion_point(field_release:exec.bit.control.CustomMessage.message)
- if (!has_message()) {
- return NULL;
+ if (!_internal_has_message()) {
+ return nullptr;
}
- clear_has_message();
- return message_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ _has_bits_[0] &= ~0x00000001u;
+ return message_.ReleaseNonDefaultNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
}
-inline void CustomMessage::set_allocated_message(::std::string* message) {
- if (message != NULL) {
- set_has_message();
+inline void CustomMessage::set_allocated_message(std::string* message) {
+ if (message != nullptr) {
+ _has_bits_[0] |= 0x00000001u;
} else {
- clear_has_message();
+ _has_bits_[0] &= ~0x00000001u;
}
- message_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), message);
+ message_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), message);
// @@protoc_insertion_point(field_set_allocated:exec.bit.control.CustomMessage.message)
}
@@ -2151,583 +2585,634 @@ inline void CustomMessage::set_allocated_message(::std::string* message) {
// PlanFragment
// optional .exec.bit.FragmentHandle handle = 1;
-inline bool PlanFragment::has_handle() const {
- return (_has_bits_[0] & 0x00000004u) != 0;
+inline bool PlanFragment::_internal_has_handle() const {
+ bool value = (_has_bits_[0] & 0x00000004u) != 0;
+ PROTOBUF_ASSUME(!value || handle_ != nullptr);
+ return value;
}
-inline void PlanFragment::set_has_handle() {
- _has_bits_[0] |= 0x00000004u;
-}
-inline void PlanFragment::clear_has_handle() {
- _has_bits_[0] &= ~0x00000004u;
+inline bool PlanFragment::has_handle() const {
+ return _internal_has_handle();
}
inline const ::exec::bit::FragmentHandle& PlanFragment::_internal_handle() const {
- return *handle_;
+ const ::exec::bit::FragmentHandle* p = handle_;
+ return p != nullptr ? *p : *reinterpret_cast<const ::exec::bit::FragmentHandle*>(
+ &::exec::bit::_FragmentHandle_default_instance_);
}
inline const ::exec::bit::FragmentHandle& PlanFragment::handle() const {
- 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_);
+ return _internal_handle();
}
inline ::exec::bit::FragmentHandle* PlanFragment::release_handle() {
// @@protoc_insertion_point(field_release:exec.bit.control.PlanFragment.handle)
- clear_has_handle();
+ _has_bits_[0] &= ~0x00000004u;
::exec::bit::FragmentHandle* temp = handle_;
- handle_ = NULL;
+ handle_ = nullptr;
return temp;
}
-inline ::exec::bit::FragmentHandle* PlanFragment::mutable_handle() {
- set_has_handle();
- if (handle_ == NULL) {
+inline ::exec::bit::FragmentHandle* PlanFragment::_internal_mutable_handle() {
+ _has_bits_[0] |= 0x00000004u;
+ if (handle_ == nullptr) {
auto* p = CreateMaybeMessage<::exec::bit::FragmentHandle>(GetArenaNoVirtual());
handle_ = p;
}
- // @@protoc_insertion_point(field_mutable:exec.bit.control.PlanFragment.handle)
return handle_;
}
+inline ::exec::bit::FragmentHandle* PlanFragment::mutable_handle() {
+ // @@protoc_insertion_point(field_mutable:exec.bit.control.PlanFragment.handle)
+ return _internal_mutable_handle();
+}
inline void PlanFragment::set_allocated_handle(::exec::bit::FragmentHandle* handle) {
- ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
- if (message_arena == NULL) {
- delete reinterpret_cast< ::google::protobuf::MessageLite*>(handle_);
+ ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
+ if (message_arena == nullptr) {
+ delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(handle_);
}
if (handle) {
- ::google::protobuf::Arena* submessage_arena = NULL;
+ ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr;
if (message_arena != submessage_arena) {
- handle = ::google::protobuf::internal::GetOwnedMessage(
+ handle = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
message_arena, handle, submessage_arena);
}
- set_has_handle();
+ _has_bits_[0] |= 0x00000004u;
} else {
- clear_has_handle();
+ _has_bits_[0] &= ~0x00000004u;
}
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] & 0x00000080u) != 0;
+inline bool PlanFragment::_internal_has_network_cost() const {
+ bool value = (_has_bits_[0] & 0x00000080u) != 0;
+ return value;
}
-inline void PlanFragment::set_has_network_cost() {
- _has_bits_[0] |= 0x00000080u;
-}
-inline void PlanFragment::clear_has_network_cost() {
- _has_bits_[0] &= ~0x00000080u;
+inline bool PlanFragment::has_network_cost() const {
+ return _internal_has_network_cost();
... 133405 lines suppressed ...