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/tablet/operations.pb.cc
Line
Count
Source (jump to first uncovered line)
1
// Generated by the protocol buffer compiler.  DO NOT EDIT!
2
// source: yb/tablet/operations.proto
3
4
#include "yb/tablet/operations.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 tablet {
25
class TransactionStatePBDefaultTypeInternal {
26
 public:
27
  ::google::protobuf::internal::ExplicitlyConstructed<TransactionStatePB>
28
      _instance;
29
} _TransactionStatePB_default_instance_;
30
class TruncatePBDefaultTypeInternal {
31
 public:
32
  ::google::protobuf::internal::ExplicitlyConstructed<TruncatePB>
33
      _instance;
34
} _TruncatePB_default_instance_;
35
class WritePBDefaultTypeInternal {
36
 public:
37
  ::google::protobuf::internal::ExplicitlyConstructed<WritePB>
38
      _instance;
39
} _WritePB_default_instance_;
40
class ChangeMetadataRequestPBDefaultTypeInternal {
41
 public:
42
  ::google::protobuf::internal::ExplicitlyConstructed<ChangeMetadataRequestPB>
43
      _instance;
44
} _ChangeMetadataRequestPB_default_instance_;
45
class SplitTabletRequestPBDefaultTypeInternal {
46
 public:
47
  ::google::protobuf::internal::ExplicitlyConstructed<SplitTabletRequestPB>
48
      _instance;
49
} _SplitTabletRequestPB_default_instance_;
50
}  // namespace tablet
51
}  // namespace yb
52
namespace protobuf_yb_2ftablet_2foperations_2eproto {
53
15.8k
void InitDefaultsTransactionStatePBImpl() {
54
15.8k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
55
56
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
57
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
58
#else
59
15.8k
  ::google::protobuf::internal::InitProtobufDefaults();
60
15.8k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
61
15.8k
  protobuf_yb_2fcommon_2ftransaction_2eproto::InitDefaultsAbortedSubTransactionSetPB();
62
15.8k
  {
63
15.8k
    void* ptr = &::yb::tablet::_TransactionStatePB_default_instance_;
64
15.8k
    new (ptr) ::yb::tablet::TransactionStatePB();
65
15.8k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
66
15.8k
  }
67
15.8k
  ::yb::tablet::TransactionStatePB::InitAsDefaultInstance();
68
15.8k
}
69
70
5.24M
void InitDefaultsTransactionStatePB() {
71
5.24M
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
72
5.24M
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsTransactionStatePBImpl);
73
5.24M
}
74
75
15.8k
void InitDefaultsTruncatePBImpl() {
76
15.8k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
77
78
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
79
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
80
#else
81
15.8k
  ::google::protobuf::internal::InitProtobufDefaults();
82
15.8k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
83
15.8k
  {
84
15.8k
    void* ptr = &::yb::tablet::_TruncatePB_default_instance_;
85
15.8k
    new (ptr) ::yb::tablet::TruncatePB();
86
15.8k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
87
15.8k
  }
88
15.8k
  ::yb::tablet::TruncatePB::InitAsDefaultInstance();
89
15.8k
}
90
91
207k
void InitDefaultsTruncatePB() {
92
207k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
93
207k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsTruncatePBImpl);
94
207k
}
95
96
15.8k
void InitDefaultsWritePBImpl() {
97
15.8k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
98
99
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
100
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
101
#else
102
15.8k
  ::google::protobuf::internal::InitProtobufDefaults();
103
15.8k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
104
15.8k
  protobuf_yb_2fdocdb_2fdocdb_2eproto::InitDefaultsKeyValueWriteBatchPB();
105
15.8k
  {
106
15.8k
    void* ptr = &::yb::tablet::_WritePB_default_instance_;
107
15.8k
    new (ptr) ::yb::tablet::WritePB();
108
15.8k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
109
15.8k
  }
110
15.8k
  ::yb::tablet::WritePB::InitAsDefaultInstance();
111
15.8k
}
112
113
6.74M
void InitDefaultsWritePB() {
114
6.74M
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
115
6.74M
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsWritePBImpl);
116
6.74M
}
117
118
15.8k
void InitDefaultsChangeMetadataRequestPBImpl() {
119
15.8k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
120
121
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
122
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
123
#else
124
15.8k
  ::google::protobuf::internal::InitProtobufDefaults();
125
15.8k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
126
15.8k
  protobuf_yb_2fcommon_2fcommon_2eproto::InitDefaultsSchemaPB();
127
15.8k
  protobuf_yb_2fcommon_2fcommon_2eproto::InitDefaultsIndexInfoPB();
128
15.8k
  protobuf_yb_2ftablet_2fmetadata_2eproto::InitDefaultsTableInfoPB();
129
15.8k
  {
130
15.8k
    void* ptr = &::yb::tablet::_ChangeMetadataRequestPB_default_instance_;
131
15.8k
    new (ptr) ::yb::tablet::ChangeMetadataRequestPB();
132
15.8k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
133
15.8k
  }
134
15.8k
  ::yb::tablet::ChangeMetadataRequestPB::InitAsDefaultInstance();
135
15.8k
}
136
137
842k
void InitDefaultsChangeMetadataRequestPB() {
138
842k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
139
842k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsChangeMetadataRequestPBImpl);
140
842k
}
141
142
15.8k
void InitDefaultsSplitTabletRequestPBImpl() {
143
15.8k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
144
145
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
146
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
147
#else
148
15.8k
  ::google::protobuf::internal::InitProtobufDefaults();
149
15.8k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
150
15.8k
  {
151
15.8k
    void* ptr = &::yb::tablet::_SplitTabletRequestPB_default_instance_;
152
15.8k
    new (ptr) ::yb::tablet::SplitTabletRequestPB();
153
15.8k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
154
15.8k
  }
155
15.8k
  ::yb::tablet::SplitTabletRequestPB::InitAsDefaultInstance();
156
15.8k
}
157
158
43.2k
void InitDefaultsSplitTabletRequestPB() {
159
43.2k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
160
43.2k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsSplitTabletRequestPBImpl);
161
43.2k
}
162
163
::google::protobuf::Metadata file_level_metadata[5];
164
165
const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
166
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tablet::TransactionStatePB, _has_bits_),
167
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tablet::TransactionStatePB, _internal_metadata_),
168
  ~0u,  // no _extensions_
169
  ~0u,  // no _oneof_case_
170
  ~0u,  // no _weak_field_map_
171
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tablet::TransactionStatePB, transaction_id_),
172
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tablet::TransactionStatePB, status_),
173
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tablet::TransactionStatePB, tablets_),
174
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tablet::TransactionStatePB, tablet_batches_),
175
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tablet::TransactionStatePB, commit_hybrid_time_),
176
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tablet::TransactionStatePB, sealed_),
177
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tablet::TransactionStatePB, aborted_),
178
  0,
179
  4,
180
  ~0u,
181
  ~0u,
182
  2,
183
  3,
184
  1,
185
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tablet::TruncatePB, _has_bits_),
186
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tablet::TruncatePB, _internal_metadata_),
187
  ~0u,  // no _extensions_
188
  ~0u,  // no _oneof_case_
189
  ~0u,  // no _weak_field_map_
190
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tablet::WritePB, _has_bits_),
191
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tablet::WritePB, _internal_metadata_),
192
  ~0u,  // no _extensions_
193
  ~0u,  // no _oneof_case_
194
  ~0u,  // no _weak_field_map_
195
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tablet::WritePB, unused_tablet_id_),
196
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tablet::WritePB, write_batch_),
197
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tablet::WritePB, client_id1_),
198
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tablet::WritePB, client_id2_),
199
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tablet::WritePB, request_id_),
200
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tablet::WritePB, min_running_request_id_),
201
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tablet::WritePB, external_hybrid_time_),
202
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tablet::WritePB, batch_idx_),
203
  0,
204
  1,
205
  2,
206
  3,
207
  4,
208
  5,
209
  6,
210
  7,
211
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tablet::ChangeMetadataRequestPB, _has_bits_),
212
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tablet::ChangeMetadataRequestPB, _internal_metadata_),
213
  ~0u,  // no _extensions_
214
  ~0u,  // no _oneof_case_
215
  ~0u,  // no _weak_field_map_
216
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tablet::ChangeMetadataRequestPB, dest_uuid_),
217
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tablet::ChangeMetadataRequestPB, tablet_id_),
218
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tablet::ChangeMetadataRequestPB, schema_),
219
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tablet::ChangeMetadataRequestPB, indexes_),
220
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tablet::ChangeMetadataRequestPB, schema_version_),
221
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tablet::ChangeMetadataRequestPB, new_table_name_),
222
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tablet::ChangeMetadataRequestPB, propagated_hybrid_time_),
223
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tablet::ChangeMetadataRequestPB, add_table_),
224
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tablet::ChangeMetadataRequestPB, wal_retention_secs_),
225
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tablet::ChangeMetadataRequestPB, remove_table_id_),
226
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tablet::ChangeMetadataRequestPB, mark_backfill_done_),
227
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tablet::ChangeMetadataRequestPB, alter_table_id_),
228
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tablet::ChangeMetadataRequestPB, backfill_done_table_id_),
229
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tablet::ChangeMetadataRequestPB, transaction_id_),
230
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tablet::ChangeMetadataRequestPB, should_abort_active_txns_),
231
  2,
232
  0,
233
  7,
234
  ~0u,
235
  10,
236
  1,
237
  9,
238
  8,
239
  11,
240
  3,
241
  12,
242
  4,
243
  5,
244
  6,
245
  13,
246
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tablet::SplitTabletRequestPB, _has_bits_),
247
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tablet::SplitTabletRequestPB, _internal_metadata_),
248
  ~0u,  // no _extensions_
249
  ~0u,  // no _oneof_case_
250
  ~0u,  // no _weak_field_map_
251
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tablet::SplitTabletRequestPB, dest_uuid_),
252
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tablet::SplitTabletRequestPB, propagated_hybrid_time_),
253
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tablet::SplitTabletRequestPB, tablet_id_),
254
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tablet::SplitTabletRequestPB, new_tablet1_id_),
255
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tablet::SplitTabletRequestPB, new_tablet2_id_),
256
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tablet::SplitTabletRequestPB, split_partition_key_),
257
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tablet::SplitTabletRequestPB, split_encoded_key_),
258
  0,
259
  6,
260
  1,
261
  2,
262
  3,
263
  4,
264
  5,
265
};
266
static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
267
  { 0, 12, sizeof(::yb::tablet::TransactionStatePB)},
268
  { 19, 24, sizeof(::yb::tablet::TruncatePB)},
269
  { 24, 37, sizeof(::yb::tablet::WritePB)},
270
  { 45, 65, sizeof(::yb::tablet::ChangeMetadataRequestPB)},
271
  { 80, 92, sizeof(::yb::tablet::SplitTabletRequestPB)},
272
};
273
274
static ::google::protobuf::Message const * const file_default_instances[] = {
275
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::tablet::_TransactionStatePB_default_instance_),
276
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::tablet::_TruncatePB_default_instance_),
277
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::tablet::_WritePB_default_instance_),
278
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::tablet::_ChangeMetadataRequestPB_default_instance_),
279
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::tablet::_SplitTabletRequestPB_default_instance_),
280
};
281
282
8.36k
void protobuf_AssignDescriptors() {
283
8.36k
  AddDescriptors();
284
8.36k
  ::google::protobuf::MessageFactory* factory = NULL;
285
8.36k
  AssignDescriptors(
286
8.36k
      "yb/tablet/operations.proto", schemas, file_default_instances, TableStruct::offsets, factory,
287
8.36k
      file_level_metadata, NULL, NULL);
288
8.36k
}
289
290
21.6M
void protobuf_AssignDescriptorsOnce() {
291
21.6M
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
292
21.6M
  ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors);
293
21.6M
}
294
295
void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD;
296
0
void protobuf_RegisterTypes(const ::std::string&) {
297
0
  protobuf_AssignDescriptorsOnce();
298
0
  ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 5);
299
0
}
300
301
15.8k
void AddDescriptorsImpl() {
302
15.8k
  InitDefaults();
303
15.8k
  static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
304
15.8k
      "\n\032yb/tablet/operations.proto\022\tyb.tablet\032"
305
15.8k
      "\026yb/common/common.proto\032\033yb/common/trans"
306
15.8k
      "action.proto\032\024yb/docdb/docdb.proto\032\030yb/t"
307
15.8k
      "ablet/metadata.proto\"\331\001\n\022TransactionStat"
308
15.8k
      "ePB\022\026\n\016transaction_id\030\001 \001(\014\022%\n\006status\030\002 "
309
15.8k
      "\001(\0162\025.yb.TransactionStatus\022\017\n\007tablets\030\003 "
310
15.8k
      "\003(\014\022\026\n\016tablet_batches\030\005 \003(\003\022\032\n\022commit_hy"
311
15.8k
      "brid_time\030\004 \001(\006\022\016\n\006sealed\030\006 \001(\010\022/\n\007abort"
312
15.8k
      "ed\030\007 \001(\0132\036.yb.AbortedSubTransactionSetPB"
313
15.8k
      "\"\014\n\nTruncatePB\"\345\001\n\007WritePB\022\030\n\020unused_tab"
314
15.8k
      "let_id\030\001 \001(\014\0223\n\013write_batch\030\007 \001(\0132\036.yb.d"
315
15.8k
      "ocdb.KeyValueWriteBatchPB\022\022\n\nclient_id1\030"
316
15.8k
      "\016 \001(\006\022\022\n\nclient_id2\030\017 \001(\006\022\022\n\nrequest_id\030"
317
15.8k
      "\020 \001(\003\022\036\n\026min_running_request_id\030\021 \001(\003\022\034\n"
318
15.8k
      "\024external_hybrid_time\030\023 \001(\006\022\021\n\tbatch_idx"
319
15.8k
      "\030\024 \001(\004\"\304\003\n\027ChangeMetadataRequestPB\022\021\n\tde"
320
15.8k
      "st_uuid\030\005 \001(\014\022\021\n\ttablet_id\030\001 \002(\014\022\034\n\006sche"
321
15.8k
      "ma\030\002 \001(\0132\014.yb.SchemaPB\022 \n\007indexes\030\007 \003(\0132"
322
15.8k
      "\017.yb.IndexInfoPB\022\026\n\016schema_version\030\003 \001(\r"
323
15.8k
      "\022\026\n\016new_table_name\030\004 \001(\t\022\036\n\026propagated_h"
324
15.8k
      "ybrid_time\030\006 \001(\006\022)\n\tadd_table\030\010 \001(\0132\026.yb"
325
15.8k
      ".tablet.TableInfoPB\022\032\n\022wal_retention_sec"
326
15.8k
      "s\030\t \001(\r\022\027\n\017remove_table_id\030\n \001(\014\022\032\n\022mark"
327
15.8k
      "_backfill_done\030\013 \001(\010\022\026\n\016alter_table_id\030\014"
328
15.8k
      " \001(\014\022\036\n\026backfill_done_table_id\030\r \001(\014\022\026\n\016"
329
15.8k
      "transaction_id\030\016 \001(\014\022\'\n\030should_abort_act"
330
15.8k
      "ive_txns\030\020 \001(\010:\005false\"\304\001\n\024SplitTabletReq"
331
15.8k
      "uestPB\022\021\n\tdest_uuid\030\001 \001(\014\022\036\n\026propagated_"
332
15.8k
      "hybrid_time\030\002 \001(\006\022\021\n\ttablet_id\030\003 \002(\014\022\026\n\016"
333
15.8k
      "new_tablet1_id\030\004 \002(\014\022\026\n\016new_tablet2_id\030\005"
334
15.8k
      " \002(\014\022\033\n\023split_partition_key\030\006 \002(\014\022\031\n\021spl"
335
15.8k
      "it_encoded_key\030\007 \002(\014B\017\n\rorg.yb.tablet"
336
15.8k
  };
337
15.8k
  ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
338
15.8k
      descriptor, 1277);
339
15.8k
  ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
340
15.8k
    "yb/tablet/operations.proto", &protobuf_RegisterTypes);
341
15.8k
  ::protobuf_yb_2fcommon_2fcommon_2eproto::AddDescriptors();
342
15.8k
  ::protobuf_yb_2fcommon_2ftransaction_2eproto::AddDescriptors();
343
15.8k
  ::protobuf_yb_2fdocdb_2fdocdb_2eproto::AddDescriptors();
344
15.8k
  ::protobuf_yb_2ftablet_2fmetadata_2eproto::AddDescriptors();
345
15.8k
}
346
347
98.7k
void AddDescriptors() {
348
98.7k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
349
98.7k
  ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl);
350
98.7k
}
351
// Force AddDescriptors() to be called at dynamic initialization time.
352
struct StaticDescriptorInitializer {
353
15.8k
  StaticDescriptorInitializer() {
354
15.8k
    AddDescriptors();
355
15.8k
  }
356
} static_descriptor_initializer;
357
}  // namespace protobuf_yb_2ftablet_2foperations_2eproto
358
namespace yb {
359
namespace tablet {
360
361
// ===================================================================
362
363
15.8k
void TransactionStatePB::InitAsDefaultInstance() {
364
15.8k
  ::yb::tablet::_TransactionStatePB_default_instance_._instance.get_mutable()->aborted_ = const_cast< ::yb::AbortedSubTransactionSetPB*>(
365
15.8k
      ::yb::AbortedSubTransactionSetPB::internal_default_instance());
366
15.8k
}
367
0
void TransactionStatePB::clear_aborted() {
368
0
  if (aborted_ != NULL) aborted_->Clear();
369
0
  clear_has_aborted();
370
0
}
371
#if !defined(_MSC_VER) || _MSC_VER >= 1900
372
const int TransactionStatePB::kTransactionIdFieldNumber;
373
const int TransactionStatePB::kStatusFieldNumber;
374
const int TransactionStatePB::kTabletsFieldNumber;
375
const int TransactionStatePB::kTabletBatchesFieldNumber;
376
const int TransactionStatePB::kCommitHybridTimeFieldNumber;
377
const int TransactionStatePB::kSealedFieldNumber;
378
const int TransactionStatePB::kAbortedFieldNumber;
379
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
380
381
TransactionStatePB::TransactionStatePB()
382
5.20M
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
383
5.19M
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
384
5.19M
    ::protobuf_yb_2ftablet_2foperations_2eproto::InitDefaultsTransactionStatePB();
385
5.19M
  }
386
5.20M
  SharedCtor();
387
  // @@protoc_insertion_point(constructor:yb.tablet.TransactionStatePB)
388
5.20M
}
389
TransactionStatePB::TransactionStatePB(const TransactionStatePB& from)
390
  : ::google::protobuf::Message(),
391
      _internal_metadata_(NULL),
392
      _has_bits_(from._has_bits_),
393
      _cached_size_(0),
394
      tablets_(from.tablets_),
395
4
      tablet_batches_(from.tablet_batches_) {
396
4
  _internal_metadata_.MergeFrom(from._internal_metadata_);
397
4
  transaction_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
398
4
  if (from.has_transaction_id()) {
399
4
    transaction_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.transaction_id_);
400
4
  }
401
4
  if (from.has_aborted()) {
402
4
    aborted_ = new ::yb::AbortedSubTransactionSetPB(*from.aborted_);
403
0
  } else {
404
0
    aborted_ = NULL;
405
0
  }
406
4
  ::memcpy(&commit_hybrid_time_, &from.commit_hybrid_time_,
407
4
    static_cast<size_t>(reinterpret_cast<char*>(&status_) -
408
4
    reinterpret_cast<char*>(&commit_hybrid_time_)) + sizeof(status_));
409
  // @@protoc_insertion_point(copy_constructor:yb.tablet.TransactionStatePB)
410
4
}
411
412
5.20M
void TransactionStatePB::SharedCtor() {
413
5.20M
  _cached_size_ = 0;
414
5.20M
  transaction_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
415
5.20M
  ::memset(&aborted_, 0, static_cast<size_t>(
416
5.20M
      reinterpret_cast<char*>(&sealed_) -
417
5.20M
      reinterpret_cast<char*>(&aborted_)) + sizeof(sealed_));
418
5.20M
  status_ = 1;
419
5.20M
}
420
421
5.18M
TransactionStatePB::~TransactionStatePB() {
422
  // @@protoc_insertion_point(destructor:yb.tablet.TransactionStatePB)
423
5.18M
  SharedDtor();
424
5.18M
}
425
426
5.18M
void TransactionStatePB::SharedDtor() {
427
5.18M
  transaction_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
428
5.18M
  if (this != internal_default_instance()) delete aborted_;
429
5.18M
}
430
431
0
void TransactionStatePB::SetCachedSize(int size) const {
432
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
433
0
  _cached_size_ = size;
434
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
435
0
}
436
0
const ::google::protobuf::Descriptor* TransactionStatePB::descriptor() {
437
0
  ::protobuf_yb_2ftablet_2foperations_2eproto::protobuf_AssignDescriptorsOnce();
438
0
  return ::protobuf_yb_2ftablet_2foperations_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
439
0
}
440
441
0
const TransactionStatePB& TransactionStatePB::default_instance() {
442
0
  ::protobuf_yb_2ftablet_2foperations_2eproto::InitDefaultsTransactionStatePB();
443
0
  return *internal_default_instance();
444
0
}
445
446
0
TransactionStatePB* TransactionStatePB::New(::google::protobuf::Arena* arena) const {
447
0
  TransactionStatePB* n = new TransactionStatePB;
448
0
  if (arena != NULL) {
449
0
    arena->Own(n);
450
0
  }
451
0
  return n;
452
0
}
453
454
633k
void TransactionStatePB::Clear() {
455
// @@protoc_insertion_point(message_clear_start:yb.tablet.TransactionStatePB)
456
633k
  ::google::protobuf::uint32 cached_has_bits = 0;
457
  // Prevent compiler warnings about cached_has_bits being unused
458
633k
  (void) cached_has_bits;
459
460
633k
  tablets_.Clear();
461
633k
  tablet_batches_.Clear();
462
633k
  cached_has_bits = _has_bits_[0];
463
633k
  if (cached_has_bits & 3u) {
464
0
    if (cached_has_bits & 0x00000001u) {
465
0
      GOOGLE_DCHECK(!transaction_id_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
466
0
      (*transaction_id_.UnsafeRawStringPointer())->clear();
467
0
    }
468
0
    if (cached_has_bits & 0x00000002u) {
469
0
      GOOGLE_DCHECK(aborted_ != NULL);
470
0
      aborted_->Clear();
471
0
    }
472
0
  }
473
633k
  if (cached_has_bits & 28u) {
474
0
    ::memset(&commit_hybrid_time_, 0, static_cast<size_t>(
475
0
        reinterpret_cast<char*>(&sealed_) -
476
0
        reinterpret_cast<char*>(&commit_hybrid_time_)) + sizeof(sealed_));
477
0
    status_ = 1;
478
0
  }
479
633k
  _has_bits_.Clear();
480
633k
  _internal_metadata_.Clear();
481
633k
}
482
483
bool TransactionStatePB::MergePartialFromCodedStream(
484
2.51M
    ::google::protobuf::io::CodedInputStream* input) {
485
8.60M
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
486
2.51M
  ::google::protobuf::uint32 tag;
487
  // @@protoc_insertion_point(parse_start:yb.tablet.TransactionStatePB)
488
11.1M
  for (;;) {
489
11.1M
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
490
11.1M
    tag = p.first;
491
11.1M
    if (!p.second) goto handle_unusual;
492
8.59M
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
493
      // optional bytes transaction_id = 1;
494
2.45M
      case 1: {
495
2.45M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
496
2.45M
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
497
2.45M
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
498
2.45M
                input, this->mutable_transaction_id()));
499
18.4E
        } else {
500
18.4E
          goto handle_unusual;
501
18.4E
        }
502
2.45M
        break;
503
2.45M
      }
504
505
      // optional .yb.TransactionStatus status = 2;
506
2.51M
      case 2: {
507
2.51M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
508
2.51M
            static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
509
2.51M
          int value;
510
2.51M
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
511
2.51M
                   int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
512
2.51M
                 input, &value)));
513
2.51M
          if (::yb::TransactionStatus_IsValid(value)) {
514
2.51M
            set_status(static_cast< ::yb::TransactionStatus >(value));
515
2.32k
          } else {
516
2.32k
            mutable_unknown_fields()->AddVarint(
517
2.32k
                2, static_cast< ::google::protobuf::uint64>(value));
518
2.32k
          }
519
18.4E
        } else {
520
18.4E
          goto handle_unusual;
521
18.4E
        }
522
2.51M
        break;
523
2.51M
      }
524
525
      // repeated bytes tablets = 3;
526
1.31M
      case 3: {
527
1.31M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
528
1.31M
            static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
529
1.31M
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
530
1.31M
                input, this->add_tablets()));
531
18.4E
        } else {
532
18.4E
          goto handle_unusual;
533
18.4E
        }
534
1.31M
        break;
535
1.31M
      }
536
537
      // optional fixed64 commit_hybrid_time = 4;
538
650k
      case 4: {
539
650k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
540
650k
            static_cast< ::google::protobuf::uint8>(33u /* 33 & 0xFF */)) {
541
650k
          set_has_commit_hybrid_time();
542
650k
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
543
650k
                   ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED64>(
544
650k
                 input, &commit_hybrid_time_)));
545
18.4E
        } else {
546
18.4E
          goto handle_unusual;
547
18.4E
        }
548
650k
        break;
549
650k
      }
550
551
      // repeated int64 tablet_batches = 5;
552
0
      case 5: {
553
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
554
0
            static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) {
555
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive<
556
0
                   ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
557
0
                 1, 40u, input, this->mutable_tablet_batches())));
558
0
        } else if (
559
0
            static_cast< ::google::protobuf::uint8>(tag) ==
560
0
            static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) {
561
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline<
562
0
                   ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
563
0
                 input, this->mutable_tablet_batches())));
564
0
        } else {
565
0
          goto handle_unusual;
566
0
        }
567
0
        break;
568
0
      }
569
570
      // optional bool sealed = 6;
571
1.01M
      case 6: {
572
1.01M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
573
1.01M
            static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) {
574
1.01M
          set_has_sealed();
575
1.01M
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
576
1.01M
                   bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
577
1.01M
                 input, &sealed_)));
578
42
        } else {
579
42
          goto handle_unusual;
580
42
        }
581
1.01M
        break;
582
1.01M
      }
583
584
      // optional .yb.AbortedSubTransactionSetPB aborted = 7;
585
650k
      case 7: {
586
650k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
587
650k
            static_cast< ::google::protobuf::uint8>(58u /* 58 & 0xFF */)) {
588
650k
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
589
650k
               input, mutable_aborted()));
590
18.4E
        } else {
591
18.4E
          goto handle_unusual;
592
18.4E
        }
593
650k
        break;
594
2.51M
      }
595
596
0
      default: {
597
2.51M
      handle_unusual:
598
2.51M
        if (tag == 0) {
599
2.51M
          goto success;
600
2.51M
        }
601
18.4E
        DO_(::google::protobuf::internal::WireFormat::SkipField(
602
18.4E
              input, tag, _internal_metadata_.mutable_unknown_fields()));
603
18.4E
        break;
604
18.4E
      }
605
8.59M
    }
606
8.59M
  }
607
2.51M
success:
608
  // @@protoc_insertion_point(parse_success:yb.tablet.TransactionStatePB)
609
2.51M
  return true;
610
0
failure:
611
  // @@protoc_insertion_point(parse_failure:yb.tablet.TransactionStatePB)
612
0
  return false;
613
2.51M
#undef DO_
614
2.51M
}
615
616
void TransactionStatePB::SerializeWithCachedSizes(
617
0
    ::google::protobuf::io::CodedOutputStream* output) const {
618
  // @@protoc_insertion_point(serialize_start:yb.tablet.TransactionStatePB)
619
0
  ::google::protobuf::uint32 cached_has_bits = 0;
620
0
  (void) cached_has_bits;
621
622
0
  cached_has_bits = _has_bits_[0];
623
  // optional bytes transaction_id = 1;
624
0
  if (cached_has_bits & 0x00000001u) {
625
0
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
626
0
      1, this->transaction_id(), output);
627
0
  }
628
629
  // optional .yb.TransactionStatus status = 2;
630
0
  if (cached_has_bits & 0x00000010u) {
631
0
    ::google::protobuf::internal::WireFormatLite::WriteEnum(
632
0
      2, this->status(), output);
633
0
  }
634
635
  // repeated bytes tablets = 3;
636
0
  for (int i = 0, n = this->tablets_size(); i < n; i++) {
637
0
    ::google::protobuf::internal::WireFormatLite::WriteBytes(
638
0
      3, this->tablets(i), output);
639
0
  }
640
641
  // optional fixed64 commit_hybrid_time = 4;
642
0
  if (cached_has_bits & 0x00000004u) {
643
0
    ::google::protobuf::internal::WireFormatLite::WriteFixed64(4, this->commit_hybrid_time(), output);
644
0
  }
645
646
  // repeated int64 tablet_batches = 5;
647
0
  for (int i = 0, n = this->tablet_batches_size(); i < n; i++) {
648
0
    ::google::protobuf::internal::WireFormatLite::WriteInt64(
649
0
      5, this->tablet_batches(i), output);
650
0
  }
651
652
  // optional bool sealed = 6;
653
0
  if (cached_has_bits & 0x00000008u) {
654
0
    ::google::protobuf::internal::WireFormatLite::WriteBool(6, this->sealed(), output);
655
0
  }
656
657
  // optional .yb.AbortedSubTransactionSetPB aborted = 7;
658
0
  if (cached_has_bits & 0x00000002u) {
659
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
660
0
      7, *this->aborted_, output);
661
0
  }
662
663
0
  if (_internal_metadata_.have_unknown_fields()) {
664
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
665
0
        _internal_metadata_.unknown_fields(), output);
666
0
  }
667
  // @@protoc_insertion_point(serialize_end:yb.tablet.TransactionStatePB)
668
0
}
669
670
::google::protobuf::uint8* TransactionStatePB::InternalSerializeWithCachedSizesToArray(
671
5.14M
    bool deterministic, ::google::protobuf::uint8* target) const {
672
5.14M
  (void)deterministic; // Unused
673
  // @@protoc_insertion_point(serialize_to_array_start:yb.tablet.TransactionStatePB)
674
5.14M
  ::google::protobuf::uint32 cached_has_bits = 0;
675
5.14M
  (void) cached_has_bits;
676
677
5.14M
  cached_has_bits = _has_bits_[0];
678
  // optional bytes transaction_id = 1;
679
5.14M
  if (cached_has_bits & 0x00000001u) {
680
5.06M
    target =
681
5.06M
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
682
5.06M
        1, this->transaction_id(), target);
683
5.06M
  }
684
685
  // optional .yb.TransactionStatus status = 2;
686
5.14M
  if (cached_has_bits & 0x00000010u) {
687
5.14M
    target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
688
5.14M
      2, this->status(), target);
689
5.14M
  }
690
691
  // repeated bytes tablets = 3;
692
7.93M
  for (int i = 0, n = this->tablets_size(); i < n; i++) {
693
2.78M
    target = ::google::protobuf::internal::WireFormatLite::
694
2.78M
      WriteBytesToArray(3, this->tablets(i), target);
695
2.78M
  }
696
697
  // optional fixed64 commit_hybrid_time = 4;
698
5.14M
  if (cached_has_bits & 0x00000004u) {
699
1.38M
    target = ::google::protobuf::internal::WireFormatLite::WriteFixed64ToArray(4, this->commit_hybrid_time(), target);
700
1.38M
  }
701
702
  // repeated int64 tablet_batches = 5;
703
5.14M
  target = ::google::protobuf::internal::WireFormatLite::
704
5.14M
    WriteInt64ToArray(5, this->tablet_batches_, target);
705
706
  // optional bool sealed = 6;
707
5.14M
  if (cached_has_bits & 0x00000008u) {
708
1.75M
    target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(6, this->sealed(), target);
709
1.75M
  }
710
711
  // optional .yb.AbortedSubTransactionSetPB aborted = 7;
712
5.14M
  if (cached_has_bits & 0x00000002u) {
713
1.38M
    target = ::google::protobuf::internal::WireFormatLite::
714
1.38M
      InternalWriteMessageToArray(
715
1.38M
        7, *this->aborted_, deterministic, target);
716
1.38M
  }
717
718
5.14M
  if (_internal_metadata_.have_unknown_fields()) {
719
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
720
0
        _internal_metadata_.unknown_fields(), target);
721
0
  }
722
  // @@protoc_insertion_point(serialize_to_array_end:yb.tablet.TransactionStatePB)
723
5.14M
  return target;
724
5.14M
}
725
726
12.0M
size_t TransactionStatePB::ByteSizeLong() const {
727
// @@protoc_insertion_point(message_byte_size_start:yb.tablet.TransactionStatePB)
728
12.0M
  size_t total_size = 0;
729
730
12.0M
  if (_internal_metadata_.have_unknown_fields()) {
731
0
    total_size +=
732
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
733
0
        _internal_metadata_.unknown_fields());
734
0
  }
735
  // repeated bytes tablets = 3;
736
12.0M
  total_size += 1 *
737
12.0M
      ::google::protobuf::internal::FromIntSize(this->tablets_size());
738
18.5M
  for (int i = 0, n = this->tablets_size(); i < n; i++) {
739
6.55M
    total_size += ::google::protobuf::internal::WireFormatLite::BytesSize(
740
6.55M
      this->tablets(i));
741
6.55M
  }
742
743
  // repeated int64 tablet_batches = 5;
744
12.0M
  {
745
12.0M
    size_t data_size = ::google::protobuf::internal::WireFormatLite::
746
12.0M
      Int64Size(this->tablet_batches_);
747
12.0M
    total_size += 1 *
748
12.0M
                  ::google::protobuf::internal::FromIntSize(this->tablet_batches_size());
749
12.0M
    total_size += data_size;
750
12.0M
  }
751
752
12.0M
  if (_has_bits_[0 / 32] & 31u) {
753
    // optional bytes transaction_id = 1;
754
12.0M
    if (has_transaction_id()) {
755
11.8M
      total_size += 1 +
756
11.8M
        ::google::protobuf::internal::WireFormatLite::BytesSize(
757
11.8M
          this->transaction_id());
758
11.8M
    }
759
760
    // optional .yb.AbortedSubTransactionSetPB aborted = 7;
761
12.0M
    if (has_aborted()) {
762
3.26M
      total_size += 1 +
763
3.26M
        ::google::protobuf::internal::WireFormatLite::MessageSize(
764
3.26M
          *this->aborted_);
765
3.26M
    }
766
767
    // optional fixed64 commit_hybrid_time = 4;
768
12.0M
    if (has_commit_hybrid_time()) {
769
3.26M
      total_size += 1 + 8;
770
3.26M
    }
771
772
    // optional bool sealed = 6;
773
12.0M
    if (has_sealed()) {
774
3.99M
      total_size += 1 + 1;
775
3.99M
    }
776
777
    // optional .yb.TransactionStatus status = 2;
778
12.0M
    if (has_status()) {
779
12.0M
      total_size += 1 +
780
12.0M
        ::google::protobuf::internal::WireFormatLite::EnumSize(this->status());
781
12.0M
    }
782
783
12.0M
  }
784
12.0M
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
785
12.0M
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
786
12.0M
  _cached_size_ = cached_size;
787
12.0M
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
788
12.0M
  return total_size;
789
12.0M
}
790
791
0
void TransactionStatePB::MergeFrom(const ::google::protobuf::Message& from) {
792
// @@protoc_insertion_point(generalized_merge_from_start:yb.tablet.TransactionStatePB)
793
0
  GOOGLE_DCHECK_NE(&from, this);
794
0
  const TransactionStatePB* source =
795
0
      ::google::protobuf::internal::DynamicCastToGenerated<const TransactionStatePB>(
796
0
          &from);
797
0
  if (source == NULL) {
798
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.tablet.TransactionStatePB)
799
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
800
0
  } else {
801
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.tablet.TransactionStatePB)
802
0
    MergeFrom(*source);
803
0
  }
804
0
}
805
806
633k
void TransactionStatePB::MergeFrom(const TransactionStatePB& from) {
807
// @@protoc_insertion_point(class_specific_merge_from_start:yb.tablet.TransactionStatePB)
808
633k
  GOOGLE_DCHECK_NE(&from, this);
809
633k
  _internal_metadata_.MergeFrom(from._internal_metadata_);
810
633k
  ::google::protobuf::uint32 cached_has_bits = 0;
811
633k
  (void) cached_has_bits;
812
813
633k
  tablets_.MergeFrom(from.tablets_);
814
633k
  tablet_batches_.MergeFrom(from.tablet_batches_);
815
633k
  cached_has_bits = from._has_bits_[0];
816
633k
  if (cached_has_bits & 31u) {
817
632k
    if (cached_has_bits & 0x00000001u) {
818
632k
      set_has_transaction_id();
819
632k
      transaction_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.transaction_id_);
820
632k
    }
821
632k
    if (cached_has_bits & 0x00000002u) {
822
245k
      mutable_aborted()->::yb::AbortedSubTransactionSetPB::MergeFrom(from.aborted());
823
245k
    }
824
632k
    if (cached_has_bits & 0x00000004u) {
825
245k
      commit_hybrid_time_ = from.commit_hybrid_time_;
826
245k
    }
827
632k
    if (cached_has_bits & 0x00000008u) {
828
245k
      sealed_ = from.sealed_;
829
245k
    }
830
633k
    if (cached_has_bits & 0x00000010u) {
831
633k
      status_ = from.status_;
832
633k
    }
833
632k
    _has_bits_[0] |= cached_has_bits;
834
632k
  }
835
633k
}
836
837
0
void TransactionStatePB::CopyFrom(const ::google::protobuf::Message& from) {
838
// @@protoc_insertion_point(generalized_copy_from_start:yb.tablet.TransactionStatePB)
839
0
  if (&from == this) return;
840
0
  Clear();
841
0
  MergeFrom(from);
842
0
}
843
844
634k
void TransactionStatePB::CopyFrom(const TransactionStatePB& from) {
845
// @@protoc_insertion_point(class_specific_copy_from_start:yb.tablet.TransactionStatePB)
846
634k
  if (&from == this) return;
847
634k
  Clear();
848
634k
  MergeFrom(from);
849
634k
}
850
851
0
bool TransactionStatePB::IsInitialized() const {
852
0
  return true;
853
0
}
854
855
240k
void TransactionStatePB::Swap(TransactionStatePB* other) {
856
240k
  if (other == this) return;
857
240k
  InternalSwap(other);
858
240k
}
859
240k
void TransactionStatePB::InternalSwap(TransactionStatePB* other) {
860
240k
  using std::swap;
861
240k
  tablets_.InternalSwap(&other->tablets_);
862
240k
  tablet_batches_.InternalSwap(&other->tablet_batches_);
863
240k
  transaction_id_.Swap(&other->transaction_id_);
864
240k
  swap(aborted_, other->aborted_);
865
240k
  swap(commit_hybrid_time_, other->commit_hybrid_time_);
866
240k
  swap(sealed_, other->sealed_);
867
240k
  swap(status_, other->status_);
868
240k
  swap(_has_bits_[0], other->_has_bits_[0]);
869
240k
  _internal_metadata_.Swap(&other->_internal_metadata_);
870
240k
  swap(_cached_size_, other->_cached_size_);
871
240k
}
872
873
7.88M
::google::protobuf::Metadata TransactionStatePB::GetMetadata() const {
874
7.88M
  protobuf_yb_2ftablet_2foperations_2eproto::protobuf_AssignDescriptorsOnce();
875
7.88M
  return ::protobuf_yb_2ftablet_2foperations_2eproto::file_level_metadata[kIndexInFileMessages];
876
7.88M
}
877
878
879
// ===================================================================
880
881
15.8k
void TruncatePB::InitAsDefaultInstance() {
882
15.8k
}
883
#if !defined(_MSC_VER) || _MSC_VER >= 1900
884
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
885
886
TruncatePB::TruncatePB()
887
175k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
888
158k
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
889
158k
    ::protobuf_yb_2ftablet_2foperations_2eproto::InitDefaultsTruncatePB();
890
158k
  }
891
175k
  SharedCtor();
892
  // @@protoc_insertion_point(constructor:yb.tablet.TruncatePB)
893
175k
}
894
TruncatePB::TruncatePB(const TruncatePB& from)
895
  : ::google::protobuf::Message(),
896
      _internal_metadata_(NULL),
897
      _has_bits_(from._has_bits_),
898
0
      _cached_size_(0) {
899
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
900
  // @@protoc_insertion_point(copy_constructor:yb.tablet.TruncatePB)
901
0
}
902
903
175k
void TruncatePB::SharedCtor() {
904
175k
  _cached_size_ = 0;
905
175k
}
906
907
159k
TruncatePB::~TruncatePB() {
908
  // @@protoc_insertion_point(destructor:yb.tablet.TruncatePB)
909
159k
  SharedDtor();
910
159k
}
911
912
159k
void TruncatePB::SharedDtor() {
913
159k
}
914
915
0
void TruncatePB::SetCachedSize(int size) const {
916
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
917
0
  _cached_size_ = size;
918
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
919
0
}
920
0
const ::google::protobuf::Descriptor* TruncatePB::descriptor() {
921
0
  ::protobuf_yb_2ftablet_2foperations_2eproto::protobuf_AssignDescriptorsOnce();
922
0
  return ::protobuf_yb_2ftablet_2foperations_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
923
0
}
924
925
0
const TruncatePB& TruncatePB::default_instance() {
926
0
  ::protobuf_yb_2ftablet_2foperations_2eproto::InitDefaultsTruncatePB();
927
0
  return *internal_default_instance();
928
0
}
929
930
0
TruncatePB* TruncatePB::New(::google::protobuf::Arena* arena) const {
931
0
  TruncatePB* n = new TruncatePB;
932
0
  if (arena != NULL) {
933
0
    arena->Own(n);
934
0
  }
935
0
  return n;
936
0
}
937
938
53.3k
void TruncatePB::Clear() {
939
// @@protoc_insertion_point(message_clear_start:yb.tablet.TruncatePB)
940
53.3k
  ::google::protobuf::uint32 cached_has_bits = 0;
941
  // Prevent compiler warnings about cached_has_bits being unused
942
53.3k
  (void) cached_has_bits;
943
944
53.3k
  _has_bits_.Clear();
945
53.3k
  _internal_metadata_.Clear();
946
53.3k
}
947
948
bool TruncatePB::MergePartialFromCodedStream(
949
106k
    ::google::protobuf::io::CodedInputStream* input) {
950
18.4E
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
951
106k
  ::google::protobuf::uint32 tag;
952
  // @@protoc_insertion_point(parse_start:yb.tablet.TruncatePB)
953
106k
  for (;;) {
954
106k
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
955
106k
    tag = p.first;
956
106k
    if (!p.second) goto handle_unusual;
957
105k
  handle_unusual:
958
105k
    if (tag == 0) {
959
105k
      goto success;
960
105k
    }
961
18.4E
    DO_(::google::protobuf::internal::WireFormat::SkipField(
962
18.4E
          input, tag, _internal_metadata_.mutable_unknown_fields()));
963
18.4E
  }
964
105k
success:
965
  // @@protoc_insertion_point(parse_success:yb.tablet.TruncatePB)
966
105k
  return true;
967
0
failure:
968
  // @@protoc_insertion_point(parse_failure:yb.tablet.TruncatePB)
969
0
  return false;
970
106k
#undef DO_
971
106k
}
972
973
void TruncatePB::SerializeWithCachedSizes(
974
0
    ::google::protobuf::io::CodedOutputStream* output) const {
975
  // @@protoc_insertion_point(serialize_start:yb.tablet.TruncatePB)
976
0
  ::google::protobuf::uint32 cached_has_bits = 0;
977
0
  (void) cached_has_bits;
978
979
0
  if (_internal_metadata_.have_unknown_fields()) {
980
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
981
0
        _internal_metadata_.unknown_fields(), output);
982
0
  }
983
  // @@protoc_insertion_point(serialize_end:yb.tablet.TruncatePB)
984
0
}
985
986
::google::protobuf::uint8* TruncatePB::InternalSerializeWithCachedSizesToArray(
987
265k
    bool deterministic, ::google::protobuf::uint8* target) const {
988
265k
  (void)deterministic; // Unused
989
  // @@protoc_insertion_point(serialize_to_array_start:yb.tablet.TruncatePB)
990
265k
  ::google::protobuf::uint32 cached_has_bits = 0;
991
265k
  (void) cached_has_bits;
992
993
265k
  if (_internal_metadata_.have_unknown_fields()) {
994
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
995
0
        _internal_metadata_.unknown_fields(), target);
996
0
  }
997
  // @@protoc_insertion_point(serialize_to_array_end:yb.tablet.TruncatePB)
998
265k
  return target;
999
265k
}
1000
1001
635k
size_t TruncatePB::ByteSizeLong() const {
1002
// @@protoc_insertion_point(message_byte_size_start:yb.tablet.TruncatePB)
1003
635k
  size_t total_size = 0;
1004
1005
635k
  if (_internal_metadata_.have_unknown_fields()) {
1006
0
    total_size +=
1007
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
1008
0
        _internal_metadata_.unknown_fields());
1009
0
  }
1010
635k
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
1011
635k
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1012
635k
  _cached_size_ = cached_size;
1013
635k
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
1014
635k
  return total_size;
1015
635k
}
1016
1017
0
void TruncatePB::MergeFrom(const ::google::protobuf::Message& from) {
1018
// @@protoc_insertion_point(generalized_merge_from_start:yb.tablet.TruncatePB)
1019
0
  GOOGLE_DCHECK_NE(&from, this);
1020
0
  const TruncatePB* source =
1021
0
      ::google::protobuf::internal::DynamicCastToGenerated<const TruncatePB>(
1022
0
          &from);
1023
0
  if (source == NULL) {
1024
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.tablet.TruncatePB)
1025
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
1026
0
  } else {
1027
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.tablet.TruncatePB)
1028
0
    MergeFrom(*source);
1029
0
  }
1030
0
}
1031
1032
53.3k
void TruncatePB::MergeFrom(const TruncatePB& from) {
1033
// @@protoc_insertion_point(class_specific_merge_from_start:yb.tablet.TruncatePB)
1034
53.3k
  GOOGLE_DCHECK_NE(&from, this);
1035
53.3k
  _internal_metadata_.MergeFrom(from._internal_metadata_);
1036
53.3k
  ::google::protobuf::uint32 cached_has_bits = 0;
1037
53.3k
  (void) cached_has_bits;
1038
1039
53.3k
}
1040
1041
0
void TruncatePB::CopyFrom(const ::google::protobuf::Message& from) {
1042
// @@protoc_insertion_point(generalized_copy_from_start:yb.tablet.TruncatePB)
1043
0
  if (&from == this) return;
1044
0
  Clear();
1045
0
  MergeFrom(from);
1046
0
}
1047
1048
53.3k
void TruncatePB::CopyFrom(const TruncatePB& from) {
1049
// @@protoc_insertion_point(class_specific_copy_from_start:yb.tablet.TruncatePB)
1050
53.3k
  if (&from == this) return;
1051
53.3k
  Clear();
1052
53.3k
  MergeFrom(from);
1053
53.3k
}
1054
1055
0
bool TruncatePB::IsInitialized() const {
1056
0
  return true;
1057
0
}
1058
1059
0
void TruncatePB::Swap(TruncatePB* other) {
1060
0
  if (other == this) return;
1061
0
  InternalSwap(other);
1062
0
}
1063
0
void TruncatePB::InternalSwap(TruncatePB* other) {
1064
0
  using std::swap;
1065
0
  swap(_has_bits_[0], other->_has_bits_[0]);
1066
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
1067
0
  swap(_cached_size_, other->_cached_size_);
1068
0
}
1069
1070
424k
::google::protobuf::Metadata TruncatePB::GetMetadata() const {
1071
424k
  protobuf_yb_2ftablet_2foperations_2eproto::protobuf_AssignDescriptorsOnce();
1072
424k
  return ::protobuf_yb_2ftablet_2foperations_2eproto::file_level_metadata[kIndexInFileMessages];
1073
424k
}
1074
1075
1076
// ===================================================================
1077
1078
15.8k
void WritePB::InitAsDefaultInstance() {
1079
15.8k
  ::yb::tablet::_WritePB_default_instance_._instance.get_mutable()->write_batch_ = const_cast< ::yb::docdb::KeyValueWriteBatchPB*>(
1080
15.8k
      ::yb::docdb::KeyValueWriteBatchPB::internal_default_instance());
1081
15.8k
}
1082
0
void WritePB::clear_write_batch() {
1083
0
  if (write_batch_ != NULL) write_batch_->Clear();
1084
0
  clear_has_write_batch();
1085
0
}
1086
#if !defined(_MSC_VER) || _MSC_VER >= 1900
1087
const int WritePB::kUnusedTabletIdFieldNumber;
1088
const int WritePB::kWriteBatchFieldNumber;
1089
const int WritePB::kClientId1FieldNumber;
1090
const int WritePB::kClientId2FieldNumber;
1091
const int WritePB::kRequestIdFieldNumber;
1092
const int WritePB::kMinRunningRequestIdFieldNumber;
1093
const int WritePB::kExternalHybridTimeFieldNumber;
1094
const int WritePB::kBatchIdxFieldNumber;
1095
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
1096
1097
WritePB::WritePB()
1098
6.73M
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
1099
6.71M
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
1100
6.71M
    ::protobuf_yb_2ftablet_2foperations_2eproto::InitDefaultsWritePB();
1101
6.71M
  }
1102
6.73M
  SharedCtor();
1103
  // @@protoc_insertion_point(constructor:yb.tablet.WritePB)
1104
6.73M
}
1105
WritePB::WritePB(const WritePB& from)
1106
  : ::google::protobuf::Message(),
1107
      _internal_metadata_(NULL),
1108
      _has_bits_(from._has_bits_),
1109
90
      _cached_size_(0) {
1110
90
  _internal_metadata_.MergeFrom(from._internal_metadata_);
1111
90
  unused_tablet_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1112
90
  if (from.has_unused_tablet_id()) {
1113
90
    unused_tablet_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.unused_tablet_id_);
1114
90
  }
1115
90
  if (from.has_write_batch()) {
1116
90
    write_batch_ = new ::yb::docdb::KeyValueWriteBatchPB(*from.write_batch_);
1117
0
  } else {
1118
0
    write_batch_ = NULL;
1119
0
  }
1120
90
  ::memcpy(&client_id1_, &from.client_id1_,
1121
90
    static_cast<size_t>(reinterpret_cast<char*>(&batch_idx_) -
1122
90
    reinterpret_cast<char*>(&client_id1_)) + sizeof(batch_idx_));
1123
  // @@protoc_insertion_point(copy_constructor:yb.tablet.WritePB)
1124
90
}
1125
1126
6.72M
void WritePB::SharedCtor() {
1127
6.72M
  _cached_size_ = 0;
1128
6.72M
  unused_tablet_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1129
6.72M
  ::memset(&write_batch_, 0, static_cast<size_t>(
1130
6.72M
      reinterpret_cast<char*>(&batch_idx_) -
1131
6.72M
      reinterpret_cast<char*>(&write_batch_)) + sizeof(batch_idx_));
1132
6.72M
}
1133
1134
6.71M
WritePB::~WritePB() {
1135
  // @@protoc_insertion_point(destructor:yb.tablet.WritePB)
1136
6.71M
  SharedDtor();
1137
6.71M
}
1138
1139
6.71M
void WritePB::SharedDtor() {
1140
6.71M
  unused_tablet_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1141
6.71M
  if (this != internal_default_instance()) delete write_batch_;
1142
6.71M
}
1143
1144
0
void WritePB::SetCachedSize(int size) const {
1145
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1146
0
  _cached_size_ = size;
1147
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
1148
0
}
1149
0
const ::google::protobuf::Descriptor* WritePB::descriptor() {
1150
0
  ::protobuf_yb_2ftablet_2foperations_2eproto::protobuf_AssignDescriptorsOnce();
1151
0
  return ::protobuf_yb_2ftablet_2foperations_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
1152
0
}
1153
1154
0
const WritePB& WritePB::default_instance() {
1155
0
  ::protobuf_yb_2ftablet_2foperations_2eproto::InitDefaultsWritePB();
1156
0
  return *internal_default_instance();
1157
0
}
1158
1159
0
WritePB* WritePB::New(::google::protobuf::Arena* arena) const {
1160
0
  WritePB* n = new WritePB;
1161
0
  if (arena != NULL) {
1162
0
    arena->Own(n);
1163
0
  }
1164
0
  return n;
1165
0
}
1166
1167
712
void WritePB::Clear() {
1168
// @@protoc_insertion_point(message_clear_start:yb.tablet.WritePB)
1169
712
  ::google::protobuf::uint32 cached_has_bits = 0;
1170
  // Prevent compiler warnings about cached_has_bits being unused
1171
712
  (void) cached_has_bits;
1172
1173
712
  cached_has_bits = _has_bits_[0];
1174
712
  if (cached_has_bits & 3u) {
1175
712
    if (cached_has_bits & 0x00000001u) {
1176
506
      GOOGLE_DCHECK(!unused_tablet_id_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
1177
506
      (*unused_tablet_id_.UnsafeRawStringPointer())->clear();
1178
506
    }
1179
712
    if (cached_has_bits & 0x00000002u) {
1180
712
      GOOGLE_DCHECK(write_batch_ != NULL);
1181
712
      write_batch_->Clear();
1182
712
    }
1183
712
  }
1184
712
  if (cached_has_bits & 252u) {
1185
506
    ::memset(&client_id1_, 0, static_cast<size_t>(
1186
506
        reinterpret_cast<char*>(&batch_idx_) -
1187
506
        reinterpret_cast<char*>(&client_id1_)) + sizeof(batch_idx_));
1188
506
  }
1189
712
  _has_bits_.Clear();
1190
712
  _internal_metadata_.Clear();
1191
712
}
1192
1193
bool WritePB::MergePartialFromCodedStream(
1194
4.37M
    ::google::protobuf::io::CodedInputStream* input) {
1195
25.9M
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
1196
4.37M
  ::google::protobuf::uint32 tag;
1197
  // @@protoc_insertion_point(parse_start:yb.tablet.WritePB)
1198
30.2M
  for (;;) {
1199
30.2M
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u);
1200
30.2M
    tag = p.first;
1201
30.2M
    if (!p.second) goto handle_unusual;
1202
25.9M
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
1203
      // optional bytes unused_tablet_id = 1;
1204
3.96M
      case 1: {
1205
3.96M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1206
3.96M
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
1207
3.96M
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
1208
3.96M
                input, this->mutable_unused_tablet_id()));
1209
18.4E
        } else {
1210
18.4E
          goto handle_unusual;
1211
18.4E
        }
1212
3.96M
        break;
1213
3.96M
      }
1214
1215
      // optional .yb.docdb.KeyValueWriteBatchPB write_batch = 7;
1216
4.31M
      case 7: {
1217
4.31M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1218
4.31M
            static_cast< ::google::protobuf::uint8>(58u /* 58 & 0xFF */)) {
1219
4.31M
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
1220
4.31M
               input, mutable_write_batch()));
1221
18.4E
        } else {
1222
18.4E
          goto handle_unusual;
1223
18.4E
        }
1224
4.31M
        break;
1225
4.31M
      }
1226
1227
      // optional fixed64 client_id1 = 14;
1228
3.42M
      case 14: {
1229
3.42M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1230
3.42M
            static_cast< ::google::protobuf::uint8>(113u /* 113 & 0xFF */)) {
1231
3.42M
          set_has_client_id1();
1232
3.42M
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1233
3.42M
                   ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED64>(
1234
3.42M
                 input, &client_id1_)));
1235
18.4E
        } else {
1236
18.4E
          goto handle_unusual;
1237
18.4E
        }
1238
3.42M
        break;
1239
3.42M
      }
1240
1241
      // optional fixed64 client_id2 = 15;
1242
3.42M
      case 15: {
1243
3.42M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1244
3.42M
            static_cast< ::google::protobuf::uint8>(121u /* 121 & 0xFF */)) {
1245
3.42M
          set_has_client_id2();
1246
3.42M
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1247
3.42M
                   ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED64>(
1248
3.42M
                 input, &client_id2_)));
1249
6
        } else {
1250
6
          goto handle_unusual;
1251
6
        }
1252
3.42M
        break;
1253
3.42M
      }
1254
1255
      // optional int64 request_id = 16;
1256
3.42M
      case 16: {
1257
3.42M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1258
3.42M
            static_cast< ::google::protobuf::uint8>(128u /* 128 & 0xFF */)) {
1259
3.42M
          set_has_request_id();
1260
3.42M
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1261
3.42M
                   ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
1262
3.42M
                 input, &request_id_)));
1263
18.4E
        } else {
1264
18.4E
          goto handle_unusual;
1265
18.4E
        }
1266
3.42M
        break;
1267
3.42M
      }
1268
1269
      // optional int64 min_running_request_id = 17;
1270
3.42M
      case 17: {
1271
3.42M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1272
3.42M
            static_cast< ::google::protobuf::uint8>(136u /* 136 & 0xFF */)) {
1273
3.42M
          set_has_min_running_request_id();
1274
3.42M
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1275
3.42M
                   ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
1276
3.42M
                 input, &min_running_request_id_)));
1277
18.4E
        } else {
1278
18.4E
          goto handle_unusual;
1279
18.4E
        }
1280
3.42M
        break;
1281
3.42M
      }
1282
1283
      // optional fixed64 external_hybrid_time = 19;
1284
2.21k
      case 19: {
1285
2.21k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1286
2.22k
            static_cast< ::google::protobuf::uint8>(153u /* 153 & 0xFF */)) {
1287
2.22k
          set_has_external_hybrid_time();
1288
2.22k
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1289
2.22k
                   ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED64>(
1290
2.22k
                 input, &external_hybrid_time_)));
1291
18.4E
        } else {
1292
18.4E
          goto handle_unusual;
1293
18.4E
        }
1294
2.22k
        break;
1295
2.22k
      }
1296
1297
      // optional uint64 batch_idx = 20;
1298
3.96M
      case 20: {
1299
3.96M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1300
3.96M
            static_cast< ::google::protobuf::uint8>(160u /* 160 & 0xFF */)) {
1301
3.96M
          set_has_batch_idx();
1302
3.96M
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1303
3.96M
                   ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
1304
3.96M
                 input, &batch_idx_)));
1305
18.4E
        } else {
1306
18.4E
          goto handle_unusual;
1307
18.4E
        }
1308
3.96M
        break;
1309
4.37M
      }
1310
1311
0
      default: {
1312
4.37M
      handle_unusual:
1313
4.37M
        if (tag == 0) {
1314
4.37M
          goto success;
1315
4.37M
        }
1316
18.4E
        DO_(::google::protobuf::internal::WireFormat::SkipField(
1317
18.4E
              input, tag, _internal_metadata_.mutable_unknown_fields()));
1318
18.4E
        break;
1319
18.4E
      }
1320
25.9M
    }
1321
25.9M
  }
1322
4.37M
success:
1323
  // @@protoc_insertion_point(parse_success:yb.tablet.WritePB)
1324
4.37M
  return true;
1325
0
failure:
1326
  // @@protoc_insertion_point(parse_failure:yb.tablet.WritePB)
1327
0
  return false;
1328
4.37M
#undef DO_
1329
4.37M
}
1330
1331
void WritePB::SerializeWithCachedSizes(
1332
0
    ::google::protobuf::io::CodedOutputStream* output) const {
1333
  // @@protoc_insertion_point(serialize_start:yb.tablet.WritePB)
1334
0
  ::google::protobuf::uint32 cached_has_bits = 0;
1335
0
  (void) cached_has_bits;
1336
1337
0
  cached_has_bits = _has_bits_[0];
1338
  // optional bytes unused_tablet_id = 1;
1339
0
  if (cached_has_bits & 0x00000001u) {
1340
0
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
1341
0
      1, this->unused_tablet_id(), output);
1342
0
  }
1343
1344
  // optional .yb.docdb.KeyValueWriteBatchPB write_batch = 7;
1345
0
  if (cached_has_bits & 0x00000002u) {
1346
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1347
0
      7, *this->write_batch_, output);
1348
0
  }
1349
1350
  // optional fixed64 client_id1 = 14;
1351
0
  if (cached_has_bits & 0x00000004u) {
1352
0
    ::google::protobuf::internal::WireFormatLite::WriteFixed64(14, this->client_id1(), output);
1353
0
  }
1354
1355
  // optional fixed64 client_id2 = 15;
1356
0
  if (cached_has_bits & 0x00000008u) {
1357
0
    ::google::protobuf::internal::WireFormatLite::WriteFixed64(15, this->client_id2(), output);
1358
0
  }
1359
1360
  // optional int64 request_id = 16;
1361
0
  if (cached_has_bits & 0x00000010u) {
1362
0
    ::google::protobuf::internal::WireFormatLite::WriteInt64(16, this->request_id(), output);
1363
0
  }
1364
1365
  // optional int64 min_running_request_id = 17;
1366
0
  if (cached_has_bits & 0x00000020u) {
1367
0
    ::google::protobuf::internal::WireFormatLite::WriteInt64(17, this->min_running_request_id(), output);
1368
0
  }
1369
1370
  // optional fixed64 external_hybrid_time = 19;
1371
0
  if (cached_has_bits & 0x00000040u) {
1372
0
    ::google::protobuf::internal::WireFormatLite::WriteFixed64(19, this->external_hybrid_time(), output);
1373
0
  }
1374
1375
  // optional uint64 batch_idx = 20;
1376
0
  if (cached_has_bits & 0x00000080u) {
1377
0
    ::google::protobuf::internal::WireFormatLite::WriteUInt64(20, this->batch_idx(), output);
1378
0
  }
1379
1380
0
  if (_internal_metadata_.have_unknown_fields()) {
1381
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
1382
0
        _internal_metadata_.unknown_fields(), output);
1383
0
  }
1384
  // @@protoc_insertion_point(serialize_end:yb.tablet.WritePB)
1385
0
}
1386
1387
::google::protobuf::uint8* WritePB::InternalSerializeWithCachedSizesToArray(
1388
8.02M
    bool deterministic, ::google::protobuf::uint8* target) const {
1389
8.02M
  (void)deterministic; // Unused
1390
  // @@protoc_insertion_point(serialize_to_array_start:yb.tablet.WritePB)
1391
8.02M
  ::google::protobuf::uint32 cached_has_bits = 0;
1392
8.02M
  (void) cached_has_bits;
1393
1394
8.02M
  cached_has_bits = _has_bits_[0];
1395
  // optional bytes unused_tablet_id = 1;
1396
8.02M
  if (cached_has_bits & 0x00000001u) {
1397
7.42M
    target =
1398
7.42M
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
1399
7.42M
        1, this->unused_tablet_id(), target);
1400
7.42M
  }
1401
1402
  // optional .yb.docdb.KeyValueWriteBatchPB write_batch = 7;
1403
8.02M
  if (cached_has_bits & 0x00000002u) {
1404
7.94M
    target = ::google::protobuf::internal::WireFormatLite::
1405
7.94M
      InternalWriteMessageToArray(
1406
7.94M
        7, *this->write_batch_, deterministic, target);
1407
7.94M
  }
1408
1409
  // optional fixed64 client_id1 = 14;
1410
8.02M
  if (cached_has_bits & 0x00000004u) {
1411
6.10M
    target = ::google::protobuf::internal::WireFormatLite::WriteFixed64ToArray(14, this->client_id1(), target);
1412
6.10M
  }
1413
1414
  // optional fixed64 client_id2 = 15;
1415
8.02M
  if (cached_has_bits & 0x00000008u) {
1416
6.10M
    target = ::google::protobuf::internal::WireFormatLite::WriteFixed64ToArray(15, this->client_id2(), target);
1417
6.10M
  }
1418
1419
  // optional int64 request_id = 16;
1420
8.02M
  if (cached_has_bits & 0x00000010u) {
1421
6.10M
    target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(16, this->request_id(), target);
1422
6.10M
  }
1423
1424
  // optional int64 min_running_request_id = 17;
1425
8.02M
  if (cached_has_bits & 0x00000020u) {
1426
6.10M
    target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(17, this->min_running_request_id(), target);
1427
6.10M
  }
1428
1429
  // optional fixed64 external_hybrid_time = 19;
1430
8.02M
  if (cached_has_bits & 0x00000040u) {
1431
5.60k
    target = ::google::protobuf::internal::WireFormatLite::WriteFixed64ToArray(19, this->external_hybrid_time(), target);
1432
5.60k
  }
1433
1434
  // optional uint64 batch_idx = 20;
1435
8.02M
  if (cached_has_bits & 0x00000080u) {
1436
7.43M
    target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(20, this->batch_idx(), target);
1437
7.43M
  }
1438
1439
8.02M
  if (_internal_metadata_.have_unknown_fields()) {
1440
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
1441
0
        _internal_metadata_.unknown_fields(), target);
1442
0
  }
1443
  // @@protoc_insertion_point(serialize_to_array_end:yb.tablet.WritePB)
1444
8.02M
  return target;
1445
8.02M
}
1446
1447
19.0M
size_t WritePB::ByteSizeLong() const {
1448
// @@protoc_insertion_point(message_byte_size_start:yb.tablet.WritePB)
1449
19.0M
  size_t total_size = 0;
1450
1451
19.0M
  if (_internal_metadata_.have_unknown_fields()) {
1452
0
    total_size +=
1453
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
1454
0
        _internal_metadata_.unknown_fields());
1455
0
  }
1456
19.0M
  if (_has_bits_[0 / 32] & 255u) {
1457
    // optional bytes unused_tablet_id = 1;
1458
18.8M
    if (has_unused_tablet_id()) {
1459
17.8M
      total_size += 1 +
1460
17.8M
        ::google::protobuf::internal::WireFormatLite::BytesSize(
1461
17.8M
          this->unused_tablet_id());
1462
17.8M
    }
1463
1464
    // optional .yb.docdb.KeyValueWriteBatchPB write_batch = 7;
1465
18.8M
    if (has_write_batch()) {
1466
18.8M
      total_size += 1 +
1467
18.8M
        ::google::protobuf::internal::WireFormatLite::MessageSize(
1468
18.8M
          *this->write_batch_);
1469
18.8M
    }
1470
1471
    // optional fixed64 client_id1 = 14;
1472
18.8M
    if (has_client_id1()) {
1473
14.6M
      total_size += 1 + 8;
1474
14.6M
    }
1475
1476
    // optional fixed64 client_id2 = 15;
1477
18.8M
    if (has_client_id2()) {
1478
14.6M
      total_size += 1 + 8;
1479
14.6M
    }
1480
1481
    // optional int64 request_id = 16;
1482
18.8M
    if (has_request_id()) {
1483
14.6M
      total_size += 2 +
1484
14.6M
        ::google::protobuf::internal::WireFormatLite::Int64Size(
1485
14.6M
          this->request_id());
1486
14.6M
    }
1487
1488
    // optional int64 min_running_request_id = 17;
1489
18.8M
    if (has_min_running_request_id()) {
1490
14.6M
      total_size += 2 +
1491
14.6M
        ::google::protobuf::internal::WireFormatLite::Int64Size(
1492
14.6M
          this->min_running_request_id());
1493
14.6M
    }
1494
1495
    // optional fixed64 external_hybrid_time = 19;
1496
18.8M
    if (has_external_hybrid_time()) {
1497
13.4k
      total_size += 2 + 8;
1498
13.4k
    }
1499
1500
    // optional uint64 batch_idx = 20;
1501
18.8M
    if (has_batch_idx()) {
1502
17.8M
      total_size += 2 +
1503
17.8M
        ::google::protobuf::internal::WireFormatLite::UInt64Size(
1504
17.8M
          this->batch_idx());
1505
17.8M
    }
1506
1507
18.8M
  }
1508
19.0M
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
1509
19.0M
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1510
19.0M
  _cached_size_ = cached_size;
1511
19.0M
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
1512
19.0M
  return total_size;
1513
19.0M
}
1514
1515
0
void WritePB::MergeFrom(const ::google::protobuf::Message& from) {
1516
// @@protoc_insertion_point(generalized_merge_from_start:yb.tablet.WritePB)
1517
0
  GOOGLE_DCHECK_NE(&from, this);
1518
0
  const WritePB* source =
1519
0
      ::google::protobuf::internal::DynamicCastToGenerated<const WritePB>(
1520
0
          &from);
1521
0
  if (source == NULL) {
1522
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.tablet.WritePB)
1523
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
1524
0
  } else {
1525
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.tablet.WritePB)
1526
0
    MergeFrom(*source);
1527
0
  }
1528
0
}
1529
1530
0
void WritePB::MergeFrom(const WritePB& from) {
1531
// @@protoc_insertion_point(class_specific_merge_from_start:yb.tablet.WritePB)
1532
0
  GOOGLE_DCHECK_NE(&from, this);
1533
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
1534
0
  ::google::protobuf::uint32 cached_has_bits = 0;
1535
0
  (void) cached_has_bits;
1536
1537
0
  cached_has_bits = from._has_bits_[0];
1538
0
  if (cached_has_bits & 255u) {
1539
0
    if (cached_has_bits & 0x00000001u) {
1540
0
      set_has_unused_tablet_id();
1541
0
      unused_tablet_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.unused_tablet_id_);
1542
0
    }
1543
0
    if (cached_has_bits & 0x00000002u) {
1544
0
      mutable_write_batch()->::yb::docdb::KeyValueWriteBatchPB::MergeFrom(from.write_batch());
1545
0
    }
1546
0
    if (cached_has_bits & 0x00000004u) {
1547
0
      client_id1_ = from.client_id1_;
1548
0
    }
1549
0
    if (cached_has_bits & 0x00000008u) {
1550
0
      client_id2_ = from.client_id2_;
1551
0
    }
1552
0
    if (cached_has_bits & 0x00000010u) {
1553
0
      request_id_ = from.request_id_;
1554
0
    }
1555
0
    if (cached_has_bits & 0x00000020u) {
1556
0
      min_running_request_id_ = from.min_running_request_id_;
1557
0
    }
1558
0
    if (cached_has_bits & 0x00000040u) {
1559
0
      external_hybrid_time_ = from.external_hybrid_time_;
1560
0
    }
1561
0
    if (cached_has_bits & 0x00000080u) {
1562
0
      batch_idx_ = from.batch_idx_;
1563
0
    }
1564
0
    _has_bits_[0] |= cached_has_bits;
1565
0
  }
1566
0
}
1567
1568
0
void WritePB::CopyFrom(const ::google::protobuf::Message& from) {
1569
// @@protoc_insertion_point(generalized_copy_from_start:yb.tablet.WritePB)
1570
0
  if (&from == this) return;
1571
0
  Clear();
1572
0
  MergeFrom(from);
1573
0
}
1574
1575
0
void WritePB::CopyFrom(const WritePB& from) {
1576
// @@protoc_insertion_point(class_specific_copy_from_start:yb.tablet.WritePB)
1577
0
  if (&from == this) return;
1578
0
  Clear();
1579
0
  MergeFrom(from);
1580
0
}
1581
1582
0
bool WritePB::IsInitialized() const {
1583
0
  return true;
1584
0
}
1585
1586
0
void WritePB::Swap(WritePB* other) {
1587
0
  if (other == this) return;
1588
0
  InternalSwap(other);
1589
0
}
1590
0
void WritePB::InternalSwap(WritePB* other) {
1591
0
  using std::swap;
1592
0
  unused_tablet_id_.Swap(&other->unused_tablet_id_);
1593
0
  swap(write_batch_, other->write_batch_);
1594
0
  swap(client_id1_, other->client_id1_);
1595
0
  swap(client_id2_, other->client_id2_);
1596
0
  swap(request_id_, other->request_id_);
1597
0
  swap(min_running_request_id_, other->min_running_request_id_);
1598
0
  swap(external_hybrid_time_, other->external_hybrid_time_);
1599
0
  swap(batch_idx_, other->batch_idx_);
1600
0
  swap(_has_bits_[0], other->_has_bits_[0]);
1601
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
1602
0
  swap(_cached_size_, other->_cached_size_);
1603
0
}
1604
1605
11.9M
::google::protobuf::Metadata WritePB::GetMetadata() const {
1606
11.9M
  protobuf_yb_2ftablet_2foperations_2eproto::protobuf_AssignDescriptorsOnce();
1607
11.9M
  return ::protobuf_yb_2ftablet_2foperations_2eproto::file_level_metadata[kIndexInFileMessages];
1608
11.9M
}
1609
1610
1611
// ===================================================================
1612
1613
15.8k
void ChangeMetadataRequestPB::InitAsDefaultInstance() {
1614
15.8k
  ::yb::tablet::_ChangeMetadataRequestPB_default_instance_._instance.get_mutable()->schema_ = const_cast< ::yb::SchemaPB*>(
1615
15.8k
      ::yb::SchemaPB::internal_default_instance());
1616
15.8k
  ::yb::tablet::_ChangeMetadataRequestPB_default_instance_._instance.get_mutable()->add_table_ = const_cast< ::yb::tablet::TableInfoPB*>(
1617
15.8k
      ::yb::tablet::TableInfoPB::internal_default_instance());
1618
15.8k
}
1619
0
void ChangeMetadataRequestPB::clear_schema() {
1620
0
  if (schema_ != NULL) schema_->Clear();
1621
0
  clear_has_schema();
1622
0
}
1623
0
void ChangeMetadataRequestPB::clear_indexes() {
1624
0
  indexes_.Clear();
1625
0
}
1626
0
void ChangeMetadataRequestPB::clear_add_table() {
1627
0
  if (add_table_ != NULL) add_table_->Clear();
1628
0
  clear_has_add_table();
1629
0
}
1630
#if !defined(_MSC_VER) || _MSC_VER >= 1900
1631
const int ChangeMetadataRequestPB::kDestUuidFieldNumber;
1632
const int ChangeMetadataRequestPB::kTabletIdFieldNumber;
1633
const int ChangeMetadataRequestPB::kSchemaFieldNumber;
1634
const int ChangeMetadataRequestPB::kIndexesFieldNumber;
1635
const int ChangeMetadataRequestPB::kSchemaVersionFieldNumber;
1636
const int ChangeMetadataRequestPB::kNewTableNameFieldNumber;
1637
const int ChangeMetadataRequestPB::kPropagatedHybridTimeFieldNumber;
1638
const int ChangeMetadataRequestPB::kAddTableFieldNumber;
1639
const int ChangeMetadataRequestPB::kWalRetentionSecsFieldNumber;
1640
const int ChangeMetadataRequestPB::kRemoveTableIdFieldNumber;
1641
const int ChangeMetadataRequestPB::kMarkBackfillDoneFieldNumber;
1642
const int ChangeMetadataRequestPB::kAlterTableIdFieldNumber;
1643
const int ChangeMetadataRequestPB::kBackfillDoneTableIdFieldNumber;
1644
const int ChangeMetadataRequestPB::kTransactionIdFieldNumber;
1645
const int ChangeMetadataRequestPB::kShouldAbortActiveTxnsFieldNumber;
1646
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
1647
1648
ChangeMetadataRequestPB::ChangeMetadataRequestPB()
1649
810k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
1650
794k
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
1651
794k
    ::protobuf_yb_2ftablet_2foperations_2eproto::InitDefaultsChangeMetadataRequestPB();
1652
794k
  }
1653
810k
  SharedCtor();
1654
  // @@protoc_insertion_point(constructor:yb.tablet.ChangeMetadataRequestPB)
1655
810k
}
1656
ChangeMetadataRequestPB::ChangeMetadataRequestPB(const ChangeMetadataRequestPB& from)
1657
  : ::google::protobuf::Message(),
1658
      _internal_metadata_(NULL),
1659
      _has_bits_(from._has_bits_),
1660
      _cached_size_(0),
1661
0
      indexes_(from.indexes_) {
1662
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
1663
0
  tablet_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1664
0
  if (from.has_tablet_id()) {
1665
0
    tablet_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.tablet_id_);
1666
0
  }
1667
0
  new_table_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1668
0
  if (from.has_new_table_name()) {
1669
0
    new_table_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.new_table_name_);
1670
0
  }
1671
0
  dest_uuid_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1672
0
  if (from.has_dest_uuid()) {
1673
0
    dest_uuid_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.dest_uuid_);
1674
0
  }
1675
0
  remove_table_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1676
0
  if (from.has_remove_table_id()) {
1677
0
    remove_table_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.remove_table_id_);
1678
0
  }
1679
0
  alter_table_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1680
0
  if (from.has_alter_table_id()) {
1681
0
    alter_table_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.alter_table_id_);
1682
0
  }
1683
0
  backfill_done_table_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1684
0
  if (from.has_backfill_done_table_id()) {
1685
0
    backfill_done_table_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.backfill_done_table_id_);
1686
0
  }
1687
0
  transaction_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1688
0
  if (from.has_transaction_id()) {
1689
0
    transaction_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.transaction_id_);
1690
0
  }
1691
0
  if (from.has_schema()) {
1692
0
    schema_ = new ::yb::SchemaPB(*from.schema_);
1693
0
  } else {
1694
0
    schema_ = NULL;
1695
0
  }
1696
0
  if (from.has_add_table()) {
1697
0
    add_table_ = new ::yb::tablet::TableInfoPB(*from.add_table_);
1698
0
  } else {
1699
0
    add_table_ = NULL;
1700
0
  }
1701
0
  ::memcpy(&propagated_hybrid_time_, &from.propagated_hybrid_time_,
1702
0
    static_cast<size_t>(reinterpret_cast<char*>(&should_abort_active_txns_) -
1703
0
    reinterpret_cast<char*>(&propagated_hybrid_time_)) + sizeof(should_abort_active_txns_));
1704
  // @@protoc_insertion_point(copy_constructor:yb.tablet.ChangeMetadataRequestPB)
1705
0
}
1706
1707
810k
void ChangeMetadataRequestPB::SharedCtor() {
1708
810k
  _cached_size_ = 0;
1709
810k
  tablet_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1710
810k
  new_table_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1711
810k
  dest_uuid_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1712
810k
  remove_table_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1713
810k
  alter_table_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1714
810k
  backfill_done_table_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1715
810k
  transaction_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1716
810k
  ::memset(&schema_, 0, static_cast<size_t>(
1717
810k
      reinterpret_cast<char*>(&should_abort_active_txns_) -
1718
810k
      reinterpret_cast<char*>(&schema_)) + sizeof(should_abort_active_txns_));
1719
810k
}
1720
1721
792k
ChangeMetadataRequestPB::~ChangeMetadataRequestPB() {
1722
  // @@protoc_insertion_point(destructor:yb.tablet.ChangeMetadataRequestPB)
1723
792k
  SharedDtor();
1724
792k
}
1725
1726
792k
void ChangeMetadataRequestPB::SharedDtor() {
1727
792k
  tablet_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1728
792k
  new_table_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1729
792k
  dest_uuid_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1730
792k
  remove_table_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1731
792k
  alter_table_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1732
792k
  backfill_done_table_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1733
792k
  transaction_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1734
792k
  if (this != internal_default_instance()) delete schema_;
1735
792k
  if (this != internal_default_instance()) delete add_table_;
1736
792k
}
1737
1738
0
void ChangeMetadataRequestPB::SetCachedSize(int size) const {
1739
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1740
0
  _cached_size_ = size;
1741
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
1742
0
}
1743
0
const ::google::protobuf::Descriptor* ChangeMetadataRequestPB::descriptor() {
1744
0
  ::protobuf_yb_2ftablet_2foperations_2eproto::protobuf_AssignDescriptorsOnce();
1745
0
  return ::protobuf_yb_2ftablet_2foperations_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
1746
0
}
1747
1748
0
const ChangeMetadataRequestPB& ChangeMetadataRequestPB::default_instance() {
1749
0
  ::protobuf_yb_2ftablet_2foperations_2eproto::InitDefaultsChangeMetadataRequestPB();
1750
0
  return *internal_default_instance();
1751
0
}
1752
1753
0
ChangeMetadataRequestPB* ChangeMetadataRequestPB::New(::google::protobuf::Arena* arena) const {
1754
0
  ChangeMetadataRequestPB* n = new ChangeMetadataRequestPB;
1755
0
  if (arena != NULL) {
1756
0
    arena->Own(n);
1757
0
  }
1758
0
  return n;
1759
0
}
1760
1761
245k
void ChangeMetadataRequestPB::Clear() {
1762
// @@protoc_insertion_point(message_clear_start:yb.tablet.ChangeMetadataRequestPB)
1763
245k
  ::google::protobuf::uint32 cached_has_bits = 0;
1764
  // Prevent compiler warnings about cached_has_bits being unused
1765
245k
  (void) cached_has_bits;
1766
1767
245k
  indexes_.Clear();
1768
245k
  cached_has_bits = _has_bits_[0];
1769
245k
  if (cached_has_bits & 255u) {
1770
0
    if (cached_has_bits & 0x00000001u) {
1771
0
      GOOGLE_DCHECK(!tablet_id_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
1772
0
      (*tablet_id_.UnsafeRawStringPointer())->clear();
1773
0
    }
1774
0
    if (cached_has_bits & 0x00000002u) {
1775
0
      GOOGLE_DCHECK(!new_table_name_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
1776
0
      (*new_table_name_.UnsafeRawStringPointer())->clear();
1777
0
    }
1778
0
    if (cached_has_bits & 0x00000004u) {
1779
0
      GOOGLE_DCHECK(!dest_uuid_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
1780
0
      (*dest_uuid_.UnsafeRawStringPointer())->clear();
1781
0
    }
1782
0
    if (cached_has_bits & 0x00000008u) {
1783
0
      GOOGLE_DCHECK(!remove_table_id_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
1784
0
      (*remove_table_id_.UnsafeRawStringPointer())->clear();
1785
0
    }
1786
0
    if (cached_has_bits & 0x00000010u) {
1787
0
      GOOGLE_DCHECK(!alter_table_id_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
1788
0
      (*alter_table_id_.UnsafeRawStringPointer())->clear();
1789
0
    }
1790
0
    if (cached_has_bits & 0x00000020u) {
1791
0
      GOOGLE_DCHECK(!backfill_done_table_id_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
1792
0
      (*backfill_done_table_id_.UnsafeRawStringPointer())->clear();
1793
0
    }
1794
0
    if (cached_has_bits & 0x00000040u) {
1795
0
      GOOGLE_DCHECK(!transaction_id_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
1796
0
      (*transaction_id_.UnsafeRawStringPointer())->clear();
1797
0
    }
1798
0
    if (cached_has_bits & 0x00000080u) {
1799
0
      GOOGLE_DCHECK(schema_ != NULL);
1800
0
      schema_->Clear();
1801
0
    }
1802
0
  }
1803
245k
  if (cached_has_bits & 0x00000100u) {
1804
0
    GOOGLE_DCHECK(add_table_ != NULL);
1805
0
    add_table_->Clear();
1806
0
  }
1807
245k
  if (cached_has_bits & 15872u) {
1808
0
    ::memset(&propagated_hybrid_time_, 0, static_cast<size_t>(
1809
0
        reinterpret_cast<char*>(&should_abort_active_txns_) -
1810
0
        reinterpret_cast<char*>(&propagated_hybrid_time_)) + sizeof(should_abort_active_txns_));
1811
0
  }
1812
245k
  _has_bits_.Clear();
1813
245k
  _internal_metadata_.Clear();
1814
245k
}
1815
1816
bool ChangeMetadataRequestPB::MergePartialFromCodedStream(
1817
547k
    ::google::protobuf::io::CodedInputStream* input) {
1818
1.44M
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
1819
547k
  ::google::protobuf::uint32 tag;
1820
  // @@protoc_insertion_point(parse_start:yb.tablet.ChangeMetadataRequestPB)
1821
1.99M
  for (;;) {
1822
1.99M
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u);
1823
1.99M
    tag = p.first;
1824
1.99M
    if (!p.second) goto handle_unusual;
1825
1.44M
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
1826
      // required bytes tablet_id = 1;
1827
547k
      case 1: {
1828
547k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1829
547k
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
1830
547k
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
1831
547k
                input, this->mutable_tablet_id()));
1832
18.4E
        } else {
1833
18.4E
          goto handle_unusual;
1834
18.4E
        }
1835
547k
        break;
1836
547k
      }
1837
1838
      // optional .yb.SchemaPB schema = 2;
1839
53.1k
      case 2: {
1840
53.1k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1841
53.1k
            static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
1842
53.1k
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
1843
53.1k
               input, mutable_schema()));
1844
18.4E
        } else {
1845
18.4E
          goto handle_unusual;
1846
18.4E
        }
1847
53.1k
        break;
1848
53.1k
      }
1849
1850
      // optional uint32 schema_version = 3;
1851
53.1k
      case 3: {
1852
53.1k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1853
53.1k
            static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
1854
53.1k
          set_has_schema_version();
1855
53.1k
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1856
53.1k
                   ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
1857
53.1k
                 input, &schema_version_)));
1858
3
        } else {
1859
3
          goto handle_unusual;
1860
3
        }
1861
53.1k
        break;
1862
53.1k
      }
1863
1864
      // optional string new_table_name = 4;
1865
52.9k
      case 4: {
1866
52.9k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1867
52.9k
            static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
1868
52.9k
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
1869
52.9k
                input, this->mutable_new_table_name()));
1870
52.9k
          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1871
52.9k
            this->new_table_name().data(), static_cast<int>(this->new_table_name().length()),
1872
52.9k
            ::google::protobuf::internal::WireFormat::PARSE,
1873
52.9k
            "yb.tablet.ChangeMetadataRequestPB.new_table_name");
1874
18.4E
        } else {
1875
18.4E
          goto handle_unusual;
1876
18.4E
        }
1877
52.9k
        break;
1878
52.9k
      }
1879
1880
      // optional bytes dest_uuid = 5;
1881
60.3k
      case 5: {
1882
60.3k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1883
60.3k
            static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) {
1884
60.3k
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
1885
60.3k
                input, this->mutable_dest_uuid()));
1886
18.4E
        } else {
1887
18.4E
          goto handle_unusual;
1888
18.4E
        }
1889
60.3k
        break;
1890
60.3k
      }
1891
1892
      // optional fixed64 propagated_hybrid_time = 6;
1893
60.4k
      case 6: {
1894
60.4k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1895
60.4k
            static_cast< ::google::protobuf::uint8>(49u /* 49 & 0xFF */)) {
1896
60.4k
          set_has_propagated_hybrid_time();
1897
60.4k
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1898
60.4k
                   ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED64>(
1899
60.4k
                 input, &propagated_hybrid_time_)));
1900
7
        } else {
1901
7
          goto handle_unusual;
1902
7
        }
1903
60.4k
        break;
1904
60.4k
      }
1905
1906
      // repeated .yb.IndexInfoPB indexes = 7;
1907
59.5k
      case 7: {
1908
59.5k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1909
59.5k
            static_cast< ::google::protobuf::uint8>(58u /* 58 & 0xFF */)) {
1910
59.5k
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_indexes()));
1911
18.4E
        } else {
1912
18.4E
          goto handle_unusual;
1913
18.4E
        }
1914
59.5k
        break;
1915
59.5k
      }
1916
1917
      // optional .yb.tablet.TableInfoPB add_table = 8;
1918
486k
      case 8: {
1919
486k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1920
486k
            static_cast< ::google::protobuf::uint8>(66u /* 66 & 0xFF */)) {
1921
486k
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
1922
486k
               input, mutable_add_table()));
1923
0
        } else {
1924
0
          goto handle_unusual;
1925
0
        }
1926
486k
        break;
1927
486k
      }
1928
1929
      // optional uint32 wal_retention_secs = 9;
1930
2.85k
      case 9: {
1931
2.85k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1932
2.85k
            static_cast< ::google::protobuf::uint8>(72u /* 72 & 0xFF */)) {
1933
2.85k
          set_has_wal_retention_secs();
1934
2.85k
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1935
2.85k
                   ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
1936
2.85k
                 input, &wal_retention_secs_)));
1937
0
        } else {
1938
0
          goto handle_unusual;
1939
0
        }
1940
2.85k
        break;
1941
2.85k
      }
1942
1943
      // optional bytes remove_table_id = 10;
1944
30
      case 10: {
1945
30
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1946
30
            static_cast< ::google::protobuf::uint8>(82u /* 82 & 0xFF */)) {
1947
30
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
1948
30
                input, this->mutable_remove_table_id()));
1949
0
        } else {
1950
0
          goto handle_unusual;
1951
0
        }
1952
30
        break;
1953
30
      }
1954
1955
      // optional bool mark_backfill_done = 11;
1956
7.30k
      case 11: {
1957
7.30k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1958
7.31k
            static_cast< ::google::protobuf::uint8>(88u /* 88 & 0xFF */)) {
1959
7.31k
          set_has_mark_backfill_done();
1960
7.31k
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1961
7.31k
                   bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
1962
7.31k
                 input, &mark_backfill_done_)));
1963
18.4E
        } else {
1964
18.4E
          goto handle_unusual;
1965
18.4E
        }
1966
7.31k
        break;
1967
7.31k
      }
1968
1969
      // optional bytes alter_table_id = 12;
1970
53.0k
      case 12: {
1971
53.0k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1972
53.0k
            static_cast< ::google::protobuf::uint8>(98u /* 98 & 0xFF */)) {
1973
53.0k
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
1974
53.0k
                input, this->mutable_alter_table_id()));
1975
18.4E
        } else {
1976
18.4E
          goto handle_unusual;
1977
18.4E
        }
1978
53.0k
        break;
1979
53.0k
      }
1980
1981
      // optional bytes backfill_done_table_id = 13;
1982
7.30k
      case 13: {
1983
7.30k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1984
7.30k
            static_cast< ::google::protobuf::uint8>(106u /* 106 & 0xFF */)) {
1985
7.30k
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
1986
7.30k
                input, this->mutable_backfill_done_table_id()));
1987
1
        } else {
1988
1
          goto handle_unusual;
1989
1
        }
1990
7.30k
        break;
1991
7.30k
      }
1992
1993
      // optional bytes transaction_id = 14;
1994
948
      case 14: {
1995
948
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1996
948
            static_cast< ::google::protobuf::uint8>(114u /* 114 & 0xFF */)) {
1997
948
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
1998
948
                input, this->mutable_transaction_id()));
1999
0
        } else {
2000
0
          goto handle_unusual;
2001
0
        }
2002
948
        break;
2003
948
      }
2004
2005
      // optional bool should_abort_active_txns = 16 [default = false];
2006
946
      case 16: {
2007
946
        if (static_cast< ::google::protobuf::uint8>(tag) ==
2008
946
            static_cast< ::google::protobuf::uint8>(128u /* 128 & 0xFF */)) {
2009
946
          set_has_should_abort_active_txns();
2010
946
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2011
946
                   bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
2012
946
                 input, &should_abort_active_txns_)));
2013
0
        } else {
2014
0
          goto handle_unusual;
2015
0
        }
2016
946
        break;
2017
547k
      }
2018
2019
0
      default: {
2020
547k
      handle_unusual:
2021
547k
        if (tag == 0) {
2022
547k
          goto success;
2023
547k
        }
2024
18.4E
        DO_(::google::protobuf::internal::WireFormat::SkipField(
2025
18.4E
              input, tag, _internal_metadata_.mutable_unknown_fields()));
2026
18.4E
        break;
2027
18.4E
      }
2028
1.44M
    }
2029
1.44M
  }
2030
547k
success:
2031
  // @@protoc_insertion_point(parse_success:yb.tablet.ChangeMetadataRequestPB)
2032
547k
  return true;
2033
0
failure:
2034
  // @@protoc_insertion_point(parse_failure:yb.tablet.ChangeMetadataRequestPB)
2035
0
  return false;
2036
547k
#undef DO_
2037
547k
}
2038
2039
void ChangeMetadataRequestPB::SerializeWithCachedSizes(
2040
0
    ::google::protobuf::io::CodedOutputStream* output) const {
2041
  // @@protoc_insertion_point(serialize_start:yb.tablet.ChangeMetadataRequestPB)
2042
0
  ::google::protobuf::uint32 cached_has_bits = 0;
2043
0
  (void) cached_has_bits;
2044
2045
0
  cached_has_bits = _has_bits_[0];
2046
  // required bytes tablet_id = 1;
2047
0
  if (cached_has_bits & 0x00000001u) {
2048
0
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
2049
0
      1, this->tablet_id(), output);
2050
0
  }
2051
2052
  // optional .yb.SchemaPB schema = 2;
2053
0
  if (cached_has_bits & 0x00000080u) {
2054
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2055
0
      2, *this->schema_, output);
2056
0
  }
2057
2058
  // optional uint32 schema_version = 3;
2059
0
  if (cached_has_bits & 0x00000400u) {
2060
0
    ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->schema_version(), output);
2061
0
  }
2062
2063
  // optional string new_table_name = 4;
2064
0
  if (cached_has_bits & 0x00000002u) {
2065
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
2066
0
      this->new_table_name().data(), static_cast<int>(this->new_table_name().length()),
2067
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
2068
0
      "yb.tablet.ChangeMetadataRequestPB.new_table_name");
2069
0
    ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
2070
0
      4, this->new_table_name(), output);
2071
0
  }
2072
2073
  // optional bytes dest_uuid = 5;
2074
0
  if (cached_has_bits & 0x00000004u) {
2075
0
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
2076
0
      5, this->dest_uuid(), output);
2077
0
  }
2078
2079
  // optional fixed64 propagated_hybrid_time = 6;
2080
0
  if (cached_has_bits & 0x00000200u) {
2081
0
    ::google::protobuf::internal::WireFormatLite::WriteFixed64(6, this->propagated_hybrid_time(), output);
2082
0
  }
2083
2084
  // repeated .yb.IndexInfoPB indexes = 7;
2085
0
  for (unsigned int i = 0,
2086
0
      n = static_cast<unsigned int>(this->indexes_size()); i < n; i++) {
2087
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2088
0
      7, this->indexes(static_cast<int>(i)), output);
2089
0
  }
2090
2091
  // optional .yb.tablet.TableInfoPB add_table = 8;
2092
0
  if (cached_has_bits & 0x00000100u) {
2093
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2094
0
      8, *this->add_table_, output);
2095
0
  }
2096
2097
  // optional uint32 wal_retention_secs = 9;
2098
0
  if (cached_has_bits & 0x00000800u) {
2099
0
    ::google::protobuf::internal::WireFormatLite::WriteUInt32(9, this->wal_retention_secs(), output);
2100
0
  }
2101
2102
  // optional bytes remove_table_id = 10;
2103
0
  if (cached_has_bits & 0x00000008u) {
2104
0
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
2105
0
      10, this->remove_table_id(), output);
2106
0
  }
2107
2108
  // optional bool mark_backfill_done = 11;
2109
0
  if (cached_has_bits & 0x00001000u) {
2110
0
    ::google::protobuf::internal::WireFormatLite::WriteBool(11, this->mark_backfill_done(), output);
2111
0
  }
2112
2113
  // optional bytes alter_table_id = 12;
2114
0
  if (cached_has_bits & 0x00000010u) {
2115
0
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
2116
0
      12, this->alter_table_id(), output);
2117
0
  }
2118
2119
  // optional bytes backfill_done_table_id = 13;
2120
0
  if (cached_has_bits & 0x00000020u) {
2121
0
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
2122
0
      13, this->backfill_done_table_id(), output);
2123
0
  }
2124
2125
  // optional bytes transaction_id = 14;
2126
0
  if (cached_has_bits & 0x00000040u) {
2127
0
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
2128
0
      14, this->transaction_id(), output);
2129
0
  }
2130
2131
  // optional bool should_abort_active_txns = 16 [default = false];
2132
0
  if (cached_has_bits & 0x00002000u) {
2133
0
    ::google::protobuf::internal::WireFormatLite::WriteBool(16, this->should_abort_active_txns(), output);
2134
0
  }
2135
2136
0
  if (_internal_metadata_.have_unknown_fields()) {
2137
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
2138
0
        _internal_metadata_.unknown_fields(), output);
2139
0
  }
2140
  // @@protoc_insertion_point(serialize_end:yb.tablet.ChangeMetadataRequestPB)
2141
0
}
2142
2143
::google::protobuf::uint8* ChangeMetadataRequestPB::InternalSerializeWithCachedSizesToArray(
2144
886k
    bool deterministic, ::google::protobuf::uint8* target) const {
2145
886k
  (void)deterministic; // Unused
2146
  // @@protoc_insertion_point(serialize_to_array_start:yb.tablet.ChangeMetadataRequestPB)
2147
886k
  ::google::protobuf::uint32 cached_has_bits = 0;
2148
886k
  (void) cached_has_bits;
2149
2150
886k
  cached_has_bits = _has_bits_[0];
2151
  // required bytes tablet_id = 1;
2152
886k
  if (cached_has_bits & 0x00000001u) {
2153
886k
    target =
2154
886k
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
2155
886k
        1, this->tablet_id(), target);
2156
886k
  }
2157
2158
  // optional .yb.SchemaPB schema = 2;
2159
886k
  if (cached_has_bits & 0x00000080u) {
2160
98.2k
    target = ::google::protobuf::internal::WireFormatLite::
2161
98.2k
      InternalWriteMessageToArray(
2162
98.2k
        2, *this->schema_, deterministic, target);
2163
98.2k
  }
2164
2165
  // optional uint32 schema_version = 3;
2166
886k
  if (cached_has_bits & 0x00000400u) {
2167
98.5k
    target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->schema_version(), target);
2168
98.5k
  }
2169
2170
  // optional string new_table_name = 4;
2171
886k
  if (cached_has_bits & 0x00000002u) {
2172
98.3k
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
2173
98.3k
      this->new_table_name().data(), static_cast<int>(this->new_table_name().length()),
2174
98.3k
      ::google::protobuf::internal::WireFormat::SERIALIZE,
2175
98.3k
      "yb.tablet.ChangeMetadataRequestPB.new_table_name");
2176
98.3k
    target =
2177
98.3k
      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
2178
98.3k
        4, this->new_table_name(), target);
2179
98.3k
  }
2180
2181
  // optional bytes dest_uuid = 5;
2182
886k
  if (cached_has_bits & 0x00000004u) {
2183
112k
    target =
2184
112k
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
2185
112k
        5, this->dest_uuid(), target);
2186
112k
  }
2187
2188
  // optional fixed64 propagated_hybrid_time = 6;
2189
886k
  if (cached_has_bits & 0x00000200u) {
2190
112k
    target = ::google::protobuf::internal::WireFormatLite::WriteFixed64ToArray(6, this->propagated_hybrid_time(), target);
2191
112k
  }
2192
2193
  // repeated .yb.IndexInfoPB indexes = 7;
2194
886k
  for (unsigned int i = 0,
2195
1.00M
      n = static_cast<unsigned int>(this->indexes_size()); i < n; i++) {
2196
118k
    target = ::google::protobuf::internal::WireFormatLite::
2197
118k
      InternalWriteMessageToArray(
2198
118k
        7, this->indexes(static_cast<int>(i)), deterministic, target);
2199
118k
  }
2200
2201
  // optional .yb.tablet.TableInfoPB add_table = 8;
2202
886k
  if (cached_has_bits & 0x00000100u) {
2203
773k
    target = ::google::protobuf::internal::WireFormatLite::
2204
773k
      InternalWriteMessageToArray(
2205
773k
        8, *this->add_table_, deterministic, target);
2206
773k
  }
2207
2208
  // optional uint32 wal_retention_secs = 9;
2209
886k
  if (cached_has_bits & 0x00000800u) {
2210
5.10k
    target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(9, this->wal_retention_secs(), target);
2211
5.10k
  }
2212
2213
  // optional bytes remove_table_id = 10;
2214
886k
  if (cached_has_bits & 0x00000008u) {
2215
75
    target =
2216
75
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
2217
75
        10, this->remove_table_id(), target);
2218
75
  }
2219
2220
  // optional bool mark_backfill_done = 11;
2221
886k
  if (cached_has_bits & 0x00001000u) {
2222
14.5k
    target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(11, this->mark_backfill_done(), target);
2223
14.5k
  }
2224
2225
  // optional bytes alter_table_id = 12;
2226
886k
  if (cached_has_bits & 0x00000010u) {
2227
98.2k
    target =
2228
98.2k
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
2229
98.2k
        12, this->alter_table_id(), target);
2230
98.2k
  }
2231
2232
  // optional bytes backfill_done_table_id = 13;
2233
886k
  if (cached_has_bits & 0x00000020u) {
2234
14.5k
    target =
2235
14.5k
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
2236
14.5k
        13, this->backfill_done_table_id(), target);
2237
14.5k
  }
2238
2239
  // optional bytes transaction_id = 14;
2240
886k
  if (cached_has_bits & 0x00000040u) {
2241
1.87k
    target =
2242
1.87k
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
2243
1.87k
        14, this->transaction_id(), target);
2244
1.87k
  }
2245
2246
  // optional bool should_abort_active_txns = 16 [default = false];
2247
886k
  if (cached_has_bits & 0x00002000u) {
2248
1.88k
    target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(16, this->should_abort_active_txns(), target);
2249
1.88k
  }
2250
2251
886k
  if (_internal_metadata_.have_unknown_fields()) {
2252
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
2253
0
        _internal_metadata_.unknown_fields(), target);
2254
0
  }
2255
  // @@protoc_insertion_point(serialize_to_array_end:yb.tablet.ChangeMetadataRequestPB)
2256
886k
  return target;
2257
886k
}
2258
2259
2.09M
size_t ChangeMetadataRequestPB::ByteSizeLong() const {
2260
// @@protoc_insertion_point(message_byte_size_start:yb.tablet.ChangeMetadataRequestPB)
2261
2.09M
  size_t total_size = 0;
2262
2263
2.09M
  if (_internal_metadata_.have_unknown_fields()) {
2264
0
    total_size +=
2265
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
2266
0
        _internal_metadata_.unknown_fields());
2267
0
  }
2268
  // required bytes tablet_id = 1;
2269
2.09M
  if (has_tablet_id()) {
2270
2.09M
    total_size += 1 +
2271
2.09M
      ::google::protobuf::internal::WireFormatLite::BytesSize(
2272
2.09M
        this->tablet_id());
2273
2.09M
  }
2274
  // repeated .yb.IndexInfoPB indexes = 7;
2275
2.09M
  {
2276
2.09M
    unsigned int count = static_cast<unsigned int>(this->indexes_size());
2277
2.09M
    total_size += 1UL * count;
2278
2.37M
    for (unsigned int i = 0; i < count; i++) {
2279
276k
      total_size +=
2280
276k
        ::google::protobuf::internal::WireFormatLite::MessageSize(
2281
276k
          this->indexes(static_cast<int>(i)));
2282
276k
    }
2283
2.09M
  }
2284
2285
2.09M
  if (_has_bits_[0 / 32] & 254u) {
2286
    // optional string new_table_name = 4;
2287
265k
    if (has_new_table_name()) {
2288
231k
      total_size += 1 +
2289
231k
        ::google::protobuf::internal::WireFormatLite::StringSize(
2290
231k
          this->new_table_name());
2291
231k
    }
2292
2293
    // optional bytes dest_uuid = 5;
2294
265k
    if (has_dest_uuid()) {
2295
265k
      total_size += 1 +
2296
265k
        ::google::protobuf::internal::WireFormatLite::BytesSize(
2297
265k
          this->dest_uuid());
2298
265k
    }
2299
2300
    // optional bytes remove_table_id = 10;
2301
265k
    if (has_remove_table_id()) {
2302
180
      total_size += 1 +
2303
180
        ::google::protobuf::internal::WireFormatLite::BytesSize(
2304
180
          this->remove_table_id());
2305
180
    }
2306
2307
    // optional bytes alter_table_id = 12;
2308
265k
    if (has_alter_table_id()) {
2309
231k
      total_size += 1 +
2310
231k
        ::google::protobuf::internal::WireFormatLite::BytesSize(
2311
231k
          this->alter_table_id());
2312
231k
    }
2313
2314
    // optional bytes backfill_done_table_id = 13;
2315
265k
    if (has_backfill_done_table_id()) {
2316
33.8k
      total_size += 1 +
2317
33.8k
        ::google::protobuf::internal::WireFormatLite::BytesSize(
2318
33.8k
          this->backfill_done_table_id());
2319
33.8k
    }
2320
2321
    // optional bytes transaction_id = 14;
2322
265k
    if (has_transaction_id()) {
2323
4.37k
      total_size += 1 +
2324
4.37k
        ::google::protobuf::internal::WireFormatLite::BytesSize(
2325
4.37k
          this->transaction_id());
2326
4.37k
    }
2327
2328
    // optional .yb.SchemaPB schema = 2;
2329
265k
    if (has_schema()) {
2330
231k
      total_size += 1 +
2331
231k
        ::google::protobuf::internal::WireFormatLite::MessageSize(
2332
231k
          *this->schema_);
2333
231k
    }
2334
2335
265k
  }
2336
2.09M
  if (_has_bits_[8 / 32] & 16128u) {
2337
    // optional .yb.tablet.TableInfoPB add_table = 8;
2338
2.09M
    if (has_add_table()) {
2339
1.83M
      total_size += 1 +
2340
1.83M
        ::google::protobuf::internal::WireFormatLite::MessageSize(
2341
1.83M
          *this->add_table_);
2342
1.83M
    }
2343
2344
    // optional fixed64 propagated_hybrid_time = 6;
2345
2.09M
    if (has_propagated_hybrid_time()) {
2346
265k
      total_size += 1 + 8;
2347
265k
    }
2348
2349
    // optional uint32 schema_version = 3;
2350
2.09M
    if (has_schema_version()) {
2351
231k
      total_size += 1 +
2352
231k
        ::google::protobuf::internal::WireFormatLite::UInt32Size(
2353
231k
          this->schema_version());
2354
231k
    }
2355
2356
    // optional uint32 wal_retention_secs = 9;
2357
2.09M
    if (has_wal_retention_secs()) {
2358
14.1k
      total_size += 1 +
2359
14.1k
        ::google::protobuf::internal::WireFormatLite::UInt32Size(
2360
14.1k
          this->wal_retention_secs());
2361
14.1k
    }
2362
2363
    // optional bool mark_backfill_done = 11;
2364
2.09M
    if (has_mark_backfill_done()) {
2365
33.9k
      total_size += 1 + 1;
2366
33.9k
    }
2367
2368
    // optional bool should_abort_active_txns = 16 [default = false];
2369
2.09M
    if (has_should_abort_active_txns()) {
2370
4.37k
      total_size += 2 + 1;
2371
4.37k
    }
2372
2373
2.09M
  }
2374
2.09M
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
2375
2.09M
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2376
2.09M
  _cached_size_ = cached_size;
2377
2.09M
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
2378
2.09M
  return total_size;
2379
2.09M
}
2380
2381
0
void ChangeMetadataRequestPB::MergeFrom(const ::google::protobuf::Message& from) {
2382
// @@protoc_insertion_point(generalized_merge_from_start:yb.tablet.ChangeMetadataRequestPB)
2383
0
  GOOGLE_DCHECK_NE(&from, this);
2384
0
  const ChangeMetadataRequestPB* source =
2385
0
      ::google::protobuf::internal::DynamicCastToGenerated<const ChangeMetadataRequestPB>(
2386
0
          &from);
2387
0
  if (source == NULL) {
2388
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.tablet.ChangeMetadataRequestPB)
2389
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
2390
0
  } else {
2391
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.tablet.ChangeMetadataRequestPB)
2392
0
    MergeFrom(*source);
2393
0
  }
2394
0
}
2395
2396
225k
void ChangeMetadataRequestPB::MergeFrom(const ChangeMetadataRequestPB& from) {
2397
// @@protoc_insertion_point(class_specific_merge_from_start:yb.tablet.ChangeMetadataRequestPB)
2398
225k
  GOOGLE_DCHECK_NE(&from, this);
2399
225k
  _internal_metadata_.MergeFrom(from._internal_metadata_);
2400
225k
  ::google::protobuf::uint32 cached_has_bits = 0;
2401
225k
  (void) cached_has_bits;
2402
2403
225k
  indexes_.MergeFrom(from.indexes_);
2404
225k
  cached_has_bits = from._has_bits_[0];
2405
225k
  if (cached_has_bits & 255u) {
2406
224k
    if (cached_has_bits & 0x00000001u) {
2407
224k
      set_has_tablet_id();
2408
224k
      tablet_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.tablet_id_);
2409
224k
    }
2410
224k
    if (cached_has_bits & 0x00000002u) {
2411
17.9k
      set_has_new_table_name();
2412
17.9k
      new_table_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.new_table_name_);
2413
17.9k
    }
2414
224k
    if (cached_has_bits & 0x00000004u) {
2415
20.3k
      set_has_dest_uuid();
2416
20.3k
      dest_uuid_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.dest_uuid_);
2417
20.3k
    }
2418
224k
    if (cached_has_bits & 0x00000008u) {
2419
15
      set_has_remove_table_id();
2420
15
      remove_table_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.remove_table_id_);
2421
15
    }
2422
224k
    if (cached_has_bits & 0x00000010u) {
2423
18.0k
      set_has_alter_table_id();
2424
18.0k
      alter_table_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.alter_table_id_);
2425
18.0k
    }
2426
224k
    if (cached_has_bits & 0x00000020u) {
2427
2.40k
      set_has_backfill_done_table_id();
2428
2.40k
      backfill_done_table_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.backfill_done_table_id_);
2429
2.40k
    }
2430
224k
    if (cached_has_bits & 0x00000040u) {
2431
316
      set_has_transaction_id();
2432
316
      transaction_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.transaction_id_);
2433
316
    }
2434
224k
    if (cached_has_bits & 0x00000080u) {
2435
18.0k
      mutable_schema()->::yb::SchemaPB::MergeFrom(from.schema());
2436
18.0k
    }
2437
224k
  }
2438
225k
  if (cached_has_bits & 16128u) {
2439
224k
    if (cached_has_bits & 0x00000100u) {
2440
204k
      mutable_add_table()->::yb::tablet::TableInfoPB::MergeFrom(from.add_table());
2441
204k
    }
2442
224k
    if (cached_has_bits & 0x00000200u) {
2443
20.5k
      propagated_hybrid_time_ = from.propagated_hybrid_time_;
2444
20.5k
    }
2445
224k
    if (cached_has_bits & 0x00000400u) {
2446
18.1k
      schema_version_ = from.schema_version_;
2447
18.1k
    }
2448
224k
    if (cached_has_bits & 0x00000800u) {
2449
2.55k
      wal_retention_secs_ = from.wal_retention_secs_;
2450
2.55k
    }
2451
224k
    if (cached_has_bits & 0x00001000u) {
2452
2.41k
      mark_backfill_done_ = from.mark_backfill_done_;
2453
2.41k
    }
2454
224k
    if (cached_has_bits & 0x00002000u) {
2455
317
      should_abort_active_txns_ = from.should_abort_active_txns_;
2456
317
    }
2457
224k
    _has_bits_[0] |= cached_has_bits;
2458
224k
  }
2459
225k
}
2460
2461
0
void ChangeMetadataRequestPB::CopyFrom(const ::google::protobuf::Message& from) {
2462
// @@protoc_insertion_point(generalized_copy_from_start:yb.tablet.ChangeMetadataRequestPB)
2463
0
  if (&from == this) return;
2464
0
  Clear();
2465
0
  MergeFrom(from);
2466
0
}
2467
2468
224k
void ChangeMetadataRequestPB::CopyFrom(const ChangeMetadataRequestPB& from) {
2469
// @@protoc_insertion_point(class_specific_copy_from_start:yb.tablet.ChangeMetadataRequestPB)
2470
224k
  if (&from == this) return;
2471
224k
  Clear();
2472
224k
  MergeFrom(from);
2473
224k
}
2474
2475
2.52M
bool ChangeMetadataRequestPB::IsInitialized() const {
2476
2.52M
  if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false;
2477
2.52M
  if (!::google::protobuf::internal::AllAreInitialized(this->indexes())) return false;
2478
2.52M
  if (has_schema()) {
2479
250k
    if (!this->schema_->IsInitialized()) return false;
2480
2.52M
  }
2481
2.52M
  if (has_add_table()) {
2482
2.23M
    if (!this->add_table_->IsInitialized()) return false;
2483
2.52M
  }
2484
2.52M
  return true;
2485
2.52M
}
2486
2487
0
void ChangeMetadataRequestPB::Swap(ChangeMetadataRequestPB* other) {
2488
0
  if (other == this) return;
2489
0
  InternalSwap(other);
2490
0
}
2491
0
void ChangeMetadataRequestPB::InternalSwap(ChangeMetadataRequestPB* other) {
2492
0
  using std::swap;
2493
0
  indexes_.InternalSwap(&other->indexes_);
2494
0
  tablet_id_.Swap(&other->tablet_id_);
2495
0
  new_table_name_.Swap(&other->new_table_name_);
2496
0
  dest_uuid_.Swap(&other->dest_uuid_);
2497
0
  remove_table_id_.Swap(&other->remove_table_id_);
2498
0
  alter_table_id_.Swap(&other->alter_table_id_);
2499
0
  backfill_done_table_id_.Swap(&other->backfill_done_table_id_);
2500
0
  transaction_id_.Swap(&other->transaction_id_);
2501
0
  swap(schema_, other->schema_);
2502
0
  swap(add_table_, other->add_table_);
2503
0
  swap(propagated_hybrid_time_, other->propagated_hybrid_time_);
2504
0
  swap(schema_version_, other->schema_version_);
2505
0
  swap(wal_retention_secs_, other->wal_retention_secs_);
2506
0
  swap(mark_backfill_done_, other->mark_backfill_done_);
2507
0
  swap(should_abort_active_txns_, other->should_abort_active_txns_);
2508
0
  swap(_has_bits_[0], other->_has_bits_[0]);
2509
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
2510
0
  swap(_cached_size_, other->_cached_size_);
2511
0
}
2512
2513
1.43M
::google::protobuf::Metadata ChangeMetadataRequestPB::GetMetadata() const {
2514
1.43M
  protobuf_yb_2ftablet_2foperations_2eproto::protobuf_AssignDescriptorsOnce();
2515
1.43M
  return ::protobuf_yb_2ftablet_2foperations_2eproto::file_level_metadata[kIndexInFileMessages];
2516
1.43M
}
2517
2518
2519
// ===================================================================
2520
2521
15.8k
void SplitTabletRequestPB::InitAsDefaultInstance() {
2522
15.8k
}
2523
#if !defined(_MSC_VER) || _MSC_VER >= 1900
2524
const int SplitTabletRequestPB::kDestUuidFieldNumber;
2525
const int SplitTabletRequestPB::kPropagatedHybridTimeFieldNumber;
2526
const int SplitTabletRequestPB::kTabletIdFieldNumber;
2527
const int SplitTabletRequestPB::kNewTablet1IdFieldNumber;
2528
const int SplitTabletRequestPB::kNewTablet2IdFieldNumber;
2529
const int SplitTabletRequestPB::kSplitPartitionKeyFieldNumber;
2530
const int SplitTabletRequestPB::kSplitEncodedKeyFieldNumber;
2531
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
2532
2533
SplitTabletRequestPB::SplitTabletRequestPB()
2534
16.1k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
2535
335
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
2536
335
    ::protobuf_yb_2ftablet_2foperations_2eproto::InitDefaultsSplitTabletRequestPB();
2537
335
  }
2538
16.1k
  SharedCtor();
2539
  // @@protoc_insertion_point(constructor:yb.tablet.SplitTabletRequestPB)
2540
16.1k
}
2541
SplitTabletRequestPB::SplitTabletRequestPB(const SplitTabletRequestPB& from)
2542
  : ::google::protobuf::Message(),
2543
      _internal_metadata_(NULL),
2544
      _has_bits_(from._has_bits_),
2545
7
      _cached_size_(0) {
2546
7
  _internal_metadata_.MergeFrom(from._internal_metadata_);
2547
7
  dest_uuid_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2548
7
  if (from.has_dest_uuid()) {
2549
7
    dest_uuid_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.dest_uuid_);
2550
7
  }
2551
7
  tablet_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2552
7
  if (from.has_tablet_id()) {
2553
7
    tablet_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.tablet_id_);
2554
7
  }
2555
7
  new_tablet1_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2556
7
  if (from.has_new_tablet1_id()) {
2557
7
    new_tablet1_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.new_tablet1_id_);
2558
7
  }
2559
7
  new_tablet2_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2560
7
  if (from.has_new_tablet2_id()) {
2561
7
    new_tablet2_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.new_tablet2_id_);
2562
7
  }
2563
7
  split_partition_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2564
7
  if (from.has_split_partition_key()) {
2565
7
    split_partition_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.split_partition_key_);
2566
7
  }
2567
7
  split_encoded_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2568
7
  if (from.has_split_encoded_key()) {
2569
7
    split_encoded_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.split_encoded_key_);
2570
7
  }
2571
7
  propagated_hybrid_time_ = from.propagated_hybrid_time_;
2572
  // @@protoc_insertion_point(copy_constructor:yb.tablet.SplitTabletRequestPB)
2573
7
}
2574
2575
16.1k
void SplitTabletRequestPB::SharedCtor() {
2576
16.1k
  _cached_size_ = 0;
2577
16.1k
  dest_uuid_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2578
16.1k
  tablet_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2579
16.1k
  new_tablet1_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2580
16.1k
  new_tablet2_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2581
16.1k
  split_partition_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2582
16.1k
  split_encoded_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2583
16.1k
  propagated_hybrid_time_ = GOOGLE_ULONGLONG(0);
2584
16.1k
}
2585
2586
290
SplitTabletRequestPB::~SplitTabletRequestPB() {
2587
  // @@protoc_insertion_point(destructor:yb.tablet.SplitTabletRequestPB)
2588
290
  SharedDtor();
2589
290
}
2590
2591
290
void SplitTabletRequestPB::SharedDtor() {
2592
290
  dest_uuid_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2593
290
  tablet_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2594
290
  new_tablet1_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2595
290
  new_tablet2_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2596
290
  split_partition_key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2597
290
  split_encoded_key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2598
290
}
2599
2600
0
void SplitTabletRequestPB::SetCachedSize(int size) const {
2601
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2602
0
  _cached_size_ = size;
2603
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
2604
0
}
2605
0
const ::google::protobuf::Descriptor* SplitTabletRequestPB::descriptor() {
2606
0
  ::protobuf_yb_2ftablet_2foperations_2eproto::protobuf_AssignDescriptorsOnce();
2607
0
  return ::protobuf_yb_2ftablet_2foperations_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
2608
0
}
2609
2610
0
const SplitTabletRequestPB& SplitTabletRequestPB::default_instance() {
2611
0
  ::protobuf_yb_2ftablet_2foperations_2eproto::InitDefaultsSplitTabletRequestPB();
2612
0
  return *internal_default_instance();
2613
0
}
2614
2615
0
SplitTabletRequestPB* SplitTabletRequestPB::New(::google::protobuf::Arena* arena) const {
2616
0
  SplitTabletRequestPB* n = new SplitTabletRequestPB;
2617
0
  if (arena != NULL) {
2618
0
    arena->Own(n);
2619
0
  }
2620
0
  return n;
2621
0
}
2622
2623
63
void SplitTabletRequestPB::Clear() {
2624
// @@protoc_insertion_point(message_clear_start:yb.tablet.SplitTabletRequestPB)
2625
63
  ::google::protobuf::uint32 cached_has_bits = 0;
2626
  // Prevent compiler warnings about cached_has_bits being unused
2627
63
  (void) cached_has_bits;
2628
2629
63
  cached_has_bits = _has_bits_[0];
2630
63
  if (cached_has_bits & 63u) {
2631
0
    if (cached_has_bits & 0x00000001u) {
2632
0
      GOOGLE_DCHECK(!dest_uuid_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
2633
0
      (*dest_uuid_.UnsafeRawStringPointer())->clear();
2634
0
    }
2635
0
    if (cached_has_bits & 0x00000002u) {
2636
0
      GOOGLE_DCHECK(!tablet_id_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
2637
0
      (*tablet_id_.UnsafeRawStringPointer())->clear();
2638
0
    }
2639
0
    if (cached_has_bits & 0x00000004u) {
2640
0
      GOOGLE_DCHECK(!new_tablet1_id_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
2641
0
      (*new_tablet1_id_.UnsafeRawStringPointer())->clear();
2642
0
    }
2643
0
    if (cached_has_bits & 0x00000008u) {
2644
0
      GOOGLE_DCHECK(!new_tablet2_id_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
2645
0
      (*new_tablet2_id_.UnsafeRawStringPointer())->clear();
2646
0
    }
2647
0
    if (cached_has_bits & 0x00000010u) {
2648
0
      GOOGLE_DCHECK(!split_partition_key_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
2649
0
      (*split_partition_key_.UnsafeRawStringPointer())->clear();
2650
0
    }
2651
0
    if (cached_has_bits & 0x00000020u) {
2652
0
      GOOGLE_DCHECK(!split_encoded_key_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
2653
0
      (*split_encoded_key_.UnsafeRawStringPointer())->clear();
2654
0
    }
2655
0
  }
2656
63
  propagated_hybrid_time_ = GOOGLE_ULONGLONG(0);
2657
63
  _has_bits_.Clear();
2658
63
  _internal_metadata_.Clear();
2659
63
}
2660
2661
bool SplitTabletRequestPB::MergePartialFromCodedStream(
2662
272
    ::google::protobuf::io::CodedInputStream* input) {
2663
1.90k
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
2664
272
  ::google::protobuf::uint32 tag;
2665
  // @@protoc_insertion_point(parse_start:yb.tablet.SplitTabletRequestPB)
2666
2.17k
  for (;;) {
2667
2.17k
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
2668
2.17k
    tag = p.first;
2669
2.17k
    if (!p.second) goto handle_unusual;
2670
1.90k
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
2671
      // optional bytes dest_uuid = 1;
2672
272
      case 1: {
2673
272
        if (static_cast< ::google::protobuf::uint8>(tag) ==
2674
272
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
2675
272
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
2676
272
                input, this->mutable_dest_uuid()));
2677
0
        } else {
2678
0
          goto handle_unusual;
2679
0
        }
2680
272
        break;
2681
272
      }
2682
2683
      // optional fixed64 propagated_hybrid_time = 2;
2684
269
      case 2: {
2685
269
        if (static_cast< ::google::protobuf::uint8>(tag) ==
2686
269
            static_cast< ::google::protobuf::uint8>(17u /* 17 & 0xFF */)) {
2687
269
          set_has_propagated_hybrid_time();
2688
269
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2689
269
                   ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED64>(
2690
269
                 input, &propagated_hybrid_time_)));
2691
0
        } else {
2692
0
          goto handle_unusual;
2693
0
        }
2694
269
        break;
2695
269
      }
2696
2697
      // required bytes tablet_id = 3;
2698
272
      case 3: {
2699
272
        if (static_cast< ::google::protobuf::uint8>(tag) ==
2700
272
            static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
2701
272
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
2702
272
                input, this->mutable_tablet_id()));
2703
0
        } else {
2704
0
          goto handle_unusual;
2705
0
        }
2706
272
        break;
2707
272
      }
2708
2709
      // required bytes new_tablet1_id = 4;
2710
272
      case 4: {
2711
272
        if (static_cast< ::google::protobuf::uint8>(tag) ==
2712
272
            static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
2713
272
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
2714
272
                input, this->mutable_new_tablet1_id()));
2715
0
        } else {
2716
0
          goto handle_unusual;
2717
0
        }
2718
272
        break;
2719
272
      }
2720
2721
      // required bytes new_tablet2_id = 5;
2722
272
      case 5: {
2723
272
        if (static_cast< ::google::protobuf::uint8>(tag) ==
2724
272
            static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) {
2725
272
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
2726
272
                input, this->mutable_new_tablet2_id()));
2727
0
        } else {
2728
0
          goto handle_unusual;
2729
0
        }
2730
272
        break;
2731
272
      }
2732
2733
      // required bytes split_partition_key = 6;
2734
272
      case 6: {
2735
272
        if (static_cast< ::google::protobuf::uint8>(tag) ==
2736
272
            static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) {
2737
272
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
2738
272
                input, this->mutable_split_partition_key()));
2739
0
        } else {
2740
0
          goto handle_unusual;
2741
0
        }
2742
272
        break;
2743
272
      }
2744
2745
      // required bytes split_encoded_key = 7;
2746
272
      case 7: {
2747
272
        if (static_cast< ::google::protobuf::uint8>(tag) ==
2748
272
            static_cast< ::google::protobuf::uint8>(58u /* 58 & 0xFF */)) {
2749
272
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
2750
272
                input, this->mutable_split_encoded_key()));
2751
0
        } else {
2752
0
          goto handle_unusual;
2753
0
        }
2754
272
        break;
2755
272
      }
2756
2757
0
      default: {
2758
272
      handle_unusual:
2759
272
        if (tag == 0) {
2760
272
          goto success;
2761
272
        }
2762
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
2763
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
2764
0
        break;
2765
0
      }
2766
1.90k
    }
2767
1.90k
  }
2768
272
success:
2769
  // @@protoc_insertion_point(parse_success:yb.tablet.SplitTabletRequestPB)
2770
272
  return true;
2771
0
failure:
2772
  // @@protoc_insertion_point(parse_failure:yb.tablet.SplitTabletRequestPB)
2773
0
  return false;
2774
272
#undef DO_
2775
272
}
2776
2777
void SplitTabletRequestPB::SerializeWithCachedSizes(
2778
0
    ::google::protobuf::io::CodedOutputStream* output) const {
2779
  // @@protoc_insertion_point(serialize_start:yb.tablet.SplitTabletRequestPB)
2780
0
  ::google::protobuf::uint32 cached_has_bits = 0;
2781
0
  (void) cached_has_bits;
2782
2783
0
  cached_has_bits = _has_bits_[0];
2784
  // optional bytes dest_uuid = 1;
2785
0
  if (cached_has_bits & 0x00000001u) {
2786
0
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
2787
0
      1, this->dest_uuid(), output);
2788
0
  }
2789
2790
  // optional fixed64 propagated_hybrid_time = 2;
2791
0
  if (cached_has_bits & 0x00000040u) {
2792
0
    ::google::protobuf::internal::WireFormatLite::WriteFixed64(2, this->propagated_hybrid_time(), output);
2793
0
  }
2794
2795
  // required bytes tablet_id = 3;
2796
0
  if (cached_has_bits & 0x00000002u) {
2797
0
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
2798
0
      3, this->tablet_id(), output);
2799
0
  }
2800
2801
  // required bytes new_tablet1_id = 4;
2802
0
  if (cached_has_bits & 0x00000004u) {
2803
0
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
2804
0
      4, this->new_tablet1_id(), output);
2805
0
  }
2806
2807
  // required bytes new_tablet2_id = 5;
2808
0
  if (cached_has_bits & 0x00000008u) {
2809
0
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
2810
0
      5, this->new_tablet2_id(), output);
2811
0
  }
2812
2813
  // required bytes split_partition_key = 6;
2814
0
  if (cached_has_bits & 0x00000010u) {
2815
0
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
2816
0
      6, this->split_partition_key(), output);
2817
0
  }
2818
2819
  // required bytes split_encoded_key = 7;
2820
0
  if (cached_has_bits & 0x00000020u) {
2821
0
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
2822
0
      7, this->split_encoded_key(), output);
2823
0
  }
2824
2825
0
  if (_internal_metadata_.have_unknown_fields()) {
2826
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
2827
0
        _internal_metadata_.unknown_fields(), output);
2828
0
  }
2829
  // @@protoc_insertion_point(serialize_end:yb.tablet.SplitTabletRequestPB)
2830
0
}
2831
2832
::google::protobuf::uint8* SplitTabletRequestPB::InternalSerializeWithCachedSizesToArray(
2833
114
    bool deterministic, ::google::protobuf::uint8* target) const {
2834
114
  (void)deterministic; // Unused
2835
  // @@protoc_insertion_point(serialize_to_array_start:yb.tablet.SplitTabletRequestPB)
2836
114
  ::google::protobuf::uint32 cached_has_bits = 0;
2837
114
  (void) cached_has_bits;
2838
2839
114
  cached_has_bits = _has_bits_[0];
2840
  // optional bytes dest_uuid = 1;
2841
114
  if (cached_has_bits & 0x00000001u) {
2842
114
    target =
2843
114
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
2844
114
        1, this->dest_uuid(), target);
2845
114
  }
2846
2847
  // optional fixed64 propagated_hybrid_time = 2;
2848
114
  if (cached_has_bits & 0x00000040u) {
2849
110
    target = ::google::protobuf::internal::WireFormatLite::WriteFixed64ToArray(2, this->propagated_hybrid_time(), target);
2850
110
  }
2851
2852
  // required bytes tablet_id = 3;
2853
114
  if (cached_has_bits & 0x00000002u) {
2854
114
    target =
2855
114
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
2856
114
        3, this->tablet_id(), target);
2857
114
  }
2858
2859
  // required bytes new_tablet1_id = 4;
2860
114
  if (cached_has_bits & 0x00000004u) {
2861
114
    target =
2862
114
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
2863
114
        4, this->new_tablet1_id(), target);
2864
114
  }
2865
2866
  // required bytes new_tablet2_id = 5;
2867
114
  if (cached_has_bits & 0x00000008u) {
2868
114
    target =
2869
114
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
2870
114
        5, this->new_tablet2_id(), target);
2871
114
  }
2872
2873
  // required bytes split_partition_key = 6;
2874
114
  if (cached_has_bits & 0x00000010u) {
2875
114
    target =
2876
114
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
2877
114
        6, this->split_partition_key(), target);
2878
114
  }
2879
2880
  // required bytes split_encoded_key = 7;
2881
114
  if (cached_has_bits & 0x00000020u) {
2882
114
    target =
2883
114
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
2884
114
        7, this->split_encoded_key(), target);
2885
114
  }
2886
2887
114
  if (_internal_metadata_.have_unknown_fields()) {
2888
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
2889
0
        _internal_metadata_.unknown_fields(), target);
2890
0
  }
2891
  // @@protoc_insertion_point(serialize_to_array_end:yb.tablet.SplitTabletRequestPB)
2892
114
  return target;
2893
114
}
2894
2895
0
size_t SplitTabletRequestPB::RequiredFieldsByteSizeFallback() const {
2896
// @@protoc_insertion_point(required_fields_byte_size_fallback_start:yb.tablet.SplitTabletRequestPB)
2897
0
  size_t total_size = 0;
2898
2899
0
  if (has_tablet_id()) {
2900
    // required bytes tablet_id = 3;
2901
0
    total_size += 1 +
2902
0
      ::google::protobuf::internal::WireFormatLite::BytesSize(
2903
0
        this->tablet_id());
2904
0
  }
2905
2906
0
  if (has_new_tablet1_id()) {
2907
    // required bytes new_tablet1_id = 4;
2908
0
    total_size += 1 +
2909
0
      ::google::protobuf::internal::WireFormatLite::BytesSize(
2910
0
        this->new_tablet1_id());
2911
0
  }
2912
2913
0
  if (has_new_tablet2_id()) {
2914
    // required bytes new_tablet2_id = 5;
2915
0
    total_size += 1 +
2916
0
      ::google::protobuf::internal::WireFormatLite::BytesSize(
2917
0
        this->new_tablet2_id());
2918
0
  }
2919
2920
0
  if (has_split_partition_key()) {
2921
    // required bytes split_partition_key = 6;
2922
0
    total_size += 1 +
2923
0
      ::google::protobuf::internal::WireFormatLite::BytesSize(
2924
0
        this->split_partition_key());
2925
0
  }
2926
2927
0
  if (has_split_encoded_key()) {
2928
    // required bytes split_encoded_key = 7;
2929
0
    total_size += 1 +
2930
0
      ::google::protobuf::internal::WireFormatLite::BytesSize(
2931
0
        this->split_encoded_key());
2932
0
  }
2933
2934
0
  return total_size;
2935
0
}
2936
254
size_t SplitTabletRequestPB::ByteSizeLong() const {
2937
// @@protoc_insertion_point(message_byte_size_start:yb.tablet.SplitTabletRequestPB)
2938
254
  size_t total_size = 0;
2939
2940
254
  if (_internal_metadata_.have_unknown_fields()) {
2941
0
    total_size +=
2942
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
2943
0
        _internal_metadata_.unknown_fields());
2944
0
  }
2945
254
  if (((_has_bits_[0] & 0x0000003e) ^ 0x0000003e) == 0) {  // All required fields are present.
2946
    // required bytes tablet_id = 3;
2947
254
    total_size += 1 +
2948
254
      ::google::protobuf::internal::WireFormatLite::BytesSize(
2949
254
        this->tablet_id());
2950
2951
    // required bytes new_tablet1_id = 4;
2952
254
    total_size += 1 +
2953
254
      ::google::protobuf::internal::WireFormatLite::BytesSize(
2954
254
        this->new_tablet1_id());
2955
2956
    // required bytes new_tablet2_id = 5;
2957
254
    total_size += 1 +
2958
254
      ::google::protobuf::internal::WireFormatLite::BytesSize(
2959
254
        this->new_tablet2_id());
2960
2961
    // required bytes split_partition_key = 6;
2962
254
    total_size += 1 +
2963
254
      ::google::protobuf::internal::WireFormatLite::BytesSize(
2964
254
        this->split_partition_key());
2965
2966
    // required bytes split_encoded_key = 7;
2967
254
    total_size += 1 +
2968
254
      ::google::protobuf::internal::WireFormatLite::BytesSize(
2969
254
        this->split_encoded_key());
2970
2971
0
  } else {
2972
0
    total_size += RequiredFieldsByteSizeFallback();
2973
0
  }
2974
  // optional bytes dest_uuid = 1;
2975
254
  if (has_dest_uuid()) {
2976
254
    total_size += 1 +
2977
254
      ::google::protobuf::internal::WireFormatLite::BytesSize(
2978
254
        this->dest_uuid());
2979
254
  }
2980
2981
  // optional fixed64 propagated_hybrid_time = 2;
2982
254
  if (has_propagated_hybrid_time()) {
2983
244
    total_size += 1 + 8;
2984
244
  }
2985
2986
254
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
2987
254
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2988
254
  _cached_size_ = cached_size;
2989
254
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
2990
254
  return total_size;
2991
254
}
2992
2993
0
void SplitTabletRequestPB::MergeFrom(const ::google::protobuf::Message& from) {
2994
// @@protoc_insertion_point(generalized_merge_from_start:yb.tablet.SplitTabletRequestPB)
2995
0
  GOOGLE_DCHECK_NE(&from, this);
2996
0
  const SplitTabletRequestPB* source =
2997
0
      ::google::protobuf::internal::DynamicCastToGenerated<const SplitTabletRequestPB>(
2998
0
          &from);
2999
0
  if (source == NULL) {
3000
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.tablet.SplitTabletRequestPB)
3001
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
3002
0
  } else {
3003
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.tablet.SplitTabletRequestPB)
3004
0
    MergeFrom(*source);
3005
0
  }
3006
0
}
3007
3008
19
void SplitTabletRequestPB::MergeFrom(const SplitTabletRequestPB& from) {
3009
// @@protoc_insertion_point(class_specific_merge_from_start:yb.tablet.SplitTabletRequestPB)
3010
19
  GOOGLE_DCHECK_NE(&from, this);
3011
19
  _internal_metadata_.MergeFrom(from._internal_metadata_);
3012
19
  ::google::protobuf::uint32 cached_has_bits = 0;
3013
19
  (void) cached_has_bits;
3014
3015
19
  cached_has_bits = from._has_bits_[0];
3016
19
  if (cached_has_bits & 127u) {
3017
19
    if (cached_has_bits & 0x00000001u) {
3018
19
      set_has_dest_uuid();
3019
19
      dest_uuid_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.dest_uuid_);
3020
19
    }
3021
19
    if (cached_has_bits & 0x00000002u) {
3022
19
      set_has_tablet_id();
3023
19
      tablet_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.tablet_id_);
3024
19
    }
3025
19
    if (cached_has_bits & 0x00000004u) {
3026
19
      set_has_new_tablet1_id();
3027
19
      new_tablet1_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.new_tablet1_id_);
3028
19
    }
3029
19
    if (cached_has_bits & 0x00000008u) {
3030
19
      set_has_new_tablet2_id();
3031
19
      new_tablet2_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.new_tablet2_id_);
3032
19
    }
3033
19
    if (cached_has_bits & 0x00000010u) {
3034
19
      set_has_split_partition_key();
3035
19
      split_partition_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.split_partition_key_);
3036
19
    }
3037
19
    if (cached_has_bits & 0x00000020u) {
3038
19
      set_has_split_encoded_key();
3039
19
      split_encoded_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.split_encoded_key_);
3040
19
    }
3041
19
    if (cached_has_bits & 0x00000040u) {
3042
18
      propagated_hybrid_time_ = from.propagated_hybrid_time_;
3043
18
    }
3044
19
    _has_bits_[0] |= cached_has_bits;
3045
19
  }
3046
19
}
3047
3048
0
void SplitTabletRequestPB::CopyFrom(const ::google::protobuf::Message& from) {
3049
// @@protoc_insertion_point(generalized_copy_from_start:yb.tablet.SplitTabletRequestPB)
3050
0
  if (&from == this) return;
3051
0
  Clear();
3052
0
  MergeFrom(from);
3053
0
}
3054
3055
19
void SplitTabletRequestPB::CopyFrom(const SplitTabletRequestPB& from) {
3056
// @@protoc_insertion_point(class_specific_copy_from_start:yb.tablet.SplitTabletRequestPB)
3057
19
  if (&from == this) return;
3058
19
  Clear();
3059
19
  MergeFrom(from);
3060
19
}
3061
3062
655
bool SplitTabletRequestPB::IsInitialized() const {
3063
655
  if ((_has_bits_[0] & 0x0000003e) != 0x0000003e) return false;
3064
655
  return true;
3065
655
}
3066
3067
0
void SplitTabletRequestPB::Swap(SplitTabletRequestPB* other) {
3068
0
  if (other == this) return;
3069
0
  InternalSwap(other);
3070
0
}
3071
0
void SplitTabletRequestPB::InternalSwap(SplitTabletRequestPB* other) {
3072
0
  using std::swap;
3073
0
  dest_uuid_.Swap(&other->dest_uuid_);
3074
0
  tablet_id_.Swap(&other->tablet_id_);
3075
0
  new_tablet1_id_.Swap(&other->new_tablet1_id_);
3076
0
  new_tablet2_id_.Swap(&other->new_tablet2_id_);
3077
0
  split_partition_key_.Swap(&other->split_partition_key_);
3078
0
  split_encoded_key_.Swap(&other->split_encoded_key_);
3079
0
  swap(propagated_hybrid_time_, other->propagated_hybrid_time_);
3080
0
  swap(_has_bits_[0], other->_has_bits_[0]);
3081
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
3082
0
  swap(_cached_size_, other->_cached_size_);
3083
0
}
3084
3085
167
::google::protobuf::Metadata SplitTabletRequestPB::GetMetadata() const {
3086
167
  protobuf_yb_2ftablet_2foperations_2eproto::protobuf_AssignDescriptorsOnce();
3087
167
  return ::protobuf_yb_2ftablet_2foperations_2eproto::file_level_metadata[kIndexInFileMessages];
3088
167
}
3089
3090
3091
// @@protoc_insertion_point(namespace_scope)
3092
}  // namespace tablet
3093
}  // namespace yb
3094
3095
// @@protoc_insertion_point(global_scope)