YugabyteDB (2.13.1.0-b60, 21121d69985fbf76aa6958d8f04a9bfa936293b5)

Coverage Report

Created: 2022-03-22 16:43

/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
26.8k
void InitDefaultsTabletSnapshotOpRequestPBImpl() {
39
26.8k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
40
41
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
42
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
43
#else
44
26.8k
  ::google::protobuf::internal::InitProtobufDefaults();
45
26.8k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
46
26.8k
  protobuf_google_2fprotobuf_2fany_2eproto::InitDefaultsAny();
47
26.8k
  protobuf_yb_2fcommon_2fcommon_2eproto::InitDefaultsSchemaPB();
48
26.8k
  protobuf_yb_2fcommon_2fcommon_2eproto::InitDefaultsIndexInfoPB();
49
26.8k
  {
50
26.8k
    void* ptr = &::yb::tserver::_TabletSnapshotOpRequestPB_default_instance_;
51
26.8k
    new (ptr) ::yb::tserver::TabletSnapshotOpRequestPB();
52
26.8k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
53
26.8k
  }
54
26.8k
  ::yb::tserver::TabletSnapshotOpRequestPB::InitAsDefaultInstance();
55
26.8k
}
56
57
56.5k
void InitDefaultsTabletSnapshotOpRequestPB() {
58
56.5k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
59
56.5k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsTabletSnapshotOpRequestPBImpl);
60
56.5k
}
61
62
26.8k
void InitDefaultsTabletSnapshotOpResponsePBImpl() {
63
26.8k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
64
65
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
66
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
67
#else
68
26.8k
  ::google::protobuf::internal::InitProtobufDefaults();
69
26.8k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
70
26.8k
  protobuf_yb_2ftserver_2ftserver_5ftypes_2eproto::InitDefaultsTabletServerErrorPB();
71
26.8k
  {
72
26.8k
    void* ptr = &::yb::tserver::_TabletSnapshotOpResponsePB_default_instance_;
73
26.8k
    new (ptr) ::yb::tserver::TabletSnapshotOpResponsePB();
74
26.8k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
75
26.8k
  }
76
26.8k
  ::yb::tserver::TabletSnapshotOpResponsePB::InitAsDefaultInstance();
77
26.8k
}
78
79
27.7k
void InitDefaultsTabletSnapshotOpResponsePB() {
80
27.7k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
81
27.7k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsTabletSnapshotOpResponsePBImpl);
82
27.7k
}
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
1.80k
void protobuf_AssignDescriptors() {
129
1.80k
  AddDescriptors();
130
1.80k
  ::google::protobuf::MessageFactory* factory = NULL;
131
1.80k
  AssignDescriptors(
132
1.80k
      "yb/tserver/backup.proto", schemas, file_default_instances, TableStruct::offsets, factory,
133
1.80k
      file_level_metadata, file_level_enum_descriptors, NULL);
134
1.80k
}
135
136
5.45k
void protobuf_AssignDescriptorsOnce() {
137
5.45k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
138
5.45k
  ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors);
139
5.45k
}
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
26.8k
void AddDescriptorsImpl() {
148
26.8k
  InitDefaults();
149
26.8k
  static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
150
26.8k
      "\n\027yb/tserver/backup.proto\022\nyb.tserver\032\031g"
151
26.8k
      "oogle/protobuf/any.proto\032\026yb/common/comm"
152
26.8k
      "on.proto\032\036yb/tserver/tserver_types.proto"
153
26.8k
      "\"\307\005\n\031TabletSnapshotOpRequestPB\022\021\n\tdest_u"
154
26.8k
      "uid\030\001 \001(\014\022B\n\toperation\030\002 \001(\0162/.yb.tserve"
155
26.8k
      "r.TabletSnapshotOpRequestPB.Operation\022\023\n"
156
26.8k
      "\013snapshot_id\030\003 \001(\014\022\021\n\ttablet_id\030\004 \003(\014\022\036\n"
157
26.8k
      "\026propagated_hybrid_time\030\005 \001(\006\022\035\n\025snapsho"
158
26.8k
      "t_dir_override\030\006 \001(\t\022\034\n\024snapshot_hybrid_"
159
26.8k
      "time\030\007 \001(\006\022\037\n\027restoration_hybrid_time\030\021 "
160
26.8k
      "\001(\006\022(\n\nextra_data\030\010 \001(\0132\024.google.protobu"
161
26.8k
      "f.Any\022\020\n\010imported\030\t \001(\010\022\023\n\013schedule_id\030\n"
162
26.8k
      " \001(\014\022\026\n\016restoration_id\030\013 \001(\014\022\026\n\016schema_v"
163
26.8k
      "ersion\030\014 \001(\r\022\034\n\006schema\030\r \001(\0132\014.yb.Schema"
164
26.8k
      "PB\022 \n\007indexes\030\016 \003(\0132\017.yb.IndexInfoPB\022%\n\035"
165
26.8k
      "previous_snapshot_hybrid_time\030\017 \001(\006\022\014\n\004h"
166
26.8k
      "ide\030\020 \001(\010\"\266\001\n\tOperation\022\013\n\007UNKNOWN\020\000\022\024\n\020"
167
26.8k
      "CREATE_ON_TABLET\020\001\022\025\n\021RESTORE_ON_TABLET\020"
168
26.8k
      "\002\022\024\n\020DELETE_ON_TABLET\020\003\022\024\n\020CREATE_ON_MAS"
169
26.8k
      "TER\020\004\022\024\n\020DELETE_ON_MASTER\020\005\022\027\n\023RESTORE_S"
170
26.8k
      "YS_CATALOG\020\006\022\024\n\020RESTORE_FINISHED\020\007\"l\n\032Ta"
171
26.8k
      "bletSnapshotOpResponsePB\022.\n\005error\030\001 \001(\0132"
172
26.8k
      "\037.yb.tserver.TabletServerErrorPB\022\036\n\026prop"
173
26.8k
      "agated_hybrid_time\030\002 \001(\0062~\n\031TabletServer"
174
26.8k
      "BackupService\022a\n\020TabletSnapshotOp\022%.yb.t"
175
26.8k
      "server.TabletSnapshotOpRequestPB\032&.yb.ts"
176
26.8k
      "erver.TabletSnapshotOpResponsePBB\020\n\016org."
177
26.8k
      "yb.tserverb\006proto3"
178
26.8k
  };
179
26.8k
  ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
180
26.8k
      descriptor, 1098);
181
26.8k
  ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
182
26.8k
    "yb/tserver/backup.proto", &protobuf_RegisterTypes);
183
26.8k
  ::protobuf_google_2fprotobuf_2fany_2eproto::AddDescriptors();
184
26.8k
  ::protobuf_yb_2fcommon_2fcommon_2eproto::AddDescriptors();
185
26.8k
  ::protobuf_yb_2ftserver_2ftserver_5ftypes_2eproto::AddDescriptors();
186
26.8k
}
187
188
55.5k
void AddDescriptors() {
189
55.5k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
190
55.5k
  ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl);
191
55.5k
}
192
// Force AddDescriptors() to be called at dynamic initialization time.
193
struct StaticDescriptorInitializer {
194
26.8k
  StaticDescriptorInitializer() {
195
26.8k
    AddDescriptors();
196
26.8k
  }
197
} static_descriptor_initializer;
198
}  // namespace protobuf_yb_2ftserver_2fbackup_2eproto
199
namespace yb {
200
namespace tserver {
201
275
const ::google::protobuf::EnumDescriptor* TabletSnapshotOpRequestPB_Operation_descriptor() {
202
275
  protobuf_yb_2ftserver_2fbackup_2eproto::protobuf_AssignDescriptorsOnce();
203
275
  return protobuf_yb_2ftserver_2fbackup_2eproto::file_level_enum_descriptors[0];
204
275
}
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
26.8k
void TabletSnapshotOpRequestPB::InitAsDefaultInstance() {
238
26.8k
  ::yb::tserver::_TabletSnapshotOpRequestPB_default_instance_._instance.get_mutable()->extra_data_ = const_cast< ::google::protobuf::Any*>(
239
26.8k
      ::google::protobuf::Any::internal_default_instance());
240
26.8k
  ::yb::tserver::_TabletSnapshotOpRequestPB_default_instance_._instance.get_mutable()->schema_ = const_cast< ::yb::SchemaPB*>(
241
26.8k
      ::yb::SchemaPB::internal_default_instance());
242
26.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
29.7k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
280
29.7k
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
281
2.84k
    ::protobuf_yb_2ftserver_2fbackup_2eproto::InitDefaultsTabletSnapshotOpRequestPB();
282
2.84k
  }
283
29.7k
  SharedCtor();
284
  // @@protoc_insertion_point(constructor:yb.tserver.TabletSnapshotOpRequestPB)
285
29.7k
}
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
29.7k
void TabletSnapshotOpRequestPB::SharedCtor() {
330
29.7k
  dest_uuid_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
331
29.7k
  snapshot_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
332
29.7k
  snapshot_dir_override_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
333
29.7k
  schedule_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
334
29.7k
  restoration_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
335
29.7k
  ::memset(&extra_data_, 0, static_cast<size_t>(
336
29.7k
      reinterpret_cast<char*>(&hide_) -
337
29.7k
      reinterpret_cast<char*>(&extra_data_)) + sizeof(hide_));
338
29.7k
  _cached_size_ = 0;
339
29.7k
}
340
341
2.82k
TabletSnapshotOpRequestPB::~TabletSnapshotOpRequestPB() {
342
  // @@protoc_insertion_point(destructor:yb.tserver.TabletSnapshotOpRequestPB)
343
2.82k
  SharedDtor();
344
2.82k
}
345
346
2.82k
void TabletSnapshotOpRequestPB::SharedDtor() {
347
2.82k
  dest_uuid_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
348
2.82k
  snapshot_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
349
2.82k
  snapshot_dir_override_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
350
2.82k
  schedule_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
351
2.82k
  restoration_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
352
2.82k
  if (this != internal_default_instance()) 
delete extra_data_2.82k
;
353
2.82k
  if (this != internal_default_instance()) delete schema_;
354
2.82k
}
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
849
void TabletSnapshotOpRequestPB::Clear() {
380
// @@protoc_insertion_point(message_clear_start:yb.tserver.TabletSnapshotOpRequestPB)
381
849
  ::google::protobuf::uint32 cached_has_bits = 0;
382
  // Prevent compiler warnings about cached_has_bits being unused
383
849
  (void) cached_has_bits;
384
385
849
  tablet_id_.Clear();
386
849
  indexes_.Clear();
387
849
  dest_uuid_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
388
849
  snapshot_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
389
849
  snapshot_dir_override_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
390
849
  schedule_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
391
849
  restoration_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
392
849
  if (GetArenaNoVirtual() == NULL && extra_data_ != NULL) {
393
0
    delete extra_data_;
394
0
  }
395
849
  extra_data_ = NULL;
396
849
  if (GetArenaNoVirtual() == NULL && schema_ != NULL) {
397
0
    delete schema_;
398
0
  }
399
849
  schema_ = NULL;
400
849
  ::memset(&propagated_hybrid_time_, 0, static_cast<size_t>(
401
849
      reinterpret_cast<char*>(&hide_) -
402
849
      reinterpret_cast<char*>(&propagated_hybrid_time_)) + sizeof(hide_));
403
849
  _internal_metadata_.Clear();
404
849
}
405
406
bool TabletSnapshotOpRequestPB::MergePartialFromCodedStream(
407
1.21k
    ::google::protobuf::io::CodedInputStream* input) {
408
5.36k
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) 
goto failure0
409
1.21k
  ::google::protobuf::uint32 tag;
410
  // @@protoc_insertion_point(parse_start:yb.tserver.TabletSnapshotOpRequestPB)
411
5.54k
  for (;;) {
412
5.54k
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u);
413
5.54k
    tag = p.first;
414
5.54k
    if (!p.second) 
goto handle_unusual1.21k
;
415
4.32k
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
416
      // bytes dest_uuid = 1;
417
144
      case 1: {
418
144
        if (static_cast< ::google::protobuf::uint8>(tag) ==
419
144
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
420
144
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
421
144
                input, this->mutable_dest_uuid()));
422
144
        } else {
423
0
          goto handle_unusual;
424
0
        }
425
144
        break;
426
144
      }
427
428
      // .yb.tserver.TabletSnapshotOpRequestPB.Operation operation = 2;
429
1.21k
      case 2: {
430
1.21k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
431
1.21k
            static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
432
1.21k
          int value;
433
1.21k
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
434
1.21k
                   int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
435
1.21k
                 input, &value)));
436
1.21k
          set_operation(static_cast< ::yb::tserver::TabletSnapshotOpRequestPB_Operation >(value));
437
1.21k
        } else {
438
0
          goto handle_unusual;
439
0
        }
440
1.21k
        break;
441
1.21k
      }
442
443
      // bytes snapshot_id = 3;
444
1.21k
      case 3: {
445
143
        if (static_cast< ::google::protobuf::uint8>(tag) ==
446
143
            static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
447
143
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
448
143
                input, this->mutable_snapshot_id()));
449
143
        } else {
450
0
          goto handle_unusual;
451
0
        }
452
143
        break;
453
143
      }
454
455
      // repeated bytes tablet_id = 4;
456
1.21k
      case 4: {
457
1.21k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
458
1.21k
            static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
459
1.21k
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
460
1.21k
                input, this->add_tablet_id()));
461
1.21k
        } else {
462
0
          goto handle_unusual;
463
0
        }
464
1.21k
        break;
465
1.21k
      }
466
467
      // fixed64 propagated_hybrid_time = 5;
468
1.21k
      case 5: {
469
141
        if (static_cast< ::google::protobuf::uint8>(tag) ==
470
141
            static_cast< ::google::protobuf::uint8>(41u /* 41 & 0xFF */)) {
471
472
141
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
473
141
                   ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED64>(
474
141
                 input, &propagated_hybrid_time_)));
475
141
        } else {
476
0
          goto handle_unusual;
477
0
        }
478
141
        break;
479
141
      }
480
481
      // string snapshot_dir_override = 6;
482
1.02k
      case 6: {
483
1.02k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
484
1.02k
            static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) {
485
1.02k
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
486
1.02k
                input, this->mutable_snapshot_dir_override()));
487
1.02k
          DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
488
1.02k
            this->snapshot_dir_override().data(), static_cast<int>(this->snapshot_dir_override().length()),
489
1.02k
            ::google::protobuf::internal::WireFormatLite::PARSE,
490
1.02k
            "yb.tserver.TabletSnapshotOpRequestPB.snapshot_dir_override"));
491
1.02k
        } else {
492
0
          goto handle_unusual;
493
0
        }
494
1.02k
        break;
495
1.02k
      }
496
497
      // fixed64 snapshot_hybrid_time = 7;
498
1.02k
      case 7: {
499
149
        if (static_cast< ::google::protobuf::uint8>(tag) ==
500
149
            static_cast< ::google::protobuf::uint8>(57u /* 57 & 0xFF */)) {
501
502
149
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
503
149
                   ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED64>(
504
149
                 input, &snapshot_hybrid_time_)));
505
149
        } else {
506
0
          goto handle_unusual;
507
0
        }
508
149
        break;
509
149
      }
510
511
      // .google.protobuf.Any extra_data = 8;
512
149
      case 8: {
513
38
        if (static_cast< ::google::protobuf::uint8>(tag) ==
514
38
            static_cast< ::google::protobuf::uint8>(66u /* 66 & 0xFF */)) {
515
38
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
516
38
               input, mutable_extra_data()));
517
38
        } else {
518
0
          goto handle_unusual;
519
0
        }
520
38
        break;
521
38
      }
522
523
      // bool imported = 9;
524
38
      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
92
      case 10: {
539
92
        if (static_cast< ::google::protobuf::uint8>(tag) ==
540
92
            static_cast< ::google::protobuf::uint8>(82u /* 82 & 0xFF */)) {
541
92
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
542
92
                input, this->mutable_schedule_id()));
543
92
        } else {
544
0
          goto handle_unusual;
545
0
        }
546
92
        break;
547
92
      }
548
549
      // bytes restoration_id = 11;
550
92
      case 11: {
551
72
        if (static_cast< ::google::protobuf::uint8>(tag) ==
552
72
            static_cast< ::google::protobuf::uint8>(90u /* 90 & 0xFF */)) {
553
72
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
554
72
                input, this->mutable_restoration_id()));
555
72
        } else {
556
0
          goto handle_unusual;
557
0
        }
558
72
        break;
559
72
      }
560
561
      // uint32 schema_version = 12;
562
72
      case 12: {
563
9
        if (static_cast< ::google::protobuf::uint8>(tag) ==
564
9
            static_cast< ::google::protobuf::uint8>(96u /* 96 & 0xFF */)) {
565
566
9
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
567
9
                   ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
568
9
                 input, &schema_version_)));
569
9
        } else {
570
0
          goto handle_unusual;
571
0
        }
572
9
        break;
573
9
      }
574
575
      // .yb.SchemaPB schema = 13;
576
30
      case 13: {
577
30
        if (static_cast< ::google::protobuf::uint8>(tag) ==
578
30
            static_cast< ::google::protobuf::uint8>(106u /* 106 & 0xFF */)) {
579
30
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
580
30
               input, mutable_schema()));
581
30
        } else {
582
0
          goto handle_unusual;
583
0
        }
584
30
        break;
585
30
      }
586
587
      // repeated .yb.IndexInfoPB indexes = 14;
588
30
      case 14: {
589
9
        if (static_cast< ::google::protobuf::uint8>(tag) ==
590
9
            static_cast< ::google::protobuf::uint8>(114u /* 114 & 0xFF */)) {
591
9
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_indexes()));
592
9
        } else {
593
0
          goto handle_unusual;
594
0
        }
595
9
        break;
596
9
      }
597
598
      // fixed64 previous_snapshot_hybrid_time = 15;
599
22
      case 15: {
600
22
        if (static_cast< ::google::protobuf::uint8>(tag) ==
601
22
            static_cast< ::google::protobuf::uint8>(121u /* 121 & 0xFF */)) {
602
603
22
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
604
22
                   ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED64>(
605
22
                 input, &previous_snapshot_hybrid_time_)));
606
22
        } else {
607
0
          goto handle_unusual;
608
0
        }
609
22
        break;
610
22
      }
611
612
      // bool hide = 16;
613
22
      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
36
      case 17: {
628
36
        if (static_cast< ::google::protobuf::uint8>(tag) ==
629
36
            static_cast< ::google::protobuf::uint8>(137u /* 137 & 0xFF */)) {
630
631
36
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
632
36
                   ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED64>(
633
36
                 input, &restoration_hybrid_time_)));
634
36
        } else {
635
0
          goto handle_unusual;
636
0
        }
637
36
        break;
638
36
      }
639
640
36
      default: {
641
1.21k
      handle_unusual:
642
1.21k
        if (tag == 0) {
643
1.21k
          goto success;
644
1.21k
        }
645
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
646
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
647
0
        break;
648
0
      }
649
4.32k
    }
650
4.32k
  }
651
1.21k
success:
652
  // @@protoc_insertion_point(parse_success:yb.tserver.TabletSnapshotOpRequestPB)
653
1.21k
  return true;
654
0
failure:
655
  // @@protoc_insertion_point(parse_failure:yb.tserver.TabletSnapshotOpRequestPB)
656
0
  return false;
657
1.21k
#undef DO_
658
1.21k
}
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
3.18k
    bool deterministic, ::google::protobuf::uint8* target) const {
775
3.18k
  (void)deterministic; // Unused
776
  // @@protoc_insertion_point(serialize_to_array_start:yb.tserver.TabletSnapshotOpRequestPB)
777
3.18k
  ::google::protobuf::uint32 cached_has_bits = 0;
778
3.18k
  (void) cached_has_bits;
779
780
  // bytes dest_uuid = 1;
781
3.18k
  if (this->dest_uuid().size() > 0) {
782
283
    target =
783
283
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
784
283
        1, this->dest_uuid(), target);
785
283
  }
786
787
  // .yb.tserver.TabletSnapshotOpRequestPB.Operation operation = 2;
788
3.18k
  if (this->operation() != 0) {
789
3.18k
    target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
790
3.18k
      2, this->operation(), target);
791
3.18k
  }
792
793
  // bytes snapshot_id = 3;
794
3.18k
  if (this->snapshot_id().size() > 0) {
795
311
    target =
796
311
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
797
311
        3, this->snapshot_id(), target);
798
311
  }
799
800
  // repeated bytes tablet_id = 4;
801
6.36k
  for (int i = 0, n = this->tablet_id_size(); i < n; 
i++3.18k
) {
802
3.18k
    target = ::google::protobuf::internal::WireFormatLite::
803
3.18k
      WriteBytesToArray(4, this->tablet_id(i), target);
804
3.18k
  }
805
806
  // fixed64 propagated_hybrid_time = 5;
807
3.18k
  if (this->propagated_hybrid_time() != 0) {
808
275
    target = ::google::protobuf::internal::WireFormatLite::WriteFixed64ToArray(5, this->propagated_hybrid_time(), target);
809
275
  }
810
811
  // string snapshot_dir_override = 6;
812
3.18k
  if (this->snapshot_dir_override().size() > 0) {
813
2.79k
    ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
814
2.79k
      this->snapshot_dir_override().data(), static_cast<int>(this->snapshot_dir_override().length()),
815
2.79k
      ::google::protobuf::internal::WireFormatLite::SERIALIZE,
816
2.79k
      "yb.tserver.TabletSnapshotOpRequestPB.snapshot_dir_override");
817
2.79k
    target =
818
2.79k
      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
819
2.79k
        6, this->snapshot_dir_override(), target);
820
2.79k
  }
821
822
  // fixed64 snapshot_hybrid_time = 7;
823
3.18k
  if (this->snapshot_hybrid_time() != 0) {
824
320
    target = ::google::protobuf::internal::WireFormatLite::WriteFixed64ToArray(7, this->snapshot_hybrid_time(), target);
825
320
  }
826
827
  // .google.protobuf.Any extra_data = 8;
828
3.18k
  if (this->has_extra_data()) {
829
97
    target = ::google::protobuf::internal::WireFormatLite::
830
97
      InternalWriteMessageToArray(
831
97
        8, *this->extra_data_, deterministic, target);
832
97
  }
833
834
  // bool imported = 9;
835
3.18k
  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
3.18k
  if (this->schedule_id().size() > 0) {
841
202
    target =
842
202
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
843
202
        10, this->schedule_id(), target);
844
202
  }
845
846
  // bytes restoration_id = 11;
847
3.18k
  if (this->restoration_id().size() > 0) {
848
141
    target =
849
141
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
850
141
        11, this->restoration_id(), target);
851
141
  }
852
853
  // uint32 schema_version = 12;
854
3.18k
  if (this->schema_version() != 0) {
855
18
    target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(12, this->schema_version(), target);
856
18
  }
857
858
  // .yb.SchemaPB schema = 13;
859
3.18k
  if (this->has_schema()) {
860
60
    target = ::google::protobuf::internal::WireFormatLite::
861
60
      InternalWriteMessageToArray(
862
60
        13, *this->schema_, deterministic, target);
863
60
  }
864
865
  // repeated .yb.IndexInfoPB indexes = 14;
866
3.18k
  for (unsigned int i = 0,
867
3.20k
      n = static_cast<unsigned int>(this->indexes_size()); i < n; 
i++18
) {
868
18
    target = ::google::protobuf::internal::WireFormatLite::
869
18
      InternalWriteMessageToArray(
870
18
        14, this->indexes(static_cast<int>(i)), deterministic, target);
871
18
  }
872
873
  // fixed64 previous_snapshot_hybrid_time = 15;
874
3.18k
  if (this->previous_snapshot_hybrid_time() != 0) {
875
55
    target = ::google::protobuf::internal::WireFormatLite::WriteFixed64ToArray(15, this->previous_snapshot_hybrid_time(), target);
876
55
  }
877
878
  // bool hide = 16;
879
3.18k
  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
3.18k
  if (this->restoration_hybrid_time() != 0) {
885
66
    target = ::google::protobuf::internal::WireFormatLite::WriteFixed64ToArray(17, this->restoration_hybrid_time(), target);
886
66
  }
887
888
3.18k
  if ((_internal_metadata_.have_unknown_fields() &&  
::google::protobuf::internal::GetProto3PreserveUnknownsDefault()0
)) {
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
3.18k
  return target;
894
3.18k
}
895
896
7.52k
size_t TabletSnapshotOpRequestPB::ByteSizeLong() const {
897
// @@protoc_insertion_point(message_byte_size_start:yb.tserver.TabletSnapshotOpRequestPB)
898
7.52k
  size_t total_size = 0;
899
900
7.52k
  if ((_internal_metadata_.have_unknown_fields() &&  
::google::protobuf::internal::GetProto3PreserveUnknownsDefault()0
)) {
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
7.52k
  total_size += 1 *
907
7.52k
      ::google::protobuf::internal::FromIntSize(this->tablet_id_size());
908
15.0k
  for (int i = 0, n = this->tablet_id_size(); i < n; 
i++7.51k
) {
909
7.51k
    total_size += ::google::protobuf::internal::WireFormatLite::BytesSize(
910
7.51k
      this->tablet_id(i));
911
7.51k
  }
912
913
  // repeated .yb.IndexInfoPB indexes = 14;
914
7.52k
  {
915
7.52k
    unsigned int count = static_cast<unsigned int>(this->indexes_size());
916
7.52k
    total_size += 1UL * count;
917
7.56k
    for (unsigned int i = 0; i < count; 
i++42
) {
918
42
      total_size +=
919
42
        ::google::protobuf::internal::WireFormatLite::MessageSize(
920
42
          this->indexes(static_cast<int>(i)));
921
42
    }
922
7.52k
  }
923
924
  // bytes dest_uuid = 1;
925
7.52k
  if (this->dest_uuid().size() > 0) {
926
653
    total_size += 1 +
927
653
      ::google::protobuf::internal::WireFormatLite::BytesSize(
928
653
        this->dest_uuid());
929
653
  }
930
931
  // bytes snapshot_id = 3;
932
7.52k
  if (this->snapshot_id().size() > 0) {
933
727
    total_size += 1 +
934
727
      ::google::protobuf::internal::WireFormatLite::BytesSize(
935
727
        this->snapshot_id());
936
727
  }
937
938
  // string snapshot_dir_override = 6;
939
7.52k
  if (this->snapshot_dir_override().size() > 0) {
940
6.59k
    total_size += 1 +
941
6.59k
      ::google::protobuf::internal::WireFormatLite::StringSize(
942
6.59k
        this->snapshot_dir_override());
943
6.59k
  }
944
945
  // bytes schedule_id = 10;
946
7.52k
  if (this->schedule_id().size() > 0) {
947
478
    total_size += 1 +
948
478
      ::google::protobuf::internal::WireFormatLite::BytesSize(
949
478
        this->schedule_id());
950
478
  }
951
952
  // bytes restoration_id = 11;
953
7.52k
  if (this->restoration_id().size() > 0) {
954
328
    total_size += 1 +
955
328
      ::google::protobuf::internal::WireFormatLite::BytesSize(
956
328
        this->restoration_id());
957
328
  }
958
959
  // .google.protobuf.Any extra_data = 8;
960
7.52k
  if (this->has_extra_data()) {
961
232
    total_size += 1 +
962
232
      ::google::protobuf::internal::WireFormatLite::MessageSize(
963
232
        *this->extra_data_);
964
232
  }
965
966
  // .yb.SchemaPB schema = 13;
967
7.52k
  if (this->has_schema()) {
968
140
    total_size += 1 +
969
140
      ::google::protobuf::internal::WireFormatLite::MessageSize(
970
140
        *this->schema_);
971
140
  }
972
973
  // fixed64 propagated_hybrid_time = 5;
974
7.52k
  if (this->propagated_hybrid_time() != 0) {
975
640
    total_size += 1 + 8;
976
640
  }
977
978
  // fixed64 snapshot_hybrid_time = 7;
979
7.52k
  if (this->snapshot_hybrid_time() != 0) {
980
757
    total_size += 1 + 8;
981
757
  }
982
983
  // .yb.tserver.TabletSnapshotOpRequestPB.Operation operation = 2;
984
7.52k
  if (this->operation() != 0) {
985
7.52k
    total_size += 1 +
986
7.52k
      ::google::protobuf::internal::WireFormatLite::EnumSize(this->operation());
987
7.52k
  }
988
989
  // uint32 schema_version = 12;
990
7.52k
  if (this->schema_version() != 0) {
991
42
    total_size += 1 +
992
42
      ::google::protobuf::internal::WireFormatLite::UInt32Size(
993
42
        this->schema_version());
994
42
  }
995
996
  // fixed64 previous_snapshot_hybrid_time = 15;
997
7.52k
  if (this->previous_snapshot_hybrid_time() != 0) {
998
132
    total_size += 1 + 8;
999
132
  }
1000
1001
  // fixed64 restoration_hybrid_time = 17;
1002
7.52k
  if (this->restoration_hybrid_time() != 0) {
1003
152
    total_size += 2 + 8;
1004
152
  }
1005
1006
  // bool imported = 9;
1007
7.52k
  if (this->imported() != 0) {
1008
0
    total_size += 1 + 1;
1009
0
  }
1010
1011
  // bool hide = 16;
1012
7.52k
  if (this->hide() != 0) {
1013
0
    total_size += 2 + 1;
1014
0
  }
1015
1016
7.52k
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
1017
7.52k
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1018
7.52k
  _cached_size_ = cached_size;
1019
7.52k
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
1020
7.52k
  return total_size;
1021
7.52k
}
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
794
void TabletSnapshotOpRequestPB::MergeFrom(const TabletSnapshotOpRequestPB& from) {
1039
// @@protoc_insertion_point(class_specific_merge_from_start:yb.tserver.TabletSnapshotOpRequestPB)
1040
794
  GOOGLE_DCHECK_NE(&from, this);
1041
794
  _internal_metadata_.MergeFrom(from._internal_metadata_);
1042
794
  ::google::protobuf::uint32 cached_has_bits = 0;
1043
794
  (void) cached_has_bits;
1044
1045
794
  tablet_id_.MergeFrom(from.tablet_id_);
1046
794
  indexes_.MergeFrom(from.indexes_);
1047
794
  if (from.dest_uuid().size() > 0) {
1048
1049
48
    dest_uuid_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.dest_uuid_);
1050
48
  }
1051
794
  if (from.snapshot_id().size() > 0) {
1052
1053
35
    snapshot_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.snapshot_id_);
1054
35
  }
1055
794
  if (from.snapshot_dir_override().size() > 0) {
1056
1057
746
    snapshot_dir_override_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.snapshot_dir_override_);
1058
746
  }
1059
794
  if (from.schedule_id().size() > 0) {
1060
1061
18
    schedule_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.schedule_id_);
1062
18
  }
1063
794
  if (from.restoration_id().size() > 0) {
1064
1065
20
    restoration_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.restoration_id_);
1066
20
  }
1067
794
  if (from.has_extra_data()) {
1068
0
    mutable_extra_data()->::google::protobuf::Any::MergeFrom(from.extra_data());
1069
0
  }
1070
794
  if (from.has_schema()) {
1071
10
    mutable_schema()->::yb::SchemaPB::MergeFrom(from.schema());
1072
10
  }
1073
794
  if (from.propagated_hybrid_time() != 0) {
1074
45
    set_propagated_hybrid_time(from.propagated_hybrid_time());
1075
45
  }
1076
794
  if (from.snapshot_hybrid_time() != 0) {
1077
35
    set_snapshot_hybrid_time(from.snapshot_hybrid_time());
1078
35
  }
1079
794
  if (from.operation() != 0) {
1080
794
    set_operation(from.operation());
1081
794
  }
1082
794
  if (from.schema_version() != 0) {
1083
3
    set_schema_version(from.schema_version());
1084
3
  }
1085
794
  if (from.previous_snapshot_hybrid_time() != 0) {
1086
0
    set_previous_snapshot_hybrid_time(from.previous_snapshot_hybrid_time());
1087
0
  }
1088
794
  if (from.restoration_hybrid_time() != 0) {
1089
10
    set_restoration_hybrid_time(from.restoration_hybrid_time());
1090
10
  }
1091
794
  if (from.imported() != 0) {
1092
0
    set_imported(from.imported());
1093
0
  }
1094
794
  if (from.hide() != 0) {
1095
0
    set_hide(from.hide());
1096
0
  }
1097
794
}
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
794
void TabletSnapshotOpRequestPB::CopyFrom(const TabletSnapshotOpRequestPB& from) {
1107
// @@protoc_insertion_point(class_specific_copy_from_start:yb.tserver.TabletSnapshotOpRequestPB)
1108
794
  if (&from == this) 
return0
;
1109
794
  Clear();
1110
794
  MergeFrom(from);
1111
794
}
1112
1113
8.34k
bool TabletSnapshotOpRequestPB::IsInitialized() const {
1114
8.34k
  if (!::google::protobuf::internal::AllAreInitialized(this->indexes())) 
return false0
;
1115
8.34k
  if (has_schema()) {
1116
149
    if (!this->schema_->IsInitialized()) 
return false0
;
1117
149
  }
1118
8.34k
  return true;
1119
8.34k
}
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
5.17k
::google::protobuf::Metadata TabletSnapshotOpRequestPB::GetMetadata() const {
1149
5.17k
  protobuf_yb_2ftserver_2fbackup_2eproto::protobuf_AssignDescriptorsOnce();
1150
5.17k
  return ::protobuf_yb_2ftserver_2fbackup_2eproto::file_level_metadata[kIndexInFileMessages];
1151
5.17k
}
1152
1153
1154
// ===================================================================
1155
1156
26.8k
void TabletSnapshotOpResponsePB::InitAsDefaultInstance() {
1157
26.8k
  ::yb::tserver::_TabletSnapshotOpResponsePB_default_instance_._instance.get_mutable()->error_ = const_cast< ::yb::tserver::TabletServerErrorPB*>(
1158
26.8k
      ::yb::tserver::TabletServerErrorPB::internal_default_instance());
1159
26.8k
}
1160
48
void TabletSnapshotOpResponsePB::clear_error() {
1161
48
  if (GetArenaNoVirtual() == NULL && error_ != NULL) {
1162
0
    delete error_;
1163
0
  }
1164
48
  error_ = NULL;
1165
48
}
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
27.7k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
1173
27.7k
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
1174
848
    ::protobuf_yb_2ftserver_2fbackup_2eproto::InitDefaultsTabletSnapshotOpResponsePB();
1175
848
  }
1176
27.7k
  SharedCtor();
1177
  // @@protoc_insertion_point(constructor:yb.tserver.TabletSnapshotOpResponsePB)
1178
27.7k
}
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
27.7k
void TabletSnapshotOpResponsePB::SharedCtor() {
1194
27.7k
  ::memset(&error_, 0, static_cast<size_t>(
1195
27.7k
      reinterpret_cast<char*>(&propagated_hybrid_time_) -
1196
27.7k
      reinterpret_cast<char*>(&error_)) + sizeof(propagated_hybrid_time_));
1197
27.7k
  _cached_size_ = 0;
1198
27.7k
}
1199
1200
811
TabletSnapshotOpResponsePB::~TabletSnapshotOpResponsePB() {
1201
  // @@protoc_insertion_point(destructor:yb.tserver.TabletSnapshotOpResponsePB)
1202
811
  SharedDtor();
1203
811
}
1204
1205
811
void TabletSnapshotOpResponsePB::SharedDtor() {
1206
811
  if (this != internal_default_instance()) delete error_;
1207
811
}
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
55
void TabletSnapshotOpResponsePB::Clear() {
1233
// @@protoc_insertion_point(message_clear_start:yb.tserver.TabletSnapshotOpResponsePB)
1234
55
  ::google::protobuf::uint32 cached_has_bits = 0;
1235
  // Prevent compiler warnings about cached_has_bits being unused
1236
55
  (void) cached_has_bits;
1237
1238
55
  if (GetArenaNoVirtual() == NULL && error_ != NULL) {
1239
7
    delete error_;
1240
7
  }
1241
55
  error_ = NULL;
1242
55
  propagated_hybrid_time_ = GOOGLE_ULONGLONG(0);
1243
55
  _internal_metadata_.Clear();
1244
55
}
1245
1246
bool TabletSnapshotOpResponsePB::MergePartialFromCodedStream(
1247
54
    ::google::protobuf::io::CodedInputStream* input) {
1248
55
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) 
goto failure0
1249
54
  ::google::protobuf::uint32 tag;
1250
  // @@protoc_insertion_point(parse_start:yb.tserver.TabletSnapshotOpResponsePB)
1251
109
  for (;;) {
1252
109
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
1253
109
    tag = p.first;
1254
109
    if (!p.second) 
goto handle_unusual55
;
1255
54
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
1256
      // .yb.tserver.TabletServerErrorPB error = 1;
1257
7
      case 1: {
1258
7
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1259
7
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
1260
7
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
1261
7
               input, mutable_error()));
1262
7
        } else {
1263
0
          goto handle_unusual;
1264
0
        }
1265
7
        break;
1266
7
      }
1267
1268
      // fixed64 propagated_hybrid_time = 2;
1269
48
      case 2: {
1270
48
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1271
48
            static_cast< ::google::protobuf::uint8>(17u /* 17 & 0xFF */)) {
1272
1273
48
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1274
48
                   ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED64>(
1275
48
                 input, &propagated_hybrid_time_)));
1276
48
        } else {
1277
0
          goto handle_unusual;
1278
0
        }
1279
48
        break;
1280
48
      }
1281
1282
48
      default: {
1283
54
      handle_unusual:
1284
54
        if (tag == 0) {
1285
54
          goto success;
1286
54
        }
1287
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
1288
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
1289
0
        break;
1290
0
      }
1291
54
    }
1292
54
  }
1293
55
success:
1294
  // @@protoc_insertion_point(parse_success:yb.tserver.TabletSnapshotOpResponsePB)
1295
55
  return true;
1296
0
failure:
1297
  // @@protoc_insertion_point(parse_failure:yb.tserver.TabletSnapshotOpResponsePB)
1298
0
  return false;
1299
54
#undef DO_
1300
54
}
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
55
    bool deterministic, ::google::protobuf::uint8* target) const {
1328
55
  (void)deterministic; // Unused
1329
  // @@protoc_insertion_point(serialize_to_array_start:yb.tserver.TabletSnapshotOpResponsePB)
1330
55
  ::google::protobuf::uint32 cached_has_bits = 0;
1331
55
  (void) cached_has_bits;
1332
1333
  // .yb.tserver.TabletServerErrorPB error = 1;
1334
55
  if (this->has_error()) {
1335
7
    target = ::google::protobuf::internal::WireFormatLite::
1336
7
      InternalWriteMessageToArray(
1337
7
        1, *this->error_, deterministic, target);
1338
7
  }
1339
1340
  // fixed64 propagated_hybrid_time = 2;
1341
55
  if (this->propagated_hybrid_time() != 0) {
1342
48
    target = ::google::protobuf::internal::WireFormatLite::WriteFixed64ToArray(2, this->propagated_hybrid_time(), target);
1343
48
  }
1344
1345
55
  if ((_internal_metadata_.have_unknown_fields() &&  
::google::protobuf::internal::GetProto3PreserveUnknownsDefault()0
)) {
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
55
  return target;
1351
55
}
1352
1353
110
size_t TabletSnapshotOpResponsePB::ByteSizeLong() const {
1354
// @@protoc_insertion_point(message_byte_size_start:yb.tserver.TabletSnapshotOpResponsePB)
1355
110
  size_t total_size = 0;
1356
1357
110
  if ((_internal_metadata_.have_unknown_fields() &&  
::google::protobuf::internal::GetProto3PreserveUnknownsDefault()0
)) {
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
110
  if (this->has_error()) {
1364
14
    total_size += 1 +
1365
14
      ::google::protobuf::internal::WireFormatLite::MessageSize(
1366
14
        *this->error_);
1367
14
  }
1368
1369
  // fixed64 propagated_hybrid_time = 2;
1370
110
  if (this->propagated_hybrid_time() != 0) {
1371
96
    total_size += 1 + 8;
1372
96
  }
1373
1374
110
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
1375
110
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1376
110
  _cached_size_ = cached_size;
1377
110
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
1378
110
  return total_size;
1379
110
}
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
110
bool TabletSnapshotOpResponsePB::IsInitialized() const {
1426
110
  if (has_error()) {
1427
14
    if (!this->error_->IsInitialized()) 
return false0
;
1428
14
  }
1429
110
  return true;
1430
110
}
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)