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

     1  // Generated by the protocol buffer compiler.  DO NOT EDIT!
     2  // source: roachpb/internal.proto
     3  
     4  #include "roachpb/internal.pb.h"
     5  
     6  #include <algorithm>
     7  
     8  #include <google/protobuf/stubs/common.h>
     9  #include <google/protobuf/stubs/port.h>
    10  #include <google/protobuf/io/coded_stream.h>
    11  #include <google/protobuf/wire_format_lite_inl.h>
    12  #include <google/protobuf/io/zero_copy_stream_impl_lite.h>
    13  // This is a temporary google only hack
    14  #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
    15  #include "third_party/protobuf/version.h"
    16  #endif
    17  // @@protoc_insertion_point(includes)
    18  
    19  namespace protobuf_roachpb_2finternal_2eproto {
    20  extern PROTOBUF_INTERNAL_EXPORT_protobuf_roachpb_2finternal_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_InternalTimeSeriesSample;
    21  }  // namespace protobuf_roachpb_2finternal_2eproto
    22  namespace cockroach {
    23  namespace roachpb {
    24  class InternalTimeSeriesDataDefaultTypeInternal {
    25   public:
    26    ::google::protobuf::internal::ExplicitlyConstructed<InternalTimeSeriesData>
    27        _instance;
    28  } _InternalTimeSeriesData_default_instance_;
    29  class InternalTimeSeriesSampleDefaultTypeInternal {
    30   public:
    31    ::google::protobuf::internal::ExplicitlyConstructed<InternalTimeSeriesSample>
    32        _instance;
    33  } _InternalTimeSeriesSample_default_instance_;
    34  }  // namespace roachpb
    35  }  // namespace cockroach
    36  namespace protobuf_roachpb_2finternal_2eproto {
    37  static void InitDefaultsInternalTimeSeriesData() {
    38    GOOGLE_PROTOBUF_VERIFY_VERSION;
    39  
    40    {
    41      void* ptr = &::cockroach::roachpb::_InternalTimeSeriesData_default_instance_;
    42      new (ptr) ::cockroach::roachpb::InternalTimeSeriesData();
    43      ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
    44    }
    45    ::cockroach::roachpb::InternalTimeSeriesData::InitAsDefaultInstance();
    46  }
    47  
    48  ::google::protobuf::internal::SCCInfo<1> scc_info_InternalTimeSeriesData =
    49      {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsInternalTimeSeriesData}, {
    50        &protobuf_roachpb_2finternal_2eproto::scc_info_InternalTimeSeriesSample.base,}};
    51  
    52  static void InitDefaultsInternalTimeSeriesSample() {
    53    GOOGLE_PROTOBUF_VERIFY_VERSION;
    54  
    55    {
    56      void* ptr = &::cockroach::roachpb::_InternalTimeSeriesSample_default_instance_;
    57      new (ptr) ::cockroach::roachpb::InternalTimeSeriesSample();
    58      ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
    59    }
    60    ::cockroach::roachpb::InternalTimeSeriesSample::InitAsDefaultInstance();
    61  }
    62  
    63  ::google::protobuf::internal::SCCInfo<0> scc_info_InternalTimeSeriesSample =
    64      {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsInternalTimeSeriesSample}, {}};
    65  
    66  void InitDefaults() {
    67    ::google::protobuf::internal::InitSCC(&scc_info_InternalTimeSeriesData.base);
    68    ::google::protobuf::internal::InitSCC(&scc_info_InternalTimeSeriesSample.base);
    69  }
    70  
    71  }  // namespace protobuf_roachpb_2finternal_2eproto
    72  namespace cockroach {
    73  namespace roachpb {
    74  
    75  // ===================================================================
    76  
    77  void InternalTimeSeriesData::InitAsDefaultInstance() {
    78  }
    79  #if !defined(_MSC_VER) || _MSC_VER >= 1900
    80  const int InternalTimeSeriesData::kStartTimestampNanosFieldNumber;
    81  const int InternalTimeSeriesData::kSampleDurationNanosFieldNumber;
    82  const int InternalTimeSeriesData::kSamplesFieldNumber;
    83  const int InternalTimeSeriesData::kOffsetFieldNumber;
    84  const int InternalTimeSeriesData::kLastFieldNumber;
    85  const int InternalTimeSeriesData::kCountFieldNumber;
    86  const int InternalTimeSeriesData::kSumFieldNumber;
    87  const int InternalTimeSeriesData::kMaxFieldNumber;
    88  const int InternalTimeSeriesData::kMinFieldNumber;
    89  const int InternalTimeSeriesData::kFirstFieldNumber;
    90  const int InternalTimeSeriesData::kVarianceFieldNumber;
    91  #endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
    92  
    93  InternalTimeSeriesData::InternalTimeSeriesData()
    94    : ::google::protobuf::MessageLite(), _internal_metadata_(NULL) {
    95    ::google::protobuf::internal::InitSCC(
    96        &protobuf_roachpb_2finternal_2eproto::scc_info_InternalTimeSeriesData.base);
    97    SharedCtor();
    98    // @@protoc_insertion_point(constructor:cockroach.roachpb.InternalTimeSeriesData)
    99  }
   100  InternalTimeSeriesData::InternalTimeSeriesData(const InternalTimeSeriesData& from)
   101    : ::google::protobuf::MessageLite(),
   102        _internal_metadata_(NULL),
   103        _has_bits_(from._has_bits_),
   104        samples_(from.samples_),
   105        offset_(from.offset_),
   106        last_(from.last_),
   107        count_(from.count_),
   108        sum_(from.sum_),
   109        max_(from.max_),
   110        min_(from.min_),
   111        first_(from.first_),
   112        variance_(from.variance_) {
   113    _internal_metadata_.MergeFrom(from._internal_metadata_);
   114    ::memcpy(&start_timestamp_nanos_, &from.start_timestamp_nanos_,
   115      static_cast<size_t>(reinterpret_cast<char*>(&sample_duration_nanos_) -
   116      reinterpret_cast<char*>(&start_timestamp_nanos_)) + sizeof(sample_duration_nanos_));
   117    // @@protoc_insertion_point(copy_constructor:cockroach.roachpb.InternalTimeSeriesData)
   118  }
   119  
   120  void InternalTimeSeriesData::SharedCtor() {
   121    ::memset(&start_timestamp_nanos_, 0, static_cast<size_t>(
   122        reinterpret_cast<char*>(&sample_duration_nanos_) -
   123        reinterpret_cast<char*>(&start_timestamp_nanos_)) + sizeof(sample_duration_nanos_));
   124  }
   125  
   126  InternalTimeSeriesData::~InternalTimeSeriesData() {
   127    // @@protoc_insertion_point(destructor:cockroach.roachpb.InternalTimeSeriesData)
   128    SharedDtor();
   129  }
   130  
   131  void InternalTimeSeriesData::SharedDtor() {
   132  }
   133  
   134  void InternalTimeSeriesData::SetCachedSize(int size) const {
   135    _cached_size_.Set(size);
   136  }
   137  const InternalTimeSeriesData& InternalTimeSeriesData::default_instance() {
   138    ::google::protobuf::internal::InitSCC(&protobuf_roachpb_2finternal_2eproto::scc_info_InternalTimeSeriesData.base);
   139    return *internal_default_instance();
   140  }
   141  
   142  
   143  void InternalTimeSeriesData::Clear() {
   144  // @@protoc_insertion_point(message_clear_start:cockroach.roachpb.InternalTimeSeriesData)
   145    ::google::protobuf::uint32 cached_has_bits = 0;
   146    // Prevent compiler warnings about cached_has_bits being unused
   147    (void) cached_has_bits;
   148  
   149    samples_.Clear();
   150    offset_.Clear();
   151    last_.Clear();
   152    count_.Clear();
   153    sum_.Clear();
   154    max_.Clear();
   155    min_.Clear();
   156    first_.Clear();
   157    variance_.Clear();
   158    cached_has_bits = _has_bits_[0];
   159    if (cached_has_bits & 3u) {
   160      ::memset(&start_timestamp_nanos_, 0, static_cast<size_t>(
   161          reinterpret_cast<char*>(&sample_duration_nanos_) -
   162          reinterpret_cast<char*>(&start_timestamp_nanos_)) + sizeof(sample_duration_nanos_));
   163    }
   164    _has_bits_.Clear();
   165    _internal_metadata_.Clear();
   166  }
   167  
   168  bool InternalTimeSeriesData::MergePartialFromCodedStream(
   169      ::google::protobuf::io::CodedInputStream* input) {
   170  #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
   171    ::google::protobuf::uint32 tag;
   172    ::google::protobuf::internal::LiteUnknownFieldSetter unknown_fields_setter(
   173        &_internal_metadata_);
   174    ::google::protobuf::io::StringOutputStream unknown_fields_output(
   175        unknown_fields_setter.buffer());
   176    ::google::protobuf::io::CodedOutputStream unknown_fields_stream(
   177        &unknown_fields_output, false);
   178    // @@protoc_insertion_point(parse_start:cockroach.roachpb.InternalTimeSeriesData)
   179    for (;;) {
   180      ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
   181      tag = p.first;
   182      if (!p.second) goto handle_unusual;
   183      switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
   184        case 1: {
   185          if (static_cast< ::google::protobuf::uint8>(tag) ==
   186              static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
   187            set_has_start_timestamp_nanos();
   188            DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
   189                     ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
   190                   input, &start_timestamp_nanos_)));
   191          } else {
   192            goto handle_unusual;
   193          }
   194          break;
   195        }
   196  
   197        case 2: {
   198          if (static_cast< ::google::protobuf::uint8>(tag) ==
   199              static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
   200            set_has_sample_duration_nanos();
   201            DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
   202                     ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
   203                   input, &sample_duration_nanos_)));
   204          } else {
   205            goto handle_unusual;
   206          }
   207          break;
   208        }
   209  
   210        case 3: {
   211          if (static_cast< ::google::protobuf::uint8>(tag) ==
   212              static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
   213            DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
   214                  input, add_samples()));
   215          } else {
   216            goto handle_unusual;
   217          }
   218          break;
   219        }
   220  
   221        // repeated int32 offset = 4 [packed = true];
   222        case 4: {
   223          if (static_cast< ::google::protobuf::uint8>(tag) ==
   224              static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
   225            DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive<
   226                     ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
   227                   input, this->mutable_offset())));
   228          } else if (
   229              static_cast< ::google::protobuf::uint8>(tag) ==
   230              static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
   231            DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline<
   232                     ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
   233                   1, 34u, input, this->mutable_offset())));
   234          } else {
   235            goto handle_unusual;
   236          }
   237          break;
   238        }
   239  
   240        // repeated double last = 5 [packed = true];
   241        case 5: {
   242          if (static_cast< ::google::protobuf::uint8>(tag) ==
   243              static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) {
   244            DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive<
   245                     double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
   246                   input, this->mutable_last())));
   247          } else if (
   248              static_cast< ::google::protobuf::uint8>(tag) ==
   249              static_cast< ::google::protobuf::uint8>(41u /* 41 & 0xFF */)) {
   250            DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline<
   251                     double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
   252                   1, 42u, input, this->mutable_last())));
   253          } else {
   254            goto handle_unusual;
   255          }
   256          break;
   257        }
   258  
   259        // repeated uint32 count = 6 [packed = true];
   260        case 6: {
   261          if (static_cast< ::google::protobuf::uint8>(tag) ==
   262              static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) {
   263            DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive<
   264                     ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
   265                   input, this->mutable_count())));
   266          } else if (
   267              static_cast< ::google::protobuf::uint8>(tag) ==
   268              static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) {
   269            DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline<
   270                     ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
   271                   1, 50u, input, this->mutable_count())));
   272          } else {
   273            goto handle_unusual;
   274          }
   275          break;
   276        }
   277  
   278        // repeated double sum = 7 [packed = true];
   279        case 7: {
   280          if (static_cast< ::google::protobuf::uint8>(tag) ==
   281              static_cast< ::google::protobuf::uint8>(58u /* 58 & 0xFF */)) {
   282            DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive<
   283                     double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
   284                   input, this->mutable_sum())));
   285          } else if (
   286              static_cast< ::google::protobuf::uint8>(tag) ==
   287              static_cast< ::google::protobuf::uint8>(57u /* 57 & 0xFF */)) {
   288            DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline<
   289                     double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
   290                   1, 58u, input, this->mutable_sum())));
   291          } else {
   292            goto handle_unusual;
   293          }
   294          break;
   295        }
   296  
   297        // repeated double max = 8 [packed = true];
   298        case 8: {
   299          if (static_cast< ::google::protobuf::uint8>(tag) ==
   300              static_cast< ::google::protobuf::uint8>(66u /* 66 & 0xFF */)) {
   301            DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive<
   302                     double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
   303                   input, this->mutable_max())));
   304          } else if (
   305              static_cast< ::google::protobuf::uint8>(tag) ==
   306              static_cast< ::google::protobuf::uint8>(65u /* 65 & 0xFF */)) {
   307            DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline<
   308                     double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
   309                   1, 66u, input, this->mutable_max())));
   310          } else {
   311            goto handle_unusual;
   312          }
   313          break;
   314        }
   315  
   316        // repeated double min = 9 [packed = true];
   317        case 9: {
   318          if (static_cast< ::google::protobuf::uint8>(tag) ==
   319              static_cast< ::google::protobuf::uint8>(74u /* 74 & 0xFF */)) {
   320            DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive<
   321                     double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
   322                   input, this->mutable_min())));
   323          } else if (
   324              static_cast< ::google::protobuf::uint8>(tag) ==
   325              static_cast< ::google::protobuf::uint8>(73u /* 73 & 0xFF */)) {
   326            DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline<
   327                     double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
   328                   1, 74u, input, this->mutable_min())));
   329          } else {
   330            goto handle_unusual;
   331          }
   332          break;
   333        }
   334  
   335        // repeated double first = 10 [packed = true];
   336        case 10: {
   337          if (static_cast< ::google::protobuf::uint8>(tag) ==
   338              static_cast< ::google::protobuf::uint8>(82u /* 82 & 0xFF */)) {
   339            DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive<
   340                     double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
   341                   input, this->mutable_first())));
   342          } else if (
   343              static_cast< ::google::protobuf::uint8>(tag) ==
   344              static_cast< ::google::protobuf::uint8>(81u /* 81 & 0xFF */)) {
   345            DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline<
   346                     double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
   347                   1, 82u, input, this->mutable_first())));
   348          } else {
   349            goto handle_unusual;
   350          }
   351          break;
   352        }
   353  
   354        // repeated double variance = 11 [packed = true];
   355        case 11: {
   356          if (static_cast< ::google::protobuf::uint8>(tag) ==
   357              static_cast< ::google::protobuf::uint8>(90u /* 90 & 0xFF */)) {
   358            DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive<
   359                     double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
   360                   input, this->mutable_variance())));
   361          } else if (
   362              static_cast< ::google::protobuf::uint8>(tag) ==
   363              static_cast< ::google::protobuf::uint8>(89u /* 89 & 0xFF */)) {
   364            DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline<
   365                     double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
   366                   1, 90u, input, this->mutable_variance())));
   367          } else {
   368            goto handle_unusual;
   369          }
   370          break;
   371        }
   372  
   373        default: {
   374        handle_unusual:
   375          if (tag == 0) {
   376            goto success;
   377          }
   378          DO_(::google::protobuf::internal::WireFormatLite::SkipField(
   379              input, tag, &unknown_fields_stream));
   380          break;
   381        }
   382      }
   383    }
   384  success:
   385    // @@protoc_insertion_point(parse_success:cockroach.roachpb.InternalTimeSeriesData)
   386    return true;
   387  failure:
   388    // @@protoc_insertion_point(parse_failure:cockroach.roachpb.InternalTimeSeriesData)
   389    return false;
   390  #undef DO_
   391  }
   392  
   393  void InternalTimeSeriesData::SerializeWithCachedSizes(
   394      ::google::protobuf::io::CodedOutputStream* output) const {
   395    // @@protoc_insertion_point(serialize_start:cockroach.roachpb.InternalTimeSeriesData)
   396    ::google::protobuf::uint32 cached_has_bits = 0;
   397    (void) cached_has_bits;
   398  
   399    cached_has_bits = _has_bits_[0];
   400    if (cached_has_bits & 0x00000001u) {
   401      ::google::protobuf::internal::WireFormatLite::WriteInt64(1, this->start_timestamp_nanos(), output);
   402    }
   403  
   404    if (cached_has_bits & 0x00000002u) {
   405      ::google::protobuf::internal::WireFormatLite::WriteInt64(2, this->sample_duration_nanos(), output);
   406    }
   407  
   408    for (unsigned int i = 0,
   409        n = static_cast<unsigned int>(this->samples_size()); i < n; i++) {
   410      ::google::protobuf::internal::WireFormatLite::WriteMessage(
   411        3,
   412        this->samples(static_cast<int>(i)),
   413        output);
   414    }
   415  
   416    // repeated int32 offset = 4 [packed = true];
   417    if (this->offset_size() > 0) {
   418      ::google::protobuf::internal::WireFormatLite::WriteTag(4, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output);
   419      output->WriteVarint32(static_cast< ::google::protobuf::uint32>(
   420          _offset_cached_byte_size_));
   421    }
   422    for (int i = 0, n = this->offset_size(); i < n; i++) {
   423      ::google::protobuf::internal::WireFormatLite::WriteInt32NoTag(
   424        this->offset(i), output);
   425    }
   426  
   427    // repeated double last = 5 [packed = true];
   428    if (this->last_size() > 0) {
   429      ::google::protobuf::internal::WireFormatLite::WriteTag(5, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output);
   430      output->WriteVarint32(static_cast< ::google::protobuf::uint32>(
   431          _last_cached_byte_size_));
   432      ::google::protobuf::internal::WireFormatLite::WriteDoubleArray(
   433        this->last().data(), this->last_size(), output);
   434    }
   435  
   436    // repeated uint32 count = 6 [packed = true];
   437    if (this->count_size() > 0) {
   438      ::google::protobuf::internal::WireFormatLite::WriteTag(6, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output);
   439      output->WriteVarint32(static_cast< ::google::protobuf::uint32>(
   440          _count_cached_byte_size_));
   441    }
   442    for (int i = 0, n = this->count_size(); i < n; i++) {
   443      ::google::protobuf::internal::WireFormatLite::WriteUInt32NoTag(
   444        this->count(i), output);
   445    }
   446  
   447    // repeated double sum = 7 [packed = true];
   448    if (this->sum_size() > 0) {
   449      ::google::protobuf::internal::WireFormatLite::WriteTag(7, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output);
   450      output->WriteVarint32(static_cast< ::google::protobuf::uint32>(
   451          _sum_cached_byte_size_));
   452      ::google::protobuf::internal::WireFormatLite::WriteDoubleArray(
   453        this->sum().data(), this->sum_size(), output);
   454    }
   455  
   456    // repeated double max = 8 [packed = true];
   457    if (this->max_size() > 0) {
   458      ::google::protobuf::internal::WireFormatLite::WriteTag(8, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output);
   459      output->WriteVarint32(static_cast< ::google::protobuf::uint32>(
   460          _max_cached_byte_size_));
   461      ::google::protobuf::internal::WireFormatLite::WriteDoubleArray(
   462        this->max().data(), this->max_size(), output);
   463    }
   464  
   465    // repeated double min = 9 [packed = true];
   466    if (this->min_size() > 0) {
   467      ::google::protobuf::internal::WireFormatLite::WriteTag(9, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output);
   468      output->WriteVarint32(static_cast< ::google::protobuf::uint32>(
   469          _min_cached_byte_size_));
   470      ::google::protobuf::internal::WireFormatLite::WriteDoubleArray(
   471        this->min().data(), this->min_size(), output);
   472    }
   473  
   474    // repeated double first = 10 [packed = true];
   475    if (this->first_size() > 0) {
   476      ::google::protobuf::internal::WireFormatLite::WriteTag(10, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output);
   477      output->WriteVarint32(static_cast< ::google::protobuf::uint32>(
   478          _first_cached_byte_size_));
   479      ::google::protobuf::internal::WireFormatLite::WriteDoubleArray(
   480        this->first().data(), this->first_size(), output);
   481    }
   482  
   483    // repeated double variance = 11 [packed = true];
   484    if (this->variance_size() > 0) {
   485      ::google::protobuf::internal::WireFormatLite::WriteTag(11, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output);
   486      output->WriteVarint32(static_cast< ::google::protobuf::uint32>(
   487          _variance_cached_byte_size_));
   488      ::google::protobuf::internal::WireFormatLite::WriteDoubleArray(
   489        this->variance().data(), this->variance_size(), output);
   490    }
   491  
   492    output->WriteRaw(_internal_metadata_.unknown_fields().data(),
   493                     static_cast<int>(_internal_metadata_.unknown_fields().size()));
   494    // @@protoc_insertion_point(serialize_end:cockroach.roachpb.InternalTimeSeriesData)
   495  }
   496  
   497  size_t InternalTimeSeriesData::ByteSizeLong() const {
   498  // @@protoc_insertion_point(message_byte_size_start:cockroach.roachpb.InternalTimeSeriesData)
   499    size_t total_size = 0;
   500  
   501    total_size += _internal_metadata_.unknown_fields().size();
   502  
   503    {
   504      unsigned int count = static_cast<unsigned int>(this->samples_size());
   505      total_size += 1UL * count;
   506      for (unsigned int i = 0; i < count; i++) {
   507        total_size +=
   508          ::google::protobuf::internal::WireFormatLite::MessageSize(
   509            this->samples(static_cast<int>(i)));
   510      }
   511    }
   512  
   513    // repeated int32 offset = 4 [packed = true];
   514    {
   515      size_t data_size = ::google::protobuf::internal::WireFormatLite::
   516        Int32Size(this->offset_);
   517      if (data_size > 0) {
   518        total_size += 1 +
   519          ::google::protobuf::internal::WireFormatLite::Int32Size(
   520              static_cast< ::google::protobuf::int32>(data_size));
   521      }
   522      int cached_size = ::google::protobuf::internal::ToCachedSize(data_size);
   523      GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
   524      _offset_cached_byte_size_ = cached_size;
   525      GOOGLE_SAFE_CONCURRENT_WRITES_END();
   526      total_size += data_size;
   527    }
   528  
   529    // repeated double last = 5 [packed = true];
   530    {
   531      unsigned int count = static_cast<unsigned int>(this->last_size());
   532      size_t data_size = 8UL * count;
   533      if (data_size > 0) {
   534        total_size += 1 +
   535          ::google::protobuf::internal::WireFormatLite::Int32Size(
   536              static_cast< ::google::protobuf::int32>(data_size));
   537      }
   538      int cached_size = ::google::protobuf::internal::ToCachedSize(data_size);
   539      GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
   540      _last_cached_byte_size_ = cached_size;
   541      GOOGLE_SAFE_CONCURRENT_WRITES_END();
   542      total_size += data_size;
   543    }
   544  
   545    // repeated uint32 count = 6 [packed = true];
   546    {
   547      size_t data_size = ::google::protobuf::internal::WireFormatLite::
   548        UInt32Size(this->count_);
   549      if (data_size > 0) {
   550        total_size += 1 +
   551          ::google::protobuf::internal::WireFormatLite::Int32Size(
   552              static_cast< ::google::protobuf::int32>(data_size));
   553      }
   554      int cached_size = ::google::protobuf::internal::ToCachedSize(data_size);
   555      GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
   556      _count_cached_byte_size_ = cached_size;
   557      GOOGLE_SAFE_CONCURRENT_WRITES_END();
   558      total_size += data_size;
   559    }
   560  
   561    // repeated double sum = 7 [packed = true];
   562    {
   563      unsigned int count = static_cast<unsigned int>(this->sum_size());
   564      size_t data_size = 8UL * count;
   565      if (data_size > 0) {
   566        total_size += 1 +
   567          ::google::protobuf::internal::WireFormatLite::Int32Size(
   568              static_cast< ::google::protobuf::int32>(data_size));
   569      }
   570      int cached_size = ::google::protobuf::internal::ToCachedSize(data_size);
   571      GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
   572      _sum_cached_byte_size_ = cached_size;
   573      GOOGLE_SAFE_CONCURRENT_WRITES_END();
   574      total_size += data_size;
   575    }
   576  
   577    // repeated double max = 8 [packed = true];
   578    {
   579      unsigned int count = static_cast<unsigned int>(this->max_size());
   580      size_t data_size = 8UL * count;
   581      if (data_size > 0) {
   582        total_size += 1 +
   583          ::google::protobuf::internal::WireFormatLite::Int32Size(
   584              static_cast< ::google::protobuf::int32>(data_size));
   585      }
   586      int cached_size = ::google::protobuf::internal::ToCachedSize(data_size);
   587      GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
   588      _max_cached_byte_size_ = cached_size;
   589      GOOGLE_SAFE_CONCURRENT_WRITES_END();
   590      total_size += data_size;
   591    }
   592  
   593    // repeated double min = 9 [packed = true];
   594    {
   595      unsigned int count = static_cast<unsigned int>(this->min_size());
   596      size_t data_size = 8UL * count;
   597      if (data_size > 0) {
   598        total_size += 1 +
   599          ::google::protobuf::internal::WireFormatLite::Int32Size(
   600              static_cast< ::google::protobuf::int32>(data_size));
   601      }
   602      int cached_size = ::google::protobuf::internal::ToCachedSize(data_size);
   603      GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
   604      _min_cached_byte_size_ = cached_size;
   605      GOOGLE_SAFE_CONCURRENT_WRITES_END();
   606      total_size += data_size;
   607    }
   608  
   609    // repeated double first = 10 [packed = true];
   610    {
   611      unsigned int count = static_cast<unsigned int>(this->first_size());
   612      size_t data_size = 8UL * count;
   613      if (data_size > 0) {
   614        total_size += 1 +
   615          ::google::protobuf::internal::WireFormatLite::Int32Size(
   616              static_cast< ::google::protobuf::int32>(data_size));
   617      }
   618      int cached_size = ::google::protobuf::internal::ToCachedSize(data_size);
   619      GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
   620      _first_cached_byte_size_ = cached_size;
   621      GOOGLE_SAFE_CONCURRENT_WRITES_END();
   622      total_size += data_size;
   623    }
   624  
   625    // repeated double variance = 11 [packed = true];
   626    {
   627      unsigned int count = static_cast<unsigned int>(this->variance_size());
   628      size_t data_size = 8UL * count;
   629      if (data_size > 0) {
   630        total_size += 1 +
   631          ::google::protobuf::internal::WireFormatLite::Int32Size(
   632              static_cast< ::google::protobuf::int32>(data_size));
   633      }
   634      int cached_size = ::google::protobuf::internal::ToCachedSize(data_size);
   635      GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
   636      _variance_cached_byte_size_ = cached_size;
   637      GOOGLE_SAFE_CONCURRENT_WRITES_END();
   638      total_size += data_size;
   639    }
   640  
   641    if (_has_bits_[0 / 32] & 3u) {
   642      if (has_start_timestamp_nanos()) {
   643        total_size += 1 +
   644          ::google::protobuf::internal::WireFormatLite::Int64Size(
   645            this->start_timestamp_nanos());
   646      }
   647  
   648      if (has_sample_duration_nanos()) {
   649        total_size += 1 +
   650          ::google::protobuf::internal::WireFormatLite::Int64Size(
   651            this->sample_duration_nanos());
   652      }
   653  
   654    }
   655    int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
   656    SetCachedSize(cached_size);
   657    return total_size;
   658  }
   659  
   660  void InternalTimeSeriesData::CheckTypeAndMergeFrom(
   661      const ::google::protobuf::MessageLite& from) {
   662    MergeFrom(*::google::protobuf::down_cast<const InternalTimeSeriesData*>(&from));
   663  }
   664  
   665  void InternalTimeSeriesData::MergeFrom(const InternalTimeSeriesData& from) {
   666  // @@protoc_insertion_point(class_specific_merge_from_start:cockroach.roachpb.InternalTimeSeriesData)
   667    GOOGLE_DCHECK_NE(&from, this);
   668    _internal_metadata_.MergeFrom(from._internal_metadata_);
   669    ::google::protobuf::uint32 cached_has_bits = 0;
   670    (void) cached_has_bits;
   671  
   672    samples_.MergeFrom(from.samples_);
   673    offset_.MergeFrom(from.offset_);
   674    last_.MergeFrom(from.last_);
   675    count_.MergeFrom(from.count_);
   676    sum_.MergeFrom(from.sum_);
   677    max_.MergeFrom(from.max_);
   678    min_.MergeFrom(from.min_);
   679    first_.MergeFrom(from.first_);
   680    variance_.MergeFrom(from.variance_);
   681    cached_has_bits = from._has_bits_[0];
   682    if (cached_has_bits & 3u) {
   683      if (cached_has_bits & 0x00000001u) {
   684        start_timestamp_nanos_ = from.start_timestamp_nanos_;
   685      }
   686      if (cached_has_bits & 0x00000002u) {
   687        sample_duration_nanos_ = from.sample_duration_nanos_;
   688      }
   689      _has_bits_[0] |= cached_has_bits;
   690    }
   691  }
   692  
   693  void InternalTimeSeriesData::CopyFrom(const InternalTimeSeriesData& from) {
   694  // @@protoc_insertion_point(class_specific_copy_from_start:cockroach.roachpb.InternalTimeSeriesData)
   695    if (&from == this) return;
   696    Clear();
   697    MergeFrom(from);
   698  }
   699  
   700  bool InternalTimeSeriesData::IsInitialized() const {
   701    return true;
   702  }
   703  
   704  void InternalTimeSeriesData::Swap(InternalTimeSeriesData* other) {
   705    if (other == this) return;
   706    InternalSwap(other);
   707  }
   708  void InternalTimeSeriesData::InternalSwap(InternalTimeSeriesData* other) {
   709    using std::swap;
   710    CastToBase(&samples_)->InternalSwap(CastToBase(&other->samples_));
   711    offset_.InternalSwap(&other->offset_);
   712    last_.InternalSwap(&other->last_);
   713    count_.InternalSwap(&other->count_);
   714    sum_.InternalSwap(&other->sum_);
   715    max_.InternalSwap(&other->max_);
   716    min_.InternalSwap(&other->min_);
   717    first_.InternalSwap(&other->first_);
   718    variance_.InternalSwap(&other->variance_);
   719    swap(start_timestamp_nanos_, other->start_timestamp_nanos_);
   720    swap(sample_duration_nanos_, other->sample_duration_nanos_);
   721    swap(_has_bits_[0], other->_has_bits_[0]);
   722    _internal_metadata_.Swap(&other->_internal_metadata_);
   723  }
   724  
   725  ::std::string InternalTimeSeriesData::GetTypeName() const {
   726    return "cockroach.roachpb.InternalTimeSeriesData";
   727  }
   728  
   729  
   730  // ===================================================================
   731  
   732  void InternalTimeSeriesSample::InitAsDefaultInstance() {
   733  }
   734  #if !defined(_MSC_VER) || _MSC_VER >= 1900
   735  const int InternalTimeSeriesSample::kOffsetFieldNumber;
   736  const int InternalTimeSeriesSample::kSumFieldNumber;
   737  const int InternalTimeSeriesSample::kCountFieldNumber;
   738  const int InternalTimeSeriesSample::kMaxFieldNumber;
   739  const int InternalTimeSeriesSample::kMinFieldNumber;
   740  #endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
   741  
   742  InternalTimeSeriesSample::InternalTimeSeriesSample()
   743    : ::google::protobuf::MessageLite(), _internal_metadata_(NULL) {
   744    ::google::protobuf::internal::InitSCC(
   745        &protobuf_roachpb_2finternal_2eproto::scc_info_InternalTimeSeriesSample.base);
   746    SharedCtor();
   747    // @@protoc_insertion_point(constructor:cockroach.roachpb.InternalTimeSeriesSample)
   748  }
   749  InternalTimeSeriesSample::InternalTimeSeriesSample(const InternalTimeSeriesSample& from)
   750    : ::google::protobuf::MessageLite(),
   751        _internal_metadata_(NULL),
   752        _has_bits_(from._has_bits_) {
   753    _internal_metadata_.MergeFrom(from._internal_metadata_);
   754    ::memcpy(&offset_, &from.offset_,
   755      static_cast<size_t>(reinterpret_cast<char*>(&min_) -
   756      reinterpret_cast<char*>(&offset_)) + sizeof(min_));
   757    // @@protoc_insertion_point(copy_constructor:cockroach.roachpb.InternalTimeSeriesSample)
   758  }
   759  
   760  void InternalTimeSeriesSample::SharedCtor() {
   761    ::memset(&offset_, 0, static_cast<size_t>(
   762        reinterpret_cast<char*>(&min_) -
   763        reinterpret_cast<char*>(&offset_)) + sizeof(min_));
   764  }
   765  
   766  InternalTimeSeriesSample::~InternalTimeSeriesSample() {
   767    // @@protoc_insertion_point(destructor:cockroach.roachpb.InternalTimeSeriesSample)
   768    SharedDtor();
   769  }
   770  
   771  void InternalTimeSeriesSample::SharedDtor() {
   772  }
   773  
   774  void InternalTimeSeriesSample::SetCachedSize(int size) const {
   775    _cached_size_.Set(size);
   776  }
   777  const InternalTimeSeriesSample& InternalTimeSeriesSample::default_instance() {
   778    ::google::protobuf::internal::InitSCC(&protobuf_roachpb_2finternal_2eproto::scc_info_InternalTimeSeriesSample.base);
   779    return *internal_default_instance();
   780  }
   781  
   782  
   783  void InternalTimeSeriesSample::Clear() {
   784  // @@protoc_insertion_point(message_clear_start:cockroach.roachpb.InternalTimeSeriesSample)
   785    ::google::protobuf::uint32 cached_has_bits = 0;
   786    // Prevent compiler warnings about cached_has_bits being unused
   787    (void) cached_has_bits;
   788  
   789    cached_has_bits = _has_bits_[0];
   790    if (cached_has_bits & 31u) {
   791      ::memset(&offset_, 0, static_cast<size_t>(
   792          reinterpret_cast<char*>(&min_) -
   793          reinterpret_cast<char*>(&offset_)) + sizeof(min_));
   794    }
   795    _has_bits_.Clear();
   796    _internal_metadata_.Clear();
   797  }
   798  
   799  bool InternalTimeSeriesSample::MergePartialFromCodedStream(
   800      ::google::protobuf::io::CodedInputStream* input) {
   801  #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
   802    ::google::protobuf::uint32 tag;
   803    ::google::protobuf::internal::LiteUnknownFieldSetter unknown_fields_setter(
   804        &_internal_metadata_);
   805    ::google::protobuf::io::StringOutputStream unknown_fields_output(
   806        unknown_fields_setter.buffer());
   807    ::google::protobuf::io::CodedOutputStream unknown_fields_stream(
   808        &unknown_fields_output, false);
   809    // @@protoc_insertion_point(parse_start:cockroach.roachpb.InternalTimeSeriesSample)
   810    for (;;) {
   811      ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
   812      tag = p.first;
   813      if (!p.second) goto handle_unusual;
   814      switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
   815        case 1: {
   816          if (static_cast< ::google::protobuf::uint8>(tag) ==
   817              static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
   818            set_has_offset();
   819            DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
   820                     ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
   821                   input, &offset_)));
   822          } else {
   823            goto handle_unusual;
   824          }
   825          break;
   826        }
   827  
   828        case 6: {
   829          if (static_cast< ::google::protobuf::uint8>(tag) ==
   830              static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) {
   831            set_has_count();
   832            DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
   833                     ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
   834                   input, &count_)));
   835          } else {
   836            goto handle_unusual;
   837          }
   838          break;
   839        }
   840  
   841        case 7: {
   842          if (static_cast< ::google::protobuf::uint8>(tag) ==
   843              static_cast< ::google::protobuf::uint8>(57u /* 57 & 0xFF */)) {
   844            set_has_sum();
   845            DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
   846                     double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
   847                   input, &sum_)));
   848          } else {
   849            goto handle_unusual;
   850          }
   851          break;
   852        }
   853  
   854        // optional double max = 8;
   855        case 8: {
   856          if (static_cast< ::google::protobuf::uint8>(tag) ==
   857              static_cast< ::google::protobuf::uint8>(65u /* 65 & 0xFF */)) {
   858            set_has_max();
   859            DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
   860                     double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
   861                   input, &max_)));
   862          } else {
   863            goto handle_unusual;
   864          }
   865          break;
   866        }
   867  
   868        // optional double min = 9;
   869        case 9: {
   870          if (static_cast< ::google::protobuf::uint8>(tag) ==
   871              static_cast< ::google::protobuf::uint8>(73u /* 73 & 0xFF */)) {
   872            set_has_min();
   873            DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
   874                     double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
   875                   input, &min_)));
   876          } else {
   877            goto handle_unusual;
   878          }
   879          break;
   880        }
   881  
   882        default: {
   883        handle_unusual:
   884          if (tag == 0) {
   885            goto success;
   886          }
   887          DO_(::google::protobuf::internal::WireFormatLite::SkipField(
   888              input, tag, &unknown_fields_stream));
   889          break;
   890        }
   891      }
   892    }
   893  success:
   894    // @@protoc_insertion_point(parse_success:cockroach.roachpb.InternalTimeSeriesSample)
   895    return true;
   896  failure:
   897    // @@protoc_insertion_point(parse_failure:cockroach.roachpb.InternalTimeSeriesSample)
   898    return false;
   899  #undef DO_
   900  }
   901  
   902  void InternalTimeSeriesSample::SerializeWithCachedSizes(
   903      ::google::protobuf::io::CodedOutputStream* output) const {
   904    // @@protoc_insertion_point(serialize_start:cockroach.roachpb.InternalTimeSeriesSample)
   905    ::google::protobuf::uint32 cached_has_bits = 0;
   906    (void) cached_has_bits;
   907  
   908    cached_has_bits = _has_bits_[0];
   909    if (cached_has_bits & 0x00000001u) {
   910      ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->offset(), output);
   911    }
   912  
   913    if (cached_has_bits & 0x00000002u) {
   914      ::google::protobuf::internal::WireFormatLite::WriteUInt32(6, this->count(), output);
   915    }
   916  
   917    if (cached_has_bits & 0x00000004u) {
   918      ::google::protobuf::internal::WireFormatLite::WriteDouble(7, this->sum(), output);
   919    }
   920  
   921    // optional double max = 8;
   922    if (cached_has_bits & 0x00000008u) {
   923      ::google::protobuf::internal::WireFormatLite::WriteDouble(8, this->max(), output);
   924    }
   925  
   926    // optional double min = 9;
   927    if (cached_has_bits & 0x00000010u) {
   928      ::google::protobuf::internal::WireFormatLite::WriteDouble(9, this->min(), output);
   929    }
   930  
   931    output->WriteRaw(_internal_metadata_.unknown_fields().data(),
   932                     static_cast<int>(_internal_metadata_.unknown_fields().size()));
   933    // @@protoc_insertion_point(serialize_end:cockroach.roachpb.InternalTimeSeriesSample)
   934  }
   935  
   936  size_t InternalTimeSeriesSample::ByteSizeLong() const {
   937  // @@protoc_insertion_point(message_byte_size_start:cockroach.roachpb.InternalTimeSeriesSample)
   938    size_t total_size = 0;
   939  
   940    total_size += _internal_metadata_.unknown_fields().size();
   941  
   942    if (_has_bits_[0 / 32] & 31u) {
   943      if (has_offset()) {
   944        total_size += 1 +
   945          ::google::protobuf::internal::WireFormatLite::Int32Size(
   946            this->offset());
   947      }
   948  
   949      if (has_count()) {
   950        total_size += 1 +
   951          ::google::protobuf::internal::WireFormatLite::UInt32Size(
   952            this->count());
   953      }
   954  
   955      if (has_sum()) {
   956        total_size += 1 + 8;
   957      }
   958  
   959      // optional double max = 8;
   960      if (has_max()) {
   961        total_size += 1 + 8;
   962      }
   963  
   964      // optional double min = 9;
   965      if (has_min()) {
   966        total_size += 1 + 8;
   967      }
   968  
   969    }
   970    int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
   971    SetCachedSize(cached_size);
   972    return total_size;
   973  }
   974  
   975  void InternalTimeSeriesSample::CheckTypeAndMergeFrom(
   976      const ::google::protobuf::MessageLite& from) {
   977    MergeFrom(*::google::protobuf::down_cast<const InternalTimeSeriesSample*>(&from));
   978  }
   979  
   980  void InternalTimeSeriesSample::MergeFrom(const InternalTimeSeriesSample& from) {
   981  // @@protoc_insertion_point(class_specific_merge_from_start:cockroach.roachpb.InternalTimeSeriesSample)
   982    GOOGLE_DCHECK_NE(&from, this);
   983    _internal_metadata_.MergeFrom(from._internal_metadata_);
   984    ::google::protobuf::uint32 cached_has_bits = 0;
   985    (void) cached_has_bits;
   986  
   987    cached_has_bits = from._has_bits_[0];
   988    if (cached_has_bits & 31u) {
   989      if (cached_has_bits & 0x00000001u) {
   990        offset_ = from.offset_;
   991      }
   992      if (cached_has_bits & 0x00000002u) {
   993        count_ = from.count_;
   994      }
   995      if (cached_has_bits & 0x00000004u) {
   996        sum_ = from.sum_;
   997      }
   998      if (cached_has_bits & 0x00000008u) {
   999        max_ = from.max_;
  1000      }
  1001      if (cached_has_bits & 0x00000010u) {
  1002        min_ = from.min_;
  1003      }
  1004      _has_bits_[0] |= cached_has_bits;
  1005    }
  1006  }
  1007  
  1008  void InternalTimeSeriesSample::CopyFrom(const InternalTimeSeriesSample& from) {
  1009  // @@protoc_insertion_point(class_specific_copy_from_start:cockroach.roachpb.InternalTimeSeriesSample)
  1010    if (&from == this) return;
  1011    Clear();
  1012    MergeFrom(from);
  1013  }
  1014  
  1015  bool InternalTimeSeriesSample::IsInitialized() const {
  1016    return true;
  1017  }
  1018  
  1019  void InternalTimeSeriesSample::Swap(InternalTimeSeriesSample* other) {
  1020    if (other == this) return;
  1021    InternalSwap(other);
  1022  }
  1023  void InternalTimeSeriesSample::InternalSwap(InternalTimeSeriesSample* other) {
  1024    using std::swap;
  1025    swap(offset_, other->offset_);
  1026    swap(count_, other->count_);
  1027    swap(sum_, other->sum_);
  1028    swap(max_, other->max_);
  1029    swap(min_, other->min_);
  1030    swap(_has_bits_[0], other->_has_bits_[0]);
  1031    _internal_metadata_.Swap(&other->_internal_metadata_);
  1032  }
  1033  
  1034  ::std::string InternalTimeSeriesSample::GetTypeName() const {
  1035    return "cockroach.roachpb.InternalTimeSeriesSample";
  1036  }
  1037  
  1038  
  1039  // @@protoc_insertion_point(namespace_scope)
  1040  }  // namespace roachpb
  1041  }  // namespace cockroach
  1042  namespace google {
  1043  namespace protobuf {
  1044  template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::cockroach::roachpb::InternalTimeSeriesData* Arena::CreateMaybeMessage< ::cockroach::roachpb::InternalTimeSeriesData >(Arena* arena) {
  1045    return Arena::CreateInternal< ::cockroach::roachpb::InternalTimeSeriesData >(arena);
  1046  }
  1047  template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::cockroach::roachpb::InternalTimeSeriesSample* Arena::CreateMaybeMessage< ::cockroach::roachpb::InternalTimeSeriesSample >(Arena* arena) {
  1048    return Arena::CreateInternal< ::cockroach::roachpb::InternalTimeSeriesSample >(arena);
  1049  }
  1050  }  // namespace protobuf
  1051  }  // namespace google
  1052  
  1053  // @@protoc_insertion_point(global_scope)