You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@drill.apache.org by ja...@apache.org on 2014/05/30 01:45:19 UTC

[10/15] DRILL-423: C++ Client. Initial implementation (reviewed)

http://git-wip-us.apache.org/repos/asf/incubator-drill/blob/e1e5ea0e/contrib/native/client/src/protobuf/BitControl.pb.h
----------------------------------------------------------------------
diff --git a/contrib/native/client/src/protobuf/BitControl.pb.h b/contrib/native/client/src/protobuf/BitControl.pb.h
new file mode 100644
index 0000000..e26f7c0
--- /dev/null
+++ b/contrib/native/client/src/protobuf/BitControl.pb.h
@@ -0,0 +1,1785 @@
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: BitControl.proto
+
+#ifndef PROTOBUF_BitControl_2eproto__INCLUDED
+#define PROTOBUF_BitControl_2eproto__INCLUDED
+
+#include <string>
+
+#include <google/protobuf/stubs/common.h>
+
+#if GOOGLE_PROTOBUF_VERSION < 2005000
+#error This file was generated by a newer version of protoc which is
+#error incompatible with your Protocol Buffer headers.  Please update
+#error your headers.
+#endif
+#if 2005000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
+#error This file was generated by an older version of protoc which is
+#error incompatible with your Protocol Buffer headers.  Please
+#error regenerate this file with a newer version of protoc.
+#endif
+
+#include <google/protobuf/generated_message_util.h>
+#include <google/protobuf/message.h>
+#include <google/protobuf/repeated_field.h>
+#include <google/protobuf/extension_set.h>
+#include <google/protobuf/generated_enum_reflection.h>
+#include <google/protobuf/unknown_field_set.h>
+#include "ExecutionProtos.pb.h"
+#include "Coordination.pb.h"
+#include "UserBitShared.pb.h"
+// @@protoc_insertion_point(includes)
+
+namespace exec {
+namespace bit {
+namespace control {
+
+// Internal implementation detail -- do not call these.
+void  protobuf_AddDesc_BitControl_2eproto();
+void protobuf_AssignDesc_BitControl_2eproto();
+void protobuf_ShutdownFile_BitControl_2eproto();
+
+class BitControlHandshake;
+class BitStatus;
+class FragmentStatus;
+class PlanFragment;
+class WorkQueueStatus;
+
+enum FragmentStatus_FragmentState {
+  FragmentStatus_FragmentState_SENDING = 0,
+  FragmentStatus_FragmentState_AWAITING_ALLOCATION = 1,
+  FragmentStatus_FragmentState_RUNNING = 2,
+  FragmentStatus_FragmentState_FINISHED = 3,
+  FragmentStatus_FragmentState_CANCELLED = 4,
+  FragmentStatus_FragmentState_FAILED = 5
+};
+bool FragmentStatus_FragmentState_IsValid(int value);
+const FragmentStatus_FragmentState FragmentStatus_FragmentState_FragmentState_MIN = FragmentStatus_FragmentState_SENDING;
+const FragmentStatus_FragmentState FragmentStatus_FragmentState_FragmentState_MAX = FragmentStatus_FragmentState_FAILED;
+const int FragmentStatus_FragmentState_FragmentState_ARRAYSIZE = FragmentStatus_FragmentState_FragmentState_MAX + 1;
+
+const ::google::protobuf::EnumDescriptor* FragmentStatus_FragmentState_descriptor();
+inline const ::std::string& FragmentStatus_FragmentState_Name(FragmentStatus_FragmentState value) {
+  return ::google::protobuf::internal::NameOfEnum(
+    FragmentStatus_FragmentState_descriptor(), value);
+}
+inline bool FragmentStatus_FragmentState_Parse(
+    const ::std::string& name, FragmentStatus_FragmentState* value) {
+  return ::google::protobuf::internal::ParseNamedEnum<FragmentStatus_FragmentState>(
+    FragmentStatus_FragmentState_descriptor(), name, value);
+}
+enum RpcType {
+  HANDSHAKE = 0,
+  ACK = 1,
+  GOODBYE = 2,
+  REQ_INIATILIZE_FRAGMENT = 3,
+  REQ_CANCEL_FRAGMENT = 6,
+  REQ_FRAGMENT_STATUS = 7,
+  REQ_BIT_STATUS = 8,
+  RESP_FRAGMENT_HANDLE = 9,
+  RESP_FRAGMENT_STATUS = 10,
+  RESP_BIT_STATUS = 11
+};
+bool RpcType_IsValid(int value);
+const RpcType RpcType_MIN = HANDSHAKE;
+const RpcType RpcType_MAX = RESP_BIT_STATUS;
+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);
+}
+inline bool RpcType_Parse(
+    const ::std::string& name, RpcType* value) {
+  return ::google::protobuf::internal::ParseNamedEnum<RpcType>(
+    RpcType_descriptor(), name, value);
+}
+// ===================================================================
+
+class BitControlHandshake : public ::google::protobuf::Message {
+ public:
+  BitControlHandshake();
+  virtual ~BitControlHandshake();
+
+  BitControlHandshake(const BitControlHandshake& from);
+
+  inline BitControlHandshake& operator=(const BitControlHandshake& from) {
+    CopyFrom(from);
+    return *this;
+  }
+
+  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
+    return _unknown_fields_;
+  }
+
+  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
+    return &_unknown_fields_;
+  }
+
+  static const ::google::protobuf::Descriptor* descriptor();
+  static const BitControlHandshake& default_instance();
+
+  void Swap(BitControlHandshake* other);
+
+  // implements Message ----------------------------------------------
+
+  BitControlHandshake* New() const;
+  void CopyFrom(const ::google::protobuf::Message& from);
+  void MergeFrom(const ::google::protobuf::Message& from);
+  void CopyFrom(const BitControlHandshake& from);
+  void MergeFrom(const BitControlHandshake& from);
+  void Clear();
+  bool IsInitialized() const;
+
+  int ByteSize() const;
+  bool MergePartialFromCodedStream(
+      ::google::protobuf::io::CodedInputStream* input);
+  void SerializeWithCachedSizes(
+      ::google::protobuf::io::CodedOutputStream* output) const;
+  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
+  int GetCachedSize() const { return _cached_size_; }
+  private:
+  void SharedCtor();
+  void SharedDtor();
+  void SetCachedSize(int size) const;
+  public:
+
+  ::google::protobuf::Metadata GetMetadata() const;
+
+  // nested types ----------------------------------------------------
+
+  // accessors -------------------------------------------------------
+
+  // optional int32 rpc_version = 1;
+  inline bool has_rpc_version() const;
+  inline void clear_rpc_version();
+  static const int kRpcVersionFieldNumber = 1;
+  inline ::google::protobuf::int32 rpc_version() const;
+  inline void set_rpc_version(::google::protobuf::int32 value);
+
+  // optional .exec.shared.RpcChannel channel = 2 [default = BIT_CONTROL];
+  inline bool has_channel() const;
+  inline void clear_channel();
+  static const int kChannelFieldNumber = 2;
+  inline ::exec::shared::RpcChannel channel() const;
+  inline void set_channel(::exec::shared::RpcChannel value);
+
+  // optional .exec.DrillbitEndpoint endpoint = 3;
+  inline bool has_endpoint() const;
+  inline void clear_endpoint();
+  static const int kEndpointFieldNumber = 3;
+  inline const ::exec::DrillbitEndpoint& endpoint() const;
+  inline ::exec::DrillbitEndpoint* mutable_endpoint();
+  inline ::exec::DrillbitEndpoint* release_endpoint();
+  inline void set_allocated_endpoint(::exec::DrillbitEndpoint* endpoint);
+
+  // @@protoc_insertion_point(class_scope:exec.bit.control.BitControlHandshake)
+ private:
+  inline void set_has_rpc_version();
+  inline void clear_has_rpc_version();
+  inline void set_has_channel();
+  inline void clear_has_channel();
+  inline void set_has_endpoint();
+  inline void clear_has_endpoint();
+
+  ::google::protobuf::UnknownFieldSet _unknown_fields_;
+
+  ::google::protobuf::int32 rpc_version_;
+  int channel_;
+  ::exec::DrillbitEndpoint* endpoint_;
+
+  mutable int _cached_size_;
+  ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32];
+
+  friend void  protobuf_AddDesc_BitControl_2eproto();
+  friend void protobuf_AssignDesc_BitControl_2eproto();
+  friend void protobuf_ShutdownFile_BitControl_2eproto();
+
+  void InitAsDefaultInstance();
+  static BitControlHandshake* default_instance_;
+};
+// -------------------------------------------------------------------
+
+class BitStatus : public ::google::protobuf::Message {
+ public:
+  BitStatus();
+  virtual ~BitStatus();
+
+  BitStatus(const BitStatus& from);
+
+  inline BitStatus& operator=(const BitStatus& from) {
+    CopyFrom(from);
+    return *this;
+  }
+
+  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
+    return _unknown_fields_;
+  }
+
+  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
+    return &_unknown_fields_;
+  }
+
+  static const ::google::protobuf::Descriptor* descriptor();
+  static const BitStatus& default_instance();
+
+  void Swap(BitStatus* other);
+
+  // implements Message ----------------------------------------------
+
+  BitStatus* New() const;
+  void CopyFrom(const ::google::protobuf::Message& from);
+  void MergeFrom(const ::google::protobuf::Message& from);
+  void CopyFrom(const BitStatus& from);
+  void MergeFrom(const BitStatus& from);
+  void Clear();
+  bool IsInitialized() const;
+
+  int ByteSize() const;
+  bool MergePartialFromCodedStream(
+      ::google::protobuf::io::CodedInputStream* input);
+  void SerializeWithCachedSizes(
+      ::google::protobuf::io::CodedOutputStream* output) const;
+  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
+  int GetCachedSize() const { return _cached_size_; }
+  private:
+  void SharedCtor();
+  void SharedDtor();
+  void SetCachedSize(int size) const;
+  public:
+
+  ::google::protobuf::Metadata GetMetadata() const;
+
+  // nested types ----------------------------------------------------
+
+  // accessors -------------------------------------------------------
+
+  // repeated .exec.bit.control.FragmentStatus fragment_status = 1;
+  inline int fragment_status_size() const;
+  inline void clear_fragment_status();
+  static const int kFragmentStatusFieldNumber = 1;
+  inline const ::exec::bit::control::FragmentStatus& fragment_status(int index) const;
+  inline ::exec::bit::control::FragmentStatus* mutable_fragment_status(int index);
+  inline ::exec::bit::control::FragmentStatus* add_fragment_status();
+  inline const ::google::protobuf::RepeatedPtrField< ::exec::bit::control::FragmentStatus >&
+      fragment_status() const;
+  inline ::google::protobuf::RepeatedPtrField< ::exec::bit::control::FragmentStatus >*
+      mutable_fragment_status();
+
+  // @@protoc_insertion_point(class_scope:exec.bit.control.BitStatus)
+ private:
+
+  ::google::protobuf::UnknownFieldSet _unknown_fields_;
+
+  ::google::protobuf::RepeatedPtrField< ::exec::bit::control::FragmentStatus > fragment_status_;
+
+  mutable int _cached_size_;
+  ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32];
+
+  friend void  protobuf_AddDesc_BitControl_2eproto();
+  friend void protobuf_AssignDesc_BitControl_2eproto();
+  friend void protobuf_ShutdownFile_BitControl_2eproto();
+
+  void InitAsDefaultInstance();
+  static BitStatus* default_instance_;
+};
+// -------------------------------------------------------------------
+
+class FragmentStatus : public ::google::protobuf::Message {
+ public:
+  FragmentStatus();
+  virtual ~FragmentStatus();
+
+  FragmentStatus(const FragmentStatus& from);
+
+  inline FragmentStatus& operator=(const FragmentStatus& from) {
+    CopyFrom(from);
+    return *this;
+  }
+
+  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
+    return _unknown_fields_;
+  }
+
+  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
+    return &_unknown_fields_;
+  }
+
+  static const ::google::protobuf::Descriptor* descriptor();
+  static const FragmentStatus& default_instance();
+
+  void Swap(FragmentStatus* other);
+
+  // implements Message ----------------------------------------------
+
+  FragmentStatus* New() const;
+  void CopyFrom(const ::google::protobuf::Message& from);
+  void MergeFrom(const ::google::protobuf::Message& from);
+  void CopyFrom(const FragmentStatus& from);
+  void MergeFrom(const FragmentStatus& from);
+  void Clear();
+  bool IsInitialized() const;
+
+  int ByteSize() const;
+  bool MergePartialFromCodedStream(
+      ::google::protobuf::io::CodedInputStream* input);
+  void SerializeWithCachedSizes(
+      ::google::protobuf::io::CodedOutputStream* output) const;
+  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
+  int GetCachedSize() const { return _cached_size_; }
+  private:
+  void SharedCtor();
+  void SharedDtor();
+  void SetCachedSize(int size) const;
+  public:
+
+  ::google::protobuf::Metadata GetMetadata() const;
+
+  // nested types ----------------------------------------------------
+
+  typedef FragmentStatus_FragmentState FragmentState;
+  static const FragmentState SENDING = FragmentStatus_FragmentState_SENDING;
+  static const FragmentState AWAITING_ALLOCATION = FragmentStatus_FragmentState_AWAITING_ALLOCATION;
+  static const FragmentState RUNNING = FragmentStatus_FragmentState_RUNNING;
+  static const FragmentState FINISHED = FragmentStatus_FragmentState_FINISHED;
+  static const FragmentState CANCELLED = FragmentStatus_FragmentState_CANCELLED;
+  static const FragmentState FAILED = FragmentStatus_FragmentState_FAILED;
+  static inline bool FragmentState_IsValid(int value) {
+    return FragmentStatus_FragmentState_IsValid(value);
+  }
+  static const FragmentState FragmentState_MIN =
+    FragmentStatus_FragmentState_FragmentState_MIN;
+  static const FragmentState FragmentState_MAX =
+    FragmentStatus_FragmentState_FragmentState_MAX;
+  static const int FragmentState_ARRAYSIZE =
+    FragmentStatus_FragmentState_FragmentState_ARRAYSIZE;
+  static inline const ::google::protobuf::EnumDescriptor*
+  FragmentState_descriptor() {
+    return FragmentStatus_FragmentState_descriptor();
+  }
+  static inline const ::std::string& FragmentState_Name(FragmentState value) {
+    return FragmentStatus_FragmentState_Name(value);
+  }
+  static inline bool FragmentState_Parse(const ::std::string& name,
+      FragmentState* value) {
+    return FragmentStatus_FragmentState_Parse(name, value);
+  }
+
+  // accessors -------------------------------------------------------
+
+  // optional int64 memory_use = 1;
+  inline bool has_memory_use() const;
+  inline void clear_memory_use();
+  static const int kMemoryUseFieldNumber = 1;
+  inline ::google::protobuf::int64 memory_use() const;
+  inline void set_memory_use(::google::protobuf::int64 value);
+
+  // optional int64 batches_completed = 2;
+  inline bool has_batches_completed() const;
+  inline void clear_batches_completed();
+  static const int kBatchesCompletedFieldNumber = 2;
+  inline ::google::protobuf::int64 batches_completed() const;
+  inline void set_batches_completed(::google::protobuf::int64 value);
+
+  // optional int64 records_completed = 3;
+  inline bool has_records_completed() const;
+  inline void clear_records_completed();
+  static const int kRecordsCompletedFieldNumber = 3;
+  inline ::google::protobuf::int64 records_completed() const;
+  inline void set_records_completed(::google::protobuf::int64 value);
+
+  // optional int32 estimated_completion_percentage = 4;
+  inline bool has_estimated_completion_percentage() const;
+  inline void clear_estimated_completion_percentage();
+  static const int kEstimatedCompletionPercentageFieldNumber = 4;
+  inline ::google::protobuf::int32 estimated_completion_percentage() const;
+  inline void set_estimated_completion_percentage(::google::protobuf::int32 value);
+
+  // optional .exec.bit.control.FragmentStatus.FragmentState state = 5;
+  inline bool has_state() const;
+  inline void clear_state();
+  static const int kStateFieldNumber = 5;
+  inline ::exec::bit::control::FragmentStatus_FragmentState state() const;
+  inline void set_state(::exec::bit::control::FragmentStatus_FragmentState value);
+
+  // optional int64 data_processed = 6;
+  inline bool has_data_processed() const;
+  inline void clear_data_processed();
+  static const int kDataProcessedFieldNumber = 6;
+  inline ::google::protobuf::int64 data_processed() const;
+  inline void set_data_processed(::google::protobuf::int64 value);
+
+  // optional .exec.bit.FragmentHandle handle = 7;
+  inline bool has_handle() const;
+  inline void clear_handle();
+  static const int kHandleFieldNumber = 7;
+  inline const ::exec::bit::FragmentHandle& handle() const;
+  inline ::exec::bit::FragmentHandle* mutable_handle();
+  inline ::exec::bit::FragmentHandle* release_handle();
+  inline void set_allocated_handle(::exec::bit::FragmentHandle* handle);
+
+  // optional .exec.shared.DrillPBError error = 8;
+  inline bool has_error() const;
+  inline void clear_error();
+  static const int kErrorFieldNumber = 8;
+  inline const ::exec::shared::DrillPBError& error() const;
+  inline ::exec::shared::DrillPBError* mutable_error();
+  inline ::exec::shared::DrillPBError* release_error();
+  inline void set_allocated_error(::exec::shared::DrillPBError* error);
+
+  // optional int64 running_time = 9;
+  inline bool has_running_time() const;
+  inline void clear_running_time();
+  static const int kRunningTimeFieldNumber = 9;
+  inline ::google::protobuf::int64 running_time() const;
+  inline void set_running_time(::google::protobuf::int64 value);
+
+  // @@protoc_insertion_point(class_scope:exec.bit.control.FragmentStatus)
+ private:
+  inline void set_has_memory_use();
+  inline void clear_has_memory_use();
+  inline void set_has_batches_completed();
+  inline void clear_has_batches_completed();
+  inline void set_has_records_completed();
+  inline void clear_has_records_completed();
+  inline void set_has_estimated_completion_percentage();
+  inline void clear_has_estimated_completion_percentage();
+  inline void set_has_state();
+  inline void clear_has_state();
+  inline void set_has_data_processed();
+  inline void clear_has_data_processed();
+  inline void set_has_handle();
+  inline void clear_has_handle();
+  inline void set_has_error();
+  inline void clear_has_error();
+  inline void set_has_running_time();
+  inline void clear_has_running_time();
+
+  ::google::protobuf::UnknownFieldSet _unknown_fields_;
+
+  ::google::protobuf::int64 memory_use_;
+  ::google::protobuf::int64 batches_completed_;
+  ::google::protobuf::int64 records_completed_;
+  ::google::protobuf::int32 estimated_completion_percentage_;
+  int state_;
+  ::google::protobuf::int64 data_processed_;
+  ::exec::bit::FragmentHandle* handle_;
+  ::exec::shared::DrillPBError* error_;
+  ::google::protobuf::int64 running_time_;
+
+  mutable int _cached_size_;
+  ::google::protobuf::uint32 _has_bits_[(9 + 31) / 32];
+
+  friend void  protobuf_AddDesc_BitControl_2eproto();
+  friend void protobuf_AssignDesc_BitControl_2eproto();
+  friend void protobuf_ShutdownFile_BitControl_2eproto();
+
+  void InitAsDefaultInstance();
+  static FragmentStatus* default_instance_;
+};
+// -------------------------------------------------------------------
+
+class PlanFragment : public ::google::protobuf::Message {
+ public:
+  PlanFragment();
+  virtual ~PlanFragment();
+
+  PlanFragment(const PlanFragment& from);
+
+  inline PlanFragment& operator=(const PlanFragment& from) {
+    CopyFrom(from);
+    return *this;
+  }
+
+  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
+    return _unknown_fields_;
+  }
+
+  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
+    return &_unknown_fields_;
+  }
+
+  static const ::google::protobuf::Descriptor* descriptor();
+  static const PlanFragment& default_instance();
+
+  void Swap(PlanFragment* other);
+
+  // implements Message ----------------------------------------------
+
+  PlanFragment* New() const;
+  void CopyFrom(const ::google::protobuf::Message& from);
+  void MergeFrom(const ::google::protobuf::Message& from);
+  void CopyFrom(const PlanFragment& from);
+  void MergeFrom(const PlanFragment& from);
+  void Clear();
+  bool IsInitialized() const;
+
+  int ByteSize() const;
+  bool MergePartialFromCodedStream(
+      ::google::protobuf::io::CodedInputStream* input);
+  void SerializeWithCachedSizes(
+      ::google::protobuf::io::CodedOutputStream* output) const;
+  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
+  int GetCachedSize() const { return _cached_size_; }
+  private:
+  void SharedCtor();
+  void SharedDtor();
+  void SetCachedSize(int size) const;
+  public:
+
+  ::google::protobuf::Metadata GetMetadata() const;
+
+  // nested types ----------------------------------------------------
+
+  // accessors -------------------------------------------------------
+
+  // optional .exec.bit.FragmentHandle handle = 1;
+  inline bool has_handle() const;
+  inline void clear_handle();
+  static const int kHandleFieldNumber = 1;
+  inline const ::exec::bit::FragmentHandle& handle() const;
+  inline ::exec::bit::FragmentHandle* mutable_handle();
+  inline ::exec::bit::FragmentHandle* release_handle();
+  inline void set_allocated_handle(::exec::bit::FragmentHandle* handle);
+
+  // optional float network_cost = 4;
+  inline bool has_network_cost() const;
+  inline void clear_network_cost();
+  static const int kNetworkCostFieldNumber = 4;
+  inline float network_cost() const;
+  inline void set_network_cost(float value);
+
+  // optional float cpu_cost = 5;
+  inline bool has_cpu_cost() const;
+  inline void clear_cpu_cost();
+  static const int kCpuCostFieldNumber = 5;
+  inline float cpu_cost() const;
+  inline void set_cpu_cost(float value);
+
+  // optional float disk_cost = 6;
+  inline bool has_disk_cost() const;
+  inline void clear_disk_cost();
+  static const int kDiskCostFieldNumber = 6;
+  inline float disk_cost() const;
+  inline void set_disk_cost(float value);
+
+  // optional float memory_cost = 7;
+  inline bool has_memory_cost() const;
+  inline void clear_memory_cost();
+  static const int kMemoryCostFieldNumber = 7;
+  inline float memory_cost() const;
+  inline void set_memory_cost(float value);
+
+  // optional string fragment_json = 8;
+  inline bool has_fragment_json() const;
+  inline void clear_fragment_json();
+  static const int kFragmentJsonFieldNumber = 8;
+  inline const ::std::string& fragment_json() const;
+  inline void set_fragment_json(const ::std::string& value);
+  inline void set_fragment_json(const char* value);
+  inline void set_fragment_json(const char* value, size_t size);
+  inline ::std::string* mutable_fragment_json();
+  inline ::std::string* release_fragment_json();
+  inline void set_allocated_fragment_json(::std::string* fragment_json);
+
+  // optional .exec.DrillbitEndpoint assignment = 10;
+  inline bool has_assignment() const;
+  inline void clear_assignment();
+  static const int kAssignmentFieldNumber = 10;
+  inline const ::exec::DrillbitEndpoint& assignment() const;
+  inline ::exec::DrillbitEndpoint* mutable_assignment();
+  inline ::exec::DrillbitEndpoint* release_assignment();
+  inline void set_allocated_assignment(::exec::DrillbitEndpoint* assignment);
+
+  // optional bool leaf_fragment = 9;
+  inline bool has_leaf_fragment() const;
+  inline void clear_leaf_fragment();
+  static const int kLeafFragmentFieldNumber = 9;
+  inline bool leaf_fragment() const;
+  inline void set_leaf_fragment(bool value);
+
+  // optional .exec.DrillbitEndpoint foreman = 11;
+  inline bool has_foreman() const;
+  inline void clear_foreman();
+  static const int kForemanFieldNumber = 11;
+  inline const ::exec::DrillbitEndpoint& foreman() const;
+  inline ::exec::DrillbitEndpoint* mutable_foreman();
+  inline ::exec::DrillbitEndpoint* release_foreman();
+  inline void set_allocated_foreman(::exec::DrillbitEndpoint* foreman);
+
+  // optional int64 mem_initial = 12 [default = 20000000];
+  inline bool has_mem_initial() const;
+  inline void clear_mem_initial();
+  static const int kMemInitialFieldNumber = 12;
+  inline ::google::protobuf::int64 mem_initial() const;
+  inline void set_mem_initial(::google::protobuf::int64 value);
+
+  // optional int64 mem_max = 13 [default = 20000000000];
+  inline bool has_mem_max() const;
+  inline void clear_mem_max();
+  static const int kMemMaxFieldNumber = 13;
+  inline ::google::protobuf::int64 mem_max() const;
+  inline void set_mem_max(::google::protobuf::int64 value);
+
+  // optional int64 query_start_time = 14;
+  inline bool has_query_start_time() const;
+  inline void clear_query_start_time();
+  static const int kQueryStartTimeFieldNumber = 14;
+  inline ::google::protobuf::int64 query_start_time() const;
+  inline void set_query_start_time(::google::protobuf::int64 value);
+
+  // optional .exec.shared.UserCredentials credentials = 15;
+  inline bool has_credentials() const;
+  inline void clear_credentials();
+  static const int kCredentialsFieldNumber = 15;
+  inline const ::exec::shared::UserCredentials& credentials() const;
+  inline ::exec::shared::UserCredentials* mutable_credentials();
+  inline ::exec::shared::UserCredentials* release_credentials();
+  inline void set_allocated_credentials(::exec::shared::UserCredentials* credentials);
+
+  // optional int32 time_zone = 16;
+  inline bool has_time_zone() const;
+  inline void clear_time_zone();
+  static const int kTimeZoneFieldNumber = 16;
+  inline ::google::protobuf::int32 time_zone() const;
+  inline void set_time_zone(::google::protobuf::int32 value);
+
+  // optional string options_json = 17;
+  inline bool has_options_json() const;
+  inline void clear_options_json();
+  static const int kOptionsJsonFieldNumber = 17;
+  inline const ::std::string& options_json() const;
+  inline void set_options_json(const ::std::string& value);
+  inline void set_options_json(const char* value);
+  inline void set_options_json(const char* value, size_t size);
+  inline ::std::string* mutable_options_json();
+  inline ::std::string* release_options_json();
+  inline void set_allocated_options_json(::std::string* options_json);
+
+  // @@protoc_insertion_point(class_scope:exec.bit.control.PlanFragment)
+ private:
+  inline void set_has_handle();
+  inline void clear_has_handle();
+  inline void set_has_network_cost();
+  inline void clear_has_network_cost();
+  inline void set_has_cpu_cost();
+  inline void clear_has_cpu_cost();
+  inline void set_has_disk_cost();
+  inline void clear_has_disk_cost();
+  inline void set_has_memory_cost();
+  inline void clear_has_memory_cost();
+  inline void set_has_fragment_json();
+  inline void clear_has_fragment_json();
+  inline void set_has_assignment();
+  inline void clear_has_assignment();
+  inline void set_has_leaf_fragment();
+  inline void clear_has_leaf_fragment();
+  inline void set_has_foreman();
+  inline void clear_has_foreman();
+  inline void set_has_mem_initial();
+  inline void clear_has_mem_initial();
+  inline void set_has_mem_max();
+  inline void clear_has_mem_max();
+  inline void set_has_query_start_time();
+  inline void clear_has_query_start_time();
+  inline void set_has_credentials();
+  inline void clear_has_credentials();
+  inline void set_has_time_zone();
+  inline void clear_has_time_zone();
+  inline void set_has_options_json();
+  inline void clear_has_options_json();
+
+  ::google::protobuf::UnknownFieldSet _unknown_fields_;
+
+  ::exec::bit::FragmentHandle* handle_;
+  float network_cost_;
+  float cpu_cost_;
+  float disk_cost_;
+  float memory_cost_;
+  ::std::string* fragment_json_;
+  ::exec::DrillbitEndpoint* assignment_;
+  ::exec::DrillbitEndpoint* foreman_;
+  ::google::protobuf::int64 mem_initial_;
+  bool leaf_fragment_;
+  ::google::protobuf::int32 time_zone_;
+  ::google::protobuf::int64 mem_max_;
+  ::google::protobuf::int64 query_start_time_;
+  ::exec::shared::UserCredentials* credentials_;
+  ::std::string* options_json_;
+
+  mutable int _cached_size_;
+  ::google::protobuf::uint32 _has_bits_[(15 + 31) / 32];
+
+  friend void  protobuf_AddDesc_BitControl_2eproto();
+  friend void protobuf_AssignDesc_BitControl_2eproto();
+  friend void protobuf_ShutdownFile_BitControl_2eproto();
+
+  void InitAsDefaultInstance();
+  static PlanFragment* default_instance_;
+};
+// -------------------------------------------------------------------
+
+class WorkQueueStatus : public ::google::protobuf::Message {
+ public:
+  WorkQueueStatus();
+  virtual ~WorkQueueStatus();
+
+  WorkQueueStatus(const WorkQueueStatus& from);
+
+  inline WorkQueueStatus& operator=(const WorkQueueStatus& from) {
+    CopyFrom(from);
+    return *this;
+  }
+
+  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
+    return _unknown_fields_;
+  }
+
+  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
+    return &_unknown_fields_;
+  }
+
+  static const ::google::protobuf::Descriptor* descriptor();
+  static const WorkQueueStatus& default_instance();
+
+  void Swap(WorkQueueStatus* other);
+
+  // implements Message ----------------------------------------------
+
+  WorkQueueStatus* New() const;
+  void CopyFrom(const ::google::protobuf::Message& from);
+  void MergeFrom(const ::google::protobuf::Message& from);
+  void CopyFrom(const WorkQueueStatus& from);
+  void MergeFrom(const WorkQueueStatus& from);
+  void Clear();
+  bool IsInitialized() const;
+
+  int ByteSize() const;
+  bool MergePartialFromCodedStream(
+      ::google::protobuf::io::CodedInputStream* input);
+  void SerializeWithCachedSizes(
+      ::google::protobuf::io::CodedOutputStream* output) const;
+  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
+  int GetCachedSize() const { return _cached_size_; }
+  private:
+  void SharedCtor();
+  void SharedDtor();
+  void SetCachedSize(int size) const;
+  public:
+
+  ::google::protobuf::Metadata GetMetadata() const;
+
+  // nested types ----------------------------------------------------
+
+  // accessors -------------------------------------------------------
+
+  // optional .exec.DrillbitEndpoint endpoint = 1;
+  inline bool has_endpoint() const;
+  inline void clear_endpoint();
+  static const int kEndpointFieldNumber = 1;
+  inline const ::exec::DrillbitEndpoint& endpoint() const;
+  inline ::exec::DrillbitEndpoint* mutable_endpoint();
+  inline ::exec::DrillbitEndpoint* release_endpoint();
+  inline void set_allocated_endpoint(::exec::DrillbitEndpoint* endpoint);
+
+  // optional int32 queue_length = 2;
+  inline bool has_queue_length() const;
+  inline void clear_queue_length();
+  static const int kQueueLengthFieldNumber = 2;
+  inline ::google::protobuf::int32 queue_length() const;
+  inline void set_queue_length(::google::protobuf::int32 value);
+
+  // optional int64 report_time = 3;
+  inline bool has_report_time() const;
+  inline void clear_report_time();
+  static const int kReportTimeFieldNumber = 3;
+  inline ::google::protobuf::int64 report_time() const;
+  inline void set_report_time(::google::protobuf::int64 value);
+
+  // @@protoc_insertion_point(class_scope:exec.bit.control.WorkQueueStatus)
+ private:
+  inline void set_has_endpoint();
+  inline void clear_has_endpoint();
+  inline void set_has_queue_length();
+  inline void clear_has_queue_length();
+  inline void set_has_report_time();
+  inline void clear_has_report_time();
+
+  ::google::protobuf::UnknownFieldSet _unknown_fields_;
+
+  ::exec::DrillbitEndpoint* endpoint_;
+  ::google::protobuf::int64 report_time_;
+  ::google::protobuf::int32 queue_length_;
+
+  mutable int _cached_size_;
+  ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32];
+
+  friend void  protobuf_AddDesc_BitControl_2eproto();
+  friend void protobuf_AssignDesc_BitControl_2eproto();
+  friend void protobuf_ShutdownFile_BitControl_2eproto();
+
+  void InitAsDefaultInstance();
+  static WorkQueueStatus* default_instance_;
+};
+// ===================================================================
+
+
+// ===================================================================
+
+// BitControlHandshake
+
+// optional int32 rpc_version = 1;
+inline bool BitControlHandshake::has_rpc_version() const {
+  return (_has_bits_[0] & 0x00000001u) != 0;
+}
+inline void BitControlHandshake::set_has_rpc_version() {
+  _has_bits_[0] |= 0x00000001u;
+}
+inline void BitControlHandshake::clear_has_rpc_version() {
+  _has_bits_[0] &= ~0x00000001u;
+}
+inline void BitControlHandshake::clear_rpc_version() {
+  rpc_version_ = 0;
+  clear_has_rpc_version();
+}
+inline ::google::protobuf::int32 BitControlHandshake::rpc_version() const {
+  return rpc_version_;
+}
+inline void BitControlHandshake::set_rpc_version(::google::protobuf::int32 value) {
+  set_has_rpc_version();
+  rpc_version_ = value;
+}
+
+// optional .exec.shared.RpcChannel channel = 2 [default = BIT_CONTROL];
+inline bool BitControlHandshake::has_channel() const {
+  return (_has_bits_[0] & 0x00000002u) != 0;
+}
+inline void BitControlHandshake::set_has_channel() {
+  _has_bits_[0] |= 0x00000002u;
+}
+inline void BitControlHandshake::clear_has_channel() {
+  _has_bits_[0] &= ~0x00000002u;
+}
+inline void BitControlHandshake::clear_channel() {
+  channel_ = 0;
+  clear_has_channel();
+}
+inline ::exec::shared::RpcChannel BitControlHandshake::channel() const {
+  return static_cast< ::exec::shared::RpcChannel >(channel_);
+}
+inline void BitControlHandshake::set_channel(::exec::shared::RpcChannel value) {
+  assert(::exec::shared::RpcChannel_IsValid(value));
+  set_has_channel();
+  channel_ = value;
+}
+
+// optional .exec.DrillbitEndpoint endpoint = 3;
+inline bool BitControlHandshake::has_endpoint() const {
+  return (_has_bits_[0] & 0x00000004u) != 0;
+}
+inline void BitControlHandshake::set_has_endpoint() {
+  _has_bits_[0] |= 0x00000004u;
+}
+inline void BitControlHandshake::clear_has_endpoint() {
+  _has_bits_[0] &= ~0x00000004u;
+}
+inline void BitControlHandshake::clear_endpoint() {
+  if (endpoint_ != NULL) endpoint_->::exec::DrillbitEndpoint::Clear();
+  clear_has_endpoint();
+}
+inline const ::exec::DrillbitEndpoint& BitControlHandshake::endpoint() const {
+  return endpoint_ != NULL ? *endpoint_ : *default_instance_->endpoint_;
+}
+inline ::exec::DrillbitEndpoint* BitControlHandshake::mutable_endpoint() {
+  set_has_endpoint();
+  if (endpoint_ == NULL) endpoint_ = new ::exec::DrillbitEndpoint;
+  return endpoint_;
+}
+inline ::exec::DrillbitEndpoint* BitControlHandshake::release_endpoint() {
+  clear_has_endpoint();
+  ::exec::DrillbitEndpoint* temp = endpoint_;
+  endpoint_ = NULL;
+  return temp;
+}
+inline void BitControlHandshake::set_allocated_endpoint(::exec::DrillbitEndpoint* endpoint) {
+  delete endpoint_;
+  endpoint_ = endpoint;
+  if (endpoint) {
+    set_has_endpoint();
+  } else {
+    clear_has_endpoint();
+  }
+}
+
+// -------------------------------------------------------------------
+
+// BitStatus
+
+// repeated .exec.bit.control.FragmentStatus fragment_status = 1;
+inline int BitStatus::fragment_status_size() const {
+  return fragment_status_.size();
+}
+inline void BitStatus::clear_fragment_status() {
+  fragment_status_.Clear();
+}
+inline const ::exec::bit::control::FragmentStatus& BitStatus::fragment_status(int index) const {
+  return fragment_status_.Get(index);
+}
+inline ::exec::bit::control::FragmentStatus* BitStatus::mutable_fragment_status(int index) {
+  return fragment_status_.Mutable(index);
+}
+inline ::exec::bit::control::FragmentStatus* BitStatus::add_fragment_status() {
+  return fragment_status_.Add();
+}
+inline const ::google::protobuf::RepeatedPtrField< ::exec::bit::control::FragmentStatus >&
+BitStatus::fragment_status() const {
+  return fragment_status_;
+}
+inline ::google::protobuf::RepeatedPtrField< ::exec::bit::control::FragmentStatus >*
+BitStatus::mutable_fragment_status() {
+  return &fragment_status_;
+}
+
+// -------------------------------------------------------------------
+
+// FragmentStatus
+
+// optional int64 memory_use = 1;
+inline bool FragmentStatus::has_memory_use() const {
+  return (_has_bits_[0] & 0x00000001u) != 0;
+}
+inline void FragmentStatus::set_has_memory_use() {
+  _has_bits_[0] |= 0x00000001u;
+}
+inline void FragmentStatus::clear_has_memory_use() {
+  _has_bits_[0] &= ~0x00000001u;
+}
+inline void FragmentStatus::clear_memory_use() {
+  memory_use_ = GOOGLE_LONGLONG(0);
+  clear_has_memory_use();
+}
+inline ::google::protobuf::int64 FragmentStatus::memory_use() const {
+  return memory_use_;
+}
+inline void FragmentStatus::set_memory_use(::google::protobuf::int64 value) {
+  set_has_memory_use();
+  memory_use_ = value;
+}
+
+// optional int64 batches_completed = 2;
+inline bool FragmentStatus::has_batches_completed() const {
+  return (_has_bits_[0] & 0x00000002u) != 0;
+}
+inline void FragmentStatus::set_has_batches_completed() {
+  _has_bits_[0] |= 0x00000002u;
+}
+inline void FragmentStatus::clear_has_batches_completed() {
+  _has_bits_[0] &= ~0x00000002u;
+}
+inline void FragmentStatus::clear_batches_completed() {
+  batches_completed_ = GOOGLE_LONGLONG(0);
+  clear_has_batches_completed();
+}
+inline ::google::protobuf::int64 FragmentStatus::batches_completed() const {
+  return batches_completed_;
+}
+inline void FragmentStatus::set_batches_completed(::google::protobuf::int64 value) {
+  set_has_batches_completed();
+  batches_completed_ = value;
+}
+
+// optional int64 records_completed = 3;
+inline bool FragmentStatus::has_records_completed() const {
+  return (_has_bits_[0] & 0x00000004u) != 0;
+}
+inline void FragmentStatus::set_has_records_completed() {
+  _has_bits_[0] |= 0x00000004u;
+}
+inline void FragmentStatus::clear_has_records_completed() {
+  _has_bits_[0] &= ~0x00000004u;
+}
+inline void FragmentStatus::clear_records_completed() {
+  records_completed_ = GOOGLE_LONGLONG(0);
+  clear_has_records_completed();
+}
+inline ::google::protobuf::int64 FragmentStatus::records_completed() const {
+  return records_completed_;
+}
+inline void FragmentStatus::set_records_completed(::google::protobuf::int64 value) {
+  set_has_records_completed();
+  records_completed_ = value;
+}
+
+// optional int32 estimated_completion_percentage = 4;
+inline bool FragmentStatus::has_estimated_completion_percentage() const {
+  return (_has_bits_[0] & 0x00000008u) != 0;
+}
+inline void FragmentStatus::set_has_estimated_completion_percentage() {
+  _has_bits_[0] |= 0x00000008u;
+}
+inline void FragmentStatus::clear_has_estimated_completion_percentage() {
+  _has_bits_[0] &= ~0x00000008u;
+}
+inline void FragmentStatus::clear_estimated_completion_percentage() {
+  estimated_completion_percentage_ = 0;
+  clear_has_estimated_completion_percentage();
+}
+inline ::google::protobuf::int32 FragmentStatus::estimated_completion_percentage() const {
+  return estimated_completion_percentage_;
+}
+inline void FragmentStatus::set_estimated_completion_percentage(::google::protobuf::int32 value) {
+  set_has_estimated_completion_percentage();
+  estimated_completion_percentage_ = value;
+}
+
+// optional .exec.bit.control.FragmentStatus.FragmentState state = 5;
+inline bool FragmentStatus::has_state() const {
+  return (_has_bits_[0] & 0x00000010u) != 0;
+}
+inline void FragmentStatus::set_has_state() {
+  _has_bits_[0] |= 0x00000010u;
+}
+inline void FragmentStatus::clear_has_state() {
+  _has_bits_[0] &= ~0x00000010u;
+}
+inline void FragmentStatus::clear_state() {
+  state_ = 0;
+  clear_has_state();
+}
+inline ::exec::bit::control::FragmentStatus_FragmentState FragmentStatus::state() const {
+  return static_cast< ::exec::bit::control::FragmentStatus_FragmentState >(state_);
+}
+inline void FragmentStatus::set_state(::exec::bit::control::FragmentStatus_FragmentState value) {
+  assert(::exec::bit::control::FragmentStatus_FragmentState_IsValid(value));
+  set_has_state();
+  state_ = value;
+}
+
+// optional int64 data_processed = 6;
+inline bool FragmentStatus::has_data_processed() const {
+  return (_has_bits_[0] & 0x00000020u) != 0;
+}
+inline void FragmentStatus::set_has_data_processed() {
+  _has_bits_[0] |= 0x00000020u;
+}
+inline void FragmentStatus::clear_has_data_processed() {
+  _has_bits_[0] &= ~0x00000020u;
+}
+inline void FragmentStatus::clear_data_processed() {
+  data_processed_ = GOOGLE_LONGLONG(0);
+  clear_has_data_processed();
+}
+inline ::google::protobuf::int64 FragmentStatus::data_processed() const {
+  return data_processed_;
+}
+inline void FragmentStatus::set_data_processed(::google::protobuf::int64 value) {
+  set_has_data_processed();
+  data_processed_ = value;
+}
+
+// optional .exec.bit.FragmentHandle handle = 7;
+inline bool FragmentStatus::has_handle() const {
+  return (_has_bits_[0] & 0x00000040u) != 0;
+}
+inline void FragmentStatus::set_has_handle() {
+  _has_bits_[0] |= 0x00000040u;
+}
+inline void FragmentStatus::clear_has_handle() {
+  _has_bits_[0] &= ~0x00000040u;
+}
+inline void FragmentStatus::clear_handle() {
+  if (handle_ != NULL) handle_->::exec::bit::FragmentHandle::Clear();
+  clear_has_handle();
+}
+inline const ::exec::bit::FragmentHandle& FragmentStatus::handle() const {
+  return handle_ != NULL ? *handle_ : *default_instance_->handle_;
+}
+inline ::exec::bit::FragmentHandle* FragmentStatus::mutable_handle() {
+  set_has_handle();
+  if (handle_ == NULL) handle_ = new ::exec::bit::FragmentHandle;
+  return handle_;
+}
+inline ::exec::bit::FragmentHandle* FragmentStatus::release_handle() {
+  clear_has_handle();
+  ::exec::bit::FragmentHandle* temp = handle_;
+  handle_ = NULL;
+  return temp;
+}
+inline void FragmentStatus::set_allocated_handle(::exec::bit::FragmentHandle* handle) {
+  delete handle_;
+  handle_ = handle;
+  if (handle) {
+    set_has_handle();
+  } else {
+    clear_has_handle();
+  }
+}
+
+// optional .exec.shared.DrillPBError error = 8;
+inline bool FragmentStatus::has_error() const {
+  return (_has_bits_[0] & 0x00000080u) != 0;
+}
+inline void FragmentStatus::set_has_error() {
+  _has_bits_[0] |= 0x00000080u;
+}
+inline void FragmentStatus::clear_has_error() {
+  _has_bits_[0] &= ~0x00000080u;
+}
+inline void FragmentStatus::clear_error() {
+  if (error_ != NULL) error_->::exec::shared::DrillPBError::Clear();
+  clear_has_error();
+}
+inline const ::exec::shared::DrillPBError& FragmentStatus::error() const {
+  return error_ != NULL ? *error_ : *default_instance_->error_;
+}
+inline ::exec::shared::DrillPBError* FragmentStatus::mutable_error() {
+  set_has_error();
+  if (error_ == NULL) error_ = new ::exec::shared::DrillPBError;
+  return error_;
+}
+inline ::exec::shared::DrillPBError* FragmentStatus::release_error() {
+  clear_has_error();
+  ::exec::shared::DrillPBError* temp = error_;
+  error_ = NULL;
+  return temp;
+}
+inline void FragmentStatus::set_allocated_error(::exec::shared::DrillPBError* error) {
+  delete error_;
+  error_ = error;
+  if (error) {
+    set_has_error();
+  } else {
+    clear_has_error();
+  }
+}
+
+// optional int64 running_time = 9;
+inline bool FragmentStatus::has_running_time() const {
+  return (_has_bits_[0] & 0x00000100u) != 0;
+}
+inline void FragmentStatus::set_has_running_time() {
+  _has_bits_[0] |= 0x00000100u;
+}
+inline void FragmentStatus::clear_has_running_time() {
+  _has_bits_[0] &= ~0x00000100u;
+}
+inline void FragmentStatus::clear_running_time() {
+  running_time_ = GOOGLE_LONGLONG(0);
+  clear_has_running_time();
+}
+inline ::google::protobuf::int64 FragmentStatus::running_time() const {
+  return running_time_;
+}
+inline void FragmentStatus::set_running_time(::google::protobuf::int64 value) {
+  set_has_running_time();
+  running_time_ = value;
+}
+
+// -------------------------------------------------------------------
+
+// PlanFragment
+
+// optional .exec.bit.FragmentHandle handle = 1;
+inline bool PlanFragment::has_handle() const {
+  return (_has_bits_[0] & 0x00000001u) != 0;
+}
+inline void PlanFragment::set_has_handle() {
+  _has_bits_[0] |= 0x00000001u;
+}
+inline void PlanFragment::clear_has_handle() {
+  _has_bits_[0] &= ~0x00000001u;
+}
+inline void PlanFragment::clear_handle() {
+  if (handle_ != NULL) handle_->::exec::bit::FragmentHandle::Clear();
+  clear_has_handle();
+}
+inline const ::exec::bit::FragmentHandle& PlanFragment::handle() const {
+  return handle_ != NULL ? *handle_ : *default_instance_->handle_;
+}
+inline ::exec::bit::FragmentHandle* PlanFragment::mutable_handle() {
+  set_has_handle();
+  if (handle_ == NULL) handle_ = new ::exec::bit::FragmentHandle;
+  return handle_;
+}
+inline ::exec::bit::FragmentHandle* PlanFragment::release_handle() {
+  clear_has_handle();
+  ::exec::bit::FragmentHandle* temp = handle_;
+  handle_ = NULL;
+  return temp;
+}
+inline void PlanFragment::set_allocated_handle(::exec::bit::FragmentHandle* handle) {
+  delete handle_;
+  handle_ = handle;
+  if (handle) {
+    set_has_handle();
+  } else {
+    clear_has_handle();
+  }
+}
+
+// optional float network_cost = 4;
+inline bool PlanFragment::has_network_cost() const {
+  return (_has_bits_[0] & 0x00000002u) != 0;
+}
+inline void PlanFragment::set_has_network_cost() {
+  _has_bits_[0] |= 0x00000002u;
+}
+inline void PlanFragment::clear_has_network_cost() {
+  _has_bits_[0] &= ~0x00000002u;
+}
+inline void PlanFragment::clear_network_cost() {
+  network_cost_ = 0;
+  clear_has_network_cost();
+}
+inline float PlanFragment::network_cost() const {
+  return network_cost_;
+}
+inline void PlanFragment::set_network_cost(float value) {
+  set_has_network_cost();
+  network_cost_ = value;
+}
+
+// optional float cpu_cost = 5;
+inline bool PlanFragment::has_cpu_cost() const {
+  return (_has_bits_[0] & 0x00000004u) != 0;
+}
+inline void PlanFragment::set_has_cpu_cost() {
+  _has_bits_[0] |= 0x00000004u;
+}
+inline void PlanFragment::clear_has_cpu_cost() {
+  _has_bits_[0] &= ~0x00000004u;
+}
+inline void PlanFragment::clear_cpu_cost() {
+  cpu_cost_ = 0;
+  clear_has_cpu_cost();
+}
+inline float PlanFragment::cpu_cost() const {
+  return cpu_cost_;
+}
+inline void PlanFragment::set_cpu_cost(float value) {
+  set_has_cpu_cost();
+  cpu_cost_ = value;
+}
+
+// optional float disk_cost = 6;
+inline bool PlanFragment::has_disk_cost() const {
+  return (_has_bits_[0] & 0x00000008u) != 0;
+}
+inline void PlanFragment::set_has_disk_cost() {
+  _has_bits_[0] |= 0x00000008u;
+}
+inline void PlanFragment::clear_has_disk_cost() {
+  _has_bits_[0] &= ~0x00000008u;
+}
+inline void PlanFragment::clear_disk_cost() {
+  disk_cost_ = 0;
+  clear_has_disk_cost();
+}
+inline float PlanFragment::disk_cost() const {
+  return disk_cost_;
+}
+inline void PlanFragment::set_disk_cost(float value) {
+  set_has_disk_cost();
+  disk_cost_ = value;
+}
+
+// optional float memory_cost = 7;
+inline bool PlanFragment::has_memory_cost() const {
+  return (_has_bits_[0] & 0x00000010u) != 0;
+}
+inline void PlanFragment::set_has_memory_cost() {
+  _has_bits_[0] |= 0x00000010u;
+}
+inline void PlanFragment::clear_has_memory_cost() {
+  _has_bits_[0] &= ~0x00000010u;
+}
+inline void PlanFragment::clear_memory_cost() {
+  memory_cost_ = 0;
+  clear_has_memory_cost();
+}
+inline float PlanFragment::memory_cost() const {
+  return memory_cost_;
+}
+inline void PlanFragment::set_memory_cost(float value) {
+  set_has_memory_cost();
+  memory_cost_ = value;
+}
+
+// optional string fragment_json = 8;
+inline bool PlanFragment::has_fragment_json() const {
+  return (_has_bits_[0] & 0x00000020u) != 0;
+}
+inline void PlanFragment::set_has_fragment_json() {
+  _has_bits_[0] |= 0x00000020u;
+}
+inline void PlanFragment::clear_has_fragment_json() {
+  _has_bits_[0] &= ~0x00000020u;
+}
+inline void PlanFragment::clear_fragment_json() {
+  if (fragment_json_ != &::google::protobuf::internal::kEmptyString) {
+    fragment_json_->clear();
+  }
+  clear_has_fragment_json();
+}
+inline const ::std::string& PlanFragment::fragment_json() const {
+  return *fragment_json_;
+}
+inline void PlanFragment::set_fragment_json(const ::std::string& value) {
+  set_has_fragment_json();
+  if (fragment_json_ == &::google::protobuf::internal::kEmptyString) {
+    fragment_json_ = new ::std::string;
+  }
+  fragment_json_->assign(value);
+}
+inline void PlanFragment::set_fragment_json(const char* value) {
+  set_has_fragment_json();
+  if (fragment_json_ == &::google::protobuf::internal::kEmptyString) {
+    fragment_json_ = new ::std::string;
+  }
+  fragment_json_->assign(value);
+}
+inline void PlanFragment::set_fragment_json(const char* value, size_t size) {
+  set_has_fragment_json();
+  if (fragment_json_ == &::google::protobuf::internal::kEmptyString) {
+    fragment_json_ = new ::std::string;
+  }
+  fragment_json_->assign(reinterpret_cast<const char*>(value), size);
+}
+inline ::std::string* PlanFragment::mutable_fragment_json() {
+  set_has_fragment_json();
+  if (fragment_json_ == &::google::protobuf::internal::kEmptyString) {
+    fragment_json_ = new ::std::string;
+  }
+  return fragment_json_;
+}
+inline ::std::string* PlanFragment::release_fragment_json() {
+  clear_has_fragment_json();
+  if (fragment_json_ == &::google::protobuf::internal::kEmptyString) {
+    return NULL;
+  } else {
+    ::std::string* temp = fragment_json_;
+    fragment_json_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
+    return temp;
+  }
+}
+inline void PlanFragment::set_allocated_fragment_json(::std::string* fragment_json) {
+  if (fragment_json_ != &::google::protobuf::internal::kEmptyString) {
+    delete fragment_json_;
+  }
+  if (fragment_json) {
+    set_has_fragment_json();
+    fragment_json_ = fragment_json;
+  } else {
+    clear_has_fragment_json();
+    fragment_json_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
+  }
+}
+
+// optional .exec.DrillbitEndpoint assignment = 10;
+inline bool PlanFragment::has_assignment() const {
+  return (_has_bits_[0] & 0x00000040u) != 0;
+}
+inline void PlanFragment::set_has_assignment() {
+  _has_bits_[0] |= 0x00000040u;
+}
+inline void PlanFragment::clear_has_assignment() {
+  _has_bits_[0] &= ~0x00000040u;
+}
+inline void PlanFragment::clear_assignment() {
+  if (assignment_ != NULL) assignment_->::exec::DrillbitEndpoint::Clear();
+  clear_has_assignment();
+}
+inline const ::exec::DrillbitEndpoint& PlanFragment::assignment() const {
+  return assignment_ != NULL ? *assignment_ : *default_instance_->assignment_;
+}
+inline ::exec::DrillbitEndpoint* PlanFragment::mutable_assignment() {
+  set_has_assignment();
+  if (assignment_ == NULL) assignment_ = new ::exec::DrillbitEndpoint;
+  return assignment_;
+}
+inline ::exec::DrillbitEndpoint* PlanFragment::release_assignment() {
+  clear_has_assignment();
+  ::exec::DrillbitEndpoint* temp = assignment_;
+  assignment_ = NULL;
+  return temp;
+}
+inline void PlanFragment::set_allocated_assignment(::exec::DrillbitEndpoint* assignment) {
+  delete assignment_;
+  assignment_ = assignment;
+  if (assignment) {
+    set_has_assignment();
+  } else {
+    clear_has_assignment();
+  }
+}
+
+// optional bool leaf_fragment = 9;
+inline bool PlanFragment::has_leaf_fragment() const {
+  return (_has_bits_[0] & 0x00000080u) != 0;
+}
+inline void PlanFragment::set_has_leaf_fragment() {
+  _has_bits_[0] |= 0x00000080u;
+}
+inline void PlanFragment::clear_has_leaf_fragment() {
+  _has_bits_[0] &= ~0x00000080u;
+}
+inline void PlanFragment::clear_leaf_fragment() {
+  leaf_fragment_ = false;
+  clear_has_leaf_fragment();
+}
+inline bool PlanFragment::leaf_fragment() const {
+  return leaf_fragment_;
+}
+inline void PlanFragment::set_leaf_fragment(bool value) {
+  set_has_leaf_fragment();
+  leaf_fragment_ = value;
+}
+
+// optional .exec.DrillbitEndpoint foreman = 11;
+inline bool PlanFragment::has_foreman() const {
+  return (_has_bits_[0] & 0x00000100u) != 0;
+}
+inline void PlanFragment::set_has_foreman() {
+  _has_bits_[0] |= 0x00000100u;
+}
+inline void PlanFragment::clear_has_foreman() {
+  _has_bits_[0] &= ~0x00000100u;
+}
+inline void PlanFragment::clear_foreman() {
+  if (foreman_ != NULL) foreman_->::exec::DrillbitEndpoint::Clear();
+  clear_has_foreman();
+}
+inline const ::exec::DrillbitEndpoint& PlanFragment::foreman() const {
+  return foreman_ != NULL ? *foreman_ : *default_instance_->foreman_;
+}
+inline ::exec::DrillbitEndpoint* PlanFragment::mutable_foreman() {
+  set_has_foreman();
+  if (foreman_ == NULL) foreman_ = new ::exec::DrillbitEndpoint;
+  return foreman_;
+}
+inline ::exec::DrillbitEndpoint* PlanFragment::release_foreman() {
+  clear_has_foreman();
+  ::exec::DrillbitEndpoint* temp = foreman_;
+  foreman_ = NULL;
+  return temp;
+}
+inline void PlanFragment::set_allocated_foreman(::exec::DrillbitEndpoint* foreman) {
+  delete foreman_;
+  foreman_ = foreman;
+  if (foreman) {
+    set_has_foreman();
+  } else {
+    clear_has_foreman();
+  }
+}
+
+// optional int64 mem_initial = 12 [default = 20000000];
+inline bool PlanFragment::has_mem_initial() const {
+  return (_has_bits_[0] & 0x00000200u) != 0;
+}
+inline void PlanFragment::set_has_mem_initial() {
+  _has_bits_[0] |= 0x00000200u;
+}
+inline void PlanFragment::clear_has_mem_initial() {
+  _has_bits_[0] &= ~0x00000200u;
+}
+inline void PlanFragment::clear_mem_initial() {
+  mem_initial_ = GOOGLE_LONGLONG(20000000);
+  clear_has_mem_initial();
+}
+inline ::google::protobuf::int64 PlanFragment::mem_initial() const {
+  return mem_initial_;
+}
+inline void PlanFragment::set_mem_initial(::google::protobuf::int64 value) {
+  set_has_mem_initial();
+  mem_initial_ = value;
+}
+
+// optional int64 mem_max = 13 [default = 20000000000];
+inline bool PlanFragment::has_mem_max() const {
+  return (_has_bits_[0] & 0x00000400u) != 0;
+}
+inline void PlanFragment::set_has_mem_max() {
+  _has_bits_[0] |= 0x00000400u;
+}
+inline void PlanFragment::clear_has_mem_max() {
+  _has_bits_[0] &= ~0x00000400u;
+}
+inline void PlanFragment::clear_mem_max() {
+  mem_max_ = GOOGLE_LONGLONG(20000000000);
+  clear_has_mem_max();
+}
+inline ::google::protobuf::int64 PlanFragment::mem_max() const {
+  return mem_max_;
+}
+inline void PlanFragment::set_mem_max(::google::protobuf::int64 value) {
+  set_has_mem_max();
+  mem_max_ = value;
+}
+
+// optional int64 query_start_time = 14;
+inline bool PlanFragment::has_query_start_time() const {
+  return (_has_bits_[0] & 0x00000800u) != 0;
+}
+inline void PlanFragment::set_has_query_start_time() {
+  _has_bits_[0] |= 0x00000800u;
+}
+inline void PlanFragment::clear_has_query_start_time() {
+  _has_bits_[0] &= ~0x00000800u;
+}
+inline void PlanFragment::clear_query_start_time() {
+  query_start_time_ = GOOGLE_LONGLONG(0);
+  clear_has_query_start_time();
+}
+inline ::google::protobuf::int64 PlanFragment::query_start_time() const {
+  return query_start_time_;
+}
+inline void PlanFragment::set_query_start_time(::google::protobuf::int64 value) {
+  set_has_query_start_time();
+  query_start_time_ = value;
+}
+
+// optional .exec.shared.UserCredentials credentials = 15;
+inline bool PlanFragment::has_credentials() const {
+  return (_has_bits_[0] & 0x00001000u) != 0;
+}
+inline void PlanFragment::set_has_credentials() {
+  _has_bits_[0] |= 0x00001000u;
+}
+inline void PlanFragment::clear_has_credentials() {
+  _has_bits_[0] &= ~0x00001000u;
+}
+inline void PlanFragment::clear_credentials() {
+  if (credentials_ != NULL) credentials_->::exec::shared::UserCredentials::Clear();
+  clear_has_credentials();
+}
+inline const ::exec::shared::UserCredentials& PlanFragment::credentials() const {
+  return credentials_ != NULL ? *credentials_ : *default_instance_->credentials_;
+}
+inline ::exec::shared::UserCredentials* PlanFragment::mutable_credentials() {
+  set_has_credentials();
+  if (credentials_ == NULL) credentials_ = new ::exec::shared::UserCredentials;
+  return credentials_;
+}
+inline ::exec::shared::UserCredentials* PlanFragment::release_credentials() {
+  clear_has_credentials();
+  ::exec::shared::UserCredentials* temp = credentials_;
+  credentials_ = NULL;
+  return temp;
+}
+inline void PlanFragment::set_allocated_credentials(::exec::shared::UserCredentials* credentials) {
+  delete credentials_;
+  credentials_ = credentials;
+  if (credentials) {
+    set_has_credentials();
+  } else {
+    clear_has_credentials();
+  }
+}
+
+// optional int32 time_zone = 16;
+inline bool PlanFragment::has_time_zone() const {
+  return (_has_bits_[0] & 0x00002000u) != 0;
+}
+inline void PlanFragment::set_has_time_zone() {
+  _has_bits_[0] |= 0x00002000u;
+}
+inline void PlanFragment::clear_has_time_zone() {
+  _has_bits_[0] &= ~0x00002000u;
+}
+inline void PlanFragment::clear_time_zone() {
+  time_zone_ = 0;
+  clear_has_time_zone();
+}
+inline ::google::protobuf::int32 PlanFragment::time_zone() const {
+  return time_zone_;
+}
+inline void PlanFragment::set_time_zone(::google::protobuf::int32 value) {
+  set_has_time_zone();
+  time_zone_ = value;
+}
+
+// optional string options_json = 17;
+inline bool PlanFragment::has_options_json() const {
+  return (_has_bits_[0] & 0x00004000u) != 0;
+}
+inline void PlanFragment::set_has_options_json() {
+  _has_bits_[0] |= 0x00004000u;
+}
+inline void PlanFragment::clear_has_options_json() {
+  _has_bits_[0] &= ~0x00004000u;
+}
+inline void PlanFragment::clear_options_json() {
+  if (options_json_ != &::google::protobuf::internal::kEmptyString) {
+    options_json_->clear();
+  }
+  clear_has_options_json();
+}
+inline const ::std::string& PlanFragment::options_json() const {
+  return *options_json_;
+}
+inline void PlanFragment::set_options_json(const ::std::string& value) {
+  set_has_options_json();
+  if (options_json_ == &::google::protobuf::internal::kEmptyString) {
+    options_json_ = new ::std::string;
+  }
+  options_json_->assign(value);
+}
+inline void PlanFragment::set_options_json(const char* value) {
+  set_has_options_json();
+  if (options_json_ == &::google::protobuf::internal::kEmptyString) {
+    options_json_ = new ::std::string;
+  }
+  options_json_->assign(value);
+}
+inline void PlanFragment::set_options_json(const char* value, size_t size) {
+  set_has_options_json();
+  if (options_json_ == &::google::protobuf::internal::kEmptyString) {
+    options_json_ = new ::std::string;
+  }
+  options_json_->assign(reinterpret_cast<const char*>(value), size);
+}
+inline ::std::string* PlanFragment::mutable_options_json() {
+  set_has_options_json();
+  if (options_json_ == &::google::protobuf::internal::kEmptyString) {
+    options_json_ = new ::std::string;
+  }
+  return options_json_;
+}
+inline ::std::string* PlanFragment::release_options_json() {
+  clear_has_options_json();
+  if (options_json_ == &::google::protobuf::internal::kEmptyString) {
+    return NULL;
+  } else {
+    ::std::string* temp = options_json_;
+    options_json_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
+    return temp;
+  }
+}
+inline void PlanFragment::set_allocated_options_json(::std::string* options_json) {
+  if (options_json_ != &::google::protobuf::internal::kEmptyString) {
+    delete options_json_;
+  }
+  if (options_json) {
+    set_has_options_json();
+    options_json_ = options_json;
+  } else {
+    clear_has_options_json();
+    options_json_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
+  }
+}
+
+// -------------------------------------------------------------------
+
+// WorkQueueStatus
+
+// optional .exec.DrillbitEndpoint endpoint = 1;
+inline bool WorkQueueStatus::has_endpoint() const {
+  return (_has_bits_[0] & 0x00000001u) != 0;
+}
+inline void WorkQueueStatus::set_has_endpoint() {
+  _has_bits_[0] |= 0x00000001u;
+}
+inline void WorkQueueStatus::clear_has_endpoint() {
+  _has_bits_[0] &= ~0x00000001u;
+}
+inline void WorkQueueStatus::clear_endpoint() {
+  if (endpoint_ != NULL) endpoint_->::exec::DrillbitEndpoint::Clear();
+  clear_has_endpoint();
+}
+inline const ::exec::DrillbitEndpoint& WorkQueueStatus::endpoint() const {
+  return endpoint_ != NULL ? *endpoint_ : *default_instance_->endpoint_;
+}
+inline ::exec::DrillbitEndpoint* WorkQueueStatus::mutable_endpoint() {
+  set_has_endpoint();
+  if (endpoint_ == NULL) endpoint_ = new ::exec::DrillbitEndpoint;
+  return endpoint_;
+}
+inline ::exec::DrillbitEndpoint* WorkQueueStatus::release_endpoint() {
+  clear_has_endpoint();
+  ::exec::DrillbitEndpoint* temp = endpoint_;
+  endpoint_ = NULL;
+  return temp;
+}
+inline void WorkQueueStatus::set_allocated_endpoint(::exec::DrillbitEndpoint* endpoint) {
+  delete endpoint_;
+  endpoint_ = endpoint;
+  if (endpoint) {
+    set_has_endpoint();
+  } else {
+    clear_has_endpoint();
+  }
+}
+
+// optional int32 queue_length = 2;
+inline bool WorkQueueStatus::has_queue_length() const {
+  return (_has_bits_[0] & 0x00000002u) != 0;
+}
+inline void WorkQueueStatus::set_has_queue_length() {
+  _has_bits_[0] |= 0x00000002u;
+}
+inline void WorkQueueStatus::clear_has_queue_length() {
+  _has_bits_[0] &= ~0x00000002u;
+}
+inline void WorkQueueStatus::clear_queue_length() {
+  queue_length_ = 0;
+  clear_has_queue_length();
+}
+inline ::google::protobuf::int32 WorkQueueStatus::queue_length() const {
+  return queue_length_;
+}
+inline void WorkQueueStatus::set_queue_length(::google::protobuf::int32 value) {
+  set_has_queue_length();
+  queue_length_ = value;
+}
+
+// optional int64 report_time = 3;
+inline bool WorkQueueStatus::has_report_time() const {
+  return (_has_bits_[0] & 0x00000004u) != 0;
+}
+inline void WorkQueueStatus::set_has_report_time() {
+  _has_bits_[0] |= 0x00000004u;
+}
+inline void WorkQueueStatus::clear_has_report_time() {
+  _has_bits_[0] &= ~0x00000004u;
+}
+inline void WorkQueueStatus::clear_report_time() {
+  report_time_ = GOOGLE_LONGLONG(0);
+  clear_has_report_time();
+}
+inline ::google::protobuf::int64 WorkQueueStatus::report_time() const {
+  return report_time_;
+}
+inline void WorkQueueStatus::set_report_time(::google::protobuf::int64 value) {
+  set_has_report_time();
+  report_time_ = value;
+}
+
+
+// @@protoc_insertion_point(namespace_scope)
+
+}  // namespace control
+}  // namespace bit
+}  // namespace exec
+
+#ifndef SWIG
+namespace google {
+namespace protobuf {
+
+template <>
+inline const EnumDescriptor* GetEnumDescriptor< ::exec::bit::control::FragmentStatus_FragmentState>() {
+  return ::exec::bit::control::FragmentStatus_FragmentState_descriptor();
+}
+template <>
+inline const EnumDescriptor* GetEnumDescriptor< ::exec::bit::control::RpcType>() {
+  return ::exec::bit::control::RpcType_descriptor();
+}
+
+}  // namespace google
+}  // namespace protobuf
+#endif  // SWIG
+
+// @@protoc_insertion_point(global_scope)
+
+#endif  // PROTOBUF_BitControl_2eproto__INCLUDED