/Users/deen/code/yugabyte-db/build/debugcov-clang-dynamic-arm64-ninja/src/yb/docdb/docdb.pb.h
Line | Count | Source (jump to first uncovered line) |
1 | | // Generated by the protocol buffer compiler. DO NOT EDIT! |
2 | | // source: yb/docdb/docdb.proto |
3 | | |
4 | | #ifndef PROTOBUF_yb_2fdocdb_2fdocdb_2eproto__INCLUDED |
5 | | #define PROTOBUF_yb_2fdocdb_2fdocdb_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/unknown_field_set.h> |
32 | | #include "yb/common/common.pb.h" |
33 | | #include "yb/common/transaction.pb.h" |
34 | | #include "yb/util/opid.pb.h" |
35 | | // @@protoc_insertion_point(includes) |
36 | | |
37 | | namespace protobuf_yb_2fdocdb_2fdocdb_2eproto { |
38 | | // Internal implementation detail -- do not use these members. |
39 | | struct TableStruct { |
40 | | static const ::google::protobuf::internal::ParseTableField entries[]; |
41 | | static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; |
42 | | static const ::google::protobuf::internal::ParseTable schema[5]; |
43 | | static const ::google::protobuf::internal::FieldMetadata field_metadata[]; |
44 | | static const ::google::protobuf::internal::SerializationTable serialization_table[]; |
45 | | static const ::google::protobuf::uint32 offsets[]; |
46 | | }; |
47 | | void AddDescriptors(); |
48 | | void InitDefaultsKeyValuePairPBImpl(); |
49 | | void InitDefaultsKeyValuePairPB(); |
50 | | void InitDefaultsApplyExternalTransactionPBImpl(); |
51 | | void InitDefaultsApplyExternalTransactionPB(); |
52 | | void InitDefaultsKeyValueWriteBatchPBImpl(); |
53 | | void InitDefaultsKeyValueWriteBatchPB(); |
54 | | void InitDefaultsConsensusFrontierPBImpl(); |
55 | | void InitDefaultsConsensusFrontierPB(); |
56 | | void InitDefaultsApplyTransactionStatePBImpl(); |
57 | | void InitDefaultsApplyTransactionStatePB(); |
58 | 17.1k | inline void InitDefaults() { |
59 | 17.1k | InitDefaultsKeyValuePairPB(); |
60 | 17.1k | InitDefaultsApplyExternalTransactionPB(); |
61 | 17.1k | InitDefaultsKeyValueWriteBatchPB(); |
62 | 17.1k | InitDefaultsConsensusFrontierPB(); |
63 | 17.1k | InitDefaultsApplyTransactionStatePB(); |
64 | 17.1k | } |
65 | | } // namespace protobuf_yb_2fdocdb_2fdocdb_2eproto |
66 | | namespace yb { |
67 | | namespace docdb { |
68 | | class ApplyExternalTransactionPB; |
69 | | class ApplyExternalTransactionPBDefaultTypeInternal; |
70 | | extern ApplyExternalTransactionPBDefaultTypeInternal _ApplyExternalTransactionPB_default_instance_; |
71 | | class ApplyTransactionStatePB; |
72 | | class ApplyTransactionStatePBDefaultTypeInternal; |
73 | | extern ApplyTransactionStatePBDefaultTypeInternal _ApplyTransactionStatePB_default_instance_; |
74 | | class ConsensusFrontierPB; |
75 | | class ConsensusFrontierPBDefaultTypeInternal; |
76 | | extern ConsensusFrontierPBDefaultTypeInternal _ConsensusFrontierPB_default_instance_; |
77 | | class KeyValuePairPB; |
78 | | class KeyValuePairPBDefaultTypeInternal; |
79 | | extern KeyValuePairPBDefaultTypeInternal _KeyValuePairPB_default_instance_; |
80 | | class KeyValueWriteBatchPB; |
81 | | class KeyValueWriteBatchPBDefaultTypeInternal; |
82 | | extern KeyValueWriteBatchPBDefaultTypeInternal _KeyValueWriteBatchPB_default_instance_; |
83 | | } // namespace docdb |
84 | | } // namespace yb |
85 | | namespace yb { |
86 | | namespace docdb { |
87 | | |
88 | | // =================================================================== |
89 | | |
90 | | class KeyValuePairPB : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:yb.docdb.KeyValuePairPB) */ { |
91 | | public: |
92 | | KeyValuePairPB(); |
93 | | virtual ~KeyValuePairPB(); |
94 | | |
95 | | KeyValuePairPB(const KeyValuePairPB& from); |
96 | | |
97 | 0 | inline KeyValuePairPB& operator=(const KeyValuePairPB& from) { |
98 | 0 | CopyFrom(from); |
99 | 0 | return *this; |
100 | 0 | } |
101 | | #if LANG_CXX11 |
102 | | KeyValuePairPB(KeyValuePairPB&& from) noexcept |
103 | 0 | : KeyValuePairPB() { |
104 | 0 | *this = ::std::move(from); |
105 | 0 | } |
106 | | |
107 | 0 | inline KeyValuePairPB& operator=(KeyValuePairPB&& from) noexcept { |
108 | 0 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
109 | 0 | if (this != &from) InternalSwap(&from); |
110 | 0 | } else { |
111 | 0 | CopyFrom(from); |
112 | 0 | } |
113 | 0 | return *this; |
114 | 0 | } |
115 | | #endif |
116 | 0 | inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { |
117 | 0 | return _internal_metadata_.unknown_fields(); |
118 | 0 | } |
119 | 0 | inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { |
120 | 0 | return _internal_metadata_.mutable_unknown_fields(); |
121 | 0 | } |
122 | | |
123 | | static const ::google::protobuf::Descriptor* descriptor(); |
124 | | static const KeyValuePairPB& default_instance(); |
125 | | |
126 | | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
127 | 90.2M | static inline const KeyValuePairPB* internal_default_instance() { |
128 | 90.2M | return reinterpret_cast<const KeyValuePairPB*>( |
129 | 90.2M | &_KeyValuePairPB_default_instance_); |
130 | 90.2M | } |
131 | | static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = |
132 | | 0; |
133 | | |
134 | | void Swap(KeyValuePairPB* other); |
135 | 0 | friend void swap(KeyValuePairPB& a, KeyValuePairPB& b) { |
136 | 0 | a.Swap(&b); |
137 | 0 | } |
138 | | |
139 | | // implements Message ---------------------------------------------- |
140 | | |
141 | 0 | inline KeyValuePairPB* New() const PROTOBUF_FINAL { return New(NULL); } |
142 | | |
143 | | KeyValuePairPB* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; |
144 | | void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
145 | | void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
146 | | void CopyFrom(const KeyValuePairPB& from); |
147 | | void MergeFrom(const KeyValuePairPB& from); |
148 | | void Clear() PROTOBUF_FINAL; |
149 | | bool IsInitialized() const PROTOBUF_FINAL; |
150 | | |
151 | | size_t ByteSizeLong() const PROTOBUF_FINAL; |
152 | | bool MergePartialFromCodedStream( |
153 | | ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; |
154 | | void SerializeWithCachedSizes( |
155 | | ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; |
156 | | ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( |
157 | | bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; |
158 | 130M | int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } |
159 | | private: |
160 | | void SharedCtor(); |
161 | | void SharedDtor(); |
162 | | void SetCachedSize(int size) const PROTOBUF_FINAL; |
163 | | void InternalSwap(KeyValuePairPB* other); |
164 | | private: |
165 | 0 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
166 | 0 | return NULL; |
167 | 0 | } |
168 | 0 | inline void* MaybeArenaPtr() const { |
169 | 0 | return NULL; |
170 | 0 | } |
171 | | public: |
172 | | |
173 | | ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; |
174 | | |
175 | | // nested types ---------------------------------------------------- |
176 | | |
177 | | // accessors ------------------------------------------------------- |
178 | | |
179 | | // optional bytes key = 1; |
180 | | bool has_key() const; |
181 | | void clear_key(); |
182 | | static const int kKeyFieldNumber = 1; |
183 | | const ::std::string& key() const; |
184 | | void set_key(const ::std::string& value); |
185 | | #if LANG_CXX11 |
186 | | void set_key(::std::string&& value); |
187 | | #endif |
188 | | void set_key(const char* value); |
189 | | void set_key(const void* value, size_t size); |
190 | | ::std::string* mutable_key(); |
191 | | ::std::string* release_key(); |
192 | | void set_allocated_key(::std::string* key); |
193 | | |
194 | | // optional bytes value = 2; |
195 | | bool has_value() const; |
196 | | void clear_value(); |
197 | | static const int kValueFieldNumber = 2; |
198 | | const ::std::string& value() const; |
199 | | void set_value(const ::std::string& value); |
200 | | #if LANG_CXX11 |
201 | | void set_value(::std::string&& value); |
202 | | #endif |
203 | | void set_value(const char* value); |
204 | | void set_value(const void* value, size_t size); |
205 | | ::std::string* mutable_value(); |
206 | | ::std::string* release_value(); |
207 | | void set_allocated_value(::std::string* value); |
208 | | |
209 | | // optional fixed64 external_hybrid_time = 3; |
210 | | bool has_external_hybrid_time() const; |
211 | | void clear_external_hybrid_time(); |
212 | | static const int kExternalHybridTimeFieldNumber = 3; |
213 | | ::google::protobuf::uint64 external_hybrid_time() const; |
214 | | void set_external_hybrid_time(::google::protobuf::uint64 value); |
215 | | |
216 | | // @@protoc_insertion_point(class_scope:yb.docdb.KeyValuePairPB) |
217 | | private: |
218 | | void set_has_key(); |
219 | | void clear_has_key(); |
220 | | void set_has_value(); |
221 | | void clear_has_value(); |
222 | | void set_has_external_hybrid_time(); |
223 | | void clear_has_external_hybrid_time(); |
224 | | |
225 | | ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
226 | | ::google::protobuf::internal::HasBits<1> _has_bits_; |
227 | | mutable int _cached_size_; |
228 | | ::google::protobuf::internal::ArenaStringPtr key_; |
229 | | ::google::protobuf::internal::ArenaStringPtr value_; |
230 | | ::google::protobuf::uint64 external_hybrid_time_; |
231 | | friend struct ::protobuf_yb_2fdocdb_2fdocdb_2eproto::TableStruct; |
232 | | friend void ::protobuf_yb_2fdocdb_2fdocdb_2eproto::InitDefaultsKeyValuePairPBImpl(); |
233 | | }; |
234 | | // ------------------------------------------------------------------- |
235 | | |
236 | | class ApplyExternalTransactionPB : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:yb.docdb.ApplyExternalTransactionPB) */ { |
237 | | public: |
238 | | ApplyExternalTransactionPB(); |
239 | | virtual ~ApplyExternalTransactionPB(); |
240 | | |
241 | | ApplyExternalTransactionPB(const ApplyExternalTransactionPB& from); |
242 | | |
243 | 0 | inline ApplyExternalTransactionPB& operator=(const ApplyExternalTransactionPB& from) { |
244 | 0 | CopyFrom(from); |
245 | 0 | return *this; |
246 | 0 | } |
247 | | #if LANG_CXX11 |
248 | | ApplyExternalTransactionPB(ApplyExternalTransactionPB&& from) noexcept |
249 | 0 | : ApplyExternalTransactionPB() { |
250 | 0 | *this = ::std::move(from); |
251 | 0 | } |
252 | | |
253 | 0 | inline ApplyExternalTransactionPB& operator=(ApplyExternalTransactionPB&& from) noexcept { |
254 | 0 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
255 | 0 | if (this != &from) InternalSwap(&from); |
256 | 0 | } else { |
257 | 0 | CopyFrom(from); |
258 | 0 | } |
259 | 0 | return *this; |
260 | 0 | } |
261 | | #endif |
262 | 0 | inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { |
263 | 0 | return _internal_metadata_.unknown_fields(); |
264 | 0 | } |
265 | 0 | inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { |
266 | 0 | return _internal_metadata_.mutable_unknown_fields(); |
267 | 0 | } |
268 | | |
269 | | static const ::google::protobuf::Descriptor* descriptor(); |
270 | | static const ApplyExternalTransactionPB& default_instance(); |
271 | | |
272 | | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
273 | 17.1k | static inline const ApplyExternalTransactionPB* internal_default_instance() { |
274 | 17.1k | return reinterpret_cast<const ApplyExternalTransactionPB*>( |
275 | 17.1k | &_ApplyExternalTransactionPB_default_instance_); |
276 | 17.1k | } |
277 | | static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = |
278 | | 1; |
279 | | |
280 | | void Swap(ApplyExternalTransactionPB* other); |
281 | 0 | friend void swap(ApplyExternalTransactionPB& a, ApplyExternalTransactionPB& b) { |
282 | 0 | a.Swap(&b); |
283 | 0 | } |
284 | | |
285 | | // implements Message ---------------------------------------------- |
286 | | |
287 | 0 | inline ApplyExternalTransactionPB* New() const PROTOBUF_FINAL { return New(NULL); } |
288 | | |
289 | | ApplyExternalTransactionPB* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; |
290 | | void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
291 | | void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
292 | | void CopyFrom(const ApplyExternalTransactionPB& from); |
293 | | void MergeFrom(const ApplyExternalTransactionPB& from); |
294 | | void Clear() PROTOBUF_FINAL; |
295 | | bool IsInitialized() const PROTOBUF_FINAL; |
296 | | |
297 | | size_t ByteSizeLong() const PROTOBUF_FINAL; |
298 | | bool MergePartialFromCodedStream( |
299 | | ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; |
300 | | void SerializeWithCachedSizes( |
301 | | ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; |
302 | | ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( |
303 | | bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; |
304 | 0 | int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } |
305 | | private: |
306 | | void SharedCtor(); |
307 | | void SharedDtor(); |
308 | | void SetCachedSize(int size) const PROTOBUF_FINAL; |
309 | | void InternalSwap(ApplyExternalTransactionPB* other); |
310 | | private: |
311 | 0 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
312 | 0 | return NULL; |
313 | 0 | } |
314 | 0 | inline void* MaybeArenaPtr() const { |
315 | 0 | return NULL; |
316 | 0 | } |
317 | | public: |
318 | | |
319 | | ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; |
320 | | |
321 | | // nested types ---------------------------------------------------- |
322 | | |
323 | | // accessors ------------------------------------------------------- |
324 | | |
325 | | // optional bytes transaction_id = 1; |
326 | | bool has_transaction_id() const; |
327 | | void clear_transaction_id(); |
328 | | static const int kTransactionIdFieldNumber = 1; |
329 | | const ::std::string& transaction_id() const; |
330 | | void set_transaction_id(const ::std::string& value); |
331 | | #if LANG_CXX11 |
332 | | void set_transaction_id(::std::string&& value); |
333 | | #endif |
334 | | void set_transaction_id(const char* value); |
335 | | void set_transaction_id(const void* value, size_t size); |
336 | | ::std::string* mutable_transaction_id(); |
337 | | ::std::string* release_transaction_id(); |
338 | | void set_allocated_transaction_id(::std::string* transaction_id); |
339 | | |
340 | | // optional fixed64 commit_hybrid_time = 2; |
341 | | bool has_commit_hybrid_time() const; |
342 | | void clear_commit_hybrid_time(); |
343 | | static const int kCommitHybridTimeFieldNumber = 2; |
344 | | ::google::protobuf::uint64 commit_hybrid_time() const; |
345 | | void set_commit_hybrid_time(::google::protobuf::uint64 value); |
346 | | |
347 | | // @@protoc_insertion_point(class_scope:yb.docdb.ApplyExternalTransactionPB) |
348 | | private: |
349 | | void set_has_transaction_id(); |
350 | | void clear_has_transaction_id(); |
351 | | void set_has_commit_hybrid_time(); |
352 | | void clear_has_commit_hybrid_time(); |
353 | | |
354 | | ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
355 | | ::google::protobuf::internal::HasBits<1> _has_bits_; |
356 | | mutable int _cached_size_; |
357 | | ::google::protobuf::internal::ArenaStringPtr transaction_id_; |
358 | | ::google::protobuf::uint64 commit_hybrid_time_; |
359 | | friend struct ::protobuf_yb_2fdocdb_2fdocdb_2eproto::TableStruct; |
360 | | friend void ::protobuf_yb_2fdocdb_2fdocdb_2eproto::InitDefaultsApplyExternalTransactionPBImpl(); |
361 | | }; |
362 | | // ------------------------------------------------------------------- |
363 | | |
364 | | class KeyValueWriteBatchPB : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:yb.docdb.KeyValueWriteBatchPB) */ { |
365 | | public: |
366 | | KeyValueWriteBatchPB(); |
367 | | virtual ~KeyValueWriteBatchPB(); |
368 | | |
369 | | KeyValueWriteBatchPB(const KeyValueWriteBatchPB& from); |
370 | | |
371 | 406k | inline KeyValueWriteBatchPB& operator=(const KeyValueWriteBatchPB& from) { |
372 | 406k | CopyFrom(from); |
373 | 406k | return *this; |
374 | 406k | } |
375 | | #if LANG_CXX11 |
376 | | KeyValueWriteBatchPB(KeyValueWriteBatchPB&& from) noexcept |
377 | 0 | : KeyValueWriteBatchPB() { |
378 | 0 | *this = ::std::move(from); |
379 | 0 | } |
380 | | |
381 | 0 | inline KeyValueWriteBatchPB& operator=(KeyValueWriteBatchPB&& from) noexcept { |
382 | 0 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
383 | 0 | if (this != &from) InternalSwap(&from); |
384 | 0 | } else { |
385 | 0 | CopyFrom(from); |
386 | 0 | } |
387 | 0 | return *this; |
388 | 0 | } |
389 | | #endif |
390 | 0 | inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { |
391 | 0 | return _internal_metadata_.unknown_fields(); |
392 | 0 | } |
393 | 0 | inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { |
394 | 0 | return _internal_metadata_.mutable_unknown_fields(); |
395 | 0 | } |
396 | | |
397 | | static const ::google::protobuf::Descriptor* descriptor(); |
398 | | static const KeyValueWriteBatchPB& default_instance(); |
399 | | |
400 | | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
401 | 21.8M | static inline const KeyValueWriteBatchPB* internal_default_instance() { |
402 | 21.8M | return reinterpret_cast<const KeyValueWriteBatchPB*>( |
403 | 21.8M | &_KeyValueWriteBatchPB_default_instance_); |
404 | 21.8M | } |
405 | | static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = |
406 | | 2; |
407 | | |
408 | | void Swap(KeyValueWriteBatchPB* other); |
409 | 0 | friend void swap(KeyValueWriteBatchPB& a, KeyValueWriteBatchPB& b) { |
410 | 0 | a.Swap(&b); |
411 | 0 | } |
412 | | |
413 | | // implements Message ---------------------------------------------- |
414 | | |
415 | 0 | inline KeyValueWriteBatchPB* New() const PROTOBUF_FINAL { return New(NULL); } |
416 | | |
417 | | KeyValueWriteBatchPB* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; |
418 | | void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
419 | | void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
420 | | void CopyFrom(const KeyValueWriteBatchPB& from); |
421 | | void MergeFrom(const KeyValueWriteBatchPB& from); |
422 | | void Clear() PROTOBUF_FINAL; |
423 | | bool IsInitialized() const PROTOBUF_FINAL; |
424 | | |
425 | | size_t ByteSizeLong() const PROTOBUF_FINAL; |
426 | | bool MergePartialFromCodedStream( |
427 | | ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; |
428 | | void SerializeWithCachedSizes( |
429 | | ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; |
430 | | ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( |
431 | | bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; |
432 | 8.24M | int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } |
433 | | private: |
434 | | void SharedCtor(); |
435 | | void SharedDtor(); |
436 | | void SetCachedSize(int size) const PROTOBUF_FINAL; |
437 | | void InternalSwap(KeyValueWriteBatchPB* other); |
438 | | private: |
439 | 0 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
440 | 0 | return NULL; |
441 | 0 | } |
442 | 0 | inline void* MaybeArenaPtr() const { |
443 | 0 | return NULL; |
444 | 0 | } |
445 | | public: |
446 | | |
447 | | ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; |
448 | | |
449 | | // nested types ---------------------------------------------------- |
450 | | |
451 | | // accessors ------------------------------------------------------- |
452 | | |
453 | | // repeated .yb.docdb.KeyValuePairPB write_pairs = 1; |
454 | | int write_pairs_size() const; |
455 | | void clear_write_pairs(); |
456 | | static const int kWritePairsFieldNumber = 1; |
457 | | const ::yb::docdb::KeyValuePairPB& write_pairs(int index) const; |
458 | | ::yb::docdb::KeyValuePairPB* mutable_write_pairs(int index); |
459 | | ::yb::docdb::KeyValuePairPB* add_write_pairs(); |
460 | | ::google::protobuf::RepeatedPtrField< ::yb::docdb::KeyValuePairPB >* |
461 | | mutable_write_pairs(); |
462 | | const ::google::protobuf::RepeatedPtrField< ::yb::docdb::KeyValuePairPB >& |
463 | | write_pairs() const; |
464 | | |
465 | | // repeated .yb.docdb.KeyValuePairPB read_pairs = 5; |
466 | | int read_pairs_size() const; |
467 | | void clear_read_pairs(); |
468 | | static const int kReadPairsFieldNumber = 5; |
469 | | const ::yb::docdb::KeyValuePairPB& read_pairs(int index) const; |
470 | | ::yb::docdb::KeyValuePairPB* mutable_read_pairs(int index); |
471 | | ::yb::docdb::KeyValuePairPB* add_read_pairs(); |
472 | | ::google::protobuf::RepeatedPtrField< ::yb::docdb::KeyValuePairPB >* |
473 | | mutable_read_pairs(); |
474 | | const ::google::protobuf::RepeatedPtrField< ::yb::docdb::KeyValuePairPB >& |
475 | | read_pairs() const; |
476 | | |
477 | | // repeated .yb.docdb.ApplyExternalTransactionPB apply_external_transactions = 7; |
478 | | int apply_external_transactions_size() const; |
479 | | void clear_apply_external_transactions(); |
480 | | static const int kApplyExternalTransactionsFieldNumber = 7; |
481 | | const ::yb::docdb::ApplyExternalTransactionPB& apply_external_transactions(int index) const; |
482 | | ::yb::docdb::ApplyExternalTransactionPB* mutable_apply_external_transactions(int index); |
483 | | ::yb::docdb::ApplyExternalTransactionPB* add_apply_external_transactions(); |
484 | | ::google::protobuf::RepeatedPtrField< ::yb::docdb::ApplyExternalTransactionPB >* |
485 | | mutable_apply_external_transactions(); |
486 | | const ::google::protobuf::RepeatedPtrField< ::yb::docdb::ApplyExternalTransactionPB >& |
487 | | apply_external_transactions() const; |
488 | | |
489 | | // optional .yb.TransactionMetadataPB transaction = 2; |
490 | | bool has_transaction() const; |
491 | | void clear_transaction(); |
492 | | static const int kTransactionFieldNumber = 2; |
493 | | const ::yb::TransactionMetadataPB& transaction() const; |
494 | | ::yb::TransactionMetadataPB* release_transaction(); |
495 | | ::yb::TransactionMetadataPB* mutable_transaction(); |
496 | | void set_allocated_transaction(::yb::TransactionMetadataPB* transaction); |
497 | | |
498 | | // optional .yb.SubTransactionMetadataPB subtransaction = 8; |
499 | | bool has_subtransaction() const; |
500 | | void clear_subtransaction(); |
501 | | static const int kSubtransactionFieldNumber = 8; |
502 | | const ::yb::SubTransactionMetadataPB& subtransaction() const; |
503 | | ::yb::SubTransactionMetadataPB* release_subtransaction(); |
504 | | ::yb::SubTransactionMetadataPB* mutable_subtransaction(); |
505 | | void set_allocated_subtransaction(::yb::SubTransactionMetadataPB* subtransaction); |
506 | | |
507 | | // optional bool DEPRECATED_may_have_metadata = 3; |
508 | | bool has_deprecated_may_have_metadata() const; |
509 | | void clear_deprecated_may_have_metadata(); |
510 | | static const int kDEPRECATEDMayHaveMetadataFieldNumber = 3; |
511 | | bool deprecated_may_have_metadata() const; |
512 | | void set_deprecated_may_have_metadata(bool value); |
513 | | |
514 | | // optional .yb.RowMarkType row_mark_type = 6; |
515 | | bool has_row_mark_type() const; |
516 | | void clear_row_mark_type(); |
517 | | static const int kRowMarkTypeFieldNumber = 6; |
518 | | ::yb::RowMarkType row_mark_type() const; |
519 | | void set_row_mark_type(::yb::RowMarkType value); |
520 | | |
521 | | // optional int64 ttl = 9; |
522 | | bool has_ttl() const; |
523 | | void clear_ttl(); |
524 | | static const int kTtlFieldNumber = 9; |
525 | | ::google::protobuf::int64 ttl() const; |
526 | | void set_ttl(::google::protobuf::int64 value); |
527 | | |
528 | | // optional .yb.WaitPolicy wait_policy = 10; |
529 | | bool has_wait_policy() const; |
530 | | void clear_wait_policy(); |
531 | | static const int kWaitPolicyFieldNumber = 10; |
532 | | ::yb::WaitPolicy wait_policy() const; |
533 | | void set_wait_policy(::yb::WaitPolicy value); |
534 | | |
535 | | // @@protoc_insertion_point(class_scope:yb.docdb.KeyValueWriteBatchPB) |
536 | | private: |
537 | | void set_has_transaction(); |
538 | | void clear_has_transaction(); |
539 | | void set_has_subtransaction(); |
540 | | void clear_has_subtransaction(); |
541 | | void set_has_deprecated_may_have_metadata(); |
542 | | void clear_has_deprecated_may_have_metadata(); |
543 | | void set_has_row_mark_type(); |
544 | | void clear_has_row_mark_type(); |
545 | | void set_has_wait_policy(); |
546 | | void clear_has_wait_policy(); |
547 | | void set_has_ttl(); |
548 | | void clear_has_ttl(); |
549 | | |
550 | | ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
551 | | ::google::protobuf::internal::HasBits<1> _has_bits_; |
552 | | mutable int _cached_size_; |
553 | | ::google::protobuf::RepeatedPtrField< ::yb::docdb::KeyValuePairPB > write_pairs_; |
554 | | ::google::protobuf::RepeatedPtrField< ::yb::docdb::KeyValuePairPB > read_pairs_; |
555 | | ::google::protobuf::RepeatedPtrField< ::yb::docdb::ApplyExternalTransactionPB > apply_external_transactions_; |
556 | | ::yb::TransactionMetadataPB* transaction_; |
557 | | ::yb::SubTransactionMetadataPB* subtransaction_; |
558 | | bool deprecated_may_have_metadata_; |
559 | | int row_mark_type_; |
560 | | ::google::protobuf::int64 ttl_; |
561 | | int wait_policy_; |
562 | | friend struct ::protobuf_yb_2fdocdb_2fdocdb_2eproto::TableStruct; |
563 | | friend void ::protobuf_yb_2fdocdb_2fdocdb_2eproto::InitDefaultsKeyValueWriteBatchPBImpl(); |
564 | | }; |
565 | | // ------------------------------------------------------------------- |
566 | | |
567 | | class ConsensusFrontierPB : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:yb.docdb.ConsensusFrontierPB) */ { |
568 | | public: |
569 | | ConsensusFrontierPB(); |
570 | | virtual ~ConsensusFrontierPB(); |
571 | | |
572 | | ConsensusFrontierPB(const ConsensusFrontierPB& from); |
573 | | |
574 | 0 | inline ConsensusFrontierPB& operator=(const ConsensusFrontierPB& from) { |
575 | 0 | CopyFrom(from); |
576 | 0 | return *this; |
577 | 0 | } |
578 | | #if LANG_CXX11 |
579 | | ConsensusFrontierPB(ConsensusFrontierPB&& from) noexcept |
580 | 0 | : ConsensusFrontierPB() { |
581 | 0 | *this = ::std::move(from); |
582 | 0 | } |
583 | | |
584 | 0 | inline ConsensusFrontierPB& operator=(ConsensusFrontierPB&& from) noexcept { |
585 | 0 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
586 | 0 | if (this != &from) InternalSwap(&from); |
587 | 0 | } else { |
588 | 0 | CopyFrom(from); |
589 | 0 | } |
590 | 0 | return *this; |
591 | 0 | } |
592 | | #endif |
593 | 0 | inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { |
594 | 0 | return _internal_metadata_.unknown_fields(); |
595 | 0 | } |
596 | 0 | inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { |
597 | 0 | return _internal_metadata_.mutable_unknown_fields(); |
598 | 0 | } |
599 | | |
600 | | static const ::google::protobuf::Descriptor* descriptor(); |
601 | | static const ConsensusFrontierPB& default_instance(); |
602 | | |
603 | | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
604 | 616k | static inline const ConsensusFrontierPB* internal_default_instance() { |
605 | 616k | return reinterpret_cast<const ConsensusFrontierPB*>( |
606 | 616k | &_ConsensusFrontierPB_default_instance_); |
607 | 616k | } |
608 | | static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = |
609 | | 3; |
610 | | |
611 | | void Swap(ConsensusFrontierPB* other); |
612 | 0 | friend void swap(ConsensusFrontierPB& a, ConsensusFrontierPB& b) { |
613 | 0 | a.Swap(&b); |
614 | 0 | } |
615 | | |
616 | | // implements Message ---------------------------------------------- |
617 | | |
618 | 0 | inline ConsensusFrontierPB* New() const PROTOBUF_FINAL { return New(NULL); } |
619 | | |
620 | | ConsensusFrontierPB* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; |
621 | | void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
622 | | void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
623 | | void CopyFrom(const ConsensusFrontierPB& from); |
624 | | void MergeFrom(const ConsensusFrontierPB& from); |
625 | | void Clear() PROTOBUF_FINAL; |
626 | | bool IsInitialized() const PROTOBUF_FINAL; |
627 | | |
628 | | size_t ByteSizeLong() const PROTOBUF_FINAL; |
629 | | bool MergePartialFromCodedStream( |
630 | | ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; |
631 | | void SerializeWithCachedSizes( |
632 | | ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; |
633 | | ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( |
634 | | bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; |
635 | 0 | int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } |
636 | | private: |
637 | | void SharedCtor(); |
638 | | void SharedDtor(); |
639 | | void SetCachedSize(int size) const PROTOBUF_FINAL; |
640 | | void InternalSwap(ConsensusFrontierPB* other); |
641 | | private: |
642 | 0 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
643 | 0 | return NULL; |
644 | 0 | } |
645 | 0 | inline void* MaybeArenaPtr() const { |
646 | 0 | return NULL; |
647 | 0 | } |
648 | | public: |
649 | | |
650 | | ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; |
651 | | |
652 | | // nested types ---------------------------------------------------- |
653 | | |
654 | | // accessors ------------------------------------------------------- |
655 | | |
656 | | // optional .yb.OpIdPB op_id = 1; |
657 | | bool has_op_id() const; |
658 | | void clear_op_id(); |
659 | | static const int kOpIdFieldNumber = 1; |
660 | | const ::yb::OpIdPB& op_id() const; |
661 | | ::yb::OpIdPB* release_op_id(); |
662 | | ::yb::OpIdPB* mutable_op_id(); |
663 | | void set_allocated_op_id(::yb::OpIdPB* op_id); |
664 | | |
665 | | // optional fixed64 hybrid_time = 2; |
666 | | bool has_hybrid_time() const; |
667 | | void clear_hybrid_time(); |
668 | | static const int kHybridTimeFieldNumber = 2; |
669 | | ::google::protobuf::uint64 hybrid_time() const; |
670 | | void set_hybrid_time(::google::protobuf::uint64 value); |
671 | | |
672 | | // optional fixed64 history_cutoff = 3; |
673 | | bool has_history_cutoff() const; |
674 | | void clear_history_cutoff(); |
675 | | static const int kHistoryCutoffFieldNumber = 3; |
676 | | ::google::protobuf::uint64 history_cutoff() const; |
677 | | void set_history_cutoff(::google::protobuf::uint64 value); |
678 | | |
679 | | // optional fixed64 hybrid_time_filter = 4; |
680 | | bool has_hybrid_time_filter() const; |
681 | | void clear_hybrid_time_filter(); |
682 | | static const int kHybridTimeFilterFieldNumber = 4; |
683 | | ::google::protobuf::uint64 hybrid_time_filter() const; |
684 | | void set_hybrid_time_filter(::google::protobuf::uint64 value); |
685 | | |
686 | | // optional fixed64 max_value_level_ttl_expiration_time = 5; |
687 | | bool has_max_value_level_ttl_expiration_time() const; |
688 | | void clear_max_value_level_ttl_expiration_time(); |
689 | | static const int kMaxValueLevelTtlExpirationTimeFieldNumber = 5; |
690 | | ::google::protobuf::uint64 max_value_level_ttl_expiration_time() const; |
691 | | void set_max_value_level_ttl_expiration_time(::google::protobuf::uint64 value); |
692 | | |
693 | | // @@protoc_insertion_point(class_scope:yb.docdb.ConsensusFrontierPB) |
694 | | private: |
695 | | void set_has_op_id(); |
696 | | void clear_has_op_id(); |
697 | | void set_has_hybrid_time(); |
698 | | void clear_has_hybrid_time(); |
699 | | void set_has_history_cutoff(); |
700 | | void clear_has_history_cutoff(); |
701 | | void set_has_hybrid_time_filter(); |
702 | | void clear_has_hybrid_time_filter(); |
703 | | void set_has_max_value_level_ttl_expiration_time(); |
704 | | void clear_has_max_value_level_ttl_expiration_time(); |
705 | | |
706 | | ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
707 | | ::google::protobuf::internal::HasBits<1> _has_bits_; |
708 | | mutable int _cached_size_; |
709 | | ::yb::OpIdPB* op_id_; |
710 | | ::google::protobuf::uint64 hybrid_time_; |
711 | | ::google::protobuf::uint64 history_cutoff_; |
712 | | ::google::protobuf::uint64 hybrid_time_filter_; |
713 | | ::google::protobuf::uint64 max_value_level_ttl_expiration_time_; |
714 | | friend struct ::protobuf_yb_2fdocdb_2fdocdb_2eproto::TableStruct; |
715 | | friend void ::protobuf_yb_2fdocdb_2fdocdb_2eproto::InitDefaultsConsensusFrontierPBImpl(); |
716 | | }; |
717 | | // ------------------------------------------------------------------- |
718 | | |
719 | | class ApplyTransactionStatePB : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:yb.docdb.ApplyTransactionStatePB) */ { |
720 | | public: |
721 | | ApplyTransactionStatePB(); |
722 | | virtual ~ApplyTransactionStatePB(); |
723 | | |
724 | | ApplyTransactionStatePB(const ApplyTransactionStatePB& from); |
725 | | |
726 | 0 | inline ApplyTransactionStatePB& operator=(const ApplyTransactionStatePB& from) { |
727 | 0 | CopyFrom(from); |
728 | 0 | return *this; |
729 | 0 | } |
730 | | #if LANG_CXX11 |
731 | | ApplyTransactionStatePB(ApplyTransactionStatePB&& from) noexcept |
732 | 0 | : ApplyTransactionStatePB() { |
733 | 0 | *this = ::std::move(from); |
734 | 0 | } Unexecuted instantiation: _ZN2yb5docdb23ApplyTransactionStatePBC2EOS1_ Unexecuted instantiation: _ZN2yb5docdb23ApplyTransactionStatePBC1EOS1_ |
735 | | |
736 | 0 | inline ApplyTransactionStatePB& operator=(ApplyTransactionStatePB&& from) noexcept { |
737 | 0 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
738 | 0 | if (this != &from) InternalSwap(&from); |
739 | 0 | } else { |
740 | 0 | CopyFrom(from); |
741 | 0 | } |
742 | 0 | return *this; |
743 | 0 | } |
744 | | #endif |
745 | 0 | inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { |
746 | 0 | return _internal_metadata_.unknown_fields(); |
747 | 0 | } |
748 | 0 | inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { |
749 | 0 | return _internal_metadata_.mutable_unknown_fields(); |
750 | 0 | } |
751 | | |
752 | | static const ::google::protobuf::Descriptor* descriptor(); |
753 | | static const ApplyTransactionStatePB& default_instance(); |
754 | | |
755 | | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
756 | 17.1k | static inline const ApplyTransactionStatePB* internal_default_instance() { |
757 | 17.1k | return reinterpret_cast<const ApplyTransactionStatePB*>( |
758 | 17.1k | &_ApplyTransactionStatePB_default_instance_); |
759 | 17.1k | } |
760 | | static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = |
761 | | 4; |
762 | | |
763 | | void Swap(ApplyTransactionStatePB* other); |
764 | 0 | friend void swap(ApplyTransactionStatePB& a, ApplyTransactionStatePB& b) { |
765 | 0 | a.Swap(&b); |
766 | 0 | } |
767 | | |
768 | | // implements Message ---------------------------------------------- |
769 | | |
770 | 0 | inline ApplyTransactionStatePB* New() const PROTOBUF_FINAL { return New(NULL); } |
771 | | |
772 | | ApplyTransactionStatePB* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; |
773 | | void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
774 | | void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
775 | | void CopyFrom(const ApplyTransactionStatePB& from); |
776 | | void MergeFrom(const ApplyTransactionStatePB& from); |
777 | | void Clear() PROTOBUF_FINAL; |
778 | | bool IsInitialized() const PROTOBUF_FINAL; |
779 | | |
780 | | size_t ByteSizeLong() const PROTOBUF_FINAL; |
781 | | bool MergePartialFromCodedStream( |
782 | | ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; |
783 | | void SerializeWithCachedSizes( |
784 | | ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; |
785 | | ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( |
786 | | bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; |
787 | 0 | int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } |
788 | | private: |
789 | | void SharedCtor(); |
790 | | void SharedDtor(); |
791 | | void SetCachedSize(int size) const PROTOBUF_FINAL; |
792 | | void InternalSwap(ApplyTransactionStatePB* other); |
793 | | private: |
794 | 0 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
795 | 0 | return NULL; |
796 | 0 | } |
797 | 0 | inline void* MaybeArenaPtr() const { |
798 | 0 | return NULL; |
799 | 0 | } |
800 | | public: |
801 | | |
802 | | ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; |
803 | | |
804 | | // nested types ---------------------------------------------------- |
805 | | |
806 | | // accessors ------------------------------------------------------- |
807 | | |
808 | | // optional bytes key = 1; |
809 | | bool has_key() const; |
810 | | void clear_key(); |
811 | | static const int kKeyFieldNumber = 1; |
812 | | const ::std::string& key() const; |
813 | | void set_key(const ::std::string& value); |
814 | | #if LANG_CXX11 |
815 | | void set_key(::std::string&& value); |
816 | | #endif |
817 | | void set_key(const char* value); |
818 | | void set_key(const void* value, size_t size); |
819 | | ::std::string* mutable_key(); |
820 | | ::std::string* release_key(); |
821 | | void set_allocated_key(::std::string* key); |
822 | | |
823 | | // optional .yb.AbortedSubTransactionSetPB aborted = 4; |
824 | | bool has_aborted() const; |
825 | | void clear_aborted(); |
826 | | static const int kAbortedFieldNumber = 4; |
827 | | const ::yb::AbortedSubTransactionSetPB& aborted() const; |
828 | | ::yb::AbortedSubTransactionSetPB* release_aborted(); |
829 | | ::yb::AbortedSubTransactionSetPB* mutable_aborted(); |
830 | | void set_allocated_aborted(::yb::AbortedSubTransactionSetPB* aborted); |
831 | | |
832 | | // optional fixed64 commit_ht = 3; |
833 | | bool has_commit_ht() const; |
834 | | void clear_commit_ht(); |
835 | | static const int kCommitHtFieldNumber = 3; |
836 | | ::google::protobuf::uint64 commit_ht() const; |
837 | | void set_commit_ht(::google::protobuf::uint64 value); |
838 | | |
839 | | // optional uint32 write_id = 2; |
840 | | bool has_write_id() const; |
841 | | void clear_write_id(); |
842 | | static const int kWriteIdFieldNumber = 2; |
843 | | ::google::protobuf::uint32 write_id() const; |
844 | | void set_write_id(::google::protobuf::uint32 value); |
845 | | |
846 | | // @@protoc_insertion_point(class_scope:yb.docdb.ApplyTransactionStatePB) |
847 | | private: |
848 | | void set_has_key(); |
849 | | void clear_has_key(); |
850 | | void set_has_write_id(); |
851 | | void clear_has_write_id(); |
852 | | void set_has_commit_ht(); |
853 | | void clear_has_commit_ht(); |
854 | | void set_has_aborted(); |
855 | | void clear_has_aborted(); |
856 | | |
857 | | ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
858 | | ::google::protobuf::internal::HasBits<1> _has_bits_; |
859 | | mutable int _cached_size_; |
860 | | ::google::protobuf::internal::ArenaStringPtr key_; |
861 | | ::yb::AbortedSubTransactionSetPB* aborted_; |
862 | | ::google::protobuf::uint64 commit_ht_; |
863 | | ::google::protobuf::uint32 write_id_; |
864 | | friend struct ::protobuf_yb_2fdocdb_2fdocdb_2eproto::TableStruct; |
865 | | friend void ::protobuf_yb_2fdocdb_2fdocdb_2eproto::InitDefaultsApplyTransactionStatePBImpl(); |
866 | | }; |
867 | | // =================================================================== |
868 | | |
869 | | |
870 | | // =================================================================== |
871 | | |
872 | | #ifdef __GNUC__ |
873 | | #pragma GCC diagnostic push |
874 | | #pragma GCC diagnostic ignored "-Wstrict-aliasing" |
875 | | #endif // __GNUC__ |
876 | | // KeyValuePairPB |
877 | | |
878 | | // optional bytes key = 1; |
879 | 306M | inline bool KeyValuePairPB::has_key() const { |
880 | 306M | return (_has_bits_[0] & 0x00000001u) != 0; |
881 | 306M | } |
882 | 90.2M | inline void KeyValuePairPB::set_has_key() { |
883 | 90.2M | _has_bits_[0] |= 0x00000001u; |
884 | 90.2M | } |
885 | 0 | inline void KeyValuePairPB::clear_has_key() { |
886 | 0 | _has_bits_[0] &= ~0x00000001u; |
887 | 0 | } |
888 | 0 | inline void KeyValuePairPB::clear_key() { |
889 | 0 | key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
890 | 0 | clear_has_key(); |
891 | 0 | } |
892 | 740M | inline const ::std::string& KeyValuePairPB::key() const { |
893 | | // @@protoc_insertion_point(field_get:yb.docdb.KeyValuePairPB.key) |
894 | 740M | return key_.GetNoArena(); |
895 | 740M | } |
896 | 1.43M | inline void KeyValuePairPB::set_key(const ::std::string& value) { |
897 | 1.43M | set_has_key(); |
898 | 1.43M | key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
899 | | // @@protoc_insertion_point(field_set:yb.docdb.KeyValuePairPB.key) |
900 | 1.43M | } |
901 | | #if LANG_CXX11 |
902 | 2.08M | inline void KeyValuePairPB::set_key(::std::string&& value) { |
903 | 2.08M | set_has_key(); |
904 | 2.08M | key_.SetNoArena( |
905 | 2.08M | &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); |
906 | | // @@protoc_insertion_point(field_set_rvalue:yb.docdb.KeyValuePairPB.key) |
907 | 2.08M | } |
908 | | #endif |
909 | 0 | inline void KeyValuePairPB::set_key(const char* value) { |
910 | 0 | GOOGLE_DCHECK(value != NULL); |
911 | 0 | set_has_key(); |
912 | 0 | key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
913 | 0 | // @@protoc_insertion_point(field_set_char:yb.docdb.KeyValuePairPB.key) |
914 | 0 | } |
915 | 30.1k | inline void KeyValuePairPB::set_key(const void* value, size_t size) { |
916 | 30.1k | set_has_key(); |
917 | 30.1k | key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
918 | 30.1k | ::std::string(reinterpret_cast<const char*>(value), size)); |
919 | | // @@protoc_insertion_point(field_set_pointer:yb.docdb.KeyValuePairPB.key) |
920 | 30.1k | } |
921 | 86.6M | inline ::std::string* KeyValuePairPB::mutable_key() { |
922 | 86.6M | set_has_key(); |
923 | | // @@protoc_insertion_point(field_mutable:yb.docdb.KeyValuePairPB.key) |
924 | 86.6M | return key_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
925 | 86.6M | } |
926 | 0 | inline ::std::string* KeyValuePairPB::release_key() { |
927 | 0 | // @@protoc_insertion_point(field_release:yb.docdb.KeyValuePairPB.key) |
928 | 0 | clear_has_key(); |
929 | 0 | return key_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
930 | 0 | } |
931 | 0 | inline void KeyValuePairPB::set_allocated_key(::std::string* key) { |
932 | 0 | if (key != NULL) { |
933 | 0 | set_has_key(); |
934 | 0 | } else { |
935 | 0 | clear_has_key(); |
936 | 0 | } |
937 | 0 | key_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), key); |
938 | 0 | // @@protoc_insertion_point(field_set_allocated:yb.docdb.KeyValuePairPB.key) |
939 | 0 | } |
940 | | |
941 | | // optional bytes value = 2; |
942 | 304M | inline bool KeyValuePairPB::has_value() const { |
943 | 304M | return (_has_bits_[0] & 0x00000002u) != 0; |
944 | 304M | } |
945 | 90.3M | inline void KeyValuePairPB::set_has_value() { |
946 | 90.3M | _has_bits_[0] |= 0x00000002u; |
947 | 90.3M | } |
948 | 0 | inline void KeyValuePairPB::clear_has_value() { |
949 | 0 | _has_bits_[0] &= ~0x00000002u; |
950 | 0 | } |
951 | 0 | inline void KeyValuePairPB::clear_value() { |
952 | 0 | value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
953 | 0 | clear_has_value(); |
954 | 0 | } |
955 | 609M | inline const ::std::string& KeyValuePairPB::value() const { |
956 | | // @@protoc_insertion_point(field_get:yb.docdb.KeyValuePairPB.value) |
957 | 609M | return value_.GetNoArena(); |
958 | 609M | } |
959 | 0 | inline void KeyValuePairPB::set_value(const ::std::string& value) { |
960 | 0 | set_has_value(); |
961 | 0 | value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
962 | 0 | // @@protoc_insertion_point(field_set:yb.docdb.KeyValuePairPB.value) |
963 | 0 | } |
964 | | #if LANG_CXX11 |
965 | 3.54M | inline void KeyValuePairPB::set_value(::std::string&& value) { |
966 | 3.54M | set_has_value(); |
967 | 3.54M | value_.SetNoArena( |
968 | 3.54M | &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); |
969 | | // @@protoc_insertion_point(field_set_rvalue:yb.docdb.KeyValuePairPB.value) |
970 | 3.54M | } |
971 | | #endif |
972 | 0 | inline void KeyValuePairPB::set_value(const char* value) { |
973 | 0 | GOOGLE_DCHECK(value != NULL); |
974 | 0 | set_has_value(); |
975 | 0 | value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
976 | 0 | // @@protoc_insertion_point(field_set_char:yb.docdb.KeyValuePairPB.value) |
977 | 0 | } |
978 | 0 | inline void KeyValuePairPB::set_value(const void* value, size_t size) { |
979 | 0 | set_has_value(); |
980 | 0 | value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
981 | 0 | ::std::string(reinterpret_cast<const char*>(value), size)); |
982 | 0 | // @@protoc_insertion_point(field_set_pointer:yb.docdb.KeyValuePairPB.value) |
983 | 0 | } |
984 | 86.7M | inline ::std::string* KeyValuePairPB::mutable_value() { |
985 | 86.7M | set_has_value(); |
986 | | // @@protoc_insertion_point(field_mutable:yb.docdb.KeyValuePairPB.value) |
987 | 86.7M | return value_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
988 | 86.7M | } |
989 | 0 | inline ::std::string* KeyValuePairPB::release_value() { |
990 | 0 | // @@protoc_insertion_point(field_release:yb.docdb.KeyValuePairPB.value) |
991 | 0 | clear_has_value(); |
992 | 0 | return value_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
993 | 0 | } |
994 | 0 | inline void KeyValuePairPB::set_allocated_value(::std::string* value) { |
995 | 0 | if (value != NULL) { |
996 | 0 | set_has_value(); |
997 | 0 | } else { |
998 | 0 | clear_has_value(); |
999 | 0 | } |
1000 | 0 | value_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
1001 | 0 | // @@protoc_insertion_point(field_set_allocated:yb.docdb.KeyValuePairPB.value) |
1002 | 0 | } |
1003 | | |
1004 | | // optional fixed64 external_hybrid_time = 3; |
1005 | 345M | inline bool KeyValuePairPB::has_external_hybrid_time() const { |
1006 | 345M | return (_has_bits_[0] & 0x00000004u) != 0; |
1007 | 345M | } |
1008 | 0 | inline void KeyValuePairPB::set_has_external_hybrid_time() { |
1009 | 0 | _has_bits_[0] |= 0x00000004u; |
1010 | 0 | } |
1011 | 0 | inline void KeyValuePairPB::clear_has_external_hybrid_time() { |
1012 | 0 | _has_bits_[0] &= ~0x00000004u; |
1013 | 0 | } |
1014 | 0 | inline void KeyValuePairPB::clear_external_hybrid_time() { |
1015 | 0 | external_hybrid_time_ = GOOGLE_ULONGLONG(0); |
1016 | 0 | clear_has_external_hybrid_time(); |
1017 | 0 | } |
1018 | 0 | inline ::google::protobuf::uint64 KeyValuePairPB::external_hybrid_time() const { |
1019 | 0 | // @@protoc_insertion_point(field_get:yb.docdb.KeyValuePairPB.external_hybrid_time) |
1020 | 0 | return external_hybrid_time_; |
1021 | 0 | } |
1022 | 0 | inline void KeyValuePairPB::set_external_hybrid_time(::google::protobuf::uint64 value) { |
1023 | 0 | set_has_external_hybrid_time(); |
1024 | 0 | external_hybrid_time_ = value; |
1025 | 0 | // @@protoc_insertion_point(field_set:yb.docdb.KeyValuePairPB.external_hybrid_time) |
1026 | 0 | } |
1027 | | |
1028 | | // ------------------------------------------------------------------- |
1029 | | |
1030 | | // ApplyExternalTransactionPB |
1031 | | |
1032 | | // optional bytes transaction_id = 1; |
1033 | 0 | inline bool ApplyExternalTransactionPB::has_transaction_id() const { |
1034 | 0 | return (_has_bits_[0] & 0x00000001u) != 0; |
1035 | 0 | } |
1036 | 0 | inline void ApplyExternalTransactionPB::set_has_transaction_id() { |
1037 | 0 | _has_bits_[0] |= 0x00000001u; |
1038 | 0 | } |
1039 | 0 | inline void ApplyExternalTransactionPB::clear_has_transaction_id() { |
1040 | 0 | _has_bits_[0] &= ~0x00000001u; |
1041 | 0 | } |
1042 | 0 | inline void ApplyExternalTransactionPB::clear_transaction_id() { |
1043 | 0 | transaction_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
1044 | 0 | clear_has_transaction_id(); |
1045 | 0 | } |
1046 | 0 | inline const ::std::string& ApplyExternalTransactionPB::transaction_id() const { |
1047 | 0 | // @@protoc_insertion_point(field_get:yb.docdb.ApplyExternalTransactionPB.transaction_id) |
1048 | 0 | return transaction_id_.GetNoArena(); |
1049 | 0 | } |
1050 | 0 | inline void ApplyExternalTransactionPB::set_transaction_id(const ::std::string& value) { |
1051 | 0 | set_has_transaction_id(); |
1052 | 0 | transaction_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
1053 | 0 | // @@protoc_insertion_point(field_set:yb.docdb.ApplyExternalTransactionPB.transaction_id) |
1054 | 0 | } |
1055 | | #if LANG_CXX11 |
1056 | 0 | inline void ApplyExternalTransactionPB::set_transaction_id(::std::string&& value) { |
1057 | 0 | set_has_transaction_id(); |
1058 | 0 | transaction_id_.SetNoArena( |
1059 | 0 | &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); |
1060 | 0 | // @@protoc_insertion_point(field_set_rvalue:yb.docdb.ApplyExternalTransactionPB.transaction_id) |
1061 | 0 | } |
1062 | | #endif |
1063 | 0 | inline void ApplyExternalTransactionPB::set_transaction_id(const char* value) { |
1064 | 0 | GOOGLE_DCHECK(value != NULL); |
1065 | 0 | set_has_transaction_id(); |
1066 | 0 | transaction_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
1067 | 0 | // @@protoc_insertion_point(field_set_char:yb.docdb.ApplyExternalTransactionPB.transaction_id) |
1068 | 0 | } |
1069 | 0 | inline void ApplyExternalTransactionPB::set_transaction_id(const void* value, size_t size) { |
1070 | 0 | set_has_transaction_id(); |
1071 | 0 | transaction_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
1072 | 0 | ::std::string(reinterpret_cast<const char*>(value), size)); |
1073 | 0 | // @@protoc_insertion_point(field_set_pointer:yb.docdb.ApplyExternalTransactionPB.transaction_id) |
1074 | 0 | } |
1075 | 0 | inline ::std::string* ApplyExternalTransactionPB::mutable_transaction_id() { |
1076 | 0 | set_has_transaction_id(); |
1077 | 0 | // @@protoc_insertion_point(field_mutable:yb.docdb.ApplyExternalTransactionPB.transaction_id) |
1078 | 0 | return transaction_id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
1079 | 0 | } |
1080 | 0 | inline ::std::string* ApplyExternalTransactionPB::release_transaction_id() { |
1081 | 0 | // @@protoc_insertion_point(field_release:yb.docdb.ApplyExternalTransactionPB.transaction_id) |
1082 | 0 | clear_has_transaction_id(); |
1083 | 0 | return transaction_id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
1084 | 0 | } |
1085 | 0 | inline void ApplyExternalTransactionPB::set_allocated_transaction_id(::std::string* transaction_id) { |
1086 | 0 | if (transaction_id != NULL) { |
1087 | 0 | set_has_transaction_id(); |
1088 | 0 | } else { |
1089 | 0 | clear_has_transaction_id(); |
1090 | 0 | } |
1091 | 0 | transaction_id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), transaction_id); |
1092 | 0 | // @@protoc_insertion_point(field_set_allocated:yb.docdb.ApplyExternalTransactionPB.transaction_id) |
1093 | 0 | } |
1094 | | |
1095 | | // optional fixed64 commit_hybrid_time = 2; |
1096 | 0 | inline bool ApplyExternalTransactionPB::has_commit_hybrid_time() const { |
1097 | 0 | return (_has_bits_[0] & 0x00000002u) != 0; |
1098 | 0 | } |
1099 | 0 | inline void ApplyExternalTransactionPB::set_has_commit_hybrid_time() { |
1100 | 0 | _has_bits_[0] |= 0x00000002u; |
1101 | 0 | } |
1102 | 0 | inline void ApplyExternalTransactionPB::clear_has_commit_hybrid_time() { |
1103 | 0 | _has_bits_[0] &= ~0x00000002u; |
1104 | 0 | } |
1105 | 0 | inline void ApplyExternalTransactionPB::clear_commit_hybrid_time() { |
1106 | 0 | commit_hybrid_time_ = GOOGLE_ULONGLONG(0); |
1107 | 0 | clear_has_commit_hybrid_time(); |
1108 | 0 | } |
1109 | 0 | inline ::google::protobuf::uint64 ApplyExternalTransactionPB::commit_hybrid_time() const { |
1110 | 0 | // @@protoc_insertion_point(field_get:yb.docdb.ApplyExternalTransactionPB.commit_hybrid_time) |
1111 | 0 | return commit_hybrid_time_; |
1112 | 0 | } |
1113 | 0 | inline void ApplyExternalTransactionPB::set_commit_hybrid_time(::google::protobuf::uint64 value) { |
1114 | 0 | set_has_commit_hybrid_time(); |
1115 | 0 | commit_hybrid_time_ = value; |
1116 | 0 | // @@protoc_insertion_point(field_set:yb.docdb.ApplyExternalTransactionPB.commit_hybrid_time) |
1117 | 0 | } |
1118 | | |
1119 | | // ------------------------------------------------------------------- |
1120 | | |
1121 | | // KeyValueWriteBatchPB |
1122 | | |
1123 | | // repeated .yb.docdb.KeyValuePairPB write_pairs = 1; |
1124 | 70.6M | inline int KeyValueWriteBatchPB::write_pairs_size() const { |
1125 | 70.6M | return write_pairs_.size(); |
1126 | 70.6M | } |
1127 | 0 | inline void KeyValueWriteBatchPB::clear_write_pairs() { |
1128 | 0 | write_pairs_.Clear(); |
1129 | 0 | } |
1130 | 448M | inline const ::yb::docdb::KeyValuePairPB& KeyValueWriteBatchPB::write_pairs(int index) const { |
1131 | | // @@protoc_insertion_point(field_get:yb.docdb.KeyValueWriteBatchPB.write_pairs) |
1132 | 448M | return write_pairs_.Get(index); |
1133 | 448M | } |
1134 | 0 | inline ::yb::docdb::KeyValuePairPB* KeyValueWriteBatchPB::mutable_write_pairs(int index) { |
1135 | 0 | // @@protoc_insertion_point(field_mutable:yb.docdb.KeyValueWriteBatchPB.write_pairs) |
1136 | 0 | return write_pairs_.Mutable(index); |
1137 | 0 | } |
1138 | 86.4M | inline ::yb::docdb::KeyValuePairPB* KeyValueWriteBatchPB::add_write_pairs() { |
1139 | | // @@protoc_insertion_point(field_add:yb.docdb.KeyValueWriteBatchPB.write_pairs) |
1140 | 86.4M | return write_pairs_.Add(); |
1141 | 86.4M | } |
1142 | | inline ::google::protobuf::RepeatedPtrField< ::yb::docdb::KeyValuePairPB >* |
1143 | 1.64M | KeyValueWriteBatchPB::mutable_write_pairs() { |
1144 | | // @@protoc_insertion_point(field_mutable_list:yb.docdb.KeyValueWriteBatchPB.write_pairs) |
1145 | 1.64M | return &write_pairs_; |
1146 | 1.64M | } |
1147 | | inline const ::google::protobuf::RepeatedPtrField< ::yb::docdb::KeyValuePairPB >& |
1148 | 16.5M | KeyValueWriteBatchPB::write_pairs() const { |
1149 | | // @@protoc_insertion_point(field_list:yb.docdb.KeyValueWriteBatchPB.write_pairs) |
1150 | 16.5M | return write_pairs_; |
1151 | 16.5M | } |
1152 | | |
1153 | | // optional .yb.TransactionMetadataPB transaction = 2; |
1154 | 26.1M | inline bool KeyValueWriteBatchPB::has_transaction() const { |
1155 | 26.1M | return (_has_bits_[0] & 0x00000001u) != 0; |
1156 | 26.1M | } |
1157 | 2.47M | inline void KeyValueWriteBatchPB::set_has_transaction() { |
1158 | 2.47M | _has_bits_[0] |= 0x00000001u; |
1159 | 2.47M | } |
1160 | 0 | inline void KeyValueWriteBatchPB::clear_has_transaction() { |
1161 | 0 | _has_bits_[0] &= ~0x00000001u; |
1162 | 0 | } |
1163 | 8.22M | inline const ::yb::TransactionMetadataPB& KeyValueWriteBatchPB::transaction() const { |
1164 | 8.22M | const ::yb::TransactionMetadataPB* p = transaction_; |
1165 | | // @@protoc_insertion_point(field_get:yb.docdb.KeyValueWriteBatchPB.transaction) |
1166 | 7.09M | return p != NULL ? *p : *reinterpret_cast<const ::yb::TransactionMetadataPB*>( |
1167 | 1.13M | &::yb::_TransactionMetadataPB_default_instance_); |
1168 | 8.22M | } |
1169 | 0 | inline ::yb::TransactionMetadataPB* KeyValueWriteBatchPB::release_transaction() { |
1170 | 0 | // @@protoc_insertion_point(field_release:yb.docdb.KeyValueWriteBatchPB.transaction) |
1171 | 0 | clear_has_transaction(); |
1172 | 0 | ::yb::TransactionMetadataPB* temp = transaction_; |
1173 | 0 | transaction_ = NULL; |
1174 | 0 | return temp; |
1175 | 0 | } |
1176 | 2.47M | inline ::yb::TransactionMetadataPB* KeyValueWriteBatchPB::mutable_transaction() { |
1177 | 2.47M | set_has_transaction(); |
1178 | 2.47M | if (transaction_ == NULL) { |
1179 | 2.46M | transaction_ = new ::yb::TransactionMetadataPB; |
1180 | 2.46M | } |
1181 | | // @@protoc_insertion_point(field_mutable:yb.docdb.KeyValueWriteBatchPB.transaction) |
1182 | 2.47M | return transaction_; |
1183 | 2.47M | } |
1184 | 0 | inline void KeyValueWriteBatchPB::set_allocated_transaction(::yb::TransactionMetadataPB* transaction) { |
1185 | 0 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
1186 | 0 | if (message_arena == NULL) { |
1187 | 0 | delete reinterpret_cast< ::google::protobuf::MessageLite*>(transaction_); |
1188 | 0 | } |
1189 | 0 | if (transaction) { |
1190 | 0 | ::google::protobuf::Arena* submessage_arena = NULL; |
1191 | 0 | if (message_arena != submessage_arena) { |
1192 | 0 | transaction = ::google::protobuf::internal::GetOwnedMessage( |
1193 | 0 | message_arena, transaction, submessage_arena); |
1194 | 0 | } |
1195 | 0 | set_has_transaction(); |
1196 | 0 | } else { |
1197 | 0 | clear_has_transaction(); |
1198 | 0 | } |
1199 | 0 | transaction_ = transaction; |
1200 | 0 | // @@protoc_insertion_point(field_set_allocated:yb.docdb.KeyValueWriteBatchPB.transaction) |
1201 | 0 | } |
1202 | | |
1203 | | // optional .yb.SubTransactionMetadataPB subtransaction = 8; |
1204 | 19.8M | inline bool KeyValueWriteBatchPB::has_subtransaction() const { |
1205 | 19.8M | return (_has_bits_[0] & 0x00000002u) != 0; |
1206 | 19.8M | } |
1207 | 52.4k | inline void KeyValueWriteBatchPB::set_has_subtransaction() { |
1208 | 52.4k | _has_bits_[0] |= 0x00000002u; |
1209 | 52.4k | } |
1210 | 0 | inline void KeyValueWriteBatchPB::clear_has_subtransaction() { |
1211 | 0 | _has_bits_[0] &= ~0x00000002u; |
1212 | 0 | } |
1213 | 1.55M | inline const ::yb::SubTransactionMetadataPB& KeyValueWriteBatchPB::subtransaction() const { |
1214 | 1.55M | const ::yb::SubTransactionMetadataPB* p = subtransaction_; |
1215 | | // @@protoc_insertion_point(field_get:yb.docdb.KeyValueWriteBatchPB.subtransaction) |
1216 | 1.51M | return p != NULL ? *p : *reinterpret_cast<const ::yb::SubTransactionMetadataPB*>( |
1217 | 1.51M | &::yb::_SubTransactionMetadataPB_default_instance_); |
1218 | 1.55M | } |
1219 | 0 | inline ::yb::SubTransactionMetadataPB* KeyValueWriteBatchPB::release_subtransaction() { |
1220 | 0 | // @@protoc_insertion_point(field_release:yb.docdb.KeyValueWriteBatchPB.subtransaction) |
1221 | 0 | clear_has_subtransaction(); |
1222 | 0 | ::yb::SubTransactionMetadataPB* temp = subtransaction_; |
1223 | 0 | subtransaction_ = NULL; |
1224 | 0 | return temp; |
1225 | 0 | } |
1226 | 52.4k | inline ::yb::SubTransactionMetadataPB* KeyValueWriteBatchPB::mutable_subtransaction() { |
1227 | 52.4k | set_has_subtransaction(); |
1228 | 52.4k | if (subtransaction_ == NULL) { |
1229 | 52.4k | subtransaction_ = new ::yb::SubTransactionMetadataPB; |
1230 | 52.4k | } |
1231 | | // @@protoc_insertion_point(field_mutable:yb.docdb.KeyValueWriteBatchPB.subtransaction) |
1232 | 52.4k | return subtransaction_; |
1233 | 52.4k | } |
1234 | 0 | inline void KeyValueWriteBatchPB::set_allocated_subtransaction(::yb::SubTransactionMetadataPB* subtransaction) { |
1235 | 0 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
1236 | 0 | if (message_arena == NULL) { |
1237 | 0 | delete reinterpret_cast< ::google::protobuf::MessageLite*>(subtransaction_); |
1238 | 0 | } |
1239 | 0 | if (subtransaction) { |
1240 | 0 | ::google::protobuf::Arena* submessage_arena = NULL; |
1241 | 0 | if (message_arena != submessage_arena) { |
1242 | 0 | subtransaction = ::google::protobuf::internal::GetOwnedMessage( |
1243 | 0 | message_arena, subtransaction, submessage_arena); |
1244 | 0 | } |
1245 | 0 | set_has_subtransaction(); |
1246 | 0 | } else { |
1247 | 0 | clear_has_subtransaction(); |
1248 | 0 | } |
1249 | 0 | subtransaction_ = subtransaction; |
1250 | 0 | // @@protoc_insertion_point(field_set_allocated:yb.docdb.KeyValueWriteBatchPB.subtransaction) |
1251 | 0 | } |
1252 | | |
1253 | | // optional bool DEPRECATED_may_have_metadata = 3; |
1254 | 18.6M | inline bool KeyValueWriteBatchPB::has_deprecated_may_have_metadata() const { |
1255 | 18.6M | return (_has_bits_[0] & 0x00000004u) != 0; |
1256 | 18.6M | } |
1257 | 6.40M | inline void KeyValueWriteBatchPB::set_has_deprecated_may_have_metadata() { |
1258 | 6.40M | _has_bits_[0] |= 0x00000004u; |
1259 | 6.40M | } |
1260 | 0 | inline void KeyValueWriteBatchPB::clear_has_deprecated_may_have_metadata() { |
1261 | 0 | _has_bits_[0] &= ~0x00000004u; |
1262 | 0 | } |
1263 | 0 | inline void KeyValueWriteBatchPB::clear_deprecated_may_have_metadata() { |
1264 | 0 | deprecated_may_have_metadata_ = false; |
1265 | 0 | clear_has_deprecated_may_have_metadata(); |
1266 | 0 | } |
1267 | 7.72M | inline bool KeyValueWriteBatchPB::deprecated_may_have_metadata() const { |
1268 | | // @@protoc_insertion_point(field_get:yb.docdb.KeyValueWriteBatchPB.DEPRECATED_may_have_metadata) |
1269 | 7.72M | return deprecated_may_have_metadata_; |
1270 | 7.72M | } |
1271 | 2.15M | inline void KeyValueWriteBatchPB::set_deprecated_may_have_metadata(bool value) { |
1272 | 2.15M | set_has_deprecated_may_have_metadata(); |
1273 | 2.15M | deprecated_may_have_metadata_ = value; |
1274 | | // @@protoc_insertion_point(field_set:yb.docdb.KeyValueWriteBatchPB.DEPRECATED_may_have_metadata) |
1275 | 2.15M | } |
1276 | | |
1277 | | // repeated .yb.docdb.KeyValuePairPB read_pairs = 5; |
1278 | 27.6M | inline int KeyValueWriteBatchPB::read_pairs_size() const { |
1279 | 27.6M | return read_pairs_.size(); |
1280 | 27.6M | } |
1281 | 0 | inline void KeyValueWriteBatchPB::clear_read_pairs() { |
1282 | 0 | read_pairs_.Clear(); |
1283 | 0 | } |
1284 | 20.0M | inline const ::yb::docdb::KeyValuePairPB& KeyValueWriteBatchPB::read_pairs(int index) const { |
1285 | | // @@protoc_insertion_point(field_get:yb.docdb.KeyValueWriteBatchPB.read_pairs) |
1286 | 20.0M | return read_pairs_.Get(index); |
1287 | 20.0M | } |
1288 | 0 | inline ::yb::docdb::KeyValuePairPB* KeyValueWriteBatchPB::mutable_read_pairs(int index) { |
1289 | 0 | // @@protoc_insertion_point(field_mutable:yb.docdb.KeyValueWriteBatchPB.read_pairs) |
1290 | 0 | return read_pairs_.Mutable(index); |
1291 | 0 | } |
1292 | 2.34M | inline ::yb::docdb::KeyValuePairPB* KeyValueWriteBatchPB::add_read_pairs() { |
1293 | | // @@protoc_insertion_point(field_add:yb.docdb.KeyValueWriteBatchPB.read_pairs) |
1294 | 2.34M | return read_pairs_.Add(); |
1295 | 2.34M | } |
1296 | | inline ::google::protobuf::RepeatedPtrField< ::yb::docdb::KeyValuePairPB >* |
1297 | 1.46M | KeyValueWriteBatchPB::mutable_read_pairs() { |
1298 | | // @@protoc_insertion_point(field_mutable_list:yb.docdb.KeyValueWriteBatchPB.read_pairs) |
1299 | 1.46M | return &read_pairs_; |
1300 | 1.46M | } |
1301 | | inline const ::google::protobuf::RepeatedPtrField< ::yb::docdb::KeyValuePairPB >& |
1302 | 8.25M | KeyValueWriteBatchPB::read_pairs() const { |
1303 | | // @@protoc_insertion_point(field_list:yb.docdb.KeyValueWriteBatchPB.read_pairs) |
1304 | 8.25M | return read_pairs_; |
1305 | 8.25M | } |
1306 | | |
1307 | | // optional .yb.RowMarkType row_mark_type = 6; |
1308 | 22.1M | inline bool KeyValueWriteBatchPB::has_row_mark_type() const { |
1309 | 22.1M | return (_has_bits_[0] & 0x00000008u) != 0; |
1310 | 22.1M | } |
1311 | 13.6k | inline void KeyValueWriteBatchPB::set_has_row_mark_type() { |
1312 | 13.6k | _has_bits_[0] |= 0x00000008u; |
1313 | 13.6k | } |
1314 | 0 | inline void KeyValueWriteBatchPB::clear_has_row_mark_type() { |
1315 | 0 | _has_bits_[0] &= ~0x00000008u; |
1316 | 0 | } |
1317 | 0 | inline void KeyValueWriteBatchPB::clear_row_mark_type() { |
1318 | 0 | row_mark_type_ = 0; |
1319 | 0 | clear_has_row_mark_type(); |
1320 | 0 | } |
1321 | 98.5k | inline ::yb::RowMarkType KeyValueWriteBatchPB::row_mark_type() const { |
1322 | | // @@protoc_insertion_point(field_get:yb.docdb.KeyValueWriteBatchPB.row_mark_type) |
1323 | 98.5k | return static_cast< ::yb::RowMarkType >(row_mark_type_); |
1324 | 98.5k | } |
1325 | 13.5k | inline void KeyValueWriteBatchPB::set_row_mark_type(::yb::RowMarkType value) { |
1326 | 13.5k | assert(::yb::RowMarkType_IsValid(value)); |
1327 | 13.5k | set_has_row_mark_type(); |
1328 | 13.5k | row_mark_type_ = value; |
1329 | | // @@protoc_insertion_point(field_set:yb.docdb.KeyValueWriteBatchPB.row_mark_type) |
1330 | 13.5k | } |
1331 | | |
1332 | | // optional .yb.WaitPolicy wait_policy = 10; |
1333 | 18.6M | inline bool KeyValueWriteBatchPB::has_wait_policy() const { |
1334 | 18.6M | return (_has_bits_[0] & 0x00000020u) != 0; |
1335 | 18.6M | } |
1336 | 1.74M | inline void KeyValueWriteBatchPB::set_has_wait_policy() { |
1337 | 1.74M | _has_bits_[0] |= 0x00000020u; |
1338 | 1.74M | } |
1339 | 0 | inline void KeyValueWriteBatchPB::clear_has_wait_policy() { |
1340 | 0 | _has_bits_[0] &= ~0x00000020u; |
1341 | 0 | } |
1342 | 0 | inline void KeyValueWriteBatchPB::clear_wait_policy() { |
1343 | 0 | wait_policy_ = 0; |
1344 | 0 | clear_has_wait_policy(); |
1345 | 0 | } |
1346 | 2.60M | inline ::yb::WaitPolicy KeyValueWriteBatchPB::wait_policy() const { |
1347 | | // @@protoc_insertion_point(field_get:yb.docdb.KeyValueWriteBatchPB.wait_policy) |
1348 | 2.60M | return static_cast< ::yb::WaitPolicy >(wait_policy_); |
1349 | 2.60M | } |
1350 | 1.74M | inline void KeyValueWriteBatchPB::set_wait_policy(::yb::WaitPolicy value) { |
1351 | 1.74M | assert(::yb::WaitPolicy_IsValid(value)); |
1352 | 1.74M | set_has_wait_policy(); |
1353 | 1.74M | wait_policy_ = value; |
1354 | | // @@protoc_insertion_point(field_set:yb.docdb.KeyValueWriteBatchPB.wait_policy) |
1355 | 1.74M | } |
1356 | | |
1357 | | // repeated .yb.docdb.ApplyExternalTransactionPB apply_external_transactions = 7; |
1358 | 27.6M | inline int KeyValueWriteBatchPB::apply_external_transactions_size() const { |
1359 | 27.6M | return apply_external_transactions_.size(); |
1360 | 27.6M | } |
1361 | 0 | inline void KeyValueWriteBatchPB::clear_apply_external_transactions() { |
1362 | 0 | apply_external_transactions_.Clear(); |
1363 | 0 | } |
1364 | 0 | inline const ::yb::docdb::ApplyExternalTransactionPB& KeyValueWriteBatchPB::apply_external_transactions(int index) const { |
1365 | 0 | // @@protoc_insertion_point(field_get:yb.docdb.KeyValueWriteBatchPB.apply_external_transactions) |
1366 | 0 | return apply_external_transactions_.Get(index); |
1367 | 0 | } |
1368 | 0 | inline ::yb::docdb::ApplyExternalTransactionPB* KeyValueWriteBatchPB::mutable_apply_external_transactions(int index) { |
1369 | 0 | // @@protoc_insertion_point(field_mutable:yb.docdb.KeyValueWriteBatchPB.apply_external_transactions) |
1370 | 0 | return apply_external_transactions_.Mutable(index); |
1371 | 0 | } |
1372 | 0 | inline ::yb::docdb::ApplyExternalTransactionPB* KeyValueWriteBatchPB::add_apply_external_transactions() { |
1373 | 0 | // @@protoc_insertion_point(field_add:yb.docdb.KeyValueWriteBatchPB.apply_external_transactions) |
1374 | 0 | return apply_external_transactions_.Add(); |
1375 | 0 | } |
1376 | | inline ::google::protobuf::RepeatedPtrField< ::yb::docdb::ApplyExternalTransactionPB >* |
1377 | 0 | KeyValueWriteBatchPB::mutable_apply_external_transactions() { |
1378 | 0 | // @@protoc_insertion_point(field_mutable_list:yb.docdb.KeyValueWriteBatchPB.apply_external_transactions) |
1379 | 0 | return &apply_external_transactions_; |
1380 | 0 | } |
1381 | | inline const ::google::protobuf::RepeatedPtrField< ::yb::docdb::ApplyExternalTransactionPB >& |
1382 | 3.43M | KeyValueWriteBatchPB::apply_external_transactions() const { |
1383 | | // @@protoc_insertion_point(field_list:yb.docdb.KeyValueWriteBatchPB.apply_external_transactions) |
1384 | 3.43M | return apply_external_transactions_; |
1385 | 3.43M | } |
1386 | | |
1387 | | // optional int64 ttl = 9; |
1388 | 23.3M | inline bool KeyValueWriteBatchPB::has_ttl() const { |
1389 | 23.3M | return (_has_bits_[0] & 0x00000010u) != 0; |
1390 | 23.3M | } |
1391 | 276 | inline void KeyValueWriteBatchPB::set_has_ttl() { |
1392 | 276 | _has_bits_[0] |= 0x00000010u; |
1393 | 276 | } |
1394 | 0 | inline void KeyValueWriteBatchPB::clear_has_ttl() { |
1395 | 0 | _has_bits_[0] &= ~0x00000010u; |
1396 | 0 | } |
1397 | 0 | inline void KeyValueWriteBatchPB::clear_ttl() { |
1398 | 0 | ttl_ = GOOGLE_LONGLONG(0); |
1399 | 0 | clear_has_ttl(); |
1400 | 0 | } |
1401 | 1.83k | inline ::google::protobuf::int64 KeyValueWriteBatchPB::ttl() const { |
1402 | | // @@protoc_insertion_point(field_get:yb.docdb.KeyValueWriteBatchPB.ttl) |
1403 | 1.83k | return ttl_; |
1404 | 1.83k | } |
1405 | 92 | inline void KeyValueWriteBatchPB::set_ttl(::google::protobuf::int64 value) { |
1406 | 92 | set_has_ttl(); |
1407 | 92 | ttl_ = value; |
1408 | | // @@protoc_insertion_point(field_set:yb.docdb.KeyValueWriteBatchPB.ttl) |
1409 | 92 | } |
1410 | | |
1411 | | // ------------------------------------------------------------------- |
1412 | | |
1413 | | // ConsensusFrontierPB |
1414 | | |
1415 | | // optional .yb.OpIdPB op_id = 1; |
1416 | 580k | inline bool ConsensusFrontierPB::has_op_id() const { |
1417 | 580k | return (_has_bits_[0] & 0x00000001u) != 0; |
1418 | 580k | } |
1419 | 299k | inline void ConsensusFrontierPB::set_has_op_id() { |
1420 | 299k | _has_bits_[0] |= 0x00000001u; |
1421 | 299k | } |
1422 | 0 | inline void ConsensusFrontierPB::clear_has_op_id() { |
1423 | 0 | _has_bits_[0] &= ~0x00000001u; |
1424 | 0 | } |
1425 | 18.6k | inline const ::yb::OpIdPB& ConsensusFrontierPB::op_id() const { |
1426 | 18.6k | const ::yb::OpIdPB* p = op_id_; |
1427 | | // @@protoc_insertion_point(field_get:yb.docdb.ConsensusFrontierPB.op_id) |
1428 | 18.6k | return p != NULL ? *p : *reinterpret_cast<const ::yb::OpIdPB*>( |
1429 | 0 | &::yb::_OpIdPB_default_instance_); |
1430 | 18.6k | } |
1431 | 0 | inline ::yb::OpIdPB* ConsensusFrontierPB::release_op_id() { |
1432 | 0 | // @@protoc_insertion_point(field_release:yb.docdb.ConsensusFrontierPB.op_id) |
1433 | 0 | clear_has_op_id(); |
1434 | 0 | ::yb::OpIdPB* temp = op_id_; |
1435 | 0 | op_id_ = NULL; |
1436 | 0 | return temp; |
1437 | 0 | } |
1438 | 299k | inline ::yb::OpIdPB* ConsensusFrontierPB::mutable_op_id() { |
1439 | 299k | set_has_op_id(); |
1440 | 299k | if (op_id_ == NULL) { |
1441 | 299k | op_id_ = new ::yb::OpIdPB; |
1442 | 299k | } |
1443 | | // @@protoc_insertion_point(field_mutable:yb.docdb.ConsensusFrontierPB.op_id) |
1444 | 299k | return op_id_; |
1445 | 299k | } |
1446 | 0 | inline void ConsensusFrontierPB::set_allocated_op_id(::yb::OpIdPB* op_id) { |
1447 | 0 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
1448 | 0 | if (message_arena == NULL) { |
1449 | 0 | delete reinterpret_cast< ::google::protobuf::MessageLite*>(op_id_); |
1450 | 0 | } |
1451 | 0 | if (op_id) { |
1452 | 0 | ::google::protobuf::Arena* submessage_arena = NULL; |
1453 | 0 | if (message_arena != submessage_arena) { |
1454 | 0 | op_id = ::google::protobuf::internal::GetOwnedMessage( |
1455 | 0 | message_arena, op_id, submessage_arena); |
1456 | 0 | } |
1457 | 0 | set_has_op_id(); |
1458 | 0 | } else { |
1459 | 0 | clear_has_op_id(); |
1460 | 0 | } |
1461 | 0 | op_id_ = op_id; |
1462 | 0 | // @@protoc_insertion_point(field_set_allocated:yb.docdb.ConsensusFrontierPB.op_id) |
1463 | 0 | } |
1464 | | |
1465 | | // optional fixed64 hybrid_time = 2; |
1466 | 281k | inline bool ConsensusFrontierPB::has_hybrid_time() const { |
1467 | 281k | return (_has_bits_[0] & 0x00000002u) != 0; |
1468 | 281k | } |
1469 | 299k | inline void ConsensusFrontierPB::set_has_hybrid_time() { |
1470 | 299k | _has_bits_[0] |= 0x00000002u; |
1471 | 299k | } |
1472 | 0 | inline void ConsensusFrontierPB::clear_has_hybrid_time() { |
1473 | 0 | _has_bits_[0] &= ~0x00000002u; |
1474 | 0 | } |
1475 | 0 | inline void ConsensusFrontierPB::clear_hybrid_time() { |
1476 | 0 | hybrid_time_ = GOOGLE_ULONGLONG(0); |
1477 | 0 | clear_has_hybrid_time(); |
1478 | 0 | } |
1479 | 299k | inline ::google::protobuf::uint64 ConsensusFrontierPB::hybrid_time() const { |
1480 | | // @@protoc_insertion_point(field_get:yb.docdb.ConsensusFrontierPB.hybrid_time) |
1481 | 299k | return hybrid_time_; |
1482 | 299k | } |
1483 | 281k | inline void ConsensusFrontierPB::set_hybrid_time(::google::protobuf::uint64 value) { |
1484 | 281k | set_has_hybrid_time(); |
1485 | 281k | hybrid_time_ = value; |
1486 | | // @@protoc_insertion_point(field_set:yb.docdb.ConsensusFrontierPB.hybrid_time) |
1487 | 281k | } |
1488 | | |
1489 | | // optional fixed64 history_cutoff = 3; |
1490 | 281k | inline bool ConsensusFrontierPB::has_history_cutoff() const { |
1491 | 281k | return (_has_bits_[0] & 0x00000004u) != 0; |
1492 | 281k | } |
1493 | 299k | inline void ConsensusFrontierPB::set_has_history_cutoff() { |
1494 | 299k | _has_bits_[0] |= 0x00000004u; |
1495 | 299k | } |
1496 | 0 | inline void ConsensusFrontierPB::clear_has_history_cutoff() { |
1497 | 0 | _has_bits_[0] &= ~0x00000004u; |
1498 | 0 | } |
1499 | 0 | inline void ConsensusFrontierPB::clear_history_cutoff() { |
1500 | 0 | history_cutoff_ = GOOGLE_ULONGLONG(0); |
1501 | 0 | clear_has_history_cutoff(); |
1502 | 0 | } |
1503 | 299k | inline ::google::protobuf::uint64 ConsensusFrontierPB::history_cutoff() const { |
1504 | | // @@protoc_insertion_point(field_get:yb.docdb.ConsensusFrontierPB.history_cutoff) |
1505 | 299k | return history_cutoff_; |
1506 | 299k | } |
1507 | 281k | inline void ConsensusFrontierPB::set_history_cutoff(::google::protobuf::uint64 value) { |
1508 | 281k | set_has_history_cutoff(); |
1509 | 281k | history_cutoff_ = value; |
1510 | | // @@protoc_insertion_point(field_set:yb.docdb.ConsensusFrontierPB.history_cutoff) |
1511 | 281k | } |
1512 | | |
1513 | | // optional fixed64 hybrid_time_filter = 4; |
1514 | 299k | inline bool ConsensusFrontierPB::has_hybrid_time_filter() const { |
1515 | 299k | return (_has_bits_[0] & 0x00000008u) != 0; |
1516 | 299k | } |
1517 | 0 | inline void ConsensusFrontierPB::set_has_hybrid_time_filter() { |
1518 | 0 | _has_bits_[0] |= 0x00000008u; |
1519 | 0 | } |
1520 | 0 | inline void ConsensusFrontierPB::clear_has_hybrid_time_filter() { |
1521 | 0 | _has_bits_[0] &= ~0x00000008u; |
1522 | 0 | } |
1523 | 0 | inline void ConsensusFrontierPB::clear_hybrid_time_filter() { |
1524 | 0 | hybrid_time_filter_ = GOOGLE_ULONGLONG(0); |
1525 | 0 | clear_has_hybrid_time_filter(); |
1526 | 0 | } |
1527 | 0 | inline ::google::protobuf::uint64 ConsensusFrontierPB::hybrid_time_filter() const { |
1528 | 0 | // @@protoc_insertion_point(field_get:yb.docdb.ConsensusFrontierPB.hybrid_time_filter) |
1529 | 0 | return hybrid_time_filter_; |
1530 | 0 | } |
1531 | 0 | inline void ConsensusFrontierPB::set_hybrid_time_filter(::google::protobuf::uint64 value) { |
1532 | 0 | set_has_hybrid_time_filter(); |
1533 | 0 | hybrid_time_filter_ = value; |
1534 | 0 | // @@protoc_insertion_point(field_set:yb.docdb.ConsensusFrontierPB.hybrid_time_filter) |
1535 | 0 | } |
1536 | | |
1537 | | // optional fixed64 max_value_level_ttl_expiration_time = 5; |
1538 | 281k | inline bool ConsensusFrontierPB::has_max_value_level_ttl_expiration_time() const { |
1539 | 281k | return (_has_bits_[0] & 0x00000010u) != 0; |
1540 | 281k | } |
1541 | 299k | inline void ConsensusFrontierPB::set_has_max_value_level_ttl_expiration_time() { |
1542 | 299k | _has_bits_[0] |= 0x00000010u; |
1543 | 299k | } |
1544 | 0 | inline void ConsensusFrontierPB::clear_has_max_value_level_ttl_expiration_time() { |
1545 | 0 | _has_bits_[0] &= ~0x00000010u; |
1546 | 0 | } |
1547 | 0 | inline void ConsensusFrontierPB::clear_max_value_level_ttl_expiration_time() { |
1548 | 0 | max_value_level_ttl_expiration_time_ = GOOGLE_ULONGLONG(0); |
1549 | 0 | clear_has_max_value_level_ttl_expiration_time(); |
1550 | 0 | } |
1551 | 299k | inline ::google::protobuf::uint64 ConsensusFrontierPB::max_value_level_ttl_expiration_time() const { |
1552 | | // @@protoc_insertion_point(field_get:yb.docdb.ConsensusFrontierPB.max_value_level_ttl_expiration_time) |
1553 | 299k | return max_value_level_ttl_expiration_time_; |
1554 | 299k | } |
1555 | 281k | inline void ConsensusFrontierPB::set_max_value_level_ttl_expiration_time(::google::protobuf::uint64 value) { |
1556 | 281k | set_has_max_value_level_ttl_expiration_time(); |
1557 | 281k | max_value_level_ttl_expiration_time_ = value; |
1558 | | // @@protoc_insertion_point(field_set:yb.docdb.ConsensusFrontierPB.max_value_level_ttl_expiration_time) |
1559 | 281k | } |
1560 | | |
1561 | | // ------------------------------------------------------------------- |
1562 | | |
1563 | | // ApplyTransactionStatePB |
1564 | | |
1565 | | // optional bytes key = 1; |
1566 | 1 | inline bool ApplyTransactionStatePB::has_key() const { |
1567 | 1 | return (_has_bits_[0] & 0x00000001u) != 0; |
1568 | 1 | } |
1569 | 1 | inline void ApplyTransactionStatePB::set_has_key() { |
1570 | 1 | _has_bits_[0] |= 0x00000001u; |
1571 | 1 | } |
1572 | 0 | inline void ApplyTransactionStatePB::clear_has_key() { |
1573 | 0 | _has_bits_[0] &= ~0x00000001u; |
1574 | 0 | } |
1575 | 0 | inline void ApplyTransactionStatePB::clear_key() { |
1576 | 0 | key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
1577 | 0 | clear_has_key(); |
1578 | 0 | } |
1579 | 2 | inline const ::std::string& ApplyTransactionStatePB::key() const { |
1580 | | // @@protoc_insertion_point(field_get:yb.docdb.ApplyTransactionStatePB.key) |
1581 | 2 | return key_.GetNoArena(); |
1582 | 2 | } |
1583 | 1 | inline void ApplyTransactionStatePB::set_key(const ::std::string& value) { |
1584 | 1 | set_has_key(); |
1585 | 1 | key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
1586 | | // @@protoc_insertion_point(field_set:yb.docdb.ApplyTransactionStatePB.key) |
1587 | 1 | } |
1588 | | #if LANG_CXX11 |
1589 | 0 | inline void ApplyTransactionStatePB::set_key(::std::string&& value) { |
1590 | 0 | set_has_key(); |
1591 | 0 | key_.SetNoArena( |
1592 | 0 | &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); |
1593 | 0 | // @@protoc_insertion_point(field_set_rvalue:yb.docdb.ApplyTransactionStatePB.key) |
1594 | 0 | } |
1595 | | #endif |
1596 | 0 | inline void ApplyTransactionStatePB::set_key(const char* value) { |
1597 | 0 | GOOGLE_DCHECK(value != NULL); |
1598 | 0 | set_has_key(); |
1599 | 0 | key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
1600 | 0 | // @@protoc_insertion_point(field_set_char:yb.docdb.ApplyTransactionStatePB.key) |
1601 | 0 | } |
1602 | 0 | inline void ApplyTransactionStatePB::set_key(const void* value, size_t size) { |
1603 | 0 | set_has_key(); |
1604 | 0 | key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
1605 | 0 | ::std::string(reinterpret_cast<const char*>(value), size)); |
1606 | 0 | // @@protoc_insertion_point(field_set_pointer:yb.docdb.ApplyTransactionStatePB.key) |
1607 | 0 | } |
1608 | 0 | inline ::std::string* ApplyTransactionStatePB::mutable_key() { |
1609 | 0 | set_has_key(); |
1610 | 0 | // @@protoc_insertion_point(field_mutable:yb.docdb.ApplyTransactionStatePB.key) |
1611 | 0 | return key_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
1612 | 0 | } |
1613 | 0 | inline ::std::string* ApplyTransactionStatePB::release_key() { |
1614 | 0 | // @@protoc_insertion_point(field_release:yb.docdb.ApplyTransactionStatePB.key) |
1615 | 0 | clear_has_key(); |
1616 | 0 | return key_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
1617 | 0 | } |
1618 | 0 | inline void ApplyTransactionStatePB::set_allocated_key(::std::string* key) { |
1619 | 0 | if (key != NULL) { |
1620 | 0 | set_has_key(); |
1621 | 0 | } else { |
1622 | 0 | clear_has_key(); |
1623 | 0 | } |
1624 | 0 | key_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), key); |
1625 | 0 | // @@protoc_insertion_point(field_set_allocated:yb.docdb.ApplyTransactionStatePB.key) |
1626 | 0 | } |
1627 | | |
1628 | | // optional uint32 write_id = 2; |
1629 | 1 | inline bool ApplyTransactionStatePB::has_write_id() const { |
1630 | 1 | return (_has_bits_[0] & 0x00000008u) != 0; |
1631 | 1 | } |
1632 | 1 | inline void ApplyTransactionStatePB::set_has_write_id() { |
1633 | 1 | _has_bits_[0] |= 0x00000008u; |
1634 | 1 | } |
1635 | 0 | inline void ApplyTransactionStatePB::clear_has_write_id() { |
1636 | 0 | _has_bits_[0] &= ~0x00000008u; |
1637 | 0 | } |
1638 | 0 | inline void ApplyTransactionStatePB::clear_write_id() { |
1639 | 0 | write_id_ = 0u; |
1640 | 0 | clear_has_write_id(); |
1641 | 0 | } |
1642 | 2 | inline ::google::protobuf::uint32 ApplyTransactionStatePB::write_id() const { |
1643 | | // @@protoc_insertion_point(field_get:yb.docdb.ApplyTransactionStatePB.write_id) |
1644 | 2 | return write_id_; |
1645 | 2 | } |
1646 | 1 | inline void ApplyTransactionStatePB::set_write_id(::google::protobuf::uint32 value) { |
1647 | 1 | set_has_write_id(); |
1648 | 1 | write_id_ = value; |
1649 | | // @@protoc_insertion_point(field_set:yb.docdb.ApplyTransactionStatePB.write_id) |
1650 | 1 | } |
1651 | | |
1652 | | // optional fixed64 commit_ht = 3; |
1653 | 1 | inline bool ApplyTransactionStatePB::has_commit_ht() const { |
1654 | 1 | return (_has_bits_[0] & 0x00000004u) != 0; |
1655 | 1 | } |
1656 | 1 | inline void ApplyTransactionStatePB::set_has_commit_ht() { |
1657 | 1 | _has_bits_[0] |= 0x00000004u; |
1658 | 1 | } |
1659 | 0 | inline void ApplyTransactionStatePB::clear_has_commit_ht() { |
1660 | 0 | _has_bits_[0] &= ~0x00000004u; |
1661 | 0 | } |
1662 | 0 | inline void ApplyTransactionStatePB::clear_commit_ht() { |
1663 | 0 | commit_ht_ = GOOGLE_ULONGLONG(0); |
1664 | 0 | clear_has_commit_ht(); |
1665 | 0 | } |
1666 | 1 | inline ::google::protobuf::uint64 ApplyTransactionStatePB::commit_ht() const { |
1667 | | // @@protoc_insertion_point(field_get:yb.docdb.ApplyTransactionStatePB.commit_ht) |
1668 | 1 | return commit_ht_; |
1669 | 1 | } |
1670 | 1 | inline void ApplyTransactionStatePB::set_commit_ht(::google::protobuf::uint64 value) { |
1671 | 1 | set_has_commit_ht(); |
1672 | 1 | commit_ht_ = value; |
1673 | | // @@protoc_insertion_point(field_set:yb.docdb.ApplyTransactionStatePB.commit_ht) |
1674 | 1 | } |
1675 | | |
1676 | | // optional .yb.AbortedSubTransactionSetPB aborted = 4; |
1677 | 1 | inline bool ApplyTransactionStatePB::has_aborted() const { |
1678 | 1 | return (_has_bits_[0] & 0x00000002u) != 0; |
1679 | 1 | } |
1680 | 1 | inline void ApplyTransactionStatePB::set_has_aborted() { |
1681 | 1 | _has_bits_[0] |= 0x00000002u; |
1682 | 1 | } |
1683 | 0 | inline void ApplyTransactionStatePB::clear_has_aborted() { |
1684 | 0 | _has_bits_[0] &= ~0x00000002u; |
1685 | 0 | } |
1686 | 0 | inline const ::yb::AbortedSubTransactionSetPB& ApplyTransactionStatePB::aborted() const { |
1687 | 0 | const ::yb::AbortedSubTransactionSetPB* p = aborted_; |
1688 | 0 | // @@protoc_insertion_point(field_get:yb.docdb.ApplyTransactionStatePB.aborted) |
1689 | 0 | return p != NULL ? *p : *reinterpret_cast<const ::yb::AbortedSubTransactionSetPB*>( |
1690 | 0 | &::yb::_AbortedSubTransactionSetPB_default_instance_); |
1691 | 0 | } |
1692 | 0 | inline ::yb::AbortedSubTransactionSetPB* ApplyTransactionStatePB::release_aborted() { |
1693 | 0 | // @@protoc_insertion_point(field_release:yb.docdb.ApplyTransactionStatePB.aborted) |
1694 | 0 | clear_has_aborted(); |
1695 | 0 | ::yb::AbortedSubTransactionSetPB* temp = aborted_; |
1696 | 0 | aborted_ = NULL; |
1697 | 0 | return temp; |
1698 | 0 | } |
1699 | 1 | inline ::yb::AbortedSubTransactionSetPB* ApplyTransactionStatePB::mutable_aborted() { |
1700 | 1 | set_has_aborted(); |
1701 | 1 | if (aborted_ == NULL) { |
1702 | 1 | aborted_ = new ::yb::AbortedSubTransactionSetPB; |
1703 | 1 | } |
1704 | | // @@protoc_insertion_point(field_mutable:yb.docdb.ApplyTransactionStatePB.aborted) |
1705 | 1 | return aborted_; |
1706 | 1 | } |
1707 | 0 | inline void ApplyTransactionStatePB::set_allocated_aborted(::yb::AbortedSubTransactionSetPB* aborted) { |
1708 | 0 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
1709 | 0 | if (message_arena == NULL) { |
1710 | 0 | delete reinterpret_cast< ::google::protobuf::MessageLite*>(aborted_); |
1711 | 0 | } |
1712 | 0 | if (aborted) { |
1713 | 0 | ::google::protobuf::Arena* submessage_arena = NULL; |
1714 | 0 | if (message_arena != submessage_arena) { |
1715 | 0 | aborted = ::google::protobuf::internal::GetOwnedMessage( |
1716 | 0 | message_arena, aborted, submessage_arena); |
1717 | 0 | } |
1718 | 0 | set_has_aborted(); |
1719 | 0 | } else { |
1720 | 0 | clear_has_aborted(); |
1721 | 0 | } |
1722 | 0 | aborted_ = aborted; |
1723 | 0 | // @@protoc_insertion_point(field_set_allocated:yb.docdb.ApplyTransactionStatePB.aborted) |
1724 | 0 | } |
1725 | | |
1726 | | #ifdef __GNUC__ |
1727 | | #pragma GCC diagnostic pop |
1728 | | #endif // __GNUC__ |
1729 | | // ------------------------------------------------------------------- |
1730 | | |
1731 | | // ------------------------------------------------------------------- |
1732 | | |
1733 | | // ------------------------------------------------------------------- |
1734 | | |
1735 | | // ------------------------------------------------------------------- |
1736 | | |
1737 | | |
1738 | | // @@protoc_insertion_point(namespace_scope) |
1739 | | |
1740 | | } // namespace docdb |
1741 | | } // namespace yb |
1742 | | |
1743 | | // @@protoc_insertion_point(global_scope) |
1744 | | |
1745 | | #endif // PROTOBUF_yb_2fdocdb_2fdocdb_2eproto__INCLUDED |