YugabyteDB (2.13.1.0-b60, 21121d69985fbf76aa6958d8f04a9bfa936293b5)

Coverage Report

Created: 2022-03-22 16:43

/Users/deen/code/yugabyte-db/build/debugcov-clang-dynamic-arm64-ninja/src/yb/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
26.8k
void InitDefaultsTransactionStatePBImpl() {
54
26.8k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
55
56
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
57
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
58
#else
59
26.8k
  ::google::protobuf::internal::InitProtobufDefaults();
60
26.8k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
61
26.8k
  protobuf_yb_2fcommon_2ftransaction_2eproto::InitDefaultsAbortedSubTransactionSetPB();
62
26.8k
  {
63
26.8k
    void* ptr = &::yb::tablet::_TransactionStatePB_default_instance_;
64
26.8k
    new (ptr) ::yb::tablet::TransactionStatePB();
65
26.8k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
66
26.8k
  }
67
26.8k
  ::yb::tablet::TransactionStatePB::InitAsDefaultInstance();
68
26.8k
}
69
70
8.87M
void InitDefaultsTransactionStatePB() {
71
8.87M
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
72
8.87M
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsTransactionStatePBImpl);
73
8.87M
}
74
75
26.8k
void InitDefaultsTruncatePBImpl() {
76
26.8k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
77
78
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
79
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
80
#else
81
26.8k
  ::google::protobuf::internal::InitProtobufDefaults();
82
26.8k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
83
26.8k
  {
84
26.8k
    void* ptr = &::yb::tablet::_TruncatePB_default_instance_;
85
26.8k
    new (ptr) ::yb::tablet::TruncatePB();
86
26.8k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
87
26.8k
  }
88
26.8k
  ::yb::tablet::TruncatePB::InitAsDefaultInstance();
89
26.8k
}
90
91
252k
void InitDefaultsTruncatePB() {
92
252k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
93
252k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsTruncatePBImpl);
94
252k
}
95
96
26.8k
void InitDefaultsWritePBImpl() {
97
26.8k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
98
99
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
100
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
101
#else
102
26.8k
  ::google::protobuf::internal::InitProtobufDefaults();
103
26.8k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
104
26.8k
  protobuf_yb_2fdocdb_2fdocdb_2eproto::InitDefaultsKeyValueWriteBatchPB();
105
26.8k
  {
106
26.8k
    void* ptr = &::yb::tablet::_WritePB_default_instance_;
107
26.8k
    new (ptr) ::yb::tablet::WritePB();
108
26.8k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
109
26.8k
  }
110
26.8k
  ::yb::tablet::WritePB::InitAsDefaultInstance();
111
26.8k
}
112
113
11.5M
void InitDefaultsWritePB() {
114
11.5M
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
115
11.5M
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsWritePBImpl);
116
11.5M
}
117
118
26.8k
void InitDefaultsChangeMetadataRequestPBImpl() {
119
26.8k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
120
121
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
122
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
123
#else
124
26.8k
  ::google::protobuf::internal::InitProtobufDefaults();
125
26.8k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
126
26.8k
  protobuf_yb_2fcommon_2fcommon_2eproto::InitDefaultsSchemaPB();
127
26.8k
  protobuf_yb_2fcommon_2fcommon_2eproto::InitDefaultsIndexInfoPB();
128
26.8k
  protobuf_yb_2ftablet_2fmetadata_2eproto::InitDefaultsTableInfoPB();
129
26.8k
  {
130
26.8k
    void* ptr = &::yb::tablet::_ChangeMetadataRequestPB_default_instance_;
131
26.8k
    new (ptr) ::yb::tablet::ChangeMetadataRequestPB();
132
26.8k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
133
26.8k
  }
134
26.8k
  ::yb::tablet::ChangeMetadataRequestPB::InitAsDefaultInstance();
135
26.8k
}
136
137
1.69M
void InitDefaultsChangeMetadataRequestPB() {
138
1.69M
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
139
1.69M
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsChangeMetadataRequestPBImpl);
140
1.69M
}
141
142
26.8k
void InitDefaultsSplitTabletRequestPBImpl() {
143
26.8k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
144
145
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
146
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
147
#else
148
26.8k
  ::google::protobuf::internal::InitProtobufDefaults();
149
26.8k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
150
26.8k
  {
151
26.8k
    void* ptr = &::yb::tablet::_SplitTabletRequestPB_default_instance_;
152
26.8k
    new (ptr) ::yb::tablet::SplitTabletRequestPB();
153
26.8k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
154
26.8k
  }
155
26.8k
  ::yb::tablet::SplitTabletRequestPB::InitAsDefaultInstance();
156
26.8k
}
157
158
70.8k
void InitDefaultsSplitTabletRequestPB() {
159
70.8k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
160
70.8k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsSplitTabletRequestPBImpl);
161
70.8k
}
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
12.4k
void protobuf_AssignDescriptors() {
283
12.4k
  AddDescriptors();
284
12.4k
  ::google::protobuf::MessageFactory* factory = NULL;
285
12.4k
  AssignDescriptors(
286
12.4k
      "yb/tablet/operations.proto", schemas, file_default_instances, TableStruct::offsets, factory,
287
12.4k
      file_level_metadata, NULL, NULL);
288
12.4k
}
289
290
39.4M
void protobuf_AssignDescriptorsOnce() {
291
39.4M
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
292
39.4M
  ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors);
293
39.4M
}
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
26.8k
void AddDescriptorsImpl() {
302
26.8k
  InitDefaults();
303
26.8k
  static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
304
26.8k
      "\n\032yb/tablet/operations.proto\022\tyb.tablet\032"
305
26.8k
      "\026yb/common/common.proto\032\033yb/common/trans"
306
26.8k
      "action.proto\032\024yb/docdb/docdb.proto\032\030yb/t"
307
26.8k
      "ablet/metadata.proto\"\331\001\n\022TransactionStat"
308
26.8k
      "ePB\022\026\n\016transaction_id\030\001 \001(\014\022%\n\006status\030\002 "
309
26.8k
      "\001(\0162\025.yb.TransactionStatus\022\017\n\007tablets\030\003 "
310
26.8k
      "\003(\014\022\026\n\016tablet_batches\030\005 \003(\003\022\032\n\022commit_hy"
311
26.8k
      "brid_time\030\004 \001(\006\022\016\n\006sealed\030\006 \001(\010\022/\n\007abort"
312
26.8k
      "ed\030\007 \001(\0132\036.yb.AbortedSubTransactionSetPB"
313
26.8k
      "\"\014\n\nTruncatePB\"\345\001\n\007WritePB\022\030\n\020unused_tab"
314
26.8k
      "let_id\030\001 \001(\014\0223\n\013write_batch\030\007 \001(\0132\036.yb.d"
315
26.8k
      "ocdb.KeyValueWriteBatchPB\022\022\n\nclient_id1\030"
316
26.8k
      "\016 \001(\006\022\022\n\nclient_id2\030\017 \001(\006\022\022\n\nrequest_id\030"
317
26.8k
      "\020 \001(\003\022\036\n\026min_running_request_id\030\021 \001(\003\022\034\n"
318
26.8k
      "\024external_hybrid_time\030\023 \001(\006\022\021\n\tbatch_idx"
319
26.8k
      "\030\024 \001(\004\"\304\003\n\027ChangeMetadataRequestPB\022\021\n\tde"
320
26.8k
      "st_uuid\030\005 \001(\014\022\021\n\ttablet_id\030\001 \002(\014\022\034\n\006sche"
321
26.8k
      "ma\030\002 \001(\0132\014.yb.SchemaPB\022 \n\007indexes\030\007 \003(\0132"
322
26.8k
      "\017.yb.IndexInfoPB\022\026\n\016schema_version\030\003 \001(\r"
323
26.8k
      "\022\026\n\016new_table_name\030\004 \001(\t\022\036\n\026propagated_h"
324
26.8k
      "ybrid_time\030\006 \001(\006\022)\n\tadd_table\030\010 \001(\0132\026.yb"
325
26.8k
      ".tablet.TableInfoPB\022\032\n\022wal_retention_sec"
326
26.8k
      "s\030\t \001(\r\022\027\n\017remove_table_id\030\n \001(\014\022\032\n\022mark"
327
26.8k
      "_backfill_done\030\013 \001(\010\022\026\n\016alter_table_id\030\014"
328
26.8k
      " \001(\014\022\036\n\026backfill_done_table_id\030\r \001(\014\022\026\n\016"
329
26.8k
      "transaction_id\030\016 \001(\014\022\'\n\030should_abort_act"
330
26.8k
      "ive_txns\030\020 \001(\010:\005false\"\304\001\n\024SplitTabletReq"
331
26.8k
      "uestPB\022\021\n\tdest_uuid\030\001 \001(\014\022\036\n\026propagated_"
332
26.8k
      "hybrid_time\030\002 \001(\006\022\021\n\ttablet_id\030\003 \002(\014\022\026\n\016"
333
26.8k
      "new_tablet1_id\030\004 \002(\014\022\026\n\016new_tablet2_id\030\005"
334
26.8k
      " \002(\014\022\033\n\023split_partition_key\030\006 \002(\014\022\031\n\021spl"
335
26.8k
      "it_encoded_key\030\007 \002(\014B\017\n\rorg.yb.tablet"
336
26.8k
  };
337
26.8k
  ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
338
26.8k
      descriptor, 1277);
339
26.8k
  ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
340
26.8k
    "yb/tablet/operations.proto", &protobuf_RegisterTypes);
341
26.8k
  ::protobuf_yb_2fcommon_2fcommon_2eproto::AddDescriptors();
342
26.8k
  ::protobuf_yb_2fcommon_2ftransaction_2eproto::AddDescriptors();
343
26.8k
  ::protobuf_yb_2fdocdb_2fdocdb_2eproto::AddDescriptors();
344
26.8k
  ::protobuf_yb_2ftablet_2fmetadata_2eproto::AddDescriptors();
345
26.8k
}
346
347
163k
void AddDescriptors() {
348
163k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
349
163k
  ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl);
350
163k
}
351
// Force AddDescriptors() to be called at dynamic initialization time.
352
struct StaticDescriptorInitializer {
353
26.8k
  StaticDescriptorInitializer() {
354
26.8k
    AddDescriptors();
355
26.8k
  }
356
} static_descriptor_initializer;
357
}  // namespace protobuf_yb_2ftablet_2foperations_2eproto
358
namespace yb {
359
namespace tablet {
360
361
// ===================================================================
362
363
26.8k
void TransactionStatePB::InitAsDefaultInstance() {
364
26.8k
  ::yb::tablet::_TransactionStatePB_default_instance_._instance.get_mutable()->aborted_ = const_cast< ::yb::AbortedSubTransactionSetPB*>(
365
26.8k
      ::yb::AbortedSubTransactionSetPB::internal_default_instance());
366
26.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
8.80M
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
383
8.80M
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
384
8.77M
    ::protobuf_yb_2ftablet_2foperations_2eproto::InitDefaultsTransactionStatePB();
385
8.77M
  }
386
8.80M
  SharedCtor();
387
  // @@protoc_insertion_point(constructor:yb.tablet.TransactionStatePB)
388
8.80M
}
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
0
      tablet_batches_(from.tablet_batches_) {
396
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
397
0
  transaction_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
398
0
  if (from.has_transaction_id()) {
399
0
    transaction_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.transaction_id_);
400
0
  }
401
0
  if (from.has_aborted()) {
402
0
    aborted_ = new ::yb::AbortedSubTransactionSetPB(*from.aborted_);
403
0
  } else {
404
0
    aborted_ = NULL;
405
0
  }
406
0
  ::memcpy(&commit_hybrid_time_, &from.commit_hybrid_time_,
407
0
    static_cast<size_t>(reinterpret_cast<char*>(&status_) -
408
0
    reinterpret_cast<char*>(&commit_hybrid_time_)) + sizeof(status_));
409
  // @@protoc_insertion_point(copy_constructor:yb.tablet.TransactionStatePB)
410
0
}
411
412
8.80M
void TransactionStatePB::SharedCtor() {
413
8.80M
  _cached_size_ = 0;
414
8.80M
  transaction_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
415
8.80M
  ::memset(&aborted_, 0, static_cast<size_t>(
416
8.80M
      reinterpret_cast<char*>(&sealed_) -
417
8.80M
      reinterpret_cast<char*>(&aborted_)) + sizeof(sealed_));
418
8.80M
  status_ = 1;
419
8.80M
}
420
421
8.77M
TransactionStatePB::~TransactionStatePB() {
422
  // @@protoc_insertion_point(destructor:yb.tablet.TransactionStatePB)
423
8.77M
  SharedDtor();
424
8.77M
}
425
426
8.77M
void TransactionStatePB::SharedDtor() {
427
8.77M
  transaction_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
428
8.77M
  if (this != internal_default_instance()) 
delete aborted_8.76M
;
429
8.77M
}
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
1.10M
void TransactionStatePB::Clear() {
455
// @@protoc_insertion_point(message_clear_start:yb.tablet.TransactionStatePB)
456
1.10M
  ::google::protobuf::uint32 cached_has_bits = 0;
457
  // Prevent compiler warnings about cached_has_bits being unused
458
1.10M
  (void) cached_has_bits;
459
460
1.10M
  tablets_.Clear();
461
1.10M
  tablet_batches_.Clear();
462
1.10M
  cached_has_bits = _has_bits_[0];
463
1.10M
  if (cached_has_bits & 3u) {
464
1
    if (cached_has_bits & 0x00000001u) {
465
1
      GOOGLE_DCHECK(!transaction_id_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
466
1
      (*transaction_id_.UnsafeRawStringPointer())->clear();
467
1
    }
468
1
    if (cached_has_bits & 0x00000002u) {
469
0
      GOOGLE_DCHECK(aborted_ != NULL);
470
0
      aborted_->Clear();
471
0
    }
472
1
  }
473
1.10M
  if (cached_has_bits & 28u) {
474
1
    ::memset(&commit_hybrid_time_, 0, static_cast<size_t>(
475
1
        reinterpret_cast<char*>(&sealed_) -
476
1
        reinterpret_cast<char*>(&commit_hybrid_time_)) + sizeof(sealed_));
477
1
    status_ = 1;
478
1
  }
479
1.10M
  _has_bits_.Clear();
480
1.10M
  _internal_metadata_.Clear();
481
1.10M
}
482
483
bool TransactionStatePB::MergePartialFromCodedStream(
484
4.26M
    ::google::protobuf::io::CodedInputStream* input) {
485
14.9M
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) 
goto failure0
486
4.26M
  ::google::protobuf::uint32 tag;
487
  // @@protoc_insertion_point(parse_start:yb.tablet.TransactionStatePB)
488
19.1M
  for (;;) {
489
19.1M
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
490
19.1M
    tag = p.first;
491
19.1M
    if (!p.second) 
goto handle_unusual4.26M
;
492
14.9M
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
493
      // optional bytes transaction_id = 1;
494
4.21M
      case 1: {
495
4.21M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
496
4.21M
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
497
4.21M
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
498
4.21M
                input, this->mutable_transaction_id()));
499
4.21M
        } else {
500
0
          goto handle_unusual;
501
0
        }
502
4.21M
        break;
503
4.21M
      }
504
505
      // optional .yb.TransactionStatus status = 2;
506
4.26M
      case 2: {
507
4.26M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
508
4.26M
            static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
509
4.26M
          int value;
510
4.26M
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
511
4.26M
                   int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
512
4.26M
                 input, &value)));
513
4.26M
          if (::yb::TransactionStatus_IsValid(value)) {
514
4.26M
            set_status(static_cast< ::yb::TransactionStatus >(value));
515
4.26M
          } else {
516
3.76k
            mutable_unknown_fields()->AddVarint(
517
3.76k
                2, static_cast< ::google::protobuf::uint64>(value));
518
3.76k
          }
519
18.4E
        } else {
520
18.4E
          goto handle_unusual;
521
18.4E
        }
522
4.26M
        break;
523
4.26M
      }
524
525
      // repeated bytes tablets = 3;
526
4.26M
      case 3: {
527
2.33M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
528
2.33M
            static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
529
2.33M
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
530
2.33M
                input, this->add_tablets()));
531
18.4E
        } else {
532
18.4E
          goto handle_unusual;
533
18.4E
        }
534
2.33M
        break;
535
2.33M
      }
536
537
      // optional fixed64 commit_hybrid_time = 4;
538
2.33M
      case 4: {
539
1.16M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
540
1.16M
            static_cast< ::google::protobuf::uint8>(33u /* 33 & 0xFF */)) {
541
1.16M
          set_has_commit_hybrid_time();
542
1.16M
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
543
1.16M
                   ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED64>(
544
1.16M
                 input, &commit_hybrid_time_)));
545
1.16M
        } else {
546
12
          goto handle_unusual;
547
12
        }
548
1.16M
        break;
549
1.16M
      }
550
551
      // repeated int64 tablet_batches = 5;
552
1.16M
      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.77M
      case 6: {
572
1.77M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
573
1.78M
            static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) {
574
1.78M
          set_has_sealed();
575
1.78M
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
576
1.78M
                   bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
577
1.78M
                 input, &sealed_)));
578
18.4E
        } else {
579
18.4E
          goto handle_unusual;
580
18.4E
        }
581
1.78M
        break;
582
1.77M
      }
583
584
      // optional .yb.AbortedSubTransactionSetPB aborted = 7;
585
1.78M
      case 7: {
586
1.16M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
587
1.16M
            static_cast< ::google::protobuf::uint8>(58u /* 58 & 0xFF */)) {
588
1.16M
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
589
1.16M
               input, mutable_aborted()));
590
18.4E
        } else {
591
18.4E
          goto handle_unusual;
592
18.4E
        }
593
1.16M
        break;
594
1.16M
      }
595
596
1.16M
      default: {
597
4.26M
      handle_unusual:
598
4.26M
        if (
tag == 04.26M
) {
599
4.26M
          goto success;
600
4.26M
        }
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
14.9M
    }
606
14.9M
  }
607
4.26M
success:
608
  // @@protoc_insertion_point(parse_success:yb.tablet.TransactionStatePB)
609
4.26M
  return true;
610
0
failure:
611
  // @@protoc_insertion_point(parse_failure:yb.tablet.TransactionStatePB)
612
0
  return false;
613
4.26M
#undef DO_
614
4.26M
}
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
8.76M
    bool deterministic, ::google::protobuf::uint8* target) const {
672
8.76M
  (void)deterministic; // Unused
673
  // @@protoc_insertion_point(serialize_to_array_start:yb.tablet.TransactionStatePB)
674
8.76M
  ::google::protobuf::uint32 cached_has_bits = 0;
675
8.76M
  (void) cached_has_bits;
676
677
8.76M
  cached_has_bits = _has_bits_[0];
678
  // optional bytes transaction_id = 1;
679
8.76M
  if (cached_has_bits & 0x00000001u) {
680
8.70M
    target =
681
8.70M
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
682
8.70M
        1, this->transaction_id(), target);
683
8.70M
  }
684
685
  // optional .yb.TransactionStatus status = 2;
686
8.77M
  if (
cached_has_bits & 0x00000010u8.76M
) {
687
8.77M
    target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
688
8.77M
      2, this->status(), target);
689
8.77M
  }
690
691
  // repeated bytes tablets = 3;
692
13.7M
  for (int i = 0, n = this->tablets_size(); i < n; 
i++4.94M
) {
693
4.94M
    target = ::google::protobuf::internal::WireFormatLite::
694
4.94M
      WriteBytesToArray(3, this->tablets(i), target);
695
4.94M
  }
696
697
  // optional fixed64 commit_hybrid_time = 4;
698
8.76M
  if (cached_has_bits & 0x00000004u) {
699
2.46M
    target = ::google::protobuf::internal::WireFormatLite::WriteFixed64ToArray(4, this->commit_hybrid_time(), target);
700
2.46M
  }
701
702
  // repeated int64 tablet_batches = 5;
703
8.76M
  target = ::google::protobuf::internal::WireFormatLite::
704
8.76M
    WriteInt64ToArray(5, this->tablet_batches_, target);
705
706
  // optional bool sealed = 6;
707
8.76M
  if (cached_has_bits & 0x00000008u) {
708
3.08M
    target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(6, this->sealed(), target);
709
3.08M
  }
710
711
  // optional .yb.AbortedSubTransactionSetPB aborted = 7;
712
8.76M
  if (cached_has_bits & 0x00000002u) {
713
2.47M
    target = ::google::protobuf::internal::WireFormatLite::
714
2.47M
      InternalWriteMessageToArray(
715
2.47M
        7, *this->aborted_, deterministic, target);
716
2.47M
  }
717
718
8.76M
  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
8.76M
  return target;
724
8.76M
}
725
726
20.5M
size_t TransactionStatePB::ByteSizeLong() const {
727
// @@protoc_insertion_point(message_byte_size_start:yb.tablet.TransactionStatePB)
728
20.5M
  size_t total_size = 0;
729
730
20.5M
  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
20.5M
  total_size += 1 *
737
20.5M
      ::google::protobuf::internal::FromIntSize(this->tablets_size());
738
32.1M
  for (int i = 0, n = this->tablets_size(); i < n; 
i++11.6M
) {
739
11.6M
    total_size += ::google::protobuf::internal::WireFormatLite::BytesSize(
740
11.6M
      this->tablets(i));
741
11.6M
  }
742
743
  // repeated int64 tablet_batches = 5;
744
20.5M
  {
745
20.5M
    size_t data_size = ::google::protobuf::internal::WireFormatLite::
746
20.5M
      Int64Size(this->tablet_batches_);
747
20.5M
    total_size += 1 *
748
20.5M
                  ::google::protobuf::internal::FromIntSize(this->tablet_batches_size());
749
20.5M
    total_size += data_size;
750
20.5M
  }
751
752
20.5M
  if (_has_bits_[0 / 32] & 31u) {
753
    // optional bytes transaction_id = 1;
754
20.5M
    if (has_transaction_id()) {
755
20.3M
      total_size += 1 +
756
20.3M
        ::google::protobuf::internal::WireFormatLite::BytesSize(
757
20.3M
          this->transaction_id());
758
20.3M
    }
759
760
    // optional .yb.AbortedSubTransactionSetPB aborted = 7;
761
20.5M
    if (has_aborted()) {
762
5.82M
      total_size += 1 +
763
5.82M
        ::google::protobuf::internal::WireFormatLite::MessageSize(
764
5.82M
          *this->aborted_);
765
5.82M
    }
766
767
    // optional fixed64 commit_hybrid_time = 4;
768
20.5M
    if (has_commit_hybrid_time()) {
769
5.80M
      total_size += 1 + 8;
770
5.80M
    }
771
772
    // optional bool sealed = 6;
773
20.5M
    if (has_sealed()) {
774
7.04M
      total_size += 1 + 1;
775
7.04M
    }
776
777
    // optional .yb.TransactionStatus status = 2;
778
20.5M
    if (
has_status()20.5M
) {
779
20.5M
      total_size += 1 +
780
20.5M
        ::google::protobuf::internal::WireFormatLite::EnumSize(this->status());
781
20.5M
    }
782
783
20.5M
  }
784
20.5M
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
785
20.5M
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
786
20.5M
  _cached_size_ = cached_size;
787
20.5M
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
788
20.5M
  return total_size;
789
20.5M
}
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
1.09M
void TransactionStatePB::MergeFrom(const TransactionStatePB& from) {
807
// @@protoc_insertion_point(class_specific_merge_from_start:yb.tablet.TransactionStatePB)
808
1.09M
  GOOGLE_DCHECK_NE(&from, this);
809
1.09M
  _internal_metadata_.MergeFrom(from._internal_metadata_);
810
1.09M
  ::google::protobuf::uint32 cached_has_bits = 0;
811
1.09M
  (void) cached_has_bits;
812
813
1.09M
  tablets_.MergeFrom(from.tablets_);
814
1.09M
  tablet_batches_.MergeFrom(from.tablet_batches_);
815
1.09M
  cached_has_bits = from._has_bits_[0];
816
1.09M
  if (cached_has_bits & 31u) {
817
1.09M
    if (
cached_has_bits & 0x00000001u1.09M
) {
818
1.09M
      set_has_transaction_id();
819
1.09M
      transaction_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.transaction_id_);
820
1.09M
    }
821
1.09M
    if (cached_has_bits & 0x00000002u) {
822
437k
      mutable_aborted()->::yb::AbortedSubTransactionSetPB::MergeFrom(from.aborted());
823
437k
    }
824
1.09M
    if (cached_has_bits & 0x00000004u) {
825
436k
      commit_hybrid_time_ = from.commit_hybrid_time_;
826
436k
    }
827
1.09M
    if (cached_has_bits & 0x00000008u) {
828
436k
      sealed_ = from.sealed_;
829
436k
    }
830
1.09M
    if (
cached_has_bits & 0x00000010u1.09M
) {
831
1.09M
      status_ = from.status_;
832
1.09M
    }
833
1.09M
    _has_bits_[0] |= cached_has_bits;
834
1.09M
  }
835
1.09M
}
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
1.10M
void TransactionStatePB::CopyFrom(const TransactionStatePB& from) {
845
// @@protoc_insertion_point(class_specific_copy_from_start:yb.tablet.TransactionStatePB)
846
1.10M
  if (&from == this) 
return0
;
847
1.10M
  Clear();
848
1.10M
  MergeFrom(from);
849
1.10M
}
850
851
0
bool TransactionStatePB::IsInitialized() const {
852
0
  return true;
853
0
}
854
855
406k
void TransactionStatePB::Swap(TransactionStatePB* other) {
856
406k
  if (other == this) 
return0
;
857
406k
  InternalSwap(other);
858
406k
}
859
406k
void TransactionStatePB::InternalSwap(TransactionStatePB* other) {
860
406k
  using std::swap;
861
406k
  tablets_.InternalSwap(&other->tablets_);
862
406k
  tablet_batches_.InternalSwap(&other->tablet_batches_);
863
406k
  transaction_id_.Swap(&other->transaction_id_);
864
406k
  swap(aborted_, other->aborted_);
865
406k
  swap(commit_hybrid_time_, other->commit_hybrid_time_);
866
406k
  swap(sealed_, other->sealed_);
867
406k
  swap(status_, other->status_);
868
406k
  swap(_has_bits_[0], other->_has_bits_[0]);
869
406k
  _internal_metadata_.Swap(&other->_internal_metadata_);
870
406k
  swap(_cached_size_, other->_cached_size_);
871
406k
}
872
873
13.4M
::google::protobuf::Metadata TransactionStatePB::GetMetadata() const {
874
13.4M
  protobuf_yb_2ftablet_2foperations_2eproto::protobuf_AssignDescriptorsOnce();
875
13.4M
  return ::protobuf_yb_2ftablet_2foperations_2eproto::file_level_metadata[kIndexInFileMessages];
876
13.4M
}
877
878
879
// ===================================================================
880
881
26.8k
void TruncatePB::InitAsDefaultInstance() {
882
26.8k
}
883
#if !defined(_MSC_VER) || _MSC_VER >= 1900
884
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
885
886
TruncatePB::TruncatePB()
887
198k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
888
198k
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
889
171k
    ::protobuf_yb_2ftablet_2foperations_2eproto::InitDefaultsTruncatePB();
890
171k
  }
891
198k
  SharedCtor();
892
  // @@protoc_insertion_point(constructor:yb.tablet.TruncatePB)
893
198k
}
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
198k
void TruncatePB::SharedCtor() {
904
198k
  _cached_size_ = 0;
905
198k
}
906
907
171k
TruncatePB::~TruncatePB() {
908
  // @@protoc_insertion_point(destructor:yb.tablet.TruncatePB)
909
171k
  SharedDtor();
910
171k
}
911
912
171k
void TruncatePB::SharedDtor() {
913
171k
}
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
56.8k
void TruncatePB::Clear() {
939
// @@protoc_insertion_point(message_clear_start:yb.tablet.TruncatePB)
940
56.8k
  ::google::protobuf::uint32 cached_has_bits = 0;
941
  // Prevent compiler warnings about cached_has_bits being unused
942
56.8k
  (void) cached_has_bits;
943
944
56.8k
  _has_bits_.Clear();
945
56.8k
  _internal_metadata_.Clear();
946
56.8k
}
947
948
bool TruncatePB::MergePartialFromCodedStream(
949
114k
    ::google::protobuf::io::CodedInputStream* input) {
950
18.4E
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) 
goto failure0
951
114k
  ::google::protobuf::uint32 tag;
952
  // @@protoc_insertion_point(parse_start:yb.tablet.TruncatePB)
953
114k
  for (;;) {
954
114k
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
955
114k
    tag = p.first;
956
114k
    if (!p.second) 
goto handle_unusual114k
;
957
114k
  handle_unusual:
958
114k
    if (
tag == 0114k
) {
959
114k
      goto success;
960
114k
    }
961
18.4E
    DO_(::google::protobuf::internal::WireFormat::SkipField(
962
18.4E
          input, tag, _internal_metadata_.mutable_unknown_fields()));
963
18.4E
  }
964
18.4E
success:
965
  // @@protoc_insertion_point(parse_success:yb.tablet.TruncatePB)
966
114k
  return true;
967
0
failure:
968
  // @@protoc_insertion_point(parse_failure:yb.tablet.TruncatePB)
969
0
  return false;
970
114k
#undef DO_
971
114k
}
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
285k
    bool deterministic, ::google::protobuf::uint8* target) const {
988
285k
  (void)deterministic; // Unused
989
  // @@protoc_insertion_point(serialize_to_array_start:yb.tablet.TruncatePB)
990
285k
  ::google::protobuf::uint32 cached_has_bits = 0;
991
285k
  (void) cached_has_bits;
992
993
285k
  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
285k
  return target;
999
285k
}
1000
1001
684k
size_t TruncatePB::ByteSizeLong() const {
1002
// @@protoc_insertion_point(message_byte_size_start:yb.tablet.TruncatePB)
1003
684k
  size_t total_size = 0;
1004
1005
684k
  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
684k
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
1011
684k
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1012
684k
  _cached_size_ = cached_size;
1013
684k
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
1014
684k
  return total_size;
1015
684k
}
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
56.9k
void TruncatePB::MergeFrom(const TruncatePB& from) {
1033
// @@protoc_insertion_point(class_specific_merge_from_start:yb.tablet.TruncatePB)
1034
56.9k
  GOOGLE_DCHECK_NE(&from, this);
1035
56.9k
  _internal_metadata_.MergeFrom(from._internal_metadata_);
1036
56.9k
  ::google::protobuf::uint32 cached_has_bits = 0;
1037
56.9k
  (void) cached_has_bits;
1038
1039
56.9k
}
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
57.0k
void TruncatePB::CopyFrom(const TruncatePB& from) {
1049
// @@protoc_insertion_point(class_specific_copy_from_start:yb.tablet.TruncatePB)
1050
57.0k
  if (&from == this) 
return0
;
1051
57.0k
  Clear();
1052
57.0k
  MergeFrom(from);
1053
57.0k
}
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
456k
::google::protobuf::Metadata TruncatePB::GetMetadata() const {
1071
456k
  protobuf_yb_2ftablet_2foperations_2eproto::protobuf_AssignDescriptorsOnce();
1072
456k
  return ::protobuf_yb_2ftablet_2foperations_2eproto::file_level_metadata[kIndexInFileMessages];
1073
456k
}
1074
1075
1076
// ===================================================================
1077
1078
26.8k
void WritePB::InitAsDefaultInstance() {
1079
26.8k
  ::yb::tablet::_WritePB_default_instance_._instance.get_mutable()->write_batch_ = const_cast< ::yb::docdb::KeyValueWriteBatchPB*>(
1080
26.8k
      ::yb::docdb::KeyValueWriteBatchPB::internal_default_instance());
1081
26.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
11.4M
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
1099
11.4M
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
1100
11.4M
    ::protobuf_yb_2ftablet_2foperations_2eproto::InitDefaultsWritePB();
1101
11.4M
  }
1102
11.4M
  SharedCtor();
1103
  // @@protoc_insertion_point(constructor:yb.tablet.WritePB)
1104
11.4M
}
1105
WritePB::WritePB(const WritePB& from)
1106
  : ::google::protobuf::Message(),
1107
      _internal_metadata_(NULL),
1108
      _has_bits_(from._has_bits_),
1109
116
      _cached_size_(0) {
1110
116
  _internal_metadata_.MergeFrom(from._internal_metadata_);
1111
116
  unused_tablet_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1112
116
  if (from.has_unused_tablet_id()) {
1113
116
    unused_tablet_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.unused_tablet_id_);
1114
116
  }
1115
116
  if (from.has_write_batch()) {
1116
116
    write_batch_ = new ::yb::docdb::KeyValueWriteBatchPB(*from.write_batch_);
1117
116
  } else {
1118
0
    write_batch_ = NULL;
1119
0
  }
1120
116
  ::memcpy(&client_id1_, &from.client_id1_,
1121
116
    static_cast<size_t>(reinterpret_cast<char*>(&batch_idx_) -
1122
116
    reinterpret_cast<char*>(&client_id1_)) + sizeof(batch_idx_));
1123
  // @@protoc_insertion_point(copy_constructor:yb.tablet.WritePB)
1124
116
}
1125
1126
11.4M
void WritePB::SharedCtor() {
1127
11.4M
  _cached_size_ = 0;
1128
11.4M
  unused_tablet_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1129
11.4M
  ::memset(&write_batch_, 0, static_cast<size_t>(
1130
11.4M
      reinterpret_cast<char*>(&batch_idx_) -
1131
11.4M
      reinterpret_cast<char*>(&write_batch_)) + sizeof(batch_idx_));
1132
11.4M
}
1133
1134
11.4M
WritePB::~WritePB() {
1135
  // @@protoc_insertion_point(destructor:yb.tablet.WritePB)
1136
11.4M
  SharedDtor();
1137
11.4M
}
1138
1139
11.4M
void WritePB::SharedDtor() {
1140
11.4M
  unused_tablet_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1141
11.4M
  if (this != internal_default_instance()) 
delete write_batch_11.4M
;
1142
11.4M
}
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
765
void WritePB::Clear() {
1168
// @@protoc_insertion_point(message_clear_start:yb.tablet.WritePB)
1169
765
  ::google::protobuf::uint32 cached_has_bits = 0;
1170
  // Prevent compiler warnings about cached_has_bits being unused
1171
765
  (void) cached_has_bits;
1172
1173
765
  cached_has_bits = _has_bits_[0];
1174
765
  if (cached_has_bits & 3u) {
1175
765
    if (cached_has_bits & 0x00000001u) {
1176
559
      GOOGLE_DCHECK(!unused_tablet_id_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
1177
559
      (*unused_tablet_id_.UnsafeRawStringPointer())->clear();
1178
559
    }
1179
765
    if (cached_has_bits & 0x00000002u) {
1180
765
      GOOGLE_DCHECK(write_batch_ != NULL);
1181
765
      write_batch_->Clear();
1182
765
    }
1183
765
  }
1184
765
  if (cached_has_bits & 252u) {
1185
559
    ::memset(&client_id1_, 0, static_cast<size_t>(
1186
559
        reinterpret_cast<char*>(&batch_idx_) -
1187
559
        reinterpret_cast<char*>(&client_id1_)) + sizeof(batch_idx_));
1188
559
  }
1189
765
  _has_bits_.Clear();
1190
765
  _internal_metadata_.Clear();
1191
765
}
1192
1193
bool WritePB::MergePartialFromCodedStream(
1194
7.61M
    ::google::protobuf::io::CodedInputStream* input) {
1195
46.8M
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) 
goto failure0
1196
7.61M
  ::google::protobuf::uint32 tag;
1197
  // @@protoc_insertion_point(parse_start:yb.tablet.WritePB)
1198
54.4M
  for (;;) {
1199
54.4M
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u);
1200
54.4M
    tag = p.first;
1201
54.4M
    if (!p.second) 
goto handle_unusual7.61M
;
1202
46.8M
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
1203
      // optional bytes unused_tablet_id = 1;
1204
7.22M
      case 1: {
1205
7.22M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1206
7.22M
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
1207
7.22M
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
1208
7.22M
                input, this->mutable_unused_tablet_id()));
1209
18.4E
        } else {
1210
18.4E
          goto handle_unusual;
1211
18.4E
        }
1212
7.22M
        break;
1213
7.22M
      }
1214
1215
      // optional .yb.docdb.KeyValueWriteBatchPB write_batch = 7;
1216
7.56M
      case 7: {
1217
7.56M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1218
7.56M
            static_cast< ::google::protobuf::uint8>(58u /* 58 & 0xFF */)) {
1219
7.56M
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
1220
7.56M
               input, mutable_write_batch()));
1221
18.4E
        } else {
1222
18.4E
          goto handle_unusual;
1223
18.4E
        }
1224
7.56M
        break;
1225
7.56M
      }
1226
1227
      // optional fixed64 client_id1 = 14;
1228
7.56M
      case 14: {
1229
6.21M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1230
6.21M
            static_cast< ::google::protobuf::uint8>(113u /* 113 & 0xFF */)) {
1231
6.21M
          set_has_client_id1();
1232
6.21M
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1233
6.21M
                   ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED64>(
1234
6.21M
                 input, &client_id1_)));
1235
18.4E
        } else {
1236
18.4E
          goto handle_unusual;
1237
18.4E
        }
1238
6.21M
        break;
1239
6.21M
      }
1240
1241
      // optional fixed64 client_id2 = 15;
1242
6.21M
      case 15: {
1243
6.21M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1244
6.21M
            static_cast< ::google::protobuf::uint8>(121u /* 121 & 0xFF */)) {
1245
6.21M
          set_has_client_id2();
1246
6.21M
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1247
6.21M
                   ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED64>(
1248
6.21M
                 input, &client_id2_)));
1249
18.4E
        } else {
1250
18.4E
          goto handle_unusual;
1251
18.4E
        }
1252
6.21M
        break;
1253
6.21M
      }
1254
1255
      // optional int64 request_id = 16;
1256
6.21M
      case 16: {
1257
6.21M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1258
6.21M
            static_cast< ::google::protobuf::uint8>(128u /* 128 & 0xFF */)) {
1259
6.21M
          set_has_request_id();
1260
6.21M
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1261
6.21M
                   ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
1262
6.21M
                 input, &request_id_)));
1263
18.4E
        } else {
1264
18.4E
          goto handle_unusual;
1265
18.4E
        }
1266
6.21M
        break;
1267
6.21M
      }
1268
1269
      // optional int64 min_running_request_id = 17;
1270
6.21M
      case 17: {
1271
6.21M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1272
6.21M
            static_cast< ::google::protobuf::uint8>(136u /* 136 & 0xFF */)) {
1273
6.21M
          set_has_min_running_request_id();
1274
6.21M
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1275
6.21M
                   ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
1276
6.21M
                 input, &min_running_request_id_)));
1277
18.4E
        } else {
1278
18.4E
          goto handle_unusual;
1279
18.4E
        }
1280
6.21M
        break;
1281
6.21M
      }
1282
1283
      // optional fixed64 external_hybrid_time = 19;
1284
6.21M
      case 19: {
1285
3.59k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1286
3.59k
            static_cast< ::google::protobuf::uint8>(153u /* 153 & 0xFF */)) {
1287
3.59k
          set_has_external_hybrid_time();
1288
3.59k
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1289
3.59k
                   ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED64>(
1290
3.59k
                 input, &external_hybrid_time_)));
1291
18.4E
        } else {
1292
18.4E
          goto handle_unusual;
1293
18.4E
        }
1294
3.59k
        break;
1295
3.59k
      }
1296
1297
      // optional uint64 batch_idx = 20;
1298
7.22M
      case 20: {
1299
7.22M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1300
7.22M
            static_cast< ::google::protobuf::uint8>(160u /* 160 & 0xFF */)) {
1301
7.22M
          set_has_batch_idx();
1302
7.22M
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1303
7.22M
                   ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
1304
7.22M
                 input, &batch_idx_)));
1305
18.4E
        } else {
1306
18.4E
          goto handle_unusual;
1307
18.4E
        }
1308
7.22M
        break;
1309
7.22M
      }
1310
1311
7.22M
      default: {
1312
7.61M
      handle_unusual:
1313
7.61M
        if (
tag == 07.61M
) {
1314
7.61M
          goto success;
1315
7.61M
        }
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
46.8M
    }
1321
46.8M
  }
1322
7.61M
success:
1323
  // @@protoc_insertion_point(parse_success:yb.tablet.WritePB)
1324
7.61M
  return true;
1325
0
failure:
1326
  // @@protoc_insertion_point(parse_failure:yb.tablet.WritePB)
1327
0
  return false;
1328
7.61M
#undef DO_
1329
7.61M
}
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
14.7M
    bool deterministic, ::google::protobuf::uint8* target) const {
1389
14.7M
  (void)deterministic; // Unused
1390
  // @@protoc_insertion_point(serialize_to_array_start:yb.tablet.WritePB)
1391
14.7M
  ::google::protobuf::uint32 cached_has_bits = 0;
1392
14.7M
  (void) cached_has_bits;
1393
1394
14.7M
  cached_has_bits = _has_bits_[0];
1395
  // optional bytes unused_tablet_id = 1;
1396
14.7M
  if (cached_has_bits & 0x00000001u) {
1397
14.1M
    target =
1398
14.1M
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
1399
14.1M
        1, this->unused_tablet_id(), target);
1400
14.1M
  }
1401
1402
  // optional .yb.docdb.KeyValueWriteBatchPB write_batch = 7;
1403
14.7M
  if (cached_has_bits & 0x00000002u) {
1404
14.6M
    target = ::google::protobuf::internal::WireFormatLite::
1405
14.6M
      InternalWriteMessageToArray(
1406
14.6M
        7, *this->write_batch_, deterministic, target);
1407
14.6M
  }
1408
1409
  // optional fixed64 client_id1 = 14;
1410
14.7M
  if (cached_has_bits & 0x00000004u) {
1411
11.5M
    target = ::google::protobuf::internal::WireFormatLite::WriteFixed64ToArray(14, this->client_id1(), target);
1412
11.5M
  }
1413
1414
  // optional fixed64 client_id2 = 15;
1415
14.7M
  if (cached_has_bits & 0x00000008u) {
1416
11.5M
    target = ::google::protobuf::internal::WireFormatLite::WriteFixed64ToArray(15, this->client_id2(), target);
1417
11.5M
  }
1418
1419
  // optional int64 request_id = 16;
1420
14.7M
  if (cached_has_bits & 0x00000010u) {
1421
11.5M
    target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(16, this->request_id(), target);
1422
11.5M
  }
1423
1424
  // optional int64 min_running_request_id = 17;
1425
14.7M
  if (cached_has_bits & 0x00000020u) {
1426
11.5M
    target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(17, this->min_running_request_id(), target);
1427
11.5M
  }
1428
1429
  // optional fixed64 external_hybrid_time = 19;
1430
14.7M
  if (cached_has_bits & 0x00000040u) {
1431
9.05k
    target = ::google::protobuf::internal::WireFormatLite::WriteFixed64ToArray(19, this->external_hybrid_time(), target);
1432
9.05k
  }
1433
1434
  // optional uint64 batch_idx = 20;
1435
14.7M
  if (cached_has_bits & 0x00000080u) {
1436
14.1M
    target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(20, this->batch_idx(), target);
1437
14.1M
  }
1438
1439
14.7M
  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
14.7M
  return target;
1445
14.7M
}
1446
1447
34.9M
size_t WritePB::ByteSizeLong() const {
1448
// @@protoc_insertion_point(message_byte_size_start:yb.tablet.WritePB)
1449
34.9M
  size_t total_size = 0;
1450
1451
34.9M
  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
34.9M
  if (_has_bits_[0 / 32] & 255u) {
1457
    // optional bytes unused_tablet_id = 1;
1458
34.8M
    if (has_unused_tablet_id()) {
1459
33.7M
      total_size += 1 +
1460
33.7M
        ::google::protobuf::internal::WireFormatLite::BytesSize(
1461
33.7M
          this->unused_tablet_id());
1462
33.7M
    }
1463
1464
    // optional .yb.docdb.KeyValueWriteBatchPB write_batch = 7;
1465
34.8M
    if (has_write_batch()) {
1466
34.8M
      total_size += 1 +
1467
34.8M
        ::google::protobuf::internal::WireFormatLite::MessageSize(
1468
34.8M
          *this->write_batch_);
1469
34.8M
    }
1470
1471
    // optional fixed64 client_id1 = 14;
1472
34.8M
    if (has_client_id1()) {
1473
27.7M
      total_size += 1 + 8;
1474
27.7M
    }
1475
1476
    // optional fixed64 client_id2 = 15;
1477
34.8M
    if (has_client_id2()) {
1478
27.7M
      total_size += 1 + 8;
1479
27.7M
    }
1480
1481
    // optional int64 request_id = 16;
1482
34.8M
    if (has_request_id()) {
1483
27.7M
      total_size += 2 +
1484
27.7M
        ::google::protobuf::internal::WireFormatLite::Int64Size(
1485
27.7M
          this->request_id());
1486
27.7M
    }
1487
1488
    // optional int64 min_running_request_id = 17;
1489
34.8M
    if (has_min_running_request_id()) {
1490
27.7M
      total_size += 2 +
1491
27.7M
        ::google::protobuf::internal::WireFormatLite::Int64Size(
1492
27.7M
          this->min_running_request_id());
1493
27.7M
    }
1494
1495
    // optional fixed64 external_hybrid_time = 19;
1496
34.8M
    if (has_external_hybrid_time()) {
1497
21.6k
      total_size += 2 + 8;
1498
21.6k
    }
1499
1500
    // optional uint64 batch_idx = 20;
1501
34.8M
    if (has_batch_idx()) {
1502
33.7M
      total_size += 2 +
1503
33.7M
        ::google::protobuf::internal::WireFormatLite::UInt64Size(
1504
33.7M
          this->batch_idx());
1505
33.7M
    }
1506
1507
34.8M
  }
1508
34.9M
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
1509
34.9M
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1510
34.9M
  _cached_size_ = cached_size;
1511
34.9M
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
1512
34.9M
  return total_size;
1513
34.9M
}
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
22.6M
::google::protobuf::Metadata WritePB::GetMetadata() const {
1606
22.6M
  protobuf_yb_2ftablet_2foperations_2eproto::protobuf_AssignDescriptorsOnce();
1607
22.6M
  return ::protobuf_yb_2ftablet_2foperations_2eproto::file_level_metadata[kIndexInFileMessages];
1608
22.6M
}
1609
1610
1611
// ===================================================================
1612
1613
26.8k
void ChangeMetadataRequestPB::InitAsDefaultInstance() {
1614
26.8k
  ::yb::tablet::_ChangeMetadataRequestPB_default_instance_._instance.get_mutable()->schema_ = const_cast< ::yb::SchemaPB*>(
1615
26.8k
      ::yb::SchemaPB::internal_default_instance());
1616
26.8k
  ::yb::tablet::_ChangeMetadataRequestPB_default_instance_._instance.get_mutable()->add_table_ = const_cast< ::yb::tablet::TableInfoPB*>(
1617
26.8k
      ::yb::tablet::TableInfoPB::internal_default_instance());
1618
26.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
1.64M
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
1650
1.64M
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
1651
1.61M
    ::protobuf_yb_2ftablet_2foperations_2eproto::InitDefaultsChangeMetadataRequestPB();
1652
1.61M
  }
1653
1.64M
  SharedCtor();
1654
  // @@protoc_insertion_point(constructor:yb.tablet.ChangeMetadataRequestPB)
1655
1.64M
}
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
1.12k
      indexes_(from.indexes_) {
1662
1.12k
  _internal_metadata_.MergeFrom(from._internal_metadata_);
1663
1.12k
  tablet_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1664
1.12k
  if (from.has_tablet_id()) {
1665
1.12k
    tablet_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.tablet_id_);
1666
1.12k
  }
1667
1.12k
  new_table_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1668
1.12k
  if (from.has_new_table_name()) {
1669
3
    new_table_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.new_table_name_);
1670
3
  }
1671
1.12k
  dest_uuid_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1672
1.12k
  if (from.has_dest_uuid()) {
1673
3
    dest_uuid_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.dest_uuid_);
1674
3
  }
1675
1.12k
  remove_table_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1676
1.12k
  if (from.has_remove_table_id()) {
1677
0
    remove_table_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.remove_table_id_);
1678
0
  }
1679
1.12k
  alter_table_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1680
1.12k
  if (from.has_alter_table_id()) {
1681
3
    alter_table_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.alter_table_id_);
1682
3
  }
1683
1.12k
  backfill_done_table_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1684
1.12k
  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
1.12k
  transaction_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1688
1.12k
  if (from.has_transaction_id()) {
1689
0
    transaction_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.transaction_id_);
1690
0
  }
1691
1.12k
  if (from.has_schema()) {
1692
3
    schema_ = new ::yb::SchemaPB(*from.schema_);
1693
1.12k
  } else {
1694
1.12k
    schema_ = NULL;
1695
1.12k
  }
1696
1.12k
  if (from.has_add_table()) {
1697
1.12k
    add_table_ = new ::yb::tablet::TableInfoPB(*from.add_table_);
1698
1.12k
  } else {
1699
3
    add_table_ = NULL;
1700
3
  }
1701
1.12k
  ::memcpy(&propagated_hybrid_time_, &from.propagated_hybrid_time_,
1702
1.12k
    static_cast<size_t>(reinterpret_cast<char*>(&should_abort_active_txns_) -
1703
1.12k
    reinterpret_cast<char*>(&propagated_hybrid_time_)) + sizeof(should_abort_active_txns_));
1704
  // @@protoc_insertion_point(copy_constructor:yb.tablet.ChangeMetadataRequestPB)
1705
1.12k
}
1706
1707
1.64M
void ChangeMetadataRequestPB::SharedCtor() {
1708
1.64M
  _cached_size_ = 0;
1709
1.64M
  tablet_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1710
1.64M
  new_table_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1711
1.64M
  dest_uuid_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1712
1.64M
  remove_table_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1713
1.64M
  alter_table_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1714
1.64M
  backfill_done_table_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1715
1.64M
  transaction_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1716
1.64M
  ::memset(&schema_, 0, static_cast<size_t>(
1717
1.64M
      reinterpret_cast<char*>(&should_abort_active_txns_) -
1718
1.64M
      reinterpret_cast<char*>(&schema_)) + sizeof(should_abort_active_txns_));
1719
1.64M
}
1720
1721
1.60M
ChangeMetadataRequestPB::~ChangeMetadataRequestPB() {
1722
  // @@protoc_insertion_point(destructor:yb.tablet.ChangeMetadataRequestPB)
1723
1.60M
  SharedDtor();
1724
1.60M
}
1725
1726
1.60M
void ChangeMetadataRequestPB::SharedDtor() {
1727
1.60M
  tablet_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1728
1.60M
  new_table_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1729
1.60M
  dest_uuid_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1730
1.60M
  remove_table_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1731
1.60M
  alter_table_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1732
1.60M
  backfill_done_table_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1733
1.60M
  transaction_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1734
1.60M
  if (this != internal_default_instance()) 
delete schema_1.60M
;
1735
1.60M
  if (this != internal_default_instance()) 
delete add_table_1.60M
;
1736
1.60M
}
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
494k
void ChangeMetadataRequestPB::Clear() {
1762
// @@protoc_insertion_point(message_clear_start:yb.tablet.ChangeMetadataRequestPB)
1763
494k
  ::google::protobuf::uint32 cached_has_bits = 0;
1764
  // Prevent compiler warnings about cached_has_bits being unused
1765
494k
  (void) cached_has_bits;
1766
1767
494k
  indexes_.Clear();
1768
494k
  cached_has_bits = _has_bits_[0];
1769
494k
  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
494k
  if (cached_has_bits & 0x00000100u) {
1804
0
    GOOGLE_DCHECK(add_table_ != NULL);
1805
0
    add_table_->Clear();
1806
0
  }
1807
494k
  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
494k
  _has_bits_.Clear();
1813
494k
  _internal_metadata_.Clear();
1814
494k
}
1815
1816
bool ChangeMetadataRequestPB::MergePartialFromCodedStream(
1817
1.10M
    ::google::protobuf::io::CodedInputStream* input) {
1818
2.72M
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) 
goto failure0
1819
1.10M
  ::google::protobuf::uint32 tag;
1820
  // @@protoc_insertion_point(parse_start:yb.tablet.ChangeMetadataRequestPB)
1821
3.82M
  for (;;) {
1822
3.82M
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u);
1823
3.82M
    tag = p.first;
1824
3.82M
    if (!p.second) 
goto handle_unusual1.10M
;
1825
2.72M
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
1826
      // required bytes tablet_id = 1;
1827
1.10M
      case 1: {
1828
1.10M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1829
1.10M
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
1830
1.10M
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
1831
1.10M
                input, this->mutable_tablet_id()));
1832
1.10M
        } else {
1833
0
          goto handle_unusual;
1834
0
        }
1835
1.10M
        break;
1836
1.10M
      }
1837
1838
      // optional .yb.SchemaPB schema = 2;
1839
1.10M
      case 2: {
1840
78.1k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1841
78.1k
            static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
1842
78.1k
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
1843
78.1k
               input, mutable_schema()));
1844
18.4E
        } else {
1845
18.4E
          goto handle_unusual;
1846
18.4E
        }
1847
78.1k
        break;
1848
78.1k
      }
1849
1850
      // optional uint32 schema_version = 3;
1851
78.1k
      case 3: {
1852
78.0k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1853
78.0k
            static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
1854
78.0k
          set_has_schema_version();
1855
78.0k
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1856
78.0k
                   ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
1857
78.0k
                 input, &schema_version_)));
1858
78.0k
        } else {
1859
6
          goto handle_unusual;
1860
6
        }
1861
78.0k
        break;
1862
78.0k
      }
1863
1864
      // optional string new_table_name = 4;
1865
78.0k
      case 4: {
1866
78.0k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1867
78.0k
            static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
1868
78.0k
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
1869
78.0k
                input, this->mutable_new_table_name()));
1870
78.0k
          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1871
78.0k
            this->new_table_name().data(), static_cast<int>(this->new_table_name().length()),
1872
78.0k
            ::google::protobuf::internal::WireFormat::PARSE,
1873
78.0k
            "yb.tablet.ChangeMetadataRequestPB.new_table_name");
1874
18.4E
        } else {
1875
18.4E
          goto handle_unusual;
1876
18.4E
        }
1877
78.0k
        break;
1878
78.0k
      }
1879
1880
      // optional bytes dest_uuid = 5;
1881
89.2k
      case 5: {
1882
89.2k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1883
89.2k
            static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) {
1884
89.2k
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
1885
89.2k
                input, this->mutable_dest_uuid()));
1886
18.4E
        } else {
1887
18.4E
          goto handle_unusual;
1888
18.4E
        }
1889
89.2k
        break;
1890
89.2k
      }
1891
1892
      // optional fixed64 propagated_hybrid_time = 6;
1893
89.3k
      case 6: {
1894
89.3k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1895
89.4k
            static_cast< ::google::protobuf::uint8>(49u /* 49 & 0xFF */)) {
1896
89.4k
          set_has_propagated_hybrid_time();
1897
89.4k
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1898
89.4k
                   ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED64>(
1899
89.4k
                 input, &propagated_hybrid_time_)));
1900
18.4E
        } else {
1901
18.4E
          goto handle_unusual;
1902
18.4E
        }
1903
89.4k
        break;
1904
89.3k
      }
1905
1906
      // repeated .yb.IndexInfoPB indexes = 7;
1907
89.4k
      case 7: {
1908
81.2k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1909
81.2k
            static_cast< ::google::protobuf::uint8>(58u /* 58 & 0xFF */)) {
1910
81.2k
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_indexes()));
1911
18.4E
        } else {
1912
18.4E
          goto handle_unusual;
1913
18.4E
        }
1914
81.2k
        break;
1915
81.2k
      }
1916
1917
      // optional .yb.tablet.TableInfoPB add_table = 8;
1918
1.01M
      case 8: {
1919
1.01M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1920
1.01M
            static_cast< ::google::protobuf::uint8>(66u /* 66 & 0xFF */)) {
1921
1.01M
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
1922
1.01M
               input, mutable_add_table()));
1923
1.01M
        } else {
1924
0
          goto handle_unusual;
1925
0
        }
1926
1.01M
        break;
1927
1.01M
      }
1928
1929
      // optional uint32 wal_retention_secs = 9;
1930
1.01M
      case 9: {
1931
7.00k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1932
7.00k
            static_cast< ::google::protobuf::uint8>(72u /* 72 & 0xFF */)) {
1933
7.00k
          set_has_wal_retention_secs();
1934
7.00k
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1935
7.00k
                   ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
1936
7.00k
                 input, &wal_retention_secs_)));
1937
7.00k
        } else {
1938
0
          goto handle_unusual;
1939
0
        }
1940
7.00k
        break;
1941
7.00k
      }
1942
1943
      // optional bytes remove_table_id = 10;
1944
7.00k
      case 10: {
1945
158
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1946
158
            static_cast< ::google::protobuf::uint8>(82u /* 82 & 0xFF */)) {
1947
158
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
1948
158
                input, this->mutable_remove_table_id()));
1949
158
        } else {
1950
0
          goto handle_unusual;
1951
0
        }
1952
158
        break;
1953
158
      }
1954
1955
      // optional bool mark_backfill_done = 11;
1956
11.2k
      case 11: {
1957
11.2k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1958
11.2k
            static_cast< ::google::protobuf::uint8>(88u /* 88 & 0xFF */)) {
1959
11.2k
          set_has_mark_backfill_done();
1960
11.2k
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1961
11.2k
                   bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
1962
11.2k
                 input, &mark_backfill_done_)));
1963
18.4E
        } else {
1964
18.4E
          goto handle_unusual;
1965
18.4E
        }
1966
11.2k
        break;
1967
11.2k
      }
1968
1969
      // optional bytes alter_table_id = 12;
1970
78.0k
      case 12: {
1971
78.0k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1972
78.0k
            static_cast< ::google::protobuf::uint8>(98u /* 98 & 0xFF */)) {
1973
78.0k
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
1974
78.0k
                input, this->mutable_alter_table_id()));
1975
18.4E
        } else {
1976
18.4E
          goto handle_unusual;
1977
18.4E
        }
1978
78.0k
        break;
1979
78.0k
      }
1980
1981
      // optional bytes backfill_done_table_id = 13;
1982
78.0k
      case 13: {
1983
11.2k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1984
11.2k
            static_cast< ::google::protobuf::uint8>(106u /* 106 & 0xFF */)) {
1985
11.2k
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
1986
11.2k
                input, this->mutable_backfill_done_table_id()));
1987
18.4E
        } else {
1988
18.4E
          goto handle_unusual;
1989
18.4E
        }
1990
11.2k
        break;
1991
11.2k
      }
1992
1993
      // optional bytes transaction_id = 14;
1994
11.2k
      case 14: {
1995
3.43k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1996
3.43k
            static_cast< ::google::protobuf::uint8>(114u /* 114 & 0xFF */)) {
1997
3.43k
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
1998
3.43k
                input, this->mutable_transaction_id()));
1999
18.4E
        } else {
2000
18.4E
          goto handle_unusual;
2001
18.4E
        }
2002
3.43k
        break;
2003
3.43k
      }
2004
2005
      // optional bool should_abort_active_txns = 16 [default = false];
2006
3.43k
      case 16: {
2007
3.43k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
2008
3.43k
            static_cast< ::google::protobuf::uint8>(128u /* 128 & 0xFF */)) {
2009
3.43k
          set_has_should_abort_active_txns();
2010
3.43k
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2011
3.43k
                   bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
2012
3.43k
                 input, &should_abort_active_txns_)));
2013
18.4E
        } else {
2014
18.4E
          goto handle_unusual;
2015
18.4E
        }
2016
3.43k
        break;
2017
3.43k
      }
2018
2019
3.43k
      default: {
2020
1.10M
      handle_unusual:
2021
1.10M
        if (
tag == 01.10M
) {
2022
1.10M
          goto success;
2023
1.10M
        }
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
2.72M
    }
2029
2.72M
  }
2030
1.10M
success:
2031
  // @@protoc_insertion_point(parse_success:yb.tablet.ChangeMetadataRequestPB)
2032
1.10M
  return true;
2033
0
failure:
2034
  // @@protoc_insertion_point(parse_failure:yb.tablet.ChangeMetadataRequestPB)
2035
0
  return false;
2036
1.10M
#undef DO_
2037
1.10M
}
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
1.78M
    bool deterministic, ::google::protobuf::uint8* target) const {
2145
1.78M
  (void)deterministic; // Unused
2146
  // @@protoc_insertion_point(serialize_to_array_start:yb.tablet.ChangeMetadataRequestPB)
2147
1.78M
  ::google::protobuf::uint32 cached_has_bits = 0;
2148
1.78M
  (void) cached_has_bits;
2149
2150
1.78M
  cached_has_bits = _has_bits_[0];
2151
  // required bytes tablet_id = 1;
2152
1.78M
  if (cached_has_bits & 0x00000001u) {
2153
1.78M
    target =
2154
1.78M
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
2155
1.78M
        1, this->tablet_id(), target);
2156
1.78M
  }
2157
2158
  // optional .yb.SchemaPB schema = 2;
2159
1.78M
  if (cached_has_bits & 0x00000080u) {
2160
144k
    target = ::google::protobuf::internal::WireFormatLite::
2161
144k
      InternalWriteMessageToArray(
2162
144k
        2, *this->schema_, deterministic, target);
2163
144k
  }
2164
2165
  // optional uint32 schema_version = 3;
2166
1.78M
  if (cached_has_bits & 0x00000400u) {
2167
145k
    target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->schema_version(), target);
2168
145k
  }
2169
2170
  // optional string new_table_name = 4;
2171
1.78M
  if (cached_has_bits & 0x00000002u) {
2172
144k
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
2173
144k
      this->new_table_name().data(), static_cast<int>(this->new_table_name().length()),
2174
144k
      ::google::protobuf::internal::WireFormat::SERIALIZE,
2175
144k
      "yb.tablet.ChangeMetadataRequestPB.new_table_name");
2176
144k
    target =
2177
144k
      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
2178
144k
        4, this->new_table_name(), target);
2179
144k
  }
2180
2181
  // optional bytes dest_uuid = 5;
2182
1.78M
  if (cached_has_bits & 0x00000004u) {
2183
166k
    target =
2184
166k
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
2185
166k
        5, this->dest_uuid(), target);
2186
166k
  }
2187
2188
  // optional fixed64 propagated_hybrid_time = 6;
2189
1.78M
  if (cached_has_bits & 0x00000200u) {
2190
166k
    target = ::google::protobuf::internal::WireFormatLite::WriteFixed64ToArray(6, this->propagated_hybrid_time(), target);
2191
166k
  }
2192
2193
  // repeated .yb.IndexInfoPB indexes = 7;
2194
1.78M
  for (unsigned int i = 0,
2195
1.94M
      n = static_cast<unsigned int>(this->indexes_size()); i < n; 
i++161k
) {
2196
161k
    target = ::google::protobuf::internal::WireFormatLite::
2197
161k
      InternalWriteMessageToArray(
2198
161k
        7, this->indexes(static_cast<int>(i)), deterministic, target);
2199
161k
  }
2200
2201
  // optional .yb.tablet.TableInfoPB add_table = 8;
2202
1.78M
  if (cached_has_bits & 0x00000100u) {
2203
1.61M
    target = ::google::protobuf::internal::WireFormatLite::
2204
1.61M
      InternalWriteMessageToArray(
2205
1.61M
        8, *this->add_table_, deterministic, target);
2206
1.61M
  }
2207
2208
  // optional uint32 wal_retention_secs = 9;
2209
1.78M
  if (cached_has_bits & 0x00000800u) {
2210
10.4k
    target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(9, this->wal_retention_secs(), target);
2211
10.4k
  }
2212
2213
  // optional bytes remove_table_id = 10;
2214
1.78M
  if (cached_has_bits & 0x00000008u) {
2215
392
    target =
2216
392
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
2217
392
        10, this->remove_table_id(), target);
2218
392
  }
2219
2220
  // optional bool mark_backfill_done = 11;
2221
1.78M
  if (cached_has_bits & 0x00001000u) {
2222
22.3k
    target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(11, this->mark_backfill_done(), target);
2223
22.3k
  }
2224
2225
  // optional bytes alter_table_id = 12;
2226
1.78M
  if (cached_has_bits & 0x00000010u) {
2227
144k
    target =
2228
144k
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
2229
144k
        12, this->alter_table_id(), target);
2230
144k
  }
2231
2232
  // optional bytes backfill_done_table_id = 13;
2233
1.78M
  if (cached_has_bits & 0x00000020u) {
2234
22.3k
    target =
2235
22.3k
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
2236
22.3k
        13, this->backfill_done_table_id(), target);
2237
22.3k
  }
2238
2239
  // optional bytes transaction_id = 14;
2240
1.78M
  if (cached_has_bits & 0x00000040u) {
2241
6.76k
    target =
2242
6.76k
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
2243
6.76k
        14, this->transaction_id(), target);
2244
6.76k
  }
2245
2246
  // optional bool should_abort_active_txns = 16 [default = false];
2247
1.78M
  if (cached_has_bits & 0x00002000u) {
2248
6.79k
    target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(16, this->should_abort_active_txns(), target);
2249
6.79k
  }
2250
2251
1.78M
  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
1.78M
  return target;
2257
1.78M
}
2258
2259
4.21M
size_t ChangeMetadataRequestPB::ByteSizeLong() const {
2260
// @@protoc_insertion_point(message_byte_size_start:yb.tablet.ChangeMetadataRequestPB)
2261
4.21M
  size_t total_size = 0;
2262
2263
4.21M
  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
4.21M
  if (has_tablet_id()) {
2270
4.21M
    total_size += 1 +
2271
4.21M
      ::google::protobuf::internal::WireFormatLite::BytesSize(
2272
4.21M
        this->tablet_id());
2273
4.21M
  }
2274
  // repeated .yb.IndexInfoPB indexes = 7;
2275
4.21M
  {
2276
4.21M
    unsigned int count = static_cast<unsigned int>(this->indexes_size());
2277
4.21M
    total_size += 1UL * count;
2278
4.59M
    for (unsigned int i = 0; i < count; 
i++376k
) {
2279
376k
      total_size +=
2280
376k
        ::google::protobuf::internal::WireFormatLite::MessageSize(
2281
376k
          this->indexes(static_cast<int>(i)));
2282
376k
    }
2283
4.21M
  }
2284
2285
4.21M
  if (_has_bits_[0 / 32] & 254u) {
2286
    // optional string new_table_name = 4;
2287
394k
    if (has_new_table_name()) {
2288
341k
      total_size += 1 +
2289
341k
        ::google::protobuf::internal::WireFormatLite::StringSize(
2290
341k
          this->new_table_name());
2291
341k
    }
2292
2293
    // optional bytes dest_uuid = 5;
2294
394k
    if (has_dest_uuid()) {
2295
393k
      total_size += 1 +
2296
393k
        ::google::protobuf::internal::WireFormatLite::BytesSize(
2297
393k
          this->dest_uuid());
2298
393k
    }
2299
2300
    // optional bytes remove_table_id = 10;
2301
394k
    if (has_remove_table_id()) {
2302
941
      total_size += 1 +
2303
941
        ::google::protobuf::internal::WireFormatLite::BytesSize(
2304
941
          this->remove_table_id());
2305
941
    }
2306
2307
    // optional bytes alter_table_id = 12;
2308
394k
    if (has_alter_table_id()) {
2309
341k
      total_size += 1 +
2310
341k
        ::google::protobuf::internal::WireFormatLite::BytesSize(
2311
341k
          this->alter_table_id());
2312
341k
    }
2313
2314
    // optional bytes backfill_done_table_id = 13;
2315
394k
    if (has_backfill_done_table_id()) {
2316
51.9k
      total_size += 1 +
2317
51.9k
        ::google::protobuf::internal::WireFormatLite::BytesSize(
2318
51.9k
          this->backfill_done_table_id());
2319
51.9k
    }
2320
2321
    // optional bytes transaction_id = 14;
2322
394k
    if (has_transaction_id()) {
2323
15.8k
      total_size += 1 +
2324
15.8k
        ::google::protobuf::internal::WireFormatLite::BytesSize(
2325
15.8k
          this->transaction_id());
2326
15.8k
    }
2327
2328
    // optional .yb.SchemaPB schema = 2;
2329
394k
    if (has_schema()) {
2330
341k
      total_size += 1 +
2331
341k
        ::google::protobuf::internal::WireFormatLite::MessageSize(
2332
341k
          *this->schema_);
2333
341k
    }
2334
2335
394k
  }
2336
4.21M
  if (_has_bits_[8 / 32] & 16128u) {
2337
    // optional .yb.tablet.TableInfoPB add_table = 8;
2338
4.21M
    if (has_add_table()) {
2339
3.82M
      total_size += 1 +
2340
3.82M
        ::google::protobuf::internal::WireFormatLite::MessageSize(
2341
3.82M
          *this->add_table_);
2342
3.82M
    }
2343
2344
    // optional fixed64 propagated_hybrid_time = 6;
2345
4.21M
    if (has_propagated_hybrid_time()) {
2346
393k
      total_size += 1 + 8;
2347
393k
    }
2348
2349
    // optional uint32 schema_version = 3;
2350
4.21M
    if (has_schema_version()) {
2351
341k
      total_size += 1 +
2352
341k
        ::google::protobuf::internal::WireFormatLite::UInt32Size(
2353
341k
          this->schema_version());
2354
341k
    }
2355
2356
    // optional uint32 wal_retention_secs = 9;
2357
4.21M
    if (has_wal_retention_secs()) {
2358
28.6k
      total_size += 1 +
2359
28.6k
        ::google::protobuf::internal::WireFormatLite::UInt32Size(
2360
28.6k
          this->wal_retention_secs());
2361
28.6k
    }
2362
2363
    // optional bool mark_backfill_done = 11;
2364
4.21M
    if (has_mark_backfill_done()) {
2365
52.0k
      total_size += 1 + 1;
2366
52.0k
    }
2367
2368
    // optional bool should_abort_active_txns = 16 [default = false];
2369
4.21M
    if (has_should_abort_active_txns()) {
2370
15.8k
      total_size += 2 + 1;
2371
15.8k
    }
2372
2373
4.21M
  }
2374
4.21M
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
2375
4.21M
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2376
4.21M
  _cached_size_ = cached_size;
2377
4.21M
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
2378
4.21M
  return total_size;
2379
4.21M
}
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
462k
void ChangeMetadataRequestPB::MergeFrom(const ChangeMetadataRequestPB& from) {
2397
// @@protoc_insertion_point(class_specific_merge_from_start:yb.tablet.ChangeMetadataRequestPB)
2398
462k
  GOOGLE_DCHECK_NE(&from, this);
2399
462k
  _internal_metadata_.MergeFrom(from._internal_metadata_);
2400
462k
  ::google::protobuf::uint32 cached_has_bits = 0;
2401
462k
  (void) cached_has_bits;
2402
2403
462k
  indexes_.MergeFrom(from.indexes_);
2404
462k
  cached_has_bits = from._has_bits_[0];
2405
462k
  if (cached_has_bits & 255u) {
2406
461k
    if (
cached_has_bits & 0x00000001u461k
) {
2407
461k
      set_has_tablet_id();
2408
461k
      tablet_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.tablet_id_);
2409
461k
    }
2410
461k
    if (cached_has_bits & 0x00000002u) {
2411
27.3k
      set_has_new_table_name();
2412
27.3k
      new_table_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.new_table_name_);
2413
27.3k
    }
2414
461k
    if (cached_has_bits & 0x00000004u) {
2415
31.1k
      set_has_dest_uuid();
2416
31.1k
      dest_uuid_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.dest_uuid_);
2417
31.1k
    }
2418
461k
    if (cached_has_bits & 0x00000008u) {
2419
81
      set_has_remove_table_id();
2420
81
      remove_table_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.remove_table_id_);
2421
81
    }
2422
461k
    if (cached_has_bits & 0x00000010u) {
2423
27.4k
      set_has_alter_table_id();
2424
27.4k
      alter_table_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.alter_table_id_);
2425
27.4k
    }
2426
461k
    if (cached_has_bits & 0x00000020u) {
2427
3.71k
      set_has_backfill_done_table_id();
2428
3.71k
      backfill_done_table_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.backfill_done_table_id_);
2429
3.71k
    }
2430
461k
    if (cached_has_bits & 0x00000040u) {
2431
1.13k
      set_has_transaction_id();
2432
1.13k
      transaction_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.transaction_id_);
2433
1.13k
    }
2434
461k
    if (cached_has_bits & 0x00000080u) {
2435
27.4k
      mutable_schema()->::yb::SchemaPB::MergeFrom(from.schema());
2436
27.4k
    }
2437
461k
  }
2438
462k
  if (cached_has_bits & 16128u) {
2439
461k
    if (cached_has_bits & 0x00000100u) {
2440
430k
      mutable_add_table()->::yb::tablet::TableInfoPB::MergeFrom(from.add_table());
2441
430k
    }
2442
461k
    if (cached_has_bits & 0x00000200u) {
2443
31.2k
      propagated_hybrid_time_ = from.propagated_hybrid_time_;
2444
31.2k
    }
2445
461k
    if (cached_has_bits & 0x00000400u) {
2446
27.5k
      schema_version_ = from.schema_version_;
2447
27.5k
    }
2448
461k
    if (cached_has_bits & 0x00000800u) {
2449
5.22k
      wal_retention_secs_ = from.wal_retention_secs_;
2450
5.22k
    }
2451
461k
    if (cached_has_bits & 0x00001000u) {
2452
3.72k
      mark_backfill_done_ = from.mark_backfill_done_;
2453
3.72k
    }
2454
461k
    if (cached_has_bits & 0x00002000u) {
2455
1.14k
      should_abort_active_txns_ = from.should_abort_active_txns_;
2456
1.14k
    }
2457
461k
    _has_bits_[0] |= cached_has_bits;
2458
461k
  }
2459
462k
}
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
461k
void ChangeMetadataRequestPB::CopyFrom(const ChangeMetadataRequestPB& from) {
2469
// @@protoc_insertion_point(class_specific_copy_from_start:yb.tablet.ChangeMetadataRequestPB)
2470
461k
  if (&from == this) 
return0
;
2471
461k
  Clear();
2472
461k
  MergeFrom(from);
2473
461k
}
2474
2475
5.09M
bool ChangeMetadataRequestPB::IsInitialized() const {
2476
5.09M
  if ((_has_bits_[0] & 0x00000001) != 0x00000001) 
return false0
;
2477
5.09M
  if (!::google::protobuf::internal::AllAreInitialized(this->indexes())) 
return false0
;
2478
5.09M
  if (has_schema()) {
2479
367k
    if (!this->schema_->IsInitialized()) 
return false0
;
2480
367k
  }
2481
5.09M
  if (has_add_table()) {
2482
4.67M
    if (!this->add_table_->IsInitialized()) 
return false0
;
2483
4.67M
  }
2484
5.09M
  return true;
2485
5.09M
}
2486
2487
0
void ChangeMetadataRequestPB::Swap(ChangeMetadataRequestPB* other) {
2488
0
  if (other == this) return;
2489
0
  InternalSwap(other);
2490
0
}
2491
4.28k
void ChangeMetadataRequestPB::InternalSwap(ChangeMetadataRequestPB* other) {
2492
4.28k
  using std::swap;
2493
4.28k
  indexes_.InternalSwap(&other->indexes_);
2494
4.28k
  tablet_id_.Swap(&other->tablet_id_);
2495
4.28k
  new_table_name_.Swap(&other->new_table_name_);
2496
4.28k
  dest_uuid_.Swap(&other->dest_uuid_);
2497
4.28k
  remove_table_id_.Swap(&other->remove_table_id_);
2498
4.28k
  alter_table_id_.Swap(&other->alter_table_id_);
2499
4.28k
  backfill_done_table_id_.Swap(&other->backfill_done_table_id_);
2500
4.28k
  transaction_id_.Swap(&other->transaction_id_);
2501
4.28k
  swap(schema_, other->schema_);
2502
4.28k
  swap(add_table_, other->add_table_);
2503
4.28k
  swap(propagated_hybrid_time_, other->propagated_hybrid_time_);
2504
4.28k
  swap(schema_version_, other->schema_version_);
2505
4.28k
  swap(wal_retention_secs_, other->wal_retention_secs_);
2506
4.28k
  swap(mark_backfill_done_, other->mark_backfill_done_);
2507
4.28k
  swap(should_abort_active_txns_, other->should_abort_active_txns_);
2508
4.28k
  swap(_has_bits_[0], other->_has_bits_[0]);
2509
4.28k
  _internal_metadata_.Swap(&other->_internal_metadata_);
2510
4.28k
  swap(_cached_size_, other->_cached_size_);
2511
4.28k
}
2512
2513
2.90M
::google::protobuf::Metadata ChangeMetadataRequestPB::GetMetadata() const {
2514
2.90M
  protobuf_yb_2ftablet_2foperations_2eproto::protobuf_AssignDescriptorsOnce();
2515
2.90M
  return ::protobuf_yb_2ftablet_2foperations_2eproto::file_level_metadata[kIndexInFileMessages];
2516
2.90M
}
2517
2518
2519
// ===================================================================
2520
2521
26.8k
void SplitTabletRequestPB::InitAsDefaultInstance() {
2522
26.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
27.5k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
2535
27.5k
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
2536
662
    ::protobuf_yb_2ftablet_2foperations_2eproto::InitDefaultsSplitTabletRequestPB();
2537
662
  }
2538
27.5k
  SharedCtor();
2539
  // @@protoc_insertion_point(constructor:yb.tablet.SplitTabletRequestPB)
2540
27.5k
}
2541
SplitTabletRequestPB::SplitTabletRequestPB(const SplitTabletRequestPB& from)
2542
  : ::google::protobuf::Message(),
2543
      _internal_metadata_(NULL),
2544
      _has_bits_(from._has_bits_),
2545
3
      _cached_size_(0) {
2546
3
  _internal_metadata_.MergeFrom(from._internal_metadata_);
2547
3
  dest_uuid_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2548
3
  if (from.has_dest_uuid()) {
2549
3
    dest_uuid_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.dest_uuid_);
2550
3
  }
2551
3
  tablet_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2552
3
  if (from.has_tablet_id()) {
2553
3
    tablet_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.tablet_id_);
2554
3
  }
2555
3
  new_tablet1_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2556
3
  if (from.has_new_tablet1_id()) {
2557
3
    new_tablet1_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.new_tablet1_id_);
2558
3
  }
2559
3
  new_tablet2_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2560
3
  if (from.has_new_tablet2_id()) {
2561
3
    new_tablet2_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.new_tablet2_id_);
2562
3
  }
2563
3
  split_partition_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2564
3
  if (from.has_split_partition_key()) {
2565
3
    split_partition_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.split_partition_key_);
2566
3
  }
2567
3
  split_encoded_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2568
3
  if (from.has_split_encoded_key()) {
2569
3
    split_encoded_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.split_encoded_key_);
2570
3
  }
2571
3
  propagated_hybrid_time_ = from.propagated_hybrid_time_;
2572
  // @@protoc_insertion_point(copy_constructor:yb.tablet.SplitTabletRequestPB)
2573
3
}
2574
2575
27.5k
void SplitTabletRequestPB::SharedCtor() {
2576
27.5k
  _cached_size_ = 0;
2577
27.5k
  dest_uuid_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2578
27.5k
  tablet_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2579
27.5k
  new_tablet1_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2580
27.5k
  new_tablet2_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2581
27.5k
  split_partition_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2582
27.5k
  split_encoded_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2583
27.5k
  propagated_hybrid_time_ = GOOGLE_ULONGLONG(0);
2584
27.5k
}
2585
2586
520
SplitTabletRequestPB::~SplitTabletRequestPB() {
2587
  // @@protoc_insertion_point(destructor:yb.tablet.SplitTabletRequestPB)
2588
520
  SharedDtor();
2589
520
}
2590
2591
520
void SplitTabletRequestPB::SharedDtor() {
2592
520
  dest_uuid_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2593
520
  tablet_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2594
520
  new_tablet1_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2595
520
  new_tablet2_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2596
520
  split_partition_key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2597
520
  split_encoded_key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2598
520
}
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
186
void SplitTabletRequestPB::Clear() {
2624
// @@protoc_insertion_point(message_clear_start:yb.tablet.SplitTabletRequestPB)
2625
186
  ::google::protobuf::uint32 cached_has_bits = 0;
2626
  // Prevent compiler warnings about cached_has_bits being unused
2627
186
  (void) cached_has_bits;
2628
2629
186
  cached_has_bits = _has_bits_[0];
2630
186
  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
186
  propagated_hybrid_time_ = GOOGLE_ULONGLONG(0);
2657
186
  _has_bits_.Clear();
2658
186
  _internal_metadata_.Clear();
2659
186
}
2660
2661
bool SplitTabletRequestPB::MergePartialFromCodedStream(
2662
477
    ::google::protobuf::io::CodedInputStream* input) {
2663
3.33k
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) 
goto failure0
2664
477
  ::google::protobuf::uint32 tag;
2665
  // @@protoc_insertion_point(parse_start:yb.tablet.SplitTabletRequestPB)
2666
3.80k
  for (;;) {
2667
3.80k
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
2668
3.80k
    tag = p.first;
2669
3.80k
    if (!p.second) 
goto handle_unusual477
;
2670
3.32k
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
2671
      // optional bytes dest_uuid = 1;
2672
477
      case 1: {
2673
477
        if (static_cast< ::google::protobuf::uint8>(tag) ==
2674
477
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
2675
477
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
2676
477
                input, this->mutable_dest_uuid()));
2677
477
        } else {
2678
0
          goto handle_unusual;
2679
0
        }
2680
477
        break;
2681
477
      }
2682
2683
      // optional fixed64 propagated_hybrid_time = 2;
2684
477
      case 2: {
2685
473
        if (static_cast< ::google::protobuf::uint8>(tag) ==
2686
474
            static_cast< ::google::protobuf::uint8>(17u /* 17 & 0xFF */)) {
2687
474
          set_has_propagated_hybrid_time();
2688
474
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2689
474
                   ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED64>(
2690
474
                 input, &propagated_hybrid_time_)));
2691
18.4E
        } else {
2692
18.4E
          goto handle_unusual;
2693
18.4E
        }
2694
474
        break;
2695
473
      }
2696
2697
      // required bytes tablet_id = 3;
2698
475
      case 3: {
2699
475
        if (static_cast< ::google::protobuf::uint8>(tag) ==
2700
475
            static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
2701
475
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
2702
475
                input, this->mutable_tablet_id()));
2703
475
        } else {
2704
0
          goto handle_unusual;
2705
0
        }
2706
475
        break;
2707
475
      }
2708
2709
      // required bytes new_tablet1_id = 4;
2710
476
      case 4: {
2711
476
        if (static_cast< ::google::protobuf::uint8>(tag) ==
2712
476
            static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
2713
476
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
2714
476
                input, this->mutable_new_tablet1_id()));
2715
476
        } else {
2716
0
          goto handle_unusual;
2717
0
        }
2718
476
        break;
2719
476
      }
2720
2721
      // required bytes new_tablet2_id = 5;
2722
477
      case 5: {
2723
477
        if (static_cast< ::google::protobuf::uint8>(tag) ==
2724
477
            static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) {
2725
477
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
2726
477
                input, this->mutable_new_tablet2_id()));
2727
477
        } else {
2728
0
          goto handle_unusual;
2729
0
        }
2730
477
        break;
2731
477
      }
2732
2733
      // required bytes split_partition_key = 6;
2734
477
      case 6: {
2735
477
        if (static_cast< ::google::protobuf::uint8>(tag) ==
2736
477
            static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) {
2737
477
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
2738
477
                input, this->mutable_split_partition_key()));
2739
477
        } else {
2740
0
          goto handle_unusual;
2741
0
        }
2742
477
        break;
2743
477
      }
2744
2745
      // required bytes split_encoded_key = 7;
2746
477
      case 7: {
2747
477
        if (static_cast< ::google::protobuf::uint8>(tag) ==
2748
477
            static_cast< ::google::protobuf::uint8>(58u /* 58 & 0xFF */)) {
2749
477
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
2750
477
                input, this->mutable_split_encoded_key()));
2751
477
        } else {
2752
0
          goto handle_unusual;
2753
0
        }
2754
477
        break;
2755
477
      }
2756
2757
477
      default: {
2758
476
      handle_unusual:
2759
476
        if (tag == 0) {
2760
476
          goto success;
2761
476
        }
2762
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
2763
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
2764
0
        break;
2765
0
      }
2766
3.32k
    }
2767
3.32k
  }
2768
476
success:
2769
  // @@protoc_insertion_point(parse_success:yb.tablet.SplitTabletRequestPB)
2770
476
  return true;
2771
0
failure:
2772
  // @@protoc_insertion_point(parse_failure:yb.tablet.SplitTabletRequestPB)
2773
0
  return false;
2774
477
#undef DO_
2775
477
}
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
235
    bool deterministic, ::google::protobuf::uint8* target) const {
2834
235
  (void)deterministic; // Unused
2835
  // @@protoc_insertion_point(serialize_to_array_start:yb.tablet.SplitTabletRequestPB)
2836
235
  ::google::protobuf::uint32 cached_has_bits = 0;
2837
235
  (void) cached_has_bits;
2838
2839
235
  cached_has_bits = _has_bits_[0];
2840
  // optional bytes dest_uuid = 1;
2841
235
  if (cached_has_bits & 0x00000001u) {
2842
235
    target =
2843
235
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
2844
235
        1, this->dest_uuid(), target);
2845
235
  }
2846
2847
  // optional fixed64 propagated_hybrid_time = 2;
2848
235
  if (cached_has_bits & 0x00000040u) {
2849
231
    target = ::google::protobuf::internal::WireFormatLite::WriteFixed64ToArray(2, this->propagated_hybrid_time(), target);
2850
231
  }
2851
2852
  // required bytes tablet_id = 3;
2853
235
  if (cached_has_bits & 0x00000002u) {
2854
235
    target =
2855
235
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
2856
235
        3, this->tablet_id(), target);
2857
235
  }
2858
2859
  // required bytes new_tablet1_id = 4;
2860
235
  if (cached_has_bits & 0x00000004u) {
2861
235
    target =
2862
235
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
2863
235
        4, this->new_tablet1_id(), target);
2864
235
  }
2865
2866
  // required bytes new_tablet2_id = 5;
2867
235
  if (cached_has_bits & 0x00000008u) {
2868
235
    target =
2869
235
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
2870
235
        5, this->new_tablet2_id(), target);
2871
235
  }
2872
2873
  // required bytes split_partition_key = 6;
2874
235
  if (cached_has_bits & 0x00000010u) {
2875
235
    target =
2876
235
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
2877
235
        6, this->split_partition_key(), target);
2878
235
  }
2879
2880
  // required bytes split_encoded_key = 7;
2881
235
  if (cached_has_bits & 0x00000020u) {
2882
235
    target =
2883
235
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
2884
235
        7, this->split_encoded_key(), target);
2885
235
  }
2886
2887
235
  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
235
  return target;
2893
235
}
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
497
size_t SplitTabletRequestPB::ByteSizeLong() const {
2937
// @@protoc_insertion_point(message_byte_size_start:yb.tablet.SplitTabletRequestPB)
2938
497
  size_t total_size = 0;
2939
2940
497
  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
497
  if (((_has_bits_[0] & 0x0000003e) ^ 0x0000003e) == 0) {  // All required fields are present.
2946
    // required bytes tablet_id = 3;
2947
497
    total_size += 1 +
2948
497
      ::google::protobuf::internal::WireFormatLite::BytesSize(
2949
497
        this->tablet_id());
2950
2951
    // required bytes new_tablet1_id = 4;
2952
497
    total_size += 1 +
2953
497
      ::google::protobuf::internal::WireFormatLite::BytesSize(
2954
497
        this->new_tablet1_id());
2955
2956
    // required bytes new_tablet2_id = 5;
2957
497
    total_size += 1 +
2958
497
      ::google::protobuf::internal::WireFormatLite::BytesSize(
2959
497
        this->new_tablet2_id());
2960
2961
    // required bytes split_partition_key = 6;
2962
497
    total_size += 1 +
2963
497
      ::google::protobuf::internal::WireFormatLite::BytesSize(
2964
497
        this->split_partition_key());
2965
2966
    // required bytes split_encoded_key = 7;
2967
497
    total_size += 1 +
2968
497
      ::google::protobuf::internal::WireFormatLite::BytesSize(
2969
497
        this->split_encoded_key());
2970
2971
497
  } else {
2972
0
    total_size += RequiredFieldsByteSizeFallback();
2973
0
  }
2974
  // optional bytes dest_uuid = 1;
2975
497
  if (has_dest_uuid()) {
2976
497
    total_size += 1 +
2977
497
      ::google::protobuf::internal::WireFormatLite::BytesSize(
2978
497
        this->dest_uuid());
2979
497
  }
2980
2981
  // optional fixed64 propagated_hybrid_time = 2;
2982
497
  if (has_propagated_hybrid_time()) {
2983
486
    total_size += 1 + 8;
2984
486
  }
2985
2986
497
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
2987
497
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2988
497
  _cached_size_ = cached_size;
2989
497
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
2990
497
  return total_size;
2991
497
}
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
45
void SplitTabletRequestPB::MergeFrom(const SplitTabletRequestPB& from) {
3009
// @@protoc_insertion_point(class_specific_merge_from_start:yb.tablet.SplitTabletRequestPB)
3010
45
  GOOGLE_DCHECK_NE(&from, this);
3011
45
  _internal_metadata_.MergeFrom(from._internal_metadata_);
3012
45
  ::google::protobuf::uint32 cached_has_bits = 0;
3013
45
  (void) cached_has_bits;
3014
3015
45
  cached_has_bits = from._has_bits_[0];
3016
45
  if (cached_has_bits & 127u) {
3017
45
    if (cached_has_bits & 0x00000001u) {
3018
45
      set_has_dest_uuid();
3019
45
      dest_uuid_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.dest_uuid_);
3020
45
    }
3021
45
    if (cached_has_bits & 0x00000002u) {
3022
45
      set_has_tablet_id();
3023
45
      tablet_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.tablet_id_);
3024
45
    }
3025
45
    if (cached_has_bits & 0x00000004u) {
3026
45
      set_has_new_tablet1_id();
3027
45
      new_tablet1_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.new_tablet1_id_);
3028
45
    }
3029
45
    if (cached_has_bits & 0x00000008u) {
3030
45
      set_has_new_tablet2_id();
3031
45
      new_tablet2_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.new_tablet2_id_);
3032
45
    }
3033
45
    if (cached_has_bits & 0x00000010u) {
3034
45
      set_has_split_partition_key();
3035
45
      split_partition_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.split_partition_key_);
3036
45
    }
3037
45
    if (cached_has_bits & 0x00000020u) {
3038
45
      set_has_split_encoded_key();
3039
45
      split_encoded_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.split_encoded_key_);
3040
45
    }
3041
45
    if (cached_has_bits & 0x00000040u) {
3042
44
      propagated_hybrid_time_ = from.propagated_hybrid_time_;
3043
44
    }
3044
45
    _has_bits_[0] |= cached_has_bits;
3045
45
  }
3046
45
}
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
45
void SplitTabletRequestPB::CopyFrom(const SplitTabletRequestPB& from) {
3056
// @@protoc_insertion_point(class_specific_copy_from_start:yb.tablet.SplitTabletRequestPB)
3057
45
  if (&from == this) 
return0
;
3058
45
  Clear();
3059
45
  MergeFrom(from);
3060
45
}
3061
3062
1.12k
bool SplitTabletRequestPB::IsInitialized() const {
3063
1.12k
  if ((_has_bits_[0] & 0x0000003e) != 0x0000003e) 
return false0
;
3064
1.12k
  return true;
3065
1.12k
}
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
309
::google::protobuf::Metadata SplitTabletRequestPB::GetMetadata() const {
3086
309
  protobuf_yb_2ftablet_2foperations_2eproto::protobuf_AssignDescriptorsOnce();
3087
309
  return ::protobuf_yb_2ftablet_2foperations_2eproto::file_level_metadata[kIndexInFileMessages];
3088
309
}
3089
3090
3091
// @@protoc_insertion_point(namespace_scope)
3092
}  // namespace tablet
3093
}  // namespace yb
3094
3095
// @@protoc_insertion_point(global_scope)