YugabyteDB (2.13.0.0-b42, bfc6a6643e7399ac8a0e81d06a3ee6d6571b33ab)

Coverage Report

Created: 2022-03-09 17:30

/Users/deen/code/yugabyte-db/build/debugcov-clang-dynamic-arm64-ninja/src/yb/fs/fs.pb.cc
Line
Count
Source (jump to first uncovered line)
1
// Generated by the protocol buffer compiler.  DO NOT EDIT!
2
// source: yb/fs/fs.proto
3
4
#include "yb/fs/fs.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/stubs/once.h>
11
#include <google/protobuf/io/coded_stream.h>
12
#include <google/protobuf/wire_format_lite_inl.h>
13
#include <google/protobuf/descriptor.h>
14
#include <google/protobuf/generated_message_reflection.h>
15
#include <google/protobuf/reflection_ops.h>
16
#include <google/protobuf/wire_format.h>
17
// This is a temporary google only hack
18
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
19
#include "third_party/protobuf/version.h"
20
#endif
21
#include "yb/util/protobuf-annotations.h"
22
// @@protoc_insertion_point(includes)
23
namespace yb {
24
class InstanceMetadataPBDefaultTypeInternal {
25
 public:
26
  ::google::protobuf::internal::ExplicitlyConstructed<InstanceMetadataPB>
27
      _instance;
28
} _InstanceMetadataPB_default_instance_;
29
class PathSetPBDefaultTypeInternal {
30
 public:
31
  ::google::protobuf::internal::ExplicitlyConstructed<PathSetPB>
32
      _instance;
33
} _PathSetPB_default_instance_;
34
class PathInstanceMetadataPBDefaultTypeInternal {
35
 public:
36
  ::google::protobuf::internal::ExplicitlyConstructed<PathInstanceMetadataPB>
37
      _instance;
38
} _PathInstanceMetadataPB_default_instance_;
39
class BlockIdPBDefaultTypeInternal {
40
 public:
41
  ::google::protobuf::internal::ExplicitlyConstructed<BlockIdPB>
42
      _instance;
43
} _BlockIdPB_default_instance_;
44
class BlockRecordPBDefaultTypeInternal {
45
 public:
46
  ::google::protobuf::internal::ExplicitlyConstructed<BlockRecordPB>
47
      _instance;
48
} _BlockRecordPB_default_instance_;
49
}  // namespace yb
50
namespace protobuf_yb_2ffs_2ffs_2eproto {
51
17.1k
void InitDefaultsInstanceMetadataPBImpl() {
52
17.1k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
53
54
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
55
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
56
#else
57
17.1k
  ::google::protobuf::internal::InitProtobufDefaults();
58
17.1k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
59
17.1k
  {
60
17.1k
    void* ptr = &::yb::_InstanceMetadataPB_default_instance_;
61
17.1k
    new (ptr) ::yb::InstanceMetadataPB();
62
17.1k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
63
17.1k
  }
64
17.1k
  ::yb::InstanceMetadataPB::InitAsDefaultInstance();
65
17.1k
}
66
67
58.6k
void InitDefaultsInstanceMetadataPB() {
68
58.6k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
69
58.6k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsInstanceMetadataPBImpl);
70
58.6k
}
71
72
17.1k
void InitDefaultsPathSetPBImpl() {
73
17.1k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
74
75
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
76
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
77
#else
78
17.1k
  ::google::protobuf::internal::InitProtobufDefaults();
79
17.1k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
80
17.1k
  {
81
17.1k
    void* ptr = &::yb::_PathSetPB_default_instance_;
82
17.1k
    new (ptr) ::yb::PathSetPB();
83
17.1k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
84
17.1k
  }
85
17.1k
  ::yb::PathSetPB::InitAsDefaultInstance();
86
17.1k
}
87
88
34.2k
void InitDefaultsPathSetPB() {
89
34.2k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
90
34.2k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsPathSetPBImpl);
91
34.2k
}
92
93
17.1k
void InitDefaultsPathInstanceMetadataPBImpl() {
94
17.1k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
95
96
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
97
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
98
#else
99
17.1k
  ::google::protobuf::internal::InitProtobufDefaults();
100
17.1k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
101
17.1k
  protobuf_yb_2ffs_2ffs_2eproto::InitDefaultsPathSetPB();
102
17.1k
  {
103
17.1k
    void* ptr = &::yb::_PathInstanceMetadataPB_default_instance_;
104
17.1k
    new (ptr) ::yb::PathInstanceMetadataPB();
105
17.1k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
106
17.1k
  }
107
17.1k
  ::yb::PathInstanceMetadataPB::InitAsDefaultInstance();
108
17.1k
}
109
110
17.1k
void InitDefaultsPathInstanceMetadataPB() {
111
17.1k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
112
17.1k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsPathInstanceMetadataPBImpl);
113
17.1k
}
114
115
17.1k
void InitDefaultsBlockIdPBImpl() {
116
17.1k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
117
118
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
119
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
120
#else
121
17.1k
  ::google::protobuf::internal::InitProtobufDefaults();
122
17.1k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
123
17.1k
  {
124
17.1k
    void* ptr = &::yb::_BlockIdPB_default_instance_;
125
17.1k
    new (ptr) ::yb::BlockIdPB();
126
17.1k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
127
17.1k
  }
128
17.1k
  ::yb::BlockIdPB::InitAsDefaultInstance();
129
17.1k
}
130
131
34.2k
void InitDefaultsBlockIdPB() {
132
34.2k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
133
34.2k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsBlockIdPBImpl);
134
34.2k
}
135
136
17.1k
void InitDefaultsBlockRecordPBImpl() {
137
17.1k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
138
139
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
140
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
141
#else
142
17.1k
  ::google::protobuf::internal::InitProtobufDefaults();
143
17.1k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
144
17.1k
  protobuf_yb_2ffs_2ffs_2eproto::InitDefaultsBlockIdPB();
145
17.1k
  {
146
17.1k
    void* ptr = &::yb::_BlockRecordPB_default_instance_;
147
17.1k
    new (ptr) ::yb::BlockRecordPB();
148
17.1k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
149
17.1k
  }
150
17.1k
  ::yb::BlockRecordPB::InitAsDefaultInstance();
151
17.1k
}
152
153
17.1k
void InitDefaultsBlockRecordPB() {
154
17.1k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
155
17.1k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsBlockRecordPBImpl);
156
17.1k
}
157
158
::google::protobuf::Metadata file_level_metadata[5];
159
const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors[1];
160
161
const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
162
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::InstanceMetadataPB, _has_bits_),
163
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::InstanceMetadataPB, _internal_metadata_),
164
  ~0u,  // no _extensions_
165
  ~0u,  // no _oneof_case_
166
  ~0u,  // no _weak_field_map_
167
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::InstanceMetadataPB, uuid_),
168
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::InstanceMetadataPB, format_stamp_),
169
  0,
170
  1,
171
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PathSetPB, _has_bits_),
172
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PathSetPB, _internal_metadata_),
173
  ~0u,  // no _extensions_
174
  ~0u,  // no _oneof_case_
175
  ~0u,  // no _weak_field_map_
176
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PathSetPB, uuid_),
177
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PathSetPB, all_uuids_),
178
  0,
179
  ~0u,
180
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PathInstanceMetadataPB, _has_bits_),
181
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PathInstanceMetadataPB, _internal_metadata_),
182
  ~0u,  // no _extensions_
183
  ~0u,  // no _oneof_case_
184
  ~0u,  // no _weak_field_map_
185
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PathInstanceMetadataPB, path_set_),
186
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PathInstanceMetadataPB, block_manager_type_),
187
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PathInstanceMetadataPB, filesystem_block_size_bytes_),
188
  1,
189
  0,
190
  2,
191
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::BlockIdPB, _has_bits_),
192
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::BlockIdPB, _internal_metadata_),
193
  ~0u,  // no _extensions_
194
  ~0u,  // no _oneof_case_
195
  ~0u,  // no _weak_field_map_
196
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::BlockIdPB, id_),
197
  0,
198
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::BlockRecordPB, _has_bits_),
199
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::BlockRecordPB, _internal_metadata_),
200
  ~0u,  // no _extensions_
201
  ~0u,  // no _oneof_case_
202
  ~0u,  // no _weak_field_map_
203
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::BlockRecordPB, block_id_),
204
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::BlockRecordPB, op_type_),
205
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::BlockRecordPB, timestamp_us_),
206
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::BlockRecordPB, offset_),
207
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::BlockRecordPB, length_),
208
  0,
209
  4,
210
  1,
211
  2,
212
  3,
213
};
214
static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
215
  { 0, 7, sizeof(::yb::InstanceMetadataPB)},
216
  { 9, 16, sizeof(::yb::PathSetPB)},
217
  { 18, 26, sizeof(::yb::PathInstanceMetadataPB)},
218
  { 29, 35, sizeof(::yb::BlockIdPB)},
219
  { 36, 46, sizeof(::yb::BlockRecordPB)},
220
};
221
222
static ::google::protobuf::Message const * const file_default_instances[] = {
223
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::_InstanceMetadataPB_default_instance_),
224
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::_PathSetPB_default_instance_),
225
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::_PathInstanceMetadataPB_default_instance_),
226
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::_BlockIdPB_default_instance_),
227
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::_BlockRecordPB_default_instance_),
228
};
229
230
10.9k
void protobuf_AssignDescriptors() {
231
10.9k
  AddDescriptors();
232
10.9k
  ::google::protobuf::MessageFactory* factory = NULL;
233
10.9k
  AssignDescriptors(
234
10.9k
      "yb/fs/fs.proto", schemas, file_default_instances, TableStruct::offsets, factory,
235
10.9k
      file_level_metadata, file_level_enum_descriptors, NULL);
236
10.9k
}
237
238
83.8k
void protobuf_AssignDescriptorsOnce() {
239
83.8k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
240
83.8k
  ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors);
241
83.8k
}
242
243
void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD;
244
0
void protobuf_RegisterTypes(const ::std::string&) {
245
0
  protobuf_AssignDescriptorsOnce();
246
0
  ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 5);
247
0
}
248
249
17.1k
void AddDescriptorsImpl() {
250
17.1k
  InitDefaults();
251
17.1k
  static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
252
17.1k
      "\n\016yb/fs/fs.proto\022\002yb\"8\n\022InstanceMetadata"
253
17.1k
      "PB\022\014\n\004uuid\030\001 \002(\014\022\024\n\014format_stamp\030\002 \002(\t\","
254
17.1k
      "\n\tPathSetPB\022\014\n\004uuid\030\001 \002(\014\022\021\n\tall_uuids\030\002"
255
17.1k
      " \003(\014\"z\n\026PathInstanceMetadataPB\022\037\n\010path_s"
256
17.1k
      "et\030\001 \002(\0132\r.yb.PathSetPB\022\032\n\022block_manager"
257
17.1k
      "_type\030\002 \002(\t\022#\n\033filesystem_block_size_byt"
258
17.1k
      "es\030\003 \002(\004\"\027\n\tBlockIdPB\022\n\n\002id\030\001 \002(\006\"\214\001\n\rBl"
259
17.1k
      "ockRecordPB\022\037\n\010block_id\030\001 \002(\0132\r.yb.Block"
260
17.1k
      "IdPB\022$\n\007op_type\030\002 \002(\0162\023.yb.BlockRecordTy"
261
17.1k
      "pe\022\024\n\014timestamp_us\030\003 \002(\004\022\016\n\006offset\030\004 \001(\003"
262
17.1k
      "\022\016\n\006length\030\005 \001(\003*6\n\017BlockRecordType\022\013\n\007U"
263
17.1k
      "NKNOWN\020\000\022\n\n\006CREATE\020\001\022\n\n\006DELETE\020\002B\010\n\006org."
264
17.1k
      "yb"
265
17.1k
  };
266
17.1k
  ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
267
17.1k
      descriptor, 482);
268
17.1k
  ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
269
17.1k
    "yb/fs/fs.proto", &protobuf_RegisterTypes);
270
17.1k
}
271
272
28.1k
void AddDescriptors() {
273
28.1k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
274
28.1k
  ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl);
275
28.1k
}
276
// Force AddDescriptors() to be called at dynamic initialization time.
277
struct StaticDescriptorInitializer {
278
17.1k
  StaticDescriptorInitializer() {
279
17.1k
    AddDescriptors();
280
17.1k
  }
281
} static_descriptor_initializer;
282
}  // namespace protobuf_yb_2ffs_2ffs_2eproto
283
namespace yb {
284
0
const ::google::protobuf::EnumDescriptor* BlockRecordType_descriptor() {
285
0
  protobuf_yb_2ffs_2ffs_2eproto::protobuf_AssignDescriptorsOnce();
286
0
  return protobuf_yb_2ffs_2ffs_2eproto::file_level_enum_descriptors[0];
287
0
}
288
0
bool BlockRecordType_IsValid(int value) {
289
0
  switch (value) {
290
0
    case 0:
291
0
    case 1:
292
0
    case 2:
293
0
      return true;
294
0
    default:
295
0
      return false;
296
0
  }
297
0
}
298
299
300
// ===================================================================
301
302
17.1k
void InstanceMetadataPB::InitAsDefaultInstance() {
303
17.1k
}
304
#if !defined(_MSC_VER) || _MSC_VER >= 1900
305
const int InstanceMetadataPB::kUuidFieldNumber;
306
const int InstanceMetadataPB::kFormatStampFieldNumber;
307
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
308
309
InstanceMetadataPB::InstanceMetadataPB()
310
58.6k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
311
41.4k
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
312
41.4k
    ::protobuf_yb_2ffs_2ffs_2eproto::InitDefaultsInstanceMetadataPB();
313
41.4k
  }
314
58.6k
  SharedCtor();
315
  // @@protoc_insertion_point(constructor:yb.InstanceMetadataPB)
316
58.6k
}
317
InstanceMetadataPB::InstanceMetadataPB(const InstanceMetadataPB& from)
318
  : ::google::protobuf::Message(),
319
      _internal_metadata_(NULL),
320
      _has_bits_(from._has_bits_),
321
0
      _cached_size_(0) {
322
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
323
0
  uuid_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
324
0
  if (from.has_uuid()) {
325
0
    uuid_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.uuid_);
326
0
  }
327
0
  format_stamp_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
328
0
  if (from.has_format_stamp()) {
329
0
    format_stamp_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.format_stamp_);
330
0
  }
331
  // @@protoc_insertion_point(copy_constructor:yb.InstanceMetadataPB)
332
0
}
333
334
58.6k
void InstanceMetadataPB::SharedCtor() {
335
58.6k
  _cached_size_ = 0;
336
58.6k
  uuid_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
337
58.6k
  format_stamp_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
338
58.6k
}
339
340
24.1k
InstanceMetadataPB::~InstanceMetadataPB() {
341
  // @@protoc_insertion_point(destructor:yb.InstanceMetadataPB)
342
24.1k
  SharedDtor();
343
24.1k
}
344
345
24.1k
void InstanceMetadataPB::SharedDtor() {
346
24.1k
  uuid_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
347
24.1k
  format_stamp_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
348
24.1k
}
349
350
0
void InstanceMetadataPB::SetCachedSize(int size) const {
351
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
352
0
  _cached_size_ = size;
353
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
354
0
}
355
0
const ::google::protobuf::Descriptor* InstanceMetadataPB::descriptor() {
356
0
  ::protobuf_yb_2ffs_2ffs_2eproto::protobuf_AssignDescriptorsOnce();
357
0
  return ::protobuf_yb_2ffs_2ffs_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
358
0
}
359
360
0
const InstanceMetadataPB& InstanceMetadataPB::default_instance() {
361
0
  ::protobuf_yb_2ffs_2ffs_2eproto::InitDefaultsInstanceMetadataPB();
362
0
  return *internal_default_instance();
363
0
}
364
365
0
InstanceMetadataPB* InstanceMetadataPB::New(::google::protobuf::Arena* arena) const {
366
0
  InstanceMetadataPB* n = new InstanceMetadataPB;
367
0
  if (arena != NULL) {
368
0
    arena->Own(n);
369
0
  }
370
0
  return n;
371
0
}
372
373
17.8k
void InstanceMetadataPB::Clear() {
374
// @@protoc_insertion_point(message_clear_start:yb.InstanceMetadataPB)
375
17.8k
  ::google::protobuf::uint32 cached_has_bits = 0;
376
  // Prevent compiler warnings about cached_has_bits being unused
377
17.8k
  (void) cached_has_bits;
378
379
17.8k
  cached_has_bits = _has_bits_[0];
380
17.8k
  if (cached_has_bits & 3u) {
381
0
    if (cached_has_bits & 0x00000001u) {
382
0
      GOOGLE_DCHECK(!uuid_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
383
0
      (*uuid_.UnsafeRawStringPointer())->clear();
384
0
    }
385
0
    if (cached_has_bits & 0x00000002u) {
386
0
      GOOGLE_DCHECK(!format_stamp_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
387
0
      (*format_stamp_.UnsafeRawStringPointer())->clear();
388
0
    }
389
0
  }
390
17.8k
  _has_bits_.Clear();
391
17.8k
  _internal_metadata_.Clear();
392
17.8k
}
393
394
bool InstanceMetadataPB::MergePartialFromCodedStream(
395
17.8k
    ::google::protobuf::io::CodedInputStream* input) {
396
35.7k
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
397
17.8k
  ::google::protobuf::uint32 tag;
398
  // @@protoc_insertion_point(parse_start:yb.InstanceMetadataPB)
399
53.6k
  for (;;) {
400
53.6k
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
401
53.6k
    tag = p.first;
402
53.6k
    if (!p.second) goto handle_unusual;
403
35.7k
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
404
      // required bytes uuid = 1;
405
17.8k
      case 1: {
406
17.8k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
407
17.8k
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
408
17.8k
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
409
17.8k
                input, this->mutable_uuid()));
410
0
        } else {
411
0
          goto handle_unusual;
412
0
        }
413
17.8k
        break;
414
17.8k
      }
415
416
      // required string format_stamp = 2;
417
17.8k
      case 2: {
418
17.8k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
419
17.8k
            static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
420
17.8k
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
421
17.8k
                input, this->mutable_format_stamp()));
422
17.8k
          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
423
17.8k
            this->format_stamp().data(), static_cast<int>(this->format_stamp().length()),
424
17.8k
            ::google::protobuf::internal::WireFormat::PARSE,
425
17.8k
            "yb.InstanceMetadataPB.format_stamp");
426
0
        } else {
427
0
          goto handle_unusual;
428
0
        }
429
17.8k
        break;
430
17.8k
      }
431
432
0
      default: {
433
17.8k
      handle_unusual:
434
17.8k
        if (tag == 0) {
435
17.8k
          goto success;
436
17.8k
        }
437
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
438
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
439
0
        break;
440
0
      }
441
35.7k
    }
442
35.7k
  }
443
17.8k
success:
444
  // @@protoc_insertion_point(parse_success:yb.InstanceMetadataPB)
445
17.8k
  return true;
446
0
failure:
447
  // @@protoc_insertion_point(parse_failure:yb.InstanceMetadataPB)
448
0
  return false;
449
17.8k
#undef DO_
450
17.8k
}
451
452
void InstanceMetadataPB::SerializeWithCachedSizes(
453
0
    ::google::protobuf::io::CodedOutputStream* output) const {
454
  // @@protoc_insertion_point(serialize_start:yb.InstanceMetadataPB)
455
0
  ::google::protobuf::uint32 cached_has_bits = 0;
456
0
  (void) cached_has_bits;
457
458
0
  cached_has_bits = _has_bits_[0];
459
  // required bytes uuid = 1;
460
0
  if (cached_has_bits & 0x00000001u) {
461
0
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
462
0
      1, this->uuid(), output);
463
0
  }
464
465
  // required string format_stamp = 2;
466
0
  if (cached_has_bits & 0x00000002u) {
467
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
468
0
      this->format_stamp().data(), static_cast<int>(this->format_stamp().length()),
469
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
470
0
      "yb.InstanceMetadataPB.format_stamp");
471
0
    ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
472
0
      2, this->format_stamp(), output);
473
0
  }
474
475
0
  if (_internal_metadata_.have_unknown_fields()) {
476
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
477
0
        _internal_metadata_.unknown_fields(), output);
478
0
  }
479
  // @@protoc_insertion_point(serialize_end:yb.InstanceMetadataPB)
480
0
}
481
482
::google::protobuf::uint8* InstanceMetadataPB::InternalSerializeWithCachedSizesToArray(
483
12.1k
    bool deterministic, ::google::protobuf::uint8* target) const {
484
12.1k
  (void)deterministic; // Unused
485
  // @@protoc_insertion_point(serialize_to_array_start:yb.InstanceMetadataPB)
486
12.1k
  ::google::protobuf::uint32 cached_has_bits = 0;
487
12.1k
  (void) cached_has_bits;
488
489
12.1k
  cached_has_bits = _has_bits_[0];
490
  // required bytes uuid = 1;
491
12.1k
  if (cached_has_bits & 0x00000001u) {
492
12.1k
    target =
493
12.1k
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
494
12.1k
        1, this->uuid(), target);
495
12.1k
  }
496
497
  // required string format_stamp = 2;
498
12.1k
  if (cached_has_bits & 0x00000002u) {
499
12.1k
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
500
12.1k
      this->format_stamp().data(), static_cast<int>(this->format_stamp().length()),
501
12.1k
      ::google::protobuf::internal::WireFormat::SERIALIZE,
502
12.1k
      "yb.InstanceMetadataPB.format_stamp");
503
12.1k
    target =
504
12.1k
      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
505
12.1k
        2, this->format_stamp(), target);
506
12.1k
  }
507
508
12.1k
  if (_internal_metadata_.have_unknown_fields()) {
509
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
510
0
        _internal_metadata_.unknown_fields(), target);
511
0
  }
512
  // @@protoc_insertion_point(serialize_to_array_end:yb.InstanceMetadataPB)
513
12.1k
  return target;
514
12.1k
}
515
516
0
size_t InstanceMetadataPB::RequiredFieldsByteSizeFallback() const {
517
// @@protoc_insertion_point(required_fields_byte_size_fallback_start:yb.InstanceMetadataPB)
518
0
  size_t total_size = 0;
519
520
0
  if (has_uuid()) {
521
    // required bytes uuid = 1;
522
0
    total_size += 1 +
523
0
      ::google::protobuf::internal::WireFormatLite::BytesSize(
524
0
        this->uuid());
525
0
  }
526
527
0
  if (has_format_stamp()) {
528
    // required string format_stamp = 2;
529
0
    total_size += 1 +
530
0
      ::google::protobuf::internal::WireFormatLite::StringSize(
531
0
        this->format_stamp());
532
0
  }
533
534
0
  return total_size;
535
0
}
536
12.1k
size_t InstanceMetadataPB::ByteSizeLong() const {
537
// @@protoc_insertion_point(message_byte_size_start:yb.InstanceMetadataPB)
538
12.1k
  size_t total_size = 0;
539
540
12.1k
  if (_internal_metadata_.have_unknown_fields()) {
541
0
    total_size +=
542
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
543
0
        _internal_metadata_.unknown_fields());
544
0
  }
545
12.1k
  if (((_has_bits_[0] & 0x00000003) ^ 0x00000003) == 0) {  // All required fields are present.
546
    // required bytes uuid = 1;
547
12.1k
    total_size += 1 +
548
12.1k
      ::google::protobuf::internal::WireFormatLite::BytesSize(
549
12.1k
        this->uuid());
550
551
    // required string format_stamp = 2;
552
12.1k
    total_size += 1 +
553
12.1k
      ::google::protobuf::internal::WireFormatLite::StringSize(
554
12.1k
        this->format_stamp());
555
556
0
  } else {
557
0
    total_size += RequiredFieldsByteSizeFallback();
558
0
  }
559
12.1k
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
560
12.1k
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
561
12.1k
  _cached_size_ = cached_size;
562
12.1k
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
563
12.1k
  return total_size;
564
12.1k
}
565
566
0
void InstanceMetadataPB::MergeFrom(const ::google::protobuf::Message& from) {
567
// @@protoc_insertion_point(generalized_merge_from_start:yb.InstanceMetadataPB)
568
0
  GOOGLE_DCHECK_NE(&from, this);
569
0
  const InstanceMetadataPB* source =
570
0
      ::google::protobuf::internal::DynamicCastToGenerated<const InstanceMetadataPB>(
571
0
          &from);
572
0
  if (source == NULL) {
573
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.InstanceMetadataPB)
574
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
575
0
  } else {
576
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.InstanceMetadataPB)
577
0
    MergeFrom(*source);
578
0
  }
579
0
}
580
581
0
void InstanceMetadataPB::MergeFrom(const InstanceMetadataPB& from) {
582
// @@protoc_insertion_point(class_specific_merge_from_start:yb.InstanceMetadataPB)
583
0
  GOOGLE_DCHECK_NE(&from, this);
584
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
585
0
  ::google::protobuf::uint32 cached_has_bits = 0;
586
0
  (void) cached_has_bits;
587
588
0
  cached_has_bits = from._has_bits_[0];
589
0
  if (cached_has_bits & 3u) {
590
0
    if (cached_has_bits & 0x00000001u) {
591
0
      set_has_uuid();
592
0
      uuid_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.uuid_);
593
0
    }
594
0
    if (cached_has_bits & 0x00000002u) {
595
0
      set_has_format_stamp();
596
0
      format_stamp_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.format_stamp_);
597
0
    }
598
0
  }
599
0
}
600
601
0
void InstanceMetadataPB::CopyFrom(const ::google::protobuf::Message& from) {
602
// @@protoc_insertion_point(generalized_copy_from_start:yb.InstanceMetadataPB)
603
0
  if (&from == this) return;
604
0
  Clear();
605
0
  MergeFrom(from);
606
0
}
607
608
0
void InstanceMetadataPB::CopyFrom(const InstanceMetadataPB& from) {
609
// @@protoc_insertion_point(class_specific_copy_from_start:yb.InstanceMetadataPB)
610
0
  if (&from == this) return;
611
0
  Clear();
612
0
  MergeFrom(from);
613
0
}
614
615
29.9k
bool InstanceMetadataPB::IsInitialized() const {
616
29.9k
  if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false;
617
29.9k
  return true;
618
29.9k
}
619
620
0
void InstanceMetadataPB::Swap(InstanceMetadataPB* other) {
621
0
  if (other == this) return;
622
0
  InternalSwap(other);
623
0
}
624
0
void InstanceMetadataPB::InternalSwap(InstanceMetadataPB* other) {
625
0
  using std::swap;
626
0
  uuid_.Swap(&other->uuid_);
627
0
  format_stamp_.Swap(&other->format_stamp_);
628
0
  swap(_has_bits_[0], other->_has_bits_[0]);
629
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
630
0
  swap(_cached_size_, other->_cached_size_);
631
0
}
632
633
83.8k
::google::protobuf::Metadata InstanceMetadataPB::GetMetadata() const {
634
83.8k
  protobuf_yb_2ffs_2ffs_2eproto::protobuf_AssignDescriptorsOnce();
635
83.8k
  return ::protobuf_yb_2ffs_2ffs_2eproto::file_level_metadata[kIndexInFileMessages];
636
83.8k
}
637
638
639
// ===================================================================
640
641
17.1k
void PathSetPB::InitAsDefaultInstance() {
642
17.1k
}
643
#if !defined(_MSC_VER) || _MSC_VER >= 1900
644
const int PathSetPB::kUuidFieldNumber;
645
const int PathSetPB::kAllUuidsFieldNumber;
646
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
647
648
PathSetPB::PathSetPB()
649
17.1k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
650
0
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
651
0
    ::protobuf_yb_2ffs_2ffs_2eproto::InitDefaultsPathSetPB();
652
0
  }
653
17.1k
  SharedCtor();
654
  // @@protoc_insertion_point(constructor:yb.PathSetPB)
655
17.1k
}
656
PathSetPB::PathSetPB(const PathSetPB& from)
657
  : ::google::protobuf::Message(),
658
      _internal_metadata_(NULL),
659
      _has_bits_(from._has_bits_),
660
      _cached_size_(0),
661
0
      all_uuids_(from.all_uuids_) {
662
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
663
0
  uuid_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
664
0
  if (from.has_uuid()) {
665
0
    uuid_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.uuid_);
666
0
  }
667
  // @@protoc_insertion_point(copy_constructor:yb.PathSetPB)
668
0
}
669
670
17.1k
void PathSetPB::SharedCtor() {
671
17.1k
  _cached_size_ = 0;
672
17.1k
  uuid_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
673
17.1k
}
674
675
0
PathSetPB::~PathSetPB() {
676
  // @@protoc_insertion_point(destructor:yb.PathSetPB)
677
0
  SharedDtor();
678
0
}
679
680
0
void PathSetPB::SharedDtor() {
681
0
  uuid_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
682
0
}
683
684
0
void PathSetPB::SetCachedSize(int size) const {
685
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
686
0
  _cached_size_ = size;
687
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
688
0
}
689
0
const ::google::protobuf::Descriptor* PathSetPB::descriptor() {
690
0
  ::protobuf_yb_2ffs_2ffs_2eproto::protobuf_AssignDescriptorsOnce();
691
0
  return ::protobuf_yb_2ffs_2ffs_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
692
0
}
693
694
0
const PathSetPB& PathSetPB::default_instance() {
695
0
  ::protobuf_yb_2ffs_2ffs_2eproto::InitDefaultsPathSetPB();
696
0
  return *internal_default_instance();
697
0
}
698
699
0
PathSetPB* PathSetPB::New(::google::protobuf::Arena* arena) const {
700
0
  PathSetPB* n = new PathSetPB;
701
0
  if (arena != NULL) {
702
0
    arena->Own(n);
703
0
  }
704
0
  return n;
705
0
}
706
707
0
void PathSetPB::Clear() {
708
// @@protoc_insertion_point(message_clear_start:yb.PathSetPB)
709
0
  ::google::protobuf::uint32 cached_has_bits = 0;
710
  // Prevent compiler warnings about cached_has_bits being unused
711
0
  (void) cached_has_bits;
712
713
0
  all_uuids_.Clear();
714
0
  cached_has_bits = _has_bits_[0];
715
0
  if (cached_has_bits & 0x00000001u) {
716
0
    GOOGLE_DCHECK(!uuid_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
717
0
    (*uuid_.UnsafeRawStringPointer())->clear();
718
0
  }
719
0
  _has_bits_.Clear();
720
0
  _internal_metadata_.Clear();
721
0
}
722
723
bool PathSetPB::MergePartialFromCodedStream(
724
0
    ::google::protobuf::io::CodedInputStream* input) {
725
0
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
726
0
  ::google::protobuf::uint32 tag;
727
  // @@protoc_insertion_point(parse_start:yb.PathSetPB)
728
0
  for (;;) {
729
0
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
730
0
    tag = p.first;
731
0
    if (!p.second) goto handle_unusual;
732
0
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
733
      // required bytes uuid = 1;
734
0
      case 1: {
735
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
736
0
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
737
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
738
0
                input, this->mutable_uuid()));
739
0
        } else {
740
0
          goto handle_unusual;
741
0
        }
742
0
        break;
743
0
      }
744
745
      // repeated bytes all_uuids = 2;
746
0
      case 2: {
747
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
748
0
            static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
749
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
750
0
                input, this->add_all_uuids()));
751
0
        } else {
752
0
          goto handle_unusual;
753
0
        }
754
0
        break;
755
0
      }
756
757
0
      default: {
758
0
      handle_unusual:
759
0
        if (tag == 0) {
760
0
          goto success;
761
0
        }
762
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
763
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
764
0
        break;
765
0
      }
766
0
    }
767
0
  }
768
0
success:
769
  // @@protoc_insertion_point(parse_success:yb.PathSetPB)
770
0
  return true;
771
0
failure:
772
  // @@protoc_insertion_point(parse_failure:yb.PathSetPB)
773
0
  return false;
774
0
#undef DO_
775
0
}
776
777
void PathSetPB::SerializeWithCachedSizes(
778
0
    ::google::protobuf::io::CodedOutputStream* output) const {
779
  // @@protoc_insertion_point(serialize_start:yb.PathSetPB)
780
0
  ::google::protobuf::uint32 cached_has_bits = 0;
781
0
  (void) cached_has_bits;
782
783
0
  cached_has_bits = _has_bits_[0];
784
  // required bytes uuid = 1;
785
0
  if (cached_has_bits & 0x00000001u) {
786
0
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
787
0
      1, this->uuid(), output);
788
0
  }
789
790
  // repeated bytes all_uuids = 2;
791
0
  for (int i = 0, n = this->all_uuids_size(); i < n; i++) {
792
0
    ::google::protobuf::internal::WireFormatLite::WriteBytes(
793
0
      2, this->all_uuids(i), output);
794
0
  }
795
796
0
  if (_internal_metadata_.have_unknown_fields()) {
797
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
798
0
        _internal_metadata_.unknown_fields(), output);
799
0
  }
800
  // @@protoc_insertion_point(serialize_end:yb.PathSetPB)
801
0
}
802
803
::google::protobuf::uint8* PathSetPB::InternalSerializeWithCachedSizesToArray(
804
0
    bool deterministic, ::google::protobuf::uint8* target) const {
805
0
  (void)deterministic; // Unused
806
  // @@protoc_insertion_point(serialize_to_array_start:yb.PathSetPB)
807
0
  ::google::protobuf::uint32 cached_has_bits = 0;
808
0
  (void) cached_has_bits;
809
810
0
  cached_has_bits = _has_bits_[0];
811
  // required bytes uuid = 1;
812
0
  if (cached_has_bits & 0x00000001u) {
813
0
    target =
814
0
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
815
0
        1, this->uuid(), target);
816
0
  }
817
818
  // repeated bytes all_uuids = 2;
819
0
  for (int i = 0, n = this->all_uuids_size(); i < n; i++) {
820
0
    target = ::google::protobuf::internal::WireFormatLite::
821
0
      WriteBytesToArray(2, this->all_uuids(i), target);
822
0
  }
823
824
0
  if (_internal_metadata_.have_unknown_fields()) {
825
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
826
0
        _internal_metadata_.unknown_fields(), target);
827
0
  }
828
  // @@protoc_insertion_point(serialize_to_array_end:yb.PathSetPB)
829
0
  return target;
830
0
}
831
832
0
size_t PathSetPB::ByteSizeLong() const {
833
// @@protoc_insertion_point(message_byte_size_start:yb.PathSetPB)
834
0
  size_t total_size = 0;
835
836
0
  if (_internal_metadata_.have_unknown_fields()) {
837
0
    total_size +=
838
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
839
0
        _internal_metadata_.unknown_fields());
840
0
  }
841
  // required bytes uuid = 1;
842
0
  if (has_uuid()) {
843
0
    total_size += 1 +
844
0
      ::google::protobuf::internal::WireFormatLite::BytesSize(
845
0
        this->uuid());
846
0
  }
847
  // repeated bytes all_uuids = 2;
848
0
  total_size += 1 *
849
0
      ::google::protobuf::internal::FromIntSize(this->all_uuids_size());
850
0
  for (int i = 0, n = this->all_uuids_size(); i < n; i++) {
851
0
    total_size += ::google::protobuf::internal::WireFormatLite::BytesSize(
852
0
      this->all_uuids(i));
853
0
  }
854
855
0
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
856
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
857
0
  _cached_size_ = cached_size;
858
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
859
0
  return total_size;
860
0
}
861
862
0
void PathSetPB::MergeFrom(const ::google::protobuf::Message& from) {
863
// @@protoc_insertion_point(generalized_merge_from_start:yb.PathSetPB)
864
0
  GOOGLE_DCHECK_NE(&from, this);
865
0
  const PathSetPB* source =
866
0
      ::google::protobuf::internal::DynamicCastToGenerated<const PathSetPB>(
867
0
          &from);
868
0
  if (source == NULL) {
869
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.PathSetPB)
870
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
871
0
  } else {
872
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.PathSetPB)
873
0
    MergeFrom(*source);
874
0
  }
875
0
}
876
877
0
void PathSetPB::MergeFrom(const PathSetPB& from) {
878
// @@protoc_insertion_point(class_specific_merge_from_start:yb.PathSetPB)
879
0
  GOOGLE_DCHECK_NE(&from, this);
880
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
881
0
  ::google::protobuf::uint32 cached_has_bits = 0;
882
0
  (void) cached_has_bits;
883
884
0
  all_uuids_.MergeFrom(from.all_uuids_);
885
0
  if (from.has_uuid()) {
886
0
    set_has_uuid();
887
0
    uuid_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.uuid_);
888
0
  }
889
0
}
890
891
0
void PathSetPB::CopyFrom(const ::google::protobuf::Message& from) {
892
// @@protoc_insertion_point(generalized_copy_from_start:yb.PathSetPB)
893
0
  if (&from == this) return;
894
0
  Clear();
895
0
  MergeFrom(from);
896
0
}
897
898
0
void PathSetPB::CopyFrom(const PathSetPB& from) {
899
// @@protoc_insertion_point(class_specific_copy_from_start:yb.PathSetPB)
900
0
  if (&from == this) return;
901
0
  Clear();
902
0
  MergeFrom(from);
903
0
}
904
905
0
bool PathSetPB::IsInitialized() const {
906
0
  if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false;
907
0
  return true;
908
0
}
909
910
0
void PathSetPB::Swap(PathSetPB* other) {
911
0
  if (other == this) return;
912
0
  InternalSwap(other);
913
0
}
914
0
void PathSetPB::InternalSwap(PathSetPB* other) {
915
0
  using std::swap;
916
0
  all_uuids_.InternalSwap(&other->all_uuids_);
917
0
  uuid_.Swap(&other->uuid_);
918
0
  swap(_has_bits_[0], other->_has_bits_[0]);
919
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
920
0
  swap(_cached_size_, other->_cached_size_);
921
0
}
922
923
0
::google::protobuf::Metadata PathSetPB::GetMetadata() const {
924
0
  protobuf_yb_2ffs_2ffs_2eproto::protobuf_AssignDescriptorsOnce();
925
0
  return ::protobuf_yb_2ffs_2ffs_2eproto::file_level_metadata[kIndexInFileMessages];
926
0
}
927
928
929
// ===================================================================
930
931
17.1k
void PathInstanceMetadataPB::InitAsDefaultInstance() {
932
17.1k
  ::yb::_PathInstanceMetadataPB_default_instance_._instance.get_mutable()->path_set_ = const_cast< ::yb::PathSetPB*>(
933
17.1k
      ::yb::PathSetPB::internal_default_instance());
934
17.1k
}
935
#if !defined(_MSC_VER) || _MSC_VER >= 1900
936
const int PathInstanceMetadataPB::kPathSetFieldNumber;
937
const int PathInstanceMetadataPB::kBlockManagerTypeFieldNumber;
938
const int PathInstanceMetadataPB::kFilesystemBlockSizeBytesFieldNumber;
939
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
940
941
PathInstanceMetadataPB::PathInstanceMetadataPB()
942
17.1k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
943
0
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
944
0
    ::protobuf_yb_2ffs_2ffs_2eproto::InitDefaultsPathInstanceMetadataPB();
945
0
  }
946
17.1k
  SharedCtor();
947
  // @@protoc_insertion_point(constructor:yb.PathInstanceMetadataPB)
948
17.1k
}
949
PathInstanceMetadataPB::PathInstanceMetadataPB(const PathInstanceMetadataPB& from)
950
  : ::google::protobuf::Message(),
951
      _internal_metadata_(NULL),
952
      _has_bits_(from._has_bits_),
953
0
      _cached_size_(0) {
954
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
955
0
  block_manager_type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
956
0
  if (from.has_block_manager_type()) {
957
0
    block_manager_type_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.block_manager_type_);
958
0
  }
959
0
  if (from.has_path_set()) {
960
0
    path_set_ = new ::yb::PathSetPB(*from.path_set_);
961
0
  } else {
962
0
    path_set_ = NULL;
963
0
  }
964
0
  filesystem_block_size_bytes_ = from.filesystem_block_size_bytes_;
965
  // @@protoc_insertion_point(copy_constructor:yb.PathInstanceMetadataPB)
966
0
}
967
968
17.1k
void PathInstanceMetadataPB::SharedCtor() {
969
17.1k
  _cached_size_ = 0;
970
17.1k
  block_manager_type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
971
17.1k
  ::memset(&path_set_, 0, static_cast<size_t>(
972
17.1k
      reinterpret_cast<char*>(&filesystem_block_size_bytes_) -
973
17.1k
      reinterpret_cast<char*>(&path_set_)) + sizeof(filesystem_block_size_bytes_));
974
17.1k
}
975
976
0
PathInstanceMetadataPB::~PathInstanceMetadataPB() {
977
  // @@protoc_insertion_point(destructor:yb.PathInstanceMetadataPB)
978
0
  SharedDtor();
979
0
}
980
981
0
void PathInstanceMetadataPB::SharedDtor() {
982
0
  block_manager_type_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
983
0
  if (this != internal_default_instance()) delete path_set_;
984
0
}
985
986
0
void PathInstanceMetadataPB::SetCachedSize(int size) const {
987
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
988
0
  _cached_size_ = size;
989
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
990
0
}
991
0
const ::google::protobuf::Descriptor* PathInstanceMetadataPB::descriptor() {
992
0
  ::protobuf_yb_2ffs_2ffs_2eproto::protobuf_AssignDescriptorsOnce();
993
0
  return ::protobuf_yb_2ffs_2ffs_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
994
0
}
995
996
0
const PathInstanceMetadataPB& PathInstanceMetadataPB::default_instance() {
997
0
  ::protobuf_yb_2ffs_2ffs_2eproto::InitDefaultsPathInstanceMetadataPB();
998
0
  return *internal_default_instance();
999
0
}
1000
1001
0
PathInstanceMetadataPB* PathInstanceMetadataPB::New(::google::protobuf::Arena* arena) const {
1002
0
  PathInstanceMetadataPB* n = new PathInstanceMetadataPB;
1003
0
  if (arena != NULL) {
1004
0
    arena->Own(n);
1005
0
  }
1006
0
  return n;
1007
0
}
1008
1009
0
void PathInstanceMetadataPB::Clear() {
1010
// @@protoc_insertion_point(message_clear_start:yb.PathInstanceMetadataPB)
1011
0
  ::google::protobuf::uint32 cached_has_bits = 0;
1012
  // Prevent compiler warnings about cached_has_bits being unused
1013
0
  (void) cached_has_bits;
1014
1015
0
  cached_has_bits = _has_bits_[0];
1016
0
  if (cached_has_bits & 3u) {
1017
0
    if (cached_has_bits & 0x00000001u) {
1018
0
      GOOGLE_DCHECK(!block_manager_type_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
1019
0
      (*block_manager_type_.UnsafeRawStringPointer())->clear();
1020
0
    }
1021
0
    if (cached_has_bits & 0x00000002u) {
1022
0
      GOOGLE_DCHECK(path_set_ != NULL);
1023
0
      path_set_->Clear();
1024
0
    }
1025
0
  }
1026
0
  filesystem_block_size_bytes_ = GOOGLE_ULONGLONG(0);
1027
0
  _has_bits_.Clear();
1028
0
  _internal_metadata_.Clear();
1029
0
}
1030
1031
bool PathInstanceMetadataPB::MergePartialFromCodedStream(
1032
0
    ::google::protobuf::io::CodedInputStream* input) {
1033
0
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
1034
0
  ::google::protobuf::uint32 tag;
1035
  // @@protoc_insertion_point(parse_start:yb.PathInstanceMetadataPB)
1036
0
  for (;;) {
1037
0
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
1038
0
    tag = p.first;
1039
0
    if (!p.second) goto handle_unusual;
1040
0
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
1041
      // required .yb.PathSetPB path_set = 1;
1042
0
      case 1: {
1043
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1044
0
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
1045
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
1046
0
               input, mutable_path_set()));
1047
0
        } else {
1048
0
          goto handle_unusual;
1049
0
        }
1050
0
        break;
1051
0
      }
1052
1053
      // required string block_manager_type = 2;
1054
0
      case 2: {
1055
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1056
0
            static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
1057
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
1058
0
                input, this->mutable_block_manager_type()));
1059
0
          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1060
0
            this->block_manager_type().data(), static_cast<int>(this->block_manager_type().length()),
1061
0
            ::google::protobuf::internal::WireFormat::PARSE,
1062
0
            "yb.PathInstanceMetadataPB.block_manager_type");
1063
0
        } else {
1064
0
          goto handle_unusual;
1065
0
        }
1066
0
        break;
1067
0
      }
1068
1069
      // required uint64 filesystem_block_size_bytes = 3;
1070
0
      case 3: {
1071
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1072
0
            static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
1073
0
          set_has_filesystem_block_size_bytes();
1074
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1075
0
                   ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
1076
0
                 input, &filesystem_block_size_bytes_)));
1077
0
        } else {
1078
0
          goto handle_unusual;
1079
0
        }
1080
0
        break;
1081
0
      }
1082
1083
0
      default: {
1084
0
      handle_unusual:
1085
0
        if (tag == 0) {
1086
0
          goto success;
1087
0
        }
1088
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
1089
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
1090
0
        break;
1091
0
      }
1092
0
    }
1093
0
  }
1094
0
success:
1095
  // @@protoc_insertion_point(parse_success:yb.PathInstanceMetadataPB)
1096
0
  return true;
1097
0
failure:
1098
  // @@protoc_insertion_point(parse_failure:yb.PathInstanceMetadataPB)
1099
0
  return false;
1100
0
#undef DO_
1101
0
}
1102
1103
void PathInstanceMetadataPB::SerializeWithCachedSizes(
1104
0
    ::google::protobuf::io::CodedOutputStream* output) const {
1105
  // @@protoc_insertion_point(serialize_start:yb.PathInstanceMetadataPB)
1106
0
  ::google::protobuf::uint32 cached_has_bits = 0;
1107
0
  (void) cached_has_bits;
1108
1109
0
  cached_has_bits = _has_bits_[0];
1110
  // required .yb.PathSetPB path_set = 1;
1111
0
  if (cached_has_bits & 0x00000002u) {
1112
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1113
0
      1, *this->path_set_, output);
1114
0
  }
1115
1116
  // required string block_manager_type = 2;
1117
0
  if (cached_has_bits & 0x00000001u) {
1118
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1119
0
      this->block_manager_type().data(), static_cast<int>(this->block_manager_type().length()),
1120
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
1121
0
      "yb.PathInstanceMetadataPB.block_manager_type");
1122
0
    ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
1123
0
      2, this->block_manager_type(), output);
1124
0
  }
1125
1126
  // required uint64 filesystem_block_size_bytes = 3;
1127
0
  if (cached_has_bits & 0x00000004u) {
1128
0
    ::google::protobuf::internal::WireFormatLite::WriteUInt64(3, this->filesystem_block_size_bytes(), output);
1129
0
  }
1130
1131
0
  if (_internal_metadata_.have_unknown_fields()) {
1132
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
1133
0
        _internal_metadata_.unknown_fields(), output);
1134
0
  }
1135
  // @@protoc_insertion_point(serialize_end:yb.PathInstanceMetadataPB)
1136
0
}
1137
1138
::google::protobuf::uint8* PathInstanceMetadataPB::InternalSerializeWithCachedSizesToArray(
1139
0
    bool deterministic, ::google::protobuf::uint8* target) const {
1140
0
  (void)deterministic; // Unused
1141
  // @@protoc_insertion_point(serialize_to_array_start:yb.PathInstanceMetadataPB)
1142
0
  ::google::protobuf::uint32 cached_has_bits = 0;
1143
0
  (void) cached_has_bits;
1144
1145
0
  cached_has_bits = _has_bits_[0];
1146
  // required .yb.PathSetPB path_set = 1;
1147
0
  if (cached_has_bits & 0x00000002u) {
1148
0
    target = ::google::protobuf::internal::WireFormatLite::
1149
0
      InternalWriteMessageToArray(
1150
0
        1, *this->path_set_, deterministic, target);
1151
0
  }
1152
1153
  // required string block_manager_type = 2;
1154
0
  if (cached_has_bits & 0x00000001u) {
1155
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1156
0
      this->block_manager_type().data(), static_cast<int>(this->block_manager_type().length()),
1157
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
1158
0
      "yb.PathInstanceMetadataPB.block_manager_type");
1159
0
    target =
1160
0
      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1161
0
        2, this->block_manager_type(), target);
1162
0
  }
1163
1164
  // required uint64 filesystem_block_size_bytes = 3;
1165
0
  if (cached_has_bits & 0x00000004u) {
1166
0
    target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(3, this->filesystem_block_size_bytes(), target);
1167
0
  }
1168
1169
0
  if (_internal_metadata_.have_unknown_fields()) {
1170
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
1171
0
        _internal_metadata_.unknown_fields(), target);
1172
0
  }
1173
  // @@protoc_insertion_point(serialize_to_array_end:yb.PathInstanceMetadataPB)
1174
0
  return target;
1175
0
}
1176
1177
0
size_t PathInstanceMetadataPB::RequiredFieldsByteSizeFallback() const {
1178
// @@protoc_insertion_point(required_fields_byte_size_fallback_start:yb.PathInstanceMetadataPB)
1179
0
  size_t total_size = 0;
1180
1181
0
  if (has_block_manager_type()) {
1182
    // required string block_manager_type = 2;
1183
0
    total_size += 1 +
1184
0
      ::google::protobuf::internal::WireFormatLite::StringSize(
1185
0
        this->block_manager_type());
1186
0
  }
1187
1188
0
  if (has_path_set()) {
1189
    // required .yb.PathSetPB path_set = 1;
1190
0
    total_size += 1 +
1191
0
      ::google::protobuf::internal::WireFormatLite::MessageSize(
1192
0
        *this->path_set_);
1193
0
  }
1194
1195
0
  if (has_filesystem_block_size_bytes()) {
1196
    // required uint64 filesystem_block_size_bytes = 3;
1197
0
    total_size += 1 +
1198
0
      ::google::protobuf::internal::WireFormatLite::UInt64Size(
1199
0
        this->filesystem_block_size_bytes());
1200
0
  }
1201
1202
0
  return total_size;
1203
0
}
1204
0
size_t PathInstanceMetadataPB::ByteSizeLong() const {
1205
// @@protoc_insertion_point(message_byte_size_start:yb.PathInstanceMetadataPB)
1206
0
  size_t total_size = 0;
1207
1208
0
  if (_internal_metadata_.have_unknown_fields()) {
1209
0
    total_size +=
1210
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
1211
0
        _internal_metadata_.unknown_fields());
1212
0
  }
1213
0
  if (((_has_bits_[0] & 0x00000007) ^ 0x00000007) == 0) {  // All required fields are present.
1214
    // required string block_manager_type = 2;
1215
0
    total_size += 1 +
1216
0
      ::google::protobuf::internal::WireFormatLite::StringSize(
1217
0
        this->block_manager_type());
1218
1219
    // required .yb.PathSetPB path_set = 1;
1220
0
    total_size += 1 +
1221
0
      ::google::protobuf::internal::WireFormatLite::MessageSize(
1222
0
        *this->path_set_);
1223
1224
    // required uint64 filesystem_block_size_bytes = 3;
1225
0
    total_size += 1 +
1226
0
      ::google::protobuf::internal::WireFormatLite::UInt64Size(
1227
0
        this->filesystem_block_size_bytes());
1228
1229
0
  } else {
1230
0
    total_size += RequiredFieldsByteSizeFallback();
1231
0
  }
1232
0
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
1233
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1234
0
  _cached_size_ = cached_size;
1235
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
1236
0
  return total_size;
1237
0
}
1238
1239
0
void PathInstanceMetadataPB::MergeFrom(const ::google::protobuf::Message& from) {
1240
// @@protoc_insertion_point(generalized_merge_from_start:yb.PathInstanceMetadataPB)
1241
0
  GOOGLE_DCHECK_NE(&from, this);
1242
0
  const PathInstanceMetadataPB* source =
1243
0
      ::google::protobuf::internal::DynamicCastToGenerated<const PathInstanceMetadataPB>(
1244
0
          &from);
1245
0
  if (source == NULL) {
1246
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.PathInstanceMetadataPB)
1247
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
1248
0
  } else {
1249
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.PathInstanceMetadataPB)
1250
0
    MergeFrom(*source);
1251
0
  }
1252
0
}
1253
1254
0
void PathInstanceMetadataPB::MergeFrom(const PathInstanceMetadataPB& from) {
1255
// @@protoc_insertion_point(class_specific_merge_from_start:yb.PathInstanceMetadataPB)
1256
0
  GOOGLE_DCHECK_NE(&from, this);
1257
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
1258
0
  ::google::protobuf::uint32 cached_has_bits = 0;
1259
0
  (void) cached_has_bits;
1260
1261
0
  cached_has_bits = from._has_bits_[0];
1262
0
  if (cached_has_bits & 7u) {
1263
0
    if (cached_has_bits & 0x00000001u) {
1264
0
      set_has_block_manager_type();
1265
0
      block_manager_type_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.block_manager_type_);
1266
0
    }
1267
0
    if (cached_has_bits & 0x00000002u) {
1268
0
      mutable_path_set()->::yb::PathSetPB::MergeFrom(from.path_set());
1269
0
    }
1270
0
    if (cached_has_bits & 0x00000004u) {
1271
0
      filesystem_block_size_bytes_ = from.filesystem_block_size_bytes_;
1272
0
    }
1273
0
    _has_bits_[0] |= cached_has_bits;
1274
0
  }
1275
0
}
1276
1277
0
void PathInstanceMetadataPB::CopyFrom(const ::google::protobuf::Message& from) {
1278
// @@protoc_insertion_point(generalized_copy_from_start:yb.PathInstanceMetadataPB)
1279
0
  if (&from == this) return;
1280
0
  Clear();
1281
0
  MergeFrom(from);
1282
0
}
1283
1284
0
void PathInstanceMetadataPB::CopyFrom(const PathInstanceMetadataPB& from) {
1285
// @@protoc_insertion_point(class_specific_copy_from_start:yb.PathInstanceMetadataPB)
1286
0
  if (&from == this) return;
1287
0
  Clear();
1288
0
  MergeFrom(from);
1289
0
}
1290
1291
0
bool PathInstanceMetadataPB::IsInitialized() const {
1292
0
  if ((_has_bits_[0] & 0x00000007) != 0x00000007) return false;
1293
0
  if (has_path_set()) {
1294
0
    if (!this->path_set_->IsInitialized()) return false;
1295
0
  }
1296
0
  return true;
1297
0
}
1298
1299
0
void PathInstanceMetadataPB::Swap(PathInstanceMetadataPB* other) {
1300
0
  if (other == this) return;
1301
0
  InternalSwap(other);
1302
0
}
1303
0
void PathInstanceMetadataPB::InternalSwap(PathInstanceMetadataPB* other) {
1304
0
  using std::swap;
1305
0
  block_manager_type_.Swap(&other->block_manager_type_);
1306
0
  swap(path_set_, other->path_set_);
1307
0
  swap(filesystem_block_size_bytes_, other->filesystem_block_size_bytes_);
1308
0
  swap(_has_bits_[0], other->_has_bits_[0]);
1309
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
1310
0
  swap(_cached_size_, other->_cached_size_);
1311
0
}
1312
1313
0
::google::protobuf::Metadata PathInstanceMetadataPB::GetMetadata() const {
1314
0
  protobuf_yb_2ffs_2ffs_2eproto::protobuf_AssignDescriptorsOnce();
1315
0
  return ::protobuf_yb_2ffs_2ffs_2eproto::file_level_metadata[kIndexInFileMessages];
1316
0
}
1317
1318
1319
// ===================================================================
1320
1321
17.1k
void BlockIdPB::InitAsDefaultInstance() {
1322
17.1k
}
1323
#if !defined(_MSC_VER) || _MSC_VER >= 1900
1324
const int BlockIdPB::kIdFieldNumber;
1325
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
1326
1327
BlockIdPB::BlockIdPB()
1328
17.1k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
1329
0
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
1330
0
    ::protobuf_yb_2ffs_2ffs_2eproto::InitDefaultsBlockIdPB();
1331
0
  }
1332
17.1k
  SharedCtor();
1333
  // @@protoc_insertion_point(constructor:yb.BlockIdPB)
1334
17.1k
}
1335
BlockIdPB::BlockIdPB(const BlockIdPB& from)
1336
  : ::google::protobuf::Message(),
1337
      _internal_metadata_(NULL),
1338
      _has_bits_(from._has_bits_),
1339
0
      _cached_size_(0) {
1340
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
1341
0
  id_ = from.id_;
1342
  // @@protoc_insertion_point(copy_constructor:yb.BlockIdPB)
1343
0
}
1344
1345
17.1k
void BlockIdPB::SharedCtor() {
1346
17.1k
  _cached_size_ = 0;
1347
17.1k
  id_ = GOOGLE_ULONGLONG(0);
1348
17.1k
}
1349
1350
0
BlockIdPB::~BlockIdPB() {
1351
  // @@protoc_insertion_point(destructor:yb.BlockIdPB)
1352
0
  SharedDtor();
1353
0
}
1354
1355
0
void BlockIdPB::SharedDtor() {
1356
0
}
1357
1358
0
void BlockIdPB::SetCachedSize(int size) const {
1359
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1360
0
  _cached_size_ = size;
1361
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
1362
0
}
1363
0
const ::google::protobuf::Descriptor* BlockIdPB::descriptor() {
1364
0
  ::protobuf_yb_2ffs_2ffs_2eproto::protobuf_AssignDescriptorsOnce();
1365
0
  return ::protobuf_yb_2ffs_2ffs_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
1366
0
}
1367
1368
0
const BlockIdPB& BlockIdPB::default_instance() {
1369
0
  ::protobuf_yb_2ffs_2ffs_2eproto::InitDefaultsBlockIdPB();
1370
0
  return *internal_default_instance();
1371
0
}
1372
1373
0
BlockIdPB* BlockIdPB::New(::google::protobuf::Arena* arena) const {
1374
0
  BlockIdPB* n = new BlockIdPB;
1375
0
  if (arena != NULL) {
1376
0
    arena->Own(n);
1377
0
  }
1378
0
  return n;
1379
0
}
1380
1381
0
void BlockIdPB::Clear() {
1382
// @@protoc_insertion_point(message_clear_start:yb.BlockIdPB)
1383
0
  ::google::protobuf::uint32 cached_has_bits = 0;
1384
  // Prevent compiler warnings about cached_has_bits being unused
1385
0
  (void) cached_has_bits;
1386
1387
0
  id_ = GOOGLE_ULONGLONG(0);
1388
0
  _has_bits_.Clear();
1389
0
  _internal_metadata_.Clear();
1390
0
}
1391
1392
bool BlockIdPB::MergePartialFromCodedStream(
1393
0
    ::google::protobuf::io::CodedInputStream* input) {
1394
0
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
1395
0
  ::google::protobuf::uint32 tag;
1396
  // @@protoc_insertion_point(parse_start:yb.BlockIdPB)
1397
0
  for (;;) {
1398
0
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
1399
0
    tag = p.first;
1400
0
    if (!p.second) goto handle_unusual;
1401
0
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
1402
      // required fixed64 id = 1;
1403
0
      case 1: {
1404
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1405
0
            static_cast< ::google::protobuf::uint8>(9u /* 9 & 0xFF */)) {
1406
0
          set_has_id();
1407
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1408
0
                   ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED64>(
1409
0
                 input, &id_)));
1410
0
        } else {
1411
0
          goto handle_unusual;
1412
0
        }
1413
0
        break;
1414
0
      }
1415
1416
0
      default: {
1417
0
      handle_unusual:
1418
0
        if (tag == 0) {
1419
0
          goto success;
1420
0
        }
1421
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
1422
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
1423
0
        break;
1424
0
      }
1425
0
    }
1426
0
  }
1427
0
success:
1428
  // @@protoc_insertion_point(parse_success:yb.BlockIdPB)
1429
0
  return true;
1430
0
failure:
1431
  // @@protoc_insertion_point(parse_failure:yb.BlockIdPB)
1432
0
  return false;
1433
0
#undef DO_
1434
0
}
1435
1436
void BlockIdPB::SerializeWithCachedSizes(
1437
0
    ::google::protobuf::io::CodedOutputStream* output) const {
1438
  // @@protoc_insertion_point(serialize_start:yb.BlockIdPB)
1439
0
  ::google::protobuf::uint32 cached_has_bits = 0;
1440
0
  (void) cached_has_bits;
1441
1442
0
  cached_has_bits = _has_bits_[0];
1443
  // required fixed64 id = 1;
1444
0
  if (cached_has_bits & 0x00000001u) {
1445
0
    ::google::protobuf::internal::WireFormatLite::WriteFixed64(1, this->id(), output);
1446
0
  }
1447
1448
0
  if (_internal_metadata_.have_unknown_fields()) {
1449
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
1450
0
        _internal_metadata_.unknown_fields(), output);
1451
0
  }
1452
  // @@protoc_insertion_point(serialize_end:yb.BlockIdPB)
1453
0
}
1454
1455
::google::protobuf::uint8* BlockIdPB::InternalSerializeWithCachedSizesToArray(
1456
0
    bool deterministic, ::google::protobuf::uint8* target) const {
1457
0
  (void)deterministic; // Unused
1458
  // @@protoc_insertion_point(serialize_to_array_start:yb.BlockIdPB)
1459
0
  ::google::protobuf::uint32 cached_has_bits = 0;
1460
0
  (void) cached_has_bits;
1461
1462
0
  cached_has_bits = _has_bits_[0];
1463
  // required fixed64 id = 1;
1464
0
  if (cached_has_bits & 0x00000001u) {
1465
0
    target = ::google::protobuf::internal::WireFormatLite::WriteFixed64ToArray(1, this->id(), target);
1466
0
  }
1467
1468
0
  if (_internal_metadata_.have_unknown_fields()) {
1469
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
1470
0
        _internal_metadata_.unknown_fields(), target);
1471
0
  }
1472
  // @@protoc_insertion_point(serialize_to_array_end:yb.BlockIdPB)
1473
0
  return target;
1474
0
}
1475
1476
0
size_t BlockIdPB::ByteSizeLong() const {
1477
// @@protoc_insertion_point(message_byte_size_start:yb.BlockIdPB)
1478
0
  size_t total_size = 0;
1479
1480
0
  if (_internal_metadata_.have_unknown_fields()) {
1481
0
    total_size +=
1482
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
1483
0
        _internal_metadata_.unknown_fields());
1484
0
  }
1485
  // required fixed64 id = 1;
1486
0
  if (has_id()) {
1487
0
    total_size += 1 + 8;
1488
0
  }
1489
0
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
1490
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1491
0
  _cached_size_ = cached_size;
1492
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
1493
0
  return total_size;
1494
0
}
1495
1496
0
void BlockIdPB::MergeFrom(const ::google::protobuf::Message& from) {
1497
// @@protoc_insertion_point(generalized_merge_from_start:yb.BlockIdPB)
1498
0
  GOOGLE_DCHECK_NE(&from, this);
1499
0
  const BlockIdPB* source =
1500
0
      ::google::protobuf::internal::DynamicCastToGenerated<const BlockIdPB>(
1501
0
          &from);
1502
0
  if (source == NULL) {
1503
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.BlockIdPB)
1504
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
1505
0
  } else {
1506
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.BlockIdPB)
1507
0
    MergeFrom(*source);
1508
0
  }
1509
0
}
1510
1511
0
void BlockIdPB::MergeFrom(const BlockIdPB& from) {
1512
// @@protoc_insertion_point(class_specific_merge_from_start:yb.BlockIdPB)
1513
0
  GOOGLE_DCHECK_NE(&from, this);
1514
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
1515
0
  ::google::protobuf::uint32 cached_has_bits = 0;
1516
0
  (void) cached_has_bits;
1517
1518
0
  if (from.has_id()) {
1519
0
    set_id(from.id());
1520
0
  }
1521
0
}
1522
1523
0
void BlockIdPB::CopyFrom(const ::google::protobuf::Message& from) {
1524
// @@protoc_insertion_point(generalized_copy_from_start:yb.BlockIdPB)
1525
0
  if (&from == this) return;
1526
0
  Clear();
1527
0
  MergeFrom(from);
1528
0
}
1529
1530
0
void BlockIdPB::CopyFrom(const BlockIdPB& from) {
1531
// @@protoc_insertion_point(class_specific_copy_from_start:yb.BlockIdPB)
1532
0
  if (&from == this) return;
1533
0
  Clear();
1534
0
  MergeFrom(from);
1535
0
}
1536
1537
0
bool BlockIdPB::IsInitialized() const {
1538
0
  if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false;
1539
0
  return true;
1540
0
}
1541
1542
0
void BlockIdPB::Swap(BlockIdPB* other) {
1543
0
  if (other == this) return;
1544
0
  InternalSwap(other);
1545
0
}
1546
0
void BlockIdPB::InternalSwap(BlockIdPB* other) {
1547
0
  using std::swap;
1548
0
  swap(id_, other->id_);
1549
0
  swap(_has_bits_[0], other->_has_bits_[0]);
1550
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
1551
0
  swap(_cached_size_, other->_cached_size_);
1552
0
}
1553
1554
0
::google::protobuf::Metadata BlockIdPB::GetMetadata() const {
1555
0
  protobuf_yb_2ffs_2ffs_2eproto::protobuf_AssignDescriptorsOnce();
1556
0
  return ::protobuf_yb_2ffs_2ffs_2eproto::file_level_metadata[kIndexInFileMessages];
1557
0
}
1558
1559
1560
// ===================================================================
1561
1562
17.1k
void BlockRecordPB::InitAsDefaultInstance() {
1563
17.1k
  ::yb::_BlockRecordPB_default_instance_._instance.get_mutable()->block_id_ = const_cast< ::yb::BlockIdPB*>(
1564
17.1k
      ::yb::BlockIdPB::internal_default_instance());
1565
17.1k
}
1566
#if !defined(_MSC_VER) || _MSC_VER >= 1900
1567
const int BlockRecordPB::kBlockIdFieldNumber;
1568
const int BlockRecordPB::kOpTypeFieldNumber;
1569
const int BlockRecordPB::kTimestampUsFieldNumber;
1570
const int BlockRecordPB::kOffsetFieldNumber;
1571
const int BlockRecordPB::kLengthFieldNumber;
1572
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
1573
1574
BlockRecordPB::BlockRecordPB()
1575
17.1k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
1576
0
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
1577
0
    ::protobuf_yb_2ffs_2ffs_2eproto::InitDefaultsBlockRecordPB();
1578
0
  }
1579
17.1k
  SharedCtor();
1580
  // @@protoc_insertion_point(constructor:yb.BlockRecordPB)
1581
17.1k
}
1582
BlockRecordPB::BlockRecordPB(const BlockRecordPB& from)
1583
  : ::google::protobuf::Message(),
1584
      _internal_metadata_(NULL),
1585
      _has_bits_(from._has_bits_),
1586
0
      _cached_size_(0) {
1587
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
1588
0
  if (from.has_block_id()) {
1589
0
    block_id_ = new ::yb::BlockIdPB(*from.block_id_);
1590
0
  } else {
1591
0
    block_id_ = NULL;
1592
0
  }
1593
0
  ::memcpy(&timestamp_us_, &from.timestamp_us_,
1594
0
    static_cast<size_t>(reinterpret_cast<char*>(&op_type_) -
1595
0
    reinterpret_cast<char*>(&timestamp_us_)) + sizeof(op_type_));
1596
  // @@protoc_insertion_point(copy_constructor:yb.BlockRecordPB)
1597
0
}
1598
1599
17.1k
void BlockRecordPB::SharedCtor() {
1600
17.1k
  _cached_size_ = 0;
1601
17.1k
  ::memset(&block_id_, 0, static_cast<size_t>(
1602
17.1k
      reinterpret_cast<char*>(&op_type_) -
1603
17.1k
      reinterpret_cast<char*>(&block_id_)) + sizeof(op_type_));
1604
17.1k
}
1605
1606
0
BlockRecordPB::~BlockRecordPB() {
1607
  // @@protoc_insertion_point(destructor:yb.BlockRecordPB)
1608
0
  SharedDtor();
1609
0
}
1610
1611
0
void BlockRecordPB::SharedDtor() {
1612
0
  if (this != internal_default_instance()) delete block_id_;
1613
0
}
1614
1615
0
void BlockRecordPB::SetCachedSize(int size) const {
1616
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1617
0
  _cached_size_ = size;
1618
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
1619
0
}
1620
0
const ::google::protobuf::Descriptor* BlockRecordPB::descriptor() {
1621
0
  ::protobuf_yb_2ffs_2ffs_2eproto::protobuf_AssignDescriptorsOnce();
1622
0
  return ::protobuf_yb_2ffs_2ffs_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
1623
0
}
1624
1625
0
const BlockRecordPB& BlockRecordPB::default_instance() {
1626
0
  ::protobuf_yb_2ffs_2ffs_2eproto::InitDefaultsBlockRecordPB();
1627
0
  return *internal_default_instance();
1628
0
}
1629
1630
0
BlockRecordPB* BlockRecordPB::New(::google::protobuf::Arena* arena) const {
1631
0
  BlockRecordPB* n = new BlockRecordPB;
1632
0
  if (arena != NULL) {
1633
0
    arena->Own(n);
1634
0
  }
1635
0
  return n;
1636
0
}
1637
1638
0
void BlockRecordPB::Clear() {
1639
// @@protoc_insertion_point(message_clear_start:yb.BlockRecordPB)
1640
0
  ::google::protobuf::uint32 cached_has_bits = 0;
1641
  // Prevent compiler warnings about cached_has_bits being unused
1642
0
  (void) cached_has_bits;
1643
1644
0
  cached_has_bits = _has_bits_[0];
1645
0
  if (cached_has_bits & 0x00000001u) {
1646
0
    GOOGLE_DCHECK(block_id_ != NULL);
1647
0
    block_id_->Clear();
1648
0
  }
1649
0
  if (cached_has_bits & 30u) {
1650
0
    ::memset(&timestamp_us_, 0, static_cast<size_t>(
1651
0
        reinterpret_cast<char*>(&op_type_) -
1652
0
        reinterpret_cast<char*>(&timestamp_us_)) + sizeof(op_type_));
1653
0
  }
1654
0
  _has_bits_.Clear();
1655
0
  _internal_metadata_.Clear();
1656
0
}
1657
1658
bool BlockRecordPB::MergePartialFromCodedStream(
1659
0
    ::google::protobuf::io::CodedInputStream* input) {
1660
0
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
1661
0
  ::google::protobuf::uint32 tag;
1662
  // @@protoc_insertion_point(parse_start:yb.BlockRecordPB)
1663
0
  for (;;) {
1664
0
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
1665
0
    tag = p.first;
1666
0
    if (!p.second) goto handle_unusual;
1667
0
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
1668
      // required .yb.BlockIdPB block_id = 1;
1669
0
      case 1: {
1670
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1671
0
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
1672
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
1673
0
               input, mutable_block_id()));
1674
0
        } else {
1675
0
          goto handle_unusual;
1676
0
        }
1677
0
        break;
1678
0
      }
1679
1680
      // required .yb.BlockRecordType op_type = 2;
1681
0
      case 2: {
1682
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1683
0
            static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
1684
0
          int value;
1685
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1686
0
                   int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
1687
0
                 input, &value)));
1688
0
          if (::yb::BlockRecordType_IsValid(value)) {
1689
0
            set_op_type(static_cast< ::yb::BlockRecordType >(value));
1690
0
          } else {
1691
0
            mutable_unknown_fields()->AddVarint(
1692
0
                2, static_cast< ::google::protobuf::uint64>(value));
1693
0
          }
1694
0
        } else {
1695
0
          goto handle_unusual;
1696
0
        }
1697
0
        break;
1698
0
      }
1699
1700
      // required uint64 timestamp_us = 3;
1701
0
      case 3: {
1702
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1703
0
            static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
1704
0
          set_has_timestamp_us();
1705
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1706
0
                   ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
1707
0
                 input, &timestamp_us_)));
1708
0
        } else {
1709
0
          goto handle_unusual;
1710
0
        }
1711
0
        break;
1712
0
      }
1713
1714
      // optional int64 offset = 4;
1715
0
      case 4: {
1716
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1717
0
            static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
1718
0
          set_has_offset();
1719
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1720
0
                   ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
1721
0
                 input, &offset_)));
1722
0
        } else {
1723
0
          goto handle_unusual;
1724
0
        }
1725
0
        break;
1726
0
      }
1727
1728
      // optional int64 length = 5;
1729
0
      case 5: {
1730
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1731
0
            static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) {
1732
0
          set_has_length();
1733
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1734
0
                   ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
1735
0
                 input, &length_)));
1736
0
        } else {
1737
0
          goto handle_unusual;
1738
0
        }
1739
0
        break;
1740
0
      }
1741
1742
0
      default: {
1743
0
      handle_unusual:
1744
0
        if (tag == 0) {
1745
0
          goto success;
1746
0
        }
1747
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
1748
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
1749
0
        break;
1750
0
      }
1751
0
    }
1752
0
  }
1753
0
success:
1754
  // @@protoc_insertion_point(parse_success:yb.BlockRecordPB)
1755
0
  return true;
1756
0
failure:
1757
  // @@protoc_insertion_point(parse_failure:yb.BlockRecordPB)
1758
0
  return false;
1759
0
#undef DO_
1760
0
}
1761
1762
void BlockRecordPB::SerializeWithCachedSizes(
1763
0
    ::google::protobuf::io::CodedOutputStream* output) const {
1764
  // @@protoc_insertion_point(serialize_start:yb.BlockRecordPB)
1765
0
  ::google::protobuf::uint32 cached_has_bits = 0;
1766
0
  (void) cached_has_bits;
1767
1768
0
  cached_has_bits = _has_bits_[0];
1769
  // required .yb.BlockIdPB block_id = 1;
1770
0
  if (cached_has_bits & 0x00000001u) {
1771
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1772
0
      1, *this->block_id_, output);
1773
0
  }
1774
1775
  // required .yb.BlockRecordType op_type = 2;
1776
0
  if (cached_has_bits & 0x00000010u) {
1777
0
    ::google::protobuf::internal::WireFormatLite::WriteEnum(
1778
0
      2, this->op_type(), output);
1779
0
  }
1780
1781
  // required uint64 timestamp_us = 3;
1782
0
  if (cached_has_bits & 0x00000002u) {
1783
0
    ::google::protobuf::internal::WireFormatLite::WriteUInt64(3, this->timestamp_us(), output);
1784
0
  }
1785
1786
  // optional int64 offset = 4;
1787
0
  if (cached_has_bits & 0x00000004u) {
1788
0
    ::google::protobuf::internal::WireFormatLite::WriteInt64(4, this->offset(), output);
1789
0
  }
1790
1791
  // optional int64 length = 5;
1792
0
  if (cached_has_bits & 0x00000008u) {
1793
0
    ::google::protobuf::internal::WireFormatLite::WriteInt64(5, this->length(), output);
1794
0
  }
1795
1796
0
  if (_internal_metadata_.have_unknown_fields()) {
1797
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
1798
0
        _internal_metadata_.unknown_fields(), output);
1799
0
  }
1800
  // @@protoc_insertion_point(serialize_end:yb.BlockRecordPB)
1801
0
}
1802
1803
::google::protobuf::uint8* BlockRecordPB::InternalSerializeWithCachedSizesToArray(
1804
0
    bool deterministic, ::google::protobuf::uint8* target) const {
1805
0
  (void)deterministic; // Unused
1806
  // @@protoc_insertion_point(serialize_to_array_start:yb.BlockRecordPB)
1807
0
  ::google::protobuf::uint32 cached_has_bits = 0;
1808
0
  (void) cached_has_bits;
1809
1810
0
  cached_has_bits = _has_bits_[0];
1811
  // required .yb.BlockIdPB block_id = 1;
1812
0
  if (cached_has_bits & 0x00000001u) {
1813
0
    target = ::google::protobuf::internal::WireFormatLite::
1814
0
      InternalWriteMessageToArray(
1815
0
        1, *this->block_id_, deterministic, target);
1816
0
  }
1817
1818
  // required .yb.BlockRecordType op_type = 2;
1819
0
  if (cached_has_bits & 0x00000010u) {
1820
0
    target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
1821
0
      2, this->op_type(), target);
1822
0
  }
1823
1824
  // required uint64 timestamp_us = 3;
1825
0
  if (cached_has_bits & 0x00000002u) {
1826
0
    target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(3, this->timestamp_us(), target);
1827
0
  }
1828
1829
  // optional int64 offset = 4;
1830
0
  if (cached_has_bits & 0x00000004u) {
1831
0
    target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(4, this->offset(), target);
1832
0
  }
1833
1834
  // optional int64 length = 5;
1835
0
  if (cached_has_bits & 0x00000008u) {
1836
0
    target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(5, this->length(), target);
1837
0
  }
1838
1839
0
  if (_internal_metadata_.have_unknown_fields()) {
1840
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
1841
0
        _internal_metadata_.unknown_fields(), target);
1842
0
  }
1843
  // @@protoc_insertion_point(serialize_to_array_end:yb.BlockRecordPB)
1844
0
  return target;
1845
0
}
1846
1847
0
size_t BlockRecordPB::RequiredFieldsByteSizeFallback() const {
1848
// @@protoc_insertion_point(required_fields_byte_size_fallback_start:yb.BlockRecordPB)
1849
0
  size_t total_size = 0;
1850
1851
0
  if (has_block_id()) {
1852
    // required .yb.BlockIdPB block_id = 1;
1853
0
    total_size += 1 +
1854
0
      ::google::protobuf::internal::WireFormatLite::MessageSize(
1855
0
        *this->block_id_);
1856
0
  }
1857
1858
0
  if (has_timestamp_us()) {
1859
    // required uint64 timestamp_us = 3;
1860
0
    total_size += 1 +
1861
0
      ::google::protobuf::internal::WireFormatLite::UInt64Size(
1862
0
        this->timestamp_us());
1863
0
  }
1864
1865
0
  if (has_op_type()) {
1866
    // required .yb.BlockRecordType op_type = 2;
1867
0
    total_size += 1 +
1868
0
      ::google::protobuf::internal::WireFormatLite::EnumSize(this->op_type());
1869
0
  }
1870
1871
0
  return total_size;
1872
0
}
1873
0
size_t BlockRecordPB::ByteSizeLong() const {
1874
// @@protoc_insertion_point(message_byte_size_start:yb.BlockRecordPB)
1875
0
  size_t total_size = 0;
1876
1877
0
  if (_internal_metadata_.have_unknown_fields()) {
1878
0
    total_size +=
1879
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
1880
0
        _internal_metadata_.unknown_fields());
1881
0
  }
1882
0
  if (((_has_bits_[0] & 0x00000013) ^ 0x00000013) == 0) {  // All required fields are present.
1883
    // required .yb.BlockIdPB block_id = 1;
1884
0
    total_size += 1 +
1885
0
      ::google::protobuf::internal::WireFormatLite::MessageSize(
1886
0
        *this->block_id_);
1887
1888
    // required uint64 timestamp_us = 3;
1889
0
    total_size += 1 +
1890
0
      ::google::protobuf::internal::WireFormatLite::UInt64Size(
1891
0
        this->timestamp_us());
1892
1893
    // required .yb.BlockRecordType op_type = 2;
1894
0
    total_size += 1 +
1895
0
      ::google::protobuf::internal::WireFormatLite::EnumSize(this->op_type());
1896
1897
0
  } else {
1898
0
    total_size += RequiredFieldsByteSizeFallback();
1899
0
  }
1900
0
  if (_has_bits_[0 / 32] & 12u) {
1901
    // optional int64 offset = 4;
1902
0
    if (has_offset()) {
1903
0
      total_size += 1 +
1904
0
        ::google::protobuf::internal::WireFormatLite::Int64Size(
1905
0
          this->offset());
1906
0
    }
1907
1908
    // optional int64 length = 5;
1909
0
    if (has_length()) {
1910
0
      total_size += 1 +
1911
0
        ::google::protobuf::internal::WireFormatLite::Int64Size(
1912
0
          this->length());
1913
0
    }
1914
1915
0
  }
1916
0
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
1917
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1918
0
  _cached_size_ = cached_size;
1919
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
1920
0
  return total_size;
1921
0
}
1922
1923
0
void BlockRecordPB::MergeFrom(const ::google::protobuf::Message& from) {
1924
// @@protoc_insertion_point(generalized_merge_from_start:yb.BlockRecordPB)
1925
0
  GOOGLE_DCHECK_NE(&from, this);
1926
0
  const BlockRecordPB* source =
1927
0
      ::google::protobuf::internal::DynamicCastToGenerated<const BlockRecordPB>(
1928
0
          &from);
1929
0
  if (source == NULL) {
1930
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.BlockRecordPB)
1931
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
1932
0
  } else {
1933
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.BlockRecordPB)
1934
0
    MergeFrom(*source);
1935
0
  }
1936
0
}
1937
1938
0
void BlockRecordPB::MergeFrom(const BlockRecordPB& from) {
1939
// @@protoc_insertion_point(class_specific_merge_from_start:yb.BlockRecordPB)
1940
0
  GOOGLE_DCHECK_NE(&from, this);
1941
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
1942
0
  ::google::protobuf::uint32 cached_has_bits = 0;
1943
0
  (void) cached_has_bits;
1944
1945
0
  cached_has_bits = from._has_bits_[0];
1946
0
  if (cached_has_bits & 31u) {
1947
0
    if (cached_has_bits & 0x00000001u) {
1948
0
      mutable_block_id()->::yb::BlockIdPB::MergeFrom(from.block_id());
1949
0
    }
1950
0
    if (cached_has_bits & 0x00000002u) {
1951
0
      timestamp_us_ = from.timestamp_us_;
1952
0
    }
1953
0
    if (cached_has_bits & 0x00000004u) {
1954
0
      offset_ = from.offset_;
1955
0
    }
1956
0
    if (cached_has_bits & 0x00000008u) {
1957
0
      length_ = from.length_;
1958
0
    }
1959
0
    if (cached_has_bits & 0x00000010u) {
1960
0
      op_type_ = from.op_type_;
1961
0
    }
1962
0
    _has_bits_[0] |= cached_has_bits;
1963
0
  }
1964
0
}
1965
1966
0
void BlockRecordPB::CopyFrom(const ::google::protobuf::Message& from) {
1967
// @@protoc_insertion_point(generalized_copy_from_start:yb.BlockRecordPB)
1968
0
  if (&from == this) return;
1969
0
  Clear();
1970
0
  MergeFrom(from);
1971
0
}
1972
1973
0
void BlockRecordPB::CopyFrom(const BlockRecordPB& from) {
1974
// @@protoc_insertion_point(class_specific_copy_from_start:yb.BlockRecordPB)
1975
0
  if (&from == this) return;
1976
0
  Clear();
1977
0
  MergeFrom(from);
1978
0
}
1979
1980
0
bool BlockRecordPB::IsInitialized() const {
1981
0
  if ((_has_bits_[0] & 0x00000013) != 0x00000013) return false;
1982
0
  if (has_block_id()) {
1983
0
    if (!this->block_id_->IsInitialized()) return false;
1984
0
  }
1985
0
  return true;
1986
0
}
1987
1988
0
void BlockRecordPB::Swap(BlockRecordPB* other) {
1989
0
  if (other == this) return;
1990
0
  InternalSwap(other);
1991
0
}
1992
0
void BlockRecordPB::InternalSwap(BlockRecordPB* other) {
1993
0
  using std::swap;
1994
0
  swap(block_id_, other->block_id_);
1995
0
  swap(timestamp_us_, other->timestamp_us_);
1996
0
  swap(offset_, other->offset_);
1997
0
  swap(length_, other->length_);
1998
0
  swap(op_type_, other->op_type_);
1999
0
  swap(_has_bits_[0], other->_has_bits_[0]);
2000
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
2001
0
  swap(_cached_size_, other->_cached_size_);
2002
0
}
2003
2004
0
::google::protobuf::Metadata BlockRecordPB::GetMetadata() const {
2005
0
  protobuf_yb_2ffs_2ffs_2eproto::protobuf_AssignDescriptorsOnce();
2006
0
  return ::protobuf_yb_2ffs_2ffs_2eproto::file_level_metadata[kIndexInFileMessages];
2007
0
}
2008
2009
2010
// @@protoc_insertion_point(namespace_scope)
2011
}  // namespace yb
2012
2013
// @@protoc_insertion_point(global_scope)