github.com/cockroachdb/cockroach@v20.2.0-alpha.1+incompatible/c-deps/libroach/protos/roachpb/metadata.pb.h (about)

     1  // Generated by the protocol buffer compiler.  DO NOT EDIT!
     2  // source: roachpb/metadata.proto
     3  
     4  #ifndef PROTOBUF_INCLUDED_roachpb_2fmetadata_2eproto
     5  #define PROTOBUF_INCLUDED_roachpb_2fmetadata_2eproto
     6  
     7  #include <string>
     8  
     9  #include <google/protobuf/stubs/common.h>
    10  
    11  #if GOOGLE_PROTOBUF_VERSION < 3006000
    12  #error This file was generated by a newer version of protoc which is
    13  #error incompatible with your Protocol Buffer headers.  Please update
    14  #error your headers.
    15  #endif
    16  #if 3006000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
    17  #error This file was generated by an older version of protoc which is
    18  #error incompatible with your Protocol Buffer headers.  Please
    19  #error regenerate this file with a newer version of protoc.
    20  #endif
    21  
    22  #include <google/protobuf/io/coded_stream.h>
    23  #include <google/protobuf/arena.h>
    24  #include <google/protobuf/arenastring.h>
    25  #include <google/protobuf/generated_message_table_driven.h>
    26  #include <google/protobuf/generated_message_util.h>
    27  #include <google/protobuf/inlined_string_field.h>
    28  #include <google/protobuf/metadata_lite.h>
    29  #include <google/protobuf/message_lite.h>
    30  #include <google/protobuf/repeated_field.h>  // IWYU pragma: export
    31  #include <google/protobuf/extension_set.h>  // IWYU pragma: export
    32  #include <google/protobuf/generated_enum_util.h>
    33  #include "util/unresolved_addr.pb.h"
    34  #include "util/hlc/timestamp.pb.h"
    35  // @@protoc_insertion_point(includes)
    36  #define PROTOBUF_INTERNAL_EXPORT_protobuf_roachpb_2fmetadata_2eproto 
    37  
    38  namespace protobuf_roachpb_2fmetadata_2eproto {
    39  // Internal implementation detail -- do not use these members.
    40  struct TableStruct {
    41    static const ::google::protobuf::internal::ParseTableField entries[];
    42    static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
    43    static const ::google::protobuf::internal::ParseTable schema[14];
    44    static const ::google::protobuf::internal::FieldMetadata field_metadata[];
    45    static const ::google::protobuf::internal::SerializationTable serialization_table[];
    46    static const ::google::protobuf::uint32 offsets[];
    47  };
    48  }  // namespace protobuf_roachpb_2fmetadata_2eproto
    49  namespace cockroach {
    50  namespace roachpb {
    51  class Attributes;
    52  class AttributesDefaultTypeInternal;
    53  extern AttributesDefaultTypeInternal _Attributes_default_instance_;
    54  class Locality;
    55  class LocalityDefaultTypeInternal;
    56  extern LocalityDefaultTypeInternal _Locality_default_instance_;
    57  class LocalityAddress;
    58  class LocalityAddressDefaultTypeInternal;
    59  extern LocalityAddressDefaultTypeInternal _LocalityAddress_default_instance_;
    60  class NodeDescriptor;
    61  class NodeDescriptorDefaultTypeInternal;
    62  extern NodeDescriptorDefaultTypeInternal _NodeDescriptor_default_instance_;
    63  class Percentiles;
    64  class PercentilesDefaultTypeInternal;
    65  extern PercentilesDefaultTypeInternal _Percentiles_default_instance_;
    66  class RangeDescriptor;
    67  class RangeDescriptorDefaultTypeInternal;
    68  extern RangeDescriptorDefaultTypeInternal _RangeDescriptor_default_instance_;
    69  class ReplicaDescriptor;
    70  class ReplicaDescriptorDefaultTypeInternal;
    71  extern ReplicaDescriptorDefaultTypeInternal _ReplicaDescriptor_default_instance_;
    72  class ReplicaIdent;
    73  class ReplicaIdentDefaultTypeInternal;
    74  extern ReplicaIdentDefaultTypeInternal _ReplicaIdent_default_instance_;
    75  class ReplicationTarget;
    76  class ReplicationTargetDefaultTypeInternal;
    77  extern ReplicationTargetDefaultTypeInternal _ReplicationTarget_default_instance_;
    78  class StoreCapacity;
    79  class StoreCapacityDefaultTypeInternal;
    80  extern StoreCapacityDefaultTypeInternal _StoreCapacity_default_instance_;
    81  class StoreDeadReplicas;
    82  class StoreDeadReplicasDefaultTypeInternal;
    83  extern StoreDeadReplicasDefaultTypeInternal _StoreDeadReplicas_default_instance_;
    84  class StoreDescriptor;
    85  class StoreDescriptorDefaultTypeInternal;
    86  extern StoreDescriptorDefaultTypeInternal _StoreDescriptor_default_instance_;
    87  class Tier;
    88  class TierDefaultTypeInternal;
    89  extern TierDefaultTypeInternal _Tier_default_instance_;
    90  class Version;
    91  class VersionDefaultTypeInternal;
    92  extern VersionDefaultTypeInternal _Version_default_instance_;
    93  }  // namespace roachpb
    94  }  // namespace cockroach
    95  namespace google {
    96  namespace protobuf {
    97  template<> ::cockroach::roachpb::Attributes* Arena::CreateMaybeMessage<::cockroach::roachpb::Attributes>(Arena*);
    98  template<> ::cockroach::roachpb::Locality* Arena::CreateMaybeMessage<::cockroach::roachpb::Locality>(Arena*);
    99  template<> ::cockroach::roachpb::LocalityAddress* Arena::CreateMaybeMessage<::cockroach::roachpb::LocalityAddress>(Arena*);
   100  template<> ::cockroach::roachpb::NodeDescriptor* Arena::CreateMaybeMessage<::cockroach::roachpb::NodeDescriptor>(Arena*);
   101  template<> ::cockroach::roachpb::Percentiles* Arena::CreateMaybeMessage<::cockroach::roachpb::Percentiles>(Arena*);
   102  template<> ::cockroach::roachpb::RangeDescriptor* Arena::CreateMaybeMessage<::cockroach::roachpb::RangeDescriptor>(Arena*);
   103  template<> ::cockroach::roachpb::ReplicaDescriptor* Arena::CreateMaybeMessage<::cockroach::roachpb::ReplicaDescriptor>(Arena*);
   104  template<> ::cockroach::roachpb::ReplicaIdent* Arena::CreateMaybeMessage<::cockroach::roachpb::ReplicaIdent>(Arena*);
   105  template<> ::cockroach::roachpb::ReplicationTarget* Arena::CreateMaybeMessage<::cockroach::roachpb::ReplicationTarget>(Arena*);
   106  template<> ::cockroach::roachpb::StoreCapacity* Arena::CreateMaybeMessage<::cockroach::roachpb::StoreCapacity>(Arena*);
   107  template<> ::cockroach::roachpb::StoreDeadReplicas* Arena::CreateMaybeMessage<::cockroach::roachpb::StoreDeadReplicas>(Arena*);
   108  template<> ::cockroach::roachpb::StoreDescriptor* Arena::CreateMaybeMessage<::cockroach::roachpb::StoreDescriptor>(Arena*);
   109  template<> ::cockroach::roachpb::Tier* Arena::CreateMaybeMessage<::cockroach::roachpb::Tier>(Arena*);
   110  template<> ::cockroach::roachpb::Version* Arena::CreateMaybeMessage<::cockroach::roachpb::Version>(Arena*);
   111  }  // namespace protobuf
   112  }  // namespace google
   113  namespace cockroach {
   114  namespace roachpb {
   115  
   116  enum ReplicaType {
   117    VOTER_FULL = 0,
   118    VOTER_INCOMING = 2,
   119    VOTER_OUTGOING = 3,
   120    VOTER_DEMOTING = 4,
   121    LEARNER = 1
   122  };
   123  bool ReplicaType_IsValid(int value);
   124  const ReplicaType ReplicaType_MIN = VOTER_FULL;
   125  const ReplicaType ReplicaType_MAX = VOTER_DEMOTING;
   126  const int ReplicaType_ARRAYSIZE = ReplicaType_MAX + 1;
   127  
   128  // ===================================================================
   129  
   130  class Attributes : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:cockroach.roachpb.Attributes) */ {
   131   public:
   132    Attributes();
   133    virtual ~Attributes();
   134  
   135    Attributes(const Attributes& from);
   136  
   137    inline Attributes& operator=(const Attributes& from) {
   138      CopyFrom(from);
   139      return *this;
   140    }
   141    #if LANG_CXX11
   142    Attributes(Attributes&& from) noexcept
   143      : Attributes() {
   144      *this = ::std::move(from);
   145    }
   146  
   147    inline Attributes& operator=(Attributes&& from) noexcept {
   148      if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
   149        if (this != &from) InternalSwap(&from);
   150      } else {
   151        CopyFrom(from);
   152      }
   153      return *this;
   154    }
   155    #endif
   156    inline const ::std::string& unknown_fields() const {
   157      return _internal_metadata_.unknown_fields();
   158    }
   159    inline ::std::string* mutable_unknown_fields() {
   160      return _internal_metadata_.mutable_unknown_fields();
   161    }
   162  
   163    static const Attributes& default_instance();
   164  
   165    static void InitAsDefaultInstance();  // FOR INTERNAL USE ONLY
   166    static inline const Attributes* internal_default_instance() {
   167      return reinterpret_cast<const Attributes*>(
   168                 &_Attributes_default_instance_);
   169    }
   170    static constexpr int kIndexInFileMessages =
   171      0;
   172  
   173    void Swap(Attributes* other);
   174    friend void swap(Attributes& a, Attributes& b) {
   175      a.Swap(&b);
   176    }
   177  
   178    // implements Message ----------------------------------------------
   179  
   180    inline Attributes* New() const final {
   181      return CreateMaybeMessage<Attributes>(NULL);
   182    }
   183  
   184    Attributes* New(::google::protobuf::Arena* arena) const final {
   185      return CreateMaybeMessage<Attributes>(arena);
   186    }
   187    void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from)
   188      final;
   189    void CopyFrom(const Attributes& from);
   190    void MergeFrom(const Attributes& from);
   191    void Clear() final;
   192    bool IsInitialized() const final;
   193  
   194    size_t ByteSizeLong() const final;
   195    bool MergePartialFromCodedStream(
   196        ::google::protobuf::io::CodedInputStream* input) final;
   197    void SerializeWithCachedSizes(
   198        ::google::protobuf::io::CodedOutputStream* output) const final;
   199    void DiscardUnknownFields();
   200    int GetCachedSize() const final { return _cached_size_.Get(); }
   201  
   202    private:
   203    void SharedCtor();
   204    void SharedDtor();
   205    void SetCachedSize(int size) const;
   206    void InternalSwap(Attributes* other);
   207    private:
   208    inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
   209      return NULL;
   210    }
   211    inline void* MaybeArenaPtr() const {
   212      return NULL;
   213    }
   214    public:
   215  
   216    ::std::string GetTypeName() const final;
   217  
   218    // nested types ----------------------------------------------------
   219  
   220    // accessors -------------------------------------------------------
   221  
   222    int attrs_size() const;
   223    void clear_attrs();
   224    static const int kAttrsFieldNumber = 1;
   225    const ::std::string& attrs(int index) const;
   226    ::std::string* mutable_attrs(int index);
   227    void set_attrs(int index, const ::std::string& value);
   228    #if LANG_CXX11
   229    void set_attrs(int index, ::std::string&& value);
   230    #endif
   231    void set_attrs(int index, const char* value);
   232    void set_attrs(int index, const char* value, size_t size);
   233    ::std::string* add_attrs();
   234    void add_attrs(const ::std::string& value);
   235    #if LANG_CXX11
   236    void add_attrs(::std::string&& value);
   237    #endif
   238    void add_attrs(const char* value);
   239    void add_attrs(const char* value, size_t size);
   240    const ::google::protobuf::RepeatedPtrField< ::std::string>& attrs() const;
   241    ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_attrs();
   242  
   243    // @@protoc_insertion_point(class_scope:cockroach.roachpb.Attributes)
   244   private:
   245  
   246    ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_;
   247    ::google::protobuf::internal::HasBits<1> _has_bits_;
   248    mutable ::google::protobuf::internal::CachedSize _cached_size_;
   249    ::google::protobuf::RepeatedPtrField< ::std::string> attrs_;
   250    friend struct ::protobuf_roachpb_2fmetadata_2eproto::TableStruct;
   251  };
   252  // -------------------------------------------------------------------
   253  
   254  class ReplicationTarget : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:cockroach.roachpb.ReplicationTarget) */ {
   255   public:
   256    ReplicationTarget();
   257    virtual ~ReplicationTarget();
   258  
   259    ReplicationTarget(const ReplicationTarget& from);
   260  
   261    inline ReplicationTarget& operator=(const ReplicationTarget& from) {
   262      CopyFrom(from);
   263      return *this;
   264    }
   265    #if LANG_CXX11
   266    ReplicationTarget(ReplicationTarget&& from) noexcept
   267      : ReplicationTarget() {
   268      *this = ::std::move(from);
   269    }
   270  
   271    inline ReplicationTarget& operator=(ReplicationTarget&& from) noexcept {
   272      if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
   273        if (this != &from) InternalSwap(&from);
   274      } else {
   275        CopyFrom(from);
   276      }
   277      return *this;
   278    }
   279    #endif
   280    inline const ::std::string& unknown_fields() const {
   281      return _internal_metadata_.unknown_fields();
   282    }
   283    inline ::std::string* mutable_unknown_fields() {
   284      return _internal_metadata_.mutable_unknown_fields();
   285    }
   286  
   287    static const ReplicationTarget& default_instance();
   288  
   289    static void InitAsDefaultInstance();  // FOR INTERNAL USE ONLY
   290    static inline const ReplicationTarget* internal_default_instance() {
   291      return reinterpret_cast<const ReplicationTarget*>(
   292                 &_ReplicationTarget_default_instance_);
   293    }
   294    static constexpr int kIndexInFileMessages =
   295      1;
   296  
   297    void Swap(ReplicationTarget* other);
   298    friend void swap(ReplicationTarget& a, ReplicationTarget& b) {
   299      a.Swap(&b);
   300    }
   301  
   302    // implements Message ----------------------------------------------
   303  
   304    inline ReplicationTarget* New() const final {
   305      return CreateMaybeMessage<ReplicationTarget>(NULL);
   306    }
   307  
   308    ReplicationTarget* New(::google::protobuf::Arena* arena) const final {
   309      return CreateMaybeMessage<ReplicationTarget>(arena);
   310    }
   311    void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from)
   312      final;
   313    void CopyFrom(const ReplicationTarget& from);
   314    void MergeFrom(const ReplicationTarget& from);
   315    void Clear() final;
   316    bool IsInitialized() const final;
   317  
   318    size_t ByteSizeLong() const final;
   319    bool MergePartialFromCodedStream(
   320        ::google::protobuf::io::CodedInputStream* input) final;
   321    void SerializeWithCachedSizes(
   322        ::google::protobuf::io::CodedOutputStream* output) const final;
   323    void DiscardUnknownFields();
   324    int GetCachedSize() const final { return _cached_size_.Get(); }
   325  
   326    private:
   327    void SharedCtor();
   328    void SharedDtor();
   329    void SetCachedSize(int size) const;
   330    void InternalSwap(ReplicationTarget* other);
   331    private:
   332    inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
   333      return NULL;
   334    }
   335    inline void* MaybeArenaPtr() const {
   336      return NULL;
   337    }
   338    public:
   339  
   340    ::std::string GetTypeName() const final;
   341  
   342    // nested types ----------------------------------------------------
   343  
   344    // accessors -------------------------------------------------------
   345  
   346    bool has_node_id() const;
   347    void clear_node_id();
   348    static const int kNodeIdFieldNumber = 1;
   349    ::google::protobuf::int32 node_id() const;
   350    void set_node_id(::google::protobuf::int32 value);
   351  
   352    bool has_store_id() const;
   353    void clear_store_id();
   354    static const int kStoreIdFieldNumber = 2;
   355    ::google::protobuf::int32 store_id() const;
   356    void set_store_id(::google::protobuf::int32 value);
   357  
   358    // @@protoc_insertion_point(class_scope:cockroach.roachpb.ReplicationTarget)
   359   private:
   360    void set_has_node_id();
   361    void clear_has_node_id();
   362    void set_has_store_id();
   363    void clear_has_store_id();
   364  
   365    ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_;
   366    ::google::protobuf::internal::HasBits<1> _has_bits_;
   367    mutable ::google::protobuf::internal::CachedSize _cached_size_;
   368    ::google::protobuf::int32 node_id_;
   369    ::google::protobuf::int32 store_id_;
   370    friend struct ::protobuf_roachpb_2fmetadata_2eproto::TableStruct;
   371  };
   372  // -------------------------------------------------------------------
   373  
   374  class ReplicaDescriptor : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:cockroach.roachpb.ReplicaDescriptor) */ {
   375   public:
   376    ReplicaDescriptor();
   377    virtual ~ReplicaDescriptor();
   378  
   379    ReplicaDescriptor(const ReplicaDescriptor& from);
   380  
   381    inline ReplicaDescriptor& operator=(const ReplicaDescriptor& from) {
   382      CopyFrom(from);
   383      return *this;
   384    }
   385    #if LANG_CXX11
   386    ReplicaDescriptor(ReplicaDescriptor&& from) noexcept
   387      : ReplicaDescriptor() {
   388      *this = ::std::move(from);
   389    }
   390  
   391    inline ReplicaDescriptor& operator=(ReplicaDescriptor&& from) noexcept {
   392      if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
   393        if (this != &from) InternalSwap(&from);
   394      } else {
   395        CopyFrom(from);
   396      }
   397      return *this;
   398    }
   399    #endif
   400    inline const ::std::string& unknown_fields() const {
   401      return _internal_metadata_.unknown_fields();
   402    }
   403    inline ::std::string* mutable_unknown_fields() {
   404      return _internal_metadata_.mutable_unknown_fields();
   405    }
   406  
   407    static const ReplicaDescriptor& default_instance();
   408  
   409    static void InitAsDefaultInstance();  // FOR INTERNAL USE ONLY
   410    static inline const ReplicaDescriptor* internal_default_instance() {
   411      return reinterpret_cast<const ReplicaDescriptor*>(
   412                 &_ReplicaDescriptor_default_instance_);
   413    }
   414    static constexpr int kIndexInFileMessages =
   415      2;
   416  
   417    void Swap(ReplicaDescriptor* other);
   418    friend void swap(ReplicaDescriptor& a, ReplicaDescriptor& b) {
   419      a.Swap(&b);
   420    }
   421  
   422    // implements Message ----------------------------------------------
   423  
   424    inline ReplicaDescriptor* New() const final {
   425      return CreateMaybeMessage<ReplicaDescriptor>(NULL);
   426    }
   427  
   428    ReplicaDescriptor* New(::google::protobuf::Arena* arena) const final {
   429      return CreateMaybeMessage<ReplicaDescriptor>(arena);
   430    }
   431    void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from)
   432      final;
   433    void CopyFrom(const ReplicaDescriptor& from);
   434    void MergeFrom(const ReplicaDescriptor& from);
   435    void Clear() final;
   436    bool IsInitialized() const final;
   437  
   438    size_t ByteSizeLong() const final;
   439    bool MergePartialFromCodedStream(
   440        ::google::protobuf::io::CodedInputStream* input) final;
   441    void SerializeWithCachedSizes(
   442        ::google::protobuf::io::CodedOutputStream* output) const final;
   443    void DiscardUnknownFields();
   444    int GetCachedSize() const final { return _cached_size_.Get(); }
   445  
   446    private:
   447    void SharedCtor();
   448    void SharedDtor();
   449    void SetCachedSize(int size) const;
   450    void InternalSwap(ReplicaDescriptor* other);
   451    private:
   452    inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
   453      return NULL;
   454    }
   455    inline void* MaybeArenaPtr() const {
   456      return NULL;
   457    }
   458    public:
   459  
   460    ::std::string GetTypeName() const final;
   461  
   462    // nested types ----------------------------------------------------
   463  
   464    // accessors -------------------------------------------------------
   465  
   466    bool has_node_id() const;
   467    void clear_node_id();
   468    static const int kNodeIdFieldNumber = 1;
   469    ::google::protobuf::int32 node_id() const;
   470    void set_node_id(::google::protobuf::int32 value);
   471  
   472    bool has_store_id() const;
   473    void clear_store_id();
   474    static const int kStoreIdFieldNumber = 2;
   475    ::google::protobuf::int32 store_id() const;
   476    void set_store_id(::google::protobuf::int32 value);
   477  
   478    bool has_replica_id() const;
   479    void clear_replica_id();
   480    static const int kReplicaIdFieldNumber = 3;
   481    ::google::protobuf::int32 replica_id() const;
   482    void set_replica_id(::google::protobuf::int32 value);
   483  
   484    // optional .cockroach.roachpb.ReplicaType type = 4;
   485    bool has_type() const;
   486    void clear_type();
   487    static const int kTypeFieldNumber = 4;
   488    ::cockroach::roachpb::ReplicaType type() const;
   489    void set_type(::cockroach::roachpb::ReplicaType value);
   490  
   491    // @@protoc_insertion_point(class_scope:cockroach.roachpb.ReplicaDescriptor)
   492   private:
   493    void set_has_node_id();
   494    void clear_has_node_id();
   495    void set_has_store_id();
   496    void clear_has_store_id();
   497    void set_has_replica_id();
   498    void clear_has_replica_id();
   499    void set_has_type();
   500    void clear_has_type();
   501  
   502    ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_;
   503    ::google::protobuf::internal::HasBits<1> _has_bits_;
   504    mutable ::google::protobuf::internal::CachedSize _cached_size_;
   505    ::google::protobuf::int32 node_id_;
   506    ::google::protobuf::int32 store_id_;
   507    ::google::protobuf::int32 replica_id_;
   508    int type_;
   509    friend struct ::protobuf_roachpb_2fmetadata_2eproto::TableStruct;
   510  };
   511  // -------------------------------------------------------------------
   512  
   513  class ReplicaIdent : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:cockroach.roachpb.ReplicaIdent) */ {
   514   public:
   515    ReplicaIdent();
   516    virtual ~ReplicaIdent();
   517  
   518    ReplicaIdent(const ReplicaIdent& from);
   519  
   520    inline ReplicaIdent& operator=(const ReplicaIdent& from) {
   521      CopyFrom(from);
   522      return *this;
   523    }
   524    #if LANG_CXX11
   525    ReplicaIdent(ReplicaIdent&& from) noexcept
   526      : ReplicaIdent() {
   527      *this = ::std::move(from);
   528    }
   529  
   530    inline ReplicaIdent& operator=(ReplicaIdent&& from) noexcept {
   531      if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
   532        if (this != &from) InternalSwap(&from);
   533      } else {
   534        CopyFrom(from);
   535      }
   536      return *this;
   537    }
   538    #endif
   539    inline const ::std::string& unknown_fields() const {
   540      return _internal_metadata_.unknown_fields();
   541    }
   542    inline ::std::string* mutable_unknown_fields() {
   543      return _internal_metadata_.mutable_unknown_fields();
   544    }
   545  
   546    static const ReplicaIdent& default_instance();
   547  
   548    static void InitAsDefaultInstance();  // FOR INTERNAL USE ONLY
   549    static inline const ReplicaIdent* internal_default_instance() {
   550      return reinterpret_cast<const ReplicaIdent*>(
   551                 &_ReplicaIdent_default_instance_);
   552    }
   553    static constexpr int kIndexInFileMessages =
   554      3;
   555  
   556    void Swap(ReplicaIdent* other);
   557    friend void swap(ReplicaIdent& a, ReplicaIdent& b) {
   558      a.Swap(&b);
   559    }
   560  
   561    // implements Message ----------------------------------------------
   562  
   563    inline ReplicaIdent* New() const final {
   564      return CreateMaybeMessage<ReplicaIdent>(NULL);
   565    }
   566  
   567    ReplicaIdent* New(::google::protobuf::Arena* arena) const final {
   568      return CreateMaybeMessage<ReplicaIdent>(arena);
   569    }
   570    void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from)
   571      final;
   572    void CopyFrom(const ReplicaIdent& from);
   573    void MergeFrom(const ReplicaIdent& from);
   574    void Clear() final;
   575    bool IsInitialized() const final;
   576  
   577    size_t ByteSizeLong() const final;
   578    bool MergePartialFromCodedStream(
   579        ::google::protobuf::io::CodedInputStream* input) final;
   580    void SerializeWithCachedSizes(
   581        ::google::protobuf::io::CodedOutputStream* output) const final;
   582    void DiscardUnknownFields();
   583    int GetCachedSize() const final { return _cached_size_.Get(); }
   584  
   585    private:
   586    void SharedCtor();
   587    void SharedDtor();
   588    void SetCachedSize(int size) const;
   589    void InternalSwap(ReplicaIdent* other);
   590    private:
   591    inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
   592      return NULL;
   593    }
   594    inline void* MaybeArenaPtr() const {
   595      return NULL;
   596    }
   597    public:
   598  
   599    ::std::string GetTypeName() const final;
   600  
   601    // nested types ----------------------------------------------------
   602  
   603    // accessors -------------------------------------------------------
   604  
   605    bool has_replica() const;
   606    void clear_replica();
   607    static const int kReplicaFieldNumber = 2;
   608    private:
   609    const ::cockroach::roachpb::ReplicaDescriptor& _internal_replica() const;
   610    public:
   611    const ::cockroach::roachpb::ReplicaDescriptor& replica() const;
   612    ::cockroach::roachpb::ReplicaDescriptor* release_replica();
   613    ::cockroach::roachpb::ReplicaDescriptor* mutable_replica();
   614    void set_allocated_replica(::cockroach::roachpb::ReplicaDescriptor* replica);
   615  
   616    bool has_range_id() const;
   617    void clear_range_id();
   618    static const int kRangeIdFieldNumber = 1;
   619    ::google::protobuf::int64 range_id() const;
   620    void set_range_id(::google::protobuf::int64 value);
   621  
   622    // @@protoc_insertion_point(class_scope:cockroach.roachpb.ReplicaIdent)
   623   private:
   624    void set_has_range_id();
   625    void clear_has_range_id();
   626    void set_has_replica();
   627    void clear_has_replica();
   628  
   629    ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_;
   630    ::google::protobuf::internal::HasBits<1> _has_bits_;
   631    mutable ::google::protobuf::internal::CachedSize _cached_size_;
   632    ::cockroach::roachpb::ReplicaDescriptor* replica_;
   633    ::google::protobuf::int64 range_id_;
   634    friend struct ::protobuf_roachpb_2fmetadata_2eproto::TableStruct;
   635  };
   636  // -------------------------------------------------------------------
   637  
   638  class RangeDescriptor : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:cockroach.roachpb.RangeDescriptor) */ {
   639   public:
   640    RangeDescriptor();
   641    virtual ~RangeDescriptor();
   642  
   643    RangeDescriptor(const RangeDescriptor& from);
   644  
   645    inline RangeDescriptor& operator=(const RangeDescriptor& from) {
   646      CopyFrom(from);
   647      return *this;
   648    }
   649    #if LANG_CXX11
   650    RangeDescriptor(RangeDescriptor&& from) noexcept
   651      : RangeDescriptor() {
   652      *this = ::std::move(from);
   653    }
   654  
   655    inline RangeDescriptor& operator=(RangeDescriptor&& from) noexcept {
   656      if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
   657        if (this != &from) InternalSwap(&from);
   658      } else {
   659        CopyFrom(from);
   660      }
   661      return *this;
   662    }
   663    #endif
   664    inline const ::std::string& unknown_fields() const {
   665      return _internal_metadata_.unknown_fields();
   666    }
   667    inline ::std::string* mutable_unknown_fields() {
   668      return _internal_metadata_.mutable_unknown_fields();
   669    }
   670  
   671    static const RangeDescriptor& default_instance();
   672  
   673    static void InitAsDefaultInstance();  // FOR INTERNAL USE ONLY
   674    static inline const RangeDescriptor* internal_default_instance() {
   675      return reinterpret_cast<const RangeDescriptor*>(
   676                 &_RangeDescriptor_default_instance_);
   677    }
   678    static constexpr int kIndexInFileMessages =
   679      4;
   680  
   681    void Swap(RangeDescriptor* other);
   682    friend void swap(RangeDescriptor& a, RangeDescriptor& b) {
   683      a.Swap(&b);
   684    }
   685  
   686    // implements Message ----------------------------------------------
   687  
   688    inline RangeDescriptor* New() const final {
   689      return CreateMaybeMessage<RangeDescriptor>(NULL);
   690    }
   691  
   692    RangeDescriptor* New(::google::protobuf::Arena* arena) const final {
   693      return CreateMaybeMessage<RangeDescriptor>(arena);
   694    }
   695    void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from)
   696      final;
   697    void CopyFrom(const RangeDescriptor& from);
   698    void MergeFrom(const RangeDescriptor& from);
   699    void Clear() final;
   700    bool IsInitialized() const final;
   701  
   702    size_t ByteSizeLong() const final;
   703    bool MergePartialFromCodedStream(
   704        ::google::protobuf::io::CodedInputStream* input) final;
   705    void SerializeWithCachedSizes(
   706        ::google::protobuf::io::CodedOutputStream* output) const final;
   707    void DiscardUnknownFields();
   708    int GetCachedSize() const final { return _cached_size_.Get(); }
   709  
   710    private:
   711    void SharedCtor();
   712    void SharedDtor();
   713    void SetCachedSize(int size) const;
   714    void InternalSwap(RangeDescriptor* other);
   715    private:
   716    inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
   717      return NULL;
   718    }
   719    inline void* MaybeArenaPtr() const {
   720      return NULL;
   721    }
   722    public:
   723  
   724    ::std::string GetTypeName() const final;
   725  
   726    // nested types ----------------------------------------------------
   727  
   728    // accessors -------------------------------------------------------
   729  
   730    int internal_replicas_size() const;
   731    void clear_internal_replicas();
   732    static const int kInternalReplicasFieldNumber = 4;
   733    ::cockroach::roachpb::ReplicaDescriptor* mutable_internal_replicas(int index);
   734    ::google::protobuf::RepeatedPtrField< ::cockroach::roachpb::ReplicaDescriptor >*
   735        mutable_internal_replicas();
   736    const ::cockroach::roachpb::ReplicaDescriptor& internal_replicas(int index) const;
   737    ::cockroach::roachpb::ReplicaDescriptor* add_internal_replicas();
   738    const ::google::protobuf::RepeatedPtrField< ::cockroach::roachpb::ReplicaDescriptor >&
   739        internal_replicas() const;
   740  
   741    bool has_start_key() const;
   742    void clear_start_key();
   743    static const int kStartKeyFieldNumber = 2;
   744    const ::std::string& start_key() const;
   745    void set_start_key(const ::std::string& value);
   746    #if LANG_CXX11
   747    void set_start_key(::std::string&& value);
   748    #endif
   749    void set_start_key(const char* value);
   750    void set_start_key(const void* value, size_t size);
   751    ::std::string* mutable_start_key();
   752    ::std::string* release_start_key();
   753    void set_allocated_start_key(::std::string* start_key);
   754  
   755    bool has_end_key() const;
   756    void clear_end_key();
   757    static const int kEndKeyFieldNumber = 3;
   758    const ::std::string& end_key() const;
   759    void set_end_key(const ::std::string& value);
   760    #if LANG_CXX11
   761    void set_end_key(::std::string&& value);
   762    #endif
   763    void set_end_key(const char* value);
   764    void set_end_key(const void* value, size_t size);
   765    ::std::string* mutable_end_key();
   766    ::std::string* release_end_key();
   767    void set_allocated_end_key(::std::string* end_key);
   768  
   769    // optional .cockroach.util.hlc.Timestamp sticky_bit = 7;
   770    bool has_sticky_bit() const;
   771    void clear_sticky_bit();
   772    static const int kStickyBitFieldNumber = 7;
   773    private:
   774    const ::cockroach::util::hlc::Timestamp& _internal_sticky_bit() const;
   775    public:
   776    const ::cockroach::util::hlc::Timestamp& sticky_bit() const;
   777    ::cockroach::util::hlc::Timestamp* release_sticky_bit();
   778    ::cockroach::util::hlc::Timestamp* mutable_sticky_bit();
   779    void set_allocated_sticky_bit(::cockroach::util::hlc::Timestamp* sticky_bit);
   780  
   781    bool has_range_id() const;
   782    void clear_range_id();
   783    static const int kRangeIdFieldNumber = 1;
   784    ::google::protobuf::int64 range_id() const;
   785    void set_range_id(::google::protobuf::int64 value);
   786  
   787    bool has_generation() const;
   788    void clear_generation();
   789    static const int kGenerationFieldNumber = 6;
   790    ::google::protobuf::int64 generation() const;
   791    void set_generation(::google::protobuf::int64 value);
   792  
   793    bool has_next_replica_id() const;
   794    void clear_next_replica_id();
   795    static const int kNextReplicaIdFieldNumber = 5;
   796    ::google::protobuf::int32 next_replica_id() const;
   797    void set_next_replica_id(::google::protobuf::int32 value);
   798  
   799    // @@protoc_insertion_point(class_scope:cockroach.roachpb.RangeDescriptor)
   800   private:
   801    void set_has_range_id();
   802    void clear_has_range_id();
   803    void set_has_start_key();
   804    void clear_has_start_key();
   805    void set_has_end_key();
   806    void clear_has_end_key();
   807    void set_has_next_replica_id();
   808    void clear_has_next_replica_id();
   809    void set_has_generation();
   810    void clear_has_generation();
   811    void set_has_sticky_bit();
   812    void clear_has_sticky_bit();
   813  
   814    ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_;
   815    ::google::protobuf::internal::HasBits<1> _has_bits_;
   816    mutable ::google::protobuf::internal::CachedSize _cached_size_;
   817    ::google::protobuf::RepeatedPtrField< ::cockroach::roachpb::ReplicaDescriptor > internal_replicas_;
   818    ::google::protobuf::internal::ArenaStringPtr start_key_;
   819    ::google::protobuf::internal::ArenaStringPtr end_key_;
   820    ::cockroach::util::hlc::Timestamp* sticky_bit_;
   821    ::google::protobuf::int64 range_id_;
   822    ::google::protobuf::int64 generation_;
   823    ::google::protobuf::int32 next_replica_id_;
   824    friend struct ::protobuf_roachpb_2fmetadata_2eproto::TableStruct;
   825  };
   826  // -------------------------------------------------------------------
   827  
   828  class Percentiles : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:cockroach.roachpb.Percentiles) */ {
   829   public:
   830    Percentiles();
   831    virtual ~Percentiles();
   832  
   833    Percentiles(const Percentiles& from);
   834  
   835    inline Percentiles& operator=(const Percentiles& from) {
   836      CopyFrom(from);
   837      return *this;
   838    }
   839    #if LANG_CXX11
   840    Percentiles(Percentiles&& from) noexcept
   841      : Percentiles() {
   842      *this = ::std::move(from);
   843    }
   844  
   845    inline Percentiles& operator=(Percentiles&& from) noexcept {
   846      if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
   847        if (this != &from) InternalSwap(&from);
   848      } else {
   849        CopyFrom(from);
   850      }
   851      return *this;
   852    }
   853    #endif
   854    inline const ::std::string& unknown_fields() const {
   855      return _internal_metadata_.unknown_fields();
   856    }
   857    inline ::std::string* mutable_unknown_fields() {
   858      return _internal_metadata_.mutable_unknown_fields();
   859    }
   860  
   861    static const Percentiles& default_instance();
   862  
   863    static void InitAsDefaultInstance();  // FOR INTERNAL USE ONLY
   864    static inline const Percentiles* internal_default_instance() {
   865      return reinterpret_cast<const Percentiles*>(
   866                 &_Percentiles_default_instance_);
   867    }
   868    static constexpr int kIndexInFileMessages =
   869      5;
   870  
   871    void Swap(Percentiles* other);
   872    friend void swap(Percentiles& a, Percentiles& b) {
   873      a.Swap(&b);
   874    }
   875  
   876    // implements Message ----------------------------------------------
   877  
   878    inline Percentiles* New() const final {
   879      return CreateMaybeMessage<Percentiles>(NULL);
   880    }
   881  
   882    Percentiles* New(::google::protobuf::Arena* arena) const final {
   883      return CreateMaybeMessage<Percentiles>(arena);
   884    }
   885    void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from)
   886      final;
   887    void CopyFrom(const Percentiles& from);
   888    void MergeFrom(const Percentiles& from);
   889    void Clear() final;
   890    bool IsInitialized() const final;
   891  
   892    size_t ByteSizeLong() const final;
   893    bool MergePartialFromCodedStream(
   894        ::google::protobuf::io::CodedInputStream* input) final;
   895    void SerializeWithCachedSizes(
   896        ::google::protobuf::io::CodedOutputStream* output) const final;
   897    void DiscardUnknownFields();
   898    int GetCachedSize() const final { return _cached_size_.Get(); }
   899  
   900    private:
   901    void SharedCtor();
   902    void SharedDtor();
   903    void SetCachedSize(int size) const;
   904    void InternalSwap(Percentiles* other);
   905    private:
   906    inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
   907      return NULL;
   908    }
   909    inline void* MaybeArenaPtr() const {
   910      return NULL;
   911    }
   912    public:
   913  
   914    ::std::string GetTypeName() const final;
   915  
   916    // nested types ----------------------------------------------------
   917  
   918    // accessors -------------------------------------------------------
   919  
   920    bool has_p10() const;
   921    void clear_p10();
   922    static const int kP10FieldNumber = 1;
   923    double p10() const;
   924    void set_p10(double value);
   925  
   926    bool has_p25() const;
   927    void clear_p25();
   928    static const int kP25FieldNumber = 2;
   929    double p25() const;
   930    void set_p25(double value);
   931  
   932    bool has_p50() const;
   933    void clear_p50();
   934    static const int kP50FieldNumber = 3;
   935    double p50() const;
   936    void set_p50(double value);
   937  
   938    bool has_p75() const;
   939    void clear_p75();
   940    static const int kP75FieldNumber = 4;
   941    double p75() const;
   942    void set_p75(double value);
   943  
   944    bool has_p90() const;
   945    void clear_p90();
   946    static const int kP90FieldNumber = 5;
   947    double p90() const;
   948    void set_p90(double value);
   949  
   950    bool has_pmax() const;
   951    void clear_pmax();
   952    static const int kPMaxFieldNumber = 6;
   953    double pmax() const;
   954    void set_pmax(double value);
   955  
   956    // @@protoc_insertion_point(class_scope:cockroach.roachpb.Percentiles)
   957   private:
   958    void set_has_p10();
   959    void clear_has_p10();
   960    void set_has_p25();
   961    void clear_has_p25();
   962    void set_has_p50();
   963    void clear_has_p50();
   964    void set_has_p75();
   965    void clear_has_p75();
   966    void set_has_p90();
   967    void clear_has_p90();
   968    void set_has_pmax();
   969    void clear_has_pmax();
   970  
   971    ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_;
   972    ::google::protobuf::internal::HasBits<1> _has_bits_;
   973    mutable ::google::protobuf::internal::CachedSize _cached_size_;
   974    double p10_;
   975    double p25_;
   976    double p50_;
   977    double p75_;
   978    double p90_;
   979    double pmax_;
   980    friend struct ::protobuf_roachpb_2fmetadata_2eproto::TableStruct;
   981  };
   982  // -------------------------------------------------------------------
   983  
   984  class StoreCapacity : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:cockroach.roachpb.StoreCapacity) */ {
   985   public:
   986    StoreCapacity();
   987    virtual ~StoreCapacity();
   988  
   989    StoreCapacity(const StoreCapacity& from);
   990  
   991    inline StoreCapacity& operator=(const StoreCapacity& from) {
   992      CopyFrom(from);
   993      return *this;
   994    }
   995    #if LANG_CXX11
   996    StoreCapacity(StoreCapacity&& from) noexcept
   997      : StoreCapacity() {
   998      *this = ::std::move(from);
   999    }
  1000  
  1001    inline StoreCapacity& operator=(StoreCapacity&& from) noexcept {
  1002      if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  1003        if (this != &from) InternalSwap(&from);
  1004      } else {
  1005        CopyFrom(from);
  1006      }
  1007      return *this;
  1008    }
  1009    #endif
  1010    inline const ::std::string& unknown_fields() const {
  1011      return _internal_metadata_.unknown_fields();
  1012    }
  1013    inline ::std::string* mutable_unknown_fields() {
  1014      return _internal_metadata_.mutable_unknown_fields();
  1015    }
  1016  
  1017    static const StoreCapacity& default_instance();
  1018  
  1019    static void InitAsDefaultInstance();  // FOR INTERNAL USE ONLY
  1020    static inline const StoreCapacity* internal_default_instance() {
  1021      return reinterpret_cast<const StoreCapacity*>(
  1022                 &_StoreCapacity_default_instance_);
  1023    }
  1024    static constexpr int kIndexInFileMessages =
  1025      6;
  1026  
  1027    void Swap(StoreCapacity* other);
  1028    friend void swap(StoreCapacity& a, StoreCapacity& b) {
  1029      a.Swap(&b);
  1030    }
  1031  
  1032    // implements Message ----------------------------------------------
  1033  
  1034    inline StoreCapacity* New() const final {
  1035      return CreateMaybeMessage<StoreCapacity>(NULL);
  1036    }
  1037  
  1038    StoreCapacity* New(::google::protobuf::Arena* arena) const final {
  1039      return CreateMaybeMessage<StoreCapacity>(arena);
  1040    }
  1041    void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from)
  1042      final;
  1043    void CopyFrom(const StoreCapacity& from);
  1044    void MergeFrom(const StoreCapacity& from);
  1045    void Clear() final;
  1046    bool IsInitialized() const final;
  1047  
  1048    size_t ByteSizeLong() const final;
  1049    bool MergePartialFromCodedStream(
  1050        ::google::protobuf::io::CodedInputStream* input) final;
  1051    void SerializeWithCachedSizes(
  1052        ::google::protobuf::io::CodedOutputStream* output) const final;
  1053    void DiscardUnknownFields();
  1054    int GetCachedSize() const final { return _cached_size_.Get(); }
  1055  
  1056    private:
  1057    void SharedCtor();
  1058    void SharedDtor();
  1059    void SetCachedSize(int size) const;
  1060    void InternalSwap(StoreCapacity* other);
  1061    private:
  1062    inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  1063      return NULL;
  1064    }
  1065    inline void* MaybeArenaPtr() const {
  1066      return NULL;
  1067    }
  1068    public:
  1069  
  1070    ::std::string GetTypeName() const final;
  1071  
  1072    // nested types ----------------------------------------------------
  1073  
  1074    // accessors -------------------------------------------------------
  1075  
  1076    bool has_bytes_per_replica() const;
  1077    void clear_bytes_per_replica();
  1078    static const int kBytesPerReplicaFieldNumber = 6;
  1079    private:
  1080    const ::cockroach::roachpb::Percentiles& _internal_bytes_per_replica() const;
  1081    public:
  1082    const ::cockroach::roachpb::Percentiles& bytes_per_replica() const;
  1083    ::cockroach::roachpb::Percentiles* release_bytes_per_replica();
  1084    ::cockroach::roachpb::Percentiles* mutable_bytes_per_replica();
  1085    void set_allocated_bytes_per_replica(::cockroach::roachpb::Percentiles* bytes_per_replica);
  1086  
  1087    bool has_writes_per_replica() const;
  1088    void clear_writes_per_replica();
  1089    static const int kWritesPerReplicaFieldNumber = 7;
  1090    private:
  1091    const ::cockroach::roachpb::Percentiles& _internal_writes_per_replica() const;
  1092    public:
  1093    const ::cockroach::roachpb::Percentiles& writes_per_replica() const;
  1094    ::cockroach::roachpb::Percentiles* release_writes_per_replica();
  1095    ::cockroach::roachpb::Percentiles* mutable_writes_per_replica();
  1096    void set_allocated_writes_per_replica(::cockroach::roachpb::Percentiles* writes_per_replica);
  1097  
  1098    bool has_capacity() const;
  1099    void clear_capacity();
  1100    static const int kCapacityFieldNumber = 1;
  1101    ::google::protobuf::int64 capacity() const;
  1102    void set_capacity(::google::protobuf::int64 value);
  1103  
  1104    bool has_available() const;
  1105    void clear_available();
  1106    static const int kAvailableFieldNumber = 2;
  1107    ::google::protobuf::int64 available() const;
  1108    void set_available(::google::protobuf::int64 value);
  1109  
  1110    bool has_range_count() const;
  1111    void clear_range_count();
  1112    static const int kRangeCountFieldNumber = 3;
  1113    ::google::protobuf::int32 range_count() const;
  1114    void set_range_count(::google::protobuf::int32 value);
  1115  
  1116    bool has_lease_count() const;
  1117    void clear_lease_count();
  1118    static const int kLeaseCountFieldNumber = 4;
  1119    ::google::protobuf::int32 lease_count() const;
  1120    void set_lease_count(::google::protobuf::int32 value);
  1121  
  1122    bool has_writes_per_second() const;
  1123    void clear_writes_per_second();
  1124    static const int kWritesPerSecondFieldNumber = 5;
  1125    double writes_per_second() const;
  1126    void set_writes_per_second(double value);
  1127  
  1128    bool has_used() const;
  1129    void clear_used();
  1130    static const int kUsedFieldNumber = 8;
  1131    ::google::protobuf::int64 used() const;
  1132    void set_used(::google::protobuf::int64 value);
  1133  
  1134    bool has_logical_bytes() const;
  1135    void clear_logical_bytes();
  1136    static const int kLogicalBytesFieldNumber = 9;
  1137    ::google::protobuf::int64 logical_bytes() const;
  1138    void set_logical_bytes(::google::protobuf::int64 value);
  1139  
  1140    bool has_queries_per_second() const;
  1141    void clear_queries_per_second();
  1142    static const int kQueriesPerSecondFieldNumber = 10;
  1143    double queries_per_second() const;
  1144    void set_queries_per_second(double value);
  1145  
  1146    // @@protoc_insertion_point(class_scope:cockroach.roachpb.StoreCapacity)
  1147   private:
  1148    void set_has_capacity();
  1149    void clear_has_capacity();
  1150    void set_has_available();
  1151    void clear_has_available();
  1152    void set_has_used();
  1153    void clear_has_used();
  1154    void set_has_logical_bytes();
  1155    void clear_has_logical_bytes();
  1156    void set_has_range_count();
  1157    void clear_has_range_count();
  1158    void set_has_lease_count();
  1159    void clear_has_lease_count();
  1160    void set_has_queries_per_second();
  1161    void clear_has_queries_per_second();
  1162    void set_has_writes_per_second();
  1163    void clear_has_writes_per_second();
  1164    void set_has_bytes_per_replica();
  1165    void clear_has_bytes_per_replica();
  1166    void set_has_writes_per_replica();
  1167    void clear_has_writes_per_replica();
  1168  
  1169    ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_;
  1170    ::google::protobuf::internal::HasBits<1> _has_bits_;
  1171    mutable ::google::protobuf::internal::CachedSize _cached_size_;
  1172    ::cockroach::roachpb::Percentiles* bytes_per_replica_;
  1173    ::cockroach::roachpb::Percentiles* writes_per_replica_;
  1174    ::google::protobuf::int64 capacity_;
  1175    ::google::protobuf::int64 available_;
  1176    ::google::protobuf::int32 range_count_;
  1177    ::google::protobuf::int32 lease_count_;
  1178    double writes_per_second_;
  1179    ::google::protobuf::int64 used_;
  1180    ::google::protobuf::int64 logical_bytes_;
  1181    double queries_per_second_;
  1182    friend struct ::protobuf_roachpb_2fmetadata_2eproto::TableStruct;
  1183  };
  1184  // -------------------------------------------------------------------
  1185  
  1186  class NodeDescriptor : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:cockroach.roachpb.NodeDescriptor) */ {
  1187   public:
  1188    NodeDescriptor();
  1189    virtual ~NodeDescriptor();
  1190  
  1191    NodeDescriptor(const NodeDescriptor& from);
  1192  
  1193    inline NodeDescriptor& operator=(const NodeDescriptor& from) {
  1194      CopyFrom(from);
  1195      return *this;
  1196    }
  1197    #if LANG_CXX11
  1198    NodeDescriptor(NodeDescriptor&& from) noexcept
  1199      : NodeDescriptor() {
  1200      *this = ::std::move(from);
  1201    }
  1202  
  1203    inline NodeDescriptor& operator=(NodeDescriptor&& from) noexcept {
  1204      if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  1205        if (this != &from) InternalSwap(&from);
  1206      } else {
  1207        CopyFrom(from);
  1208      }
  1209      return *this;
  1210    }
  1211    #endif
  1212    inline const ::std::string& unknown_fields() const {
  1213      return _internal_metadata_.unknown_fields();
  1214    }
  1215    inline ::std::string* mutable_unknown_fields() {
  1216      return _internal_metadata_.mutable_unknown_fields();
  1217    }
  1218  
  1219    static const NodeDescriptor& default_instance();
  1220  
  1221    static void InitAsDefaultInstance();  // FOR INTERNAL USE ONLY
  1222    static inline const NodeDescriptor* internal_default_instance() {
  1223      return reinterpret_cast<const NodeDescriptor*>(
  1224                 &_NodeDescriptor_default_instance_);
  1225    }
  1226    static constexpr int kIndexInFileMessages =
  1227      7;
  1228  
  1229    void Swap(NodeDescriptor* other);
  1230    friend void swap(NodeDescriptor& a, NodeDescriptor& b) {
  1231      a.Swap(&b);
  1232    }
  1233  
  1234    // implements Message ----------------------------------------------
  1235  
  1236    inline NodeDescriptor* New() const final {
  1237      return CreateMaybeMessage<NodeDescriptor>(NULL);
  1238    }
  1239  
  1240    NodeDescriptor* New(::google::protobuf::Arena* arena) const final {
  1241      return CreateMaybeMessage<NodeDescriptor>(arena);
  1242    }
  1243    void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from)
  1244      final;
  1245    void CopyFrom(const NodeDescriptor& from);
  1246    void MergeFrom(const NodeDescriptor& from);
  1247    void Clear() final;
  1248    bool IsInitialized() const final;
  1249  
  1250    size_t ByteSizeLong() const final;
  1251    bool MergePartialFromCodedStream(
  1252        ::google::protobuf::io::CodedInputStream* input) final;
  1253    void SerializeWithCachedSizes(
  1254        ::google::protobuf::io::CodedOutputStream* output) const final;
  1255    void DiscardUnknownFields();
  1256    int GetCachedSize() const final { return _cached_size_.Get(); }
  1257  
  1258    private:
  1259    void SharedCtor();
  1260    void SharedDtor();
  1261    void SetCachedSize(int size) const;
  1262    void InternalSwap(NodeDescriptor* other);
  1263    private:
  1264    inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  1265      return NULL;
  1266    }
  1267    inline void* MaybeArenaPtr() const {
  1268      return NULL;
  1269    }
  1270    public:
  1271  
  1272    ::std::string GetTypeName() const final;
  1273  
  1274    // nested types ----------------------------------------------------
  1275  
  1276    // accessors -------------------------------------------------------
  1277  
  1278    int locality_address_size() const;
  1279    void clear_locality_address();
  1280    static const int kLocalityAddressFieldNumber = 8;
  1281    ::cockroach::roachpb::LocalityAddress* mutable_locality_address(int index);
  1282    ::google::protobuf::RepeatedPtrField< ::cockroach::roachpb::LocalityAddress >*
  1283        mutable_locality_address();
  1284    const ::cockroach::roachpb::LocalityAddress& locality_address(int index) const;
  1285    ::cockroach::roachpb::LocalityAddress* add_locality_address();
  1286    const ::google::protobuf::RepeatedPtrField< ::cockroach::roachpb::LocalityAddress >&
  1287        locality_address() const;
  1288  
  1289    bool has_build_tag() const;
  1290    void clear_build_tag();
  1291    static const int kBuildTagFieldNumber = 6;
  1292    const ::std::string& build_tag() const;
  1293    void set_build_tag(const ::std::string& value);
  1294    #if LANG_CXX11
  1295    void set_build_tag(::std::string&& value);
  1296    #endif
  1297    void set_build_tag(const char* value);
  1298    void set_build_tag(const char* value, size_t size);
  1299    ::std::string* mutable_build_tag();
  1300    ::std::string* release_build_tag();
  1301    void set_allocated_build_tag(::std::string* build_tag);
  1302  
  1303    bool has_cluster_name() const;
  1304    void clear_cluster_name();
  1305    static const int kClusterNameFieldNumber = 9;
  1306    const ::std::string& cluster_name() const;
  1307    void set_cluster_name(const ::std::string& value);
  1308    #if LANG_CXX11
  1309    void set_cluster_name(::std::string&& value);
  1310    #endif
  1311    void set_cluster_name(const char* value);
  1312    void set_cluster_name(const char* value, size_t size);
  1313    ::std::string* mutable_cluster_name();
  1314    ::std::string* release_cluster_name();
  1315    void set_allocated_cluster_name(::std::string* cluster_name);
  1316  
  1317    bool has_address() const;
  1318    void clear_address();
  1319    static const int kAddressFieldNumber = 2;
  1320    private:
  1321    const ::cockroach::util::UnresolvedAddr& _internal_address() const;
  1322    public:
  1323    const ::cockroach::util::UnresolvedAddr& address() const;
  1324    ::cockroach::util::UnresolvedAddr* release_address();
  1325    ::cockroach::util::UnresolvedAddr* mutable_address();
  1326    void set_allocated_address(::cockroach::util::UnresolvedAddr* address);
  1327  
  1328    bool has_attrs() const;
  1329    void clear_attrs();
  1330    static const int kAttrsFieldNumber = 3;
  1331    private:
  1332    const ::cockroach::roachpb::Attributes& _internal_attrs() const;
  1333    public:
  1334    const ::cockroach::roachpb::Attributes& attrs() const;
  1335    ::cockroach::roachpb::Attributes* release_attrs();
  1336    ::cockroach::roachpb::Attributes* mutable_attrs();
  1337    void set_allocated_attrs(::cockroach::roachpb::Attributes* attrs);
  1338  
  1339    bool has_locality() const;
  1340    void clear_locality();
  1341    static const int kLocalityFieldNumber = 4;
  1342    private:
  1343    const ::cockroach::roachpb::Locality& _internal_locality() const;
  1344    public:
  1345    const ::cockroach::roachpb::Locality& locality() const;
  1346    ::cockroach::roachpb::Locality* release_locality();
  1347    ::cockroach::roachpb::Locality* mutable_locality();
  1348    void set_allocated_locality(::cockroach::roachpb::Locality* locality);
  1349  
  1350    bool has_serverversion() const;
  1351    void clear_serverversion();
  1352    static const int kServerVersionFieldNumber = 5;
  1353    private:
  1354    const ::cockroach::roachpb::Version& _internal_serverversion() const;
  1355    public:
  1356    const ::cockroach::roachpb::Version& serverversion() const;
  1357    ::cockroach::roachpb::Version* release_serverversion();
  1358    ::cockroach::roachpb::Version* mutable_serverversion();
  1359    void set_allocated_serverversion(::cockroach::roachpb::Version* serverversion);
  1360  
  1361    bool has_sql_address() const;
  1362    void clear_sql_address();
  1363    static const int kSqlAddressFieldNumber = 10;
  1364    private:
  1365    const ::cockroach::util::UnresolvedAddr& _internal_sql_address() const;
  1366    public:
  1367    const ::cockroach::util::UnresolvedAddr& sql_address() const;
  1368    ::cockroach::util::UnresolvedAddr* release_sql_address();
  1369    ::cockroach::util::UnresolvedAddr* mutable_sql_address();
  1370    void set_allocated_sql_address(::cockroach::util::UnresolvedAddr* sql_address);
  1371  
  1372    bool has_started_at() const;
  1373    void clear_started_at();
  1374    static const int kStartedAtFieldNumber = 7;
  1375    ::google::protobuf::int64 started_at() const;
  1376    void set_started_at(::google::protobuf::int64 value);
  1377  
  1378    bool has_node_id() const;
  1379    void clear_node_id();
  1380    static const int kNodeIdFieldNumber = 1;
  1381    ::google::protobuf::int32 node_id() const;
  1382    void set_node_id(::google::protobuf::int32 value);
  1383  
  1384    // @@protoc_insertion_point(class_scope:cockroach.roachpb.NodeDescriptor)
  1385   private:
  1386    void set_has_node_id();
  1387    void clear_has_node_id();
  1388    void set_has_address();
  1389    void clear_has_address();
  1390    void set_has_attrs();
  1391    void clear_has_attrs();
  1392    void set_has_locality();
  1393    void clear_has_locality();
  1394    void set_has_serverversion();
  1395    void clear_has_serverversion();
  1396    void set_has_build_tag();
  1397    void clear_has_build_tag();
  1398    void set_has_started_at();
  1399    void clear_has_started_at();
  1400    void set_has_cluster_name();
  1401    void clear_has_cluster_name();
  1402    void set_has_sql_address();
  1403    void clear_has_sql_address();
  1404  
  1405    ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_;
  1406    ::google::protobuf::internal::HasBits<1> _has_bits_;
  1407    mutable ::google::protobuf::internal::CachedSize _cached_size_;
  1408    ::google::protobuf::RepeatedPtrField< ::cockroach::roachpb::LocalityAddress > locality_address_;
  1409    ::google::protobuf::internal::ArenaStringPtr build_tag_;
  1410    ::google::protobuf::internal::ArenaStringPtr cluster_name_;
  1411    ::cockroach::util::UnresolvedAddr* address_;
  1412    ::cockroach::roachpb::Attributes* attrs_;
  1413    ::cockroach::roachpb::Locality* locality_;
  1414    ::cockroach::roachpb::Version* serverversion_;
  1415    ::cockroach::util::UnresolvedAddr* sql_address_;
  1416    ::google::protobuf::int64 started_at_;
  1417    ::google::protobuf::int32 node_id_;
  1418    friend struct ::protobuf_roachpb_2fmetadata_2eproto::TableStruct;
  1419  };
  1420  // -------------------------------------------------------------------
  1421  
  1422  class LocalityAddress : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:cockroach.roachpb.LocalityAddress) */ {
  1423   public:
  1424    LocalityAddress();
  1425    virtual ~LocalityAddress();
  1426  
  1427    LocalityAddress(const LocalityAddress& from);
  1428  
  1429    inline LocalityAddress& operator=(const LocalityAddress& from) {
  1430      CopyFrom(from);
  1431      return *this;
  1432    }
  1433    #if LANG_CXX11
  1434    LocalityAddress(LocalityAddress&& from) noexcept
  1435      : LocalityAddress() {
  1436      *this = ::std::move(from);
  1437    }
  1438  
  1439    inline LocalityAddress& operator=(LocalityAddress&& from) noexcept {
  1440      if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  1441        if (this != &from) InternalSwap(&from);
  1442      } else {
  1443        CopyFrom(from);
  1444      }
  1445      return *this;
  1446    }
  1447    #endif
  1448    inline const ::std::string& unknown_fields() const {
  1449      return _internal_metadata_.unknown_fields();
  1450    }
  1451    inline ::std::string* mutable_unknown_fields() {
  1452      return _internal_metadata_.mutable_unknown_fields();
  1453    }
  1454  
  1455    static const LocalityAddress& default_instance();
  1456  
  1457    static void InitAsDefaultInstance();  // FOR INTERNAL USE ONLY
  1458    static inline const LocalityAddress* internal_default_instance() {
  1459      return reinterpret_cast<const LocalityAddress*>(
  1460                 &_LocalityAddress_default_instance_);
  1461    }
  1462    static constexpr int kIndexInFileMessages =
  1463      8;
  1464  
  1465    void Swap(LocalityAddress* other);
  1466    friend void swap(LocalityAddress& a, LocalityAddress& b) {
  1467      a.Swap(&b);
  1468    }
  1469  
  1470    // implements Message ----------------------------------------------
  1471  
  1472    inline LocalityAddress* New() const final {
  1473      return CreateMaybeMessage<LocalityAddress>(NULL);
  1474    }
  1475  
  1476    LocalityAddress* New(::google::protobuf::Arena* arena) const final {
  1477      return CreateMaybeMessage<LocalityAddress>(arena);
  1478    }
  1479    void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from)
  1480      final;
  1481    void CopyFrom(const LocalityAddress& from);
  1482    void MergeFrom(const LocalityAddress& from);
  1483    void Clear() final;
  1484    bool IsInitialized() const final;
  1485  
  1486    size_t ByteSizeLong() const final;
  1487    bool MergePartialFromCodedStream(
  1488        ::google::protobuf::io::CodedInputStream* input) final;
  1489    void SerializeWithCachedSizes(
  1490        ::google::protobuf::io::CodedOutputStream* output) const final;
  1491    void DiscardUnknownFields();
  1492    int GetCachedSize() const final { return _cached_size_.Get(); }
  1493  
  1494    private:
  1495    void SharedCtor();
  1496    void SharedDtor();
  1497    void SetCachedSize(int size) const;
  1498    void InternalSwap(LocalityAddress* other);
  1499    private:
  1500    inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  1501      return NULL;
  1502    }
  1503    inline void* MaybeArenaPtr() const {
  1504      return NULL;
  1505    }
  1506    public:
  1507  
  1508    ::std::string GetTypeName() const final;
  1509  
  1510    // nested types ----------------------------------------------------
  1511  
  1512    // accessors -------------------------------------------------------
  1513  
  1514    bool has_address() const;
  1515    void clear_address();
  1516    static const int kAddressFieldNumber = 1;
  1517    private:
  1518    const ::cockroach::util::UnresolvedAddr& _internal_address() const;
  1519    public:
  1520    const ::cockroach::util::UnresolvedAddr& address() const;
  1521    ::cockroach::util::UnresolvedAddr* release_address();
  1522    ::cockroach::util::UnresolvedAddr* mutable_address();
  1523    void set_allocated_address(::cockroach::util::UnresolvedAddr* address);
  1524  
  1525    bool has_locality_tier() const;
  1526    void clear_locality_tier();
  1527    static const int kLocalityTierFieldNumber = 2;
  1528    private:
  1529    const ::cockroach::roachpb::Tier& _internal_locality_tier() const;
  1530    public:
  1531    const ::cockroach::roachpb::Tier& locality_tier() const;
  1532    ::cockroach::roachpb::Tier* release_locality_tier();
  1533    ::cockroach::roachpb::Tier* mutable_locality_tier();
  1534    void set_allocated_locality_tier(::cockroach::roachpb::Tier* locality_tier);
  1535  
  1536    // @@protoc_insertion_point(class_scope:cockroach.roachpb.LocalityAddress)
  1537   private:
  1538    void set_has_address();
  1539    void clear_has_address();
  1540    void set_has_locality_tier();
  1541    void clear_has_locality_tier();
  1542  
  1543    ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_;
  1544    ::google::protobuf::internal::HasBits<1> _has_bits_;
  1545    mutable ::google::protobuf::internal::CachedSize _cached_size_;
  1546    ::cockroach::util::UnresolvedAddr* address_;
  1547    ::cockroach::roachpb::Tier* locality_tier_;
  1548    friend struct ::protobuf_roachpb_2fmetadata_2eproto::TableStruct;
  1549  };
  1550  // -------------------------------------------------------------------
  1551  
  1552  class StoreDescriptor : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:cockroach.roachpb.StoreDescriptor) */ {
  1553   public:
  1554    StoreDescriptor();
  1555    virtual ~StoreDescriptor();
  1556  
  1557    StoreDescriptor(const StoreDescriptor& from);
  1558  
  1559    inline StoreDescriptor& operator=(const StoreDescriptor& from) {
  1560      CopyFrom(from);
  1561      return *this;
  1562    }
  1563    #if LANG_CXX11
  1564    StoreDescriptor(StoreDescriptor&& from) noexcept
  1565      : StoreDescriptor() {
  1566      *this = ::std::move(from);
  1567    }
  1568  
  1569    inline StoreDescriptor& operator=(StoreDescriptor&& from) noexcept {
  1570      if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  1571        if (this != &from) InternalSwap(&from);
  1572      } else {
  1573        CopyFrom(from);
  1574      }
  1575      return *this;
  1576    }
  1577    #endif
  1578    inline const ::std::string& unknown_fields() const {
  1579      return _internal_metadata_.unknown_fields();
  1580    }
  1581    inline ::std::string* mutable_unknown_fields() {
  1582      return _internal_metadata_.mutable_unknown_fields();
  1583    }
  1584  
  1585    static const StoreDescriptor& default_instance();
  1586  
  1587    static void InitAsDefaultInstance();  // FOR INTERNAL USE ONLY
  1588    static inline const StoreDescriptor* internal_default_instance() {
  1589      return reinterpret_cast<const StoreDescriptor*>(
  1590                 &_StoreDescriptor_default_instance_);
  1591    }
  1592    static constexpr int kIndexInFileMessages =
  1593      9;
  1594  
  1595    void Swap(StoreDescriptor* other);
  1596    friend void swap(StoreDescriptor& a, StoreDescriptor& b) {
  1597      a.Swap(&b);
  1598    }
  1599  
  1600    // implements Message ----------------------------------------------
  1601  
  1602    inline StoreDescriptor* New() const final {
  1603      return CreateMaybeMessage<StoreDescriptor>(NULL);
  1604    }
  1605  
  1606    StoreDescriptor* New(::google::protobuf::Arena* arena) const final {
  1607      return CreateMaybeMessage<StoreDescriptor>(arena);
  1608    }
  1609    void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from)
  1610      final;
  1611    void CopyFrom(const StoreDescriptor& from);
  1612    void MergeFrom(const StoreDescriptor& from);
  1613    void Clear() final;
  1614    bool IsInitialized() const final;
  1615  
  1616    size_t ByteSizeLong() const final;
  1617    bool MergePartialFromCodedStream(
  1618        ::google::protobuf::io::CodedInputStream* input) final;
  1619    void SerializeWithCachedSizes(
  1620        ::google::protobuf::io::CodedOutputStream* output) const final;
  1621    void DiscardUnknownFields();
  1622    int GetCachedSize() const final { return _cached_size_.Get(); }
  1623  
  1624    private:
  1625    void SharedCtor();
  1626    void SharedDtor();
  1627    void SetCachedSize(int size) const;
  1628    void InternalSwap(StoreDescriptor* other);
  1629    private:
  1630    inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  1631      return NULL;
  1632    }
  1633    inline void* MaybeArenaPtr() const {
  1634      return NULL;
  1635    }
  1636    public:
  1637  
  1638    ::std::string GetTypeName() const final;
  1639  
  1640    // nested types ----------------------------------------------------
  1641  
  1642    // accessors -------------------------------------------------------
  1643  
  1644    bool has_attrs() const;
  1645    void clear_attrs();
  1646    static const int kAttrsFieldNumber = 2;
  1647    private:
  1648    const ::cockroach::roachpb::Attributes& _internal_attrs() const;
  1649    public:
  1650    const ::cockroach::roachpb::Attributes& attrs() const;
  1651    ::cockroach::roachpb::Attributes* release_attrs();
  1652    ::cockroach::roachpb::Attributes* mutable_attrs();
  1653    void set_allocated_attrs(::cockroach::roachpb::Attributes* attrs);
  1654  
  1655    bool has_node() const;
  1656    void clear_node();
  1657    static const int kNodeFieldNumber = 3;
  1658    private:
  1659    const ::cockroach::roachpb::NodeDescriptor& _internal_node() const;
  1660    public:
  1661    const ::cockroach::roachpb::NodeDescriptor& node() const;
  1662    ::cockroach::roachpb::NodeDescriptor* release_node();
  1663    ::cockroach::roachpb::NodeDescriptor* mutable_node();
  1664    void set_allocated_node(::cockroach::roachpb::NodeDescriptor* node);
  1665  
  1666    bool has_capacity() const;
  1667    void clear_capacity();
  1668    static const int kCapacityFieldNumber = 4;
  1669    private:
  1670    const ::cockroach::roachpb::StoreCapacity& _internal_capacity() const;
  1671    public:
  1672    const ::cockroach::roachpb::StoreCapacity& capacity() const;
  1673    ::cockroach::roachpb::StoreCapacity* release_capacity();
  1674    ::cockroach::roachpb::StoreCapacity* mutable_capacity();
  1675    void set_allocated_capacity(::cockroach::roachpb::StoreCapacity* capacity);
  1676  
  1677    bool has_store_id() const;
  1678    void clear_store_id();
  1679    static const int kStoreIdFieldNumber = 1;
  1680    ::google::protobuf::int32 store_id() const;
  1681    void set_store_id(::google::protobuf::int32 value);
  1682  
  1683    // @@protoc_insertion_point(class_scope:cockroach.roachpb.StoreDescriptor)
  1684   private:
  1685    void set_has_store_id();
  1686    void clear_has_store_id();
  1687    void set_has_attrs();
  1688    void clear_has_attrs();
  1689    void set_has_node();
  1690    void clear_has_node();
  1691    void set_has_capacity();
  1692    void clear_has_capacity();
  1693  
  1694    ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_;
  1695    ::google::protobuf::internal::HasBits<1> _has_bits_;
  1696    mutable ::google::protobuf::internal::CachedSize _cached_size_;
  1697    ::cockroach::roachpb::Attributes* attrs_;
  1698    ::cockroach::roachpb::NodeDescriptor* node_;
  1699    ::cockroach::roachpb::StoreCapacity* capacity_;
  1700    ::google::protobuf::int32 store_id_;
  1701    friend struct ::protobuf_roachpb_2fmetadata_2eproto::TableStruct;
  1702  };
  1703  // -------------------------------------------------------------------
  1704  
  1705  class StoreDeadReplicas : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:cockroach.roachpb.StoreDeadReplicas) */ {
  1706   public:
  1707    StoreDeadReplicas();
  1708    virtual ~StoreDeadReplicas();
  1709  
  1710    StoreDeadReplicas(const StoreDeadReplicas& from);
  1711  
  1712    inline StoreDeadReplicas& operator=(const StoreDeadReplicas& from) {
  1713      CopyFrom(from);
  1714      return *this;
  1715    }
  1716    #if LANG_CXX11
  1717    StoreDeadReplicas(StoreDeadReplicas&& from) noexcept
  1718      : StoreDeadReplicas() {
  1719      *this = ::std::move(from);
  1720    }
  1721  
  1722    inline StoreDeadReplicas& operator=(StoreDeadReplicas&& from) noexcept {
  1723      if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  1724        if (this != &from) InternalSwap(&from);
  1725      } else {
  1726        CopyFrom(from);
  1727      }
  1728      return *this;
  1729    }
  1730    #endif
  1731    inline const ::std::string& unknown_fields() const {
  1732      return _internal_metadata_.unknown_fields();
  1733    }
  1734    inline ::std::string* mutable_unknown_fields() {
  1735      return _internal_metadata_.mutable_unknown_fields();
  1736    }
  1737  
  1738    static const StoreDeadReplicas& default_instance();
  1739  
  1740    static void InitAsDefaultInstance();  // FOR INTERNAL USE ONLY
  1741    static inline const StoreDeadReplicas* internal_default_instance() {
  1742      return reinterpret_cast<const StoreDeadReplicas*>(
  1743                 &_StoreDeadReplicas_default_instance_);
  1744    }
  1745    static constexpr int kIndexInFileMessages =
  1746      10;
  1747  
  1748    void Swap(StoreDeadReplicas* other);
  1749    friend void swap(StoreDeadReplicas& a, StoreDeadReplicas& b) {
  1750      a.Swap(&b);
  1751    }
  1752  
  1753    // implements Message ----------------------------------------------
  1754  
  1755    inline StoreDeadReplicas* New() const final {
  1756      return CreateMaybeMessage<StoreDeadReplicas>(NULL);
  1757    }
  1758  
  1759    StoreDeadReplicas* New(::google::protobuf::Arena* arena) const final {
  1760      return CreateMaybeMessage<StoreDeadReplicas>(arena);
  1761    }
  1762    void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from)
  1763      final;
  1764    void CopyFrom(const StoreDeadReplicas& from);
  1765    void MergeFrom(const StoreDeadReplicas& from);
  1766    void Clear() final;
  1767    bool IsInitialized() const final;
  1768  
  1769    size_t ByteSizeLong() const final;
  1770    bool MergePartialFromCodedStream(
  1771        ::google::protobuf::io::CodedInputStream* input) final;
  1772    void SerializeWithCachedSizes(
  1773        ::google::protobuf::io::CodedOutputStream* output) const final;
  1774    void DiscardUnknownFields();
  1775    int GetCachedSize() const final { return _cached_size_.Get(); }
  1776  
  1777    private:
  1778    void SharedCtor();
  1779    void SharedDtor();
  1780    void SetCachedSize(int size) const;
  1781    void InternalSwap(StoreDeadReplicas* other);
  1782    private:
  1783    inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  1784      return NULL;
  1785    }
  1786    inline void* MaybeArenaPtr() const {
  1787      return NULL;
  1788    }
  1789    public:
  1790  
  1791    ::std::string GetTypeName() const final;
  1792  
  1793    // nested types ----------------------------------------------------
  1794  
  1795    // accessors -------------------------------------------------------
  1796  
  1797    int replicas_size() const;
  1798    void clear_replicas();
  1799    static const int kReplicasFieldNumber = 2;
  1800    ::cockroach::roachpb::ReplicaIdent* mutable_replicas(int index);
  1801    ::google::protobuf::RepeatedPtrField< ::cockroach::roachpb::ReplicaIdent >*
  1802        mutable_replicas();
  1803    const ::cockroach::roachpb::ReplicaIdent& replicas(int index) const;
  1804    ::cockroach::roachpb::ReplicaIdent* add_replicas();
  1805    const ::google::protobuf::RepeatedPtrField< ::cockroach::roachpb::ReplicaIdent >&
  1806        replicas() const;
  1807  
  1808    bool has_store_id() const;
  1809    void clear_store_id();
  1810    static const int kStoreIdFieldNumber = 1;
  1811    ::google::protobuf::int32 store_id() const;
  1812    void set_store_id(::google::protobuf::int32 value);
  1813  
  1814    // @@protoc_insertion_point(class_scope:cockroach.roachpb.StoreDeadReplicas)
  1815   private:
  1816    void set_has_store_id();
  1817    void clear_has_store_id();
  1818  
  1819    ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_;
  1820    ::google::protobuf::internal::HasBits<1> _has_bits_;
  1821    mutable ::google::protobuf::internal::CachedSize _cached_size_;
  1822    ::google::protobuf::RepeatedPtrField< ::cockroach::roachpb::ReplicaIdent > replicas_;
  1823    ::google::protobuf::int32 store_id_;
  1824    friend struct ::protobuf_roachpb_2fmetadata_2eproto::TableStruct;
  1825  };
  1826  // -------------------------------------------------------------------
  1827  
  1828  class Locality : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:cockroach.roachpb.Locality) */ {
  1829   public:
  1830    Locality();
  1831    virtual ~Locality();
  1832  
  1833    Locality(const Locality& from);
  1834  
  1835    inline Locality& operator=(const Locality& from) {
  1836      CopyFrom(from);
  1837      return *this;
  1838    }
  1839    #if LANG_CXX11
  1840    Locality(Locality&& from) noexcept
  1841      : Locality() {
  1842      *this = ::std::move(from);
  1843    }
  1844  
  1845    inline Locality& operator=(Locality&& from) noexcept {
  1846      if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  1847        if (this != &from) InternalSwap(&from);
  1848      } else {
  1849        CopyFrom(from);
  1850      }
  1851      return *this;
  1852    }
  1853    #endif
  1854    inline const ::std::string& unknown_fields() const {
  1855      return _internal_metadata_.unknown_fields();
  1856    }
  1857    inline ::std::string* mutable_unknown_fields() {
  1858      return _internal_metadata_.mutable_unknown_fields();
  1859    }
  1860  
  1861    static const Locality& default_instance();
  1862  
  1863    static void InitAsDefaultInstance();  // FOR INTERNAL USE ONLY
  1864    static inline const Locality* internal_default_instance() {
  1865      return reinterpret_cast<const Locality*>(
  1866                 &_Locality_default_instance_);
  1867    }
  1868    static constexpr int kIndexInFileMessages =
  1869      11;
  1870  
  1871    void Swap(Locality* other);
  1872    friend void swap(Locality& a, Locality& b) {
  1873      a.Swap(&b);
  1874    }
  1875  
  1876    // implements Message ----------------------------------------------
  1877  
  1878    inline Locality* New() const final {
  1879      return CreateMaybeMessage<Locality>(NULL);
  1880    }
  1881  
  1882    Locality* New(::google::protobuf::Arena* arena) const final {
  1883      return CreateMaybeMessage<Locality>(arena);
  1884    }
  1885    void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from)
  1886      final;
  1887    void CopyFrom(const Locality& from);
  1888    void MergeFrom(const Locality& from);
  1889    void Clear() final;
  1890    bool IsInitialized() const final;
  1891  
  1892    size_t ByteSizeLong() const final;
  1893    bool MergePartialFromCodedStream(
  1894        ::google::protobuf::io::CodedInputStream* input) final;
  1895    void SerializeWithCachedSizes(
  1896        ::google::protobuf::io::CodedOutputStream* output) const final;
  1897    void DiscardUnknownFields();
  1898    int GetCachedSize() const final { return _cached_size_.Get(); }
  1899  
  1900    private:
  1901    void SharedCtor();
  1902    void SharedDtor();
  1903    void SetCachedSize(int size) const;
  1904    void InternalSwap(Locality* other);
  1905    private:
  1906    inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  1907      return NULL;
  1908    }
  1909    inline void* MaybeArenaPtr() const {
  1910      return NULL;
  1911    }
  1912    public:
  1913  
  1914    ::std::string GetTypeName() const final;
  1915  
  1916    // nested types ----------------------------------------------------
  1917  
  1918    // accessors -------------------------------------------------------
  1919  
  1920    int tiers_size() const;
  1921    void clear_tiers();
  1922    static const int kTiersFieldNumber = 1;
  1923    ::cockroach::roachpb::Tier* mutable_tiers(int index);
  1924    ::google::protobuf::RepeatedPtrField< ::cockroach::roachpb::Tier >*
  1925        mutable_tiers();
  1926    const ::cockroach::roachpb::Tier& tiers(int index) const;
  1927    ::cockroach::roachpb::Tier* add_tiers();
  1928    const ::google::protobuf::RepeatedPtrField< ::cockroach::roachpb::Tier >&
  1929        tiers() const;
  1930  
  1931    // @@protoc_insertion_point(class_scope:cockroach.roachpb.Locality)
  1932   private:
  1933  
  1934    ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_;
  1935    ::google::protobuf::internal::HasBits<1> _has_bits_;
  1936    mutable ::google::protobuf::internal::CachedSize _cached_size_;
  1937    ::google::protobuf::RepeatedPtrField< ::cockroach::roachpb::Tier > tiers_;
  1938    friend struct ::protobuf_roachpb_2fmetadata_2eproto::TableStruct;
  1939  };
  1940  // -------------------------------------------------------------------
  1941  
  1942  class Tier : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:cockroach.roachpb.Tier) */ {
  1943   public:
  1944    Tier();
  1945    virtual ~Tier();
  1946  
  1947    Tier(const Tier& from);
  1948  
  1949    inline Tier& operator=(const Tier& from) {
  1950      CopyFrom(from);
  1951      return *this;
  1952    }
  1953    #if LANG_CXX11
  1954    Tier(Tier&& from) noexcept
  1955      : Tier() {
  1956      *this = ::std::move(from);
  1957    }
  1958  
  1959    inline Tier& operator=(Tier&& from) noexcept {
  1960      if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  1961        if (this != &from) InternalSwap(&from);
  1962      } else {
  1963        CopyFrom(from);
  1964      }
  1965      return *this;
  1966    }
  1967    #endif
  1968    inline const ::std::string& unknown_fields() const {
  1969      return _internal_metadata_.unknown_fields();
  1970    }
  1971    inline ::std::string* mutable_unknown_fields() {
  1972      return _internal_metadata_.mutable_unknown_fields();
  1973    }
  1974  
  1975    static const Tier& default_instance();
  1976  
  1977    static void InitAsDefaultInstance();  // FOR INTERNAL USE ONLY
  1978    static inline const Tier* internal_default_instance() {
  1979      return reinterpret_cast<const Tier*>(
  1980                 &_Tier_default_instance_);
  1981    }
  1982    static constexpr int kIndexInFileMessages =
  1983      12;
  1984  
  1985    void Swap(Tier* other);
  1986    friend void swap(Tier& a, Tier& b) {
  1987      a.Swap(&b);
  1988    }
  1989  
  1990    // implements Message ----------------------------------------------
  1991  
  1992    inline Tier* New() const final {
  1993      return CreateMaybeMessage<Tier>(NULL);
  1994    }
  1995  
  1996    Tier* New(::google::protobuf::Arena* arena) const final {
  1997      return CreateMaybeMessage<Tier>(arena);
  1998    }
  1999    void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from)
  2000      final;
  2001    void CopyFrom(const Tier& from);
  2002    void MergeFrom(const Tier& from);
  2003    void Clear() final;
  2004    bool IsInitialized() const final;
  2005  
  2006    size_t ByteSizeLong() const final;
  2007    bool MergePartialFromCodedStream(
  2008        ::google::protobuf::io::CodedInputStream* input) final;
  2009    void SerializeWithCachedSizes(
  2010        ::google::protobuf::io::CodedOutputStream* output) const final;
  2011    void DiscardUnknownFields();
  2012    int GetCachedSize() const final { return _cached_size_.Get(); }
  2013  
  2014    private:
  2015    void SharedCtor();
  2016    void SharedDtor();
  2017    void SetCachedSize(int size) const;
  2018    void InternalSwap(Tier* other);
  2019    private:
  2020    inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  2021      return NULL;
  2022    }
  2023    inline void* MaybeArenaPtr() const {
  2024      return NULL;
  2025    }
  2026    public:
  2027  
  2028    ::std::string GetTypeName() const final;
  2029  
  2030    // nested types ----------------------------------------------------
  2031  
  2032    // accessors -------------------------------------------------------
  2033  
  2034    bool has_key() const;
  2035    void clear_key();
  2036    static const int kKeyFieldNumber = 1;
  2037    const ::std::string& key() const;
  2038    void set_key(const ::std::string& value);
  2039    #if LANG_CXX11
  2040    void set_key(::std::string&& value);
  2041    #endif
  2042    void set_key(const char* value);
  2043    void set_key(const char* value, size_t size);
  2044    ::std::string* mutable_key();
  2045    ::std::string* release_key();
  2046    void set_allocated_key(::std::string* key);
  2047  
  2048    bool has_value() const;
  2049    void clear_value();
  2050    static const int kValueFieldNumber = 2;
  2051    const ::std::string& value() const;
  2052    void set_value(const ::std::string& value);
  2053    #if LANG_CXX11
  2054    void set_value(::std::string&& value);
  2055    #endif
  2056    void set_value(const char* value);
  2057    void set_value(const char* value, size_t size);
  2058    ::std::string* mutable_value();
  2059    ::std::string* release_value();
  2060    void set_allocated_value(::std::string* value);
  2061  
  2062    // @@protoc_insertion_point(class_scope:cockroach.roachpb.Tier)
  2063   private:
  2064    void set_has_key();
  2065    void clear_has_key();
  2066    void set_has_value();
  2067    void clear_has_value();
  2068  
  2069    ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_;
  2070    ::google::protobuf::internal::HasBits<1> _has_bits_;
  2071    mutable ::google::protobuf::internal::CachedSize _cached_size_;
  2072    ::google::protobuf::internal::ArenaStringPtr key_;
  2073    ::google::protobuf::internal::ArenaStringPtr value_;
  2074    friend struct ::protobuf_roachpb_2fmetadata_2eproto::TableStruct;
  2075  };
  2076  // -------------------------------------------------------------------
  2077  
  2078  class Version : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:cockroach.roachpb.Version) */ {
  2079   public:
  2080    Version();
  2081    virtual ~Version();
  2082  
  2083    Version(const Version& from);
  2084  
  2085    inline Version& operator=(const Version& from) {
  2086      CopyFrom(from);
  2087      return *this;
  2088    }
  2089    #if LANG_CXX11
  2090    Version(Version&& from) noexcept
  2091      : Version() {
  2092      *this = ::std::move(from);
  2093    }
  2094  
  2095    inline Version& operator=(Version&& from) noexcept {
  2096      if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  2097        if (this != &from) InternalSwap(&from);
  2098      } else {
  2099        CopyFrom(from);
  2100      }
  2101      return *this;
  2102    }
  2103    #endif
  2104    inline const ::std::string& unknown_fields() const {
  2105      return _internal_metadata_.unknown_fields();
  2106    }
  2107    inline ::std::string* mutable_unknown_fields() {
  2108      return _internal_metadata_.mutable_unknown_fields();
  2109    }
  2110  
  2111    static const Version& default_instance();
  2112  
  2113    static void InitAsDefaultInstance();  // FOR INTERNAL USE ONLY
  2114    static inline const Version* internal_default_instance() {
  2115      return reinterpret_cast<const Version*>(
  2116                 &_Version_default_instance_);
  2117    }
  2118    static constexpr int kIndexInFileMessages =
  2119      13;
  2120  
  2121    void Swap(Version* other);
  2122    friend void swap(Version& a, Version& b) {
  2123      a.Swap(&b);
  2124    }
  2125  
  2126    // implements Message ----------------------------------------------
  2127  
  2128    inline Version* New() const final {
  2129      return CreateMaybeMessage<Version>(NULL);
  2130    }
  2131  
  2132    Version* New(::google::protobuf::Arena* arena) const final {
  2133      return CreateMaybeMessage<Version>(arena);
  2134    }
  2135    void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from)
  2136      final;
  2137    void CopyFrom(const Version& from);
  2138    void MergeFrom(const Version& from);
  2139    void Clear() final;
  2140    bool IsInitialized() const final;
  2141  
  2142    size_t ByteSizeLong() const final;
  2143    bool MergePartialFromCodedStream(
  2144        ::google::protobuf::io::CodedInputStream* input) final;
  2145    void SerializeWithCachedSizes(
  2146        ::google::protobuf::io::CodedOutputStream* output) const final;
  2147    void DiscardUnknownFields();
  2148    int GetCachedSize() const final { return _cached_size_.Get(); }
  2149  
  2150    private:
  2151    void SharedCtor();
  2152    void SharedDtor();
  2153    void SetCachedSize(int size) const;
  2154    void InternalSwap(Version* other);
  2155    private:
  2156    inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  2157      return NULL;
  2158    }
  2159    inline void* MaybeArenaPtr() const {
  2160      return NULL;
  2161    }
  2162    public:
  2163  
  2164    ::std::string GetTypeName() const final;
  2165  
  2166    // nested types ----------------------------------------------------
  2167  
  2168    // accessors -------------------------------------------------------
  2169  
  2170    bool has_major_val() const;
  2171    void clear_major_val();
  2172    static const int kMajorValFieldNumber = 1;
  2173    ::google::protobuf::int32 major_val() const;
  2174    void set_major_val(::google::protobuf::int32 value);
  2175  
  2176    bool has_minor_val() const;
  2177    void clear_minor_val();
  2178    static const int kMinorValFieldNumber = 2;
  2179    ::google::protobuf::int32 minor_val() const;
  2180    void set_minor_val(::google::protobuf::int32 value);
  2181  
  2182    bool has_patch() const;
  2183    void clear_patch();
  2184    static const int kPatchFieldNumber = 3;
  2185    ::google::protobuf::int32 patch() const;
  2186    void set_patch(::google::protobuf::int32 value);
  2187  
  2188    bool has_unstable() const;
  2189    void clear_unstable();
  2190    static const int kUnstableFieldNumber = 4;
  2191    ::google::protobuf::int32 unstable() const;
  2192    void set_unstable(::google::protobuf::int32 value);
  2193  
  2194    // @@protoc_insertion_point(class_scope:cockroach.roachpb.Version)
  2195   private:
  2196    void set_has_major_val();
  2197    void clear_has_major_val();
  2198    void set_has_minor_val();
  2199    void clear_has_minor_val();
  2200    void set_has_patch();
  2201    void clear_has_patch();
  2202    void set_has_unstable();
  2203    void clear_has_unstable();
  2204  
  2205    ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_;
  2206    ::google::protobuf::internal::HasBits<1> _has_bits_;
  2207    mutable ::google::protobuf::internal::CachedSize _cached_size_;
  2208    ::google::protobuf::int32 major_val_;
  2209    ::google::protobuf::int32 minor_val_;
  2210    ::google::protobuf::int32 patch_;
  2211    ::google::protobuf::int32 unstable_;
  2212    friend struct ::protobuf_roachpb_2fmetadata_2eproto::TableStruct;
  2213  };
  2214  // ===================================================================
  2215  
  2216  
  2217  // ===================================================================
  2218  
  2219  #ifdef __GNUC__
  2220    #pragma GCC diagnostic push
  2221    #pragma GCC diagnostic ignored "-Wstrict-aliasing"
  2222  #endif  // __GNUC__
  2223  // Attributes
  2224  
  2225  inline int Attributes::attrs_size() const {
  2226    return attrs_.size();
  2227  }
  2228  inline void Attributes::clear_attrs() {
  2229    attrs_.Clear();
  2230  }
  2231  inline const ::std::string& Attributes::attrs(int index) const {
  2232    // @@protoc_insertion_point(field_get:cockroach.roachpb.Attributes.attrs)
  2233    return attrs_.Get(index);
  2234  }
  2235  inline ::std::string* Attributes::mutable_attrs(int index) {
  2236    // @@protoc_insertion_point(field_mutable:cockroach.roachpb.Attributes.attrs)
  2237    return attrs_.Mutable(index);
  2238  }
  2239  inline void Attributes::set_attrs(int index, const ::std::string& value) {
  2240    // @@protoc_insertion_point(field_set:cockroach.roachpb.Attributes.attrs)
  2241    attrs_.Mutable(index)->assign(value);
  2242  }
  2243  #if LANG_CXX11
  2244  inline void Attributes::set_attrs(int index, ::std::string&& value) {
  2245    // @@protoc_insertion_point(field_set:cockroach.roachpb.Attributes.attrs)
  2246    attrs_.Mutable(index)->assign(std::move(value));
  2247  }
  2248  #endif
  2249  inline void Attributes::set_attrs(int index, const char* value) {
  2250    GOOGLE_DCHECK(value != NULL);
  2251    attrs_.Mutable(index)->assign(value);
  2252    // @@protoc_insertion_point(field_set_char:cockroach.roachpb.Attributes.attrs)
  2253  }
  2254  inline void Attributes::set_attrs(int index, const char* value, size_t size) {
  2255    attrs_.Mutable(index)->assign(
  2256      reinterpret_cast<const char*>(value), size);
  2257    // @@protoc_insertion_point(field_set_pointer:cockroach.roachpb.Attributes.attrs)
  2258  }
  2259  inline ::std::string* Attributes::add_attrs() {
  2260    // @@protoc_insertion_point(field_add_mutable:cockroach.roachpb.Attributes.attrs)
  2261    return attrs_.Add();
  2262  }
  2263  inline void Attributes::add_attrs(const ::std::string& value) {
  2264    attrs_.Add()->assign(value);
  2265    // @@protoc_insertion_point(field_add:cockroach.roachpb.Attributes.attrs)
  2266  }
  2267  #if LANG_CXX11
  2268  inline void Attributes::add_attrs(::std::string&& value) {
  2269    attrs_.Add(std::move(value));
  2270    // @@protoc_insertion_point(field_add:cockroach.roachpb.Attributes.attrs)
  2271  }
  2272  #endif
  2273  inline void Attributes::add_attrs(const char* value) {
  2274    GOOGLE_DCHECK(value != NULL);
  2275    attrs_.Add()->assign(value);
  2276    // @@protoc_insertion_point(field_add_char:cockroach.roachpb.Attributes.attrs)
  2277  }
  2278  inline void Attributes::add_attrs(const char* value, size_t size) {
  2279    attrs_.Add()->assign(reinterpret_cast<const char*>(value), size);
  2280    // @@protoc_insertion_point(field_add_pointer:cockroach.roachpb.Attributes.attrs)
  2281  }
  2282  inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
  2283  Attributes::attrs() const {
  2284    // @@protoc_insertion_point(field_list:cockroach.roachpb.Attributes.attrs)
  2285    return attrs_;
  2286  }
  2287  inline ::google::protobuf::RepeatedPtrField< ::std::string>*
  2288  Attributes::mutable_attrs() {
  2289    // @@protoc_insertion_point(field_mutable_list:cockroach.roachpb.Attributes.attrs)
  2290    return &attrs_;
  2291  }
  2292  
  2293  // -------------------------------------------------------------------
  2294  
  2295  // ReplicationTarget
  2296  
  2297  inline bool ReplicationTarget::has_node_id() const {
  2298    return (_has_bits_[0] & 0x00000001u) != 0;
  2299  }
  2300  inline void ReplicationTarget::set_has_node_id() {
  2301    _has_bits_[0] |= 0x00000001u;
  2302  }
  2303  inline void ReplicationTarget::clear_has_node_id() {
  2304    _has_bits_[0] &= ~0x00000001u;
  2305  }
  2306  inline void ReplicationTarget::clear_node_id() {
  2307    node_id_ = 0;
  2308    clear_has_node_id();
  2309  }
  2310  inline ::google::protobuf::int32 ReplicationTarget::node_id() const {
  2311    // @@protoc_insertion_point(field_get:cockroach.roachpb.ReplicationTarget.node_id)
  2312    return node_id_;
  2313  }
  2314  inline void ReplicationTarget::set_node_id(::google::protobuf::int32 value) {
  2315    set_has_node_id();
  2316    node_id_ = value;
  2317    // @@protoc_insertion_point(field_set:cockroach.roachpb.ReplicationTarget.node_id)
  2318  }
  2319  
  2320  inline bool ReplicationTarget::has_store_id() const {
  2321    return (_has_bits_[0] & 0x00000002u) != 0;
  2322  }
  2323  inline void ReplicationTarget::set_has_store_id() {
  2324    _has_bits_[0] |= 0x00000002u;
  2325  }
  2326  inline void ReplicationTarget::clear_has_store_id() {
  2327    _has_bits_[0] &= ~0x00000002u;
  2328  }
  2329  inline void ReplicationTarget::clear_store_id() {
  2330    store_id_ = 0;
  2331    clear_has_store_id();
  2332  }
  2333  inline ::google::protobuf::int32 ReplicationTarget::store_id() const {
  2334    // @@protoc_insertion_point(field_get:cockroach.roachpb.ReplicationTarget.store_id)
  2335    return store_id_;
  2336  }
  2337  inline void ReplicationTarget::set_store_id(::google::protobuf::int32 value) {
  2338    set_has_store_id();
  2339    store_id_ = value;
  2340    // @@protoc_insertion_point(field_set:cockroach.roachpb.ReplicationTarget.store_id)
  2341  }
  2342  
  2343  // -------------------------------------------------------------------
  2344  
  2345  // ReplicaDescriptor
  2346  
  2347  inline bool ReplicaDescriptor::has_node_id() const {
  2348    return (_has_bits_[0] & 0x00000001u) != 0;
  2349  }
  2350  inline void ReplicaDescriptor::set_has_node_id() {
  2351    _has_bits_[0] |= 0x00000001u;
  2352  }
  2353  inline void ReplicaDescriptor::clear_has_node_id() {
  2354    _has_bits_[0] &= ~0x00000001u;
  2355  }
  2356  inline void ReplicaDescriptor::clear_node_id() {
  2357    node_id_ = 0;
  2358    clear_has_node_id();
  2359  }
  2360  inline ::google::protobuf::int32 ReplicaDescriptor::node_id() const {
  2361    // @@protoc_insertion_point(field_get:cockroach.roachpb.ReplicaDescriptor.node_id)
  2362    return node_id_;
  2363  }
  2364  inline void ReplicaDescriptor::set_node_id(::google::protobuf::int32 value) {
  2365    set_has_node_id();
  2366    node_id_ = value;
  2367    // @@protoc_insertion_point(field_set:cockroach.roachpb.ReplicaDescriptor.node_id)
  2368  }
  2369  
  2370  inline bool ReplicaDescriptor::has_store_id() const {
  2371    return (_has_bits_[0] & 0x00000002u) != 0;
  2372  }
  2373  inline void ReplicaDescriptor::set_has_store_id() {
  2374    _has_bits_[0] |= 0x00000002u;
  2375  }
  2376  inline void ReplicaDescriptor::clear_has_store_id() {
  2377    _has_bits_[0] &= ~0x00000002u;
  2378  }
  2379  inline void ReplicaDescriptor::clear_store_id() {
  2380    store_id_ = 0;
  2381    clear_has_store_id();
  2382  }
  2383  inline ::google::protobuf::int32 ReplicaDescriptor::store_id() const {
  2384    // @@protoc_insertion_point(field_get:cockroach.roachpb.ReplicaDescriptor.store_id)
  2385    return store_id_;
  2386  }
  2387  inline void ReplicaDescriptor::set_store_id(::google::protobuf::int32 value) {
  2388    set_has_store_id();
  2389    store_id_ = value;
  2390    // @@protoc_insertion_point(field_set:cockroach.roachpb.ReplicaDescriptor.store_id)
  2391  }
  2392  
  2393  inline bool ReplicaDescriptor::has_replica_id() const {
  2394    return (_has_bits_[0] & 0x00000004u) != 0;
  2395  }
  2396  inline void ReplicaDescriptor::set_has_replica_id() {
  2397    _has_bits_[0] |= 0x00000004u;
  2398  }
  2399  inline void ReplicaDescriptor::clear_has_replica_id() {
  2400    _has_bits_[0] &= ~0x00000004u;
  2401  }
  2402  inline void ReplicaDescriptor::clear_replica_id() {
  2403    replica_id_ = 0;
  2404    clear_has_replica_id();
  2405  }
  2406  inline ::google::protobuf::int32 ReplicaDescriptor::replica_id() const {
  2407    // @@protoc_insertion_point(field_get:cockroach.roachpb.ReplicaDescriptor.replica_id)
  2408    return replica_id_;
  2409  }
  2410  inline void ReplicaDescriptor::set_replica_id(::google::protobuf::int32 value) {
  2411    set_has_replica_id();
  2412    replica_id_ = value;
  2413    // @@protoc_insertion_point(field_set:cockroach.roachpb.ReplicaDescriptor.replica_id)
  2414  }
  2415  
  2416  // optional .cockroach.roachpb.ReplicaType type = 4;
  2417  inline bool ReplicaDescriptor::has_type() const {
  2418    return (_has_bits_[0] & 0x00000008u) != 0;
  2419  }
  2420  inline void ReplicaDescriptor::set_has_type() {
  2421    _has_bits_[0] |= 0x00000008u;
  2422  }
  2423  inline void ReplicaDescriptor::clear_has_type() {
  2424    _has_bits_[0] &= ~0x00000008u;
  2425  }
  2426  inline void ReplicaDescriptor::clear_type() {
  2427    type_ = 0;
  2428    clear_has_type();
  2429  }
  2430  inline ::cockroach::roachpb::ReplicaType ReplicaDescriptor::type() const {
  2431    // @@protoc_insertion_point(field_get:cockroach.roachpb.ReplicaDescriptor.type)
  2432    return static_cast< ::cockroach::roachpb::ReplicaType >(type_);
  2433  }
  2434  inline void ReplicaDescriptor::set_type(::cockroach::roachpb::ReplicaType value) {
  2435    assert(::cockroach::roachpb::ReplicaType_IsValid(value));
  2436    set_has_type();
  2437    type_ = value;
  2438    // @@protoc_insertion_point(field_set:cockroach.roachpb.ReplicaDescriptor.type)
  2439  }
  2440  
  2441  // -------------------------------------------------------------------
  2442  
  2443  // ReplicaIdent
  2444  
  2445  inline bool ReplicaIdent::has_range_id() const {
  2446    return (_has_bits_[0] & 0x00000002u) != 0;
  2447  }
  2448  inline void ReplicaIdent::set_has_range_id() {
  2449    _has_bits_[0] |= 0x00000002u;
  2450  }
  2451  inline void ReplicaIdent::clear_has_range_id() {
  2452    _has_bits_[0] &= ~0x00000002u;
  2453  }
  2454  inline void ReplicaIdent::clear_range_id() {
  2455    range_id_ = GOOGLE_LONGLONG(0);
  2456    clear_has_range_id();
  2457  }
  2458  inline ::google::protobuf::int64 ReplicaIdent::range_id() const {
  2459    // @@protoc_insertion_point(field_get:cockroach.roachpb.ReplicaIdent.range_id)
  2460    return range_id_;
  2461  }
  2462  inline void ReplicaIdent::set_range_id(::google::protobuf::int64 value) {
  2463    set_has_range_id();
  2464    range_id_ = value;
  2465    // @@protoc_insertion_point(field_set:cockroach.roachpb.ReplicaIdent.range_id)
  2466  }
  2467  
  2468  inline bool ReplicaIdent::has_replica() const {
  2469    return (_has_bits_[0] & 0x00000001u) != 0;
  2470  }
  2471  inline void ReplicaIdent::set_has_replica() {
  2472    _has_bits_[0] |= 0x00000001u;
  2473  }
  2474  inline void ReplicaIdent::clear_has_replica() {
  2475    _has_bits_[0] &= ~0x00000001u;
  2476  }
  2477  inline void ReplicaIdent::clear_replica() {
  2478    if (replica_ != NULL) replica_->Clear();
  2479    clear_has_replica();
  2480  }
  2481  inline const ::cockroach::roachpb::ReplicaDescriptor& ReplicaIdent::_internal_replica() const {
  2482    return *replica_;
  2483  }
  2484  inline const ::cockroach::roachpb::ReplicaDescriptor& ReplicaIdent::replica() const {
  2485    const ::cockroach::roachpb::ReplicaDescriptor* p = replica_;
  2486    // @@protoc_insertion_point(field_get:cockroach.roachpb.ReplicaIdent.replica)
  2487    return p != NULL ? *p : *reinterpret_cast<const ::cockroach::roachpb::ReplicaDescriptor*>(
  2488        &::cockroach::roachpb::_ReplicaDescriptor_default_instance_);
  2489  }
  2490  inline ::cockroach::roachpb::ReplicaDescriptor* ReplicaIdent::release_replica() {
  2491    // @@protoc_insertion_point(field_release:cockroach.roachpb.ReplicaIdent.replica)
  2492    clear_has_replica();
  2493    ::cockroach::roachpb::ReplicaDescriptor* temp = replica_;
  2494    replica_ = NULL;
  2495    return temp;
  2496  }
  2497  inline ::cockroach::roachpb::ReplicaDescriptor* ReplicaIdent::mutable_replica() {
  2498    set_has_replica();
  2499    if (replica_ == NULL) {
  2500      auto* p = CreateMaybeMessage<::cockroach::roachpb::ReplicaDescriptor>(GetArenaNoVirtual());
  2501      replica_ = p;
  2502    }
  2503    // @@protoc_insertion_point(field_mutable:cockroach.roachpb.ReplicaIdent.replica)
  2504    return replica_;
  2505  }
  2506  inline void ReplicaIdent::set_allocated_replica(::cockroach::roachpb::ReplicaDescriptor* replica) {
  2507    ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  2508    if (message_arena == NULL) {
  2509      delete replica_;
  2510    }
  2511    if (replica) {
  2512      ::google::protobuf::Arena* submessage_arena = NULL;
  2513      if (message_arena != submessage_arena) {
  2514        replica = ::google::protobuf::internal::GetOwnedMessage(
  2515            message_arena, replica, submessage_arena);
  2516      }
  2517      set_has_replica();
  2518    } else {
  2519      clear_has_replica();
  2520    }
  2521    replica_ = replica;
  2522    // @@protoc_insertion_point(field_set_allocated:cockroach.roachpb.ReplicaIdent.replica)
  2523  }
  2524  
  2525  // -------------------------------------------------------------------
  2526  
  2527  // RangeDescriptor
  2528  
  2529  inline bool RangeDescriptor::has_range_id() const {
  2530    return (_has_bits_[0] & 0x00000008u) != 0;
  2531  }
  2532  inline void RangeDescriptor::set_has_range_id() {
  2533    _has_bits_[0] |= 0x00000008u;
  2534  }
  2535  inline void RangeDescriptor::clear_has_range_id() {
  2536    _has_bits_[0] &= ~0x00000008u;
  2537  }
  2538  inline void RangeDescriptor::clear_range_id() {
  2539    range_id_ = GOOGLE_LONGLONG(0);
  2540    clear_has_range_id();
  2541  }
  2542  inline ::google::protobuf::int64 RangeDescriptor::range_id() const {
  2543    // @@protoc_insertion_point(field_get:cockroach.roachpb.RangeDescriptor.range_id)
  2544    return range_id_;
  2545  }
  2546  inline void RangeDescriptor::set_range_id(::google::protobuf::int64 value) {
  2547    set_has_range_id();
  2548    range_id_ = value;
  2549    // @@protoc_insertion_point(field_set:cockroach.roachpb.RangeDescriptor.range_id)
  2550  }
  2551  
  2552  inline bool RangeDescriptor::has_start_key() const {
  2553    return (_has_bits_[0] & 0x00000001u) != 0;
  2554  }
  2555  inline void RangeDescriptor::set_has_start_key() {
  2556    _has_bits_[0] |= 0x00000001u;
  2557  }
  2558  inline void RangeDescriptor::clear_has_start_key() {
  2559    _has_bits_[0] &= ~0x00000001u;
  2560  }
  2561  inline void RangeDescriptor::clear_start_key() {
  2562    start_key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  2563    clear_has_start_key();
  2564  }
  2565  inline const ::std::string& RangeDescriptor::start_key() const {
  2566    // @@protoc_insertion_point(field_get:cockroach.roachpb.RangeDescriptor.start_key)
  2567    return start_key_.GetNoArena();
  2568  }
  2569  inline void RangeDescriptor::set_start_key(const ::std::string& value) {
  2570    set_has_start_key();
  2571    start_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  2572    // @@protoc_insertion_point(field_set:cockroach.roachpb.RangeDescriptor.start_key)
  2573  }
  2574  #if LANG_CXX11
  2575  inline void RangeDescriptor::set_start_key(::std::string&& value) {
  2576    set_has_start_key();
  2577    start_key_.SetNoArena(
  2578      &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  2579    // @@protoc_insertion_point(field_set_rvalue:cockroach.roachpb.RangeDescriptor.start_key)
  2580  }
  2581  #endif
  2582  inline void RangeDescriptor::set_start_key(const char* value) {
  2583    GOOGLE_DCHECK(value != NULL);
  2584    set_has_start_key();
  2585    start_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  2586    // @@protoc_insertion_point(field_set_char:cockroach.roachpb.RangeDescriptor.start_key)
  2587  }
  2588  inline void RangeDescriptor::set_start_key(const void* value, size_t size) {
  2589    set_has_start_key();
  2590    start_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  2591        ::std::string(reinterpret_cast<const char*>(value), size));
  2592    // @@protoc_insertion_point(field_set_pointer:cockroach.roachpb.RangeDescriptor.start_key)
  2593  }
  2594  inline ::std::string* RangeDescriptor::mutable_start_key() {
  2595    set_has_start_key();
  2596    // @@protoc_insertion_point(field_mutable:cockroach.roachpb.RangeDescriptor.start_key)
  2597    return start_key_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  2598  }
  2599  inline ::std::string* RangeDescriptor::release_start_key() {
  2600    // @@protoc_insertion_point(field_release:cockroach.roachpb.RangeDescriptor.start_key)
  2601    if (!has_start_key()) {
  2602      return NULL;
  2603    }
  2604    clear_has_start_key();
  2605    return start_key_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  2606  }
  2607  inline void RangeDescriptor::set_allocated_start_key(::std::string* start_key) {
  2608    if (start_key != NULL) {
  2609      set_has_start_key();
  2610    } else {
  2611      clear_has_start_key();
  2612    }
  2613    start_key_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), start_key);
  2614    // @@protoc_insertion_point(field_set_allocated:cockroach.roachpb.RangeDescriptor.start_key)
  2615  }
  2616  
  2617  inline bool RangeDescriptor::has_end_key() const {
  2618    return (_has_bits_[0] & 0x00000002u) != 0;
  2619  }
  2620  inline void RangeDescriptor::set_has_end_key() {
  2621    _has_bits_[0] |= 0x00000002u;
  2622  }
  2623  inline void RangeDescriptor::clear_has_end_key() {
  2624    _has_bits_[0] &= ~0x00000002u;
  2625  }
  2626  inline void RangeDescriptor::clear_end_key() {
  2627    end_key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  2628    clear_has_end_key();
  2629  }
  2630  inline const ::std::string& RangeDescriptor::end_key() const {
  2631    // @@protoc_insertion_point(field_get:cockroach.roachpb.RangeDescriptor.end_key)
  2632    return end_key_.GetNoArena();
  2633  }
  2634  inline void RangeDescriptor::set_end_key(const ::std::string& value) {
  2635    set_has_end_key();
  2636    end_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  2637    // @@protoc_insertion_point(field_set:cockroach.roachpb.RangeDescriptor.end_key)
  2638  }
  2639  #if LANG_CXX11
  2640  inline void RangeDescriptor::set_end_key(::std::string&& value) {
  2641    set_has_end_key();
  2642    end_key_.SetNoArena(
  2643      &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  2644    // @@protoc_insertion_point(field_set_rvalue:cockroach.roachpb.RangeDescriptor.end_key)
  2645  }
  2646  #endif
  2647  inline void RangeDescriptor::set_end_key(const char* value) {
  2648    GOOGLE_DCHECK(value != NULL);
  2649    set_has_end_key();
  2650    end_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  2651    // @@protoc_insertion_point(field_set_char:cockroach.roachpb.RangeDescriptor.end_key)
  2652  }
  2653  inline void RangeDescriptor::set_end_key(const void* value, size_t size) {
  2654    set_has_end_key();
  2655    end_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  2656        ::std::string(reinterpret_cast<const char*>(value), size));
  2657    // @@protoc_insertion_point(field_set_pointer:cockroach.roachpb.RangeDescriptor.end_key)
  2658  }
  2659  inline ::std::string* RangeDescriptor::mutable_end_key() {
  2660    set_has_end_key();
  2661    // @@protoc_insertion_point(field_mutable:cockroach.roachpb.RangeDescriptor.end_key)
  2662    return end_key_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  2663  }
  2664  inline ::std::string* RangeDescriptor::release_end_key() {
  2665    // @@protoc_insertion_point(field_release:cockroach.roachpb.RangeDescriptor.end_key)
  2666    if (!has_end_key()) {
  2667      return NULL;
  2668    }
  2669    clear_has_end_key();
  2670    return end_key_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  2671  }
  2672  inline void RangeDescriptor::set_allocated_end_key(::std::string* end_key) {
  2673    if (end_key != NULL) {
  2674      set_has_end_key();
  2675    } else {
  2676      clear_has_end_key();
  2677    }
  2678    end_key_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), end_key);
  2679    // @@protoc_insertion_point(field_set_allocated:cockroach.roachpb.RangeDescriptor.end_key)
  2680  }
  2681  
  2682  inline int RangeDescriptor::internal_replicas_size() const {
  2683    return internal_replicas_.size();
  2684  }
  2685  inline void RangeDescriptor::clear_internal_replicas() {
  2686    internal_replicas_.Clear();
  2687  }
  2688  inline ::cockroach::roachpb::ReplicaDescriptor* RangeDescriptor::mutable_internal_replicas(int index) {
  2689    // @@protoc_insertion_point(field_mutable:cockroach.roachpb.RangeDescriptor.internal_replicas)
  2690    return internal_replicas_.Mutable(index);
  2691  }
  2692  inline ::google::protobuf::RepeatedPtrField< ::cockroach::roachpb::ReplicaDescriptor >*
  2693  RangeDescriptor::mutable_internal_replicas() {
  2694    // @@protoc_insertion_point(field_mutable_list:cockroach.roachpb.RangeDescriptor.internal_replicas)
  2695    return &internal_replicas_;
  2696  }
  2697  inline const ::cockroach::roachpb::ReplicaDescriptor& RangeDescriptor::internal_replicas(int index) const {
  2698    // @@protoc_insertion_point(field_get:cockroach.roachpb.RangeDescriptor.internal_replicas)
  2699    return internal_replicas_.Get(index);
  2700  }
  2701  inline ::cockroach::roachpb::ReplicaDescriptor* RangeDescriptor::add_internal_replicas() {
  2702    // @@protoc_insertion_point(field_add:cockroach.roachpb.RangeDescriptor.internal_replicas)
  2703    return internal_replicas_.Add();
  2704  }
  2705  inline const ::google::protobuf::RepeatedPtrField< ::cockroach::roachpb::ReplicaDescriptor >&
  2706  RangeDescriptor::internal_replicas() const {
  2707    // @@protoc_insertion_point(field_list:cockroach.roachpb.RangeDescriptor.internal_replicas)
  2708    return internal_replicas_;
  2709  }
  2710  
  2711  inline bool RangeDescriptor::has_next_replica_id() const {
  2712    return (_has_bits_[0] & 0x00000020u) != 0;
  2713  }
  2714  inline void RangeDescriptor::set_has_next_replica_id() {
  2715    _has_bits_[0] |= 0x00000020u;
  2716  }
  2717  inline void RangeDescriptor::clear_has_next_replica_id() {
  2718    _has_bits_[0] &= ~0x00000020u;
  2719  }
  2720  inline void RangeDescriptor::clear_next_replica_id() {
  2721    next_replica_id_ = 0;
  2722    clear_has_next_replica_id();
  2723  }
  2724  inline ::google::protobuf::int32 RangeDescriptor::next_replica_id() const {
  2725    // @@protoc_insertion_point(field_get:cockroach.roachpb.RangeDescriptor.next_replica_id)
  2726    return next_replica_id_;
  2727  }
  2728  inline void RangeDescriptor::set_next_replica_id(::google::protobuf::int32 value) {
  2729    set_has_next_replica_id();
  2730    next_replica_id_ = value;
  2731    // @@protoc_insertion_point(field_set:cockroach.roachpb.RangeDescriptor.next_replica_id)
  2732  }
  2733  
  2734  inline bool RangeDescriptor::has_generation() const {
  2735    return (_has_bits_[0] & 0x00000010u) != 0;
  2736  }
  2737  inline void RangeDescriptor::set_has_generation() {
  2738    _has_bits_[0] |= 0x00000010u;
  2739  }
  2740  inline void RangeDescriptor::clear_has_generation() {
  2741    _has_bits_[0] &= ~0x00000010u;
  2742  }
  2743  inline void RangeDescriptor::clear_generation() {
  2744    generation_ = GOOGLE_LONGLONG(0);
  2745    clear_has_generation();
  2746  }
  2747  inline ::google::protobuf::int64 RangeDescriptor::generation() const {
  2748    // @@protoc_insertion_point(field_get:cockroach.roachpb.RangeDescriptor.generation)
  2749    return generation_;
  2750  }
  2751  inline void RangeDescriptor::set_generation(::google::protobuf::int64 value) {
  2752    set_has_generation();
  2753    generation_ = value;
  2754    // @@protoc_insertion_point(field_set:cockroach.roachpb.RangeDescriptor.generation)
  2755  }
  2756  
  2757  // optional .cockroach.util.hlc.Timestamp sticky_bit = 7;
  2758  inline bool RangeDescriptor::has_sticky_bit() const {
  2759    return (_has_bits_[0] & 0x00000004u) != 0;
  2760  }
  2761  inline void RangeDescriptor::set_has_sticky_bit() {
  2762    _has_bits_[0] |= 0x00000004u;
  2763  }
  2764  inline void RangeDescriptor::clear_has_sticky_bit() {
  2765    _has_bits_[0] &= ~0x00000004u;
  2766  }
  2767  inline const ::cockroach::util::hlc::Timestamp& RangeDescriptor::_internal_sticky_bit() const {
  2768    return *sticky_bit_;
  2769  }
  2770  inline const ::cockroach::util::hlc::Timestamp& RangeDescriptor::sticky_bit() const {
  2771    const ::cockroach::util::hlc::Timestamp* p = sticky_bit_;
  2772    // @@protoc_insertion_point(field_get:cockroach.roachpb.RangeDescriptor.sticky_bit)
  2773    return p != NULL ? *p : *reinterpret_cast<const ::cockroach::util::hlc::Timestamp*>(
  2774        &::cockroach::util::hlc::_Timestamp_default_instance_);
  2775  }
  2776  inline ::cockroach::util::hlc::Timestamp* RangeDescriptor::release_sticky_bit() {
  2777    // @@protoc_insertion_point(field_release:cockroach.roachpb.RangeDescriptor.sticky_bit)
  2778    clear_has_sticky_bit();
  2779    ::cockroach::util::hlc::Timestamp* temp = sticky_bit_;
  2780    sticky_bit_ = NULL;
  2781    return temp;
  2782  }
  2783  inline ::cockroach::util::hlc::Timestamp* RangeDescriptor::mutable_sticky_bit() {
  2784    set_has_sticky_bit();
  2785    if (sticky_bit_ == NULL) {
  2786      auto* p = CreateMaybeMessage<::cockroach::util::hlc::Timestamp>(GetArenaNoVirtual());
  2787      sticky_bit_ = p;
  2788    }
  2789    // @@protoc_insertion_point(field_mutable:cockroach.roachpb.RangeDescriptor.sticky_bit)
  2790    return sticky_bit_;
  2791  }
  2792  inline void RangeDescriptor::set_allocated_sticky_bit(::cockroach::util::hlc::Timestamp* sticky_bit) {
  2793    ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  2794    if (message_arena == NULL) {
  2795      delete reinterpret_cast< ::google::protobuf::MessageLite*>(sticky_bit_);
  2796    }
  2797    if (sticky_bit) {
  2798      ::google::protobuf::Arena* submessage_arena = NULL;
  2799      if (message_arena != submessage_arena) {
  2800        sticky_bit = ::google::protobuf::internal::GetOwnedMessage(
  2801            message_arena, sticky_bit, submessage_arena);
  2802      }
  2803      set_has_sticky_bit();
  2804    } else {
  2805      clear_has_sticky_bit();
  2806    }
  2807    sticky_bit_ = sticky_bit;
  2808    // @@protoc_insertion_point(field_set_allocated:cockroach.roachpb.RangeDescriptor.sticky_bit)
  2809  }
  2810  
  2811  // -------------------------------------------------------------------
  2812  
  2813  // Percentiles
  2814  
  2815  inline bool Percentiles::has_p10() const {
  2816    return (_has_bits_[0] & 0x00000001u) != 0;
  2817  }
  2818  inline void Percentiles::set_has_p10() {
  2819    _has_bits_[0] |= 0x00000001u;
  2820  }
  2821  inline void Percentiles::clear_has_p10() {
  2822    _has_bits_[0] &= ~0x00000001u;
  2823  }
  2824  inline void Percentiles::clear_p10() {
  2825    p10_ = 0;
  2826    clear_has_p10();
  2827  }
  2828  inline double Percentiles::p10() const {
  2829    // @@protoc_insertion_point(field_get:cockroach.roachpb.Percentiles.p10)
  2830    return p10_;
  2831  }
  2832  inline void Percentiles::set_p10(double value) {
  2833    set_has_p10();
  2834    p10_ = value;
  2835    // @@protoc_insertion_point(field_set:cockroach.roachpb.Percentiles.p10)
  2836  }
  2837  
  2838  inline bool Percentiles::has_p25() const {
  2839    return (_has_bits_[0] & 0x00000002u) != 0;
  2840  }
  2841  inline void Percentiles::set_has_p25() {
  2842    _has_bits_[0] |= 0x00000002u;
  2843  }
  2844  inline void Percentiles::clear_has_p25() {
  2845    _has_bits_[0] &= ~0x00000002u;
  2846  }
  2847  inline void Percentiles::clear_p25() {
  2848    p25_ = 0;
  2849    clear_has_p25();
  2850  }
  2851  inline double Percentiles::p25() const {
  2852    // @@protoc_insertion_point(field_get:cockroach.roachpb.Percentiles.p25)
  2853    return p25_;
  2854  }
  2855  inline void Percentiles::set_p25(double value) {
  2856    set_has_p25();
  2857    p25_ = value;
  2858    // @@protoc_insertion_point(field_set:cockroach.roachpb.Percentiles.p25)
  2859  }
  2860  
  2861  inline bool Percentiles::has_p50() const {
  2862    return (_has_bits_[0] & 0x00000004u) != 0;
  2863  }
  2864  inline void Percentiles::set_has_p50() {
  2865    _has_bits_[0] |= 0x00000004u;
  2866  }
  2867  inline void Percentiles::clear_has_p50() {
  2868    _has_bits_[0] &= ~0x00000004u;
  2869  }
  2870  inline void Percentiles::clear_p50() {
  2871    p50_ = 0;
  2872    clear_has_p50();
  2873  }
  2874  inline double Percentiles::p50() const {
  2875    // @@protoc_insertion_point(field_get:cockroach.roachpb.Percentiles.p50)
  2876    return p50_;
  2877  }
  2878  inline void Percentiles::set_p50(double value) {
  2879    set_has_p50();
  2880    p50_ = value;
  2881    // @@protoc_insertion_point(field_set:cockroach.roachpb.Percentiles.p50)
  2882  }
  2883  
  2884  inline bool Percentiles::has_p75() const {
  2885    return (_has_bits_[0] & 0x00000008u) != 0;
  2886  }
  2887  inline void Percentiles::set_has_p75() {
  2888    _has_bits_[0] |= 0x00000008u;
  2889  }
  2890  inline void Percentiles::clear_has_p75() {
  2891    _has_bits_[0] &= ~0x00000008u;
  2892  }
  2893  inline void Percentiles::clear_p75() {
  2894    p75_ = 0;
  2895    clear_has_p75();
  2896  }
  2897  inline double Percentiles::p75() const {
  2898    // @@protoc_insertion_point(field_get:cockroach.roachpb.Percentiles.p75)
  2899    return p75_;
  2900  }
  2901  inline void Percentiles::set_p75(double value) {
  2902    set_has_p75();
  2903    p75_ = value;
  2904    // @@protoc_insertion_point(field_set:cockroach.roachpb.Percentiles.p75)
  2905  }
  2906  
  2907  inline bool Percentiles::has_p90() const {
  2908    return (_has_bits_[0] & 0x00000010u) != 0;
  2909  }
  2910  inline void Percentiles::set_has_p90() {
  2911    _has_bits_[0] |= 0x00000010u;
  2912  }
  2913  inline void Percentiles::clear_has_p90() {
  2914    _has_bits_[0] &= ~0x00000010u;
  2915  }
  2916  inline void Percentiles::clear_p90() {
  2917    p90_ = 0;
  2918    clear_has_p90();
  2919  }
  2920  inline double Percentiles::p90() const {
  2921    // @@protoc_insertion_point(field_get:cockroach.roachpb.Percentiles.p90)
  2922    return p90_;
  2923  }
  2924  inline void Percentiles::set_p90(double value) {
  2925    set_has_p90();
  2926    p90_ = value;
  2927    // @@protoc_insertion_point(field_set:cockroach.roachpb.Percentiles.p90)
  2928  }
  2929  
  2930  inline bool Percentiles::has_pmax() const {
  2931    return (_has_bits_[0] & 0x00000020u) != 0;
  2932  }
  2933  inline void Percentiles::set_has_pmax() {
  2934    _has_bits_[0] |= 0x00000020u;
  2935  }
  2936  inline void Percentiles::clear_has_pmax() {
  2937    _has_bits_[0] &= ~0x00000020u;
  2938  }
  2939  inline void Percentiles::clear_pmax() {
  2940    pmax_ = 0;
  2941    clear_has_pmax();
  2942  }
  2943  inline double Percentiles::pmax() const {
  2944    // @@protoc_insertion_point(field_get:cockroach.roachpb.Percentiles.pMax)
  2945    return pmax_;
  2946  }
  2947  inline void Percentiles::set_pmax(double value) {
  2948    set_has_pmax();
  2949    pmax_ = value;
  2950    // @@protoc_insertion_point(field_set:cockroach.roachpb.Percentiles.pMax)
  2951  }
  2952  
  2953  // -------------------------------------------------------------------
  2954  
  2955  // StoreCapacity
  2956  
  2957  inline bool StoreCapacity::has_capacity() const {
  2958    return (_has_bits_[0] & 0x00000004u) != 0;
  2959  }
  2960  inline void StoreCapacity::set_has_capacity() {
  2961    _has_bits_[0] |= 0x00000004u;
  2962  }
  2963  inline void StoreCapacity::clear_has_capacity() {
  2964    _has_bits_[0] &= ~0x00000004u;
  2965  }
  2966  inline void StoreCapacity::clear_capacity() {
  2967    capacity_ = GOOGLE_LONGLONG(0);
  2968    clear_has_capacity();
  2969  }
  2970  inline ::google::protobuf::int64 StoreCapacity::capacity() const {
  2971    // @@protoc_insertion_point(field_get:cockroach.roachpb.StoreCapacity.capacity)
  2972    return capacity_;
  2973  }
  2974  inline void StoreCapacity::set_capacity(::google::protobuf::int64 value) {
  2975    set_has_capacity();
  2976    capacity_ = value;
  2977    // @@protoc_insertion_point(field_set:cockroach.roachpb.StoreCapacity.capacity)
  2978  }
  2979  
  2980  inline bool StoreCapacity::has_available() const {
  2981    return (_has_bits_[0] & 0x00000008u) != 0;
  2982  }
  2983  inline void StoreCapacity::set_has_available() {
  2984    _has_bits_[0] |= 0x00000008u;
  2985  }
  2986  inline void StoreCapacity::clear_has_available() {
  2987    _has_bits_[0] &= ~0x00000008u;
  2988  }
  2989  inline void StoreCapacity::clear_available() {
  2990    available_ = GOOGLE_LONGLONG(0);
  2991    clear_has_available();
  2992  }
  2993  inline ::google::protobuf::int64 StoreCapacity::available() const {
  2994    // @@protoc_insertion_point(field_get:cockroach.roachpb.StoreCapacity.available)
  2995    return available_;
  2996  }
  2997  inline void StoreCapacity::set_available(::google::protobuf::int64 value) {
  2998    set_has_available();
  2999    available_ = value;
  3000    // @@protoc_insertion_point(field_set:cockroach.roachpb.StoreCapacity.available)
  3001  }
  3002  
  3003  inline bool StoreCapacity::has_used() const {
  3004    return (_has_bits_[0] & 0x00000080u) != 0;
  3005  }
  3006  inline void StoreCapacity::set_has_used() {
  3007    _has_bits_[0] |= 0x00000080u;
  3008  }
  3009  inline void StoreCapacity::clear_has_used() {
  3010    _has_bits_[0] &= ~0x00000080u;
  3011  }
  3012  inline void StoreCapacity::clear_used() {
  3013    used_ = GOOGLE_LONGLONG(0);
  3014    clear_has_used();
  3015  }
  3016  inline ::google::protobuf::int64 StoreCapacity::used() const {
  3017    // @@protoc_insertion_point(field_get:cockroach.roachpb.StoreCapacity.used)
  3018    return used_;
  3019  }
  3020  inline void StoreCapacity::set_used(::google::protobuf::int64 value) {
  3021    set_has_used();
  3022    used_ = value;
  3023    // @@protoc_insertion_point(field_set:cockroach.roachpb.StoreCapacity.used)
  3024  }
  3025  
  3026  inline bool StoreCapacity::has_logical_bytes() const {
  3027    return (_has_bits_[0] & 0x00000100u) != 0;
  3028  }
  3029  inline void StoreCapacity::set_has_logical_bytes() {
  3030    _has_bits_[0] |= 0x00000100u;
  3031  }
  3032  inline void StoreCapacity::clear_has_logical_bytes() {
  3033    _has_bits_[0] &= ~0x00000100u;
  3034  }
  3035  inline void StoreCapacity::clear_logical_bytes() {
  3036    logical_bytes_ = GOOGLE_LONGLONG(0);
  3037    clear_has_logical_bytes();
  3038  }
  3039  inline ::google::protobuf::int64 StoreCapacity::logical_bytes() const {
  3040    // @@protoc_insertion_point(field_get:cockroach.roachpb.StoreCapacity.logical_bytes)
  3041    return logical_bytes_;
  3042  }
  3043  inline void StoreCapacity::set_logical_bytes(::google::protobuf::int64 value) {
  3044    set_has_logical_bytes();
  3045    logical_bytes_ = value;
  3046    // @@protoc_insertion_point(field_set:cockroach.roachpb.StoreCapacity.logical_bytes)
  3047  }
  3048  
  3049  inline bool StoreCapacity::has_range_count() const {
  3050    return (_has_bits_[0] & 0x00000010u) != 0;
  3051  }
  3052  inline void StoreCapacity::set_has_range_count() {
  3053    _has_bits_[0] |= 0x00000010u;
  3054  }
  3055  inline void StoreCapacity::clear_has_range_count() {
  3056    _has_bits_[0] &= ~0x00000010u;
  3057  }
  3058  inline void StoreCapacity::clear_range_count() {
  3059    range_count_ = 0;
  3060    clear_has_range_count();
  3061  }
  3062  inline ::google::protobuf::int32 StoreCapacity::range_count() const {
  3063    // @@protoc_insertion_point(field_get:cockroach.roachpb.StoreCapacity.range_count)
  3064    return range_count_;
  3065  }
  3066  inline void StoreCapacity::set_range_count(::google::protobuf::int32 value) {
  3067    set_has_range_count();
  3068    range_count_ = value;
  3069    // @@protoc_insertion_point(field_set:cockroach.roachpb.StoreCapacity.range_count)
  3070  }
  3071  
  3072  inline bool StoreCapacity::has_lease_count() const {
  3073    return (_has_bits_[0] & 0x00000020u) != 0;
  3074  }
  3075  inline void StoreCapacity::set_has_lease_count() {
  3076    _has_bits_[0] |= 0x00000020u;
  3077  }
  3078  inline void StoreCapacity::clear_has_lease_count() {
  3079    _has_bits_[0] &= ~0x00000020u;
  3080  }
  3081  inline void StoreCapacity::clear_lease_count() {
  3082    lease_count_ = 0;
  3083    clear_has_lease_count();
  3084  }
  3085  inline ::google::protobuf::int32 StoreCapacity::lease_count() const {
  3086    // @@protoc_insertion_point(field_get:cockroach.roachpb.StoreCapacity.lease_count)
  3087    return lease_count_;
  3088  }
  3089  inline void StoreCapacity::set_lease_count(::google::protobuf::int32 value) {
  3090    set_has_lease_count();
  3091    lease_count_ = value;
  3092    // @@protoc_insertion_point(field_set:cockroach.roachpb.StoreCapacity.lease_count)
  3093  }
  3094  
  3095  inline bool StoreCapacity::has_queries_per_second() const {
  3096    return (_has_bits_[0] & 0x00000200u) != 0;
  3097  }
  3098  inline void StoreCapacity::set_has_queries_per_second() {
  3099    _has_bits_[0] |= 0x00000200u;
  3100  }
  3101  inline void StoreCapacity::clear_has_queries_per_second() {
  3102    _has_bits_[0] &= ~0x00000200u;
  3103  }
  3104  inline void StoreCapacity::clear_queries_per_second() {
  3105    queries_per_second_ = 0;
  3106    clear_has_queries_per_second();
  3107  }
  3108  inline double StoreCapacity::queries_per_second() const {
  3109    // @@protoc_insertion_point(field_get:cockroach.roachpb.StoreCapacity.queries_per_second)
  3110    return queries_per_second_;
  3111  }
  3112  inline void StoreCapacity::set_queries_per_second(double value) {
  3113    set_has_queries_per_second();
  3114    queries_per_second_ = value;
  3115    // @@protoc_insertion_point(field_set:cockroach.roachpb.StoreCapacity.queries_per_second)
  3116  }
  3117  
  3118  inline bool StoreCapacity::has_writes_per_second() const {
  3119    return (_has_bits_[0] & 0x00000040u) != 0;
  3120  }
  3121  inline void StoreCapacity::set_has_writes_per_second() {
  3122    _has_bits_[0] |= 0x00000040u;
  3123  }
  3124  inline void StoreCapacity::clear_has_writes_per_second() {
  3125    _has_bits_[0] &= ~0x00000040u;
  3126  }
  3127  inline void StoreCapacity::clear_writes_per_second() {
  3128    writes_per_second_ = 0;
  3129    clear_has_writes_per_second();
  3130  }
  3131  inline double StoreCapacity::writes_per_second() const {
  3132    // @@protoc_insertion_point(field_get:cockroach.roachpb.StoreCapacity.writes_per_second)
  3133    return writes_per_second_;
  3134  }
  3135  inline void StoreCapacity::set_writes_per_second(double value) {
  3136    set_has_writes_per_second();
  3137    writes_per_second_ = value;
  3138    // @@protoc_insertion_point(field_set:cockroach.roachpb.StoreCapacity.writes_per_second)
  3139  }
  3140  
  3141  inline bool StoreCapacity::has_bytes_per_replica() const {
  3142    return (_has_bits_[0] & 0x00000001u) != 0;
  3143  }
  3144  inline void StoreCapacity::set_has_bytes_per_replica() {
  3145    _has_bits_[0] |= 0x00000001u;
  3146  }
  3147  inline void StoreCapacity::clear_has_bytes_per_replica() {
  3148    _has_bits_[0] &= ~0x00000001u;
  3149  }
  3150  inline void StoreCapacity::clear_bytes_per_replica() {
  3151    if (bytes_per_replica_ != NULL) bytes_per_replica_->Clear();
  3152    clear_has_bytes_per_replica();
  3153  }
  3154  inline const ::cockroach::roachpb::Percentiles& StoreCapacity::_internal_bytes_per_replica() const {
  3155    return *bytes_per_replica_;
  3156  }
  3157  inline const ::cockroach::roachpb::Percentiles& StoreCapacity::bytes_per_replica() const {
  3158    const ::cockroach::roachpb::Percentiles* p = bytes_per_replica_;
  3159    // @@protoc_insertion_point(field_get:cockroach.roachpb.StoreCapacity.bytes_per_replica)
  3160    return p != NULL ? *p : *reinterpret_cast<const ::cockroach::roachpb::Percentiles*>(
  3161        &::cockroach::roachpb::_Percentiles_default_instance_);
  3162  }
  3163  inline ::cockroach::roachpb::Percentiles* StoreCapacity::release_bytes_per_replica() {
  3164    // @@protoc_insertion_point(field_release:cockroach.roachpb.StoreCapacity.bytes_per_replica)
  3165    clear_has_bytes_per_replica();
  3166    ::cockroach::roachpb::Percentiles* temp = bytes_per_replica_;
  3167    bytes_per_replica_ = NULL;
  3168    return temp;
  3169  }
  3170  inline ::cockroach::roachpb::Percentiles* StoreCapacity::mutable_bytes_per_replica() {
  3171    set_has_bytes_per_replica();
  3172    if (bytes_per_replica_ == NULL) {
  3173      auto* p = CreateMaybeMessage<::cockroach::roachpb::Percentiles>(GetArenaNoVirtual());
  3174      bytes_per_replica_ = p;
  3175    }
  3176    // @@protoc_insertion_point(field_mutable:cockroach.roachpb.StoreCapacity.bytes_per_replica)
  3177    return bytes_per_replica_;
  3178  }
  3179  inline void StoreCapacity::set_allocated_bytes_per_replica(::cockroach::roachpb::Percentiles* bytes_per_replica) {
  3180    ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  3181    if (message_arena == NULL) {
  3182      delete bytes_per_replica_;
  3183    }
  3184    if (bytes_per_replica) {
  3185      ::google::protobuf::Arena* submessage_arena = NULL;
  3186      if (message_arena != submessage_arena) {
  3187        bytes_per_replica = ::google::protobuf::internal::GetOwnedMessage(
  3188            message_arena, bytes_per_replica, submessage_arena);
  3189      }
  3190      set_has_bytes_per_replica();
  3191    } else {
  3192      clear_has_bytes_per_replica();
  3193    }
  3194    bytes_per_replica_ = bytes_per_replica;
  3195    // @@protoc_insertion_point(field_set_allocated:cockroach.roachpb.StoreCapacity.bytes_per_replica)
  3196  }
  3197  
  3198  inline bool StoreCapacity::has_writes_per_replica() const {
  3199    return (_has_bits_[0] & 0x00000002u) != 0;
  3200  }
  3201  inline void StoreCapacity::set_has_writes_per_replica() {
  3202    _has_bits_[0] |= 0x00000002u;
  3203  }
  3204  inline void StoreCapacity::clear_has_writes_per_replica() {
  3205    _has_bits_[0] &= ~0x00000002u;
  3206  }
  3207  inline void StoreCapacity::clear_writes_per_replica() {
  3208    if (writes_per_replica_ != NULL) writes_per_replica_->Clear();
  3209    clear_has_writes_per_replica();
  3210  }
  3211  inline const ::cockroach::roachpb::Percentiles& StoreCapacity::_internal_writes_per_replica() const {
  3212    return *writes_per_replica_;
  3213  }
  3214  inline const ::cockroach::roachpb::Percentiles& StoreCapacity::writes_per_replica() const {
  3215    const ::cockroach::roachpb::Percentiles* p = writes_per_replica_;
  3216    // @@protoc_insertion_point(field_get:cockroach.roachpb.StoreCapacity.writes_per_replica)
  3217    return p != NULL ? *p : *reinterpret_cast<const ::cockroach::roachpb::Percentiles*>(
  3218        &::cockroach::roachpb::_Percentiles_default_instance_);
  3219  }
  3220  inline ::cockroach::roachpb::Percentiles* StoreCapacity::release_writes_per_replica() {
  3221    // @@protoc_insertion_point(field_release:cockroach.roachpb.StoreCapacity.writes_per_replica)
  3222    clear_has_writes_per_replica();
  3223    ::cockroach::roachpb::Percentiles* temp = writes_per_replica_;
  3224    writes_per_replica_ = NULL;
  3225    return temp;
  3226  }
  3227  inline ::cockroach::roachpb::Percentiles* StoreCapacity::mutable_writes_per_replica() {
  3228    set_has_writes_per_replica();
  3229    if (writes_per_replica_ == NULL) {
  3230      auto* p = CreateMaybeMessage<::cockroach::roachpb::Percentiles>(GetArenaNoVirtual());
  3231      writes_per_replica_ = p;
  3232    }
  3233    // @@protoc_insertion_point(field_mutable:cockroach.roachpb.StoreCapacity.writes_per_replica)
  3234    return writes_per_replica_;
  3235  }
  3236  inline void StoreCapacity::set_allocated_writes_per_replica(::cockroach::roachpb::Percentiles* writes_per_replica) {
  3237    ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  3238    if (message_arena == NULL) {
  3239      delete writes_per_replica_;
  3240    }
  3241    if (writes_per_replica) {
  3242      ::google::protobuf::Arena* submessage_arena = NULL;
  3243      if (message_arena != submessage_arena) {
  3244        writes_per_replica = ::google::protobuf::internal::GetOwnedMessage(
  3245            message_arena, writes_per_replica, submessage_arena);
  3246      }
  3247      set_has_writes_per_replica();
  3248    } else {
  3249      clear_has_writes_per_replica();
  3250    }
  3251    writes_per_replica_ = writes_per_replica;
  3252    // @@protoc_insertion_point(field_set_allocated:cockroach.roachpb.StoreCapacity.writes_per_replica)
  3253  }
  3254  
  3255  // -------------------------------------------------------------------
  3256  
  3257  // NodeDescriptor
  3258  
  3259  inline bool NodeDescriptor::has_node_id() const {
  3260    return (_has_bits_[0] & 0x00000100u) != 0;
  3261  }
  3262  inline void NodeDescriptor::set_has_node_id() {
  3263    _has_bits_[0] |= 0x00000100u;
  3264  }
  3265  inline void NodeDescriptor::clear_has_node_id() {
  3266    _has_bits_[0] &= ~0x00000100u;
  3267  }
  3268  inline void NodeDescriptor::clear_node_id() {
  3269    node_id_ = 0;
  3270    clear_has_node_id();
  3271  }
  3272  inline ::google::protobuf::int32 NodeDescriptor::node_id() const {
  3273    // @@protoc_insertion_point(field_get:cockroach.roachpb.NodeDescriptor.node_id)
  3274    return node_id_;
  3275  }
  3276  inline void NodeDescriptor::set_node_id(::google::protobuf::int32 value) {
  3277    set_has_node_id();
  3278    node_id_ = value;
  3279    // @@protoc_insertion_point(field_set:cockroach.roachpb.NodeDescriptor.node_id)
  3280  }
  3281  
  3282  inline bool NodeDescriptor::has_address() const {
  3283    return (_has_bits_[0] & 0x00000004u) != 0;
  3284  }
  3285  inline void NodeDescriptor::set_has_address() {
  3286    _has_bits_[0] |= 0x00000004u;
  3287  }
  3288  inline void NodeDescriptor::clear_has_address() {
  3289    _has_bits_[0] &= ~0x00000004u;
  3290  }
  3291  inline const ::cockroach::util::UnresolvedAddr& NodeDescriptor::_internal_address() const {
  3292    return *address_;
  3293  }
  3294  inline const ::cockroach::util::UnresolvedAddr& NodeDescriptor::address() const {
  3295    const ::cockroach::util::UnresolvedAddr* p = address_;
  3296    // @@protoc_insertion_point(field_get:cockroach.roachpb.NodeDescriptor.address)
  3297    return p != NULL ? *p : *reinterpret_cast<const ::cockroach::util::UnresolvedAddr*>(
  3298        &::cockroach::util::_UnresolvedAddr_default_instance_);
  3299  }
  3300  inline ::cockroach::util::UnresolvedAddr* NodeDescriptor::release_address() {
  3301    // @@protoc_insertion_point(field_release:cockroach.roachpb.NodeDescriptor.address)
  3302    clear_has_address();
  3303    ::cockroach::util::UnresolvedAddr* temp = address_;
  3304    address_ = NULL;
  3305    return temp;
  3306  }
  3307  inline ::cockroach::util::UnresolvedAddr* NodeDescriptor::mutable_address() {
  3308    set_has_address();
  3309    if (address_ == NULL) {
  3310      auto* p = CreateMaybeMessage<::cockroach::util::UnresolvedAddr>(GetArenaNoVirtual());
  3311      address_ = p;
  3312    }
  3313    // @@protoc_insertion_point(field_mutable:cockroach.roachpb.NodeDescriptor.address)
  3314    return address_;
  3315  }
  3316  inline void NodeDescriptor::set_allocated_address(::cockroach::util::UnresolvedAddr* address) {
  3317    ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  3318    if (message_arena == NULL) {
  3319      delete reinterpret_cast< ::google::protobuf::MessageLite*>(address_);
  3320    }
  3321    if (address) {
  3322      ::google::protobuf::Arena* submessage_arena = NULL;
  3323      if (message_arena != submessage_arena) {
  3324        address = ::google::protobuf::internal::GetOwnedMessage(
  3325            message_arena, address, submessage_arena);
  3326      }
  3327      set_has_address();
  3328    } else {
  3329      clear_has_address();
  3330    }
  3331    address_ = address;
  3332    // @@protoc_insertion_point(field_set_allocated:cockroach.roachpb.NodeDescriptor.address)
  3333  }
  3334  
  3335  inline bool NodeDescriptor::has_attrs() const {
  3336    return (_has_bits_[0] & 0x00000008u) != 0;
  3337  }
  3338  inline void NodeDescriptor::set_has_attrs() {
  3339    _has_bits_[0] |= 0x00000008u;
  3340  }
  3341  inline void NodeDescriptor::clear_has_attrs() {
  3342    _has_bits_[0] &= ~0x00000008u;
  3343  }
  3344  inline void NodeDescriptor::clear_attrs() {
  3345    if (attrs_ != NULL) attrs_->Clear();
  3346    clear_has_attrs();
  3347  }
  3348  inline const ::cockroach::roachpb::Attributes& NodeDescriptor::_internal_attrs() const {
  3349    return *attrs_;
  3350  }
  3351  inline const ::cockroach::roachpb::Attributes& NodeDescriptor::attrs() const {
  3352    const ::cockroach::roachpb::Attributes* p = attrs_;
  3353    // @@protoc_insertion_point(field_get:cockroach.roachpb.NodeDescriptor.attrs)
  3354    return p != NULL ? *p : *reinterpret_cast<const ::cockroach::roachpb::Attributes*>(
  3355        &::cockroach::roachpb::_Attributes_default_instance_);
  3356  }
  3357  inline ::cockroach::roachpb::Attributes* NodeDescriptor::release_attrs() {
  3358    // @@protoc_insertion_point(field_release:cockroach.roachpb.NodeDescriptor.attrs)
  3359    clear_has_attrs();
  3360    ::cockroach::roachpb::Attributes* temp = attrs_;
  3361    attrs_ = NULL;
  3362    return temp;
  3363  }
  3364  inline ::cockroach::roachpb::Attributes* NodeDescriptor::mutable_attrs() {
  3365    set_has_attrs();
  3366    if (attrs_ == NULL) {
  3367      auto* p = CreateMaybeMessage<::cockroach::roachpb::Attributes>(GetArenaNoVirtual());
  3368      attrs_ = p;
  3369    }
  3370    // @@protoc_insertion_point(field_mutable:cockroach.roachpb.NodeDescriptor.attrs)
  3371    return attrs_;
  3372  }
  3373  inline void NodeDescriptor::set_allocated_attrs(::cockroach::roachpb::Attributes* attrs) {
  3374    ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  3375    if (message_arena == NULL) {
  3376      delete attrs_;
  3377    }
  3378    if (attrs) {
  3379      ::google::protobuf::Arena* submessage_arena = NULL;
  3380      if (message_arena != submessage_arena) {
  3381        attrs = ::google::protobuf::internal::GetOwnedMessage(
  3382            message_arena, attrs, submessage_arena);
  3383      }
  3384      set_has_attrs();
  3385    } else {
  3386      clear_has_attrs();
  3387    }
  3388    attrs_ = attrs;
  3389    // @@protoc_insertion_point(field_set_allocated:cockroach.roachpb.NodeDescriptor.attrs)
  3390  }
  3391  
  3392  inline bool NodeDescriptor::has_locality() const {
  3393    return (_has_bits_[0] & 0x00000010u) != 0;
  3394  }
  3395  inline void NodeDescriptor::set_has_locality() {
  3396    _has_bits_[0] |= 0x00000010u;
  3397  }
  3398  inline void NodeDescriptor::clear_has_locality() {
  3399    _has_bits_[0] &= ~0x00000010u;
  3400  }
  3401  inline void NodeDescriptor::clear_locality() {
  3402    if (locality_ != NULL) locality_->Clear();
  3403    clear_has_locality();
  3404  }
  3405  inline const ::cockroach::roachpb::Locality& NodeDescriptor::_internal_locality() const {
  3406    return *locality_;
  3407  }
  3408  inline const ::cockroach::roachpb::Locality& NodeDescriptor::locality() const {
  3409    const ::cockroach::roachpb::Locality* p = locality_;
  3410    // @@protoc_insertion_point(field_get:cockroach.roachpb.NodeDescriptor.locality)
  3411    return p != NULL ? *p : *reinterpret_cast<const ::cockroach::roachpb::Locality*>(
  3412        &::cockroach::roachpb::_Locality_default_instance_);
  3413  }
  3414  inline ::cockroach::roachpb::Locality* NodeDescriptor::release_locality() {
  3415    // @@protoc_insertion_point(field_release:cockroach.roachpb.NodeDescriptor.locality)
  3416    clear_has_locality();
  3417    ::cockroach::roachpb::Locality* temp = locality_;
  3418    locality_ = NULL;
  3419    return temp;
  3420  }
  3421  inline ::cockroach::roachpb::Locality* NodeDescriptor::mutable_locality() {
  3422    set_has_locality();
  3423    if (locality_ == NULL) {
  3424      auto* p = CreateMaybeMessage<::cockroach::roachpb::Locality>(GetArenaNoVirtual());
  3425      locality_ = p;
  3426    }
  3427    // @@protoc_insertion_point(field_mutable:cockroach.roachpb.NodeDescriptor.locality)
  3428    return locality_;
  3429  }
  3430  inline void NodeDescriptor::set_allocated_locality(::cockroach::roachpb::Locality* locality) {
  3431    ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  3432    if (message_arena == NULL) {
  3433      delete locality_;
  3434    }
  3435    if (locality) {
  3436      ::google::protobuf::Arena* submessage_arena = NULL;
  3437      if (message_arena != submessage_arena) {
  3438        locality = ::google::protobuf::internal::GetOwnedMessage(
  3439            message_arena, locality, submessage_arena);
  3440      }
  3441      set_has_locality();
  3442    } else {
  3443      clear_has_locality();
  3444    }
  3445    locality_ = locality;
  3446    // @@protoc_insertion_point(field_set_allocated:cockroach.roachpb.NodeDescriptor.locality)
  3447  }
  3448  
  3449  inline bool NodeDescriptor::has_serverversion() const {
  3450    return (_has_bits_[0] & 0x00000020u) != 0;
  3451  }
  3452  inline void NodeDescriptor::set_has_serverversion() {
  3453    _has_bits_[0] |= 0x00000020u;
  3454  }
  3455  inline void NodeDescriptor::clear_has_serverversion() {
  3456    _has_bits_[0] &= ~0x00000020u;
  3457  }
  3458  inline void NodeDescriptor::clear_serverversion() {
  3459    if (serverversion_ != NULL) serverversion_->Clear();
  3460    clear_has_serverversion();
  3461  }
  3462  inline const ::cockroach::roachpb::Version& NodeDescriptor::_internal_serverversion() const {
  3463    return *serverversion_;
  3464  }
  3465  inline const ::cockroach::roachpb::Version& NodeDescriptor::serverversion() const {
  3466    const ::cockroach::roachpb::Version* p = serverversion_;
  3467    // @@protoc_insertion_point(field_get:cockroach.roachpb.NodeDescriptor.ServerVersion)
  3468    return p != NULL ? *p : *reinterpret_cast<const ::cockroach::roachpb::Version*>(
  3469        &::cockroach::roachpb::_Version_default_instance_);
  3470  }
  3471  inline ::cockroach::roachpb::Version* NodeDescriptor::release_serverversion() {
  3472    // @@protoc_insertion_point(field_release:cockroach.roachpb.NodeDescriptor.ServerVersion)
  3473    clear_has_serverversion();
  3474    ::cockroach::roachpb::Version* temp = serverversion_;
  3475    serverversion_ = NULL;
  3476    return temp;
  3477  }
  3478  inline ::cockroach::roachpb::Version* NodeDescriptor::mutable_serverversion() {
  3479    set_has_serverversion();
  3480    if (serverversion_ == NULL) {
  3481      auto* p = CreateMaybeMessage<::cockroach::roachpb::Version>(GetArenaNoVirtual());
  3482      serverversion_ = p;
  3483    }
  3484    // @@protoc_insertion_point(field_mutable:cockroach.roachpb.NodeDescriptor.ServerVersion)
  3485    return serverversion_;
  3486  }
  3487  inline void NodeDescriptor::set_allocated_serverversion(::cockroach::roachpb::Version* serverversion) {
  3488    ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  3489    if (message_arena == NULL) {
  3490      delete serverversion_;
  3491    }
  3492    if (serverversion) {
  3493      ::google::protobuf::Arena* submessage_arena = NULL;
  3494      if (message_arena != submessage_arena) {
  3495        serverversion = ::google::protobuf::internal::GetOwnedMessage(
  3496            message_arena, serverversion, submessage_arena);
  3497      }
  3498      set_has_serverversion();
  3499    } else {
  3500      clear_has_serverversion();
  3501    }
  3502    serverversion_ = serverversion;
  3503    // @@protoc_insertion_point(field_set_allocated:cockroach.roachpb.NodeDescriptor.ServerVersion)
  3504  }
  3505  
  3506  inline bool NodeDescriptor::has_build_tag() const {
  3507    return (_has_bits_[0] & 0x00000001u) != 0;
  3508  }
  3509  inline void NodeDescriptor::set_has_build_tag() {
  3510    _has_bits_[0] |= 0x00000001u;
  3511  }
  3512  inline void NodeDescriptor::clear_has_build_tag() {
  3513    _has_bits_[0] &= ~0x00000001u;
  3514  }
  3515  inline void NodeDescriptor::clear_build_tag() {
  3516    build_tag_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  3517    clear_has_build_tag();
  3518  }
  3519  inline const ::std::string& NodeDescriptor::build_tag() const {
  3520    // @@protoc_insertion_point(field_get:cockroach.roachpb.NodeDescriptor.build_tag)
  3521    return build_tag_.GetNoArena();
  3522  }
  3523  inline void NodeDescriptor::set_build_tag(const ::std::string& value) {
  3524    set_has_build_tag();
  3525    build_tag_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  3526    // @@protoc_insertion_point(field_set:cockroach.roachpb.NodeDescriptor.build_tag)
  3527  }
  3528  #if LANG_CXX11
  3529  inline void NodeDescriptor::set_build_tag(::std::string&& value) {
  3530    set_has_build_tag();
  3531    build_tag_.SetNoArena(
  3532      &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  3533    // @@protoc_insertion_point(field_set_rvalue:cockroach.roachpb.NodeDescriptor.build_tag)
  3534  }
  3535  #endif
  3536  inline void NodeDescriptor::set_build_tag(const char* value) {
  3537    GOOGLE_DCHECK(value != NULL);
  3538    set_has_build_tag();
  3539    build_tag_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  3540    // @@protoc_insertion_point(field_set_char:cockroach.roachpb.NodeDescriptor.build_tag)
  3541  }
  3542  inline void NodeDescriptor::set_build_tag(const char* value, size_t size) {
  3543    set_has_build_tag();
  3544    build_tag_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  3545        ::std::string(reinterpret_cast<const char*>(value), size));
  3546    // @@protoc_insertion_point(field_set_pointer:cockroach.roachpb.NodeDescriptor.build_tag)
  3547  }
  3548  inline ::std::string* NodeDescriptor::mutable_build_tag() {
  3549    set_has_build_tag();
  3550    // @@protoc_insertion_point(field_mutable:cockroach.roachpb.NodeDescriptor.build_tag)
  3551    return build_tag_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  3552  }
  3553  inline ::std::string* NodeDescriptor::release_build_tag() {
  3554    // @@protoc_insertion_point(field_release:cockroach.roachpb.NodeDescriptor.build_tag)
  3555    if (!has_build_tag()) {
  3556      return NULL;
  3557    }
  3558    clear_has_build_tag();
  3559    return build_tag_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  3560  }
  3561  inline void NodeDescriptor::set_allocated_build_tag(::std::string* build_tag) {
  3562    if (build_tag != NULL) {
  3563      set_has_build_tag();
  3564    } else {
  3565      clear_has_build_tag();
  3566    }
  3567    build_tag_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), build_tag);
  3568    // @@protoc_insertion_point(field_set_allocated:cockroach.roachpb.NodeDescriptor.build_tag)
  3569  }
  3570  
  3571  inline bool NodeDescriptor::has_started_at() const {
  3572    return (_has_bits_[0] & 0x00000080u) != 0;
  3573  }
  3574  inline void NodeDescriptor::set_has_started_at() {
  3575    _has_bits_[0] |= 0x00000080u;
  3576  }
  3577  inline void NodeDescriptor::clear_has_started_at() {
  3578    _has_bits_[0] &= ~0x00000080u;
  3579  }
  3580  inline void NodeDescriptor::clear_started_at() {
  3581    started_at_ = GOOGLE_LONGLONG(0);
  3582    clear_has_started_at();
  3583  }
  3584  inline ::google::protobuf::int64 NodeDescriptor::started_at() const {
  3585    // @@protoc_insertion_point(field_get:cockroach.roachpb.NodeDescriptor.started_at)
  3586    return started_at_;
  3587  }
  3588  inline void NodeDescriptor::set_started_at(::google::protobuf::int64 value) {
  3589    set_has_started_at();
  3590    started_at_ = value;
  3591    // @@protoc_insertion_point(field_set:cockroach.roachpb.NodeDescriptor.started_at)
  3592  }
  3593  
  3594  inline int NodeDescriptor::locality_address_size() const {
  3595    return locality_address_.size();
  3596  }
  3597  inline void NodeDescriptor::clear_locality_address() {
  3598    locality_address_.Clear();
  3599  }
  3600  inline ::cockroach::roachpb::LocalityAddress* NodeDescriptor::mutable_locality_address(int index) {
  3601    // @@protoc_insertion_point(field_mutable:cockroach.roachpb.NodeDescriptor.locality_address)
  3602    return locality_address_.Mutable(index);
  3603  }
  3604  inline ::google::protobuf::RepeatedPtrField< ::cockroach::roachpb::LocalityAddress >*
  3605  NodeDescriptor::mutable_locality_address() {
  3606    // @@protoc_insertion_point(field_mutable_list:cockroach.roachpb.NodeDescriptor.locality_address)
  3607    return &locality_address_;
  3608  }
  3609  inline const ::cockroach::roachpb::LocalityAddress& NodeDescriptor::locality_address(int index) const {
  3610    // @@protoc_insertion_point(field_get:cockroach.roachpb.NodeDescriptor.locality_address)
  3611    return locality_address_.Get(index);
  3612  }
  3613  inline ::cockroach::roachpb::LocalityAddress* NodeDescriptor::add_locality_address() {
  3614    // @@protoc_insertion_point(field_add:cockroach.roachpb.NodeDescriptor.locality_address)
  3615    return locality_address_.Add();
  3616  }
  3617  inline const ::google::protobuf::RepeatedPtrField< ::cockroach::roachpb::LocalityAddress >&
  3618  NodeDescriptor::locality_address() const {
  3619    // @@protoc_insertion_point(field_list:cockroach.roachpb.NodeDescriptor.locality_address)
  3620    return locality_address_;
  3621  }
  3622  
  3623  inline bool NodeDescriptor::has_cluster_name() const {
  3624    return (_has_bits_[0] & 0x00000002u) != 0;
  3625  }
  3626  inline void NodeDescriptor::set_has_cluster_name() {
  3627    _has_bits_[0] |= 0x00000002u;
  3628  }
  3629  inline void NodeDescriptor::clear_has_cluster_name() {
  3630    _has_bits_[0] &= ~0x00000002u;
  3631  }
  3632  inline void NodeDescriptor::clear_cluster_name() {
  3633    cluster_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  3634    clear_has_cluster_name();
  3635  }
  3636  inline const ::std::string& NodeDescriptor::cluster_name() const {
  3637    // @@protoc_insertion_point(field_get:cockroach.roachpb.NodeDescriptor.cluster_name)
  3638    return cluster_name_.GetNoArena();
  3639  }
  3640  inline void NodeDescriptor::set_cluster_name(const ::std::string& value) {
  3641    set_has_cluster_name();
  3642    cluster_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  3643    // @@protoc_insertion_point(field_set:cockroach.roachpb.NodeDescriptor.cluster_name)
  3644  }
  3645  #if LANG_CXX11
  3646  inline void NodeDescriptor::set_cluster_name(::std::string&& value) {
  3647    set_has_cluster_name();
  3648    cluster_name_.SetNoArena(
  3649      &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  3650    // @@protoc_insertion_point(field_set_rvalue:cockroach.roachpb.NodeDescriptor.cluster_name)
  3651  }
  3652  #endif
  3653  inline void NodeDescriptor::set_cluster_name(const char* value) {
  3654    GOOGLE_DCHECK(value != NULL);
  3655    set_has_cluster_name();
  3656    cluster_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  3657    // @@protoc_insertion_point(field_set_char:cockroach.roachpb.NodeDescriptor.cluster_name)
  3658  }
  3659  inline void NodeDescriptor::set_cluster_name(const char* value, size_t size) {
  3660    set_has_cluster_name();
  3661    cluster_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  3662        ::std::string(reinterpret_cast<const char*>(value), size));
  3663    // @@protoc_insertion_point(field_set_pointer:cockroach.roachpb.NodeDescriptor.cluster_name)
  3664  }
  3665  inline ::std::string* NodeDescriptor::mutable_cluster_name() {
  3666    set_has_cluster_name();
  3667    // @@protoc_insertion_point(field_mutable:cockroach.roachpb.NodeDescriptor.cluster_name)
  3668    return cluster_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  3669  }
  3670  inline ::std::string* NodeDescriptor::release_cluster_name() {
  3671    // @@protoc_insertion_point(field_release:cockroach.roachpb.NodeDescriptor.cluster_name)
  3672    if (!has_cluster_name()) {
  3673      return NULL;
  3674    }
  3675    clear_has_cluster_name();
  3676    return cluster_name_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  3677  }
  3678  inline void NodeDescriptor::set_allocated_cluster_name(::std::string* cluster_name) {
  3679    if (cluster_name != NULL) {
  3680      set_has_cluster_name();
  3681    } else {
  3682      clear_has_cluster_name();
  3683    }
  3684    cluster_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), cluster_name);
  3685    // @@protoc_insertion_point(field_set_allocated:cockroach.roachpb.NodeDescriptor.cluster_name)
  3686  }
  3687  
  3688  inline bool NodeDescriptor::has_sql_address() const {
  3689    return (_has_bits_[0] & 0x00000040u) != 0;
  3690  }
  3691  inline void NodeDescriptor::set_has_sql_address() {
  3692    _has_bits_[0] |= 0x00000040u;
  3693  }
  3694  inline void NodeDescriptor::clear_has_sql_address() {
  3695    _has_bits_[0] &= ~0x00000040u;
  3696  }
  3697  inline const ::cockroach::util::UnresolvedAddr& NodeDescriptor::_internal_sql_address() const {
  3698    return *sql_address_;
  3699  }
  3700  inline const ::cockroach::util::UnresolvedAddr& NodeDescriptor::sql_address() const {
  3701    const ::cockroach::util::UnresolvedAddr* p = sql_address_;
  3702    // @@protoc_insertion_point(field_get:cockroach.roachpb.NodeDescriptor.sql_address)
  3703    return p != NULL ? *p : *reinterpret_cast<const ::cockroach::util::UnresolvedAddr*>(
  3704        &::cockroach::util::_UnresolvedAddr_default_instance_);
  3705  }
  3706  inline ::cockroach::util::UnresolvedAddr* NodeDescriptor::release_sql_address() {
  3707    // @@protoc_insertion_point(field_release:cockroach.roachpb.NodeDescriptor.sql_address)
  3708    clear_has_sql_address();
  3709    ::cockroach::util::UnresolvedAddr* temp = sql_address_;
  3710    sql_address_ = NULL;
  3711    return temp;
  3712  }
  3713  inline ::cockroach::util::UnresolvedAddr* NodeDescriptor::mutable_sql_address() {
  3714    set_has_sql_address();
  3715    if (sql_address_ == NULL) {
  3716      auto* p = CreateMaybeMessage<::cockroach::util::UnresolvedAddr>(GetArenaNoVirtual());
  3717      sql_address_ = p;
  3718    }
  3719    // @@protoc_insertion_point(field_mutable:cockroach.roachpb.NodeDescriptor.sql_address)
  3720    return sql_address_;
  3721  }
  3722  inline void NodeDescriptor::set_allocated_sql_address(::cockroach::util::UnresolvedAddr* sql_address) {
  3723    ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  3724    if (message_arena == NULL) {
  3725      delete reinterpret_cast< ::google::protobuf::MessageLite*>(sql_address_);
  3726    }
  3727    if (sql_address) {
  3728      ::google::protobuf::Arena* submessage_arena = NULL;
  3729      if (message_arena != submessage_arena) {
  3730        sql_address = ::google::protobuf::internal::GetOwnedMessage(
  3731            message_arena, sql_address, submessage_arena);
  3732      }
  3733      set_has_sql_address();
  3734    } else {
  3735      clear_has_sql_address();
  3736    }
  3737    sql_address_ = sql_address;
  3738    // @@protoc_insertion_point(field_set_allocated:cockroach.roachpb.NodeDescriptor.sql_address)
  3739  }
  3740  
  3741  // -------------------------------------------------------------------
  3742  
  3743  // LocalityAddress
  3744  
  3745  inline bool LocalityAddress::has_address() const {
  3746    return (_has_bits_[0] & 0x00000001u) != 0;
  3747  }
  3748  inline void LocalityAddress::set_has_address() {
  3749    _has_bits_[0] |= 0x00000001u;
  3750  }
  3751  inline void LocalityAddress::clear_has_address() {
  3752    _has_bits_[0] &= ~0x00000001u;
  3753  }
  3754  inline const ::cockroach::util::UnresolvedAddr& LocalityAddress::_internal_address() const {
  3755    return *address_;
  3756  }
  3757  inline const ::cockroach::util::UnresolvedAddr& LocalityAddress::address() const {
  3758    const ::cockroach::util::UnresolvedAddr* p = address_;
  3759    // @@protoc_insertion_point(field_get:cockroach.roachpb.LocalityAddress.address)
  3760    return p != NULL ? *p : *reinterpret_cast<const ::cockroach::util::UnresolvedAddr*>(
  3761        &::cockroach::util::_UnresolvedAddr_default_instance_);
  3762  }
  3763  inline ::cockroach::util::UnresolvedAddr* LocalityAddress::release_address() {
  3764    // @@protoc_insertion_point(field_release:cockroach.roachpb.LocalityAddress.address)
  3765    clear_has_address();
  3766    ::cockroach::util::UnresolvedAddr* temp = address_;
  3767    address_ = NULL;
  3768    return temp;
  3769  }
  3770  inline ::cockroach::util::UnresolvedAddr* LocalityAddress::mutable_address() {
  3771    set_has_address();
  3772    if (address_ == NULL) {
  3773      auto* p = CreateMaybeMessage<::cockroach::util::UnresolvedAddr>(GetArenaNoVirtual());
  3774      address_ = p;
  3775    }
  3776    // @@protoc_insertion_point(field_mutable:cockroach.roachpb.LocalityAddress.address)
  3777    return address_;
  3778  }
  3779  inline void LocalityAddress::set_allocated_address(::cockroach::util::UnresolvedAddr* address) {
  3780    ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  3781    if (message_arena == NULL) {
  3782      delete reinterpret_cast< ::google::protobuf::MessageLite*>(address_);
  3783    }
  3784    if (address) {
  3785      ::google::protobuf::Arena* submessage_arena = NULL;
  3786      if (message_arena != submessage_arena) {
  3787        address = ::google::protobuf::internal::GetOwnedMessage(
  3788            message_arena, address, submessage_arena);
  3789      }
  3790      set_has_address();
  3791    } else {
  3792      clear_has_address();
  3793    }
  3794    address_ = address;
  3795    // @@protoc_insertion_point(field_set_allocated:cockroach.roachpb.LocalityAddress.address)
  3796  }
  3797  
  3798  inline bool LocalityAddress::has_locality_tier() const {
  3799    return (_has_bits_[0] & 0x00000002u) != 0;
  3800  }
  3801  inline void LocalityAddress::set_has_locality_tier() {
  3802    _has_bits_[0] |= 0x00000002u;
  3803  }
  3804  inline void LocalityAddress::clear_has_locality_tier() {
  3805    _has_bits_[0] &= ~0x00000002u;
  3806  }
  3807  inline void LocalityAddress::clear_locality_tier() {
  3808    if (locality_tier_ != NULL) locality_tier_->Clear();
  3809    clear_has_locality_tier();
  3810  }
  3811  inline const ::cockroach::roachpb::Tier& LocalityAddress::_internal_locality_tier() const {
  3812    return *locality_tier_;
  3813  }
  3814  inline const ::cockroach::roachpb::Tier& LocalityAddress::locality_tier() const {
  3815    const ::cockroach::roachpb::Tier* p = locality_tier_;
  3816    // @@protoc_insertion_point(field_get:cockroach.roachpb.LocalityAddress.locality_tier)
  3817    return p != NULL ? *p : *reinterpret_cast<const ::cockroach::roachpb::Tier*>(
  3818        &::cockroach::roachpb::_Tier_default_instance_);
  3819  }
  3820  inline ::cockroach::roachpb::Tier* LocalityAddress::release_locality_tier() {
  3821    // @@protoc_insertion_point(field_release:cockroach.roachpb.LocalityAddress.locality_tier)
  3822    clear_has_locality_tier();
  3823    ::cockroach::roachpb::Tier* temp = locality_tier_;
  3824    locality_tier_ = NULL;
  3825    return temp;
  3826  }
  3827  inline ::cockroach::roachpb::Tier* LocalityAddress::mutable_locality_tier() {
  3828    set_has_locality_tier();
  3829    if (locality_tier_ == NULL) {
  3830      auto* p = CreateMaybeMessage<::cockroach::roachpb::Tier>(GetArenaNoVirtual());
  3831      locality_tier_ = p;
  3832    }
  3833    // @@protoc_insertion_point(field_mutable:cockroach.roachpb.LocalityAddress.locality_tier)
  3834    return locality_tier_;
  3835  }
  3836  inline void LocalityAddress::set_allocated_locality_tier(::cockroach::roachpb::Tier* locality_tier) {
  3837    ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  3838    if (message_arena == NULL) {
  3839      delete locality_tier_;
  3840    }
  3841    if (locality_tier) {
  3842      ::google::protobuf::Arena* submessage_arena = NULL;
  3843      if (message_arena != submessage_arena) {
  3844        locality_tier = ::google::protobuf::internal::GetOwnedMessage(
  3845            message_arena, locality_tier, submessage_arena);
  3846      }
  3847      set_has_locality_tier();
  3848    } else {
  3849      clear_has_locality_tier();
  3850    }
  3851    locality_tier_ = locality_tier;
  3852    // @@protoc_insertion_point(field_set_allocated:cockroach.roachpb.LocalityAddress.locality_tier)
  3853  }
  3854  
  3855  // -------------------------------------------------------------------
  3856  
  3857  // StoreDescriptor
  3858  
  3859  inline bool StoreDescriptor::has_store_id() const {
  3860    return (_has_bits_[0] & 0x00000008u) != 0;
  3861  }
  3862  inline void StoreDescriptor::set_has_store_id() {
  3863    _has_bits_[0] |= 0x00000008u;
  3864  }
  3865  inline void StoreDescriptor::clear_has_store_id() {
  3866    _has_bits_[0] &= ~0x00000008u;
  3867  }
  3868  inline void StoreDescriptor::clear_store_id() {
  3869    store_id_ = 0;
  3870    clear_has_store_id();
  3871  }
  3872  inline ::google::protobuf::int32 StoreDescriptor::store_id() const {
  3873    // @@protoc_insertion_point(field_get:cockroach.roachpb.StoreDescriptor.store_id)
  3874    return store_id_;
  3875  }
  3876  inline void StoreDescriptor::set_store_id(::google::protobuf::int32 value) {
  3877    set_has_store_id();
  3878    store_id_ = value;
  3879    // @@protoc_insertion_point(field_set:cockroach.roachpb.StoreDescriptor.store_id)
  3880  }
  3881  
  3882  inline bool StoreDescriptor::has_attrs() const {
  3883    return (_has_bits_[0] & 0x00000001u) != 0;
  3884  }
  3885  inline void StoreDescriptor::set_has_attrs() {
  3886    _has_bits_[0] |= 0x00000001u;
  3887  }
  3888  inline void StoreDescriptor::clear_has_attrs() {
  3889    _has_bits_[0] &= ~0x00000001u;
  3890  }
  3891  inline void StoreDescriptor::clear_attrs() {
  3892    if (attrs_ != NULL) attrs_->Clear();
  3893    clear_has_attrs();
  3894  }
  3895  inline const ::cockroach::roachpb::Attributes& StoreDescriptor::_internal_attrs() const {
  3896    return *attrs_;
  3897  }
  3898  inline const ::cockroach::roachpb::Attributes& StoreDescriptor::attrs() const {
  3899    const ::cockroach::roachpb::Attributes* p = attrs_;
  3900    // @@protoc_insertion_point(field_get:cockroach.roachpb.StoreDescriptor.attrs)
  3901    return p != NULL ? *p : *reinterpret_cast<const ::cockroach::roachpb::Attributes*>(
  3902        &::cockroach::roachpb::_Attributes_default_instance_);
  3903  }
  3904  inline ::cockroach::roachpb::Attributes* StoreDescriptor::release_attrs() {
  3905    // @@protoc_insertion_point(field_release:cockroach.roachpb.StoreDescriptor.attrs)
  3906    clear_has_attrs();
  3907    ::cockroach::roachpb::Attributes* temp = attrs_;
  3908    attrs_ = NULL;
  3909    return temp;
  3910  }
  3911  inline ::cockroach::roachpb::Attributes* StoreDescriptor::mutable_attrs() {
  3912    set_has_attrs();
  3913    if (attrs_ == NULL) {
  3914      auto* p = CreateMaybeMessage<::cockroach::roachpb::Attributes>(GetArenaNoVirtual());
  3915      attrs_ = p;
  3916    }
  3917    // @@protoc_insertion_point(field_mutable:cockroach.roachpb.StoreDescriptor.attrs)
  3918    return attrs_;
  3919  }
  3920  inline void StoreDescriptor::set_allocated_attrs(::cockroach::roachpb::Attributes* attrs) {
  3921    ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  3922    if (message_arena == NULL) {
  3923      delete attrs_;
  3924    }
  3925    if (attrs) {
  3926      ::google::protobuf::Arena* submessage_arena = NULL;
  3927      if (message_arena != submessage_arena) {
  3928        attrs = ::google::protobuf::internal::GetOwnedMessage(
  3929            message_arena, attrs, submessage_arena);
  3930      }
  3931      set_has_attrs();
  3932    } else {
  3933      clear_has_attrs();
  3934    }
  3935    attrs_ = attrs;
  3936    // @@protoc_insertion_point(field_set_allocated:cockroach.roachpb.StoreDescriptor.attrs)
  3937  }
  3938  
  3939  inline bool StoreDescriptor::has_node() const {
  3940    return (_has_bits_[0] & 0x00000002u) != 0;
  3941  }
  3942  inline void StoreDescriptor::set_has_node() {
  3943    _has_bits_[0] |= 0x00000002u;
  3944  }
  3945  inline void StoreDescriptor::clear_has_node() {
  3946    _has_bits_[0] &= ~0x00000002u;
  3947  }
  3948  inline void StoreDescriptor::clear_node() {
  3949    if (node_ != NULL) node_->Clear();
  3950    clear_has_node();
  3951  }
  3952  inline const ::cockroach::roachpb::NodeDescriptor& StoreDescriptor::_internal_node() const {
  3953    return *node_;
  3954  }
  3955  inline const ::cockroach::roachpb::NodeDescriptor& StoreDescriptor::node() const {
  3956    const ::cockroach::roachpb::NodeDescriptor* p = node_;
  3957    // @@protoc_insertion_point(field_get:cockroach.roachpb.StoreDescriptor.node)
  3958    return p != NULL ? *p : *reinterpret_cast<const ::cockroach::roachpb::NodeDescriptor*>(
  3959        &::cockroach::roachpb::_NodeDescriptor_default_instance_);
  3960  }
  3961  inline ::cockroach::roachpb::NodeDescriptor* StoreDescriptor::release_node() {
  3962    // @@protoc_insertion_point(field_release:cockroach.roachpb.StoreDescriptor.node)
  3963    clear_has_node();
  3964    ::cockroach::roachpb::NodeDescriptor* temp = node_;
  3965    node_ = NULL;
  3966    return temp;
  3967  }
  3968  inline ::cockroach::roachpb::NodeDescriptor* StoreDescriptor::mutable_node() {
  3969    set_has_node();
  3970    if (node_ == NULL) {
  3971      auto* p = CreateMaybeMessage<::cockroach::roachpb::NodeDescriptor>(GetArenaNoVirtual());
  3972      node_ = p;
  3973    }
  3974    // @@protoc_insertion_point(field_mutable:cockroach.roachpb.StoreDescriptor.node)
  3975    return node_;
  3976  }
  3977  inline void StoreDescriptor::set_allocated_node(::cockroach::roachpb::NodeDescriptor* node) {
  3978    ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  3979    if (message_arena == NULL) {
  3980      delete node_;
  3981    }
  3982    if (node) {
  3983      ::google::protobuf::Arena* submessage_arena = NULL;
  3984      if (message_arena != submessage_arena) {
  3985        node = ::google::protobuf::internal::GetOwnedMessage(
  3986            message_arena, node, submessage_arena);
  3987      }
  3988      set_has_node();
  3989    } else {
  3990      clear_has_node();
  3991    }
  3992    node_ = node;
  3993    // @@protoc_insertion_point(field_set_allocated:cockroach.roachpb.StoreDescriptor.node)
  3994  }
  3995  
  3996  inline bool StoreDescriptor::has_capacity() const {
  3997    return (_has_bits_[0] & 0x00000004u) != 0;
  3998  }
  3999  inline void StoreDescriptor::set_has_capacity() {
  4000    _has_bits_[0] |= 0x00000004u;
  4001  }
  4002  inline void StoreDescriptor::clear_has_capacity() {
  4003    _has_bits_[0] &= ~0x00000004u;
  4004  }
  4005  inline void StoreDescriptor::clear_capacity() {
  4006    if (capacity_ != NULL) capacity_->Clear();
  4007    clear_has_capacity();
  4008  }
  4009  inline const ::cockroach::roachpb::StoreCapacity& StoreDescriptor::_internal_capacity() const {
  4010    return *capacity_;
  4011  }
  4012  inline const ::cockroach::roachpb::StoreCapacity& StoreDescriptor::capacity() const {
  4013    const ::cockroach::roachpb::StoreCapacity* p = capacity_;
  4014    // @@protoc_insertion_point(field_get:cockroach.roachpb.StoreDescriptor.capacity)
  4015    return p != NULL ? *p : *reinterpret_cast<const ::cockroach::roachpb::StoreCapacity*>(
  4016        &::cockroach::roachpb::_StoreCapacity_default_instance_);
  4017  }
  4018  inline ::cockroach::roachpb::StoreCapacity* StoreDescriptor::release_capacity() {
  4019    // @@protoc_insertion_point(field_release:cockroach.roachpb.StoreDescriptor.capacity)
  4020    clear_has_capacity();
  4021    ::cockroach::roachpb::StoreCapacity* temp = capacity_;
  4022    capacity_ = NULL;
  4023    return temp;
  4024  }
  4025  inline ::cockroach::roachpb::StoreCapacity* StoreDescriptor::mutable_capacity() {
  4026    set_has_capacity();
  4027    if (capacity_ == NULL) {
  4028      auto* p = CreateMaybeMessage<::cockroach::roachpb::StoreCapacity>(GetArenaNoVirtual());
  4029      capacity_ = p;
  4030    }
  4031    // @@protoc_insertion_point(field_mutable:cockroach.roachpb.StoreDescriptor.capacity)
  4032    return capacity_;
  4033  }
  4034  inline void StoreDescriptor::set_allocated_capacity(::cockroach::roachpb::StoreCapacity* capacity) {
  4035    ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  4036    if (message_arena == NULL) {
  4037      delete capacity_;
  4038    }
  4039    if (capacity) {
  4040      ::google::protobuf::Arena* submessage_arena = NULL;
  4041      if (message_arena != submessage_arena) {
  4042        capacity = ::google::protobuf::internal::GetOwnedMessage(
  4043            message_arena, capacity, submessage_arena);
  4044      }
  4045      set_has_capacity();
  4046    } else {
  4047      clear_has_capacity();
  4048    }
  4049    capacity_ = capacity;
  4050    // @@protoc_insertion_point(field_set_allocated:cockroach.roachpb.StoreDescriptor.capacity)
  4051  }
  4052  
  4053  // -------------------------------------------------------------------
  4054  
  4055  // StoreDeadReplicas
  4056  
  4057  inline bool StoreDeadReplicas::has_store_id() const {
  4058    return (_has_bits_[0] & 0x00000001u) != 0;
  4059  }
  4060  inline void StoreDeadReplicas::set_has_store_id() {
  4061    _has_bits_[0] |= 0x00000001u;
  4062  }
  4063  inline void StoreDeadReplicas::clear_has_store_id() {
  4064    _has_bits_[0] &= ~0x00000001u;
  4065  }
  4066  inline void StoreDeadReplicas::clear_store_id() {
  4067    store_id_ = 0;
  4068    clear_has_store_id();
  4069  }
  4070  inline ::google::protobuf::int32 StoreDeadReplicas::store_id() const {
  4071    // @@protoc_insertion_point(field_get:cockroach.roachpb.StoreDeadReplicas.store_id)
  4072    return store_id_;
  4073  }
  4074  inline void StoreDeadReplicas::set_store_id(::google::protobuf::int32 value) {
  4075    set_has_store_id();
  4076    store_id_ = value;
  4077    // @@protoc_insertion_point(field_set:cockroach.roachpb.StoreDeadReplicas.store_id)
  4078  }
  4079  
  4080  inline int StoreDeadReplicas::replicas_size() const {
  4081    return replicas_.size();
  4082  }
  4083  inline void StoreDeadReplicas::clear_replicas() {
  4084    replicas_.Clear();
  4085  }
  4086  inline ::cockroach::roachpb::ReplicaIdent* StoreDeadReplicas::mutable_replicas(int index) {
  4087    // @@protoc_insertion_point(field_mutable:cockroach.roachpb.StoreDeadReplicas.replicas)
  4088    return replicas_.Mutable(index);
  4089  }
  4090  inline ::google::protobuf::RepeatedPtrField< ::cockroach::roachpb::ReplicaIdent >*
  4091  StoreDeadReplicas::mutable_replicas() {
  4092    // @@protoc_insertion_point(field_mutable_list:cockroach.roachpb.StoreDeadReplicas.replicas)
  4093    return &replicas_;
  4094  }
  4095  inline const ::cockroach::roachpb::ReplicaIdent& StoreDeadReplicas::replicas(int index) const {
  4096    // @@protoc_insertion_point(field_get:cockroach.roachpb.StoreDeadReplicas.replicas)
  4097    return replicas_.Get(index);
  4098  }
  4099  inline ::cockroach::roachpb::ReplicaIdent* StoreDeadReplicas::add_replicas() {
  4100    // @@protoc_insertion_point(field_add:cockroach.roachpb.StoreDeadReplicas.replicas)
  4101    return replicas_.Add();
  4102  }
  4103  inline const ::google::protobuf::RepeatedPtrField< ::cockroach::roachpb::ReplicaIdent >&
  4104  StoreDeadReplicas::replicas() const {
  4105    // @@protoc_insertion_point(field_list:cockroach.roachpb.StoreDeadReplicas.replicas)
  4106    return replicas_;
  4107  }
  4108  
  4109  // -------------------------------------------------------------------
  4110  
  4111  // Locality
  4112  
  4113  inline int Locality::tiers_size() const {
  4114    return tiers_.size();
  4115  }
  4116  inline void Locality::clear_tiers() {
  4117    tiers_.Clear();
  4118  }
  4119  inline ::cockroach::roachpb::Tier* Locality::mutable_tiers(int index) {
  4120    // @@protoc_insertion_point(field_mutable:cockroach.roachpb.Locality.tiers)
  4121    return tiers_.Mutable(index);
  4122  }
  4123  inline ::google::protobuf::RepeatedPtrField< ::cockroach::roachpb::Tier >*
  4124  Locality::mutable_tiers() {
  4125    // @@protoc_insertion_point(field_mutable_list:cockroach.roachpb.Locality.tiers)
  4126    return &tiers_;
  4127  }
  4128  inline const ::cockroach::roachpb::Tier& Locality::tiers(int index) const {
  4129    // @@protoc_insertion_point(field_get:cockroach.roachpb.Locality.tiers)
  4130    return tiers_.Get(index);
  4131  }
  4132  inline ::cockroach::roachpb::Tier* Locality::add_tiers() {
  4133    // @@protoc_insertion_point(field_add:cockroach.roachpb.Locality.tiers)
  4134    return tiers_.Add();
  4135  }
  4136  inline const ::google::protobuf::RepeatedPtrField< ::cockroach::roachpb::Tier >&
  4137  Locality::tiers() const {
  4138    // @@protoc_insertion_point(field_list:cockroach.roachpb.Locality.tiers)
  4139    return tiers_;
  4140  }
  4141  
  4142  // -------------------------------------------------------------------
  4143  
  4144  // Tier
  4145  
  4146  inline bool Tier::has_key() const {
  4147    return (_has_bits_[0] & 0x00000001u) != 0;
  4148  }
  4149  inline void Tier::set_has_key() {
  4150    _has_bits_[0] |= 0x00000001u;
  4151  }
  4152  inline void Tier::clear_has_key() {
  4153    _has_bits_[0] &= ~0x00000001u;
  4154  }
  4155  inline void Tier::clear_key() {
  4156    key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  4157    clear_has_key();
  4158  }
  4159  inline const ::std::string& Tier::key() const {
  4160    // @@protoc_insertion_point(field_get:cockroach.roachpb.Tier.key)
  4161    return key_.GetNoArena();
  4162  }
  4163  inline void Tier::set_key(const ::std::string& value) {
  4164    set_has_key();
  4165    key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  4166    // @@protoc_insertion_point(field_set:cockroach.roachpb.Tier.key)
  4167  }
  4168  #if LANG_CXX11
  4169  inline void Tier::set_key(::std::string&& value) {
  4170    set_has_key();
  4171    key_.SetNoArena(
  4172      &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  4173    // @@protoc_insertion_point(field_set_rvalue:cockroach.roachpb.Tier.key)
  4174  }
  4175  #endif
  4176  inline void Tier::set_key(const char* value) {
  4177    GOOGLE_DCHECK(value != NULL);
  4178    set_has_key();
  4179    key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  4180    // @@protoc_insertion_point(field_set_char:cockroach.roachpb.Tier.key)
  4181  }
  4182  inline void Tier::set_key(const char* value, size_t size) {
  4183    set_has_key();
  4184    key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  4185        ::std::string(reinterpret_cast<const char*>(value), size));
  4186    // @@protoc_insertion_point(field_set_pointer:cockroach.roachpb.Tier.key)
  4187  }
  4188  inline ::std::string* Tier::mutable_key() {
  4189    set_has_key();
  4190    // @@protoc_insertion_point(field_mutable:cockroach.roachpb.Tier.key)
  4191    return key_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  4192  }
  4193  inline ::std::string* Tier::release_key() {
  4194    // @@protoc_insertion_point(field_release:cockroach.roachpb.Tier.key)
  4195    if (!has_key()) {
  4196      return NULL;
  4197    }
  4198    clear_has_key();
  4199    return key_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  4200  }
  4201  inline void Tier::set_allocated_key(::std::string* key) {
  4202    if (key != NULL) {
  4203      set_has_key();
  4204    } else {
  4205      clear_has_key();
  4206    }
  4207    key_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), key);
  4208    // @@protoc_insertion_point(field_set_allocated:cockroach.roachpb.Tier.key)
  4209  }
  4210  
  4211  inline bool Tier::has_value() const {
  4212    return (_has_bits_[0] & 0x00000002u) != 0;
  4213  }
  4214  inline void Tier::set_has_value() {
  4215    _has_bits_[0] |= 0x00000002u;
  4216  }
  4217  inline void Tier::clear_has_value() {
  4218    _has_bits_[0] &= ~0x00000002u;
  4219  }
  4220  inline void Tier::clear_value() {
  4221    value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  4222    clear_has_value();
  4223  }
  4224  inline const ::std::string& Tier::value() const {
  4225    // @@protoc_insertion_point(field_get:cockroach.roachpb.Tier.value)
  4226    return value_.GetNoArena();
  4227  }
  4228  inline void Tier::set_value(const ::std::string& value) {
  4229    set_has_value();
  4230    value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  4231    // @@protoc_insertion_point(field_set:cockroach.roachpb.Tier.value)
  4232  }
  4233  #if LANG_CXX11
  4234  inline void Tier::set_value(::std::string&& value) {
  4235    set_has_value();
  4236    value_.SetNoArena(
  4237      &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  4238    // @@protoc_insertion_point(field_set_rvalue:cockroach.roachpb.Tier.value)
  4239  }
  4240  #endif
  4241  inline void Tier::set_value(const char* value) {
  4242    GOOGLE_DCHECK(value != NULL);
  4243    set_has_value();
  4244    value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  4245    // @@protoc_insertion_point(field_set_char:cockroach.roachpb.Tier.value)
  4246  }
  4247  inline void Tier::set_value(const char* value, size_t size) {
  4248    set_has_value();
  4249    value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  4250        ::std::string(reinterpret_cast<const char*>(value), size));
  4251    // @@protoc_insertion_point(field_set_pointer:cockroach.roachpb.Tier.value)
  4252  }
  4253  inline ::std::string* Tier::mutable_value() {
  4254    set_has_value();
  4255    // @@protoc_insertion_point(field_mutable:cockroach.roachpb.Tier.value)
  4256    return value_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  4257  }
  4258  inline ::std::string* Tier::release_value() {
  4259    // @@protoc_insertion_point(field_release:cockroach.roachpb.Tier.value)
  4260    if (!has_value()) {
  4261      return NULL;
  4262    }
  4263    clear_has_value();
  4264    return value_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  4265  }
  4266  inline void Tier::set_allocated_value(::std::string* value) {
  4267    if (value != NULL) {
  4268      set_has_value();
  4269    } else {
  4270      clear_has_value();
  4271    }
  4272    value_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  4273    // @@protoc_insertion_point(field_set_allocated:cockroach.roachpb.Tier.value)
  4274  }
  4275  
  4276  // -------------------------------------------------------------------
  4277  
  4278  // Version
  4279  
  4280  inline bool Version::has_major_val() const {
  4281    return (_has_bits_[0] & 0x00000001u) != 0;
  4282  }
  4283  inline void Version::set_has_major_val() {
  4284    _has_bits_[0] |= 0x00000001u;
  4285  }
  4286  inline void Version::clear_has_major_val() {
  4287    _has_bits_[0] &= ~0x00000001u;
  4288  }
  4289  inline void Version::clear_major_val() {
  4290    major_val_ = 0;
  4291    clear_has_major_val();
  4292  }
  4293  inline ::google::protobuf::int32 Version::major_val() const {
  4294    // @@protoc_insertion_point(field_get:cockroach.roachpb.Version.major_val)
  4295    return major_val_;
  4296  }
  4297  inline void Version::set_major_val(::google::protobuf::int32 value) {
  4298    set_has_major_val();
  4299    major_val_ = value;
  4300    // @@protoc_insertion_point(field_set:cockroach.roachpb.Version.major_val)
  4301  }
  4302  
  4303  inline bool Version::has_minor_val() const {
  4304    return (_has_bits_[0] & 0x00000002u) != 0;
  4305  }
  4306  inline void Version::set_has_minor_val() {
  4307    _has_bits_[0] |= 0x00000002u;
  4308  }
  4309  inline void Version::clear_has_minor_val() {
  4310    _has_bits_[0] &= ~0x00000002u;
  4311  }
  4312  inline void Version::clear_minor_val() {
  4313    minor_val_ = 0;
  4314    clear_has_minor_val();
  4315  }
  4316  inline ::google::protobuf::int32 Version::minor_val() const {
  4317    // @@protoc_insertion_point(field_get:cockroach.roachpb.Version.minor_val)
  4318    return minor_val_;
  4319  }
  4320  inline void Version::set_minor_val(::google::protobuf::int32 value) {
  4321    set_has_minor_val();
  4322    minor_val_ = value;
  4323    // @@protoc_insertion_point(field_set:cockroach.roachpb.Version.minor_val)
  4324  }
  4325  
  4326  inline bool Version::has_patch() const {
  4327    return (_has_bits_[0] & 0x00000004u) != 0;
  4328  }
  4329  inline void Version::set_has_patch() {
  4330    _has_bits_[0] |= 0x00000004u;
  4331  }
  4332  inline void Version::clear_has_patch() {
  4333    _has_bits_[0] &= ~0x00000004u;
  4334  }
  4335  inline void Version::clear_patch() {
  4336    patch_ = 0;
  4337    clear_has_patch();
  4338  }
  4339  inline ::google::protobuf::int32 Version::patch() const {
  4340    // @@protoc_insertion_point(field_get:cockroach.roachpb.Version.patch)
  4341    return patch_;
  4342  }
  4343  inline void Version::set_patch(::google::protobuf::int32 value) {
  4344    set_has_patch();
  4345    patch_ = value;
  4346    // @@protoc_insertion_point(field_set:cockroach.roachpb.Version.patch)
  4347  }
  4348  
  4349  inline bool Version::has_unstable() const {
  4350    return (_has_bits_[0] & 0x00000008u) != 0;
  4351  }
  4352  inline void Version::set_has_unstable() {
  4353    _has_bits_[0] |= 0x00000008u;
  4354  }
  4355  inline void Version::clear_has_unstable() {
  4356    _has_bits_[0] &= ~0x00000008u;
  4357  }
  4358  inline void Version::clear_unstable() {
  4359    unstable_ = 0;
  4360    clear_has_unstable();
  4361  }
  4362  inline ::google::protobuf::int32 Version::unstable() const {
  4363    // @@protoc_insertion_point(field_get:cockroach.roachpb.Version.unstable)
  4364    return unstable_;
  4365  }
  4366  inline void Version::set_unstable(::google::protobuf::int32 value) {
  4367    set_has_unstable();
  4368    unstable_ = value;
  4369    // @@protoc_insertion_point(field_set:cockroach.roachpb.Version.unstable)
  4370  }
  4371  
  4372  #ifdef __GNUC__
  4373    #pragma GCC diagnostic pop
  4374  #endif  // __GNUC__
  4375  // -------------------------------------------------------------------
  4376  
  4377  // -------------------------------------------------------------------
  4378  
  4379  // -------------------------------------------------------------------
  4380  
  4381  // -------------------------------------------------------------------
  4382  
  4383  // -------------------------------------------------------------------
  4384  
  4385  // -------------------------------------------------------------------
  4386  
  4387  // -------------------------------------------------------------------
  4388  
  4389  // -------------------------------------------------------------------
  4390  
  4391  // -------------------------------------------------------------------
  4392  
  4393  // -------------------------------------------------------------------
  4394  
  4395  // -------------------------------------------------------------------
  4396  
  4397  // -------------------------------------------------------------------
  4398  
  4399  // -------------------------------------------------------------------
  4400  
  4401  
  4402  // @@protoc_insertion_point(namespace_scope)
  4403  
  4404  }  // namespace roachpb
  4405  }  // namespace cockroach
  4406  
  4407  namespace google {
  4408  namespace protobuf {
  4409  
  4410  template <> struct is_proto_enum< ::cockroach::roachpb::ReplicaType> : ::std::true_type {};
  4411  
  4412  }  // namespace protobuf
  4413  }  // namespace google
  4414  
  4415  // @@protoc_insertion_point(global_scope)
  4416  
  4417  #endif  // PROTOBUF_INCLUDED_roachpb_2fmetadata_2eproto