/Users/deen/code/yugabyte-db/build/debugcov-clang-dynamic-arm64-ninja/src/yb/common/transaction.pb.h
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 | | #ifndef PROTOBUF_yb_2fcommon_2ftransaction_2eproto__INCLUDED |
5 | | #define PROTOBUF_yb_2fcommon_2ftransaction_2eproto__INCLUDED |
6 | | |
7 | | #include <string> |
8 | | |
9 | | #include <google/protobuf/stubs/common.h> |
10 | | |
11 | | #if GOOGLE_PROTOBUF_VERSION < 3005000 |
12 | | #error This file was generated by a newer version of protoc which is |
13 | | #error incompatible with your Protocol Buffer headers. Please update |
14 | | #error your headers. |
15 | | #endif |
16 | | #if 3005001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION |
17 | | #error This file was generated by an older version of protoc which is |
18 | | #error incompatible with your Protocol Buffer headers. Please |
19 | | #error regenerate this file with a newer version of protoc. |
20 | | #endif |
21 | | |
22 | | #include <google/protobuf/io/coded_stream.h> |
23 | | #include <google/protobuf/arena.h> |
24 | | #include <google/protobuf/arenastring.h> |
25 | | #include <google/protobuf/generated_message_table_driven.h> |
26 | | #include <google/protobuf/generated_message_util.h> |
27 | | #include <google/protobuf/metadata.h> |
28 | | #include <google/protobuf/message.h> |
29 | | #include <google/protobuf/repeated_field.h> // IWYU pragma: export |
30 | | #include <google/protobuf/extension_set.h> // IWYU pragma: export |
31 | | #include <google/protobuf/generated_enum_reflection.h> |
32 | | #include <google/protobuf/unknown_field_set.h> |
33 | | // @@protoc_insertion_point(includes) |
34 | | |
35 | | namespace protobuf_yb_2fcommon_2ftransaction_2eproto { |
36 | | // Internal implementation detail -- do not use these members. |
37 | | struct TableStruct { |
38 | | static const ::google::protobuf::internal::ParseTableField entries[]; |
39 | | static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; |
40 | | static const ::google::protobuf::internal::ParseTable schema[2]; |
41 | | static const ::google::protobuf::internal::FieldMetadata field_metadata[]; |
42 | | static const ::google::protobuf::internal::SerializationTable serialization_table[]; |
43 | | static const ::google::protobuf::uint32 offsets[]; |
44 | | }; |
45 | | void AddDescriptors(); |
46 | | void InitDefaultsAbortedSubTransactionSetPBImpl(); |
47 | | void InitDefaultsAbortedSubTransactionSetPB(); |
48 | | void InitDefaultsSubTransactionMetadataPBImpl(); |
49 | | void InitDefaultsSubTransactionMetadataPB(); |
50 | 28.1k | inline void InitDefaults() { |
51 | 28.1k | InitDefaultsAbortedSubTransactionSetPB(); |
52 | 28.1k | InitDefaultsSubTransactionMetadataPB(); |
53 | 28.1k | } |
54 | | } // namespace protobuf_yb_2fcommon_2ftransaction_2eproto |
55 | | namespace yb { |
56 | | class AbortedSubTransactionSetPB; |
57 | | class AbortedSubTransactionSetPBDefaultTypeInternal; |
58 | | extern AbortedSubTransactionSetPBDefaultTypeInternal _AbortedSubTransactionSetPB_default_instance_; |
59 | | class SubTransactionMetadataPB; |
60 | | class SubTransactionMetadataPBDefaultTypeInternal; |
61 | | extern SubTransactionMetadataPBDefaultTypeInternal _SubTransactionMetadataPB_default_instance_; |
62 | | } // namespace yb |
63 | | namespace yb { |
64 | | |
65 | | enum IsolationLevel { |
66 | | NON_TRANSACTIONAL = 0, |
67 | | SNAPSHOT_ISOLATION = 1, |
68 | | SERIALIZABLE_ISOLATION = 2, |
69 | | READ_COMMITTED = 3 |
70 | | }; |
71 | | bool IsolationLevel_IsValid(int value); |
72 | | const IsolationLevel IsolationLevel_MIN = NON_TRANSACTIONAL; |
73 | | const IsolationLevel IsolationLevel_MAX = READ_COMMITTED; |
74 | | const int IsolationLevel_ARRAYSIZE = IsolationLevel_MAX + 1; |
75 | | |
76 | | const ::google::protobuf::EnumDescriptor* IsolationLevel_descriptor(); |
77 | 10.3k | inline const ::std::string& IsolationLevel_Name(IsolationLevel value) { |
78 | 10.3k | return ::google::protobuf::internal::NameOfEnum( |
79 | 10.3k | IsolationLevel_descriptor(), value); |
80 | 10.3k | } |
81 | | inline bool IsolationLevel_Parse( |
82 | 0 | const ::std::string& name, IsolationLevel* value) { |
83 | 0 | return ::google::protobuf::internal::ParseNamedEnum<IsolationLevel>( |
84 | 0 | IsolationLevel_descriptor(), name, value); |
85 | 0 | } |
86 | | enum TransactionStatus { |
87 | | CREATED = 1, |
88 | | PENDING = 2, |
89 | | COMMITTED = 4, |
90 | | SEALED = 5, |
91 | | APPLIED_IN_ALL_INVOLVED_TABLETS = 7, |
92 | | ABORTED = 8, |
93 | | APPLYING = 20, |
94 | | APPLIED_IN_ONE_OF_INVOLVED_TABLETS = 21, |
95 | | IMMEDIATE_CLEANUP = 22, |
96 | | GRACEFUL_CLEANUP = 23 |
97 | | }; |
98 | | bool TransactionStatus_IsValid(int value); |
99 | | const TransactionStatus TransactionStatus_MIN = CREATED; |
100 | | const TransactionStatus TransactionStatus_MAX = GRACEFUL_CLEANUP; |
101 | | const int TransactionStatus_ARRAYSIZE = TransactionStatus_MAX + 1; |
102 | | |
103 | | const ::google::protobuf::EnumDescriptor* TransactionStatus_descriptor(); |
104 | 1.26M | inline const ::std::string& TransactionStatus_Name(TransactionStatus value) { |
105 | 1.26M | return ::google::protobuf::internal::NameOfEnum( |
106 | 1.26M | TransactionStatus_descriptor(), value); |
107 | 1.26M | } |
108 | | inline bool TransactionStatus_Parse( |
109 | 0 | const ::std::string& name, TransactionStatus* value) { |
110 | 0 | return ::google::protobuf::internal::ParseNamedEnum<TransactionStatus>( |
111 | 0 | TransactionStatus_descriptor(), name, value); |
112 | 0 | } |
113 | | enum TransactionLocality { |
114 | | GLOBAL = 1, |
115 | | LOCAL = 2 |
116 | | }; |
117 | | bool TransactionLocality_IsValid(int value); |
118 | | const TransactionLocality TransactionLocality_MIN = GLOBAL; |
119 | | const TransactionLocality TransactionLocality_MAX = LOCAL; |
120 | | const int TransactionLocality_ARRAYSIZE = TransactionLocality_MAX + 1; |
121 | | |
122 | | const ::google::protobuf::EnumDescriptor* TransactionLocality_descriptor(); |
123 | 0 | inline const ::std::string& TransactionLocality_Name(TransactionLocality value) { |
124 | 0 | return ::google::protobuf::internal::NameOfEnum( |
125 | 0 | TransactionLocality_descriptor(), value); |
126 | 0 | } |
127 | | inline bool TransactionLocality_Parse( |
128 | 0 | const ::std::string& name, TransactionLocality* value) { |
129 | 0 | return ::google::protobuf::internal::ParseNamedEnum<TransactionLocality>( |
130 | 0 | TransactionLocality_descriptor(), name, value); |
131 | 0 | } |
132 | | enum RowMarkType { |
133 | | ROW_MARK_EXCLUSIVE = 0, |
134 | | ROW_MARK_NOKEYEXCLUSIVE = 1, |
135 | | ROW_MARK_SHARE = 2, |
136 | | ROW_MARK_KEYSHARE = 3, |
137 | | ROW_MARK_REFERENCE = 4, |
138 | | ROW_MARK_COPY = 5, |
139 | | ROW_MARK_ABSENT = 15 |
140 | | }; |
141 | | bool RowMarkType_IsValid(int value); |
142 | | const RowMarkType RowMarkType_MIN = ROW_MARK_EXCLUSIVE; |
143 | | const RowMarkType RowMarkType_MAX = ROW_MARK_ABSENT; |
144 | | const int RowMarkType_ARRAYSIZE = RowMarkType_MAX + 1; |
145 | | |
146 | | const ::google::protobuf::EnumDescriptor* RowMarkType_descriptor(); |
147 | 0 | inline const ::std::string& RowMarkType_Name(RowMarkType value) { |
148 | 0 | return ::google::protobuf::internal::NameOfEnum( |
149 | 0 | RowMarkType_descriptor(), value); |
150 | 0 | } |
151 | | inline bool RowMarkType_Parse( |
152 | 0 | const ::std::string& name, RowMarkType* value) { |
153 | 0 | return ::google::protobuf::internal::ParseNamedEnum<RowMarkType>( |
154 | 0 | RowMarkType_descriptor(), name, value); |
155 | 0 | } |
156 | | // =================================================================== |
157 | | |
158 | | class AbortedSubTransactionSetPB : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:yb.AbortedSubTransactionSetPB) */ { |
159 | | public: |
160 | | AbortedSubTransactionSetPB(); |
161 | | virtual ~AbortedSubTransactionSetPB(); |
162 | | |
163 | | AbortedSubTransactionSetPB(const AbortedSubTransactionSetPB& from); |
164 | | |
165 | 1.06M | inline AbortedSubTransactionSetPB& operator=(const AbortedSubTransactionSetPB& from) { |
166 | 1.06M | CopyFrom(from); |
167 | 1.06M | return *this; |
168 | 1.06M | } |
169 | | #if LANG_CXX11 |
170 | | AbortedSubTransactionSetPB(AbortedSubTransactionSetPB&& from) noexcept |
171 | 0 | : AbortedSubTransactionSetPB() { |
172 | 0 | *this = ::std::move(from); |
173 | 0 | } |
174 | | |
175 | 0 | inline AbortedSubTransactionSetPB& operator=(AbortedSubTransactionSetPB&& from) noexcept { |
176 | 0 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
177 | 0 | if (this != &from) InternalSwap(&from); |
178 | 0 | } else { |
179 | 0 | CopyFrom(from); |
180 | 0 | } |
181 | 0 | return *this; |
182 | 0 | } |
183 | | #endif |
184 | 0 | inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { |
185 | 0 | return _internal_metadata_.unknown_fields(); |
186 | 0 | } |
187 | 0 | inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { |
188 | 0 | return _internal_metadata_.mutable_unknown_fields(); |
189 | 0 | } |
190 | | |
191 | | static const ::google::protobuf::Descriptor* descriptor(); |
192 | | static const AbortedSubTransactionSetPB& default_instance(); |
193 | | |
194 | | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
195 | 3.99M | static inline const AbortedSubTransactionSetPB* internal_default_instance() { |
196 | 3.99M | return reinterpret_cast<const AbortedSubTransactionSetPB*>( |
197 | 3.99M | &_AbortedSubTransactionSetPB_default_instance_); |
198 | 3.99M | } |
199 | | static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = |
200 | | 0; |
201 | | |
202 | | void Swap(AbortedSubTransactionSetPB* other); |
203 | 0 | friend void swap(AbortedSubTransactionSetPB& a, AbortedSubTransactionSetPB& b) { |
204 | 0 | a.Swap(&b); |
205 | 0 | } |
206 | | |
207 | | // implements Message ---------------------------------------------- |
208 | | |
209 | 0 | inline AbortedSubTransactionSetPB* New() const PROTOBUF_FINAL { return New(NULL); } |
210 | | |
211 | | AbortedSubTransactionSetPB* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; |
212 | | void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
213 | | void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
214 | | void CopyFrom(const AbortedSubTransactionSetPB& from); |
215 | | void MergeFrom(const AbortedSubTransactionSetPB& from); |
216 | | void Clear() PROTOBUF_FINAL; |
217 | | bool IsInitialized() const PROTOBUF_FINAL; |
218 | | |
219 | | size_t ByteSizeLong() const PROTOBUF_FINAL; |
220 | | bool MergePartialFromCodedStream( |
221 | | ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; |
222 | | void SerializeWithCachedSizes( |
223 | | ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; |
224 | | ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( |
225 | | bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; |
226 | 2.73M | int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } |
227 | | private: |
228 | | void SharedCtor(); |
229 | | void SharedDtor(); |
230 | | void SetCachedSize(int size) const PROTOBUF_FINAL; |
231 | | void InternalSwap(AbortedSubTransactionSetPB* other); |
232 | | private: |
233 | 0 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
234 | 0 | return NULL; |
235 | 0 | } |
236 | 0 | inline void* MaybeArenaPtr() const { |
237 | 0 | return NULL; |
238 | 0 | } |
239 | | public: |
240 | | |
241 | | ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; |
242 | | |
243 | | // nested types ---------------------------------------------------- |
244 | | |
245 | | // accessors ------------------------------------------------------- |
246 | | |
247 | | // repeated uint32 set = 1; |
248 | | int set_size() const; |
249 | | void clear_set(); |
250 | | static const int kSetFieldNumber = 1; |
251 | | ::google::protobuf::uint32 set(int index) const; |
252 | | void set_set(int index, ::google::protobuf::uint32 value); |
253 | | void add_set(::google::protobuf::uint32 value); |
254 | | const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& |
255 | | set() const; |
256 | | ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* |
257 | | mutable_set(); |
258 | | |
259 | | // @@protoc_insertion_point(class_scope:yb.AbortedSubTransactionSetPB) |
260 | | private: |
261 | | |
262 | | ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
263 | | ::google::protobuf::internal::HasBits<1> _has_bits_; |
264 | | mutable int _cached_size_; |
265 | | ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > set_; |
266 | | friend struct ::protobuf_yb_2fcommon_2ftransaction_2eproto::TableStruct; |
267 | | friend void ::protobuf_yb_2fcommon_2ftransaction_2eproto::InitDefaultsAbortedSubTransactionSetPBImpl(); |
268 | | }; |
269 | | // ------------------------------------------------------------------- |
270 | | |
271 | | class SubTransactionMetadataPB : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:yb.SubTransactionMetadataPB) */ { |
272 | | public: |
273 | | SubTransactionMetadataPB(); |
274 | | virtual ~SubTransactionMetadataPB(); |
275 | | |
276 | | SubTransactionMetadataPB(const SubTransactionMetadataPB& from); |
277 | | |
278 | 0 | inline SubTransactionMetadataPB& operator=(const SubTransactionMetadataPB& from) { |
279 | 0 | CopyFrom(from); |
280 | 0 | return *this; |
281 | 0 | } |
282 | | #if LANG_CXX11 |
283 | | SubTransactionMetadataPB(SubTransactionMetadataPB&& from) noexcept |
284 | 0 | : SubTransactionMetadataPB() { |
285 | 0 | *this = ::std::move(from); |
286 | 0 | } |
287 | | |
288 | 0 | inline SubTransactionMetadataPB& operator=(SubTransactionMetadataPB&& from) noexcept { |
289 | 0 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
290 | 0 | if (this != &from) InternalSwap(&from); |
291 | 0 | } else { |
292 | 0 | CopyFrom(from); |
293 | 0 | } |
294 | 0 | return *this; |
295 | 0 | } |
296 | | #endif |
297 | 0 | inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { |
298 | 0 | return _internal_metadata_.unknown_fields(); |
299 | 0 | } |
300 | 0 | inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { |
301 | 0 | return _internal_metadata_.mutable_unknown_fields(); |
302 | 0 | } |
303 | | |
304 | | static const ::google::protobuf::Descriptor* descriptor(); |
305 | | static const SubTransactionMetadataPB& default_instance(); |
306 | | |
307 | | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
308 | 301k | static inline const SubTransactionMetadataPB* internal_default_instance() { |
309 | 301k | return reinterpret_cast<const SubTransactionMetadataPB*>( |
310 | 301k | &_SubTransactionMetadataPB_default_instance_); |
311 | 301k | } |
312 | | static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = |
313 | | 1; |
314 | | |
315 | | void Swap(SubTransactionMetadataPB* other); |
316 | 0 | friend void swap(SubTransactionMetadataPB& a, SubTransactionMetadataPB& b) { |
317 | 0 | a.Swap(&b); |
318 | 0 | } |
319 | | |
320 | | // implements Message ---------------------------------------------- |
321 | | |
322 | 0 | inline SubTransactionMetadataPB* New() const PROTOBUF_FINAL { return New(NULL); } |
323 | | |
324 | | SubTransactionMetadataPB* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; |
325 | | void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
326 | | void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
327 | | void CopyFrom(const SubTransactionMetadataPB& from); |
328 | | void MergeFrom(const SubTransactionMetadataPB& from); |
329 | | void Clear() PROTOBUF_FINAL; |
330 | | bool IsInitialized() const PROTOBUF_FINAL; |
331 | | |
332 | | size_t ByteSizeLong() const PROTOBUF_FINAL; |
333 | | bool MergePartialFromCodedStream( |
334 | | ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; |
335 | | void SerializeWithCachedSizes( |
336 | | ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; |
337 | | ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( |
338 | | bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; |
339 | 52.8k | int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } |
340 | | private: |
341 | | void SharedCtor(); |
342 | | void SharedDtor(); |
343 | | void SetCachedSize(int size) const PROTOBUF_FINAL; |
344 | | void InternalSwap(SubTransactionMetadataPB* other); |
345 | | private: |
346 | 0 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
347 | 0 | return NULL; |
348 | 0 | } |
349 | 0 | inline void* MaybeArenaPtr() const { |
350 | 0 | return NULL; |
351 | 0 | } |
352 | | public: |
353 | | |
354 | | ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; |
355 | | |
356 | | // nested types ---------------------------------------------------- |
357 | | |
358 | | // accessors ------------------------------------------------------- |
359 | | |
360 | | // optional .yb.AbortedSubTransactionSetPB aborted = 2; |
361 | | bool has_aborted() const; |
362 | | void clear_aborted(); |
363 | | static const int kAbortedFieldNumber = 2; |
364 | | const ::yb::AbortedSubTransactionSetPB& aborted() const; |
365 | | ::yb::AbortedSubTransactionSetPB* release_aborted(); |
366 | | ::yb::AbortedSubTransactionSetPB* mutable_aborted(); |
367 | | void set_allocated_aborted(::yb::AbortedSubTransactionSetPB* aborted); |
368 | | |
369 | | // optional uint32 subtransaction_id = 1; |
370 | | bool has_subtransaction_id() const; |
371 | | void clear_subtransaction_id(); |
372 | | static const int kSubtransactionIdFieldNumber = 1; |
373 | | ::google::protobuf::uint32 subtransaction_id() const; |
374 | | void set_subtransaction_id(::google::protobuf::uint32 value); |
375 | | |
376 | | // @@protoc_insertion_point(class_scope:yb.SubTransactionMetadataPB) |
377 | | private: |
378 | | void set_has_subtransaction_id(); |
379 | | void clear_has_subtransaction_id(); |
380 | | void set_has_aborted(); |
381 | | void clear_has_aborted(); |
382 | | |
383 | | ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
384 | | ::google::protobuf::internal::HasBits<1> _has_bits_; |
385 | | mutable int _cached_size_; |
386 | | ::yb::AbortedSubTransactionSetPB* aborted_; |
387 | | ::google::protobuf::uint32 subtransaction_id_; |
388 | | friend struct ::protobuf_yb_2fcommon_2ftransaction_2eproto::TableStruct; |
389 | | friend void ::protobuf_yb_2fcommon_2ftransaction_2eproto::InitDefaultsSubTransactionMetadataPBImpl(); |
390 | | }; |
391 | | // =================================================================== |
392 | | |
393 | | |
394 | | // =================================================================== |
395 | | |
396 | | #ifdef __GNUC__ |
397 | | #pragma GCC diagnostic push |
398 | | #pragma GCC diagnostic ignored "-Wstrict-aliasing" |
399 | | #endif // __GNUC__ |
400 | | // AbortedSubTransactionSetPB |
401 | | |
402 | | // repeated uint32 set = 1; |
403 | 6.35M | inline int AbortedSubTransactionSetPB::set_size() const { |
404 | 6.35M | return set_.size(); |
405 | 6.35M | } |
406 | 0 | inline void AbortedSubTransactionSetPB::clear_set() { |
407 | 0 | set_.Clear(); |
408 | 0 | } |
409 | 0 | inline ::google::protobuf::uint32 AbortedSubTransactionSetPB::set(int index) const { |
410 | 0 | // @@protoc_insertion_point(field_get:yb.AbortedSubTransactionSetPB.set) |
411 | 0 | return set_.Get(index); |
412 | 0 | } |
413 | 0 | inline void AbortedSubTransactionSetPB::set_set(int index, ::google::protobuf::uint32 value) { |
414 | 0 | set_.Set(index, value); |
415 | 0 | // @@protoc_insertion_point(field_set:yb.AbortedSubTransactionSetPB.set) |
416 | 0 | } |
417 | 0 | inline void AbortedSubTransactionSetPB::add_set(::google::protobuf::uint32 value) { |
418 | 0 | set_.Add(value); |
419 | 0 | // @@protoc_insertion_point(field_add:yb.AbortedSubTransactionSetPB.set) |
420 | 0 | } |
421 | | inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& |
422 | 6.13M | AbortedSubTransactionSetPB::set() const { |
423 | | // @@protoc_insertion_point(field_list:yb.AbortedSubTransactionSetPB.set) |
424 | 6.13M | return set_; |
425 | 6.13M | } |
426 | | inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* |
427 | 99.1k | AbortedSubTransactionSetPB::mutable_set() { |
428 | | // @@protoc_insertion_point(field_mutable_list:yb.AbortedSubTransactionSetPB.set) |
429 | 99.1k | return &set_; |
430 | 99.1k | } |
431 | | |
432 | | // ------------------------------------------------------------------- |
433 | | |
434 | | // SubTransactionMetadataPB |
435 | | |
436 | | // optional uint32 subtransaction_id = 1; |
437 | 4.66M | inline bool SubTransactionMetadataPB::has_subtransaction_id() const { |
438 | 4.66M | return (_has_bits_[0] & 0x00000002u) != 0; |
439 | 4.66M | } |
440 | 96.3k | inline void SubTransactionMetadataPB::set_has_subtransaction_id() { |
441 | 96.3k | _has_bits_[0] |= 0x00000002u; |
442 | 96.3k | } |
443 | 0 | inline void SubTransactionMetadataPB::clear_has_subtransaction_id() { |
444 | 0 | _has_bits_[0] &= ~0x00000002u; |
445 | 0 | } |
446 | 0 | inline void SubTransactionMetadataPB::clear_subtransaction_id() { |
447 | 0 | subtransaction_id_ = 0u; |
448 | 0 | clear_has_subtransaction_id(); |
449 | 0 | } |
450 | 227k | inline ::google::protobuf::uint32 SubTransactionMetadataPB::subtransaction_id() const { |
451 | | // @@protoc_insertion_point(field_get:yb.SubTransactionMetadataPB.subtransaction_id) |
452 | 227k | return subtransaction_id_; |
453 | 227k | } |
454 | 52.8k | inline void SubTransactionMetadataPB::set_subtransaction_id(::google::protobuf::uint32 value) { |
455 | 52.8k | set_has_subtransaction_id(); |
456 | 52.8k | subtransaction_id_ = value; |
457 | | // @@protoc_insertion_point(field_set:yb.SubTransactionMetadataPB.subtransaction_id) |
458 | 52.8k | } |
459 | | |
460 | | // optional .yb.AbortedSubTransactionSetPB aborted = 2; |
461 | 111k | inline bool SubTransactionMetadataPB::has_aborted() const { |
462 | 111k | return (_has_bits_[0] & 0x00000001u) != 0; |
463 | 111k | } |
464 | 109k | inline void SubTransactionMetadataPB::set_has_aborted() { |
465 | 109k | _has_bits_[0] |= 0x00000001u; |
466 | 109k | } |
467 | 0 | inline void SubTransactionMetadataPB::clear_has_aborted() { |
468 | 0 | _has_bits_[0] &= ~0x00000001u; |
469 | 0 | } |
470 | 0 | inline void SubTransactionMetadataPB::clear_aborted() { |
471 | 0 | if (aborted_ != NULL) aborted_->Clear(); |
472 | 0 | clear_has_aborted(); |
473 | 0 | } |
474 | 4.56M | inline const ::yb::AbortedSubTransactionSetPB& SubTransactionMetadataPB::aborted() const { |
475 | 4.56M | const ::yb::AbortedSubTransactionSetPB* p = aborted_; |
476 | | // @@protoc_insertion_point(field_get:yb.SubTransactionMetadataPB.aborted) |
477 | 18.4E | return p != NULL4.56M ? *p4.56M : *reinterpret_cast<const ::yb::AbortedSubTransactionSetPB*>( |
478 | 18.4E | &::yb::_AbortedSubTransactionSetPB_default_instance_); |
479 | 4.56M | } |
480 | 0 | inline ::yb::AbortedSubTransactionSetPB* SubTransactionMetadataPB::release_aborted() { |
481 | 0 | // @@protoc_insertion_point(field_release:yb.SubTransactionMetadataPB.aborted) |
482 | 0 | clear_has_aborted(); |
483 | 0 | ::yb::AbortedSubTransactionSetPB* temp = aborted_; |
484 | 0 | aborted_ = NULL; |
485 | 0 | return temp; |
486 | 0 | } |
487 | 109k | inline ::yb::AbortedSubTransactionSetPB* SubTransactionMetadataPB::mutable_aborted() { |
488 | 109k | set_has_aborted(); |
489 | 109k | if (aborted_ == NULL) { |
490 | 109k | aborted_ = new ::yb::AbortedSubTransactionSetPB; |
491 | 109k | } |
492 | | // @@protoc_insertion_point(field_mutable:yb.SubTransactionMetadataPB.aborted) |
493 | 109k | return aborted_; |
494 | 109k | } |
495 | 0 | inline void SubTransactionMetadataPB::set_allocated_aborted(::yb::AbortedSubTransactionSetPB* aborted) { |
496 | 0 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
497 | 0 | if (message_arena == NULL) { |
498 | 0 | delete aborted_; |
499 | 0 | } |
500 | 0 | if (aborted) { |
501 | 0 | ::google::protobuf::Arena* submessage_arena = NULL; |
502 | 0 | if (message_arena != submessage_arena) { |
503 | 0 | aborted = ::google::protobuf::internal::GetOwnedMessage( |
504 | 0 | message_arena, aborted, submessage_arena); |
505 | 0 | } |
506 | 0 | set_has_aborted(); |
507 | 0 | } else { |
508 | 0 | clear_has_aborted(); |
509 | 0 | } |
510 | 0 | aborted_ = aborted; |
511 | 0 | // @@protoc_insertion_point(field_set_allocated:yb.SubTransactionMetadataPB.aborted) |
512 | 0 | } |
513 | | |
514 | | #ifdef __GNUC__ |
515 | | #pragma GCC diagnostic pop |
516 | | #endif // __GNUC__ |
517 | | // ------------------------------------------------------------------- |
518 | | |
519 | | |
520 | | // @@protoc_insertion_point(namespace_scope) |
521 | | |
522 | | } // namespace yb |
523 | | |
524 | | namespace google { |
525 | | namespace protobuf { |
526 | | |
527 | | template <> struct is_proto_enum< ::yb::IsolationLevel> : ::google::protobuf::internal::true_type {}; |
528 | | template <> |
529 | | inline const EnumDescriptor* GetEnumDescriptor< ::yb::IsolationLevel>() { |
530 | | return ::yb::IsolationLevel_descriptor(); |
531 | | } |
532 | | template <> struct is_proto_enum< ::yb::TransactionStatus> : ::google::protobuf::internal::true_type {}; |
533 | | template <> |
534 | 0 | inline const EnumDescriptor* GetEnumDescriptor< ::yb::TransactionStatus>() { |
535 | 0 | return ::yb::TransactionStatus_descriptor(); |
536 | 0 | } |
537 | | template <> struct is_proto_enum< ::yb::TransactionLocality> : ::google::protobuf::internal::true_type {}; |
538 | | template <> |
539 | 0 | inline const EnumDescriptor* GetEnumDescriptor< ::yb::TransactionLocality>() { |
540 | 0 | return ::yb::TransactionLocality_descriptor(); |
541 | 0 | } |
542 | | template <> struct is_proto_enum< ::yb::RowMarkType> : ::google::protobuf::internal::true_type {}; |
543 | | template <> |
544 | 0 | inline const EnumDescriptor* GetEnumDescriptor< ::yb::RowMarkType>() { |
545 | 0 | return ::yb::RowMarkType_descriptor(); |
546 | 0 | } |
547 | | |
548 | | } // namespace protobuf |
549 | | } // namespace google |
550 | | |
551 | | // @@protoc_insertion_point(global_scope) |
552 | | |
553 | | #endif // PROTOBUF_yb_2fcommon_2ftransaction_2eproto__INCLUDED |