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/tserver/backup.pb.cc
Line
Count
Source (jump to first uncovered line)
1
// Generated by the protocol buffer compiler.  DO NOT EDIT!
2
// source: yb/tserver/backup.proto
3
4
#include "yb/tserver/backup.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
namespace tserver {
25
class TabletSnapshotOpRequestPBDefaultTypeInternal {
26
 public:
27
  ::google::protobuf::internal::ExplicitlyConstructed<TabletSnapshotOpRequestPB>
28
      _instance;
29
} _TabletSnapshotOpRequestPB_default_instance_;
30
class TabletSnapshotOpResponsePBDefaultTypeInternal {
31
 public:
32
  ::google::protobuf::internal::ExplicitlyConstructed<TabletSnapshotOpResponsePB>
33
      _instance;
34
} _TabletSnapshotOpResponsePB_default_instance_;
35
}  // namespace tserver
36
}  // namespace yb
37
namespace protobuf_yb_2ftserver_2fbackup_2eproto {
38
15.8k
void InitDefaultsTabletSnapshotOpRequestPBImpl() {
39
15.8k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
40
41
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
42
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
43
#else
44
15.8k
  ::google::protobuf::internal::InitProtobufDefaults();
45
15.8k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
46
15.8k
  protobuf_google_2fprotobuf_2fany_2eproto::InitDefaultsAny();
47
15.8k
  protobuf_yb_2fcommon_2fcommon_2eproto::InitDefaultsSchemaPB();
48
15.8k
  protobuf_yb_2fcommon_2fcommon_2eproto::InitDefaultsIndexInfoPB();
49
15.8k
  {
50
15.8k
    void* ptr = &::yb::tserver::_TabletSnapshotOpRequestPB_default_instance_;
51
15.8k
    new (ptr) ::yb::tserver::TabletSnapshotOpRequestPB();
52
15.8k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
53
15.8k
  }
54
15.8k
  ::yb::tserver::TabletSnapshotOpRequestPB::InitAsDefaultInstance();
55
15.8k
}
56
57
32.9k
void InitDefaultsTabletSnapshotOpRequestPB() {
58
32.9k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
59
32.9k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsTabletSnapshotOpRequestPBImpl);
60
32.9k
}
61
62
15.8k
void InitDefaultsTabletSnapshotOpResponsePBImpl() {
63
15.8k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
64
65
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
66
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
67
#else
68
15.8k
  ::google::protobuf::internal::InitProtobufDefaults();
69
15.8k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
70
15.8k
  protobuf_yb_2ftserver_2ftserver_5ftypes_2eproto::InitDefaultsTabletServerErrorPB();
71
15.8k
  {
72
15.8k
    void* ptr = &::yb::tserver::_TabletSnapshotOpResponsePB_default_instance_;
73
15.8k
    new (ptr) ::yb::tserver::TabletSnapshotOpResponsePB();
74
15.8k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
75
15.8k
  }
76
15.8k
  ::yb::tserver::TabletSnapshotOpResponsePB::InitAsDefaultInstance();
77
15.8k
}
78
79
16.2k
void InitDefaultsTabletSnapshotOpResponsePB() {
80
16.2k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
81
16.2k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsTabletSnapshotOpResponsePBImpl);
82
16.2k
}
83
84
::google::protobuf::Metadata file_level_metadata[2];
85
const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors[1];
86
87
const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
88
  ~0u,  // no _has_bits_
89
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tserver::TabletSnapshotOpRequestPB, _internal_metadata_),
90
  ~0u,  // no _extensions_
91
  ~0u,  // no _oneof_case_
92
  ~0u,  // no _weak_field_map_
93
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tserver::TabletSnapshotOpRequestPB, dest_uuid_),
94
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tserver::TabletSnapshotOpRequestPB, operation_),
95
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tserver::TabletSnapshotOpRequestPB, snapshot_id_),
96
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tserver::TabletSnapshotOpRequestPB, tablet_id_),
97
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tserver::TabletSnapshotOpRequestPB, propagated_hybrid_time_),
98
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tserver::TabletSnapshotOpRequestPB, snapshot_dir_override_),
99
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tserver::TabletSnapshotOpRequestPB, snapshot_hybrid_time_),
100
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tserver::TabletSnapshotOpRequestPB, restoration_hybrid_time_),
101
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tserver::TabletSnapshotOpRequestPB, extra_data_),
102
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tserver::TabletSnapshotOpRequestPB, imported_),
103
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tserver::TabletSnapshotOpRequestPB, schedule_id_),
104
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tserver::TabletSnapshotOpRequestPB, restoration_id_),
105
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tserver::TabletSnapshotOpRequestPB, schema_version_),
106
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tserver::TabletSnapshotOpRequestPB, schema_),
107
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tserver::TabletSnapshotOpRequestPB, indexes_),
108
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tserver::TabletSnapshotOpRequestPB, previous_snapshot_hybrid_time_),
109
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tserver::TabletSnapshotOpRequestPB, hide_),
110
  ~0u,  // no _has_bits_
111
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tserver::TabletSnapshotOpResponsePB, _internal_metadata_),
112
  ~0u,  // no _extensions_
113
  ~0u,  // no _oneof_case_
114
  ~0u,  // no _weak_field_map_
115
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tserver::TabletSnapshotOpResponsePB, error_),
116
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tserver::TabletSnapshotOpResponsePB, propagated_hybrid_time_),
117
};
118
static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
119
  { 0, -1, sizeof(::yb::tserver::TabletSnapshotOpRequestPB)},
120
  { 22, -1, sizeof(::yb::tserver::TabletSnapshotOpResponsePB)},
121
};
122
123
static ::google::protobuf::Message const * const file_default_instances[] = {
124
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::tserver::_TabletSnapshotOpRequestPB_default_instance_),
125
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::tserver::_TabletSnapshotOpResponsePB_default_instance_),
126
};
127
128
863
void protobuf_AssignDescriptors() {
129
863
  AddDescriptors();
130
863
  ::google::protobuf::MessageFactory* factory = NULL;
131
863
  AssignDescriptors(
132
863
      "yb/tserver/backup.proto", schemas, file_default_instances, TableStruct::offsets, factory,
133
863
      file_level_metadata, file_level_enum_descriptors, NULL);
134
863
}
135
136
2.24k
void protobuf_AssignDescriptorsOnce() {
137
2.24k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
138
2.24k
  ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors);
139
2.24k
}
140
141
void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD;
142
0
void protobuf_RegisterTypes(const ::std::string&) {
143
0
  protobuf_AssignDescriptorsOnce();
144
0
  ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 2);
145
0
}
146
147
15.8k
void AddDescriptorsImpl() {
148
15.8k
  InitDefaults();
149
15.8k
  static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
150
15.8k
      "\n\027yb/tserver/backup.proto\022\nyb.tserver\032\031g"
151
15.8k
      "oogle/protobuf/any.proto\032\026yb/common/comm"
152
15.8k
      "on.proto\032\036yb/tserver/tserver_types.proto"
153
15.8k
      "\"\307\005\n\031TabletSnapshotOpRequestPB\022\021\n\tdest_u"
154
15.8k
      "uid\030\001 \001(\014\022B\n\toperation\030\002 \001(\0162/.yb.tserve"
155
15.8k
      "r.TabletSnapshotOpRequestPB.Operation\022\023\n"
156
15.8k
      "\013snapshot_id\030\003 \001(\014\022\021\n\ttablet_id\030\004 \003(\014\022\036\n"
157
15.8k
      "\026propagated_hybrid_time\030\005 \001(\006\022\035\n\025snapsho"
158
15.8k
      "t_dir_override\030\006 \001(\t\022\034\n\024snapshot_hybrid_"
159
15.8k
      "time\030\007 \001(\006\022\037\n\027restoration_hybrid_time\030\021 "
160
15.8k
      "\001(\006\022(\n\nextra_data\030\010 \001(\0132\024.google.protobu"
161
15.8k
      "f.Any\022\020\n\010imported\030\t \001(\010\022\023\n\013schedule_id\030\n"
162
15.8k
      " \001(\014\022\026\n\016restoration_id\030\013 \001(\014\022\026\n\016schema_v"
163
15.8k
      "ersion\030\014 \001(\r\022\034\n\006schema\030\r \001(\0132\014.yb.Schema"
164
15.8k
      "PB\022 \n\007indexes\030\016 \003(\0132\017.yb.IndexInfoPB\022%\n\035"
165
15.8k
      "previous_snapshot_hybrid_time\030\017 \001(\006\022\014\n\004h"
166
15.8k
      "ide\030\020 \001(\010\"\266\001\n\tOperation\022\013\n\007UNKNOWN\020\000\022\024\n\020"
167
15.8k
      "CREATE_ON_TABLET\020\001\022\025\n\021RESTORE_ON_TABLET\020"
168
15.8k
      "\002\022\024\n\020DELETE_ON_TABLET\020\003\022\024\n\020CREATE_ON_MAS"
169
15.8k
      "TER\020\004\022\024\n\020DELETE_ON_MASTER\020\005\022\027\n\023RESTORE_S"
170
15.8k
      "YS_CATALOG\020\006\022\024\n\020RESTORE_FINISHED\020\007\"l\n\032Ta"
171
15.8k
      "bletSnapshotOpResponsePB\022.\n\005error\030\001 \001(\0132"
172
15.8k
      "\037.yb.tserver.TabletServerErrorPB\022\036\n\026prop"
173
15.8k
      "agated_hybrid_time\030\002 \001(\0062~\n\031TabletServer"
174
15.8k
      "BackupService\022a\n\020TabletSnapshotOp\022%.yb.t"
175
15.8k
      "server.TabletSnapshotOpRequestPB\032&.yb.ts"
176
15.8k
      "erver.TabletSnapshotOpResponsePBB\020\n\016org."
177
15.8k
      "yb.tserverb\006proto3"
178
15.8k
  };
179
15.8k
  ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
180
15.8k
      descriptor, 1098);
181
15.8k
  ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
182
15.8k
    "yb/tserver/backup.proto", &protobuf_RegisterTypes);
183
15.8k
  ::protobuf_google_2fprotobuf_2fany_2eproto::AddDescriptors();
184
15.8k
  ::protobuf_yb_2fcommon_2fcommon_2eproto::AddDescriptors();
185
15.8k
  ::protobuf_yb_2ftserver_2ftserver_5ftypes_2eproto::AddDescriptors();
186
15.8k
}
187
188
32.5k
void AddDescriptors() {
189
32.5k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
190
32.5k
  ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl);
191
32.5k
}
192
// Force AddDescriptors() to be called at dynamic initialization time.
193
struct StaticDescriptorInitializer {
194
15.8k
  StaticDescriptorInitializer() {
195
15.8k
    AddDescriptors();
196
15.8k
  }
197
} static_descriptor_initializer;
198
}  // namespace protobuf_yb_2ftserver_2fbackup_2eproto
199
namespace yb {
200
namespace tserver {
201
3
const ::google::protobuf::EnumDescriptor* TabletSnapshotOpRequestPB_Operation_descriptor() {
202
3
  protobuf_yb_2ftserver_2fbackup_2eproto::protobuf_AssignDescriptorsOnce();
203
3
  return protobuf_yb_2ftserver_2fbackup_2eproto::file_level_enum_descriptors[0];
204
3
}
205
0
bool TabletSnapshotOpRequestPB_Operation_IsValid(int value) {
206
0
  switch (value) {
207
0
    case 0:
208
0
    case 1:
209
0
    case 2:
210
0
    case 3:
211
0
    case 4:
212
0
    case 5:
213
0
    case 6:
214
0
    case 7:
215
0
      return true;
216
0
    default:
217
0
      return false;
218
0
  }
219
0
}
220
221
#if !defined(_MSC_VER) || _MSC_VER >= 1900
222
const TabletSnapshotOpRequestPB_Operation TabletSnapshotOpRequestPB::UNKNOWN;
223
const TabletSnapshotOpRequestPB_Operation TabletSnapshotOpRequestPB::CREATE_ON_TABLET;
224
const TabletSnapshotOpRequestPB_Operation TabletSnapshotOpRequestPB::RESTORE_ON_TABLET;
225
const TabletSnapshotOpRequestPB_Operation TabletSnapshotOpRequestPB::DELETE_ON_TABLET;
226
const TabletSnapshotOpRequestPB_Operation TabletSnapshotOpRequestPB::CREATE_ON_MASTER;
227
const TabletSnapshotOpRequestPB_Operation TabletSnapshotOpRequestPB::DELETE_ON_MASTER;
228
const TabletSnapshotOpRequestPB_Operation TabletSnapshotOpRequestPB::RESTORE_SYS_CATALOG;
229
const TabletSnapshotOpRequestPB_Operation TabletSnapshotOpRequestPB::RESTORE_FINISHED;
230
const TabletSnapshotOpRequestPB_Operation TabletSnapshotOpRequestPB::Operation_MIN;
231
const TabletSnapshotOpRequestPB_Operation TabletSnapshotOpRequestPB::Operation_MAX;
232
const int TabletSnapshotOpRequestPB::Operation_ARRAYSIZE;
233
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
234
235
// ===================================================================
236
237
15.8k
void TabletSnapshotOpRequestPB::InitAsDefaultInstance() {
238
15.8k
  ::yb::tserver::_TabletSnapshotOpRequestPB_default_instance_._instance.get_mutable()->extra_data_ = const_cast< ::google::protobuf::Any*>(
239
15.8k
      ::google::protobuf::Any::internal_default_instance());
240
15.8k
  ::yb::tserver::_TabletSnapshotOpRequestPB_default_instance_._instance.get_mutable()->schema_ = const_cast< ::yb::SchemaPB*>(
241
15.8k
      ::yb::SchemaPB::internal_default_instance());
242
15.8k
}
243
0
void TabletSnapshotOpRequestPB::clear_extra_data() {
244
0
  if (GetArenaNoVirtual() == NULL && extra_data_ != NULL) {
245
0
    delete extra_data_;
246
0
  }
247
0
  extra_data_ = NULL;
248
0
}
249
0
void TabletSnapshotOpRequestPB::clear_schema() {
250
0
  if (GetArenaNoVirtual() == NULL && schema_ != NULL) {
251
0
    delete schema_;
252
0
  }
253
0
  schema_ = NULL;
254
0
}
255
0
void TabletSnapshotOpRequestPB::clear_indexes() {
256
0
  indexes_.Clear();
257
0
}
258
#if !defined(_MSC_VER) || _MSC_VER >= 1900
259
const int TabletSnapshotOpRequestPB::kDestUuidFieldNumber;
260
const int TabletSnapshotOpRequestPB::kOperationFieldNumber;
261
const int TabletSnapshotOpRequestPB::kSnapshotIdFieldNumber;
262
const int TabletSnapshotOpRequestPB::kTabletIdFieldNumber;
263
const int TabletSnapshotOpRequestPB::kPropagatedHybridTimeFieldNumber;
264
const int TabletSnapshotOpRequestPB::kSnapshotDirOverrideFieldNumber;
265
const int TabletSnapshotOpRequestPB::kSnapshotHybridTimeFieldNumber;
266
const int TabletSnapshotOpRequestPB::kRestorationHybridTimeFieldNumber;
267
const int TabletSnapshotOpRequestPB::kExtraDataFieldNumber;
268
const int TabletSnapshotOpRequestPB::kImportedFieldNumber;
269
const int TabletSnapshotOpRequestPB::kScheduleIdFieldNumber;
270
const int TabletSnapshotOpRequestPB::kRestorationIdFieldNumber;
271
const int TabletSnapshotOpRequestPB::kSchemaVersionFieldNumber;
272
const int TabletSnapshotOpRequestPB::kSchemaFieldNumber;
273
const int TabletSnapshotOpRequestPB::kIndexesFieldNumber;
274
const int TabletSnapshotOpRequestPB::kPreviousSnapshotHybridTimeFieldNumber;
275
const int TabletSnapshotOpRequestPB::kHideFieldNumber;
276
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
277
278
TabletSnapshotOpRequestPB::TabletSnapshotOpRequestPB()
279
17.0k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
280
1.24k
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
281
1.24k
    ::protobuf_yb_2ftserver_2fbackup_2eproto::InitDefaultsTabletSnapshotOpRequestPB();
282
1.24k
  }
283
17.0k
  SharedCtor();
284
  // @@protoc_insertion_point(constructor:yb.tserver.TabletSnapshotOpRequestPB)
285
17.0k
}
286
TabletSnapshotOpRequestPB::TabletSnapshotOpRequestPB(const TabletSnapshotOpRequestPB& from)
287
  : ::google::protobuf::Message(),
288
      _internal_metadata_(NULL),
289
      tablet_id_(from.tablet_id_),
290
      indexes_(from.indexes_),
291
0
      _cached_size_(0) {
292
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
293
0
  dest_uuid_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
294
0
  if (from.dest_uuid().size() > 0) {
295
0
    dest_uuid_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.dest_uuid_);
296
0
  }
297
0
  snapshot_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
298
0
  if (from.snapshot_id().size() > 0) {
299
0
    snapshot_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.snapshot_id_);
300
0
  }
301
0
  snapshot_dir_override_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
302
0
  if (from.snapshot_dir_override().size() > 0) {
303
0
    snapshot_dir_override_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.snapshot_dir_override_);
304
0
  }
305
0
  schedule_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
306
0
  if (from.schedule_id().size() > 0) {
307
0
    schedule_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.schedule_id_);
308
0
  }
309
0
  restoration_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
310
0
  if (from.restoration_id().size() > 0) {
311
0
    restoration_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.restoration_id_);
312
0
  }
313
0
  if (from.has_extra_data()) {
314
0
    extra_data_ = new ::google::protobuf::Any(*from.extra_data_);
315
0
  } else {
316
0
    extra_data_ = NULL;
317
0
  }
318
0
  if (from.has_schema()) {
319
0
    schema_ = new ::yb::SchemaPB(*from.schema_);
320
0
  } else {
321
0
    schema_ = NULL;
322
0
  }
323
0
  ::memcpy(&propagated_hybrid_time_, &from.propagated_hybrid_time_,
324
0
    static_cast<size_t>(reinterpret_cast<char*>(&hide_) -
325
0
    reinterpret_cast<char*>(&propagated_hybrid_time_)) + sizeof(hide_));
326
  // @@protoc_insertion_point(copy_constructor:yb.tserver.TabletSnapshotOpRequestPB)
327
0
}
328
329
17.0k
void TabletSnapshotOpRequestPB::SharedCtor() {
330
17.0k
  dest_uuid_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
331
17.0k
  snapshot_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
332
17.0k
  snapshot_dir_override_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
333
17.0k
  schedule_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
334
17.0k
  restoration_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
335
17.0k
  ::memset(&extra_data_, 0, static_cast<size_t>(
336
17.0k
      reinterpret_cast<char*>(&hide_) -
337
17.0k
      reinterpret_cast<char*>(&extra_data_)) + sizeof(hide_));
338
17.0k
  _cached_size_ = 0;
339
17.0k
}
340
341
1.24k
TabletSnapshotOpRequestPB::~TabletSnapshotOpRequestPB() {
342
  // @@protoc_insertion_point(destructor:yb.tserver.TabletSnapshotOpRequestPB)
343
1.24k
  SharedDtor();
344
1.24k
}
345
346
1.24k
void TabletSnapshotOpRequestPB::SharedDtor() {
347
1.24k
  dest_uuid_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
348
1.24k
  snapshot_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
349
1.24k
  snapshot_dir_override_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
350
1.24k
  schedule_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
351
1.24k
  restoration_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
352
1.24k
  if (this != internal_default_instance()) delete extra_data_;
353
1.24k
  if (this != internal_default_instance()) delete schema_;
354
1.24k
}
355
356
0
void TabletSnapshotOpRequestPB::SetCachedSize(int size) const {
357
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
358
0
  _cached_size_ = size;
359
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
360
0
}
361
0
const ::google::protobuf::Descriptor* TabletSnapshotOpRequestPB::descriptor() {
362
0
  ::protobuf_yb_2ftserver_2fbackup_2eproto::protobuf_AssignDescriptorsOnce();
363
0
  return ::protobuf_yb_2ftserver_2fbackup_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
364
0
}
365
366
0
const TabletSnapshotOpRequestPB& TabletSnapshotOpRequestPB::default_instance() {
367
0
  ::protobuf_yb_2ftserver_2fbackup_2eproto::InitDefaultsTabletSnapshotOpRequestPB();
368
0
  return *internal_default_instance();
369
0
}
370
371
0
TabletSnapshotOpRequestPB* TabletSnapshotOpRequestPB::New(::google::protobuf::Arena* arena) const {
372
0
  TabletSnapshotOpRequestPB* n = new TabletSnapshotOpRequestPB;
373
0
  if (arena != NULL) {
374
0
    arena->Own(n);
375
0
  }
376
0
  return n;
377
0
}
378
379
368
void TabletSnapshotOpRequestPB::Clear() {
380
// @@protoc_insertion_point(message_clear_start:yb.tserver.TabletSnapshotOpRequestPB)
381
368
  ::google::protobuf::uint32 cached_has_bits = 0;
382
  // Prevent compiler warnings about cached_has_bits being unused
383
368
  (void) cached_has_bits;
384
385
368
  tablet_id_.Clear();
386
368
  indexes_.Clear();
387
368
  dest_uuid_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
388
368
  snapshot_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
389
368
  snapshot_dir_override_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
390
368
  schedule_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
391
368
  restoration_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
392
368
  if (GetArenaNoVirtual() == NULL && extra_data_ != NULL) {
393
0
    delete extra_data_;
394
0
  }
395
368
  extra_data_ = NULL;
396
368
  if (GetArenaNoVirtual() == NULL && schema_ != NULL) {
397
0
    delete schema_;
398
0
  }
399
368
  schema_ = NULL;
400
368
  ::memset(&propagated_hybrid_time_, 0, static_cast<size_t>(
401
368
      reinterpret_cast<char*>(&hide_) -
402
368
      reinterpret_cast<char*>(&propagated_hybrid_time_)) + sizeof(hide_));
403
368
  _internal_metadata_.Clear();
404
368
}
405
406
bool TabletSnapshotOpRequestPB::MergePartialFromCodedStream(
407
504
    ::google::protobuf::io::CodedInputStream* input) {
408
2.01k
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
409
504
  ::google::protobuf::uint32 tag;
410
  // @@protoc_insertion_point(parse_start:yb.tserver.TabletSnapshotOpRequestPB)
411
2.01k
  for (;;) {
412
2.01k
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u);
413
2.01k
    tag = p.first;
414
2.01k
    if (!p.second) goto handle_unusual;
415
1.51k
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
416
      // bytes dest_uuid = 1;
417
4
      case 1: {
418
4
        if (static_cast< ::google::protobuf::uint8>(tag) ==
419
4
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
420
4
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
421
4
                input, this->mutable_dest_uuid()));
422
0
        } else {
423
0
          goto handle_unusual;
424
0
        }
425
4
        break;
426
4
      }
427
428
      // .yb.tserver.TabletSnapshotOpRequestPB.Operation operation = 2;
429
504
      case 2: {
430
504
        if (static_cast< ::google::protobuf::uint8>(tag) ==
431
504
            static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
432
504
          int value;
433
504
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
434
504
                   int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
435
504
                 input, &value)));
436
504
          set_operation(static_cast< ::yb::tserver::TabletSnapshotOpRequestPB_Operation >(value));
437
0
        } else {
438
0
          goto handle_unusual;
439
0
        }
440
504
        break;
441
504
      }
442
443
      // bytes snapshot_id = 3;
444
4
      case 3: {
445
4
        if (static_cast< ::google::protobuf::uint8>(tag) ==
446
4
            static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
447
4
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
448
4
                input, this->mutable_snapshot_id()));
449
0
        } else {
450
0
          goto handle_unusual;
451
0
        }
452
4
        break;
453
4
      }
454
455
      // repeated bytes tablet_id = 4;
456
503
      case 4: {
457
503
        if (static_cast< ::google::protobuf::uint8>(tag) ==
458
503
            static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
459
503
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
460
503
                input, this->add_tablet_id()));
461
0
        } else {
462
0
          goto handle_unusual;
463
0
        }
464
503
        break;
465
503
      }
466
467
      // fixed64 propagated_hybrid_time = 5;
468
0
      case 5: {
469
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
470
0
            static_cast< ::google::protobuf::uint8>(41u /* 41 & 0xFF */)) {
471
472
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
473
0
                   ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED64>(
474
0
                 input, &propagated_hybrid_time_)));
475
0
        } else {
476
0
          goto handle_unusual;
477
0
        }
478
0
        break;
479
0
      }
480
481
      // string snapshot_dir_override = 6;
482
500
      case 6: {
483
500
        if (static_cast< ::google::protobuf::uint8>(tag) ==
484
500
            static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) {
485
500
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
486
500
                input, this->mutable_snapshot_dir_override()));
487
500
          DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
488
500
            this->snapshot_dir_override().data(), static_cast<int>(this->snapshot_dir_override().length()),
489
500
            ::google::protobuf::internal::WireFormatLite::PARSE,
490
500
            "yb.tserver.TabletSnapshotOpRequestPB.snapshot_dir_override"));
491
0
        } else {
492
0
          goto handle_unusual;
493
0
        }
494
500
        break;
495
500
      }
496
497
      // fixed64 snapshot_hybrid_time = 7;
498
0
      case 7: {
499
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
500
0
            static_cast< ::google::protobuf::uint8>(57u /* 57 & 0xFF */)) {
501
502
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
503
0
                   ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED64>(
504
0
                 input, &snapshot_hybrid_time_)));
505
0
        } else {
506
0
          goto handle_unusual;
507
0
        }
508
0
        break;
509
0
      }
510
511
      // .google.protobuf.Any extra_data = 8;
512
0
      case 8: {
513
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
514
0
            static_cast< ::google::protobuf::uint8>(66u /* 66 & 0xFF */)) {
515
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
516
0
               input, mutable_extra_data()));
517
0
        } else {
518
0
          goto handle_unusual;
519
0
        }
520
0
        break;
521
0
      }
522
523
      // bool imported = 9;
524
0
      case 9: {
525
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
526
0
            static_cast< ::google::protobuf::uint8>(72u /* 72 & 0xFF */)) {
527
528
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
529
0
                   bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
530
0
                 input, &imported_)));
531
0
        } else {
532
0
          goto handle_unusual;
533
0
        }
534
0
        break;
535
0
      }
536
537
      // bytes schedule_id = 10;
538
0
      case 10: {
539
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
540
0
            static_cast< ::google::protobuf::uint8>(82u /* 82 & 0xFF */)) {
541
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
542
0
                input, this->mutable_schedule_id()));
543
0
        } else {
544
0
          goto handle_unusual;
545
0
        }
546
0
        break;
547
0
      }
548
549
      // bytes restoration_id = 11;
550
0
      case 11: {
551
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
552
0
            static_cast< ::google::protobuf::uint8>(90u /* 90 & 0xFF */)) {
553
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
554
0
                input, this->mutable_restoration_id()));
555
0
        } else {
556
0
          goto handle_unusual;
557
0
        }
558
0
        break;
559
0
      }
560
561
      // uint32 schema_version = 12;
562
0
      case 12: {
563
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
564
0
            static_cast< ::google::protobuf::uint8>(96u /* 96 & 0xFF */)) {
565
566
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
567
0
                   ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
568
0
                 input, &schema_version_)));
569
0
        } else {
570
0
          goto handle_unusual;
571
0
        }
572
0
        break;
573
0
      }
574
575
      // .yb.SchemaPB schema = 13;
576
0
      case 13: {
577
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
578
0
            static_cast< ::google::protobuf::uint8>(106u /* 106 & 0xFF */)) {
579
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
580
0
               input, mutable_schema()));
581
0
        } else {
582
0
          goto handle_unusual;
583
0
        }
584
0
        break;
585
0
      }
586
587
      // repeated .yb.IndexInfoPB indexes = 14;
588
0
      case 14: {
589
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
590
0
            static_cast< ::google::protobuf::uint8>(114u /* 114 & 0xFF */)) {
591
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_indexes()));
592
0
        } else {
593
0
          goto handle_unusual;
594
0
        }
595
0
        break;
596
0
      }
597
598
      // fixed64 previous_snapshot_hybrid_time = 15;
599
0
      case 15: {
600
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
601
0
            static_cast< ::google::protobuf::uint8>(121u /* 121 & 0xFF */)) {
602
603
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
604
0
                   ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED64>(
605
0
                 input, &previous_snapshot_hybrid_time_)));
606
0
        } else {
607
0
          goto handle_unusual;
608
0
        }
609
0
        break;
610
0
      }
611
612
      // bool hide = 16;
613
0
      case 16: {
614
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
615
0
            static_cast< ::google::protobuf::uint8>(128u /* 128 & 0xFF */)) {
616
617
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
618
0
                   bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
619
0
                 input, &hide_)));
620
0
        } else {
621
0
          goto handle_unusual;
622
0
        }
623
0
        break;
624
0
      }
625
626
      // fixed64 restoration_hybrid_time = 17;
627
0
      case 17: {
628
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
629
0
            static_cast< ::google::protobuf::uint8>(137u /* 137 & 0xFF */)) {
630
631
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
632
0
                   ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED64>(
633
0
                 input, &restoration_hybrid_time_)));
634
0
        } else {
635
0
          goto handle_unusual;
636
0
        }
637
0
        break;
638
504
      }
639
640
0
      default: {
641
504
      handle_unusual:
642
504
        if (tag == 0) {
643
504
          goto success;
644
504
        }
645
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
646
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
647
0
        break;
648
0
      }
649
1.51k
    }
650
1.51k
  }
651
504
success:
652
  // @@protoc_insertion_point(parse_success:yb.tserver.TabletSnapshotOpRequestPB)
653
504
  return true;
654
0
failure:
655
  // @@protoc_insertion_point(parse_failure:yb.tserver.TabletSnapshotOpRequestPB)
656
0
  return false;
657
504
#undef DO_
658
504
}
659
660
void TabletSnapshotOpRequestPB::SerializeWithCachedSizes(
661
0
    ::google::protobuf::io::CodedOutputStream* output) const {
662
  // @@protoc_insertion_point(serialize_start:yb.tserver.TabletSnapshotOpRequestPB)
663
0
  ::google::protobuf::uint32 cached_has_bits = 0;
664
0
  (void) cached_has_bits;
665
666
  // bytes dest_uuid = 1;
667
0
  if (this->dest_uuid().size() > 0) {
668
0
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
669
0
      1, this->dest_uuid(), output);
670
0
  }
671
672
  // .yb.tserver.TabletSnapshotOpRequestPB.Operation operation = 2;
673
0
  if (this->operation() != 0) {
674
0
    ::google::protobuf::internal::WireFormatLite::WriteEnum(
675
0
      2, this->operation(), output);
676
0
  }
677
678
  // bytes snapshot_id = 3;
679
0
  if (this->snapshot_id().size() > 0) {
680
0
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
681
0
      3, this->snapshot_id(), output);
682
0
  }
683
684
  // repeated bytes tablet_id = 4;
685
0
  for (int i = 0, n = this->tablet_id_size(); i < n; i++) {
686
0
    ::google::protobuf::internal::WireFormatLite::WriteBytes(
687
0
      4, this->tablet_id(i), output);
688
0
  }
689
690
  // fixed64 propagated_hybrid_time = 5;
691
0
  if (this->propagated_hybrid_time() != 0) {
692
0
    ::google::protobuf::internal::WireFormatLite::WriteFixed64(5, this->propagated_hybrid_time(), output);
693
0
  }
694
695
  // string snapshot_dir_override = 6;
696
0
  if (this->snapshot_dir_override().size() > 0) {
697
0
    ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
698
0
      this->snapshot_dir_override().data(), static_cast<int>(this->snapshot_dir_override().length()),
699
0
      ::google::protobuf::internal::WireFormatLite::SERIALIZE,
700
0
      "yb.tserver.TabletSnapshotOpRequestPB.snapshot_dir_override");
701
0
    ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
702
0
      6, this->snapshot_dir_override(), output);
703
0
  }
704
705
  // fixed64 snapshot_hybrid_time = 7;
706
0
  if (this->snapshot_hybrid_time() != 0) {
707
0
    ::google::protobuf::internal::WireFormatLite::WriteFixed64(7, this->snapshot_hybrid_time(), output);
708
0
  }
709
710
  // .google.protobuf.Any extra_data = 8;
711
0
  if (this->has_extra_data()) {
712
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
713
0
      8, *this->extra_data_, output);
714
0
  }
715
716
  // bool imported = 9;
717
0
  if (this->imported() != 0) {
718
0
    ::google::protobuf::internal::WireFormatLite::WriteBool(9, this->imported(), output);
719
0
  }
720
721
  // bytes schedule_id = 10;
722
0
  if (this->schedule_id().size() > 0) {
723
0
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
724
0
      10, this->schedule_id(), output);
725
0
  }
726
727
  // bytes restoration_id = 11;
728
0
  if (this->restoration_id().size() > 0) {
729
0
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
730
0
      11, this->restoration_id(), output);
731
0
  }
732
733
  // uint32 schema_version = 12;
734
0
  if (this->schema_version() != 0) {
735
0
    ::google::protobuf::internal::WireFormatLite::WriteUInt32(12, this->schema_version(), output);
736
0
  }
737
738
  // .yb.SchemaPB schema = 13;
739
0
  if (this->has_schema()) {
740
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
741
0
      13, *this->schema_, output);
742
0
  }
743
744
  // repeated .yb.IndexInfoPB indexes = 14;
745
0
  for (unsigned int i = 0,
746
0
      n = static_cast<unsigned int>(this->indexes_size()); i < n; i++) {
747
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
748
0
      14, this->indexes(static_cast<int>(i)), output);
749
0
  }
750
751
  // fixed64 previous_snapshot_hybrid_time = 15;
752
0
  if (this->previous_snapshot_hybrid_time() != 0) {
753
0
    ::google::protobuf::internal::WireFormatLite::WriteFixed64(15, this->previous_snapshot_hybrid_time(), output);
754
0
  }
755
756
  // bool hide = 16;
757
0
  if (this->hide() != 0) {
758
0
    ::google::protobuf::internal::WireFormatLite::WriteBool(16, this->hide(), output);
759
0
  }
760
761
  // fixed64 restoration_hybrid_time = 17;
762
0
  if (this->restoration_hybrid_time() != 0) {
763
0
    ::google::protobuf::internal::WireFormatLite::WriteFixed64(17, this->restoration_hybrid_time(), output);
764
0
  }
765
766
0
  if ((_internal_metadata_.have_unknown_fields() &&  ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
767
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
768
0
        (::google::protobuf::internal::GetProto3PreserveUnknownsDefault()   ? _internal_metadata_.unknown_fields()   : _internal_metadata_.default_instance()), output);
769
0
  }
770
  // @@protoc_insertion_point(serialize_end:yb.tserver.TabletSnapshotOpRequestPB)
771
0
}
772
773
::google::protobuf::uint8* TabletSnapshotOpRequestPB::InternalSerializeWithCachedSizesToArray(
774
1.36k
    bool deterministic, ::google::protobuf::uint8* target) const {
775
1.36k
  (void)deterministic; // Unused
776
  // @@protoc_insertion_point(serialize_to_array_start:yb.tserver.TabletSnapshotOpRequestPB)
777
1.36k
  ::google::protobuf::uint32 cached_has_bits = 0;
778
1.36k
  (void) cached_has_bits;
779
780
  // bytes dest_uuid = 1;
781
1.36k
  if (this->dest_uuid().size() > 0) {
782
7
    target =
783
7
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
784
7
        1, this->dest_uuid(), target);
785
7
  }
786
787
  // .yb.tserver.TabletSnapshotOpRequestPB.Operation operation = 2;
788
1.36k
  if (this->operation() != 0) {
789
1.36k
    target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
790
1.36k
      2, this->operation(), target);
791
1.36k
  }
792
793
  // bytes snapshot_id = 3;
794
1.36k
  if (this->snapshot_id().size() > 0) {
795
7
    target =
796
7
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
797
7
        3, this->snapshot_id(), target);
798
7
  }
799
800
  // repeated bytes tablet_id = 4;
801
2.73k
  for (int i = 0, n = this->tablet_id_size(); i < n; i++) {
802
1.36k
    target = ::google::protobuf::internal::WireFormatLite::
803
1.36k
      WriteBytesToArray(4, this->tablet_id(i), target);
804
1.36k
  }
805
806
  // fixed64 propagated_hybrid_time = 5;
807
1.36k
  if (this->propagated_hybrid_time() != 0) {
808
0
    target = ::google::protobuf::internal::WireFormatLite::WriteFixed64ToArray(5, this->propagated_hybrid_time(), target);
809
0
  }
810
811
  // string snapshot_dir_override = 6;
812
1.36k
  if (this->snapshot_dir_override().size() > 0) {
813
1.36k
    ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
814
1.36k
      this->snapshot_dir_override().data(), static_cast<int>(this->snapshot_dir_override().length()),
815
1.36k
      ::google::protobuf::internal::WireFormatLite::SERIALIZE,
816
1.36k
      "yb.tserver.TabletSnapshotOpRequestPB.snapshot_dir_override");
817
1.36k
    target =
818
1.36k
      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
819
1.36k
        6, this->snapshot_dir_override(), target);
820
1.36k
  }
821
822
  // fixed64 snapshot_hybrid_time = 7;
823
1.36k
  if (this->snapshot_hybrid_time() != 0) {
824
0
    target = ::google::protobuf::internal::WireFormatLite::WriteFixed64ToArray(7, this->snapshot_hybrid_time(), target);
825
0
  }
826
827
  // .google.protobuf.Any extra_data = 8;
828
1.36k
  if (this->has_extra_data()) {
829
0
    target = ::google::protobuf::internal::WireFormatLite::
830
0
      InternalWriteMessageToArray(
831
0
        8, *this->extra_data_, deterministic, target);
832
0
  }
833
834
  // bool imported = 9;
835
1.36k
  if (this->imported() != 0) {
836
0
    target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(9, this->imported(), target);
837
0
  }
838
839
  // bytes schedule_id = 10;
840
1.36k
  if (this->schedule_id().size() > 0) {
841
0
    target =
842
0
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
843
0
        10, this->schedule_id(), target);
844
0
  }
845
846
  // bytes restoration_id = 11;
847
1.36k
  if (this->restoration_id().size() > 0) {
848
0
    target =
849
0
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
850
0
        11, this->restoration_id(), target);
851
0
  }
852
853
  // uint32 schema_version = 12;
854
1.36k
  if (this->schema_version() != 0) {
855
0
    target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(12, this->schema_version(), target);
856
0
  }
857
858
  // .yb.SchemaPB schema = 13;
859
1.36k
  if (this->has_schema()) {
860
0
    target = ::google::protobuf::internal::WireFormatLite::
861
0
      InternalWriteMessageToArray(
862
0
        13, *this->schema_, deterministic, target);
863
0
  }
864
865
  // repeated .yb.IndexInfoPB indexes = 14;
866
1.36k
  for (unsigned int i = 0,
867
1.36k
      n = static_cast<unsigned int>(this->indexes_size()); i < n; i++) {
868
0
    target = ::google::protobuf::internal::WireFormatLite::
869
0
      InternalWriteMessageToArray(
870
0
        14, this->indexes(static_cast<int>(i)), deterministic, target);
871
0
  }
872
873
  // fixed64 previous_snapshot_hybrid_time = 15;
874
1.36k
  if (this->previous_snapshot_hybrid_time() != 0) {
875
0
    target = ::google::protobuf::internal::WireFormatLite::WriteFixed64ToArray(15, this->previous_snapshot_hybrid_time(), target);
876
0
  }
877
878
  // bool hide = 16;
879
1.36k
  if (this->hide() != 0) {
880
0
    target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(16, this->hide(), target);
881
0
  }
882
883
  // fixed64 restoration_hybrid_time = 17;
884
1.36k
  if (this->restoration_hybrid_time() != 0) {
885
0
    target = ::google::protobuf::internal::WireFormatLite::WriteFixed64ToArray(17, this->restoration_hybrid_time(), target);
886
0
  }
887
888
1.36k
  if ((_internal_metadata_.have_unknown_fields() &&  ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
889
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
890
0
        (::google::protobuf::internal::GetProto3PreserveUnknownsDefault()   ? _internal_metadata_.unknown_fields()   : _internal_metadata_.default_instance()), target);
891
0
  }
892
  // @@protoc_insertion_point(serialize_to_array_end:yb.tserver.TabletSnapshotOpRequestPB)
893
1.36k
  return target;
894
1.36k
}
895
896
3.23k
size_t TabletSnapshotOpRequestPB::ByteSizeLong() const {
897
// @@protoc_insertion_point(message_byte_size_start:yb.tserver.TabletSnapshotOpRequestPB)
898
3.23k
  size_t total_size = 0;
899
900
3.23k
  if ((_internal_metadata_.have_unknown_fields() &&  ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
901
0
    total_size +=
902
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
903
0
        (::google::protobuf::internal::GetProto3PreserveUnknownsDefault()   ? _internal_metadata_.unknown_fields()   : _internal_metadata_.default_instance()));
904
0
  }
905
  // repeated bytes tablet_id = 4;
906
3.23k
  total_size += 1 *
907
3.23k
      ::google::protobuf::internal::FromIntSize(this->tablet_id_size());
908
6.47k
  for (int i = 0, n = this->tablet_id_size(); i < n; i++) {
909
3.23k
    total_size += ::google::protobuf::internal::WireFormatLite::BytesSize(
910
3.23k
      this->tablet_id(i));
911
3.23k
  }
912
913
  // repeated .yb.IndexInfoPB indexes = 14;
914
3.23k
  {
915
3.23k
    unsigned int count = static_cast<unsigned int>(this->indexes_size());
916
3.23k
    total_size += 1UL * count;
917
3.23k
    for (unsigned int i = 0; i < count; i++) {
918
0
      total_size +=
919
0
        ::google::protobuf::internal::WireFormatLite::MessageSize(
920
0
          this->indexes(static_cast<int>(i)));
921
0
    }
922
3.23k
  }
923
924
  // bytes dest_uuid = 1;
925
3.23k
  if (this->dest_uuid().size() > 0) {
926
14
    total_size += 1 +
927
14
      ::google::protobuf::internal::WireFormatLite::BytesSize(
928
14
        this->dest_uuid());
929
14
  }
930
931
  // bytes snapshot_id = 3;
932
3.23k
  if (this->snapshot_id().size() > 0) {
933
14
    total_size += 1 +
934
14
      ::google::protobuf::internal::WireFormatLite::BytesSize(
935
14
        this->snapshot_id());
936
14
  }
937
938
  // string snapshot_dir_override = 6;
939
3.23k
  if (this->snapshot_dir_override().size() > 0) {
940
3.22k
    total_size += 1 +
941
3.22k
      ::google::protobuf::internal::WireFormatLite::StringSize(
942
3.22k
        this->snapshot_dir_override());
943
3.22k
  }
944
945
  // bytes schedule_id = 10;
946
3.23k
  if (this->schedule_id().size() > 0) {
947
0
    total_size += 1 +
948
0
      ::google::protobuf::internal::WireFormatLite::BytesSize(
949
0
        this->schedule_id());
950
0
  }
951
952
  // bytes restoration_id = 11;
953
3.23k
  if (this->restoration_id().size() > 0) {
954
0
    total_size += 1 +
955
0
      ::google::protobuf::internal::WireFormatLite::BytesSize(
956
0
        this->restoration_id());
957
0
  }
958
959
  // .google.protobuf.Any extra_data = 8;
960
3.23k
  if (this->has_extra_data()) {
961
0
    total_size += 1 +
962
0
      ::google::protobuf::internal::WireFormatLite::MessageSize(
963
0
        *this->extra_data_);
964
0
  }
965
966
  // .yb.SchemaPB schema = 13;
967
3.23k
  if (this->has_schema()) {
968
0
    total_size += 1 +
969
0
      ::google::protobuf::internal::WireFormatLite::MessageSize(
970
0
        *this->schema_);
971
0
  }
972
973
  // fixed64 propagated_hybrid_time = 5;
974
3.23k
  if (this->propagated_hybrid_time() != 0) {
975
0
    total_size += 1 + 8;
976
0
  }
977
978
  // fixed64 snapshot_hybrid_time = 7;
979
3.23k
  if (this->snapshot_hybrid_time() != 0) {
980
0
    total_size += 1 + 8;
981
0
  }
982
983
  // .yb.tserver.TabletSnapshotOpRequestPB.Operation operation = 2;
984
3.23k
  if (this->operation() != 0) {
985
3.23k
    total_size += 1 +
986
3.23k
      ::google::protobuf::internal::WireFormatLite::EnumSize(this->operation());
987
3.23k
  }
988
989
  // uint32 schema_version = 12;
990
3.23k
  if (this->schema_version() != 0) {
991
0
    total_size += 1 +
992
0
      ::google::protobuf::internal::WireFormatLite::UInt32Size(
993
0
        this->schema_version());
994
0
  }
995
996
  // fixed64 previous_snapshot_hybrid_time = 15;
997
3.23k
  if (this->previous_snapshot_hybrid_time() != 0) {
998
0
    total_size += 1 + 8;
999
0
  }
1000
1001
  // fixed64 restoration_hybrid_time = 17;
1002
3.23k
  if (this->restoration_hybrid_time() != 0) {
1003
0
    total_size += 2 + 8;
1004
0
  }
1005
1006
  // bool imported = 9;
1007
3.23k
  if (this->imported() != 0) {
1008
0
    total_size += 1 + 1;
1009
0
  }
1010
1011
  // bool hide = 16;
1012
3.23k
  if (this->hide() != 0) {
1013
0
    total_size += 2 + 1;
1014
0
  }
1015
1016
3.23k
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
1017
3.23k
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1018
3.23k
  _cached_size_ = cached_size;
1019
3.23k
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
1020
3.23k
  return total_size;
1021
3.23k
}
1022
1023
0
void TabletSnapshotOpRequestPB::MergeFrom(const ::google::protobuf::Message& from) {
1024
// @@protoc_insertion_point(generalized_merge_from_start:yb.tserver.TabletSnapshotOpRequestPB)
1025
0
  GOOGLE_DCHECK_NE(&from, this);
1026
0
  const TabletSnapshotOpRequestPB* source =
1027
0
      ::google::protobuf::internal::DynamicCastToGenerated<const TabletSnapshotOpRequestPB>(
1028
0
          &from);
1029
0
  if (source == NULL) {
1030
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.tserver.TabletSnapshotOpRequestPB)
1031
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
1032
0
  } else {
1033
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.tserver.TabletSnapshotOpRequestPB)
1034
0
    MergeFrom(*source);
1035
0
  }
1036
0
}
1037
1038
364
void TabletSnapshotOpRequestPB::MergeFrom(const TabletSnapshotOpRequestPB& from) {
1039
// @@protoc_insertion_point(class_specific_merge_from_start:yb.tserver.TabletSnapshotOpRequestPB)
1040
364
  GOOGLE_DCHECK_NE(&from, this);
1041
364
  _internal_metadata_.MergeFrom(from._internal_metadata_);
1042
364
  ::google::protobuf::uint32 cached_has_bits = 0;
1043
364
  (void) cached_has_bits;
1044
1045
364
  tablet_id_.MergeFrom(from.tablet_id_);
1046
364
  indexes_.MergeFrom(from.indexes_);
1047
364
  if (from.dest_uuid().size() > 0) {
1048
1049
3
    dest_uuid_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.dest_uuid_);
1050
3
  }
1051
364
  if (from.snapshot_id().size() > 0) {
1052
1053
3
    snapshot_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.snapshot_id_);
1054
3
  }
1055
364
  if (from.snapshot_dir_override().size() > 0) {
1056
1057
361
    snapshot_dir_override_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.snapshot_dir_override_);
1058
361
  }
1059
364
  if (from.schedule_id().size() > 0) {
1060
1061
0
    schedule_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.schedule_id_);
1062
0
  }
1063
364
  if (from.restoration_id().size() > 0) {
1064
1065
0
    restoration_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.restoration_id_);
1066
0
  }
1067
364
  if (from.has_extra_data()) {
1068
0
    mutable_extra_data()->::google::protobuf::Any::MergeFrom(from.extra_data());
1069
0
  }
1070
364
  if (from.has_schema()) {
1071
0
    mutable_schema()->::yb::SchemaPB::MergeFrom(from.schema());
1072
0
  }
1073
364
  if (from.propagated_hybrid_time() != 0) {
1074
0
    set_propagated_hybrid_time(from.propagated_hybrid_time());
1075
0
  }
1076
364
  if (from.snapshot_hybrid_time() != 0) {
1077
0
    set_snapshot_hybrid_time(from.snapshot_hybrid_time());
1078
0
  }
1079
364
  if (from.operation() != 0) {
1080
364
    set_operation(from.operation());
1081
364
  }
1082
364
  if (from.schema_version() != 0) {
1083
0
    set_schema_version(from.schema_version());
1084
0
  }
1085
364
  if (from.previous_snapshot_hybrid_time() != 0) {
1086
0
    set_previous_snapshot_hybrid_time(from.previous_snapshot_hybrid_time());
1087
0
  }
1088
364
  if (from.restoration_hybrid_time() != 0) {
1089
0
    set_restoration_hybrid_time(from.restoration_hybrid_time());
1090
0
  }
1091
364
  if (from.imported() != 0) {
1092
0
    set_imported(from.imported());
1093
0
  }
1094
364
  if (from.hide() != 0) {
1095
0
    set_hide(from.hide());
1096
0
  }
1097
364
}
1098
1099
0
void TabletSnapshotOpRequestPB::CopyFrom(const ::google::protobuf::Message& from) {
1100
// @@protoc_insertion_point(generalized_copy_from_start:yb.tserver.TabletSnapshotOpRequestPB)
1101
0
  if (&from == this) return;
1102
0
  Clear();
1103
0
  MergeFrom(from);
1104
0
}
1105
1106
364
void TabletSnapshotOpRequestPB::CopyFrom(const TabletSnapshotOpRequestPB& from) {
1107
// @@protoc_insertion_point(class_specific_copy_from_start:yb.tserver.TabletSnapshotOpRequestPB)
1108
364
  if (&from == this) return;
1109
364
  Clear();
1110
364
  MergeFrom(from);
1111
364
}
1112
1113
3.60k
bool TabletSnapshotOpRequestPB::IsInitialized() const {
1114
3.60k
  if (!::google::protobuf::internal::AllAreInitialized(this->indexes())) return false;
1115
3.60k
  if (has_schema()) {
1116
0
    if (!this->schema_->IsInitialized()) return false;
1117
3.60k
  }
1118
3.60k
  return true;
1119
3.60k
}
1120
1121
0
void TabletSnapshotOpRequestPB::Swap(TabletSnapshotOpRequestPB* other) {
1122
0
  if (other == this) return;
1123
0
  InternalSwap(other);
1124
0
}
1125
0
void TabletSnapshotOpRequestPB::InternalSwap(TabletSnapshotOpRequestPB* other) {
1126
0
  using std::swap;
1127
0
  tablet_id_.InternalSwap(&other->tablet_id_);
1128
0
  indexes_.InternalSwap(&other->indexes_);
1129
0
  dest_uuid_.Swap(&other->dest_uuid_);
1130
0
  snapshot_id_.Swap(&other->snapshot_id_);
1131
0
  snapshot_dir_override_.Swap(&other->snapshot_dir_override_);
1132
0
  schedule_id_.Swap(&other->schedule_id_);
1133
0
  restoration_id_.Swap(&other->restoration_id_);
1134
0
  swap(extra_data_, other->extra_data_);
1135
0
  swap(schema_, other->schema_);
1136
0
  swap(propagated_hybrid_time_, other->propagated_hybrid_time_);
1137
0
  swap(snapshot_hybrid_time_, other->snapshot_hybrid_time_);
1138
0
  swap(operation_, other->operation_);
1139
0
  swap(schema_version_, other->schema_version_);
1140
0
  swap(previous_snapshot_hybrid_time_, other->previous_snapshot_hybrid_time_);
1141
0
  swap(restoration_hybrid_time_, other->restoration_hybrid_time_);
1142
0
  swap(imported_, other->imported_);
1143
0
  swap(hide_, other->hide_);
1144
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
1145
0
  swap(_cached_size_, other->_cached_size_);
1146
0
}
1147
1148
2.24k
::google::protobuf::Metadata TabletSnapshotOpRequestPB::GetMetadata() const {
1149
2.24k
  protobuf_yb_2ftserver_2fbackup_2eproto::protobuf_AssignDescriptorsOnce();
1150
2.24k
  return ::protobuf_yb_2ftserver_2fbackup_2eproto::file_level_metadata[kIndexInFileMessages];
1151
2.24k
}
1152
1153
1154
// ===================================================================
1155
1156
15.8k
void TabletSnapshotOpResponsePB::InitAsDefaultInstance() {
1157
15.8k
  ::yb::tserver::_TabletSnapshotOpResponsePB_default_instance_._instance.get_mutable()->error_ = const_cast< ::yb::tserver::TabletServerErrorPB*>(
1158
15.8k
      ::yb::tserver::TabletServerErrorPB::internal_default_instance());
1159
15.8k
}
1160
3
void TabletSnapshotOpResponsePB::clear_error() {
1161
3
  if (GetArenaNoVirtual() == NULL && error_ != NULL) {
1162
0
    delete error_;
1163
0
  }
1164
3
  error_ = NULL;
1165
3
}
1166
#if !defined(_MSC_VER) || _MSC_VER >= 1900
1167
const int TabletSnapshotOpResponsePB::kErrorFieldNumber;
1168
const int TabletSnapshotOpResponsePB::kPropagatedHybridTimeFieldNumber;
1169
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
1170
1171
TabletSnapshotOpResponsePB::TabletSnapshotOpResponsePB()
1172
16.2k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
1173
367
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
1174
367
    ::protobuf_yb_2ftserver_2fbackup_2eproto::InitDefaultsTabletSnapshotOpResponsePB();
1175
367
  }
1176
16.2k
  SharedCtor();
1177
  // @@protoc_insertion_point(constructor:yb.tserver.TabletSnapshotOpResponsePB)
1178
16.2k
}
1179
TabletSnapshotOpResponsePB::TabletSnapshotOpResponsePB(const TabletSnapshotOpResponsePB& from)
1180
  : ::google::protobuf::Message(),
1181
      _internal_metadata_(NULL),
1182
0
      _cached_size_(0) {
1183
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
1184
0
  if (from.has_error()) {
1185
0
    error_ = new ::yb::tserver::TabletServerErrorPB(*from.error_);
1186
0
  } else {
1187
0
    error_ = NULL;
1188
0
  }
1189
0
  propagated_hybrid_time_ = from.propagated_hybrid_time_;
1190
  // @@protoc_insertion_point(copy_constructor:yb.tserver.TabletSnapshotOpResponsePB)
1191
0
}
1192
1193
16.2k
void TabletSnapshotOpResponsePB::SharedCtor() {
1194
16.2k
  ::memset(&error_, 0, static_cast<size_t>(
1195
16.2k
      reinterpret_cast<char*>(&propagated_hybrid_time_) -
1196
16.2k
      reinterpret_cast<char*>(&error_)) + sizeof(propagated_hybrid_time_));
1197
16.2k
  _cached_size_ = 0;
1198
16.2k
}
1199
1200
367
TabletSnapshotOpResponsePB::~TabletSnapshotOpResponsePB() {
1201
  // @@protoc_insertion_point(destructor:yb.tserver.TabletSnapshotOpResponsePB)
1202
367
  SharedDtor();
1203
367
}
1204
1205
367
void TabletSnapshotOpResponsePB::SharedDtor() {
1206
367
  if (this != internal_default_instance()) delete error_;
1207
367
}
1208
1209
0
void TabletSnapshotOpResponsePB::SetCachedSize(int size) const {
1210
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1211
0
  _cached_size_ = size;
1212
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
1213
0
}
1214
0
const ::google::protobuf::Descriptor* TabletSnapshotOpResponsePB::descriptor() {
1215
0
  ::protobuf_yb_2ftserver_2fbackup_2eproto::protobuf_AssignDescriptorsOnce();
1216
0
  return ::protobuf_yb_2ftserver_2fbackup_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
1217
0
}
1218
1219
0
const TabletSnapshotOpResponsePB& TabletSnapshotOpResponsePB::default_instance() {
1220
0
  ::protobuf_yb_2ftserver_2fbackup_2eproto::InitDefaultsTabletSnapshotOpResponsePB();
1221
0
  return *internal_default_instance();
1222
0
}
1223
1224
0
TabletSnapshotOpResponsePB* TabletSnapshotOpResponsePB::New(::google::protobuf::Arena* arena) const {
1225
0
  TabletSnapshotOpResponsePB* n = new TabletSnapshotOpResponsePB;
1226
0
  if (arena != NULL) {
1227
0
    arena->Own(n);
1228
0
  }
1229
0
  return n;
1230
0
}
1231
1232
4
void TabletSnapshotOpResponsePB::Clear() {
1233
// @@protoc_insertion_point(message_clear_start:yb.tserver.TabletSnapshotOpResponsePB)
1234
4
  ::google::protobuf::uint32 cached_has_bits = 0;
1235
  // Prevent compiler warnings about cached_has_bits being unused
1236
4
  (void) cached_has_bits;
1237
1238
4
  if (GetArenaNoVirtual() == NULL && error_ != NULL) {
1239
1
    delete error_;
1240
1
  }
1241
4
  error_ = NULL;
1242
4
  propagated_hybrid_time_ = GOOGLE_ULONGLONG(0);
1243
4
  _internal_metadata_.Clear();
1244
4
}
1245
1246
bool TabletSnapshotOpResponsePB::MergePartialFromCodedStream(
1247
4
    ::google::protobuf::io::CodedInputStream* input) {
1248
4
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
1249
4
  ::google::protobuf::uint32 tag;
1250
  // @@protoc_insertion_point(parse_start:yb.tserver.TabletSnapshotOpResponsePB)
1251
8
  for (;;) {
1252
8
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
1253
8
    tag = p.first;
1254
8
    if (!p.second) goto handle_unusual;
1255
4
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
1256
      // .yb.tserver.TabletServerErrorPB error = 1;
1257
1
      case 1: {
1258
1
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1259
1
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
1260
1
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
1261
1
               input, mutable_error()));
1262
0
        } else {
1263
0
          goto handle_unusual;
1264
0
        }
1265
1
        break;
1266
1
      }
1267
1268
      // fixed64 propagated_hybrid_time = 2;
1269
3
      case 2: {
1270
3
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1271
3
            static_cast< ::google::protobuf::uint8>(17u /* 17 & 0xFF */)) {
1272
1273
3
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1274
3
                   ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED64>(
1275
3
                 input, &propagated_hybrid_time_)));
1276
0
        } else {
1277
0
          goto handle_unusual;
1278
0
        }
1279
3
        break;
1280
4
      }
1281
1282
0
      default: {
1283
4
      handle_unusual:
1284
4
        if (tag == 0) {
1285
4
          goto success;
1286
4
        }
1287
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
1288
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
1289
0
        break;
1290
0
      }
1291
4
    }
1292
4
  }
1293
4
success:
1294
  // @@protoc_insertion_point(parse_success:yb.tserver.TabletSnapshotOpResponsePB)
1295
4
  return true;
1296
0
failure:
1297
  // @@protoc_insertion_point(parse_failure:yb.tserver.TabletSnapshotOpResponsePB)
1298
0
  return false;
1299
4
#undef DO_
1300
4
}
1301
1302
void TabletSnapshotOpResponsePB::SerializeWithCachedSizes(
1303
0
    ::google::protobuf::io::CodedOutputStream* output) const {
1304
  // @@protoc_insertion_point(serialize_start:yb.tserver.TabletSnapshotOpResponsePB)
1305
0
  ::google::protobuf::uint32 cached_has_bits = 0;
1306
0
  (void) cached_has_bits;
1307
1308
  // .yb.tserver.TabletServerErrorPB error = 1;
1309
0
  if (this->has_error()) {
1310
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1311
0
      1, *this->error_, output);
1312
0
  }
1313
1314
  // fixed64 propagated_hybrid_time = 2;
1315
0
  if (this->propagated_hybrid_time() != 0) {
1316
0
    ::google::protobuf::internal::WireFormatLite::WriteFixed64(2, this->propagated_hybrid_time(), output);
1317
0
  }
1318
1319
0
  if ((_internal_metadata_.have_unknown_fields() &&  ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
1320
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
1321
0
        (::google::protobuf::internal::GetProto3PreserveUnknownsDefault()   ? _internal_metadata_.unknown_fields()   : _internal_metadata_.default_instance()), output);
1322
0
  }
1323
  // @@protoc_insertion_point(serialize_end:yb.tserver.TabletSnapshotOpResponsePB)
1324
0
}
1325
1326
::google::protobuf::uint8* TabletSnapshotOpResponsePB::InternalSerializeWithCachedSizesToArray(
1327
4
    bool deterministic, ::google::protobuf::uint8* target) const {
1328
4
  (void)deterministic; // Unused
1329
  // @@protoc_insertion_point(serialize_to_array_start:yb.tserver.TabletSnapshotOpResponsePB)
1330
4
  ::google::protobuf::uint32 cached_has_bits = 0;
1331
4
  (void) cached_has_bits;
1332
1333
  // .yb.tserver.TabletServerErrorPB error = 1;
1334
4
  if (this->has_error()) {
1335
1
    target = ::google::protobuf::internal::WireFormatLite::
1336
1
      InternalWriteMessageToArray(
1337
1
        1, *this->error_, deterministic, target);
1338
1
  }
1339
1340
  // fixed64 propagated_hybrid_time = 2;
1341
4
  if (this->propagated_hybrid_time() != 0) {
1342
3
    target = ::google::protobuf::internal::WireFormatLite::WriteFixed64ToArray(2, this->propagated_hybrid_time(), target);
1343
3
  }
1344
1345
4
  if ((_internal_metadata_.have_unknown_fields() &&  ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
1346
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
1347
0
        (::google::protobuf::internal::GetProto3PreserveUnknownsDefault()   ? _internal_metadata_.unknown_fields()   : _internal_metadata_.default_instance()), target);
1348
0
  }
1349
  // @@protoc_insertion_point(serialize_to_array_end:yb.tserver.TabletSnapshotOpResponsePB)
1350
4
  return target;
1351
4
}
1352
1353
8
size_t TabletSnapshotOpResponsePB::ByteSizeLong() const {
1354
// @@protoc_insertion_point(message_byte_size_start:yb.tserver.TabletSnapshotOpResponsePB)
1355
8
  size_t total_size = 0;
1356
1357
8
  if ((_internal_metadata_.have_unknown_fields() &&  ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
1358
0
    total_size +=
1359
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
1360
0
        (::google::protobuf::internal::GetProto3PreserveUnknownsDefault()   ? _internal_metadata_.unknown_fields()   : _internal_metadata_.default_instance()));
1361
0
  }
1362
  // .yb.tserver.TabletServerErrorPB error = 1;
1363
8
  if (this->has_error()) {
1364
2
    total_size += 1 +
1365
2
      ::google::protobuf::internal::WireFormatLite::MessageSize(
1366
2
        *this->error_);
1367
2
  }
1368
1369
  // fixed64 propagated_hybrid_time = 2;
1370
8
  if (this->propagated_hybrid_time() != 0) {
1371
6
    total_size += 1 + 8;
1372
6
  }
1373
1374
8
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
1375
8
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1376
8
  _cached_size_ = cached_size;
1377
8
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
1378
8
  return total_size;
1379
8
}
1380
1381
0
void TabletSnapshotOpResponsePB::MergeFrom(const ::google::protobuf::Message& from) {
1382
// @@protoc_insertion_point(generalized_merge_from_start:yb.tserver.TabletSnapshotOpResponsePB)
1383
0
  GOOGLE_DCHECK_NE(&from, this);
1384
0
  const TabletSnapshotOpResponsePB* source =
1385
0
      ::google::protobuf::internal::DynamicCastToGenerated<const TabletSnapshotOpResponsePB>(
1386
0
          &from);
1387
0
  if (source == NULL) {
1388
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.tserver.TabletSnapshotOpResponsePB)
1389
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
1390
0
  } else {
1391
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.tserver.TabletSnapshotOpResponsePB)
1392
0
    MergeFrom(*source);
1393
0
  }
1394
0
}
1395
1396
0
void TabletSnapshotOpResponsePB::MergeFrom(const TabletSnapshotOpResponsePB& from) {
1397
// @@protoc_insertion_point(class_specific_merge_from_start:yb.tserver.TabletSnapshotOpResponsePB)
1398
0
  GOOGLE_DCHECK_NE(&from, this);
1399
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
1400
0
  ::google::protobuf::uint32 cached_has_bits = 0;
1401
0
  (void) cached_has_bits;
1402
1403
0
  if (from.has_error()) {
1404
0
    mutable_error()->::yb::tserver::TabletServerErrorPB::MergeFrom(from.error());
1405
0
  }
1406
0
  if (from.propagated_hybrid_time() != 0) {
1407
0
    set_propagated_hybrid_time(from.propagated_hybrid_time());
1408
0
  }
1409
0
}
1410
1411
0
void TabletSnapshotOpResponsePB::CopyFrom(const ::google::protobuf::Message& from) {
1412
// @@protoc_insertion_point(generalized_copy_from_start:yb.tserver.TabletSnapshotOpResponsePB)
1413
0
  if (&from == this) return;
1414
0
  Clear();
1415
0
  MergeFrom(from);
1416
0
}
1417
1418
0
void TabletSnapshotOpResponsePB::CopyFrom(const TabletSnapshotOpResponsePB& from) {
1419
// @@protoc_insertion_point(class_specific_copy_from_start:yb.tserver.TabletSnapshotOpResponsePB)
1420
0
  if (&from == this) return;
1421
0
  Clear();
1422
0
  MergeFrom(from);
1423
0
}
1424
1425
8
bool TabletSnapshotOpResponsePB::IsInitialized() const {
1426
8
  if (has_error()) {
1427
2
    if (!this->error_->IsInitialized()) return false;
1428
8
  }
1429
8
  return true;
1430
8
}
1431
1432
0
void TabletSnapshotOpResponsePB::Swap(TabletSnapshotOpResponsePB* other) {
1433
0
  if (other == this) return;
1434
0
  InternalSwap(other);
1435
0
}
1436
0
void TabletSnapshotOpResponsePB::InternalSwap(TabletSnapshotOpResponsePB* other) {
1437
0
  using std::swap;
1438
0
  swap(error_, other->error_);
1439
0
  swap(propagated_hybrid_time_, other->propagated_hybrid_time_);
1440
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
1441
0
  swap(_cached_size_, other->_cached_size_);
1442
0
}
1443
1444
6
::google::protobuf::Metadata TabletSnapshotOpResponsePB::GetMetadata() const {
1445
6
  protobuf_yb_2ftserver_2fbackup_2eproto::protobuf_AssignDescriptorsOnce();
1446
6
  return ::protobuf_yb_2ftserver_2fbackup_2eproto::file_level_metadata[kIndexInFileMessages];
1447
6
}
1448
1449
1450
// @@protoc_insertion_point(namespace_scope)
1451
}  // namespace tserver
1452
}  // namespace yb
1453
1454
// @@protoc_insertion_point(global_scope)