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/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
28.1k
void InitDefaultsAbortedSubTransactionSetPBImpl() {
37
28.1k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
38
39
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
40
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
41
#else
42
28.1k
  ::google::protobuf::internal::InitProtobufDefaults();
43
28.1k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
44
28.1k
  {
45
28.1k
    void* ptr = &::yb::_AbortedSubTransactionSetPB_default_instance_;
46
28.1k
    new (ptr) ::yb::AbortedSubTransactionSetPB();
47
28.1k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
48
28.1k
  }
49
28.1k
  ::yb::AbortedSubTransactionSetPB::InitAsDefaultInstance();
50
28.1k
}
51
52
4.02M
void InitDefaultsAbortedSubTransactionSetPB() {
53
4.02M
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
54
4.02M
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsAbortedSubTransactionSetPBImpl);
55
4.02M
}
56
57
28.1k
void InitDefaultsSubTransactionMetadataPBImpl() {
58
28.1k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
59
60
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
61
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
62
#else
63
28.1k
  ::google::protobuf::internal::InitProtobufDefaults();
64
28.1k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
65
28.1k
  protobuf_yb_2fcommon_2ftransaction_2eproto::InitDefaultsAbortedSubTransactionSetPB();
66
28.1k
  {
67
28.1k
    void* ptr = &::yb::_SubTransactionMetadataPB_default_instance_;
68
28.1k
    new (ptr) ::yb::SubTransactionMetadataPB();
69
28.1k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
70
28.1k
  }
71
28.1k
  ::yb::SubTransactionMetadataPB::InitAsDefaultInstance();
72
28.1k
}
73
74
192k
void InitDefaultsSubTransactionMetadataPB() {
75
192k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
76
192k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsSubTransactionMetadataPBImpl);
77
192k
}
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
4.09k
void protobuf_AssignDescriptors() {
111
4.09k
  AddDescriptors();
112
4.09k
  ::google::protobuf::MessageFactory* factory = NULL;
113
4.09k
  AssignDescriptors(
114
4.09k
      "yb/common/transaction.proto", schemas, file_default_instances, TableStruct::offsets, factory,
115
4.09k
      file_level_metadata, file_level_enum_descriptors, NULL);
116
4.09k
}
117
118
5.21M
void protobuf_AssignDescriptorsOnce() {
119
5.21M
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
120
5.21M
  ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors);
121
5.21M
}
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
28.1k
void AddDescriptorsImpl() {
130
28.1k
  InitDefaults();
131
28.1k
  static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
132
28.1k
      "\n\033yb/common/transaction.proto\022\002yb\")\n\032Abo"
133
28.1k
      "rtedSubTransactionSetPB\022\013\n\003set\030\001 \003(\r\"f\n\030"
134
28.1k
      "SubTransactionMetadataPB\022\031\n\021subtransacti"
135
28.1k
      "on_id\030\001 \001(\r\022/\n\007aborted\030\002 \001(\0132\036.yb.Aborte"
136
28.1k
      "dSubTransactionSetPB*o\n\016IsolationLevel\022\025"
137
28.1k
      "\n\021NON_TRANSACTIONAL\020\000\022\026\n\022SNAPSHOT_ISOLAT"
138
28.1k
      "ION\020\001\022\032\n\026SERIALIZABLE_ISOLATION\020\002\022\022\n\016REA"
139
28.1k
      "D_COMMITTED\020\003*\335\001\n\021TransactionStatus\022\013\n\007C"
140
28.1k
      "REATED\020\001\022\013\n\007PENDING\020\002\022\r\n\tCOMMITTED\020\004\022\n\n\006"
141
28.1k
      "SEALED\020\005\022#\n\037APPLIED_IN_ALL_INVOLVED_TABL"
142
28.1k
      "ETS\020\007\022\013\n\007ABORTED\020\010\022\014\n\010APPLYING\020\024\022&\n\"APPL"
143
28.1k
      "IED_IN_ONE_OF_INVOLVED_TABLETS\020\025\022\025\n\021IMME"
144
28.1k
      "DIATE_CLEANUP\020\026\022\024\n\020GRACEFUL_CLEANUP\020\027*,\n"
145
28.1k
      "\023TransactionLocality\022\n\n\006GLOBAL\020\001\022\t\n\005LOCA"
146
28.1k
      "L\020\002*\255\001\n\013RowMarkType\022\026\n\022ROW_MARK_EXCLUSIV"
147
28.1k
      "E\020\000\022\033\n\027ROW_MARK_NOKEYEXCLUSIVE\020\001\022\022\n\016ROW_"
148
28.1k
      "MARK_SHARE\020\002\022\025\n\021ROW_MARK_KEYSHARE\020\003\022\026\n\022R"
149
28.1k
      "OW_MARK_REFERENCE\020\004\022\021\n\rROW_MARK_COPY\020\005\022\023"
150
28.1k
      "\n\017ROW_MARK_ABSENT\020\017B\010\n\006org.yb"
151
28.1k
  };
152
28.1k
  ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
153
28.1k
      descriptor, 749);
154
28.1k
  ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
155
28.1k
    "yb/common/transaction.proto", &protobuf_RegisterTypes);
156
28.1k
}
157
158
197k
void AddDescriptors() {
159
197k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
160
197k
  ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl);
161
197k
}
162
// Force AddDescriptors() to be called at dynamic initialization time.
163
struct StaticDescriptorInitializer {
164
28.1k
  StaticDescriptorInitializer() {
165
28.1k
    AddDescriptors();
166
28.1k
  }
167
} static_descriptor_initializer;
168
}  // namespace protobuf_yb_2fcommon_2ftransaction_2eproto
169
namespace yb {
170
10.4k
const ::google::protobuf::EnumDescriptor* IsolationLevel_descriptor() {
171
10.4k
  protobuf_yb_2fcommon_2ftransaction_2eproto::protobuf_AssignDescriptorsOnce();
172
10.4k
  return protobuf_yb_2fcommon_2ftransaction_2eproto::file_level_enum_descriptors[0];
173
10.4k
}
174
5.01M
bool IsolationLevel_IsValid(int value) {
175
5.01M
  switch (value) {
176
47
    case 0:
177
2.48M
    case 1:
178
4.89M
    case 2:
179
5.01M
    case 3:
180
5.01M
      return true;
181
0
    default:
182
0
      return false;
183
5.01M
  }
184
5.01M
}
185
186
1.26M
const ::google::protobuf::EnumDescriptor* TransactionStatus_descriptor() {
187
1.26M
  protobuf_yb_2fcommon_2ftransaction_2eproto::protobuf_AssignDescriptorsOnce();
188
1.26M
  return protobuf_yb_2fcommon_2ftransaction_2eproto::file_level_enum_descriptors[1];
189
1.26M
}
190
12.4M
bool TransactionStatus_IsValid(int value) {
191
12.4M
  switch (value) {
192
2.06M
    case 1:
193
2.78M
    case 2:
194
3.98M
    case 4:
195
3.98M
    case 5:
196
4.97M
    case 7:
197
6.39M
    case 8:
198
9.32M
    case 20:
199
10.3M
    case 21:
200
11.9M
    case 22:
201
12.5M
    case 23:
202
12.5M
      return true;
203
0
    default:
204
0
      return false;
205
12.4M
  }
206
12.4M
}
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
5.01M
bool TransactionLocality_IsValid(int value) {
213
5.01M
  switch (value) {
214
5.01M
    case 1:
215
5.01M
    case 2:
216
5.01M
      return true;
217
0
    default:
218
0
      return false;
219
5.01M
  }
220
5.01M
}
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
86.3k
bool RowMarkType_IsValid(int value) {
227
86.3k
  switch (value) {
228
54.2k
    case 0:
229
55.6k
    case 1:
230
65.0k
    case 2:
231
86.3k
    case 3:
232
86.3k
    case 4:
233
86.3k
    case 5:
234
86.3k
    case 15:
235
86.3k
      return true;
236
0
    default:
237
0
      return false;
238
86.3k
  }
239
86.3k
}
240
241
242
// ===================================================================
243
244
28.1k
void AbortedSubTransactionSetPB::InitAsDefaultInstance() {
245
28.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
3.91M
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
252
3.91M
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
253
3.88M
    ::protobuf_yb_2fcommon_2ftransaction_2eproto::InitDefaultsAbortedSubTransactionSetPB();
254
3.88M
  }
255
3.91M
  SharedCtor();
256
  // @@protoc_insertion_point(constructor:yb.AbortedSubTransactionSetPB)
257
3.91M
}
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
0
      set_(from.set_) {
264
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
265
  // @@protoc_insertion_point(copy_constructor:yb.AbortedSubTransactionSetPB)
266
0
}
267
268
3.91M
void AbortedSubTransactionSetPB::SharedCtor() {
269
3.91M
  _cached_size_ = 0;
270
3.91M
}
271
272
3.86M
AbortedSubTransactionSetPB::~AbortedSubTransactionSetPB() {
273
  // @@protoc_insertion_point(destructor:yb.AbortedSubTransactionSetPB)
274
3.86M
  SharedDtor();
275
3.86M
}
276
277
3.86M
void AbortedSubTransactionSetPB::SharedDtor() {
278
3.86M
}
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
1.06M
void AbortedSubTransactionSetPB::Clear() {
304
// @@protoc_insertion_point(message_clear_start:yb.AbortedSubTransactionSetPB)
305
1.06M
  ::google::protobuf::uint32 cached_has_bits = 0;
306
  // Prevent compiler warnings about cached_has_bits being unused
307
1.06M
  (void) cached_has_bits;
308
309
1.06M
  set_.Clear();
310
1.06M
  _has_bits_.Clear();
311
1.06M
  _internal_metadata_.Clear();
312
1.06M
}
313
314
bool AbortedSubTransactionSetPB::MergePartialFromCodedStream(
315
1.41M
    ::google::protobuf::io::CodedInputStream* input) {
316
1.41M
#define DO_(EXPRESSION) 
if (44.4k
!GOOGLE_PREDICT_TRUE44.4k
(EXPRESSION))
goto failure0
317
1.41M
  ::google::protobuf::uint32 tag;
318
  // @@protoc_insertion_point(parse_start:yb.AbortedSubTransactionSetPB)
319
1.46M
  for (;;) {
320
1.46M
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
321
1.46M
    tag = p.first;
322
1.46M
    if (!p.second) 
goto handle_unusual1.41M
;
323
45.4k
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
324
      // repeated uint32 set = 1;
325
44.6k
      case 1: {
326
44.6k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
327
44.6k
            static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
328
44.6k
          DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive<
329
44.6k
                   ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
330
44.6k
                 1, 8u, input, this->mutable_set())));
331
18.4E
        } else if (
332
18.4E
            static_cast< ::google::protobuf::uint8>(tag) ==
333
18.4E
            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
18.4E
        } else {
338
18.4E
          goto handle_unusual;
339
18.4E
        }
340
44.6k
        break;
341
44.6k
      }
342
343
44.6k
      default: {
344
1.41M
      handle_unusual:
345
1.41M
        if (
tag == 01.41M
) {
346
1.41M
          goto success;
347
1.41M
        }
348
18.4E
        DO_(::google::protobuf::internal::WireFormat::SkipField(
349
18.4E
              input, tag, _internal_metadata_.mutable_unknown_fields()));
350
18.4E
        break;
351
18.4E
      }
352
45.4k
    }
353
45.4k
  }
354
18.4E
success:
355
  // @@protoc_insertion_point(parse_success:yb.AbortedSubTransactionSetPB)
356
1.41M
  return true;
357
0
failure:
358
  // @@protoc_insertion_point(parse_failure:yb.AbortedSubTransactionSetPB)
359
0
  return false;
360
1.41M
#undef DO_
361
1.41M
}
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
2.73M
    bool deterministic, ::google::protobuf::uint8* target) const {
384
2.73M
  (void)deterministic; // Unused
385
  // @@protoc_insertion_point(serialize_to_array_start:yb.AbortedSubTransactionSetPB)
386
2.73M
  ::google::protobuf::uint32 cached_has_bits = 0;
387
2.73M
  (void) cached_has_bits;
388
389
  // repeated uint32 set = 1;
390
2.73M
  target = ::google::protobuf::internal::WireFormatLite::
391
2.73M
    WriteUInt32ToArray(1, this->set_, target);
392
393
2.73M
  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
2.73M
  return target;
399
2.73M
}
400
401
6.35M
size_t AbortedSubTransactionSetPB::ByteSizeLong() const {
402
// @@protoc_insertion_point(message_byte_size_start:yb.AbortedSubTransactionSetPB)
403
6.35M
  size_t total_size = 0;
404
405
6.35M
  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
6.35M
  {
412
6.35M
    size_t data_size = ::google::protobuf::internal::WireFormatLite::
413
6.35M
      UInt32Size(this->set_);
414
6.35M
    total_size += 1 *
415
6.35M
                  ::google::protobuf::internal::FromIntSize(this->set_size());
416
6.35M
    total_size += data_size;
417
6.35M
  }
418
419
6.35M
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
420
6.35M
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
421
6.35M
  _cached_size_ = cached_size;
422
6.35M
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
423
6.35M
  return total_size;
424
6.35M
}
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
1.51M
void AbortedSubTransactionSetPB::MergeFrom(const AbortedSubTransactionSetPB& from) {
442
// @@protoc_insertion_point(class_specific_merge_from_start:yb.AbortedSubTransactionSetPB)
443
1.51M
  GOOGLE_DCHECK_NE(&from, this);
444
1.51M
  _internal_metadata_.MergeFrom(from._internal_metadata_);
445
1.51M
  ::google::protobuf::uint32 cached_has_bits = 0;
446
1.51M
  (void) cached_has_bits;
447
448
1.51M
  set_.MergeFrom(from.set_);
449
1.51M
}
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
1.06M
void AbortedSubTransactionSetPB::CopyFrom(const AbortedSubTransactionSetPB& from) {
459
// @@protoc_insertion_point(class_specific_copy_from_start:yb.AbortedSubTransactionSetPB)
460
1.06M
  if (&from == this) 
return0
;
461
1.06M
  Clear();
462
1.06M
  MergeFrom(from);
463
1.06M
}
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
3.88M
::google::protobuf::Metadata AbortedSubTransactionSetPB::GetMetadata() const {
482
3.88M
  protobuf_yb_2fcommon_2ftransaction_2eproto::protobuf_AssignDescriptorsOnce();
483
3.88M
  return ::protobuf_yb_2fcommon_2ftransaction_2eproto::file_level_metadata[kIndexInFileMessages];
484
3.88M
}
485
486
487
// ===================================================================
488
489
28.1k
void SubTransactionMetadataPB::InitAsDefaultInstance() {
490
28.1k
  ::yb::_SubTransactionMetadataPB_default_instance_._instance.get_mutable()->aborted_ = const_cast< ::yb::AbortedSubTransactionSetPB*>(
491
28.1k
      ::yb::AbortedSubTransactionSetPB::internal_default_instance());
492
28.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
137k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
500
137k
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
501
109k
    ::protobuf_yb_2fcommon_2ftransaction_2eproto::InitDefaultsSubTransactionMetadataPB();
502
109k
  }
503
137k
  SharedCtor();
504
  // @@protoc_insertion_point(constructor:yb.SubTransactionMetadataPB)
505
137k
}
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
137k
void SubTransactionMetadataPB::SharedCtor() {
522
137k
  _cached_size_ = 0;
523
137k
  ::memset(&aborted_, 0, static_cast<size_t>(
524
137k
      reinterpret_cast<char*>(&subtransaction_id_) -
525
137k
      reinterpret_cast<char*>(&aborted_)) + sizeof(subtransaction_id_));
526
137k
}
527
528
109k
SubTransactionMetadataPB::~SubTransactionMetadataPB() {
529
  // @@protoc_insertion_point(destructor:yb.SubTransactionMetadataPB)
530
109k
  SharedDtor();
531
109k
}
532
533
109k
void SubTransactionMetadataPB::SharedDtor() {
534
109k
  if (this != internal_default_instance()) 
delete aborted_109k
;
535
109k
}
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
43.5k
    ::google::protobuf::io::CodedInputStream* input) {
578
87.0k
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) 
goto failure0
579
43.5k
  ::google::protobuf::uint32 tag;
580
  // @@protoc_insertion_point(parse_start:yb.SubTransactionMetadataPB)
581
130k
  for (;;) {
582
130k
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
583
130k
    tag = p.first;
584
130k
    if (!p.second) 
goto handle_unusual43.5k
;
585
87.0k
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
586
      // optional uint32 subtransaction_id = 1;
587
43.5k
      case 1: {
588
43.5k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
589
43.5k
            static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
590
43.5k
          set_has_subtransaction_id();
591
43.5k
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
592
43.5k
                   ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
593
43.5k
                 input, &subtransaction_id_)));
594
43.5k
        } else {
595
0
          goto handle_unusual;
596
0
        }
597
43.5k
        break;
598
43.5k
      }
599
600
      // optional .yb.AbortedSubTransactionSetPB aborted = 2;
601
43.5k
      case 2: {
602
43.5k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
603
43.5k
            static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
604
43.5k
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
605
43.5k
               input, mutable_aborted()));
606
43.5k
        } else {
607
0
          goto handle_unusual;
608
0
        }
609
43.5k
        break;
610
43.5k
      }
611
612
43.5k
      default: {
613
43.5k
      handle_unusual:
614
43.5k
        if (tag == 0) {
615
43.5k
          goto success;
616
43.5k
        }
617
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
618
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
619
0
        break;
620
0
      }
621
87.0k
    }
622
87.0k
  }
623
43.5k
success:
624
  // @@protoc_insertion_point(parse_success:yb.SubTransactionMetadataPB)
625
43.5k
  return true;
626
0
failure:
627
  // @@protoc_insertion_point(parse_failure:yb.SubTransactionMetadataPB)
628
0
  return false;
629
43.5k
#undef DO_
630
43.5k
}
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
52.8k
    bool deterministic, ::google::protobuf::uint8* target) const {
659
52.8k
  (void)deterministic; // Unused
660
  // @@protoc_insertion_point(serialize_to_array_start:yb.SubTransactionMetadataPB)
661
52.8k
  ::google::protobuf::uint32 cached_has_bits = 0;
662
52.8k
  (void) cached_has_bits;
663
664
52.8k
  cached_has_bits = _has_bits_[0];
665
  // optional uint32 subtransaction_id = 1;
666
52.8k
  if (cached_has_bits & 0x00000002u) {
667
52.8k
    target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->subtransaction_id(), target);
668
52.8k
  }
669
670
  // optional .yb.AbortedSubTransactionSetPB aborted = 2;
671
52.8k
  if (cached_has_bits & 0x00000001u) {
672
52.8k
    target = ::google::protobuf::internal::WireFormatLite::
673
52.8k
      InternalWriteMessageToArray(
674
52.8k
        2, *this->aborted_, deterministic, target);
675
52.8k
  }
676
677
52.8k
  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
52.8k
  return target;
683
52.8k
}
684
685
111k
size_t SubTransactionMetadataPB::ByteSizeLong() const {
686
// @@protoc_insertion_point(message_byte_size_start:yb.SubTransactionMetadataPB)
687
111k
  size_t total_size = 0;
688
689
111k
  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
111k
  if (_has_bits_[0 / 32] & 3u) {
695
    // optional .yb.AbortedSubTransactionSetPB aborted = 2;
696
111k
    if (has_aborted()) {
697
111k
      total_size += 1 +
698
111k
        ::google::protobuf::internal::WireFormatLite::MessageSize(
699
111k
          *this->aborted_);
700
111k
    }
701
702
    // optional uint32 subtransaction_id = 1;
703
111k
    if (
has_subtransaction_id()111k
) {
704
111k
      total_size += 1 +
705
111k
        ::google::protobuf::internal::WireFormatLite::UInt32Size(
706
111k
          this->subtransaction_id());
707
111k
    }
708
709
111k
  }
710
111k
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
711
111k
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
712
111k
  _cached_size_ = cached_size;
713
111k
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
714
111k
  return total_size;
715
111k
}
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
12.8k
void SubTransactionMetadataPB::MergeFrom(const SubTransactionMetadataPB& from) {
733
// @@protoc_insertion_point(class_specific_merge_from_start:yb.SubTransactionMetadataPB)
734
12.8k
  GOOGLE_DCHECK_NE(&from, this);
735
12.8k
  _internal_metadata_.MergeFrom(from._internal_metadata_);
736
12.8k
  ::google::protobuf::uint32 cached_has_bits = 0;
737
12.8k
  (void) cached_has_bits;
738
739
12.8k
  cached_has_bits = from._has_bits_[0];
740
12.8k
  if (cached_has_bits & 3u) {
741
12.8k
    if (cached_has_bits & 0x00000001u) {
742
12.8k
      mutable_aborted()->::yb::AbortedSubTransactionSetPB::MergeFrom(from.aborted());
743
12.8k
    }
744
12.8k
    if (cached_has_bits & 0x00000002u) {
745
12.8k
      subtransaction_id_ = from.subtransaction_id_;
746
12.8k
    }
747
12.8k
    _has_bits_[0] |= cached_has_bits;
748
12.8k
  }
749
12.8k
}
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
62.1k
::google::protobuf::Metadata SubTransactionMetadataPB::GetMetadata() const {
783
62.1k
  protobuf_yb_2fcommon_2ftransaction_2eproto::protobuf_AssignDescriptorsOnce();
784
62.1k
  return ::protobuf_yb_2fcommon_2ftransaction_2eproto::file_level_metadata[kIndexInFileMessages];
785
62.1k
}
786
787
788
// @@protoc_insertion_point(namespace_scope)
789
}  // namespace yb
790
791
// @@protoc_insertion_point(global_scope)