YugabyteDB (2.13.0.0-b42, bfc6a6643e7399ac8a0e81d06a3ee6d6571b33ab)

Coverage Report

Created: 2022-03-09 17:30

/Users/deen/code/yugabyte-db/build/debugcov-clang-dynamic-arm64-ninja/src/yb/common/transaction.pb.cc
Line
Count
Source (jump to first uncovered line)
1
// Generated by the protocol buffer compiler.  DO NOT EDIT!
2
// source: yb/common/transaction.proto
3
4
#include "yb/common/transaction.pb.h"
5
6
#include <algorithm>
7
8
#include <google/protobuf/stubs/common.h>
9
#include <google/protobuf/stubs/port.h>
10
#include <google/protobuf/stubs/once.h>
11
#include <google/protobuf/io/coded_stream.h>
12
#include <google/protobuf/wire_format_lite_inl.h>
13
#include <google/protobuf/descriptor.h>
14
#include <google/protobuf/generated_message_reflection.h>
15
#include <google/protobuf/reflection_ops.h>
16
#include <google/protobuf/wire_format.h>
17
// This is a temporary google only hack
18
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
19
#include "third_party/protobuf/version.h"
20
#endif
21
#include "yb/util/protobuf-annotations.h"
22
// @@protoc_insertion_point(includes)
23
namespace yb {
24
class AbortedSubTransactionSetPBDefaultTypeInternal {
25
 public:
26
  ::google::protobuf::internal::ExplicitlyConstructed<AbortedSubTransactionSetPB>
27
      _instance;
28
} _AbortedSubTransactionSetPB_default_instance_;
29
class SubTransactionMetadataPBDefaultTypeInternal {
30
 public:
31
  ::google::protobuf::internal::ExplicitlyConstructed<SubTransactionMetadataPB>
32
      _instance;
33
} _SubTransactionMetadataPB_default_instance_;
34
}  // namespace yb
35
namespace protobuf_yb_2fcommon_2ftransaction_2eproto {
36
17.1k
void InitDefaultsAbortedSubTransactionSetPBImpl() {
37
17.1k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
38
39
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
40
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
41
#else
42
17.1k
  ::google::protobuf::internal::InitProtobufDefaults();
43
17.1k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
44
17.1k
  {
45
17.1k
    void* ptr = &::yb::_AbortedSubTransactionSetPB_default_instance_;
46
17.1k
    new (ptr) ::yb::AbortedSubTransactionSetPB();
47
17.1k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
48
17.1k
  }
49
17.1k
  ::yb::AbortedSubTransactionSetPB::InitAsDefaultInstance();
50
17.1k
}
51
52
2.41M
void InitDefaultsAbortedSubTransactionSetPB() {
53
2.41M
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
54
2.41M
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsAbortedSubTransactionSetPBImpl);
55
2.41M
}
56
57
17.1k
void InitDefaultsSubTransactionMetadataPBImpl() {
58
17.1k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
59
60
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
61
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
62
#else
63
17.1k
  ::google::protobuf::internal::InitProtobufDefaults();
64
17.1k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
65
17.1k
  protobuf_yb_2fcommon_2ftransaction_2eproto::InitDefaultsAbortedSubTransactionSetPB();
66
17.1k
  {
67
17.1k
    void* ptr = &::yb::_SubTransactionMetadataPB_default_instance_;
68
17.1k
    new (ptr) ::yb::SubTransactionMetadataPB();
69
17.1k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
70
17.1k
  }
71
17.1k
  ::yb::SubTransactionMetadataPB::InitAsDefaultInstance();
72
17.1k
}
73
74
173k
void InitDefaultsSubTransactionMetadataPB() {
75
173k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
76
173k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsSubTransactionMetadataPBImpl);
77
173k
}
78
79
::google::protobuf::Metadata file_level_metadata[2];
80
const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors[4];
81
82
const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
83
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::AbortedSubTransactionSetPB, _has_bits_),
84
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::AbortedSubTransactionSetPB, _internal_metadata_),
85
  ~0u,  // no _extensions_
86
  ~0u,  // no _oneof_case_
87
  ~0u,  // no _weak_field_map_
88
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::AbortedSubTransactionSetPB, set_),
89
  ~0u,
90
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::SubTransactionMetadataPB, _has_bits_),
91
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::SubTransactionMetadataPB, _internal_metadata_),
92
  ~0u,  // no _extensions_
93
  ~0u,  // no _oneof_case_
94
  ~0u,  // no _weak_field_map_
95
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::SubTransactionMetadataPB, subtransaction_id_),
96
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::SubTransactionMetadataPB, aborted_),
97
  1,
98
  0,
99
};
100
static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
101
  { 0, 6, sizeof(::yb::AbortedSubTransactionSetPB)},
102
  { 7, 14, sizeof(::yb::SubTransactionMetadataPB)},
103
};
104
105
static ::google::protobuf::Message const * const file_default_instances[] = {
106
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::_AbortedSubTransactionSetPB_default_instance_),
107
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::_SubTransactionMetadataPB_default_instance_),
108
};
109
110
2.13k
void protobuf_AssignDescriptors() {
111
2.13k
  AddDescriptors();
112
2.13k
  ::google::protobuf::MessageFactory* factory = NULL;
113
2.13k
  AssignDescriptors(
114
2.13k
      "yb/common/transaction.proto", schemas, file_default_instances, TableStruct::offsets, factory,
115
2.13k
      file_level_metadata, file_level_enum_descriptors, NULL);
116
2.13k
}
117
118
3.02M
void protobuf_AssignDescriptorsOnce() {
119
3.02M
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
120
3.02M
  ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors);
121
3.02M
}
122
123
void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD;
124
0
void protobuf_RegisterTypes(const ::std::string&) {
125
0
  protobuf_AssignDescriptorsOnce();
126
0
  ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 2);
127
0
}
128
129
17.1k
void AddDescriptorsImpl() {
130
17.1k
  InitDefaults();
131
17.1k
  static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
132
17.1k
      "\n\033yb/common/transaction.proto\022\002yb\")\n\032Abo"
133
17.1k
      "rtedSubTransactionSetPB\022\013\n\003set\030\001 \003(\r\"f\n\030"
134
17.1k
      "SubTransactionMetadataPB\022\031\n\021subtransacti"
135
17.1k
      "on_id\030\001 \001(\r\022/\n\007aborted\030\002 \001(\0132\036.yb.Aborte"
136
17.1k
      "dSubTransactionSetPB*o\n\016IsolationLevel\022\025"
137
17.1k
      "\n\021NON_TRANSACTIONAL\020\000\022\026\n\022SNAPSHOT_ISOLAT"
138
17.1k
      "ION\020\001\022\032\n\026SERIALIZABLE_ISOLATION\020\002\022\022\n\016REA"
139
17.1k
      "D_COMMITTED\020\003*\335\001\n\021TransactionStatus\022\013\n\007C"
140
17.1k
      "REATED\020\001\022\013\n\007PENDING\020\002\022\r\n\tCOMMITTED\020\004\022\n\n\006"
141
17.1k
      "SEALED\020\005\022#\n\037APPLIED_IN_ALL_INVOLVED_TABL"
142
17.1k
      "ETS\020\007\022\013\n\007ABORTED\020\010\022\014\n\010APPLYING\020\024\022&\n\"APPL"
143
17.1k
      "IED_IN_ONE_OF_INVOLVED_TABLETS\020\025\022\025\n\021IMME"
144
17.1k
      "DIATE_CLEANUP\020\026\022\024\n\020GRACEFUL_CLEANUP\020\027*,\n"
145
17.1k
      "\023TransactionLocality\022\n\n\006GLOBAL\020\001\022\t\n\005LOCA"
146
17.1k
      "L\020\002*\255\001\n\013RowMarkType\022\026\n\022ROW_MARK_EXCLUSIV"
147
17.1k
      "E\020\000\022\033\n\027ROW_MARK_NOKEYEXCLUSIVE\020\001\022\022\n\016ROW_"
148
17.1k
      "MARK_SHARE\020\002\022\025\n\021ROW_MARK_KEYSHARE\020\003\022\026\n\022R"
149
17.1k
      "OW_MARK_REFERENCE\020\004\022\021\n\rROW_MARK_COPY\020\005\022\023"
150
17.1k
      "\n\017ROW_MARK_ABSENT\020\017B\010\n\006org.yb"
151
17.1k
  };
152
17.1k
  ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
153
17.1k
      descriptor, 749);
154
17.1k
  ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
155
17.1k
    "yb/common/transaction.proto", &protobuf_RegisterTypes);
156
17.1k
}
157
158
118k
void AddDescriptors() {
159
118k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
160
118k
  ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl);
161
118k
}
162
// Force AddDescriptors() to be called at dynamic initialization time.
163
struct StaticDescriptorInitializer {
164
17.1k
  StaticDescriptorInitializer() {
165
17.1k
    AddDescriptors();
166
17.1k
  }
167
} static_descriptor_initializer;
168
}  // namespace protobuf_yb_2fcommon_2ftransaction_2eproto
169
namespace yb {
170
3.16k
const ::google::protobuf::EnumDescriptor* IsolationLevel_descriptor() {
171
3.16k
  protobuf_yb_2fcommon_2ftransaction_2eproto::protobuf_AssignDescriptorsOnce();
172
3.16k
  return protobuf_yb_2fcommon_2ftransaction_2eproto::file_level_enum_descriptors[0];
173
3.16k
}
174
2.47M
bool IsolationLevel_IsValid(int value) {
175
2.47M
  switch (value) {
176
0
    case 0:
177
1.21M
    case 1:
178
2.32M
    case 2:
179
2.47M
    case 3:
180
2.47M
      return true;
181
0
    default:
182
0
      return false;
183
2.47M
  }
184
2.47M
}
185
186
760k
const ::google::protobuf::EnumDescriptor* TransactionStatus_descriptor() {
187
760k
  protobuf_yb_2fcommon_2ftransaction_2eproto::protobuf_AssignDescriptorsOnce();
188
760k
  return protobuf_yb_2fcommon_2ftransaction_2eproto::file_level_enum_descriptors[1];
189
760k
}
190
7.45M
bool TransactionStatus_IsValid(int value) {
191
7.45M
  switch (value) {
192
1.25M
    case 1:
193
1.73M
    case 2:
194
2.39M
    case 4:
195
2.39M
    case 5:
196
2.91M
    case 7:
197
3.87M
    case 8:
198
5.61M
    case 20:
199
6.18M
    case 21:
200
7.03M
    case 22:
201
7.46M
    case 23:
202
7.46M
      return true;
203
0
    default:
204
0
      return false;
205
7.45M
  }
206
7.45M
}
207
208
0
const ::google::protobuf::EnumDescriptor* TransactionLocality_descriptor() {
209
0
  protobuf_yb_2fcommon_2ftransaction_2eproto::protobuf_AssignDescriptorsOnce();
210
0
  return protobuf_yb_2fcommon_2ftransaction_2eproto::file_level_enum_descriptors[2];
211
0
}
212
2.83M
bool TransactionLocality_IsValid(int value) {
213
2.83M
  switch (value) {
214
2.83M
    case 1:
215
2.83M
    case 2:
216
2.83M
      return true;
217
0
    default:
218
0
      return false;
219
2.83M
  }
220
2.83M
}
221
222
0
const ::google::protobuf::EnumDescriptor* RowMarkType_descriptor() {
223
0
  protobuf_yb_2fcommon_2ftransaction_2eproto::protobuf_AssignDescriptorsOnce();
224
0
  return protobuf_yb_2fcommon_2ftransaction_2eproto::file_level_enum_descriptors[3];
225
0
}
226
49.4k
bool RowMarkType_IsValid(int value) {
227
49.4k
  switch (value) {
228
35.2k
    case 0:
229
35.2k
    case 1:
230
42.0k
    case 2:
231
49.4k
    case 3:
232
49.4k
    case 4:
233
49.4k
    case 5:
234
49.4k
    case 15:
235
49.4k
      return true;
236
0
    default:
237
0
      return false;
238
49.4k
  }
239
49.4k
}
240
241
242
// ===================================================================
243
244
17.1k
void AbortedSubTransactionSetPB::InitAsDefaultInstance() {
245
17.1k
}
246
#if !defined(_MSC_VER) || _MSC_VER >= 1900
247
const int AbortedSubTransactionSetPB::kSetFieldNumber;
248
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
249
250
AbortedSubTransactionSetPB::AbortedSubTransactionSetPB()
251
2.34M
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
252
2.32M
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
253
2.32M
    ::protobuf_yb_2fcommon_2ftransaction_2eproto::InitDefaultsAbortedSubTransactionSetPB();
254
2.32M
  }
255
2.34M
  SharedCtor();
256
  // @@protoc_insertion_point(constructor:yb.AbortedSubTransactionSetPB)
257
2.34M
}
258
AbortedSubTransactionSetPB::AbortedSubTransactionSetPB(const AbortedSubTransactionSetPB& from)
259
  : ::google::protobuf::Message(),
260
      _internal_metadata_(NULL),
261
      _has_bits_(from._has_bits_),
262
      _cached_size_(0),
263
4
      set_(from.set_) {
264
4
  _internal_metadata_.MergeFrom(from._internal_metadata_);
265
  // @@protoc_insertion_point(copy_constructor:yb.AbortedSubTransactionSetPB)
266
4
}
267
268
2.34M
void AbortedSubTransactionSetPB::SharedCtor() {
269
2.34M
  _cached_size_ = 0;
270
2.34M
}
271
272
2.31M
AbortedSubTransactionSetPB::~AbortedSubTransactionSetPB() {
273
  // @@protoc_insertion_point(destructor:yb.AbortedSubTransactionSetPB)
274
2.31M
  SharedDtor();
275
2.31M
}
276
277
2.31M
void AbortedSubTransactionSetPB::SharedDtor() {
278
2.31M
}
279
280
0
void AbortedSubTransactionSetPB::SetCachedSize(int size) const {
281
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
282
0
  _cached_size_ = size;
283
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
284
0
}
285
0
const ::google::protobuf::Descriptor* AbortedSubTransactionSetPB::descriptor() {
286
0
  ::protobuf_yb_2fcommon_2ftransaction_2eproto::protobuf_AssignDescriptorsOnce();
287
0
  return ::protobuf_yb_2fcommon_2ftransaction_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
288
0
}
289
290
0
const AbortedSubTransactionSetPB& AbortedSubTransactionSetPB::default_instance() {
291
0
  ::protobuf_yb_2fcommon_2ftransaction_2eproto::InitDefaultsAbortedSubTransactionSetPB();
292
0
  return *internal_default_instance();
293
0
}
294
295
0
AbortedSubTransactionSetPB* AbortedSubTransactionSetPB::New(::google::protobuf::Arena* arena) const {
296
0
  AbortedSubTransactionSetPB* n = new AbortedSubTransactionSetPB;
297
0
  if (arena != NULL) {
298
0
    arena->Own(n);
299
0
  }
300
0
  return n;
301
0
}
302
303
577k
void AbortedSubTransactionSetPB::Clear() {
304
// @@protoc_insertion_point(message_clear_start:yb.AbortedSubTransactionSetPB)
305
577k
  ::google::protobuf::uint32 cached_has_bits = 0;
306
  // Prevent compiler warnings about cached_has_bits being unused
307
577k
  (void) cached_has_bits;
308
309
577k
  set_.Clear();
310
577k
  _has_bits_.Clear();
311
577k
  _internal_metadata_.Clear();
312
577k
}
313
314
bool AbortedSubTransactionSetPB::MergePartialFromCodedStream(
315
817k
    ::google::protobuf::io::CodedInputStream* input) {
316
40.4k
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
317
817k
  ::google::protobuf::uint32 tag;
318
  // @@protoc_insertion_point(parse_start:yb.AbortedSubTransactionSetPB)
319
857k
  for (;;) {
320
857k
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
321
857k
    tag = p.first;
322
857k
    if (!p.second) goto handle_unusual;
323
41.3k
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
324
      // repeated uint32 set = 1;
325
40.4k
      case 1: {
326
40.4k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
327
40.4k
            static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
328
40.4k
          DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive<
329
40.4k
                   ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
330
40.4k
                 1, 8u, input, this->mutable_set())));
331
0
        } else if (
332
0
            static_cast< ::google::protobuf::uint8>(tag) ==
333
0
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
334
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline<
335
0
                   ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
336
0
                 input, this->mutable_set())));
337
0
        } else {
338
0
          goto handle_unusual;
339
0
        }
340
40.4k
        break;
341
816k
      }
342
343
0
      default: {
344
816k
      handle_unusual:
345
816k
        if (tag == 0) {
346
816k
          goto success;
347
816k
        }
348
1
        DO_(::google::protobuf::internal::WireFormat::SkipField(
349
1
              input, tag, _internal_metadata_.mutable_unknown_fields()));
350
1
        break;
351
1
      }
352
41.3k
    }
353
41.3k
  }
354
816k
success:
355
  // @@protoc_insertion_point(parse_success:yb.AbortedSubTransactionSetPB)
356
816k
  return true;
357
0
failure:
358
  // @@protoc_insertion_point(parse_failure:yb.AbortedSubTransactionSetPB)
359
0
  return false;
360
817k
#undef DO_
361
817k
}
362
363
void AbortedSubTransactionSetPB::SerializeWithCachedSizes(
364
0
    ::google::protobuf::io::CodedOutputStream* output) const {
365
  // @@protoc_insertion_point(serialize_start:yb.AbortedSubTransactionSetPB)
366
0
  ::google::protobuf::uint32 cached_has_bits = 0;
367
0
  (void) cached_has_bits;
368
369
  // repeated uint32 set = 1;
370
0
  for (int i = 0, n = this->set_size(); i < n; i++) {
371
0
    ::google::protobuf::internal::WireFormatLite::WriteUInt32(
372
0
      1, this->set(i), output);
373
0
  }
374
375
0
  if (_internal_metadata_.have_unknown_fields()) {
376
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
377
0
        _internal_metadata_.unknown_fields(), output);
378
0
  }
379
  // @@protoc_insertion_point(serialize_end:yb.AbortedSubTransactionSetPB)
380
0
}
381
382
::google::protobuf::uint8* AbortedSubTransactionSetPB::InternalSerializeWithCachedSizesToArray(
383
1.55M
    bool deterministic, ::google::protobuf::uint8* target) const {
384
1.55M
  (void)deterministic; // Unused
385
  // @@protoc_insertion_point(serialize_to_array_start:yb.AbortedSubTransactionSetPB)
386
1.55M
  ::google::protobuf::uint32 cached_has_bits = 0;
387
1.55M
  (void) cached_has_bits;
388
389
  // repeated uint32 set = 1;
390
1.55M
  target = ::google::protobuf::internal::WireFormatLite::
391
1.55M
    WriteUInt32ToArray(1, this->set_, target);
392
393
1.55M
  if (_internal_metadata_.have_unknown_fields()) {
394
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
395
0
        _internal_metadata_.unknown_fields(), target);
396
0
  }
397
  // @@protoc_insertion_point(serialize_to_array_end:yb.AbortedSubTransactionSetPB)
398
1.55M
  return target;
399
1.55M
}
400
401
3.60M
size_t AbortedSubTransactionSetPB::ByteSizeLong() const {
402
// @@protoc_insertion_point(message_byte_size_start:yb.AbortedSubTransactionSetPB)
403
3.60M
  size_t total_size = 0;
404
405
3.60M
  if (_internal_metadata_.have_unknown_fields()) {
406
0
    total_size +=
407
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
408
0
        _internal_metadata_.unknown_fields());
409
0
  }
410
  // repeated uint32 set = 1;
411
3.60M
  {
412
3.60M
    size_t data_size = ::google::protobuf::internal::WireFormatLite::
413
3.60M
      UInt32Size(this->set_);
414
3.60M
    total_size += 1 *
415
3.60M
                  ::google::protobuf::internal::FromIntSize(this->set_size());
416
3.60M
    total_size += data_size;
417
3.60M
  }
418
419
3.60M
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
420
3.60M
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
421
3.60M
  _cached_size_ = cached_size;
422
3.60M
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
423
3.60M
  return total_size;
424
3.60M
}
425
426
0
void AbortedSubTransactionSetPB::MergeFrom(const ::google::protobuf::Message& from) {
427
// @@protoc_insertion_point(generalized_merge_from_start:yb.AbortedSubTransactionSetPB)
428
0
  GOOGLE_DCHECK_NE(&from, this);
429
0
  const AbortedSubTransactionSetPB* source =
430
0
      ::google::protobuf::internal::DynamicCastToGenerated<const AbortedSubTransactionSetPB>(
431
0
          &from);
432
0
  if (source == NULL) {
433
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.AbortedSubTransactionSetPB)
434
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
435
0
  } else {
436
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.AbortedSubTransactionSetPB)
437
0
    MergeFrom(*source);
438
0
  }
439
0
}
440
441
842k
void AbortedSubTransactionSetPB::MergeFrom(const AbortedSubTransactionSetPB& from) {
442
// @@protoc_insertion_point(class_specific_merge_from_start:yb.AbortedSubTransactionSetPB)
443
842k
  GOOGLE_DCHECK_NE(&from, this);
444
842k
  _internal_metadata_.MergeFrom(from._internal_metadata_);
445
842k
  ::google::protobuf::uint32 cached_has_bits = 0;
446
842k
  (void) cached_has_bits;
447
448
842k
  set_.MergeFrom(from.set_);
449
842k
}
450
451
0
void AbortedSubTransactionSetPB::CopyFrom(const ::google::protobuf::Message& from) {
452
// @@protoc_insertion_point(generalized_copy_from_start:yb.AbortedSubTransactionSetPB)
453
0
  if (&from == this) return;
454
0
  Clear();
455
0
  MergeFrom(from);
456
0
}
457
458
577k
void AbortedSubTransactionSetPB::CopyFrom(const AbortedSubTransactionSetPB& from) {
459
// @@protoc_insertion_point(class_specific_copy_from_start:yb.AbortedSubTransactionSetPB)
460
577k
  if (&from == this) return;
461
577k
  Clear();
462
577k
  MergeFrom(from);
463
577k
}
464
465
0
bool AbortedSubTransactionSetPB::IsInitialized() const {
466
0
  return true;
467
0
}
468
469
0
void AbortedSubTransactionSetPB::Swap(AbortedSubTransactionSetPB* other) {
470
0
  if (other == this) return;
471
0
  InternalSwap(other);
472
0
}
473
0
void AbortedSubTransactionSetPB::InternalSwap(AbortedSubTransactionSetPB* other) {
474
0
  using std::swap;
475
0
  set_.InternalSwap(&other->set_);
476
0
  swap(_has_bits_[0], other->_has_bits_[0]);
477
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
478
0
  swap(_cached_size_, other->_cached_size_);
479
0
}
480
481
2.21M
::google::protobuf::Metadata AbortedSubTransactionSetPB::GetMetadata() const {
482
2.21M
  protobuf_yb_2fcommon_2ftransaction_2eproto::protobuf_AssignDescriptorsOnce();
483
2.21M
  return ::protobuf_yb_2fcommon_2ftransaction_2eproto::file_level_metadata[kIndexInFileMessages];
484
2.21M
}
485
486
487
// ===================================================================
488
489
17.1k
void SubTransactionMetadataPB::InitAsDefaultInstance() {
490
17.1k
  ::yb::_SubTransactionMetadataPB_default_instance_._instance.get_mutable()->aborted_ = const_cast< ::yb::AbortedSubTransactionSetPB*>(
491
17.1k
      ::yb::AbortedSubTransactionSetPB::internal_default_instance());
492
17.1k
}
493
#if !defined(_MSC_VER) || _MSC_VER >= 1900
494
const int SubTransactionMetadataPB::kSubtransactionIdFieldNumber;
495
const int SubTransactionMetadataPB::kAbortedFieldNumber;
496
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
497
498
SubTransactionMetadataPB::SubTransactionMetadataPB()
499
140k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
500
123k
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
501
123k
    ::protobuf_yb_2fcommon_2ftransaction_2eproto::InitDefaultsSubTransactionMetadataPB();
502
123k
  }
503
140k
  SharedCtor();
504
  // @@protoc_insertion_point(constructor:yb.SubTransactionMetadataPB)
505
140k
}
506
SubTransactionMetadataPB::SubTransactionMetadataPB(const SubTransactionMetadataPB& from)
507
  : ::google::protobuf::Message(),
508
      _internal_metadata_(NULL),
509
      _has_bits_(from._has_bits_),
510
0
      _cached_size_(0) {
511
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
512
0
  if (from.has_aborted()) {
513
0
    aborted_ = new ::yb::AbortedSubTransactionSetPB(*from.aborted_);
514
0
  } else {
515
0
    aborted_ = NULL;
516
0
  }
517
0
  subtransaction_id_ = from.subtransaction_id_;
518
  // @@protoc_insertion_point(copy_constructor:yb.SubTransactionMetadataPB)
519
0
}
520
521
140k
void SubTransactionMetadataPB::SharedCtor() {
522
140k
  _cached_size_ = 0;
523
140k
  ::memset(&aborted_, 0, static_cast<size_t>(
524
140k
      reinterpret_cast<char*>(&subtransaction_id_) -
525
140k
      reinterpret_cast<char*>(&aborted_)) + sizeof(subtransaction_id_));
526
140k
}
527
528
123k
SubTransactionMetadataPB::~SubTransactionMetadataPB() {
529
  // @@protoc_insertion_point(destructor:yb.SubTransactionMetadataPB)
530
123k
  SharedDtor();
531
123k
}
532
533
123k
void SubTransactionMetadataPB::SharedDtor() {
534
123k
  if (this != internal_default_instance()) delete aborted_;
535
123k
}
536
537
0
void SubTransactionMetadataPB::SetCachedSize(int size) const {
538
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
539
0
  _cached_size_ = size;
540
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
541
0
}
542
0
const ::google::protobuf::Descriptor* SubTransactionMetadataPB::descriptor() {
543
0
  ::protobuf_yb_2fcommon_2ftransaction_2eproto::protobuf_AssignDescriptorsOnce();
544
0
  return ::protobuf_yb_2fcommon_2ftransaction_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
545
0
}
546
547
0
const SubTransactionMetadataPB& SubTransactionMetadataPB::default_instance() {
548
0
  ::protobuf_yb_2fcommon_2ftransaction_2eproto::InitDefaultsSubTransactionMetadataPB();
549
0
  return *internal_default_instance();
550
0
}
551
552
0
SubTransactionMetadataPB* SubTransactionMetadataPB::New(::google::protobuf::Arena* arena) const {
553
0
  SubTransactionMetadataPB* n = new SubTransactionMetadataPB;
554
0
  if (arena != NULL) {
555
0
    arena->Own(n);
556
0
  }
557
0
  return n;
558
0
}
559
560
0
void SubTransactionMetadataPB::Clear() {
561
// @@protoc_insertion_point(message_clear_start:yb.SubTransactionMetadataPB)
562
0
  ::google::protobuf::uint32 cached_has_bits = 0;
563
  // Prevent compiler warnings about cached_has_bits being unused
564
0
  (void) cached_has_bits;
565
566
0
  cached_has_bits = _has_bits_[0];
567
0
  if (cached_has_bits & 0x00000001u) {
568
0
    GOOGLE_DCHECK(aborted_ != NULL);
569
0
    aborted_->Clear();
570
0
  }
571
0
  subtransaction_id_ = 0u;
572
0
  _has_bits_.Clear();
573
0
  _internal_metadata_.Clear();
574
0
}
575
576
bool SubTransactionMetadataPB::MergePartialFromCodedStream(
577
41.1k
    ::google::protobuf::io::CodedInputStream* input) {
578
82.3k
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
579
41.1k
  ::google::protobuf::uint32 tag;
580
  // @@protoc_insertion_point(parse_start:yb.SubTransactionMetadataPB)
581
123k
  for (;;) {
582
123k
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
583
123k
    tag = p.first;
584
123k
    if (!p.second) goto handle_unusual;
585
82.3k
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
586
      // optional uint32 subtransaction_id = 1;
587
41.1k
      case 1: {
588
41.1k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
589
41.1k
            static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
590
41.1k
          set_has_subtransaction_id();
591
41.1k
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
592
41.1k
                   ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
593
41.1k
                 input, &subtransaction_id_)));
594
0
        } else {
595
0
          goto handle_unusual;
596
0
        }
597
41.1k
        break;
598
41.1k
      }
599
600
      // optional .yb.AbortedSubTransactionSetPB aborted = 2;
601
41.1k
      case 2: {
602
41.1k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
603
41.1k
            static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
604
41.1k
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
605
41.1k
               input, mutable_aborted()));
606
18.4E
        } else {
607
18.4E
          goto handle_unusual;
608
18.4E
        }
609
41.1k
        break;
610
41.1k
      }
611
612
0
      default: {
613
41.1k
      handle_unusual:
614
41.1k
        if (tag == 0) {
615
41.1k
          goto success;
616
41.1k
        }
617
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
618
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
619
0
        break;
620
0
      }
621
82.3k
    }
622
82.3k
  }
623
41.1k
success:
624
  // @@protoc_insertion_point(parse_success:yb.SubTransactionMetadataPB)
625
41.1k
  return true;
626
0
failure:
627
  // @@protoc_insertion_point(parse_failure:yb.SubTransactionMetadataPB)
628
0
  return false;
629
41.1k
#undef DO_
630
41.1k
}
631
632
void SubTransactionMetadataPB::SerializeWithCachedSizes(
633
0
    ::google::protobuf::io::CodedOutputStream* output) const {
634
  // @@protoc_insertion_point(serialize_start:yb.SubTransactionMetadataPB)
635
0
  ::google::protobuf::uint32 cached_has_bits = 0;
636
0
  (void) cached_has_bits;
637
638
0
  cached_has_bits = _has_bits_[0];
639
  // optional uint32 subtransaction_id = 1;
640
0
  if (cached_has_bits & 0x00000002u) {
641
0
    ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->subtransaction_id(), output);
642
0
  }
643
644
  // optional .yb.AbortedSubTransactionSetPB aborted = 2;
645
0
  if (cached_has_bits & 0x00000001u) {
646
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
647
0
      2, *this->aborted_, output);
648
0
  }
649
650
0
  if (_internal_metadata_.have_unknown_fields()) {
651
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
652
0
        _internal_metadata_.unknown_fields(), output);
653
0
  }
654
  // @@protoc_insertion_point(serialize_end:yb.SubTransactionMetadataPB)
655
0
}
656
657
::google::protobuf::uint8* SubTransactionMetadataPB::InternalSerializeWithCachedSizesToArray(
658
41.4k
    bool deterministic, ::google::protobuf::uint8* target) const {
659
41.4k
  (void)deterministic; // Unused
660
  // @@protoc_insertion_point(serialize_to_array_start:yb.SubTransactionMetadataPB)
661
41.4k
  ::google::protobuf::uint32 cached_has_bits = 0;
662
41.4k
  (void) cached_has_bits;
663
664
41.4k
  cached_has_bits = _has_bits_[0];
665
  // optional uint32 subtransaction_id = 1;
666
41.4k
  if (cached_has_bits & 0x00000002u) {
667
41.4k
    target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->subtransaction_id(), target);
668
41.4k
  }
669
670
  // optional .yb.AbortedSubTransactionSetPB aborted = 2;
671
41.4k
  if (cached_has_bits & 0x00000001u) {
672
41.4k
    target = ::google::protobuf::internal::WireFormatLite::
673
41.4k
      InternalWriteMessageToArray(
674
41.4k
        2, *this->aborted_, deterministic, target);
675
41.4k
  }
676
677
41.4k
  if (_internal_metadata_.have_unknown_fields()) {
678
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
679
0
        _internal_metadata_.unknown_fields(), target);
680
0
  }
681
  // @@protoc_insertion_point(serialize_to_array_end:yb.SubTransactionMetadataPB)
682
41.4k
  return target;
683
41.4k
}
684
685
83.1k
size_t SubTransactionMetadataPB::ByteSizeLong() const {
686
// @@protoc_insertion_point(message_byte_size_start:yb.SubTransactionMetadataPB)
687
83.1k
  size_t total_size = 0;
688
689
83.1k
  if (_internal_metadata_.have_unknown_fields()) {
690
0
    total_size +=
691
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
692
0
        _internal_metadata_.unknown_fields());
693
0
  }
694
83.1k
  if (_has_bits_[0 / 32] & 3u) {
695
    // optional .yb.AbortedSubTransactionSetPB aborted = 2;
696
83.1k
    if (has_aborted()) {
697
83.1k
      total_size += 1 +
698
83.1k
        ::google::protobuf::internal::WireFormatLite::MessageSize(
699
83.1k
          *this->aborted_);
700
83.1k
    }
701
702
    // optional uint32 subtransaction_id = 1;
703
83.1k
    if (has_subtransaction_id()) {
704
83.1k
      total_size += 1 +
705
83.1k
        ::google::protobuf::internal::WireFormatLite::UInt32Size(
706
83.1k
          this->subtransaction_id());
707
83.1k
    }
708
709
83.1k
  }
710
83.1k
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
711
83.1k
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
712
83.1k
  _cached_size_ = cached_size;
713
83.1k
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
714
83.1k
  return total_size;
715
83.1k
}
716
717
0
void SubTransactionMetadataPB::MergeFrom(const ::google::protobuf::Message& from) {
718
// @@protoc_insertion_point(generalized_merge_from_start:yb.SubTransactionMetadataPB)
719
0
  GOOGLE_DCHECK_NE(&from, this);
720
0
  const SubTransactionMetadataPB* source =
721
0
      ::google::protobuf::internal::DynamicCastToGenerated<const SubTransactionMetadataPB>(
722
0
          &from);
723
0
  if (source == NULL) {
724
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.SubTransactionMetadataPB)
725
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
726
0
  } else {
727
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.SubTransactionMetadataPB)
728
0
    MergeFrom(*source);
729
0
  }
730
0
}
731
732
18.9k
void SubTransactionMetadataPB::MergeFrom(const SubTransactionMetadataPB& from) {
733
// @@protoc_insertion_point(class_specific_merge_from_start:yb.SubTransactionMetadataPB)
734
18.9k
  GOOGLE_DCHECK_NE(&from, this);
735
18.9k
  _internal_metadata_.MergeFrom(from._internal_metadata_);
736
18.9k
  ::google::protobuf::uint32 cached_has_bits = 0;
737
18.9k
  (void) cached_has_bits;
738
739
18.9k
  cached_has_bits = from._has_bits_[0];
740
18.9k
  if (cached_has_bits & 3u) {
741
18.9k
    if (cached_has_bits & 0x00000001u) {
742
18.9k
      mutable_aborted()->::yb::AbortedSubTransactionSetPB::MergeFrom(from.aborted());
743
18.9k
    }
744
18.9k
    if (cached_has_bits & 0x00000002u) {
745
18.9k
      subtransaction_id_ = from.subtransaction_id_;
746
18.9k
    }
747
18.9k
    _has_bits_[0] |= cached_has_bits;
748
18.9k
  }
749
18.9k
}
750
751
0
void SubTransactionMetadataPB::CopyFrom(const ::google::protobuf::Message& from) {
752
// @@protoc_insertion_point(generalized_copy_from_start:yb.SubTransactionMetadataPB)
753
0
  if (&from == this) return;
754
0
  Clear();
755
0
  MergeFrom(from);
756
0
}
757
758
0
void SubTransactionMetadataPB::CopyFrom(const SubTransactionMetadataPB& from) {
759
// @@protoc_insertion_point(class_specific_copy_from_start:yb.SubTransactionMetadataPB)
760
0
  if (&from == this) return;
761
0
  Clear();
762
0
  MergeFrom(from);
763
0
}
764
765
0
bool SubTransactionMetadataPB::IsInitialized() const {
766
0
  return true;
767
0
}
768
769
0
void SubTransactionMetadataPB::Swap(SubTransactionMetadataPB* other) {
770
0
  if (other == this) return;
771
0
  InternalSwap(other);
772
0
}
773
0
void SubTransactionMetadataPB::InternalSwap(SubTransactionMetadataPB* other) {
774
0
  using std::swap;
775
0
  swap(aborted_, other->aborted_);
776
0
  swap(subtransaction_id_, other->subtransaction_id_);
777
0
  swap(_has_bits_[0], other->_has_bits_[0]);
778
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
779
0
  swap(_cached_size_, other->_cached_size_);
780
0
}
781
782
41.7k
::google::protobuf::Metadata SubTransactionMetadataPB::GetMetadata() const {
783
41.7k
  protobuf_yb_2fcommon_2ftransaction_2eproto::protobuf_AssignDescriptorsOnce();
784
41.7k
  return ::protobuf_yb_2fcommon_2ftransaction_2eproto::file_level_metadata[kIndexInFileMessages];
785
41.7k
}
786
787
788
// @@protoc_insertion_point(namespace_scope)
789
}  // namespace yb
790
791
// @@protoc_insertion_point(global_scope)