github.com/cockroachdb/cockroach@v20.2.0-alpha.1+incompatible/c-deps/libroach/protos/roachpb/data.pb.h (about) 1 // Generated by the protocol buffer compiler. DO NOT EDIT! 2 // source: roachpb/data.proto 3 4 #ifndef PROTOBUF_INCLUDED_roachpb_2fdata_2eproto 5 #define PROTOBUF_INCLUDED_roachpb_2fdata_2eproto 6 7 #include <string> 8 9 #include <google/protobuf/stubs/common.h> 10 11 #if GOOGLE_PROTOBUF_VERSION < 3006000 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 3006000 < 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/inlined_string_field.h> 28 #include <google/protobuf/metadata_lite.h> 29 #include <google/protobuf/message_lite.h> 30 #include <google/protobuf/repeated_field.h> // IWYU pragma: export 31 #include <google/protobuf/extension_set.h> // IWYU pragma: export 32 #include <google/protobuf/generated_enum_util.h> 33 #include "kv/kvserver/concurrency/lock/locking.pb.h" 34 #include "roachpb/metadata.pb.h" 35 #include "storage/enginepb/mvcc.pb.h" 36 #include "storage/enginepb/mvcc3.pb.h" 37 #include "util/hlc/timestamp.pb.h" 38 // @@protoc_insertion_point(includes) 39 #define PROTOBUF_INTERNAL_EXPORT_protobuf_roachpb_2fdata_2eproto 40 41 namespace protobuf_roachpb_2fdata_2eproto { 42 // Internal implementation detail -- do not use these members. 43 struct TableStruct { 44 static const ::google::protobuf::internal::ParseTableField entries[]; 45 static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; 46 static const ::google::protobuf::internal::ParseTable schema[22]; 47 static const ::google::protobuf::internal::FieldMetadata field_metadata[]; 48 static const ::google::protobuf::internal::SerializationTable serialization_table[]; 49 static const ::google::protobuf::uint32 offsets[]; 50 }; 51 } // namespace protobuf_roachpb_2fdata_2eproto 52 namespace cockroach { 53 namespace roachpb { 54 class AbortSpanEntry; 55 class AbortSpanEntryDefaultTypeInternal; 56 extern AbortSpanEntryDefaultTypeInternal _AbortSpanEntry_default_instance_; 57 class ChangeReplicasTrigger; 58 class ChangeReplicasTriggerDefaultTypeInternal; 59 extern ChangeReplicasTriggerDefaultTypeInternal _ChangeReplicasTrigger_default_instance_; 60 class Intent; 61 class IntentDefaultTypeInternal; 62 extern IntentDefaultTypeInternal _Intent_default_instance_; 63 class Intent_SingleKeySpan; 64 class Intent_SingleKeySpanDefaultTypeInternal; 65 extern Intent_SingleKeySpanDefaultTypeInternal _Intent_SingleKeySpan_default_instance_; 66 class InternalCommitTrigger; 67 class InternalCommitTriggerDefaultTypeInternal; 68 extern InternalCommitTriggerDefaultTypeInternal _InternalCommitTrigger_default_instance_; 69 class KeyValue; 70 class KeyValueDefaultTypeInternal; 71 extern KeyValueDefaultTypeInternal _KeyValue_default_instance_; 72 class LeafTxnFinalState; 73 class LeafTxnFinalStateDefaultTypeInternal; 74 extern LeafTxnFinalStateDefaultTypeInternal _LeafTxnFinalState_default_instance_; 75 class LeafTxnInputState; 76 class LeafTxnInputStateDefaultTypeInternal; 77 extern LeafTxnInputStateDefaultTypeInternal _LeafTxnInputState_default_instance_; 78 class Lease; 79 class LeaseDefaultTypeInternal; 80 extern LeaseDefaultTypeInternal _Lease_default_instance_; 81 class LockAcquisition; 82 class LockAcquisitionDefaultTypeInternal; 83 extern LockAcquisitionDefaultTypeInternal _LockAcquisition_default_instance_; 84 class LockUpdate; 85 class LockUpdateDefaultTypeInternal; 86 extern LockUpdateDefaultTypeInternal _LockUpdate_default_instance_; 87 class MergeTrigger; 88 class MergeTriggerDefaultTypeInternal; 89 extern MergeTriggerDefaultTypeInternal _MergeTrigger_default_instance_; 90 class ModifiedSpanTrigger; 91 class ModifiedSpanTriggerDefaultTypeInternal; 92 extern ModifiedSpanTriggerDefaultTypeInternal _ModifiedSpanTrigger_default_instance_; 93 class ObservedTimestamp; 94 class ObservedTimestampDefaultTypeInternal; 95 extern ObservedTimestampDefaultTypeInternal _ObservedTimestamp_default_instance_; 96 class SequencedWrite; 97 class SequencedWriteDefaultTypeInternal; 98 extern SequencedWriteDefaultTypeInternal _SequencedWrite_default_instance_; 99 class Span; 100 class SpanDefaultTypeInternal; 101 extern SpanDefaultTypeInternal _Span_default_instance_; 102 class SplitTrigger; 103 class SplitTriggerDefaultTypeInternal; 104 extern SplitTriggerDefaultTypeInternal _SplitTrigger_default_instance_; 105 class StickyBitTrigger; 106 class StickyBitTriggerDefaultTypeInternal; 107 extern StickyBitTriggerDefaultTypeInternal _StickyBitTrigger_default_instance_; 108 class StoreIdent; 109 class StoreIdentDefaultTypeInternal; 110 extern StoreIdentDefaultTypeInternal _StoreIdent_default_instance_; 111 class Transaction; 112 class TransactionDefaultTypeInternal; 113 extern TransactionDefaultTypeInternal _Transaction_default_instance_; 114 class TransactionRecord; 115 class TransactionRecordDefaultTypeInternal; 116 extern TransactionRecordDefaultTypeInternal _TransactionRecord_default_instance_; 117 class Value; 118 class ValueDefaultTypeInternal; 119 extern ValueDefaultTypeInternal _Value_default_instance_; 120 } // namespace roachpb 121 } // namespace cockroach 122 namespace google { 123 namespace protobuf { 124 template<> ::cockroach::roachpb::AbortSpanEntry* Arena::CreateMaybeMessage<::cockroach::roachpb::AbortSpanEntry>(Arena*); 125 template<> ::cockroach::roachpb::ChangeReplicasTrigger* Arena::CreateMaybeMessage<::cockroach::roachpb::ChangeReplicasTrigger>(Arena*); 126 template<> ::cockroach::roachpb::Intent* Arena::CreateMaybeMessage<::cockroach::roachpb::Intent>(Arena*); 127 template<> ::cockroach::roachpb::Intent_SingleKeySpan* Arena::CreateMaybeMessage<::cockroach::roachpb::Intent_SingleKeySpan>(Arena*); 128 template<> ::cockroach::roachpb::InternalCommitTrigger* Arena::CreateMaybeMessage<::cockroach::roachpb::InternalCommitTrigger>(Arena*); 129 template<> ::cockroach::roachpb::KeyValue* Arena::CreateMaybeMessage<::cockroach::roachpb::KeyValue>(Arena*); 130 template<> ::cockroach::roachpb::LeafTxnFinalState* Arena::CreateMaybeMessage<::cockroach::roachpb::LeafTxnFinalState>(Arena*); 131 template<> ::cockroach::roachpb::LeafTxnInputState* Arena::CreateMaybeMessage<::cockroach::roachpb::LeafTxnInputState>(Arena*); 132 template<> ::cockroach::roachpb::Lease* Arena::CreateMaybeMessage<::cockroach::roachpb::Lease>(Arena*); 133 template<> ::cockroach::roachpb::LockAcquisition* Arena::CreateMaybeMessage<::cockroach::roachpb::LockAcquisition>(Arena*); 134 template<> ::cockroach::roachpb::LockUpdate* Arena::CreateMaybeMessage<::cockroach::roachpb::LockUpdate>(Arena*); 135 template<> ::cockroach::roachpb::MergeTrigger* Arena::CreateMaybeMessage<::cockroach::roachpb::MergeTrigger>(Arena*); 136 template<> ::cockroach::roachpb::ModifiedSpanTrigger* Arena::CreateMaybeMessage<::cockroach::roachpb::ModifiedSpanTrigger>(Arena*); 137 template<> ::cockroach::roachpb::ObservedTimestamp* Arena::CreateMaybeMessage<::cockroach::roachpb::ObservedTimestamp>(Arena*); 138 template<> ::cockroach::roachpb::SequencedWrite* Arena::CreateMaybeMessage<::cockroach::roachpb::SequencedWrite>(Arena*); 139 template<> ::cockroach::roachpb::Span* Arena::CreateMaybeMessage<::cockroach::roachpb::Span>(Arena*); 140 template<> ::cockroach::roachpb::SplitTrigger* Arena::CreateMaybeMessage<::cockroach::roachpb::SplitTrigger>(Arena*); 141 template<> ::cockroach::roachpb::StickyBitTrigger* Arena::CreateMaybeMessage<::cockroach::roachpb::StickyBitTrigger>(Arena*); 142 template<> ::cockroach::roachpb::StoreIdent* Arena::CreateMaybeMessage<::cockroach::roachpb::StoreIdent>(Arena*); 143 template<> ::cockroach::roachpb::Transaction* Arena::CreateMaybeMessage<::cockroach::roachpb::Transaction>(Arena*); 144 template<> ::cockroach::roachpb::TransactionRecord* Arena::CreateMaybeMessage<::cockroach::roachpb::TransactionRecord>(Arena*); 145 template<> ::cockroach::roachpb::Value* Arena::CreateMaybeMessage<::cockroach::roachpb::Value>(Arena*); 146 } // namespace protobuf 147 } // namespace google 148 namespace cockroach { 149 namespace roachpb { 150 151 enum ValueType { 152 UNKNOWN = 0, 153 INT = 1, 154 FLOAT = 2, 155 BYTES = 3, 156 DELIMITED_BYTES = 8, 157 TIME = 4, 158 DECIMAL = 5, 159 DELIMITED_DECIMAL = 9, 160 DURATION = 6, 161 TIMETZ = 12, 162 GEO = 13, 163 TUPLE = 10, 164 BITARRAY = 11, 165 TIMESERIES = 100, 166 ValueType_INT_MIN_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32min, 167 ValueType_INT_MAX_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32max 168 }; 169 bool ValueType_IsValid(int value); 170 const ValueType ValueType_MIN = UNKNOWN; 171 const ValueType ValueType_MAX = TIMESERIES; 172 const int ValueType_ARRAYSIZE = ValueType_MAX + 1; 173 174 enum ReplicaChangeType { 175 ADD_REPLICA = 0, 176 REMOVE_REPLICA = 1, 177 ReplicaChangeType_INT_MIN_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32min, 178 ReplicaChangeType_INT_MAX_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32max 179 }; 180 bool ReplicaChangeType_IsValid(int value); 181 const ReplicaChangeType ReplicaChangeType_MIN = ADD_REPLICA; 182 const ReplicaChangeType ReplicaChangeType_MAX = REMOVE_REPLICA; 183 const int ReplicaChangeType_ARRAYSIZE = ReplicaChangeType_MAX + 1; 184 185 enum TransactionStatus { 186 PENDING = 0, 187 STAGING = 3, 188 COMMITTED = 1, 189 ABORTED = 2, 190 TransactionStatus_INT_MIN_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32min, 191 TransactionStatus_INT_MAX_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32max 192 }; 193 bool TransactionStatus_IsValid(int value); 194 const TransactionStatus TransactionStatus_MIN = PENDING; 195 const TransactionStatus TransactionStatus_MAX = STAGING; 196 const int TransactionStatus_ARRAYSIZE = TransactionStatus_MAX + 1; 197 198 // =================================================================== 199 200 class Span : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:cockroach.roachpb.Span) */ { 201 public: 202 Span(); 203 virtual ~Span(); 204 205 Span(const Span& from); 206 207 inline Span& operator=(const Span& from) { 208 CopyFrom(from); 209 return *this; 210 } 211 #if LANG_CXX11 212 Span(Span&& from) noexcept 213 : Span() { 214 *this = ::std::move(from); 215 } 216 217 inline Span& operator=(Span&& from) noexcept { 218 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { 219 if (this != &from) InternalSwap(&from); 220 } else { 221 CopyFrom(from); 222 } 223 return *this; 224 } 225 #endif 226 static const Span& default_instance(); 227 228 static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY 229 static inline const Span* internal_default_instance() { 230 return reinterpret_cast<const Span*>( 231 &_Span_default_instance_); 232 } 233 static constexpr int kIndexInFileMessages = 234 0; 235 236 void Swap(Span* other); 237 friend void swap(Span& a, Span& b) { 238 a.Swap(&b); 239 } 240 241 // implements Message ---------------------------------------------- 242 243 inline Span* New() const final { 244 return CreateMaybeMessage<Span>(NULL); 245 } 246 247 Span* New(::google::protobuf::Arena* arena) const final { 248 return CreateMaybeMessage<Span>(arena); 249 } 250 void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from) 251 final; 252 void CopyFrom(const Span& from); 253 void MergeFrom(const Span& from); 254 void Clear() final; 255 bool IsInitialized() const final; 256 257 size_t ByteSizeLong() const final; 258 bool MergePartialFromCodedStream( 259 ::google::protobuf::io::CodedInputStream* input) final; 260 void SerializeWithCachedSizes( 261 ::google::protobuf::io::CodedOutputStream* output) const final; 262 void DiscardUnknownFields(); 263 int GetCachedSize() const final { return _cached_size_.Get(); } 264 265 private: 266 void SharedCtor(); 267 void SharedDtor(); 268 void SetCachedSize(int size) const; 269 void InternalSwap(Span* other); 270 private: 271 inline ::google::protobuf::Arena* GetArenaNoVirtual() const { 272 return NULL; 273 } 274 inline void* MaybeArenaPtr() const { 275 return NULL; 276 } 277 public: 278 279 ::std::string GetTypeName() const final; 280 281 // nested types ---------------------------------------------------- 282 283 // accessors ------------------------------------------------------- 284 285 void clear_key(); 286 static const int kKeyFieldNumber = 3; 287 const ::std::string& key() const; 288 void set_key(const ::std::string& value); 289 #if LANG_CXX11 290 void set_key(::std::string&& value); 291 #endif 292 void set_key(const char* value); 293 void set_key(const void* value, size_t size); 294 ::std::string* mutable_key(); 295 ::std::string* release_key(); 296 void set_allocated_key(::std::string* key); 297 298 void clear_end_key(); 299 static const int kEndKeyFieldNumber = 4; 300 const ::std::string& end_key() const; 301 void set_end_key(const ::std::string& value); 302 #if LANG_CXX11 303 void set_end_key(::std::string&& value); 304 #endif 305 void set_end_key(const char* value); 306 void set_end_key(const void* value, size_t size); 307 ::std::string* mutable_end_key(); 308 ::std::string* release_end_key(); 309 void set_allocated_end_key(::std::string* end_key); 310 311 // @@protoc_insertion_point(class_scope:cockroach.roachpb.Span) 312 private: 313 314 ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; 315 ::google::protobuf::internal::ArenaStringPtr key_; 316 ::google::protobuf::internal::ArenaStringPtr end_key_; 317 mutable ::google::protobuf::internal::CachedSize _cached_size_; 318 friend struct ::protobuf_roachpb_2fdata_2eproto::TableStruct; 319 }; 320 // ------------------------------------------------------------------- 321 322 class Value : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:cockroach.roachpb.Value) */ { 323 public: 324 Value(); 325 virtual ~Value(); 326 327 Value(const Value& from); 328 329 inline Value& operator=(const Value& from) { 330 CopyFrom(from); 331 return *this; 332 } 333 #if LANG_CXX11 334 Value(Value&& from) noexcept 335 : Value() { 336 *this = ::std::move(from); 337 } 338 339 inline Value& operator=(Value&& from) noexcept { 340 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { 341 if (this != &from) InternalSwap(&from); 342 } else { 343 CopyFrom(from); 344 } 345 return *this; 346 } 347 #endif 348 static const Value& default_instance(); 349 350 static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY 351 static inline const Value* internal_default_instance() { 352 return reinterpret_cast<const Value*>( 353 &_Value_default_instance_); 354 } 355 static constexpr int kIndexInFileMessages = 356 1; 357 358 void Swap(Value* other); 359 friend void swap(Value& a, Value& b) { 360 a.Swap(&b); 361 } 362 363 // implements Message ---------------------------------------------- 364 365 inline Value* New() const final { 366 return CreateMaybeMessage<Value>(NULL); 367 } 368 369 Value* New(::google::protobuf::Arena* arena) const final { 370 return CreateMaybeMessage<Value>(arena); 371 } 372 void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from) 373 final; 374 void CopyFrom(const Value& from); 375 void MergeFrom(const Value& from); 376 void Clear() final; 377 bool IsInitialized() const final; 378 379 size_t ByteSizeLong() const final; 380 bool MergePartialFromCodedStream( 381 ::google::protobuf::io::CodedInputStream* input) final; 382 void SerializeWithCachedSizes( 383 ::google::protobuf::io::CodedOutputStream* output) const final; 384 void DiscardUnknownFields(); 385 int GetCachedSize() const final { return _cached_size_.Get(); } 386 387 private: 388 void SharedCtor(); 389 void SharedDtor(); 390 void SetCachedSize(int size) const; 391 void InternalSwap(Value* other); 392 private: 393 inline ::google::protobuf::Arena* GetArenaNoVirtual() const { 394 return NULL; 395 } 396 inline void* MaybeArenaPtr() const { 397 return NULL; 398 } 399 public: 400 401 ::std::string GetTypeName() const final; 402 403 // nested types ---------------------------------------------------- 404 405 // accessors ------------------------------------------------------- 406 407 // bytes raw_bytes = 1; 408 void clear_raw_bytes(); 409 static const int kRawBytesFieldNumber = 1; 410 const ::std::string& raw_bytes() const; 411 void set_raw_bytes(const ::std::string& value); 412 #if LANG_CXX11 413 void set_raw_bytes(::std::string&& value); 414 #endif 415 void set_raw_bytes(const char* value); 416 void set_raw_bytes(const void* value, size_t size); 417 ::std::string* mutable_raw_bytes(); 418 ::std::string* release_raw_bytes(); 419 void set_allocated_raw_bytes(::std::string* raw_bytes); 420 421 bool has_timestamp() const; 422 void clear_timestamp(); 423 static const int kTimestampFieldNumber = 2; 424 private: 425 const ::cockroach::util::hlc::Timestamp& _internal_timestamp() const; 426 public: 427 const ::cockroach::util::hlc::Timestamp& timestamp() const; 428 ::cockroach::util::hlc::Timestamp* release_timestamp(); 429 ::cockroach::util::hlc::Timestamp* mutable_timestamp(); 430 void set_allocated_timestamp(::cockroach::util::hlc::Timestamp* timestamp); 431 432 // @@protoc_insertion_point(class_scope:cockroach.roachpb.Value) 433 private: 434 435 ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; 436 ::google::protobuf::internal::ArenaStringPtr raw_bytes_; 437 ::cockroach::util::hlc::Timestamp* timestamp_; 438 mutable ::google::protobuf::internal::CachedSize _cached_size_; 439 friend struct ::protobuf_roachpb_2fdata_2eproto::TableStruct; 440 }; 441 // ------------------------------------------------------------------- 442 443 class KeyValue : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:cockroach.roachpb.KeyValue) */ { 444 public: 445 KeyValue(); 446 virtual ~KeyValue(); 447 448 KeyValue(const KeyValue& from); 449 450 inline KeyValue& operator=(const KeyValue& from) { 451 CopyFrom(from); 452 return *this; 453 } 454 #if LANG_CXX11 455 KeyValue(KeyValue&& from) noexcept 456 : KeyValue() { 457 *this = ::std::move(from); 458 } 459 460 inline KeyValue& operator=(KeyValue&& from) noexcept { 461 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { 462 if (this != &from) InternalSwap(&from); 463 } else { 464 CopyFrom(from); 465 } 466 return *this; 467 } 468 #endif 469 static const KeyValue& default_instance(); 470 471 static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY 472 static inline const KeyValue* internal_default_instance() { 473 return reinterpret_cast<const KeyValue*>( 474 &_KeyValue_default_instance_); 475 } 476 static constexpr int kIndexInFileMessages = 477 2; 478 479 void Swap(KeyValue* other); 480 friend void swap(KeyValue& a, KeyValue& b) { 481 a.Swap(&b); 482 } 483 484 // implements Message ---------------------------------------------- 485 486 inline KeyValue* New() const final { 487 return CreateMaybeMessage<KeyValue>(NULL); 488 } 489 490 KeyValue* New(::google::protobuf::Arena* arena) const final { 491 return CreateMaybeMessage<KeyValue>(arena); 492 } 493 void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from) 494 final; 495 void CopyFrom(const KeyValue& from); 496 void MergeFrom(const KeyValue& from); 497 void Clear() final; 498 bool IsInitialized() const final; 499 500 size_t ByteSizeLong() const final; 501 bool MergePartialFromCodedStream( 502 ::google::protobuf::io::CodedInputStream* input) final; 503 void SerializeWithCachedSizes( 504 ::google::protobuf::io::CodedOutputStream* output) const final; 505 void DiscardUnknownFields(); 506 int GetCachedSize() const final { return _cached_size_.Get(); } 507 508 private: 509 void SharedCtor(); 510 void SharedDtor(); 511 void SetCachedSize(int size) const; 512 void InternalSwap(KeyValue* other); 513 private: 514 inline ::google::protobuf::Arena* GetArenaNoVirtual() const { 515 return NULL; 516 } 517 inline void* MaybeArenaPtr() const { 518 return NULL; 519 } 520 public: 521 522 ::std::string GetTypeName() const final; 523 524 // nested types ---------------------------------------------------- 525 526 // accessors ------------------------------------------------------- 527 528 void clear_key(); 529 static const int kKeyFieldNumber = 1; 530 const ::std::string& key() const; 531 void set_key(const ::std::string& value); 532 #if LANG_CXX11 533 void set_key(::std::string&& value); 534 #endif 535 void set_key(const char* value); 536 void set_key(const void* value, size_t size); 537 ::std::string* mutable_key(); 538 ::std::string* release_key(); 539 void set_allocated_key(::std::string* key); 540 541 bool has_value() const; 542 void clear_value(); 543 static const int kValueFieldNumber = 2; 544 private: 545 const ::cockroach::roachpb::Value& _internal_value() const; 546 public: 547 const ::cockroach::roachpb::Value& value() const; 548 ::cockroach::roachpb::Value* release_value(); 549 ::cockroach::roachpb::Value* mutable_value(); 550 void set_allocated_value(::cockroach::roachpb::Value* value); 551 552 // @@protoc_insertion_point(class_scope:cockroach.roachpb.KeyValue) 553 private: 554 555 ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; 556 ::google::protobuf::internal::ArenaStringPtr key_; 557 ::cockroach::roachpb::Value* value_; 558 mutable ::google::protobuf::internal::CachedSize _cached_size_; 559 friend struct ::protobuf_roachpb_2fdata_2eproto::TableStruct; 560 }; 561 // ------------------------------------------------------------------- 562 563 class StoreIdent : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:cockroach.roachpb.StoreIdent) */ { 564 public: 565 StoreIdent(); 566 virtual ~StoreIdent(); 567 568 StoreIdent(const StoreIdent& from); 569 570 inline StoreIdent& operator=(const StoreIdent& from) { 571 CopyFrom(from); 572 return *this; 573 } 574 #if LANG_CXX11 575 StoreIdent(StoreIdent&& from) noexcept 576 : StoreIdent() { 577 *this = ::std::move(from); 578 } 579 580 inline StoreIdent& operator=(StoreIdent&& from) noexcept { 581 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { 582 if (this != &from) InternalSwap(&from); 583 } else { 584 CopyFrom(from); 585 } 586 return *this; 587 } 588 #endif 589 static const StoreIdent& default_instance(); 590 591 static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY 592 static inline const StoreIdent* internal_default_instance() { 593 return reinterpret_cast<const StoreIdent*>( 594 &_StoreIdent_default_instance_); 595 } 596 static constexpr int kIndexInFileMessages = 597 3; 598 599 void Swap(StoreIdent* other); 600 friend void swap(StoreIdent& a, StoreIdent& b) { 601 a.Swap(&b); 602 } 603 604 // implements Message ---------------------------------------------- 605 606 inline StoreIdent* New() const final { 607 return CreateMaybeMessage<StoreIdent>(NULL); 608 } 609 610 StoreIdent* New(::google::protobuf::Arena* arena) const final { 611 return CreateMaybeMessage<StoreIdent>(arena); 612 } 613 void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from) 614 final; 615 void CopyFrom(const StoreIdent& from); 616 void MergeFrom(const StoreIdent& from); 617 void Clear() final; 618 bool IsInitialized() const final; 619 620 size_t ByteSizeLong() const final; 621 bool MergePartialFromCodedStream( 622 ::google::protobuf::io::CodedInputStream* input) final; 623 void SerializeWithCachedSizes( 624 ::google::protobuf::io::CodedOutputStream* output) const final; 625 void DiscardUnknownFields(); 626 int GetCachedSize() const final { return _cached_size_.Get(); } 627 628 private: 629 void SharedCtor(); 630 void SharedDtor(); 631 void SetCachedSize(int size) const; 632 void InternalSwap(StoreIdent* other); 633 private: 634 inline ::google::protobuf::Arena* GetArenaNoVirtual() const { 635 return NULL; 636 } 637 inline void* MaybeArenaPtr() const { 638 return NULL; 639 } 640 public: 641 642 ::std::string GetTypeName() const final; 643 644 // nested types ---------------------------------------------------- 645 646 // accessors ------------------------------------------------------- 647 648 void clear_cluster_id(); 649 static const int kClusterIdFieldNumber = 1; 650 const ::std::string& cluster_id() const; 651 void set_cluster_id(const ::std::string& value); 652 #if LANG_CXX11 653 void set_cluster_id(::std::string&& value); 654 #endif 655 void set_cluster_id(const char* value); 656 void set_cluster_id(const void* value, size_t size); 657 ::std::string* mutable_cluster_id(); 658 ::std::string* release_cluster_id(); 659 void set_allocated_cluster_id(::std::string* cluster_id); 660 661 void clear_node_id(); 662 static const int kNodeIdFieldNumber = 2; 663 ::google::protobuf::int32 node_id() const; 664 void set_node_id(::google::protobuf::int32 value); 665 666 void clear_store_id(); 667 static const int kStoreIdFieldNumber = 3; 668 ::google::protobuf::int32 store_id() const; 669 void set_store_id(::google::protobuf::int32 value); 670 671 // @@protoc_insertion_point(class_scope:cockroach.roachpb.StoreIdent) 672 private: 673 674 ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; 675 ::google::protobuf::internal::ArenaStringPtr cluster_id_; 676 ::google::protobuf::int32 node_id_; 677 ::google::protobuf::int32 store_id_; 678 mutable ::google::protobuf::internal::CachedSize _cached_size_; 679 friend struct ::protobuf_roachpb_2fdata_2eproto::TableStruct; 680 }; 681 // ------------------------------------------------------------------- 682 683 class SplitTrigger : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:cockroach.roachpb.SplitTrigger) */ { 684 public: 685 SplitTrigger(); 686 virtual ~SplitTrigger(); 687 688 SplitTrigger(const SplitTrigger& from); 689 690 inline SplitTrigger& operator=(const SplitTrigger& from) { 691 CopyFrom(from); 692 return *this; 693 } 694 #if LANG_CXX11 695 SplitTrigger(SplitTrigger&& from) noexcept 696 : SplitTrigger() { 697 *this = ::std::move(from); 698 } 699 700 inline SplitTrigger& operator=(SplitTrigger&& from) noexcept { 701 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { 702 if (this != &from) InternalSwap(&from); 703 } else { 704 CopyFrom(from); 705 } 706 return *this; 707 } 708 #endif 709 static const SplitTrigger& default_instance(); 710 711 static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY 712 static inline const SplitTrigger* internal_default_instance() { 713 return reinterpret_cast<const SplitTrigger*>( 714 &_SplitTrigger_default_instance_); 715 } 716 static constexpr int kIndexInFileMessages = 717 4; 718 719 void Swap(SplitTrigger* other); 720 friend void swap(SplitTrigger& a, SplitTrigger& b) { 721 a.Swap(&b); 722 } 723 724 // implements Message ---------------------------------------------- 725 726 inline SplitTrigger* New() const final { 727 return CreateMaybeMessage<SplitTrigger>(NULL); 728 } 729 730 SplitTrigger* New(::google::protobuf::Arena* arena) const final { 731 return CreateMaybeMessage<SplitTrigger>(arena); 732 } 733 void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from) 734 final; 735 void CopyFrom(const SplitTrigger& from); 736 void MergeFrom(const SplitTrigger& from); 737 void Clear() final; 738 bool IsInitialized() const final; 739 740 size_t ByteSizeLong() const final; 741 bool MergePartialFromCodedStream( 742 ::google::protobuf::io::CodedInputStream* input) final; 743 void SerializeWithCachedSizes( 744 ::google::protobuf::io::CodedOutputStream* output) const final; 745 void DiscardUnknownFields(); 746 int GetCachedSize() const final { return _cached_size_.Get(); } 747 748 private: 749 void SharedCtor(); 750 void SharedDtor(); 751 void SetCachedSize(int size) const; 752 void InternalSwap(SplitTrigger* other); 753 private: 754 inline ::google::protobuf::Arena* GetArenaNoVirtual() const { 755 return NULL; 756 } 757 inline void* MaybeArenaPtr() const { 758 return NULL; 759 } 760 public: 761 762 ::std::string GetTypeName() const final; 763 764 // nested types ---------------------------------------------------- 765 766 // accessors ------------------------------------------------------- 767 768 bool has_left_desc() const; 769 void clear_left_desc(); 770 static const int kLeftDescFieldNumber = 1; 771 private: 772 const ::cockroach::roachpb::RangeDescriptor& _internal_left_desc() const; 773 public: 774 const ::cockroach::roachpb::RangeDescriptor& left_desc() const; 775 ::cockroach::roachpb::RangeDescriptor* release_left_desc(); 776 ::cockroach::roachpb::RangeDescriptor* mutable_left_desc(); 777 void set_allocated_left_desc(::cockroach::roachpb::RangeDescriptor* left_desc); 778 779 bool has_right_desc() const; 780 void clear_right_desc(); 781 static const int kRightDescFieldNumber = 2; 782 private: 783 const ::cockroach::roachpb::RangeDescriptor& _internal_right_desc() const; 784 public: 785 const ::cockroach::roachpb::RangeDescriptor& right_desc() const; 786 ::cockroach::roachpb::RangeDescriptor* release_right_desc(); 787 ::cockroach::roachpb::RangeDescriptor* mutable_right_desc(); 788 void set_allocated_right_desc(::cockroach::roachpb::RangeDescriptor* right_desc); 789 790 // @@protoc_insertion_point(class_scope:cockroach.roachpb.SplitTrigger) 791 private: 792 793 ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; 794 ::cockroach::roachpb::RangeDescriptor* left_desc_; 795 ::cockroach::roachpb::RangeDescriptor* right_desc_; 796 mutable ::google::protobuf::internal::CachedSize _cached_size_; 797 friend struct ::protobuf_roachpb_2fdata_2eproto::TableStruct; 798 }; 799 // ------------------------------------------------------------------- 800 801 class MergeTrigger : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:cockroach.roachpb.MergeTrigger) */ { 802 public: 803 MergeTrigger(); 804 virtual ~MergeTrigger(); 805 806 MergeTrigger(const MergeTrigger& from); 807 808 inline MergeTrigger& operator=(const MergeTrigger& from) { 809 CopyFrom(from); 810 return *this; 811 } 812 #if LANG_CXX11 813 MergeTrigger(MergeTrigger&& from) noexcept 814 : MergeTrigger() { 815 *this = ::std::move(from); 816 } 817 818 inline MergeTrigger& operator=(MergeTrigger&& from) noexcept { 819 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { 820 if (this != &from) InternalSwap(&from); 821 } else { 822 CopyFrom(from); 823 } 824 return *this; 825 } 826 #endif 827 static const MergeTrigger& default_instance(); 828 829 static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY 830 static inline const MergeTrigger* internal_default_instance() { 831 return reinterpret_cast<const MergeTrigger*>( 832 &_MergeTrigger_default_instance_); 833 } 834 static constexpr int kIndexInFileMessages = 835 5; 836 837 void Swap(MergeTrigger* other); 838 friend void swap(MergeTrigger& a, MergeTrigger& b) { 839 a.Swap(&b); 840 } 841 842 // implements Message ---------------------------------------------- 843 844 inline MergeTrigger* New() const final { 845 return CreateMaybeMessage<MergeTrigger>(NULL); 846 } 847 848 MergeTrigger* New(::google::protobuf::Arena* arena) const final { 849 return CreateMaybeMessage<MergeTrigger>(arena); 850 } 851 void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from) 852 final; 853 void CopyFrom(const MergeTrigger& from); 854 void MergeFrom(const MergeTrigger& from); 855 void Clear() final; 856 bool IsInitialized() const final; 857 858 size_t ByteSizeLong() const final; 859 bool MergePartialFromCodedStream( 860 ::google::protobuf::io::CodedInputStream* input) final; 861 void SerializeWithCachedSizes( 862 ::google::protobuf::io::CodedOutputStream* output) const final; 863 void DiscardUnknownFields(); 864 int GetCachedSize() const final { return _cached_size_.Get(); } 865 866 private: 867 void SharedCtor(); 868 void SharedDtor(); 869 void SetCachedSize(int size) const; 870 void InternalSwap(MergeTrigger* other); 871 private: 872 inline ::google::protobuf::Arena* GetArenaNoVirtual() const { 873 return NULL; 874 } 875 inline void* MaybeArenaPtr() const { 876 return NULL; 877 } 878 public: 879 880 ::std::string GetTypeName() const final; 881 882 // nested types ---------------------------------------------------- 883 884 // accessors ------------------------------------------------------- 885 886 bool has_left_desc() const; 887 void clear_left_desc(); 888 static const int kLeftDescFieldNumber = 1; 889 private: 890 const ::cockroach::roachpb::RangeDescriptor& _internal_left_desc() const; 891 public: 892 const ::cockroach::roachpb::RangeDescriptor& left_desc() const; 893 ::cockroach::roachpb::RangeDescriptor* release_left_desc(); 894 ::cockroach::roachpb::RangeDescriptor* mutable_left_desc(); 895 void set_allocated_left_desc(::cockroach::roachpb::RangeDescriptor* left_desc); 896 897 bool has_right_desc() const; 898 void clear_right_desc(); 899 static const int kRightDescFieldNumber = 2; 900 private: 901 const ::cockroach::roachpb::RangeDescriptor& _internal_right_desc() const; 902 public: 903 const ::cockroach::roachpb::RangeDescriptor& right_desc() const; 904 ::cockroach::roachpb::RangeDescriptor* release_right_desc(); 905 ::cockroach::roachpb::RangeDescriptor* mutable_right_desc(); 906 void set_allocated_right_desc(::cockroach::roachpb::RangeDescriptor* right_desc); 907 908 bool has_right_mvcc_stats() const; 909 void clear_right_mvcc_stats(); 910 static const int kRightMvccStatsFieldNumber = 4; 911 private: 912 const ::cockroach::storage::enginepb::MVCCStats& _internal_right_mvcc_stats() const; 913 public: 914 const ::cockroach::storage::enginepb::MVCCStats& right_mvcc_stats() const; 915 ::cockroach::storage::enginepb::MVCCStats* release_right_mvcc_stats(); 916 ::cockroach::storage::enginepb::MVCCStats* mutable_right_mvcc_stats(); 917 void set_allocated_right_mvcc_stats(::cockroach::storage::enginepb::MVCCStats* right_mvcc_stats); 918 919 bool has_freeze_start() const; 920 void clear_freeze_start(); 921 static const int kFreezeStartFieldNumber = 5; 922 private: 923 const ::cockroach::util::hlc::Timestamp& _internal_freeze_start() const; 924 public: 925 const ::cockroach::util::hlc::Timestamp& freeze_start() const; 926 ::cockroach::util::hlc::Timestamp* release_freeze_start(); 927 ::cockroach::util::hlc::Timestamp* mutable_freeze_start(); 928 void set_allocated_freeze_start(::cockroach::util::hlc::Timestamp* freeze_start); 929 930 // @@protoc_insertion_point(class_scope:cockroach.roachpb.MergeTrigger) 931 private: 932 933 ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; 934 ::cockroach::roachpb::RangeDescriptor* left_desc_; 935 ::cockroach::roachpb::RangeDescriptor* right_desc_; 936 ::cockroach::storage::enginepb::MVCCStats* right_mvcc_stats_; 937 ::cockroach::util::hlc::Timestamp* freeze_start_; 938 mutable ::google::protobuf::internal::CachedSize _cached_size_; 939 friend struct ::protobuf_roachpb_2fdata_2eproto::TableStruct; 940 }; 941 // ------------------------------------------------------------------- 942 943 class ChangeReplicasTrigger : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:cockroach.roachpb.ChangeReplicasTrigger) */ { 944 public: 945 ChangeReplicasTrigger(); 946 virtual ~ChangeReplicasTrigger(); 947 948 ChangeReplicasTrigger(const ChangeReplicasTrigger& from); 949 950 inline ChangeReplicasTrigger& operator=(const ChangeReplicasTrigger& from) { 951 CopyFrom(from); 952 return *this; 953 } 954 #if LANG_CXX11 955 ChangeReplicasTrigger(ChangeReplicasTrigger&& from) noexcept 956 : ChangeReplicasTrigger() { 957 *this = ::std::move(from); 958 } 959 960 inline ChangeReplicasTrigger& operator=(ChangeReplicasTrigger&& from) noexcept { 961 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { 962 if (this != &from) InternalSwap(&from); 963 } else { 964 CopyFrom(from); 965 } 966 return *this; 967 } 968 #endif 969 static const ChangeReplicasTrigger& default_instance(); 970 971 static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY 972 static inline const ChangeReplicasTrigger* internal_default_instance() { 973 return reinterpret_cast<const ChangeReplicasTrigger*>( 974 &_ChangeReplicasTrigger_default_instance_); 975 } 976 static constexpr int kIndexInFileMessages = 977 6; 978 979 void Swap(ChangeReplicasTrigger* other); 980 friend void swap(ChangeReplicasTrigger& a, ChangeReplicasTrigger& b) { 981 a.Swap(&b); 982 } 983 984 // implements Message ---------------------------------------------- 985 986 inline ChangeReplicasTrigger* New() const final { 987 return CreateMaybeMessage<ChangeReplicasTrigger>(NULL); 988 } 989 990 ChangeReplicasTrigger* New(::google::protobuf::Arena* arena) const final { 991 return CreateMaybeMessage<ChangeReplicasTrigger>(arena); 992 } 993 void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from) 994 final; 995 void CopyFrom(const ChangeReplicasTrigger& from); 996 void MergeFrom(const ChangeReplicasTrigger& from); 997 void Clear() final; 998 bool IsInitialized() const final; 999 1000 size_t ByteSizeLong() const final; 1001 bool MergePartialFromCodedStream( 1002 ::google::protobuf::io::CodedInputStream* input) final; 1003 void SerializeWithCachedSizes( 1004 ::google::protobuf::io::CodedOutputStream* output) const final; 1005 void DiscardUnknownFields(); 1006 int GetCachedSize() const final { return _cached_size_.Get(); } 1007 1008 private: 1009 void SharedCtor(); 1010 void SharedDtor(); 1011 void SetCachedSize(int size) const; 1012 void InternalSwap(ChangeReplicasTrigger* other); 1013 private: 1014 inline ::google::protobuf::Arena* GetArenaNoVirtual() const { 1015 return NULL; 1016 } 1017 inline void* MaybeArenaPtr() const { 1018 return NULL; 1019 } 1020 public: 1021 1022 ::std::string GetTypeName() const final; 1023 1024 // nested types ---------------------------------------------------- 1025 1026 // accessors ------------------------------------------------------- 1027 1028 int deprecated_updated_replicas_size() const; 1029 void clear_deprecated_updated_replicas(); 1030 static const int kDeprecatedUpdatedReplicasFieldNumber = 3; 1031 ::cockroach::roachpb::ReplicaDescriptor* mutable_deprecated_updated_replicas(int index); 1032 ::google::protobuf::RepeatedPtrField< ::cockroach::roachpb::ReplicaDescriptor >* 1033 mutable_deprecated_updated_replicas(); 1034 const ::cockroach::roachpb::ReplicaDescriptor& deprecated_updated_replicas(int index) const; 1035 ::cockroach::roachpb::ReplicaDescriptor* add_deprecated_updated_replicas(); 1036 const ::google::protobuf::RepeatedPtrField< ::cockroach::roachpb::ReplicaDescriptor >& 1037 deprecated_updated_replicas() const; 1038 1039 int internal_added_replicas_size() const; 1040 void clear_internal_added_replicas(); 1041 static const int kInternalAddedReplicasFieldNumber = 6; 1042 ::cockroach::roachpb::ReplicaDescriptor* mutable_internal_added_replicas(int index); 1043 ::google::protobuf::RepeatedPtrField< ::cockroach::roachpb::ReplicaDescriptor >* 1044 mutable_internal_added_replicas(); 1045 const ::cockroach::roachpb::ReplicaDescriptor& internal_added_replicas(int index) const; 1046 ::cockroach::roachpb::ReplicaDescriptor* add_internal_added_replicas(); 1047 const ::google::protobuf::RepeatedPtrField< ::cockroach::roachpb::ReplicaDescriptor >& 1048 internal_added_replicas() const; 1049 1050 int internal_removed_replicas_size() const; 1051 void clear_internal_removed_replicas(); 1052 static const int kInternalRemovedReplicasFieldNumber = 7; 1053 ::cockroach::roachpb::ReplicaDescriptor* mutable_internal_removed_replicas(int index); 1054 ::google::protobuf::RepeatedPtrField< ::cockroach::roachpb::ReplicaDescriptor >* 1055 mutable_internal_removed_replicas(); 1056 const ::cockroach::roachpb::ReplicaDescriptor& internal_removed_replicas(int index) const; 1057 ::cockroach::roachpb::ReplicaDescriptor* add_internal_removed_replicas(); 1058 const ::google::protobuf::RepeatedPtrField< ::cockroach::roachpb::ReplicaDescriptor >& 1059 internal_removed_replicas() const; 1060 1061 bool has_deprecated_replica() const; 1062 void clear_deprecated_replica(); 1063 static const int kDeprecatedReplicaFieldNumber = 2; 1064 private: 1065 const ::cockroach::roachpb::ReplicaDescriptor& _internal_deprecated_replica() const; 1066 public: 1067 const ::cockroach::roachpb::ReplicaDescriptor& deprecated_replica() const; 1068 ::cockroach::roachpb::ReplicaDescriptor* release_deprecated_replica(); 1069 ::cockroach::roachpb::ReplicaDescriptor* mutable_deprecated_replica(); 1070 void set_allocated_deprecated_replica(::cockroach::roachpb::ReplicaDescriptor* deprecated_replica); 1071 1072 // .cockroach.roachpb.RangeDescriptor desc = 5; 1073 bool has_desc() const; 1074 void clear_desc(); 1075 static const int kDescFieldNumber = 5; 1076 private: 1077 const ::cockroach::roachpb::RangeDescriptor& _internal_desc() const; 1078 public: 1079 const ::cockroach::roachpb::RangeDescriptor& desc() const; 1080 ::cockroach::roachpb::RangeDescriptor* release_desc(); 1081 ::cockroach::roachpb::RangeDescriptor* mutable_desc(); 1082 void set_allocated_desc(::cockroach::roachpb::RangeDescriptor* desc); 1083 1084 // .cockroach.roachpb.ReplicaChangeType deprecated_change_type = 1; 1085 void clear_deprecated_change_type(); 1086 static const int kDeprecatedChangeTypeFieldNumber = 1; 1087 ::cockroach::roachpb::ReplicaChangeType deprecated_change_type() const; 1088 void set_deprecated_change_type(::cockroach::roachpb::ReplicaChangeType value); 1089 1090 void clear_deprecated_next_replica_id(); 1091 static const int kDeprecatedNextReplicaIdFieldNumber = 4; 1092 ::google::protobuf::int32 deprecated_next_replica_id() const; 1093 void set_deprecated_next_replica_id(::google::protobuf::int32 value); 1094 1095 // @@protoc_insertion_point(class_scope:cockroach.roachpb.ChangeReplicasTrigger) 1096 private: 1097 1098 ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; 1099 ::google::protobuf::RepeatedPtrField< ::cockroach::roachpb::ReplicaDescriptor > deprecated_updated_replicas_; 1100 ::google::protobuf::RepeatedPtrField< ::cockroach::roachpb::ReplicaDescriptor > internal_added_replicas_; 1101 ::google::protobuf::RepeatedPtrField< ::cockroach::roachpb::ReplicaDescriptor > internal_removed_replicas_; 1102 ::cockroach::roachpb::ReplicaDescriptor* deprecated_replica_; 1103 ::cockroach::roachpb::RangeDescriptor* desc_; 1104 int deprecated_change_type_; 1105 ::google::protobuf::int32 deprecated_next_replica_id_; 1106 mutable ::google::protobuf::internal::CachedSize _cached_size_; 1107 friend struct ::protobuf_roachpb_2fdata_2eproto::TableStruct; 1108 }; 1109 // ------------------------------------------------------------------- 1110 1111 class ModifiedSpanTrigger : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:cockroach.roachpb.ModifiedSpanTrigger) */ { 1112 public: 1113 ModifiedSpanTrigger(); 1114 virtual ~ModifiedSpanTrigger(); 1115 1116 ModifiedSpanTrigger(const ModifiedSpanTrigger& from); 1117 1118 inline ModifiedSpanTrigger& operator=(const ModifiedSpanTrigger& from) { 1119 CopyFrom(from); 1120 return *this; 1121 } 1122 #if LANG_CXX11 1123 ModifiedSpanTrigger(ModifiedSpanTrigger&& from) noexcept 1124 : ModifiedSpanTrigger() { 1125 *this = ::std::move(from); 1126 } 1127 1128 inline ModifiedSpanTrigger& operator=(ModifiedSpanTrigger&& from) noexcept { 1129 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { 1130 if (this != &from) InternalSwap(&from); 1131 } else { 1132 CopyFrom(from); 1133 } 1134 return *this; 1135 } 1136 #endif 1137 static const ModifiedSpanTrigger& default_instance(); 1138 1139 static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY 1140 static inline const ModifiedSpanTrigger* internal_default_instance() { 1141 return reinterpret_cast<const ModifiedSpanTrigger*>( 1142 &_ModifiedSpanTrigger_default_instance_); 1143 } 1144 static constexpr int kIndexInFileMessages = 1145 7; 1146 1147 void Swap(ModifiedSpanTrigger* other); 1148 friend void swap(ModifiedSpanTrigger& a, ModifiedSpanTrigger& b) { 1149 a.Swap(&b); 1150 } 1151 1152 // implements Message ---------------------------------------------- 1153 1154 inline ModifiedSpanTrigger* New() const final { 1155 return CreateMaybeMessage<ModifiedSpanTrigger>(NULL); 1156 } 1157 1158 ModifiedSpanTrigger* New(::google::protobuf::Arena* arena) const final { 1159 return CreateMaybeMessage<ModifiedSpanTrigger>(arena); 1160 } 1161 void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from) 1162 final; 1163 void CopyFrom(const ModifiedSpanTrigger& from); 1164 void MergeFrom(const ModifiedSpanTrigger& from); 1165 void Clear() final; 1166 bool IsInitialized() const final; 1167 1168 size_t ByteSizeLong() const final; 1169 bool MergePartialFromCodedStream( 1170 ::google::protobuf::io::CodedInputStream* input) final; 1171 void SerializeWithCachedSizes( 1172 ::google::protobuf::io::CodedOutputStream* output) const final; 1173 void DiscardUnknownFields(); 1174 int GetCachedSize() const final { return _cached_size_.Get(); } 1175 1176 private: 1177 void SharedCtor(); 1178 void SharedDtor(); 1179 void SetCachedSize(int size) const; 1180 void InternalSwap(ModifiedSpanTrigger* other); 1181 private: 1182 inline ::google::protobuf::Arena* GetArenaNoVirtual() const { 1183 return NULL; 1184 } 1185 inline void* MaybeArenaPtr() const { 1186 return NULL; 1187 } 1188 public: 1189 1190 ::std::string GetTypeName() const final; 1191 1192 // nested types ---------------------------------------------------- 1193 1194 // accessors ------------------------------------------------------- 1195 1196 // .cockroach.roachpb.Span node_liveness_span = 2; 1197 bool has_node_liveness_span() const; 1198 void clear_node_liveness_span(); 1199 static const int kNodeLivenessSpanFieldNumber = 2; 1200 private: 1201 const ::cockroach::roachpb::Span& _internal_node_liveness_span() const; 1202 public: 1203 const ::cockroach::roachpb::Span& node_liveness_span() const; 1204 ::cockroach::roachpb::Span* release_node_liveness_span(); 1205 ::cockroach::roachpb::Span* mutable_node_liveness_span(); 1206 void set_allocated_node_liveness_span(::cockroach::roachpb::Span* node_liveness_span); 1207 1208 // bool system_config_span = 1; 1209 void clear_system_config_span(); 1210 static const int kSystemConfigSpanFieldNumber = 1; 1211 bool system_config_span() const; 1212 void set_system_config_span(bool value); 1213 1214 // @@protoc_insertion_point(class_scope:cockroach.roachpb.ModifiedSpanTrigger) 1215 private: 1216 1217 ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; 1218 ::cockroach::roachpb::Span* node_liveness_span_; 1219 bool system_config_span_; 1220 mutable ::google::protobuf::internal::CachedSize _cached_size_; 1221 friend struct ::protobuf_roachpb_2fdata_2eproto::TableStruct; 1222 }; 1223 // ------------------------------------------------------------------- 1224 1225 class StickyBitTrigger : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:cockroach.roachpb.StickyBitTrigger) */ { 1226 public: 1227 StickyBitTrigger(); 1228 virtual ~StickyBitTrigger(); 1229 1230 StickyBitTrigger(const StickyBitTrigger& from); 1231 1232 inline StickyBitTrigger& operator=(const StickyBitTrigger& from) { 1233 CopyFrom(from); 1234 return *this; 1235 } 1236 #if LANG_CXX11 1237 StickyBitTrigger(StickyBitTrigger&& from) noexcept 1238 : StickyBitTrigger() { 1239 *this = ::std::move(from); 1240 } 1241 1242 inline StickyBitTrigger& operator=(StickyBitTrigger&& from) noexcept { 1243 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { 1244 if (this != &from) InternalSwap(&from); 1245 } else { 1246 CopyFrom(from); 1247 } 1248 return *this; 1249 } 1250 #endif 1251 static const StickyBitTrigger& default_instance(); 1252 1253 static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY 1254 static inline const StickyBitTrigger* internal_default_instance() { 1255 return reinterpret_cast<const StickyBitTrigger*>( 1256 &_StickyBitTrigger_default_instance_); 1257 } 1258 static constexpr int kIndexInFileMessages = 1259 8; 1260 1261 void Swap(StickyBitTrigger* other); 1262 friend void swap(StickyBitTrigger& a, StickyBitTrigger& b) { 1263 a.Swap(&b); 1264 } 1265 1266 // implements Message ---------------------------------------------- 1267 1268 inline StickyBitTrigger* New() const final { 1269 return CreateMaybeMessage<StickyBitTrigger>(NULL); 1270 } 1271 1272 StickyBitTrigger* New(::google::protobuf::Arena* arena) const final { 1273 return CreateMaybeMessage<StickyBitTrigger>(arena); 1274 } 1275 void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from) 1276 final; 1277 void CopyFrom(const StickyBitTrigger& from); 1278 void MergeFrom(const StickyBitTrigger& from); 1279 void Clear() final; 1280 bool IsInitialized() const final; 1281 1282 size_t ByteSizeLong() const final; 1283 bool MergePartialFromCodedStream( 1284 ::google::protobuf::io::CodedInputStream* input) final; 1285 void SerializeWithCachedSizes( 1286 ::google::protobuf::io::CodedOutputStream* output) const final; 1287 void DiscardUnknownFields(); 1288 int GetCachedSize() const final { return _cached_size_.Get(); } 1289 1290 private: 1291 void SharedCtor(); 1292 void SharedDtor(); 1293 void SetCachedSize(int size) const; 1294 void InternalSwap(StickyBitTrigger* other); 1295 private: 1296 inline ::google::protobuf::Arena* GetArenaNoVirtual() const { 1297 return NULL; 1298 } 1299 inline void* MaybeArenaPtr() const { 1300 return NULL; 1301 } 1302 public: 1303 1304 ::std::string GetTypeName() const final; 1305 1306 // nested types ---------------------------------------------------- 1307 1308 // accessors ------------------------------------------------------- 1309 1310 bool has_sticky_bit() const; 1311 void clear_sticky_bit(); 1312 static const int kStickyBitFieldNumber = 1; 1313 private: 1314 const ::cockroach::util::hlc::Timestamp& _internal_sticky_bit() const; 1315 public: 1316 const ::cockroach::util::hlc::Timestamp& sticky_bit() const; 1317 ::cockroach::util::hlc::Timestamp* release_sticky_bit(); 1318 ::cockroach::util::hlc::Timestamp* mutable_sticky_bit(); 1319 void set_allocated_sticky_bit(::cockroach::util::hlc::Timestamp* sticky_bit); 1320 1321 // @@protoc_insertion_point(class_scope:cockroach.roachpb.StickyBitTrigger) 1322 private: 1323 1324 ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; 1325 ::cockroach::util::hlc::Timestamp* sticky_bit_; 1326 mutable ::google::protobuf::internal::CachedSize _cached_size_; 1327 friend struct ::protobuf_roachpb_2fdata_2eproto::TableStruct; 1328 }; 1329 // ------------------------------------------------------------------- 1330 1331 class InternalCommitTrigger : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:cockroach.roachpb.InternalCommitTrigger) */ { 1332 public: 1333 InternalCommitTrigger(); 1334 virtual ~InternalCommitTrigger(); 1335 1336 InternalCommitTrigger(const InternalCommitTrigger& from); 1337 1338 inline InternalCommitTrigger& operator=(const InternalCommitTrigger& from) { 1339 CopyFrom(from); 1340 return *this; 1341 } 1342 #if LANG_CXX11 1343 InternalCommitTrigger(InternalCommitTrigger&& from) noexcept 1344 : InternalCommitTrigger() { 1345 *this = ::std::move(from); 1346 } 1347 1348 inline InternalCommitTrigger& operator=(InternalCommitTrigger&& from) noexcept { 1349 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { 1350 if (this != &from) InternalSwap(&from); 1351 } else { 1352 CopyFrom(from); 1353 } 1354 return *this; 1355 } 1356 #endif 1357 static const InternalCommitTrigger& default_instance(); 1358 1359 static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY 1360 static inline const InternalCommitTrigger* internal_default_instance() { 1361 return reinterpret_cast<const InternalCommitTrigger*>( 1362 &_InternalCommitTrigger_default_instance_); 1363 } 1364 static constexpr int kIndexInFileMessages = 1365 9; 1366 1367 void Swap(InternalCommitTrigger* other); 1368 friend void swap(InternalCommitTrigger& a, InternalCommitTrigger& b) { 1369 a.Swap(&b); 1370 } 1371 1372 // implements Message ---------------------------------------------- 1373 1374 inline InternalCommitTrigger* New() const final { 1375 return CreateMaybeMessage<InternalCommitTrigger>(NULL); 1376 } 1377 1378 InternalCommitTrigger* New(::google::protobuf::Arena* arena) const final { 1379 return CreateMaybeMessage<InternalCommitTrigger>(arena); 1380 } 1381 void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from) 1382 final; 1383 void CopyFrom(const InternalCommitTrigger& from); 1384 void MergeFrom(const InternalCommitTrigger& from); 1385 void Clear() final; 1386 bool IsInitialized() const final; 1387 1388 size_t ByteSizeLong() const final; 1389 bool MergePartialFromCodedStream( 1390 ::google::protobuf::io::CodedInputStream* input) final; 1391 void SerializeWithCachedSizes( 1392 ::google::protobuf::io::CodedOutputStream* output) const final; 1393 void DiscardUnknownFields(); 1394 int GetCachedSize() const final { return _cached_size_.Get(); } 1395 1396 private: 1397 void SharedCtor(); 1398 void SharedDtor(); 1399 void SetCachedSize(int size) const; 1400 void InternalSwap(InternalCommitTrigger* other); 1401 private: 1402 inline ::google::protobuf::Arena* GetArenaNoVirtual() const { 1403 return NULL; 1404 } 1405 inline void* MaybeArenaPtr() const { 1406 return NULL; 1407 } 1408 public: 1409 1410 ::std::string GetTypeName() const final; 1411 1412 // nested types ---------------------------------------------------- 1413 1414 // accessors ------------------------------------------------------- 1415 1416 // .cockroach.roachpb.SplitTrigger split_trigger = 1; 1417 bool has_split_trigger() const; 1418 void clear_split_trigger(); 1419 static const int kSplitTriggerFieldNumber = 1; 1420 private: 1421 const ::cockroach::roachpb::SplitTrigger& _internal_split_trigger() const; 1422 public: 1423 const ::cockroach::roachpb::SplitTrigger& split_trigger() const; 1424 ::cockroach::roachpb::SplitTrigger* release_split_trigger(); 1425 ::cockroach::roachpb::SplitTrigger* mutable_split_trigger(); 1426 void set_allocated_split_trigger(::cockroach::roachpb::SplitTrigger* split_trigger); 1427 1428 // .cockroach.roachpb.MergeTrigger merge_trigger = 2; 1429 bool has_merge_trigger() const; 1430 void clear_merge_trigger(); 1431 static const int kMergeTriggerFieldNumber = 2; 1432 private: 1433 const ::cockroach::roachpb::MergeTrigger& _internal_merge_trigger() const; 1434 public: 1435 const ::cockroach::roachpb::MergeTrigger& merge_trigger() const; 1436 ::cockroach::roachpb::MergeTrigger* release_merge_trigger(); 1437 ::cockroach::roachpb::MergeTrigger* mutable_merge_trigger(); 1438 void set_allocated_merge_trigger(::cockroach::roachpb::MergeTrigger* merge_trigger); 1439 1440 // .cockroach.roachpb.ChangeReplicasTrigger change_replicas_trigger = 3; 1441 bool has_change_replicas_trigger() const; 1442 void clear_change_replicas_trigger(); 1443 static const int kChangeReplicasTriggerFieldNumber = 3; 1444 private: 1445 const ::cockroach::roachpb::ChangeReplicasTrigger& _internal_change_replicas_trigger() const; 1446 public: 1447 const ::cockroach::roachpb::ChangeReplicasTrigger& change_replicas_trigger() const; 1448 ::cockroach::roachpb::ChangeReplicasTrigger* release_change_replicas_trigger(); 1449 ::cockroach::roachpb::ChangeReplicasTrigger* mutable_change_replicas_trigger(); 1450 void set_allocated_change_replicas_trigger(::cockroach::roachpb::ChangeReplicasTrigger* change_replicas_trigger); 1451 1452 // .cockroach.roachpb.ModifiedSpanTrigger modified_span_trigger = 4; 1453 bool has_modified_span_trigger() const; 1454 void clear_modified_span_trigger(); 1455 static const int kModifiedSpanTriggerFieldNumber = 4; 1456 private: 1457 const ::cockroach::roachpb::ModifiedSpanTrigger& _internal_modified_span_trigger() const; 1458 public: 1459 const ::cockroach::roachpb::ModifiedSpanTrigger& modified_span_trigger() const; 1460 ::cockroach::roachpb::ModifiedSpanTrigger* release_modified_span_trigger(); 1461 ::cockroach::roachpb::ModifiedSpanTrigger* mutable_modified_span_trigger(); 1462 void set_allocated_modified_span_trigger(::cockroach::roachpb::ModifiedSpanTrigger* modified_span_trigger); 1463 1464 // .cockroach.roachpb.StickyBitTrigger sticky_bit_trigger = 5; 1465 bool has_sticky_bit_trigger() const; 1466 void clear_sticky_bit_trigger(); 1467 static const int kStickyBitTriggerFieldNumber = 5; 1468 private: 1469 const ::cockroach::roachpb::StickyBitTrigger& _internal_sticky_bit_trigger() const; 1470 public: 1471 const ::cockroach::roachpb::StickyBitTrigger& sticky_bit_trigger() const; 1472 ::cockroach::roachpb::StickyBitTrigger* release_sticky_bit_trigger(); 1473 ::cockroach::roachpb::StickyBitTrigger* mutable_sticky_bit_trigger(); 1474 void set_allocated_sticky_bit_trigger(::cockroach::roachpb::StickyBitTrigger* sticky_bit_trigger); 1475 1476 // @@protoc_insertion_point(class_scope:cockroach.roachpb.InternalCommitTrigger) 1477 private: 1478 1479 ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; 1480 ::cockroach::roachpb::SplitTrigger* split_trigger_; 1481 ::cockroach::roachpb::MergeTrigger* merge_trigger_; 1482 ::cockroach::roachpb::ChangeReplicasTrigger* change_replicas_trigger_; 1483 ::cockroach::roachpb::ModifiedSpanTrigger* modified_span_trigger_; 1484 ::cockroach::roachpb::StickyBitTrigger* sticky_bit_trigger_; 1485 mutable ::google::protobuf::internal::CachedSize _cached_size_; 1486 friend struct ::protobuf_roachpb_2fdata_2eproto::TableStruct; 1487 }; 1488 // ------------------------------------------------------------------- 1489 1490 class ObservedTimestamp : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:cockroach.roachpb.ObservedTimestamp) */ { 1491 public: 1492 ObservedTimestamp(); 1493 virtual ~ObservedTimestamp(); 1494 1495 ObservedTimestamp(const ObservedTimestamp& from); 1496 1497 inline ObservedTimestamp& operator=(const ObservedTimestamp& from) { 1498 CopyFrom(from); 1499 return *this; 1500 } 1501 #if LANG_CXX11 1502 ObservedTimestamp(ObservedTimestamp&& from) noexcept 1503 : ObservedTimestamp() { 1504 *this = ::std::move(from); 1505 } 1506 1507 inline ObservedTimestamp& operator=(ObservedTimestamp&& from) noexcept { 1508 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { 1509 if (this != &from) InternalSwap(&from); 1510 } else { 1511 CopyFrom(from); 1512 } 1513 return *this; 1514 } 1515 #endif 1516 static const ObservedTimestamp& default_instance(); 1517 1518 static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY 1519 static inline const ObservedTimestamp* internal_default_instance() { 1520 return reinterpret_cast<const ObservedTimestamp*>( 1521 &_ObservedTimestamp_default_instance_); 1522 } 1523 static constexpr int kIndexInFileMessages = 1524 10; 1525 1526 void Swap(ObservedTimestamp* other); 1527 friend void swap(ObservedTimestamp& a, ObservedTimestamp& b) { 1528 a.Swap(&b); 1529 } 1530 1531 // implements Message ---------------------------------------------- 1532 1533 inline ObservedTimestamp* New() const final { 1534 return CreateMaybeMessage<ObservedTimestamp>(NULL); 1535 } 1536 1537 ObservedTimestamp* New(::google::protobuf::Arena* arena) const final { 1538 return CreateMaybeMessage<ObservedTimestamp>(arena); 1539 } 1540 void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from) 1541 final; 1542 void CopyFrom(const ObservedTimestamp& from); 1543 void MergeFrom(const ObservedTimestamp& from); 1544 void Clear() final; 1545 bool IsInitialized() const final; 1546 1547 size_t ByteSizeLong() const final; 1548 bool MergePartialFromCodedStream( 1549 ::google::protobuf::io::CodedInputStream* input) final; 1550 void SerializeWithCachedSizes( 1551 ::google::protobuf::io::CodedOutputStream* output) const final; 1552 void DiscardUnknownFields(); 1553 int GetCachedSize() const final { return _cached_size_.Get(); } 1554 1555 private: 1556 void SharedCtor(); 1557 void SharedDtor(); 1558 void SetCachedSize(int size) const; 1559 void InternalSwap(ObservedTimestamp* other); 1560 private: 1561 inline ::google::protobuf::Arena* GetArenaNoVirtual() const { 1562 return NULL; 1563 } 1564 inline void* MaybeArenaPtr() const { 1565 return NULL; 1566 } 1567 public: 1568 1569 ::std::string GetTypeName() const final; 1570 1571 // nested types ---------------------------------------------------- 1572 1573 // accessors ------------------------------------------------------- 1574 1575 bool has_timestamp() const; 1576 void clear_timestamp(); 1577 static const int kTimestampFieldNumber = 2; 1578 private: 1579 const ::cockroach::util::hlc::Timestamp& _internal_timestamp() const; 1580 public: 1581 const ::cockroach::util::hlc::Timestamp& timestamp() const; 1582 ::cockroach::util::hlc::Timestamp* release_timestamp(); 1583 ::cockroach::util::hlc::Timestamp* mutable_timestamp(); 1584 void set_allocated_timestamp(::cockroach::util::hlc::Timestamp* timestamp); 1585 1586 void clear_node_id(); 1587 static const int kNodeIdFieldNumber = 1; 1588 ::google::protobuf::int32 node_id() const; 1589 void set_node_id(::google::protobuf::int32 value); 1590 1591 // @@protoc_insertion_point(class_scope:cockroach.roachpb.ObservedTimestamp) 1592 private: 1593 1594 ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; 1595 ::cockroach::util::hlc::Timestamp* timestamp_; 1596 ::google::protobuf::int32 node_id_; 1597 mutable ::google::protobuf::internal::CachedSize _cached_size_; 1598 friend struct ::protobuf_roachpb_2fdata_2eproto::TableStruct; 1599 }; 1600 // ------------------------------------------------------------------- 1601 1602 class Transaction : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:cockroach.roachpb.Transaction) */ { 1603 public: 1604 Transaction(); 1605 virtual ~Transaction(); 1606 1607 Transaction(const Transaction& from); 1608 1609 inline Transaction& operator=(const Transaction& from) { 1610 CopyFrom(from); 1611 return *this; 1612 } 1613 #if LANG_CXX11 1614 Transaction(Transaction&& from) noexcept 1615 : Transaction() { 1616 *this = ::std::move(from); 1617 } 1618 1619 inline Transaction& operator=(Transaction&& from) noexcept { 1620 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { 1621 if (this != &from) InternalSwap(&from); 1622 } else { 1623 CopyFrom(from); 1624 } 1625 return *this; 1626 } 1627 #endif 1628 static const Transaction& default_instance(); 1629 1630 static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY 1631 static inline const Transaction* internal_default_instance() { 1632 return reinterpret_cast<const Transaction*>( 1633 &_Transaction_default_instance_); 1634 } 1635 static constexpr int kIndexInFileMessages = 1636 11; 1637 1638 void Swap(Transaction* other); 1639 friend void swap(Transaction& a, Transaction& b) { 1640 a.Swap(&b); 1641 } 1642 1643 // implements Message ---------------------------------------------- 1644 1645 inline Transaction* New() const final { 1646 return CreateMaybeMessage<Transaction>(NULL); 1647 } 1648 1649 Transaction* New(::google::protobuf::Arena* arena) const final { 1650 return CreateMaybeMessage<Transaction>(arena); 1651 } 1652 void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from) 1653 final; 1654 void CopyFrom(const Transaction& from); 1655 void MergeFrom(const Transaction& from); 1656 void Clear() final; 1657 bool IsInitialized() const final; 1658 1659 size_t ByteSizeLong() const final; 1660 bool MergePartialFromCodedStream( 1661 ::google::protobuf::io::CodedInputStream* input) final; 1662 void SerializeWithCachedSizes( 1663 ::google::protobuf::io::CodedOutputStream* output) const final; 1664 void DiscardUnknownFields(); 1665 int GetCachedSize() const final { return _cached_size_.Get(); } 1666 1667 private: 1668 void SharedCtor(); 1669 void SharedDtor(); 1670 void SetCachedSize(int size) const; 1671 void InternalSwap(Transaction* other); 1672 private: 1673 inline ::google::protobuf::Arena* GetArenaNoVirtual() const { 1674 return NULL; 1675 } 1676 inline void* MaybeArenaPtr() const { 1677 return NULL; 1678 } 1679 public: 1680 1681 ::std::string GetTypeName() const final; 1682 1683 // nested types ---------------------------------------------------- 1684 1685 // accessors ------------------------------------------------------- 1686 1687 int observed_timestamps_size() const; 1688 void clear_observed_timestamps(); 1689 static const int kObservedTimestampsFieldNumber = 8; 1690 ::cockroach::roachpb::ObservedTimestamp* mutable_observed_timestamps(int index); 1691 ::google::protobuf::RepeatedPtrField< ::cockroach::roachpb::ObservedTimestamp >* 1692 mutable_observed_timestamps(); 1693 const ::cockroach::roachpb::ObservedTimestamp& observed_timestamps(int index) const; 1694 ::cockroach::roachpb::ObservedTimestamp* add_observed_timestamps(); 1695 const ::google::protobuf::RepeatedPtrField< ::cockroach::roachpb::ObservedTimestamp >& 1696 observed_timestamps() const; 1697 1698 int lock_spans_size() const; 1699 void clear_lock_spans(); 1700 static const int kLockSpansFieldNumber = 11; 1701 ::cockroach::roachpb::Span* mutable_lock_spans(int index); 1702 ::google::protobuf::RepeatedPtrField< ::cockroach::roachpb::Span >* 1703 mutable_lock_spans(); 1704 const ::cockroach::roachpb::Span& lock_spans(int index) const; 1705 ::cockroach::roachpb::Span* add_lock_spans(); 1706 const ::google::protobuf::RepeatedPtrField< ::cockroach::roachpb::Span >& 1707 lock_spans() const; 1708 1709 int in_flight_writes_size() const; 1710 void clear_in_flight_writes(); 1711 static const int kInFlightWritesFieldNumber = 17; 1712 ::cockroach::roachpb::SequencedWrite* mutable_in_flight_writes(int index); 1713 ::google::protobuf::RepeatedPtrField< ::cockroach::roachpb::SequencedWrite >* 1714 mutable_in_flight_writes(); 1715 const ::cockroach::roachpb::SequencedWrite& in_flight_writes(int index) const; 1716 ::cockroach::roachpb::SequencedWrite* add_in_flight_writes(); 1717 const ::google::protobuf::RepeatedPtrField< ::cockroach::roachpb::SequencedWrite >& 1718 in_flight_writes() const; 1719 1720 int ignored_seqnums_size() const; 1721 void clear_ignored_seqnums(); 1722 static const int kIgnoredSeqnumsFieldNumber = 18; 1723 ::cockroach::storage::enginepb::IgnoredSeqNumRange* mutable_ignored_seqnums(int index); 1724 ::google::protobuf::RepeatedPtrField< ::cockroach::storage::enginepb::IgnoredSeqNumRange >* 1725 mutable_ignored_seqnums(); 1726 const ::cockroach::storage::enginepb::IgnoredSeqNumRange& ignored_seqnums(int index) const; 1727 ::cockroach::storage::enginepb::IgnoredSeqNumRange* add_ignored_seqnums(); 1728 const ::google::protobuf::RepeatedPtrField< ::cockroach::storage::enginepb::IgnoredSeqNumRange >& 1729 ignored_seqnums() const; 1730 1731 // string name = 2; 1732 void clear_name(); 1733 static const int kNameFieldNumber = 2; 1734 const ::std::string& name() const; 1735 void set_name(const ::std::string& value); 1736 #if LANG_CXX11 1737 void set_name(::std::string&& value); 1738 #endif 1739 void set_name(const char* value); 1740 void set_name(const char* value, size_t size); 1741 ::std::string* mutable_name(); 1742 ::std::string* release_name(); 1743 void set_allocated_name(::std::string* name); 1744 1745 bool has_meta() const; 1746 void clear_meta(); 1747 static const int kMetaFieldNumber = 1; 1748 private: 1749 const ::cockroach::storage::enginepb::TxnMeta& _internal_meta() const; 1750 public: 1751 const ::cockroach::storage::enginepb::TxnMeta& meta() const; 1752 ::cockroach::storage::enginepb::TxnMeta* release_meta(); 1753 ::cockroach::storage::enginepb::TxnMeta* mutable_meta(); 1754 void set_allocated_meta(::cockroach::storage::enginepb::TxnMeta* meta); 1755 1756 bool has_last_heartbeat() const; 1757 void clear_last_heartbeat(); 1758 static const int kLastHeartbeatFieldNumber = 5; 1759 private: 1760 const ::cockroach::util::hlc::Timestamp& _internal_last_heartbeat() const; 1761 public: 1762 const ::cockroach::util::hlc::Timestamp& last_heartbeat() const; 1763 ::cockroach::util::hlc::Timestamp* release_last_heartbeat(); 1764 ::cockroach::util::hlc::Timestamp* mutable_last_heartbeat(); 1765 void set_allocated_last_heartbeat(::cockroach::util::hlc::Timestamp* last_heartbeat); 1766 1767 bool has_deprecated_orig_timestamp() const; 1768 void clear_deprecated_orig_timestamp(); 1769 static const int kDeprecatedOrigTimestampFieldNumber = 6; 1770 private: 1771 const ::cockroach::util::hlc::Timestamp& _internal_deprecated_orig_timestamp() const; 1772 public: 1773 const ::cockroach::util::hlc::Timestamp& deprecated_orig_timestamp() const; 1774 ::cockroach::util::hlc::Timestamp* release_deprecated_orig_timestamp(); 1775 ::cockroach::util::hlc::Timestamp* mutable_deprecated_orig_timestamp(); 1776 void set_allocated_deprecated_orig_timestamp(::cockroach::util::hlc::Timestamp* deprecated_orig_timestamp); 1777 1778 bool has_max_timestamp() const; 1779 void clear_max_timestamp(); 1780 static const int kMaxTimestampFieldNumber = 7; 1781 private: 1782 const ::cockroach::util::hlc::Timestamp& _internal_max_timestamp() const; 1783 public: 1784 const ::cockroach::util::hlc::Timestamp& max_timestamp() const; 1785 ::cockroach::util::hlc::Timestamp* release_max_timestamp(); 1786 ::cockroach::util::hlc::Timestamp* mutable_max_timestamp(); 1787 void set_allocated_max_timestamp(::cockroach::util::hlc::Timestamp* max_timestamp); 1788 1789 bool has_read_timestamp() const; 1790 void clear_read_timestamp(); 1791 static const int kReadTimestampFieldNumber = 15; 1792 private: 1793 const ::cockroach::util::hlc::Timestamp& _internal_read_timestamp() const; 1794 public: 1795 const ::cockroach::util::hlc::Timestamp& read_timestamp() const; 1796 ::cockroach::util::hlc::Timestamp* release_read_timestamp(); 1797 ::cockroach::util::hlc::Timestamp* mutable_read_timestamp(); 1798 void set_allocated_read_timestamp(::cockroach::util::hlc::Timestamp* read_timestamp); 1799 1800 // .cockroach.roachpb.TransactionStatus status = 4; 1801 void clear_status(); 1802 static const int kStatusFieldNumber = 4; 1803 ::cockroach::roachpb::TransactionStatus status() const; 1804 void set_status(::cockroach::roachpb::TransactionStatus value); 1805 1806 // bool commit_timestamp_fixed = 16; 1807 void clear_commit_timestamp_fixed(); 1808 static const int kCommitTimestampFixedFieldNumber = 16; 1809 bool commit_timestamp_fixed() const; 1810 void set_commit_timestamp_fixed(bool value); 1811 1812 // bool write_too_old = 12; 1813 void clear_write_too_old(); 1814 static const int kWriteTooOldFieldNumber = 12; 1815 bool write_too_old() const; 1816 void set_write_too_old(bool value); 1817 1818 // @@protoc_insertion_point(class_scope:cockroach.roachpb.Transaction) 1819 private: 1820 1821 ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; 1822 ::google::protobuf::RepeatedPtrField< ::cockroach::roachpb::ObservedTimestamp > observed_timestamps_; 1823 ::google::protobuf::RepeatedPtrField< ::cockroach::roachpb::Span > lock_spans_; 1824 ::google::protobuf::RepeatedPtrField< ::cockroach::roachpb::SequencedWrite > in_flight_writes_; 1825 ::google::protobuf::RepeatedPtrField< ::cockroach::storage::enginepb::IgnoredSeqNumRange > ignored_seqnums_; 1826 ::google::protobuf::internal::ArenaStringPtr name_; 1827 ::cockroach::storage::enginepb::TxnMeta* meta_; 1828 ::cockroach::util::hlc::Timestamp* last_heartbeat_; 1829 ::cockroach::util::hlc::Timestamp* deprecated_orig_timestamp_; 1830 ::cockroach::util::hlc::Timestamp* max_timestamp_; 1831 ::cockroach::util::hlc::Timestamp* read_timestamp_; 1832 int status_; 1833 bool commit_timestamp_fixed_; 1834 bool write_too_old_; 1835 mutable ::google::protobuf::internal::CachedSize _cached_size_; 1836 friend struct ::protobuf_roachpb_2fdata_2eproto::TableStruct; 1837 }; 1838 // ------------------------------------------------------------------- 1839 1840 class TransactionRecord : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:cockroach.roachpb.TransactionRecord) */ { 1841 public: 1842 TransactionRecord(); 1843 virtual ~TransactionRecord(); 1844 1845 TransactionRecord(const TransactionRecord& from); 1846 1847 inline TransactionRecord& operator=(const TransactionRecord& from) { 1848 CopyFrom(from); 1849 return *this; 1850 } 1851 #if LANG_CXX11 1852 TransactionRecord(TransactionRecord&& from) noexcept 1853 : TransactionRecord() { 1854 *this = ::std::move(from); 1855 } 1856 1857 inline TransactionRecord& operator=(TransactionRecord&& from) noexcept { 1858 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { 1859 if (this != &from) InternalSwap(&from); 1860 } else { 1861 CopyFrom(from); 1862 } 1863 return *this; 1864 } 1865 #endif 1866 static const TransactionRecord& default_instance(); 1867 1868 static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY 1869 static inline const TransactionRecord* internal_default_instance() { 1870 return reinterpret_cast<const TransactionRecord*>( 1871 &_TransactionRecord_default_instance_); 1872 } 1873 static constexpr int kIndexInFileMessages = 1874 12; 1875 1876 void Swap(TransactionRecord* other); 1877 friend void swap(TransactionRecord& a, TransactionRecord& b) { 1878 a.Swap(&b); 1879 } 1880 1881 // implements Message ---------------------------------------------- 1882 1883 inline TransactionRecord* New() const final { 1884 return CreateMaybeMessage<TransactionRecord>(NULL); 1885 } 1886 1887 TransactionRecord* New(::google::protobuf::Arena* arena) const final { 1888 return CreateMaybeMessage<TransactionRecord>(arena); 1889 } 1890 void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from) 1891 final; 1892 void CopyFrom(const TransactionRecord& from); 1893 void MergeFrom(const TransactionRecord& from); 1894 void Clear() final; 1895 bool IsInitialized() const final; 1896 1897 size_t ByteSizeLong() const final; 1898 bool MergePartialFromCodedStream( 1899 ::google::protobuf::io::CodedInputStream* input) final; 1900 void SerializeWithCachedSizes( 1901 ::google::protobuf::io::CodedOutputStream* output) const final; 1902 void DiscardUnknownFields(); 1903 int GetCachedSize() const final { return _cached_size_.Get(); } 1904 1905 private: 1906 void SharedCtor(); 1907 void SharedDtor(); 1908 void SetCachedSize(int size) const; 1909 void InternalSwap(TransactionRecord* other); 1910 private: 1911 inline ::google::protobuf::Arena* GetArenaNoVirtual() const { 1912 return NULL; 1913 } 1914 inline void* MaybeArenaPtr() const { 1915 return NULL; 1916 } 1917 public: 1918 1919 ::std::string GetTypeName() const final; 1920 1921 // nested types ---------------------------------------------------- 1922 1923 // accessors ------------------------------------------------------- 1924 1925 int lock_spans_size() const; 1926 void clear_lock_spans(); 1927 static const int kLockSpansFieldNumber = 11; 1928 ::cockroach::roachpb::Span* mutable_lock_spans(int index); 1929 ::google::protobuf::RepeatedPtrField< ::cockroach::roachpb::Span >* 1930 mutable_lock_spans(); 1931 const ::cockroach::roachpb::Span& lock_spans(int index) const; 1932 ::cockroach::roachpb::Span* add_lock_spans(); 1933 const ::google::protobuf::RepeatedPtrField< ::cockroach::roachpb::Span >& 1934 lock_spans() const; 1935 1936 int in_flight_writes_size() const; 1937 void clear_in_flight_writes(); 1938 static const int kInFlightWritesFieldNumber = 17; 1939 ::cockroach::roachpb::SequencedWrite* mutable_in_flight_writes(int index); 1940 ::google::protobuf::RepeatedPtrField< ::cockroach::roachpb::SequencedWrite >* 1941 mutable_in_flight_writes(); 1942 const ::cockroach::roachpb::SequencedWrite& in_flight_writes(int index) const; 1943 ::cockroach::roachpb::SequencedWrite* add_in_flight_writes(); 1944 const ::google::protobuf::RepeatedPtrField< ::cockroach::roachpb::SequencedWrite >& 1945 in_flight_writes() const; 1946 1947 int ignored_seqnums_size() const; 1948 void clear_ignored_seqnums(); 1949 static const int kIgnoredSeqnumsFieldNumber = 18; 1950 ::cockroach::storage::enginepb::IgnoredSeqNumRange* mutable_ignored_seqnums(int index); 1951 ::google::protobuf::RepeatedPtrField< ::cockroach::storage::enginepb::IgnoredSeqNumRange >* 1952 mutable_ignored_seqnums(); 1953 const ::cockroach::storage::enginepb::IgnoredSeqNumRange& ignored_seqnums(int index) const; 1954 ::cockroach::storage::enginepb::IgnoredSeqNumRange* add_ignored_seqnums(); 1955 const ::google::protobuf::RepeatedPtrField< ::cockroach::storage::enginepb::IgnoredSeqNumRange >& 1956 ignored_seqnums() const; 1957 1958 bool has_meta() const; 1959 void clear_meta(); 1960 static const int kMetaFieldNumber = 1; 1961 private: 1962 const ::cockroach::storage::enginepb::TxnMeta& _internal_meta() const; 1963 public: 1964 const ::cockroach::storage::enginepb::TxnMeta& meta() const; 1965 ::cockroach::storage::enginepb::TxnMeta* release_meta(); 1966 ::cockroach::storage::enginepb::TxnMeta* mutable_meta(); 1967 void set_allocated_meta(::cockroach::storage::enginepb::TxnMeta* meta); 1968 1969 bool has_last_heartbeat() const; 1970 void clear_last_heartbeat(); 1971 static const int kLastHeartbeatFieldNumber = 5; 1972 private: 1973 const ::cockroach::util::hlc::Timestamp& _internal_last_heartbeat() const; 1974 public: 1975 const ::cockroach::util::hlc::Timestamp& last_heartbeat() const; 1976 ::cockroach::util::hlc::Timestamp* release_last_heartbeat(); 1977 ::cockroach::util::hlc::Timestamp* mutable_last_heartbeat(); 1978 void set_allocated_last_heartbeat(::cockroach::util::hlc::Timestamp* last_heartbeat); 1979 1980 // .cockroach.roachpb.TransactionStatus status = 4; 1981 void clear_status(); 1982 static const int kStatusFieldNumber = 4; 1983 ::cockroach::roachpb::TransactionStatus status() const; 1984 void set_status(::cockroach::roachpb::TransactionStatus value); 1985 1986 // @@protoc_insertion_point(class_scope:cockroach.roachpb.TransactionRecord) 1987 private: 1988 1989 ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; 1990 ::google::protobuf::RepeatedPtrField< ::cockroach::roachpb::Span > lock_spans_; 1991 ::google::protobuf::RepeatedPtrField< ::cockroach::roachpb::SequencedWrite > in_flight_writes_; 1992 ::google::protobuf::RepeatedPtrField< ::cockroach::storage::enginepb::IgnoredSeqNumRange > ignored_seqnums_; 1993 ::cockroach::storage::enginepb::TxnMeta* meta_; 1994 ::cockroach::util::hlc::Timestamp* last_heartbeat_; 1995 int status_; 1996 mutable ::google::protobuf::internal::CachedSize _cached_size_; 1997 friend struct ::protobuf_roachpb_2fdata_2eproto::TableStruct; 1998 }; 1999 // ------------------------------------------------------------------- 2000 2001 class Intent_SingleKeySpan : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:cockroach.roachpb.Intent.SingleKeySpan) */ { 2002 public: 2003 Intent_SingleKeySpan(); 2004 virtual ~Intent_SingleKeySpan(); 2005 2006 Intent_SingleKeySpan(const Intent_SingleKeySpan& from); 2007 2008 inline Intent_SingleKeySpan& operator=(const Intent_SingleKeySpan& from) { 2009 CopyFrom(from); 2010 return *this; 2011 } 2012 #if LANG_CXX11 2013 Intent_SingleKeySpan(Intent_SingleKeySpan&& from) noexcept 2014 : Intent_SingleKeySpan() { 2015 *this = ::std::move(from); 2016 } 2017 2018 inline Intent_SingleKeySpan& operator=(Intent_SingleKeySpan&& from) noexcept { 2019 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { 2020 if (this != &from) InternalSwap(&from); 2021 } else { 2022 CopyFrom(from); 2023 } 2024 return *this; 2025 } 2026 #endif 2027 static const Intent_SingleKeySpan& default_instance(); 2028 2029 static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY 2030 static inline const Intent_SingleKeySpan* internal_default_instance() { 2031 return reinterpret_cast<const Intent_SingleKeySpan*>( 2032 &_Intent_SingleKeySpan_default_instance_); 2033 } 2034 static constexpr int kIndexInFileMessages = 2035 13; 2036 2037 void Swap(Intent_SingleKeySpan* other); 2038 friend void swap(Intent_SingleKeySpan& a, Intent_SingleKeySpan& b) { 2039 a.Swap(&b); 2040 } 2041 2042 // implements Message ---------------------------------------------- 2043 2044 inline Intent_SingleKeySpan* New() const final { 2045 return CreateMaybeMessage<Intent_SingleKeySpan>(NULL); 2046 } 2047 2048 Intent_SingleKeySpan* New(::google::protobuf::Arena* arena) const final { 2049 return CreateMaybeMessage<Intent_SingleKeySpan>(arena); 2050 } 2051 void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from) 2052 final; 2053 void CopyFrom(const Intent_SingleKeySpan& from); 2054 void MergeFrom(const Intent_SingleKeySpan& from); 2055 void Clear() final; 2056 bool IsInitialized() const final; 2057 2058 size_t ByteSizeLong() const final; 2059 bool MergePartialFromCodedStream( 2060 ::google::protobuf::io::CodedInputStream* input) final; 2061 void SerializeWithCachedSizes( 2062 ::google::protobuf::io::CodedOutputStream* output) const final; 2063 void DiscardUnknownFields(); 2064 int GetCachedSize() const final { return _cached_size_.Get(); } 2065 2066 private: 2067 void SharedCtor(); 2068 void SharedDtor(); 2069 void SetCachedSize(int size) const; 2070 void InternalSwap(Intent_SingleKeySpan* other); 2071 private: 2072 inline ::google::protobuf::Arena* GetArenaNoVirtual() const { 2073 return NULL; 2074 } 2075 inline void* MaybeArenaPtr() const { 2076 return NULL; 2077 } 2078 public: 2079 2080 ::std::string GetTypeName() const final; 2081 2082 // nested types ---------------------------------------------------- 2083 2084 // accessors ------------------------------------------------------- 2085 2086 void clear_key(); 2087 static const int kKeyFieldNumber = 3; 2088 const ::std::string& key() const; 2089 void set_key(const ::std::string& value); 2090 #if LANG_CXX11 2091 void set_key(::std::string&& value); 2092 #endif 2093 void set_key(const char* value); 2094 void set_key(const void* value, size_t size); 2095 ::std::string* mutable_key(); 2096 ::std::string* release_key(); 2097 void set_allocated_key(::std::string* key); 2098 2099 // @@protoc_insertion_point(class_scope:cockroach.roachpb.Intent.SingleKeySpan) 2100 private: 2101 2102 ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; 2103 ::google::protobuf::internal::ArenaStringPtr key_; 2104 mutable ::google::protobuf::internal::CachedSize _cached_size_; 2105 friend struct ::protobuf_roachpb_2fdata_2eproto::TableStruct; 2106 }; 2107 // ------------------------------------------------------------------- 2108 2109 class Intent : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:cockroach.roachpb.Intent) */ { 2110 public: 2111 Intent(); 2112 virtual ~Intent(); 2113 2114 Intent(const Intent& from); 2115 2116 inline Intent& operator=(const Intent& from) { 2117 CopyFrom(from); 2118 return *this; 2119 } 2120 #if LANG_CXX11 2121 Intent(Intent&& from) noexcept 2122 : Intent() { 2123 *this = ::std::move(from); 2124 } 2125 2126 inline Intent& operator=(Intent&& from) noexcept { 2127 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { 2128 if (this != &from) InternalSwap(&from); 2129 } else { 2130 CopyFrom(from); 2131 } 2132 return *this; 2133 } 2134 #endif 2135 static const Intent& default_instance(); 2136 2137 static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY 2138 static inline const Intent* internal_default_instance() { 2139 return reinterpret_cast<const Intent*>( 2140 &_Intent_default_instance_); 2141 } 2142 static constexpr int kIndexInFileMessages = 2143 14; 2144 2145 void Swap(Intent* other); 2146 friend void swap(Intent& a, Intent& b) { 2147 a.Swap(&b); 2148 } 2149 2150 // implements Message ---------------------------------------------- 2151 2152 inline Intent* New() const final { 2153 return CreateMaybeMessage<Intent>(NULL); 2154 } 2155 2156 Intent* New(::google::protobuf::Arena* arena) const final { 2157 return CreateMaybeMessage<Intent>(arena); 2158 } 2159 void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from) 2160 final; 2161 void CopyFrom(const Intent& from); 2162 void MergeFrom(const Intent& from); 2163 void Clear() final; 2164 bool IsInitialized() const final; 2165 2166 size_t ByteSizeLong() const final; 2167 bool MergePartialFromCodedStream( 2168 ::google::protobuf::io::CodedInputStream* input) final; 2169 void SerializeWithCachedSizes( 2170 ::google::protobuf::io::CodedOutputStream* output) const final; 2171 void DiscardUnknownFields(); 2172 int GetCachedSize() const final { return _cached_size_.Get(); } 2173 2174 private: 2175 void SharedCtor(); 2176 void SharedDtor(); 2177 void SetCachedSize(int size) const; 2178 void InternalSwap(Intent* other); 2179 private: 2180 inline ::google::protobuf::Arena* GetArenaNoVirtual() const { 2181 return NULL; 2182 } 2183 inline void* MaybeArenaPtr() const { 2184 return NULL; 2185 } 2186 public: 2187 2188 ::std::string GetTypeName() const final; 2189 2190 // nested types ---------------------------------------------------- 2191 2192 typedef Intent_SingleKeySpan SingleKeySpan; 2193 2194 // accessors ------------------------------------------------------- 2195 2196 bool has_single_key_span() const; 2197 void clear_single_key_span(); 2198 static const int kSingleKeySpanFieldNumber = 1; 2199 private: 2200 const ::cockroach::roachpb::Intent_SingleKeySpan& _internal_single_key_span() const; 2201 public: 2202 const ::cockroach::roachpb::Intent_SingleKeySpan& single_key_span() const; 2203 ::cockroach::roachpb::Intent_SingleKeySpan* release_single_key_span(); 2204 ::cockroach::roachpb::Intent_SingleKeySpan* mutable_single_key_span(); 2205 void set_allocated_single_key_span(::cockroach::roachpb::Intent_SingleKeySpan* single_key_span); 2206 2207 bool has_txn() const; 2208 void clear_txn(); 2209 static const int kTxnFieldNumber = 2; 2210 private: 2211 const ::cockroach::storage::enginepb::TxnMeta& _internal_txn() const; 2212 public: 2213 const ::cockroach::storage::enginepb::TxnMeta& txn() const; 2214 ::cockroach::storage::enginepb::TxnMeta* release_txn(); 2215 ::cockroach::storage::enginepb::TxnMeta* mutable_txn(); 2216 void set_allocated_txn(::cockroach::storage::enginepb::TxnMeta* txn); 2217 2218 // @@protoc_insertion_point(class_scope:cockroach.roachpb.Intent) 2219 private: 2220 2221 ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; 2222 ::cockroach::roachpb::Intent_SingleKeySpan* single_key_span_; 2223 ::cockroach::storage::enginepb::TxnMeta* txn_; 2224 mutable ::google::protobuf::internal::CachedSize _cached_size_; 2225 friend struct ::protobuf_roachpb_2fdata_2eproto::TableStruct; 2226 }; 2227 // ------------------------------------------------------------------- 2228 2229 class LockAcquisition : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:cockroach.roachpb.LockAcquisition) */ { 2230 public: 2231 LockAcquisition(); 2232 virtual ~LockAcquisition(); 2233 2234 LockAcquisition(const LockAcquisition& from); 2235 2236 inline LockAcquisition& operator=(const LockAcquisition& from) { 2237 CopyFrom(from); 2238 return *this; 2239 } 2240 #if LANG_CXX11 2241 LockAcquisition(LockAcquisition&& from) noexcept 2242 : LockAcquisition() { 2243 *this = ::std::move(from); 2244 } 2245 2246 inline LockAcquisition& operator=(LockAcquisition&& from) noexcept { 2247 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { 2248 if (this != &from) InternalSwap(&from); 2249 } else { 2250 CopyFrom(from); 2251 } 2252 return *this; 2253 } 2254 #endif 2255 static const LockAcquisition& default_instance(); 2256 2257 static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY 2258 static inline const LockAcquisition* internal_default_instance() { 2259 return reinterpret_cast<const LockAcquisition*>( 2260 &_LockAcquisition_default_instance_); 2261 } 2262 static constexpr int kIndexInFileMessages = 2263 15; 2264 2265 void Swap(LockAcquisition* other); 2266 friend void swap(LockAcquisition& a, LockAcquisition& b) { 2267 a.Swap(&b); 2268 } 2269 2270 // implements Message ---------------------------------------------- 2271 2272 inline LockAcquisition* New() const final { 2273 return CreateMaybeMessage<LockAcquisition>(NULL); 2274 } 2275 2276 LockAcquisition* New(::google::protobuf::Arena* arena) const final { 2277 return CreateMaybeMessage<LockAcquisition>(arena); 2278 } 2279 void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from) 2280 final; 2281 void CopyFrom(const LockAcquisition& from); 2282 void MergeFrom(const LockAcquisition& from); 2283 void Clear() final; 2284 bool IsInitialized() const final; 2285 2286 size_t ByteSizeLong() const final; 2287 bool MergePartialFromCodedStream( 2288 ::google::protobuf::io::CodedInputStream* input) final; 2289 void SerializeWithCachedSizes( 2290 ::google::protobuf::io::CodedOutputStream* output) const final; 2291 void DiscardUnknownFields(); 2292 int GetCachedSize() const final { return _cached_size_.Get(); } 2293 2294 private: 2295 void SharedCtor(); 2296 void SharedDtor(); 2297 void SetCachedSize(int size) const; 2298 void InternalSwap(LockAcquisition* other); 2299 private: 2300 inline ::google::protobuf::Arena* GetArenaNoVirtual() const { 2301 return NULL; 2302 } 2303 inline void* MaybeArenaPtr() const { 2304 return NULL; 2305 } 2306 public: 2307 2308 ::std::string GetTypeName() const final; 2309 2310 // nested types ---------------------------------------------------- 2311 2312 // accessors ------------------------------------------------------- 2313 2314 bool has_span() const; 2315 void clear_span(); 2316 static const int kSpanFieldNumber = 1; 2317 private: 2318 const ::cockroach::roachpb::Span& _internal_span() const; 2319 public: 2320 const ::cockroach::roachpb::Span& span() const; 2321 ::cockroach::roachpb::Span* release_span(); 2322 ::cockroach::roachpb::Span* mutable_span(); 2323 void set_allocated_span(::cockroach::roachpb::Span* span); 2324 2325 bool has_txn() const; 2326 void clear_txn(); 2327 static const int kTxnFieldNumber = 2; 2328 private: 2329 const ::cockroach::storage::enginepb::TxnMeta& _internal_txn() const; 2330 public: 2331 const ::cockroach::storage::enginepb::TxnMeta& txn() const; 2332 ::cockroach::storage::enginepb::TxnMeta* release_txn(); 2333 ::cockroach::storage::enginepb::TxnMeta* mutable_txn(); 2334 void set_allocated_txn(::cockroach::storage::enginepb::TxnMeta* txn); 2335 2336 // .cockroach.kv.kvserver.concurrency.lock.Durability durability = 3; 2337 void clear_durability(); 2338 static const int kDurabilityFieldNumber = 3; 2339 ::cockroach::kv::kvserver::concurrency::lock::Durability durability() const; 2340 void set_durability(::cockroach::kv::kvserver::concurrency::lock::Durability value); 2341 2342 // @@protoc_insertion_point(class_scope:cockroach.roachpb.LockAcquisition) 2343 private: 2344 2345 ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; 2346 ::cockroach::roachpb::Span* span_; 2347 ::cockroach::storage::enginepb::TxnMeta* txn_; 2348 int durability_; 2349 mutable ::google::protobuf::internal::CachedSize _cached_size_; 2350 friend struct ::protobuf_roachpb_2fdata_2eproto::TableStruct; 2351 }; 2352 // ------------------------------------------------------------------- 2353 2354 class LockUpdate : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:cockroach.roachpb.LockUpdate) */ { 2355 public: 2356 LockUpdate(); 2357 virtual ~LockUpdate(); 2358 2359 LockUpdate(const LockUpdate& from); 2360 2361 inline LockUpdate& operator=(const LockUpdate& from) { 2362 CopyFrom(from); 2363 return *this; 2364 } 2365 #if LANG_CXX11 2366 LockUpdate(LockUpdate&& from) noexcept 2367 : LockUpdate() { 2368 *this = ::std::move(from); 2369 } 2370 2371 inline LockUpdate& operator=(LockUpdate&& from) noexcept { 2372 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { 2373 if (this != &from) InternalSwap(&from); 2374 } else { 2375 CopyFrom(from); 2376 } 2377 return *this; 2378 } 2379 #endif 2380 static const LockUpdate& default_instance(); 2381 2382 static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY 2383 static inline const LockUpdate* internal_default_instance() { 2384 return reinterpret_cast<const LockUpdate*>( 2385 &_LockUpdate_default_instance_); 2386 } 2387 static constexpr int kIndexInFileMessages = 2388 16; 2389 2390 void Swap(LockUpdate* other); 2391 friend void swap(LockUpdate& a, LockUpdate& b) { 2392 a.Swap(&b); 2393 } 2394 2395 // implements Message ---------------------------------------------- 2396 2397 inline LockUpdate* New() const final { 2398 return CreateMaybeMessage<LockUpdate>(NULL); 2399 } 2400 2401 LockUpdate* New(::google::protobuf::Arena* arena) const final { 2402 return CreateMaybeMessage<LockUpdate>(arena); 2403 } 2404 void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from) 2405 final; 2406 void CopyFrom(const LockUpdate& from); 2407 void MergeFrom(const LockUpdate& from); 2408 void Clear() final; 2409 bool IsInitialized() const final; 2410 2411 size_t ByteSizeLong() const final; 2412 bool MergePartialFromCodedStream( 2413 ::google::protobuf::io::CodedInputStream* input) final; 2414 void SerializeWithCachedSizes( 2415 ::google::protobuf::io::CodedOutputStream* output) const final; 2416 void DiscardUnknownFields(); 2417 int GetCachedSize() const final { return _cached_size_.Get(); } 2418 2419 private: 2420 void SharedCtor(); 2421 void SharedDtor(); 2422 void SetCachedSize(int size) const; 2423 void InternalSwap(LockUpdate* other); 2424 private: 2425 inline ::google::protobuf::Arena* GetArenaNoVirtual() const { 2426 return NULL; 2427 } 2428 inline void* MaybeArenaPtr() const { 2429 return NULL; 2430 } 2431 public: 2432 2433 ::std::string GetTypeName() const final; 2434 2435 // nested types ---------------------------------------------------- 2436 2437 // accessors ------------------------------------------------------- 2438 2439 int ignored_seqnums_size() const; 2440 void clear_ignored_seqnums(); 2441 static const int kIgnoredSeqnumsFieldNumber = 4; 2442 ::cockroach::storage::enginepb::IgnoredSeqNumRange* mutable_ignored_seqnums(int index); 2443 ::google::protobuf::RepeatedPtrField< ::cockroach::storage::enginepb::IgnoredSeqNumRange >* 2444 mutable_ignored_seqnums(); 2445 const ::cockroach::storage::enginepb::IgnoredSeqNumRange& ignored_seqnums(int index) const; 2446 ::cockroach::storage::enginepb::IgnoredSeqNumRange* add_ignored_seqnums(); 2447 const ::google::protobuf::RepeatedPtrField< ::cockroach::storage::enginepb::IgnoredSeqNumRange >& 2448 ignored_seqnums() const; 2449 2450 bool has_span() const; 2451 void clear_span(); 2452 static const int kSpanFieldNumber = 1; 2453 private: 2454 const ::cockroach::roachpb::Span& _internal_span() const; 2455 public: 2456 const ::cockroach::roachpb::Span& span() const; 2457 ::cockroach::roachpb::Span* release_span(); 2458 ::cockroach::roachpb::Span* mutable_span(); 2459 void set_allocated_span(::cockroach::roachpb::Span* span); 2460 2461 bool has_txn() const; 2462 void clear_txn(); 2463 static const int kTxnFieldNumber = 2; 2464 private: 2465 const ::cockroach::storage::enginepb::TxnMeta& _internal_txn() const; 2466 public: 2467 const ::cockroach::storage::enginepb::TxnMeta& txn() const; 2468 ::cockroach::storage::enginepb::TxnMeta* release_txn(); 2469 ::cockroach::storage::enginepb::TxnMeta* mutable_txn(); 2470 void set_allocated_txn(::cockroach::storage::enginepb::TxnMeta* txn); 2471 2472 // .cockroach.roachpb.TransactionStatus status = 3; 2473 void clear_status(); 2474 static const int kStatusFieldNumber = 3; 2475 ::cockroach::roachpb::TransactionStatus status() const; 2476 void set_status(::cockroach::roachpb::TransactionStatus value); 2477 2478 // @@protoc_insertion_point(class_scope:cockroach.roachpb.LockUpdate) 2479 private: 2480 2481 ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; 2482 ::google::protobuf::RepeatedPtrField< ::cockroach::storage::enginepb::IgnoredSeqNumRange > ignored_seqnums_; 2483 ::cockroach::roachpb::Span* span_; 2484 ::cockroach::storage::enginepb::TxnMeta* txn_; 2485 int status_; 2486 mutable ::google::protobuf::internal::CachedSize _cached_size_; 2487 friend struct ::protobuf_roachpb_2fdata_2eproto::TableStruct; 2488 }; 2489 // ------------------------------------------------------------------- 2490 2491 class SequencedWrite : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:cockroach.roachpb.SequencedWrite) */ { 2492 public: 2493 SequencedWrite(); 2494 virtual ~SequencedWrite(); 2495 2496 SequencedWrite(const SequencedWrite& from); 2497 2498 inline SequencedWrite& operator=(const SequencedWrite& from) { 2499 CopyFrom(from); 2500 return *this; 2501 } 2502 #if LANG_CXX11 2503 SequencedWrite(SequencedWrite&& from) noexcept 2504 : SequencedWrite() { 2505 *this = ::std::move(from); 2506 } 2507 2508 inline SequencedWrite& operator=(SequencedWrite&& from) noexcept { 2509 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { 2510 if (this != &from) InternalSwap(&from); 2511 } else { 2512 CopyFrom(from); 2513 } 2514 return *this; 2515 } 2516 #endif 2517 static const SequencedWrite& default_instance(); 2518 2519 static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY 2520 static inline const SequencedWrite* internal_default_instance() { 2521 return reinterpret_cast<const SequencedWrite*>( 2522 &_SequencedWrite_default_instance_); 2523 } 2524 static constexpr int kIndexInFileMessages = 2525 17; 2526 2527 void Swap(SequencedWrite* other); 2528 friend void swap(SequencedWrite& a, SequencedWrite& b) { 2529 a.Swap(&b); 2530 } 2531 2532 // implements Message ---------------------------------------------- 2533 2534 inline SequencedWrite* New() const final { 2535 return CreateMaybeMessage<SequencedWrite>(NULL); 2536 } 2537 2538 SequencedWrite* New(::google::protobuf::Arena* arena) const final { 2539 return CreateMaybeMessage<SequencedWrite>(arena); 2540 } 2541 void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from) 2542 final; 2543 void CopyFrom(const SequencedWrite& from); 2544 void MergeFrom(const SequencedWrite& from); 2545 void Clear() final; 2546 bool IsInitialized() const final; 2547 2548 size_t ByteSizeLong() const final; 2549 bool MergePartialFromCodedStream( 2550 ::google::protobuf::io::CodedInputStream* input) final; 2551 void SerializeWithCachedSizes( 2552 ::google::protobuf::io::CodedOutputStream* output) const final; 2553 void DiscardUnknownFields(); 2554 int GetCachedSize() const final { return _cached_size_.Get(); } 2555 2556 private: 2557 void SharedCtor(); 2558 void SharedDtor(); 2559 void SetCachedSize(int size) const; 2560 void InternalSwap(SequencedWrite* other); 2561 private: 2562 inline ::google::protobuf::Arena* GetArenaNoVirtual() const { 2563 return NULL; 2564 } 2565 inline void* MaybeArenaPtr() const { 2566 return NULL; 2567 } 2568 public: 2569 2570 ::std::string GetTypeName() const final; 2571 2572 // nested types ---------------------------------------------------- 2573 2574 // accessors ------------------------------------------------------- 2575 2576 void clear_key(); 2577 static const int kKeyFieldNumber = 1; 2578 const ::std::string& key() const; 2579 void set_key(const ::std::string& value); 2580 #if LANG_CXX11 2581 void set_key(::std::string&& value); 2582 #endif 2583 void set_key(const char* value); 2584 void set_key(const void* value, size_t size); 2585 ::std::string* mutable_key(); 2586 ::std::string* release_key(); 2587 void set_allocated_key(::std::string* key); 2588 2589 void clear_sequence(); 2590 static const int kSequenceFieldNumber = 2; 2591 ::google::protobuf::int32 sequence() const; 2592 void set_sequence(::google::protobuf::int32 value); 2593 2594 // @@protoc_insertion_point(class_scope:cockroach.roachpb.SequencedWrite) 2595 private: 2596 2597 ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; 2598 ::google::protobuf::internal::ArenaStringPtr key_; 2599 ::google::protobuf::int32 sequence_; 2600 mutable ::google::protobuf::internal::CachedSize _cached_size_; 2601 friend struct ::protobuf_roachpb_2fdata_2eproto::TableStruct; 2602 }; 2603 // ------------------------------------------------------------------- 2604 2605 class Lease : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:cockroach.roachpb.Lease) */ { 2606 public: 2607 Lease(); 2608 virtual ~Lease(); 2609 2610 Lease(const Lease& from); 2611 2612 inline Lease& operator=(const Lease& from) { 2613 CopyFrom(from); 2614 return *this; 2615 } 2616 #if LANG_CXX11 2617 Lease(Lease&& from) noexcept 2618 : Lease() { 2619 *this = ::std::move(from); 2620 } 2621 2622 inline Lease& operator=(Lease&& from) noexcept { 2623 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { 2624 if (this != &from) InternalSwap(&from); 2625 } else { 2626 CopyFrom(from); 2627 } 2628 return *this; 2629 } 2630 #endif 2631 static const Lease& default_instance(); 2632 2633 static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY 2634 static inline const Lease* internal_default_instance() { 2635 return reinterpret_cast<const Lease*>( 2636 &_Lease_default_instance_); 2637 } 2638 static constexpr int kIndexInFileMessages = 2639 18; 2640 2641 void Swap(Lease* other); 2642 friend void swap(Lease& a, Lease& b) { 2643 a.Swap(&b); 2644 } 2645 2646 // implements Message ---------------------------------------------- 2647 2648 inline Lease* New() const final { 2649 return CreateMaybeMessage<Lease>(NULL); 2650 } 2651 2652 Lease* New(::google::protobuf::Arena* arena) const final { 2653 return CreateMaybeMessage<Lease>(arena); 2654 } 2655 void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from) 2656 final; 2657 void CopyFrom(const Lease& from); 2658 void MergeFrom(const Lease& from); 2659 void Clear() final; 2660 bool IsInitialized() const final; 2661 2662 size_t ByteSizeLong() const final; 2663 bool MergePartialFromCodedStream( 2664 ::google::protobuf::io::CodedInputStream* input) final; 2665 void SerializeWithCachedSizes( 2666 ::google::protobuf::io::CodedOutputStream* output) const final; 2667 void DiscardUnknownFields(); 2668 int GetCachedSize() const final { return _cached_size_.Get(); } 2669 2670 private: 2671 void SharedCtor(); 2672 void SharedDtor(); 2673 void SetCachedSize(int size) const; 2674 void InternalSwap(Lease* other); 2675 private: 2676 inline ::google::protobuf::Arena* GetArenaNoVirtual() const { 2677 return NULL; 2678 } 2679 inline void* MaybeArenaPtr() const { 2680 return NULL; 2681 } 2682 public: 2683 2684 ::std::string GetTypeName() const final; 2685 2686 // nested types ---------------------------------------------------- 2687 2688 // accessors ------------------------------------------------------- 2689 2690 bool has_start() const; 2691 void clear_start(); 2692 static const int kStartFieldNumber = 1; 2693 private: 2694 const ::cockroach::util::hlc::Timestamp& _internal_start() const; 2695 public: 2696 const ::cockroach::util::hlc::Timestamp& start() const; 2697 ::cockroach::util::hlc::Timestamp* release_start(); 2698 ::cockroach::util::hlc::Timestamp* mutable_start(); 2699 void set_allocated_start(::cockroach::util::hlc::Timestamp* start); 2700 2701 // .cockroach.util.hlc.Timestamp expiration = 2; 2702 bool has_expiration() const; 2703 void clear_expiration(); 2704 static const int kExpirationFieldNumber = 2; 2705 private: 2706 const ::cockroach::util::hlc::Timestamp& _internal_expiration() const; 2707 public: 2708 const ::cockroach::util::hlc::Timestamp& expiration() const; 2709 ::cockroach::util::hlc::Timestamp* release_expiration(); 2710 ::cockroach::util::hlc::Timestamp* mutable_expiration(); 2711 void set_allocated_expiration(::cockroach::util::hlc::Timestamp* expiration); 2712 2713 bool has_replica() const; 2714 void clear_replica(); 2715 static const int kReplicaFieldNumber = 3; 2716 private: 2717 const ::cockroach::roachpb::ReplicaDescriptor& _internal_replica() const; 2718 public: 2719 const ::cockroach::roachpb::ReplicaDescriptor& replica() const; 2720 ::cockroach::roachpb::ReplicaDescriptor* release_replica(); 2721 ::cockroach::roachpb::ReplicaDescriptor* mutable_replica(); 2722 void set_allocated_replica(::cockroach::roachpb::ReplicaDescriptor* replica); 2723 2724 // .cockroach.util.hlc.Timestamp deprecated_start_stasis = 4; 2725 bool has_deprecated_start_stasis() const; 2726 void clear_deprecated_start_stasis(); 2727 static const int kDeprecatedStartStasisFieldNumber = 4; 2728 private: 2729 const ::cockroach::util::hlc::Timestamp& _internal_deprecated_start_stasis() const; 2730 public: 2731 const ::cockroach::util::hlc::Timestamp& deprecated_start_stasis() const; 2732 ::cockroach::util::hlc::Timestamp* release_deprecated_start_stasis(); 2733 ::cockroach::util::hlc::Timestamp* mutable_deprecated_start_stasis(); 2734 void set_allocated_deprecated_start_stasis(::cockroach::util::hlc::Timestamp* deprecated_start_stasis); 2735 2736 bool has_proposed_ts() const; 2737 void clear_proposed_ts(); 2738 static const int kProposedTsFieldNumber = 5; 2739 private: 2740 const ::cockroach::util::hlc::Timestamp& _internal_proposed_ts() const; 2741 public: 2742 const ::cockroach::util::hlc::Timestamp& proposed_ts() const; 2743 ::cockroach::util::hlc::Timestamp* release_proposed_ts(); 2744 ::cockroach::util::hlc::Timestamp* mutable_proposed_ts(); 2745 void set_allocated_proposed_ts(::cockroach::util::hlc::Timestamp* proposed_ts); 2746 2747 // int64 epoch = 6; 2748 void clear_epoch(); 2749 static const int kEpochFieldNumber = 6; 2750 ::google::protobuf::int64 epoch() const; 2751 void set_epoch(::google::protobuf::int64 value); 2752 2753 void clear_sequence(); 2754 static const int kSequenceFieldNumber = 7; 2755 ::google::protobuf::int64 sequence() const; 2756 void set_sequence(::google::protobuf::int64 value); 2757 2758 // @@protoc_insertion_point(class_scope:cockroach.roachpb.Lease) 2759 private: 2760 2761 ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; 2762 ::cockroach::util::hlc::Timestamp* start_; 2763 ::cockroach::util::hlc::Timestamp* expiration_; 2764 ::cockroach::roachpb::ReplicaDescriptor* replica_; 2765 ::cockroach::util::hlc::Timestamp* deprecated_start_stasis_; 2766 ::cockroach::util::hlc::Timestamp* proposed_ts_; 2767 ::google::protobuf::int64 epoch_; 2768 ::google::protobuf::int64 sequence_; 2769 mutable ::google::protobuf::internal::CachedSize _cached_size_; 2770 friend struct ::protobuf_roachpb_2fdata_2eproto::TableStruct; 2771 }; 2772 // ------------------------------------------------------------------- 2773 2774 class AbortSpanEntry : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:cockroach.roachpb.AbortSpanEntry) */ { 2775 public: 2776 AbortSpanEntry(); 2777 virtual ~AbortSpanEntry(); 2778 2779 AbortSpanEntry(const AbortSpanEntry& from); 2780 2781 inline AbortSpanEntry& operator=(const AbortSpanEntry& from) { 2782 CopyFrom(from); 2783 return *this; 2784 } 2785 #if LANG_CXX11 2786 AbortSpanEntry(AbortSpanEntry&& from) noexcept 2787 : AbortSpanEntry() { 2788 *this = ::std::move(from); 2789 } 2790 2791 inline AbortSpanEntry& operator=(AbortSpanEntry&& from) noexcept { 2792 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { 2793 if (this != &from) InternalSwap(&from); 2794 } else { 2795 CopyFrom(from); 2796 } 2797 return *this; 2798 } 2799 #endif 2800 static const AbortSpanEntry& default_instance(); 2801 2802 static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY 2803 static inline const AbortSpanEntry* internal_default_instance() { 2804 return reinterpret_cast<const AbortSpanEntry*>( 2805 &_AbortSpanEntry_default_instance_); 2806 } 2807 static constexpr int kIndexInFileMessages = 2808 19; 2809 2810 void Swap(AbortSpanEntry* other); 2811 friend void swap(AbortSpanEntry& a, AbortSpanEntry& b) { 2812 a.Swap(&b); 2813 } 2814 2815 // implements Message ---------------------------------------------- 2816 2817 inline AbortSpanEntry* New() const final { 2818 return CreateMaybeMessage<AbortSpanEntry>(NULL); 2819 } 2820 2821 AbortSpanEntry* New(::google::protobuf::Arena* arena) const final { 2822 return CreateMaybeMessage<AbortSpanEntry>(arena); 2823 } 2824 void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from) 2825 final; 2826 void CopyFrom(const AbortSpanEntry& from); 2827 void MergeFrom(const AbortSpanEntry& from); 2828 void Clear() final; 2829 bool IsInitialized() const final; 2830 2831 size_t ByteSizeLong() const final; 2832 bool MergePartialFromCodedStream( 2833 ::google::protobuf::io::CodedInputStream* input) final; 2834 void SerializeWithCachedSizes( 2835 ::google::protobuf::io::CodedOutputStream* output) const final; 2836 void DiscardUnknownFields(); 2837 int GetCachedSize() const final { return _cached_size_.Get(); } 2838 2839 private: 2840 void SharedCtor(); 2841 void SharedDtor(); 2842 void SetCachedSize(int size) const; 2843 void InternalSwap(AbortSpanEntry* other); 2844 private: 2845 inline ::google::protobuf::Arena* GetArenaNoVirtual() const { 2846 return NULL; 2847 } 2848 inline void* MaybeArenaPtr() const { 2849 return NULL; 2850 } 2851 public: 2852 2853 ::std::string GetTypeName() const final; 2854 2855 // nested types ---------------------------------------------------- 2856 2857 // accessors ------------------------------------------------------- 2858 2859 void clear_key(); 2860 static const int kKeyFieldNumber = 1; 2861 const ::std::string& key() const; 2862 void set_key(const ::std::string& value); 2863 #if LANG_CXX11 2864 void set_key(::std::string&& value); 2865 #endif 2866 void set_key(const char* value); 2867 void set_key(const void* value, size_t size); 2868 ::std::string* mutable_key(); 2869 ::std::string* release_key(); 2870 void set_allocated_key(::std::string* key); 2871 2872 bool has_timestamp() const; 2873 void clear_timestamp(); 2874 static const int kTimestampFieldNumber = 2; 2875 private: 2876 const ::cockroach::util::hlc::Timestamp& _internal_timestamp() const; 2877 public: 2878 const ::cockroach::util::hlc::Timestamp& timestamp() const; 2879 ::cockroach::util::hlc::Timestamp* release_timestamp(); 2880 ::cockroach::util::hlc::Timestamp* mutable_timestamp(); 2881 void set_allocated_timestamp(::cockroach::util::hlc::Timestamp* timestamp); 2882 2883 void clear_priority(); 2884 static const int kPriorityFieldNumber = 3; 2885 ::google::protobuf::int32 priority() const; 2886 void set_priority(::google::protobuf::int32 value); 2887 2888 // @@protoc_insertion_point(class_scope:cockroach.roachpb.AbortSpanEntry) 2889 private: 2890 2891 ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; 2892 ::google::protobuf::internal::ArenaStringPtr key_; 2893 ::cockroach::util::hlc::Timestamp* timestamp_; 2894 ::google::protobuf::int32 priority_; 2895 mutable ::google::protobuf::internal::CachedSize _cached_size_; 2896 friend struct ::protobuf_roachpb_2fdata_2eproto::TableStruct; 2897 }; 2898 // ------------------------------------------------------------------- 2899 2900 class LeafTxnInputState : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:cockroach.roachpb.LeafTxnInputState) */ { 2901 public: 2902 LeafTxnInputState(); 2903 virtual ~LeafTxnInputState(); 2904 2905 LeafTxnInputState(const LeafTxnInputState& from); 2906 2907 inline LeafTxnInputState& operator=(const LeafTxnInputState& from) { 2908 CopyFrom(from); 2909 return *this; 2910 } 2911 #if LANG_CXX11 2912 LeafTxnInputState(LeafTxnInputState&& from) noexcept 2913 : LeafTxnInputState() { 2914 *this = ::std::move(from); 2915 } 2916 2917 inline LeafTxnInputState& operator=(LeafTxnInputState&& from) noexcept { 2918 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { 2919 if (this != &from) InternalSwap(&from); 2920 } else { 2921 CopyFrom(from); 2922 } 2923 return *this; 2924 } 2925 #endif 2926 static const LeafTxnInputState& default_instance(); 2927 2928 static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY 2929 static inline const LeafTxnInputState* internal_default_instance() { 2930 return reinterpret_cast<const LeafTxnInputState*>( 2931 &_LeafTxnInputState_default_instance_); 2932 } 2933 static constexpr int kIndexInFileMessages = 2934 20; 2935 2936 void Swap(LeafTxnInputState* other); 2937 friend void swap(LeafTxnInputState& a, LeafTxnInputState& b) { 2938 a.Swap(&b); 2939 } 2940 2941 // implements Message ---------------------------------------------- 2942 2943 inline LeafTxnInputState* New() const final { 2944 return CreateMaybeMessage<LeafTxnInputState>(NULL); 2945 } 2946 2947 LeafTxnInputState* New(::google::protobuf::Arena* arena) const final { 2948 return CreateMaybeMessage<LeafTxnInputState>(arena); 2949 } 2950 void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from) 2951 final; 2952 void CopyFrom(const LeafTxnInputState& from); 2953 void MergeFrom(const LeafTxnInputState& from); 2954 void Clear() final; 2955 bool IsInitialized() const final; 2956 2957 size_t ByteSizeLong() const final; 2958 bool MergePartialFromCodedStream( 2959 ::google::protobuf::io::CodedInputStream* input) final; 2960 void SerializeWithCachedSizes( 2961 ::google::protobuf::io::CodedOutputStream* output) const final; 2962 void DiscardUnknownFields(); 2963 int GetCachedSize() const final { return _cached_size_.Get(); } 2964 2965 private: 2966 void SharedCtor(); 2967 void SharedDtor(); 2968 void SetCachedSize(int size) const; 2969 void InternalSwap(LeafTxnInputState* other); 2970 private: 2971 inline ::google::protobuf::Arena* GetArenaNoVirtual() const { 2972 return NULL; 2973 } 2974 inline void* MaybeArenaPtr() const { 2975 return NULL; 2976 } 2977 public: 2978 2979 ::std::string GetTypeName() const final; 2980 2981 // nested types ---------------------------------------------------- 2982 2983 // accessors ------------------------------------------------------- 2984 2985 int in_flight_writes_size() const; 2986 void clear_in_flight_writes(); 2987 static const int kInFlightWritesFieldNumber = 8; 2988 ::cockroach::roachpb::SequencedWrite* mutable_in_flight_writes(int index); 2989 ::google::protobuf::RepeatedPtrField< ::cockroach::roachpb::SequencedWrite >* 2990 mutable_in_flight_writes(); 2991 const ::cockroach::roachpb::SequencedWrite& in_flight_writes(int index) const; 2992 ::cockroach::roachpb::SequencedWrite* add_in_flight_writes(); 2993 const ::google::protobuf::RepeatedPtrField< ::cockroach::roachpb::SequencedWrite >& 2994 in_flight_writes() const; 2995 2996 bool has_txn() const; 2997 void clear_txn(); 2998 static const int kTxnFieldNumber = 1; 2999 private: 3000 const ::cockroach::roachpb::Transaction& _internal_txn() const; 3001 public: 3002 const ::cockroach::roachpb::Transaction& txn() const; 3003 ::cockroach::roachpb::Transaction* release_txn(); 3004 ::cockroach::roachpb::Transaction* mutable_txn(); 3005 void set_allocated_txn(::cockroach::roachpb::Transaction* txn); 3006 3007 // bool refresh_invalid = 7; 3008 void clear_refresh_invalid(); 3009 static const int kRefreshInvalidFieldNumber = 7; 3010 bool refresh_invalid() const; 3011 void set_refresh_invalid(bool value); 3012 3013 // bool stepping_mode_enabled = 9; 3014 void clear_stepping_mode_enabled(); 3015 static const int kSteppingModeEnabledFieldNumber = 9; 3016 bool stepping_mode_enabled() const; 3017 void set_stepping_mode_enabled(bool value); 3018 3019 void clear_read_seq_num(); 3020 static const int kReadSeqNumFieldNumber = 10; 3021 ::google::protobuf::int32 read_seq_num() const; 3022 void set_read_seq_num(::google::protobuf::int32 value); 3023 3024 // @@protoc_insertion_point(class_scope:cockroach.roachpb.LeafTxnInputState) 3025 private: 3026 3027 ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; 3028 ::google::protobuf::RepeatedPtrField< ::cockroach::roachpb::SequencedWrite > in_flight_writes_; 3029 ::cockroach::roachpb::Transaction* txn_; 3030 bool refresh_invalid_; 3031 bool stepping_mode_enabled_; 3032 ::google::protobuf::int32 read_seq_num_; 3033 mutable ::google::protobuf::internal::CachedSize _cached_size_; 3034 friend struct ::protobuf_roachpb_2fdata_2eproto::TableStruct; 3035 }; 3036 // ------------------------------------------------------------------- 3037 3038 class LeafTxnFinalState : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:cockroach.roachpb.LeafTxnFinalState) */ { 3039 public: 3040 LeafTxnFinalState(); 3041 virtual ~LeafTxnFinalState(); 3042 3043 LeafTxnFinalState(const LeafTxnFinalState& from); 3044 3045 inline LeafTxnFinalState& operator=(const LeafTxnFinalState& from) { 3046 CopyFrom(from); 3047 return *this; 3048 } 3049 #if LANG_CXX11 3050 LeafTxnFinalState(LeafTxnFinalState&& from) noexcept 3051 : LeafTxnFinalState() { 3052 *this = ::std::move(from); 3053 } 3054 3055 inline LeafTxnFinalState& operator=(LeafTxnFinalState&& from) noexcept { 3056 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { 3057 if (this != &from) InternalSwap(&from); 3058 } else { 3059 CopyFrom(from); 3060 } 3061 return *this; 3062 } 3063 #endif 3064 static const LeafTxnFinalState& default_instance(); 3065 3066 static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY 3067 static inline const LeafTxnFinalState* internal_default_instance() { 3068 return reinterpret_cast<const LeafTxnFinalState*>( 3069 &_LeafTxnFinalState_default_instance_); 3070 } 3071 static constexpr int kIndexInFileMessages = 3072 21; 3073 3074 void Swap(LeafTxnFinalState* other); 3075 friend void swap(LeafTxnFinalState& a, LeafTxnFinalState& b) { 3076 a.Swap(&b); 3077 } 3078 3079 // implements Message ---------------------------------------------- 3080 3081 inline LeafTxnFinalState* New() const final { 3082 return CreateMaybeMessage<LeafTxnFinalState>(NULL); 3083 } 3084 3085 LeafTxnFinalState* New(::google::protobuf::Arena* arena) const final { 3086 return CreateMaybeMessage<LeafTxnFinalState>(arena); 3087 } 3088 void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from) 3089 final; 3090 void CopyFrom(const LeafTxnFinalState& from); 3091 void MergeFrom(const LeafTxnFinalState& from); 3092 void Clear() final; 3093 bool IsInitialized() const final; 3094 3095 size_t ByteSizeLong() const final; 3096 bool MergePartialFromCodedStream( 3097 ::google::protobuf::io::CodedInputStream* input) final; 3098 void SerializeWithCachedSizes( 3099 ::google::protobuf::io::CodedOutputStream* output) const final; 3100 void DiscardUnknownFields(); 3101 int GetCachedSize() const final { return _cached_size_.Get(); } 3102 3103 private: 3104 void SharedCtor(); 3105 void SharedDtor(); 3106 void SetCachedSize(int size) const; 3107 void InternalSwap(LeafTxnFinalState* other); 3108 private: 3109 inline ::google::protobuf::Arena* GetArenaNoVirtual() const { 3110 return NULL; 3111 } 3112 inline void* MaybeArenaPtr() const { 3113 return NULL; 3114 } 3115 public: 3116 3117 ::std::string GetTypeName() const final; 3118 3119 // nested types ---------------------------------------------------- 3120 3121 // accessors ------------------------------------------------------- 3122 3123 int refresh_spans_size() const; 3124 void clear_refresh_spans(); 3125 static const int kRefreshSpansFieldNumber = 4; 3126 ::cockroach::roachpb::Span* mutable_refresh_spans(int index); 3127 ::google::protobuf::RepeatedPtrField< ::cockroach::roachpb::Span >* 3128 mutable_refresh_spans(); 3129 const ::cockroach::roachpb::Span& refresh_spans(int index) const; 3130 ::cockroach::roachpb::Span* add_refresh_spans(); 3131 const ::google::protobuf::RepeatedPtrField< ::cockroach::roachpb::Span >& 3132 refresh_spans() const; 3133 3134 bool has_txn() const; 3135 void clear_txn(); 3136 static const int kTxnFieldNumber = 1; 3137 private: 3138 const ::cockroach::roachpb::Transaction& _internal_txn() const; 3139 public: 3140 const ::cockroach::roachpb::Transaction& txn() const; 3141 ::cockroach::roachpb::Transaction* release_txn(); 3142 ::cockroach::roachpb::Transaction* mutable_txn(); 3143 void set_allocated_txn(::cockroach::roachpb::Transaction* txn); 3144 3145 // int32 deprecated_command_count = 3; 3146 void clear_deprecated_command_count(); 3147 static const int kDeprecatedCommandCountFieldNumber = 3; 3148 ::google::protobuf::int32 deprecated_command_count() const; 3149 void set_deprecated_command_count(::google::protobuf::int32 value); 3150 3151 // bool refresh_invalid = 7; 3152 void clear_refresh_invalid(); 3153 static const int kRefreshInvalidFieldNumber = 7; 3154 bool refresh_invalid() const; 3155 void set_refresh_invalid(bool value); 3156 3157 // @@protoc_insertion_point(class_scope:cockroach.roachpb.LeafTxnFinalState) 3158 private: 3159 3160 ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; 3161 ::google::protobuf::RepeatedPtrField< ::cockroach::roachpb::Span > refresh_spans_; 3162 ::cockroach::roachpb::Transaction* txn_; 3163 ::google::protobuf::int32 deprecated_command_count_; 3164 bool refresh_invalid_; 3165 mutable ::google::protobuf::internal::CachedSize _cached_size_; 3166 friend struct ::protobuf_roachpb_2fdata_2eproto::TableStruct; 3167 }; 3168 // =================================================================== 3169 3170 3171 // =================================================================== 3172 3173 #ifdef __GNUC__ 3174 #pragma GCC diagnostic push 3175 #pragma GCC diagnostic ignored "-Wstrict-aliasing" 3176 #endif // __GNUC__ 3177 // Span 3178 3179 inline void Span::clear_key() { 3180 key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 3181 } 3182 inline const ::std::string& Span::key() const { 3183 // @@protoc_insertion_point(field_get:cockroach.roachpb.Span.key) 3184 return key_.GetNoArena(); 3185 } 3186 inline void Span::set_key(const ::std::string& value) { 3187 3188 key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); 3189 // @@protoc_insertion_point(field_set:cockroach.roachpb.Span.key) 3190 } 3191 #if LANG_CXX11 3192 inline void Span::set_key(::std::string&& value) { 3193 3194 key_.SetNoArena( 3195 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); 3196 // @@protoc_insertion_point(field_set_rvalue:cockroach.roachpb.Span.key) 3197 } 3198 #endif 3199 inline void Span::set_key(const char* value) { 3200 GOOGLE_DCHECK(value != NULL); 3201 3202 key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); 3203 // @@protoc_insertion_point(field_set_char:cockroach.roachpb.Span.key) 3204 } 3205 inline void Span::set_key(const void* value, size_t size) { 3206 3207 key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), 3208 ::std::string(reinterpret_cast<const char*>(value), size)); 3209 // @@protoc_insertion_point(field_set_pointer:cockroach.roachpb.Span.key) 3210 } 3211 inline ::std::string* Span::mutable_key() { 3212 3213 // @@protoc_insertion_point(field_mutable:cockroach.roachpb.Span.key) 3214 return key_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 3215 } 3216 inline ::std::string* Span::release_key() { 3217 // @@protoc_insertion_point(field_release:cockroach.roachpb.Span.key) 3218 3219 return key_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 3220 } 3221 inline void Span::set_allocated_key(::std::string* key) { 3222 if (key != NULL) { 3223 3224 } else { 3225 3226 } 3227 key_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), key); 3228 // @@protoc_insertion_point(field_set_allocated:cockroach.roachpb.Span.key) 3229 } 3230 3231 inline void Span::clear_end_key() { 3232 end_key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 3233 } 3234 inline const ::std::string& Span::end_key() const { 3235 // @@protoc_insertion_point(field_get:cockroach.roachpb.Span.end_key) 3236 return end_key_.GetNoArena(); 3237 } 3238 inline void Span::set_end_key(const ::std::string& value) { 3239 3240 end_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); 3241 // @@protoc_insertion_point(field_set:cockroach.roachpb.Span.end_key) 3242 } 3243 #if LANG_CXX11 3244 inline void Span::set_end_key(::std::string&& value) { 3245 3246 end_key_.SetNoArena( 3247 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); 3248 // @@protoc_insertion_point(field_set_rvalue:cockroach.roachpb.Span.end_key) 3249 } 3250 #endif 3251 inline void Span::set_end_key(const char* value) { 3252 GOOGLE_DCHECK(value != NULL); 3253 3254 end_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); 3255 // @@protoc_insertion_point(field_set_char:cockroach.roachpb.Span.end_key) 3256 } 3257 inline void Span::set_end_key(const void* value, size_t size) { 3258 3259 end_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), 3260 ::std::string(reinterpret_cast<const char*>(value), size)); 3261 // @@protoc_insertion_point(field_set_pointer:cockroach.roachpb.Span.end_key) 3262 } 3263 inline ::std::string* Span::mutable_end_key() { 3264 3265 // @@protoc_insertion_point(field_mutable:cockroach.roachpb.Span.end_key) 3266 return end_key_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 3267 } 3268 inline ::std::string* Span::release_end_key() { 3269 // @@protoc_insertion_point(field_release:cockroach.roachpb.Span.end_key) 3270 3271 return end_key_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 3272 } 3273 inline void Span::set_allocated_end_key(::std::string* end_key) { 3274 if (end_key != NULL) { 3275 3276 } else { 3277 3278 } 3279 end_key_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), end_key); 3280 // @@protoc_insertion_point(field_set_allocated:cockroach.roachpb.Span.end_key) 3281 } 3282 3283 // ------------------------------------------------------------------- 3284 3285 // Value 3286 3287 // bytes raw_bytes = 1; 3288 inline void Value::clear_raw_bytes() { 3289 raw_bytes_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 3290 } 3291 inline const ::std::string& Value::raw_bytes() const { 3292 // @@protoc_insertion_point(field_get:cockroach.roachpb.Value.raw_bytes) 3293 return raw_bytes_.GetNoArena(); 3294 } 3295 inline void Value::set_raw_bytes(const ::std::string& value) { 3296 3297 raw_bytes_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); 3298 // @@protoc_insertion_point(field_set:cockroach.roachpb.Value.raw_bytes) 3299 } 3300 #if LANG_CXX11 3301 inline void Value::set_raw_bytes(::std::string&& value) { 3302 3303 raw_bytes_.SetNoArena( 3304 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); 3305 // @@protoc_insertion_point(field_set_rvalue:cockroach.roachpb.Value.raw_bytes) 3306 } 3307 #endif 3308 inline void Value::set_raw_bytes(const char* value) { 3309 GOOGLE_DCHECK(value != NULL); 3310 3311 raw_bytes_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); 3312 // @@protoc_insertion_point(field_set_char:cockroach.roachpb.Value.raw_bytes) 3313 } 3314 inline void Value::set_raw_bytes(const void* value, size_t size) { 3315 3316 raw_bytes_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), 3317 ::std::string(reinterpret_cast<const char*>(value), size)); 3318 // @@protoc_insertion_point(field_set_pointer:cockroach.roachpb.Value.raw_bytes) 3319 } 3320 inline ::std::string* Value::mutable_raw_bytes() { 3321 3322 // @@protoc_insertion_point(field_mutable:cockroach.roachpb.Value.raw_bytes) 3323 return raw_bytes_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 3324 } 3325 inline ::std::string* Value::release_raw_bytes() { 3326 // @@protoc_insertion_point(field_release:cockroach.roachpb.Value.raw_bytes) 3327 3328 return raw_bytes_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 3329 } 3330 inline void Value::set_allocated_raw_bytes(::std::string* raw_bytes) { 3331 if (raw_bytes != NULL) { 3332 3333 } else { 3334 3335 } 3336 raw_bytes_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), raw_bytes); 3337 // @@protoc_insertion_point(field_set_allocated:cockroach.roachpb.Value.raw_bytes) 3338 } 3339 3340 inline bool Value::has_timestamp() const { 3341 return this != internal_default_instance() && timestamp_ != NULL; 3342 } 3343 inline const ::cockroach::util::hlc::Timestamp& Value::_internal_timestamp() const { 3344 return *timestamp_; 3345 } 3346 inline const ::cockroach::util::hlc::Timestamp& Value::timestamp() const { 3347 const ::cockroach::util::hlc::Timestamp* p = timestamp_; 3348 // @@protoc_insertion_point(field_get:cockroach.roachpb.Value.timestamp) 3349 return p != NULL ? *p : *reinterpret_cast<const ::cockroach::util::hlc::Timestamp*>( 3350 &::cockroach::util::hlc::_Timestamp_default_instance_); 3351 } 3352 inline ::cockroach::util::hlc::Timestamp* Value::release_timestamp() { 3353 // @@protoc_insertion_point(field_release:cockroach.roachpb.Value.timestamp) 3354 3355 ::cockroach::util::hlc::Timestamp* temp = timestamp_; 3356 timestamp_ = NULL; 3357 return temp; 3358 } 3359 inline ::cockroach::util::hlc::Timestamp* Value::mutable_timestamp() { 3360 3361 if (timestamp_ == NULL) { 3362 auto* p = CreateMaybeMessage<::cockroach::util::hlc::Timestamp>(GetArenaNoVirtual()); 3363 timestamp_ = p; 3364 } 3365 // @@protoc_insertion_point(field_mutable:cockroach.roachpb.Value.timestamp) 3366 return timestamp_; 3367 } 3368 inline void Value::set_allocated_timestamp(::cockroach::util::hlc::Timestamp* timestamp) { 3369 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); 3370 if (message_arena == NULL) { 3371 delete reinterpret_cast< ::google::protobuf::MessageLite*>(timestamp_); 3372 } 3373 if (timestamp) { 3374 ::google::protobuf::Arena* submessage_arena = NULL; 3375 if (message_arena != submessage_arena) { 3376 timestamp = ::google::protobuf::internal::GetOwnedMessage( 3377 message_arena, timestamp, submessage_arena); 3378 } 3379 3380 } else { 3381 3382 } 3383 timestamp_ = timestamp; 3384 // @@protoc_insertion_point(field_set_allocated:cockroach.roachpb.Value.timestamp) 3385 } 3386 3387 // ------------------------------------------------------------------- 3388 3389 // KeyValue 3390 3391 inline void KeyValue::clear_key() { 3392 key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 3393 } 3394 inline const ::std::string& KeyValue::key() const { 3395 // @@protoc_insertion_point(field_get:cockroach.roachpb.KeyValue.key) 3396 return key_.GetNoArena(); 3397 } 3398 inline void KeyValue::set_key(const ::std::string& value) { 3399 3400 key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); 3401 // @@protoc_insertion_point(field_set:cockroach.roachpb.KeyValue.key) 3402 } 3403 #if LANG_CXX11 3404 inline void KeyValue::set_key(::std::string&& value) { 3405 3406 key_.SetNoArena( 3407 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); 3408 // @@protoc_insertion_point(field_set_rvalue:cockroach.roachpb.KeyValue.key) 3409 } 3410 #endif 3411 inline void KeyValue::set_key(const char* value) { 3412 GOOGLE_DCHECK(value != NULL); 3413 3414 key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); 3415 // @@protoc_insertion_point(field_set_char:cockroach.roachpb.KeyValue.key) 3416 } 3417 inline void KeyValue::set_key(const void* value, size_t size) { 3418 3419 key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), 3420 ::std::string(reinterpret_cast<const char*>(value), size)); 3421 // @@protoc_insertion_point(field_set_pointer:cockroach.roachpb.KeyValue.key) 3422 } 3423 inline ::std::string* KeyValue::mutable_key() { 3424 3425 // @@protoc_insertion_point(field_mutable:cockroach.roachpb.KeyValue.key) 3426 return key_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 3427 } 3428 inline ::std::string* KeyValue::release_key() { 3429 // @@protoc_insertion_point(field_release:cockroach.roachpb.KeyValue.key) 3430 3431 return key_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 3432 } 3433 inline void KeyValue::set_allocated_key(::std::string* key) { 3434 if (key != NULL) { 3435 3436 } else { 3437 3438 } 3439 key_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), key); 3440 // @@protoc_insertion_point(field_set_allocated:cockroach.roachpb.KeyValue.key) 3441 } 3442 3443 inline bool KeyValue::has_value() const { 3444 return this != internal_default_instance() && value_ != NULL; 3445 } 3446 inline void KeyValue::clear_value() { 3447 if (GetArenaNoVirtual() == NULL && value_ != NULL) { 3448 delete value_; 3449 } 3450 value_ = NULL; 3451 } 3452 inline const ::cockroach::roachpb::Value& KeyValue::_internal_value() const { 3453 return *value_; 3454 } 3455 inline const ::cockroach::roachpb::Value& KeyValue::value() const { 3456 const ::cockroach::roachpb::Value* p = value_; 3457 // @@protoc_insertion_point(field_get:cockroach.roachpb.KeyValue.value) 3458 return p != NULL ? *p : *reinterpret_cast<const ::cockroach::roachpb::Value*>( 3459 &::cockroach::roachpb::_Value_default_instance_); 3460 } 3461 inline ::cockroach::roachpb::Value* KeyValue::release_value() { 3462 // @@protoc_insertion_point(field_release:cockroach.roachpb.KeyValue.value) 3463 3464 ::cockroach::roachpb::Value* temp = value_; 3465 value_ = NULL; 3466 return temp; 3467 } 3468 inline ::cockroach::roachpb::Value* KeyValue::mutable_value() { 3469 3470 if (value_ == NULL) { 3471 auto* p = CreateMaybeMessage<::cockroach::roachpb::Value>(GetArenaNoVirtual()); 3472 value_ = p; 3473 } 3474 // @@protoc_insertion_point(field_mutable:cockroach.roachpb.KeyValue.value) 3475 return value_; 3476 } 3477 inline void KeyValue::set_allocated_value(::cockroach::roachpb::Value* value) { 3478 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); 3479 if (message_arena == NULL) { 3480 delete value_; 3481 } 3482 if (value) { 3483 ::google::protobuf::Arena* submessage_arena = NULL; 3484 if (message_arena != submessage_arena) { 3485 value = ::google::protobuf::internal::GetOwnedMessage( 3486 message_arena, value, submessage_arena); 3487 } 3488 3489 } else { 3490 3491 } 3492 value_ = value; 3493 // @@protoc_insertion_point(field_set_allocated:cockroach.roachpb.KeyValue.value) 3494 } 3495 3496 // ------------------------------------------------------------------- 3497 3498 // StoreIdent 3499 3500 inline void StoreIdent::clear_cluster_id() { 3501 cluster_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 3502 } 3503 inline const ::std::string& StoreIdent::cluster_id() const { 3504 // @@protoc_insertion_point(field_get:cockroach.roachpb.StoreIdent.cluster_id) 3505 return cluster_id_.GetNoArena(); 3506 } 3507 inline void StoreIdent::set_cluster_id(const ::std::string& value) { 3508 3509 cluster_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); 3510 // @@protoc_insertion_point(field_set:cockroach.roachpb.StoreIdent.cluster_id) 3511 } 3512 #if LANG_CXX11 3513 inline void StoreIdent::set_cluster_id(::std::string&& value) { 3514 3515 cluster_id_.SetNoArena( 3516 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); 3517 // @@protoc_insertion_point(field_set_rvalue:cockroach.roachpb.StoreIdent.cluster_id) 3518 } 3519 #endif 3520 inline void StoreIdent::set_cluster_id(const char* value) { 3521 GOOGLE_DCHECK(value != NULL); 3522 3523 cluster_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); 3524 // @@protoc_insertion_point(field_set_char:cockroach.roachpb.StoreIdent.cluster_id) 3525 } 3526 inline void StoreIdent::set_cluster_id(const void* value, size_t size) { 3527 3528 cluster_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), 3529 ::std::string(reinterpret_cast<const char*>(value), size)); 3530 // @@protoc_insertion_point(field_set_pointer:cockroach.roachpb.StoreIdent.cluster_id) 3531 } 3532 inline ::std::string* StoreIdent::mutable_cluster_id() { 3533 3534 // @@protoc_insertion_point(field_mutable:cockroach.roachpb.StoreIdent.cluster_id) 3535 return cluster_id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 3536 } 3537 inline ::std::string* StoreIdent::release_cluster_id() { 3538 // @@protoc_insertion_point(field_release:cockroach.roachpb.StoreIdent.cluster_id) 3539 3540 return cluster_id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 3541 } 3542 inline void StoreIdent::set_allocated_cluster_id(::std::string* cluster_id) { 3543 if (cluster_id != NULL) { 3544 3545 } else { 3546 3547 } 3548 cluster_id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), cluster_id); 3549 // @@protoc_insertion_point(field_set_allocated:cockroach.roachpb.StoreIdent.cluster_id) 3550 } 3551 3552 inline void StoreIdent::clear_node_id() { 3553 node_id_ = 0; 3554 } 3555 inline ::google::protobuf::int32 StoreIdent::node_id() const { 3556 // @@protoc_insertion_point(field_get:cockroach.roachpb.StoreIdent.node_id) 3557 return node_id_; 3558 } 3559 inline void StoreIdent::set_node_id(::google::protobuf::int32 value) { 3560 3561 node_id_ = value; 3562 // @@protoc_insertion_point(field_set:cockroach.roachpb.StoreIdent.node_id) 3563 } 3564 3565 inline void StoreIdent::clear_store_id() { 3566 store_id_ = 0; 3567 } 3568 inline ::google::protobuf::int32 StoreIdent::store_id() const { 3569 // @@protoc_insertion_point(field_get:cockroach.roachpb.StoreIdent.store_id) 3570 return store_id_; 3571 } 3572 inline void StoreIdent::set_store_id(::google::protobuf::int32 value) { 3573 3574 store_id_ = value; 3575 // @@protoc_insertion_point(field_set:cockroach.roachpb.StoreIdent.store_id) 3576 } 3577 3578 // ------------------------------------------------------------------- 3579 3580 // SplitTrigger 3581 3582 inline bool SplitTrigger::has_left_desc() const { 3583 return this != internal_default_instance() && left_desc_ != NULL; 3584 } 3585 inline const ::cockroach::roachpb::RangeDescriptor& SplitTrigger::_internal_left_desc() const { 3586 return *left_desc_; 3587 } 3588 inline const ::cockroach::roachpb::RangeDescriptor& SplitTrigger::left_desc() const { 3589 const ::cockroach::roachpb::RangeDescriptor* p = left_desc_; 3590 // @@protoc_insertion_point(field_get:cockroach.roachpb.SplitTrigger.left_desc) 3591 return p != NULL ? *p : *reinterpret_cast<const ::cockroach::roachpb::RangeDescriptor*>( 3592 &::cockroach::roachpb::_RangeDescriptor_default_instance_); 3593 } 3594 inline ::cockroach::roachpb::RangeDescriptor* SplitTrigger::release_left_desc() { 3595 // @@protoc_insertion_point(field_release:cockroach.roachpb.SplitTrigger.left_desc) 3596 3597 ::cockroach::roachpb::RangeDescriptor* temp = left_desc_; 3598 left_desc_ = NULL; 3599 return temp; 3600 } 3601 inline ::cockroach::roachpb::RangeDescriptor* SplitTrigger::mutable_left_desc() { 3602 3603 if (left_desc_ == NULL) { 3604 auto* p = CreateMaybeMessage<::cockroach::roachpb::RangeDescriptor>(GetArenaNoVirtual()); 3605 left_desc_ = p; 3606 } 3607 // @@protoc_insertion_point(field_mutable:cockroach.roachpb.SplitTrigger.left_desc) 3608 return left_desc_; 3609 } 3610 inline void SplitTrigger::set_allocated_left_desc(::cockroach::roachpb::RangeDescriptor* left_desc) { 3611 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); 3612 if (message_arena == NULL) { 3613 delete reinterpret_cast< ::google::protobuf::MessageLite*>(left_desc_); 3614 } 3615 if (left_desc) { 3616 ::google::protobuf::Arena* submessage_arena = NULL; 3617 if (message_arena != submessage_arena) { 3618 left_desc = ::google::protobuf::internal::GetOwnedMessage( 3619 message_arena, left_desc, submessage_arena); 3620 } 3621 3622 } else { 3623 3624 } 3625 left_desc_ = left_desc; 3626 // @@protoc_insertion_point(field_set_allocated:cockroach.roachpb.SplitTrigger.left_desc) 3627 } 3628 3629 inline bool SplitTrigger::has_right_desc() const { 3630 return this != internal_default_instance() && right_desc_ != NULL; 3631 } 3632 inline const ::cockroach::roachpb::RangeDescriptor& SplitTrigger::_internal_right_desc() const { 3633 return *right_desc_; 3634 } 3635 inline const ::cockroach::roachpb::RangeDescriptor& SplitTrigger::right_desc() const { 3636 const ::cockroach::roachpb::RangeDescriptor* p = right_desc_; 3637 // @@protoc_insertion_point(field_get:cockroach.roachpb.SplitTrigger.right_desc) 3638 return p != NULL ? *p : *reinterpret_cast<const ::cockroach::roachpb::RangeDescriptor*>( 3639 &::cockroach::roachpb::_RangeDescriptor_default_instance_); 3640 } 3641 inline ::cockroach::roachpb::RangeDescriptor* SplitTrigger::release_right_desc() { 3642 // @@protoc_insertion_point(field_release:cockroach.roachpb.SplitTrigger.right_desc) 3643 3644 ::cockroach::roachpb::RangeDescriptor* temp = right_desc_; 3645 right_desc_ = NULL; 3646 return temp; 3647 } 3648 inline ::cockroach::roachpb::RangeDescriptor* SplitTrigger::mutable_right_desc() { 3649 3650 if (right_desc_ == NULL) { 3651 auto* p = CreateMaybeMessage<::cockroach::roachpb::RangeDescriptor>(GetArenaNoVirtual()); 3652 right_desc_ = p; 3653 } 3654 // @@protoc_insertion_point(field_mutable:cockroach.roachpb.SplitTrigger.right_desc) 3655 return right_desc_; 3656 } 3657 inline void SplitTrigger::set_allocated_right_desc(::cockroach::roachpb::RangeDescriptor* right_desc) { 3658 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); 3659 if (message_arena == NULL) { 3660 delete reinterpret_cast< ::google::protobuf::MessageLite*>(right_desc_); 3661 } 3662 if (right_desc) { 3663 ::google::protobuf::Arena* submessage_arena = NULL; 3664 if (message_arena != submessage_arena) { 3665 right_desc = ::google::protobuf::internal::GetOwnedMessage( 3666 message_arena, right_desc, submessage_arena); 3667 } 3668 3669 } else { 3670 3671 } 3672 right_desc_ = right_desc; 3673 // @@protoc_insertion_point(field_set_allocated:cockroach.roachpb.SplitTrigger.right_desc) 3674 } 3675 3676 // ------------------------------------------------------------------- 3677 3678 // MergeTrigger 3679 3680 inline bool MergeTrigger::has_left_desc() const { 3681 return this != internal_default_instance() && left_desc_ != NULL; 3682 } 3683 inline const ::cockroach::roachpb::RangeDescriptor& MergeTrigger::_internal_left_desc() const { 3684 return *left_desc_; 3685 } 3686 inline const ::cockroach::roachpb::RangeDescriptor& MergeTrigger::left_desc() const { 3687 const ::cockroach::roachpb::RangeDescriptor* p = left_desc_; 3688 // @@protoc_insertion_point(field_get:cockroach.roachpb.MergeTrigger.left_desc) 3689 return p != NULL ? *p : *reinterpret_cast<const ::cockroach::roachpb::RangeDescriptor*>( 3690 &::cockroach::roachpb::_RangeDescriptor_default_instance_); 3691 } 3692 inline ::cockroach::roachpb::RangeDescriptor* MergeTrigger::release_left_desc() { 3693 // @@protoc_insertion_point(field_release:cockroach.roachpb.MergeTrigger.left_desc) 3694 3695 ::cockroach::roachpb::RangeDescriptor* temp = left_desc_; 3696 left_desc_ = NULL; 3697 return temp; 3698 } 3699 inline ::cockroach::roachpb::RangeDescriptor* MergeTrigger::mutable_left_desc() { 3700 3701 if (left_desc_ == NULL) { 3702 auto* p = CreateMaybeMessage<::cockroach::roachpb::RangeDescriptor>(GetArenaNoVirtual()); 3703 left_desc_ = p; 3704 } 3705 // @@protoc_insertion_point(field_mutable:cockroach.roachpb.MergeTrigger.left_desc) 3706 return left_desc_; 3707 } 3708 inline void MergeTrigger::set_allocated_left_desc(::cockroach::roachpb::RangeDescriptor* left_desc) { 3709 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); 3710 if (message_arena == NULL) { 3711 delete reinterpret_cast< ::google::protobuf::MessageLite*>(left_desc_); 3712 } 3713 if (left_desc) { 3714 ::google::protobuf::Arena* submessage_arena = NULL; 3715 if (message_arena != submessage_arena) { 3716 left_desc = ::google::protobuf::internal::GetOwnedMessage( 3717 message_arena, left_desc, submessage_arena); 3718 } 3719 3720 } else { 3721 3722 } 3723 left_desc_ = left_desc; 3724 // @@protoc_insertion_point(field_set_allocated:cockroach.roachpb.MergeTrigger.left_desc) 3725 } 3726 3727 inline bool MergeTrigger::has_right_desc() const { 3728 return this != internal_default_instance() && right_desc_ != NULL; 3729 } 3730 inline const ::cockroach::roachpb::RangeDescriptor& MergeTrigger::_internal_right_desc() const { 3731 return *right_desc_; 3732 } 3733 inline const ::cockroach::roachpb::RangeDescriptor& MergeTrigger::right_desc() const { 3734 const ::cockroach::roachpb::RangeDescriptor* p = right_desc_; 3735 // @@protoc_insertion_point(field_get:cockroach.roachpb.MergeTrigger.right_desc) 3736 return p != NULL ? *p : *reinterpret_cast<const ::cockroach::roachpb::RangeDescriptor*>( 3737 &::cockroach::roachpb::_RangeDescriptor_default_instance_); 3738 } 3739 inline ::cockroach::roachpb::RangeDescriptor* MergeTrigger::release_right_desc() { 3740 // @@protoc_insertion_point(field_release:cockroach.roachpb.MergeTrigger.right_desc) 3741 3742 ::cockroach::roachpb::RangeDescriptor* temp = right_desc_; 3743 right_desc_ = NULL; 3744 return temp; 3745 } 3746 inline ::cockroach::roachpb::RangeDescriptor* MergeTrigger::mutable_right_desc() { 3747 3748 if (right_desc_ == NULL) { 3749 auto* p = CreateMaybeMessage<::cockroach::roachpb::RangeDescriptor>(GetArenaNoVirtual()); 3750 right_desc_ = p; 3751 } 3752 // @@protoc_insertion_point(field_mutable:cockroach.roachpb.MergeTrigger.right_desc) 3753 return right_desc_; 3754 } 3755 inline void MergeTrigger::set_allocated_right_desc(::cockroach::roachpb::RangeDescriptor* right_desc) { 3756 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); 3757 if (message_arena == NULL) { 3758 delete reinterpret_cast< ::google::protobuf::MessageLite*>(right_desc_); 3759 } 3760 if (right_desc) { 3761 ::google::protobuf::Arena* submessage_arena = NULL; 3762 if (message_arena != submessage_arena) { 3763 right_desc = ::google::protobuf::internal::GetOwnedMessage( 3764 message_arena, right_desc, submessage_arena); 3765 } 3766 3767 } else { 3768 3769 } 3770 right_desc_ = right_desc; 3771 // @@protoc_insertion_point(field_set_allocated:cockroach.roachpb.MergeTrigger.right_desc) 3772 } 3773 3774 inline bool MergeTrigger::has_right_mvcc_stats() const { 3775 return this != internal_default_instance() && right_mvcc_stats_ != NULL; 3776 } 3777 inline const ::cockroach::storage::enginepb::MVCCStats& MergeTrigger::_internal_right_mvcc_stats() const { 3778 return *right_mvcc_stats_; 3779 } 3780 inline const ::cockroach::storage::enginepb::MVCCStats& MergeTrigger::right_mvcc_stats() const { 3781 const ::cockroach::storage::enginepb::MVCCStats* p = right_mvcc_stats_; 3782 // @@protoc_insertion_point(field_get:cockroach.roachpb.MergeTrigger.right_mvcc_stats) 3783 return p != NULL ? *p : *reinterpret_cast<const ::cockroach::storage::enginepb::MVCCStats*>( 3784 &::cockroach::storage::enginepb::_MVCCStats_default_instance_); 3785 } 3786 inline ::cockroach::storage::enginepb::MVCCStats* MergeTrigger::release_right_mvcc_stats() { 3787 // @@protoc_insertion_point(field_release:cockroach.roachpb.MergeTrigger.right_mvcc_stats) 3788 3789 ::cockroach::storage::enginepb::MVCCStats* temp = right_mvcc_stats_; 3790 right_mvcc_stats_ = NULL; 3791 return temp; 3792 } 3793 inline ::cockroach::storage::enginepb::MVCCStats* MergeTrigger::mutable_right_mvcc_stats() { 3794 3795 if (right_mvcc_stats_ == NULL) { 3796 auto* p = CreateMaybeMessage<::cockroach::storage::enginepb::MVCCStats>(GetArenaNoVirtual()); 3797 right_mvcc_stats_ = p; 3798 } 3799 // @@protoc_insertion_point(field_mutable:cockroach.roachpb.MergeTrigger.right_mvcc_stats) 3800 return right_mvcc_stats_; 3801 } 3802 inline void MergeTrigger::set_allocated_right_mvcc_stats(::cockroach::storage::enginepb::MVCCStats* right_mvcc_stats) { 3803 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); 3804 if (message_arena == NULL) { 3805 delete reinterpret_cast< ::google::protobuf::MessageLite*>(right_mvcc_stats_); 3806 } 3807 if (right_mvcc_stats) { 3808 ::google::protobuf::Arena* submessage_arena = NULL; 3809 if (message_arena != submessage_arena) { 3810 right_mvcc_stats = ::google::protobuf::internal::GetOwnedMessage( 3811 message_arena, right_mvcc_stats, submessage_arena); 3812 } 3813 3814 } else { 3815 3816 } 3817 right_mvcc_stats_ = right_mvcc_stats; 3818 // @@protoc_insertion_point(field_set_allocated:cockroach.roachpb.MergeTrigger.right_mvcc_stats) 3819 } 3820 3821 inline bool MergeTrigger::has_freeze_start() const { 3822 return this != internal_default_instance() && freeze_start_ != NULL; 3823 } 3824 inline const ::cockroach::util::hlc::Timestamp& MergeTrigger::_internal_freeze_start() const { 3825 return *freeze_start_; 3826 } 3827 inline const ::cockroach::util::hlc::Timestamp& MergeTrigger::freeze_start() const { 3828 const ::cockroach::util::hlc::Timestamp* p = freeze_start_; 3829 // @@protoc_insertion_point(field_get:cockroach.roachpb.MergeTrigger.freeze_start) 3830 return p != NULL ? *p : *reinterpret_cast<const ::cockroach::util::hlc::Timestamp*>( 3831 &::cockroach::util::hlc::_Timestamp_default_instance_); 3832 } 3833 inline ::cockroach::util::hlc::Timestamp* MergeTrigger::release_freeze_start() { 3834 // @@protoc_insertion_point(field_release:cockroach.roachpb.MergeTrigger.freeze_start) 3835 3836 ::cockroach::util::hlc::Timestamp* temp = freeze_start_; 3837 freeze_start_ = NULL; 3838 return temp; 3839 } 3840 inline ::cockroach::util::hlc::Timestamp* MergeTrigger::mutable_freeze_start() { 3841 3842 if (freeze_start_ == NULL) { 3843 auto* p = CreateMaybeMessage<::cockroach::util::hlc::Timestamp>(GetArenaNoVirtual()); 3844 freeze_start_ = p; 3845 } 3846 // @@protoc_insertion_point(field_mutable:cockroach.roachpb.MergeTrigger.freeze_start) 3847 return freeze_start_; 3848 } 3849 inline void MergeTrigger::set_allocated_freeze_start(::cockroach::util::hlc::Timestamp* freeze_start) { 3850 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); 3851 if (message_arena == NULL) { 3852 delete reinterpret_cast< ::google::protobuf::MessageLite*>(freeze_start_); 3853 } 3854 if (freeze_start) { 3855 ::google::protobuf::Arena* submessage_arena = NULL; 3856 if (message_arena != submessage_arena) { 3857 freeze_start = ::google::protobuf::internal::GetOwnedMessage( 3858 message_arena, freeze_start, submessage_arena); 3859 } 3860 3861 } else { 3862 3863 } 3864 freeze_start_ = freeze_start; 3865 // @@protoc_insertion_point(field_set_allocated:cockroach.roachpb.MergeTrigger.freeze_start) 3866 } 3867 3868 // ------------------------------------------------------------------- 3869 3870 // ChangeReplicasTrigger 3871 3872 // .cockroach.roachpb.ReplicaChangeType deprecated_change_type = 1; 3873 inline void ChangeReplicasTrigger::clear_deprecated_change_type() { 3874 deprecated_change_type_ = 0; 3875 } 3876 inline ::cockroach::roachpb::ReplicaChangeType ChangeReplicasTrigger::deprecated_change_type() const { 3877 // @@protoc_insertion_point(field_get:cockroach.roachpb.ChangeReplicasTrigger.deprecated_change_type) 3878 return static_cast< ::cockroach::roachpb::ReplicaChangeType >(deprecated_change_type_); 3879 } 3880 inline void ChangeReplicasTrigger::set_deprecated_change_type(::cockroach::roachpb::ReplicaChangeType value) { 3881 3882 deprecated_change_type_ = value; 3883 // @@protoc_insertion_point(field_set:cockroach.roachpb.ChangeReplicasTrigger.deprecated_change_type) 3884 } 3885 3886 inline bool ChangeReplicasTrigger::has_deprecated_replica() const { 3887 return this != internal_default_instance() && deprecated_replica_ != NULL; 3888 } 3889 inline const ::cockroach::roachpb::ReplicaDescriptor& ChangeReplicasTrigger::_internal_deprecated_replica() const { 3890 return *deprecated_replica_; 3891 } 3892 inline const ::cockroach::roachpb::ReplicaDescriptor& ChangeReplicasTrigger::deprecated_replica() const { 3893 const ::cockroach::roachpb::ReplicaDescriptor* p = deprecated_replica_; 3894 // @@protoc_insertion_point(field_get:cockroach.roachpb.ChangeReplicasTrigger.deprecated_replica) 3895 return p != NULL ? *p : *reinterpret_cast<const ::cockroach::roachpb::ReplicaDescriptor*>( 3896 &::cockroach::roachpb::_ReplicaDescriptor_default_instance_); 3897 } 3898 inline ::cockroach::roachpb::ReplicaDescriptor* ChangeReplicasTrigger::release_deprecated_replica() { 3899 // @@protoc_insertion_point(field_release:cockroach.roachpb.ChangeReplicasTrigger.deprecated_replica) 3900 3901 ::cockroach::roachpb::ReplicaDescriptor* temp = deprecated_replica_; 3902 deprecated_replica_ = NULL; 3903 return temp; 3904 } 3905 inline ::cockroach::roachpb::ReplicaDescriptor* ChangeReplicasTrigger::mutable_deprecated_replica() { 3906 3907 if (deprecated_replica_ == NULL) { 3908 auto* p = CreateMaybeMessage<::cockroach::roachpb::ReplicaDescriptor>(GetArenaNoVirtual()); 3909 deprecated_replica_ = p; 3910 } 3911 // @@protoc_insertion_point(field_mutable:cockroach.roachpb.ChangeReplicasTrigger.deprecated_replica) 3912 return deprecated_replica_; 3913 } 3914 inline void ChangeReplicasTrigger::set_allocated_deprecated_replica(::cockroach::roachpb::ReplicaDescriptor* deprecated_replica) { 3915 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); 3916 if (message_arena == NULL) { 3917 delete reinterpret_cast< ::google::protobuf::MessageLite*>(deprecated_replica_); 3918 } 3919 if (deprecated_replica) { 3920 ::google::protobuf::Arena* submessage_arena = NULL; 3921 if (message_arena != submessage_arena) { 3922 deprecated_replica = ::google::protobuf::internal::GetOwnedMessage( 3923 message_arena, deprecated_replica, submessage_arena); 3924 } 3925 3926 } else { 3927 3928 } 3929 deprecated_replica_ = deprecated_replica; 3930 // @@protoc_insertion_point(field_set_allocated:cockroach.roachpb.ChangeReplicasTrigger.deprecated_replica) 3931 } 3932 3933 inline int ChangeReplicasTrigger::deprecated_updated_replicas_size() const { 3934 return deprecated_updated_replicas_.size(); 3935 } 3936 inline ::cockroach::roachpb::ReplicaDescriptor* ChangeReplicasTrigger::mutable_deprecated_updated_replicas(int index) { 3937 // @@protoc_insertion_point(field_mutable:cockroach.roachpb.ChangeReplicasTrigger.deprecated_updated_replicas) 3938 return deprecated_updated_replicas_.Mutable(index); 3939 } 3940 inline ::google::protobuf::RepeatedPtrField< ::cockroach::roachpb::ReplicaDescriptor >* 3941 ChangeReplicasTrigger::mutable_deprecated_updated_replicas() { 3942 // @@protoc_insertion_point(field_mutable_list:cockroach.roachpb.ChangeReplicasTrigger.deprecated_updated_replicas) 3943 return &deprecated_updated_replicas_; 3944 } 3945 inline const ::cockroach::roachpb::ReplicaDescriptor& ChangeReplicasTrigger::deprecated_updated_replicas(int index) const { 3946 // @@protoc_insertion_point(field_get:cockroach.roachpb.ChangeReplicasTrigger.deprecated_updated_replicas) 3947 return deprecated_updated_replicas_.Get(index); 3948 } 3949 inline ::cockroach::roachpb::ReplicaDescriptor* ChangeReplicasTrigger::add_deprecated_updated_replicas() { 3950 // @@protoc_insertion_point(field_add:cockroach.roachpb.ChangeReplicasTrigger.deprecated_updated_replicas) 3951 return deprecated_updated_replicas_.Add(); 3952 } 3953 inline const ::google::protobuf::RepeatedPtrField< ::cockroach::roachpb::ReplicaDescriptor >& 3954 ChangeReplicasTrigger::deprecated_updated_replicas() const { 3955 // @@protoc_insertion_point(field_list:cockroach.roachpb.ChangeReplicasTrigger.deprecated_updated_replicas) 3956 return deprecated_updated_replicas_; 3957 } 3958 3959 inline void ChangeReplicasTrigger::clear_deprecated_next_replica_id() { 3960 deprecated_next_replica_id_ = 0; 3961 } 3962 inline ::google::protobuf::int32 ChangeReplicasTrigger::deprecated_next_replica_id() const { 3963 // @@protoc_insertion_point(field_get:cockroach.roachpb.ChangeReplicasTrigger.deprecated_next_replica_id) 3964 return deprecated_next_replica_id_; 3965 } 3966 inline void ChangeReplicasTrigger::set_deprecated_next_replica_id(::google::protobuf::int32 value) { 3967 3968 deprecated_next_replica_id_ = value; 3969 // @@protoc_insertion_point(field_set:cockroach.roachpb.ChangeReplicasTrigger.deprecated_next_replica_id) 3970 } 3971 3972 // .cockroach.roachpb.RangeDescriptor desc = 5; 3973 inline bool ChangeReplicasTrigger::has_desc() const { 3974 return this != internal_default_instance() && desc_ != NULL; 3975 } 3976 inline const ::cockroach::roachpb::RangeDescriptor& ChangeReplicasTrigger::_internal_desc() const { 3977 return *desc_; 3978 } 3979 inline const ::cockroach::roachpb::RangeDescriptor& ChangeReplicasTrigger::desc() const { 3980 const ::cockroach::roachpb::RangeDescriptor* p = desc_; 3981 // @@protoc_insertion_point(field_get:cockroach.roachpb.ChangeReplicasTrigger.desc) 3982 return p != NULL ? *p : *reinterpret_cast<const ::cockroach::roachpb::RangeDescriptor*>( 3983 &::cockroach::roachpb::_RangeDescriptor_default_instance_); 3984 } 3985 inline ::cockroach::roachpb::RangeDescriptor* ChangeReplicasTrigger::release_desc() { 3986 // @@protoc_insertion_point(field_release:cockroach.roachpb.ChangeReplicasTrigger.desc) 3987 3988 ::cockroach::roachpb::RangeDescriptor* temp = desc_; 3989 desc_ = NULL; 3990 return temp; 3991 } 3992 inline ::cockroach::roachpb::RangeDescriptor* ChangeReplicasTrigger::mutable_desc() { 3993 3994 if (desc_ == NULL) { 3995 auto* p = CreateMaybeMessage<::cockroach::roachpb::RangeDescriptor>(GetArenaNoVirtual()); 3996 desc_ = p; 3997 } 3998 // @@protoc_insertion_point(field_mutable:cockroach.roachpb.ChangeReplicasTrigger.desc) 3999 return desc_; 4000 } 4001 inline void ChangeReplicasTrigger::set_allocated_desc(::cockroach::roachpb::RangeDescriptor* desc) { 4002 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); 4003 if (message_arena == NULL) { 4004 delete reinterpret_cast< ::google::protobuf::MessageLite*>(desc_); 4005 } 4006 if (desc) { 4007 ::google::protobuf::Arena* submessage_arena = NULL; 4008 if (message_arena != submessage_arena) { 4009 desc = ::google::protobuf::internal::GetOwnedMessage( 4010 message_arena, desc, submessage_arena); 4011 } 4012 4013 } else { 4014 4015 } 4016 desc_ = desc; 4017 // @@protoc_insertion_point(field_set_allocated:cockroach.roachpb.ChangeReplicasTrigger.desc) 4018 } 4019 4020 inline int ChangeReplicasTrigger::internal_added_replicas_size() const { 4021 return internal_added_replicas_.size(); 4022 } 4023 inline ::cockroach::roachpb::ReplicaDescriptor* ChangeReplicasTrigger::mutable_internal_added_replicas(int index) { 4024 // @@protoc_insertion_point(field_mutable:cockroach.roachpb.ChangeReplicasTrigger.internal_added_replicas) 4025 return internal_added_replicas_.Mutable(index); 4026 } 4027 inline ::google::protobuf::RepeatedPtrField< ::cockroach::roachpb::ReplicaDescriptor >* 4028 ChangeReplicasTrigger::mutable_internal_added_replicas() { 4029 // @@protoc_insertion_point(field_mutable_list:cockroach.roachpb.ChangeReplicasTrigger.internal_added_replicas) 4030 return &internal_added_replicas_; 4031 } 4032 inline const ::cockroach::roachpb::ReplicaDescriptor& ChangeReplicasTrigger::internal_added_replicas(int index) const { 4033 // @@protoc_insertion_point(field_get:cockroach.roachpb.ChangeReplicasTrigger.internal_added_replicas) 4034 return internal_added_replicas_.Get(index); 4035 } 4036 inline ::cockroach::roachpb::ReplicaDescriptor* ChangeReplicasTrigger::add_internal_added_replicas() { 4037 // @@protoc_insertion_point(field_add:cockroach.roachpb.ChangeReplicasTrigger.internal_added_replicas) 4038 return internal_added_replicas_.Add(); 4039 } 4040 inline const ::google::protobuf::RepeatedPtrField< ::cockroach::roachpb::ReplicaDescriptor >& 4041 ChangeReplicasTrigger::internal_added_replicas() const { 4042 // @@protoc_insertion_point(field_list:cockroach.roachpb.ChangeReplicasTrigger.internal_added_replicas) 4043 return internal_added_replicas_; 4044 } 4045 4046 inline int ChangeReplicasTrigger::internal_removed_replicas_size() const { 4047 return internal_removed_replicas_.size(); 4048 } 4049 inline ::cockroach::roachpb::ReplicaDescriptor* ChangeReplicasTrigger::mutable_internal_removed_replicas(int index) { 4050 // @@protoc_insertion_point(field_mutable:cockroach.roachpb.ChangeReplicasTrigger.internal_removed_replicas) 4051 return internal_removed_replicas_.Mutable(index); 4052 } 4053 inline ::google::protobuf::RepeatedPtrField< ::cockroach::roachpb::ReplicaDescriptor >* 4054 ChangeReplicasTrigger::mutable_internal_removed_replicas() { 4055 // @@protoc_insertion_point(field_mutable_list:cockroach.roachpb.ChangeReplicasTrigger.internal_removed_replicas) 4056 return &internal_removed_replicas_; 4057 } 4058 inline const ::cockroach::roachpb::ReplicaDescriptor& ChangeReplicasTrigger::internal_removed_replicas(int index) const { 4059 // @@protoc_insertion_point(field_get:cockroach.roachpb.ChangeReplicasTrigger.internal_removed_replicas) 4060 return internal_removed_replicas_.Get(index); 4061 } 4062 inline ::cockroach::roachpb::ReplicaDescriptor* ChangeReplicasTrigger::add_internal_removed_replicas() { 4063 // @@protoc_insertion_point(field_add:cockroach.roachpb.ChangeReplicasTrigger.internal_removed_replicas) 4064 return internal_removed_replicas_.Add(); 4065 } 4066 inline const ::google::protobuf::RepeatedPtrField< ::cockroach::roachpb::ReplicaDescriptor >& 4067 ChangeReplicasTrigger::internal_removed_replicas() const { 4068 // @@protoc_insertion_point(field_list:cockroach.roachpb.ChangeReplicasTrigger.internal_removed_replicas) 4069 return internal_removed_replicas_; 4070 } 4071 4072 // ------------------------------------------------------------------- 4073 4074 // ModifiedSpanTrigger 4075 4076 // bool system_config_span = 1; 4077 inline void ModifiedSpanTrigger::clear_system_config_span() { 4078 system_config_span_ = false; 4079 } 4080 inline bool ModifiedSpanTrigger::system_config_span() const { 4081 // @@protoc_insertion_point(field_get:cockroach.roachpb.ModifiedSpanTrigger.system_config_span) 4082 return system_config_span_; 4083 } 4084 inline void ModifiedSpanTrigger::set_system_config_span(bool value) { 4085 4086 system_config_span_ = value; 4087 // @@protoc_insertion_point(field_set:cockroach.roachpb.ModifiedSpanTrigger.system_config_span) 4088 } 4089 4090 // .cockroach.roachpb.Span node_liveness_span = 2; 4091 inline bool ModifiedSpanTrigger::has_node_liveness_span() const { 4092 return this != internal_default_instance() && node_liveness_span_ != NULL; 4093 } 4094 inline void ModifiedSpanTrigger::clear_node_liveness_span() { 4095 if (GetArenaNoVirtual() == NULL && node_liveness_span_ != NULL) { 4096 delete node_liveness_span_; 4097 } 4098 node_liveness_span_ = NULL; 4099 } 4100 inline const ::cockroach::roachpb::Span& ModifiedSpanTrigger::_internal_node_liveness_span() const { 4101 return *node_liveness_span_; 4102 } 4103 inline const ::cockroach::roachpb::Span& ModifiedSpanTrigger::node_liveness_span() const { 4104 const ::cockroach::roachpb::Span* p = node_liveness_span_; 4105 // @@protoc_insertion_point(field_get:cockroach.roachpb.ModifiedSpanTrigger.node_liveness_span) 4106 return p != NULL ? *p : *reinterpret_cast<const ::cockroach::roachpb::Span*>( 4107 &::cockroach::roachpb::_Span_default_instance_); 4108 } 4109 inline ::cockroach::roachpb::Span* ModifiedSpanTrigger::release_node_liveness_span() { 4110 // @@protoc_insertion_point(field_release:cockroach.roachpb.ModifiedSpanTrigger.node_liveness_span) 4111 4112 ::cockroach::roachpb::Span* temp = node_liveness_span_; 4113 node_liveness_span_ = NULL; 4114 return temp; 4115 } 4116 inline ::cockroach::roachpb::Span* ModifiedSpanTrigger::mutable_node_liveness_span() { 4117 4118 if (node_liveness_span_ == NULL) { 4119 auto* p = CreateMaybeMessage<::cockroach::roachpb::Span>(GetArenaNoVirtual()); 4120 node_liveness_span_ = p; 4121 } 4122 // @@protoc_insertion_point(field_mutable:cockroach.roachpb.ModifiedSpanTrigger.node_liveness_span) 4123 return node_liveness_span_; 4124 } 4125 inline void ModifiedSpanTrigger::set_allocated_node_liveness_span(::cockroach::roachpb::Span* node_liveness_span) { 4126 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); 4127 if (message_arena == NULL) { 4128 delete node_liveness_span_; 4129 } 4130 if (node_liveness_span) { 4131 ::google::protobuf::Arena* submessage_arena = NULL; 4132 if (message_arena != submessage_arena) { 4133 node_liveness_span = ::google::protobuf::internal::GetOwnedMessage( 4134 message_arena, node_liveness_span, submessage_arena); 4135 } 4136 4137 } else { 4138 4139 } 4140 node_liveness_span_ = node_liveness_span; 4141 // @@protoc_insertion_point(field_set_allocated:cockroach.roachpb.ModifiedSpanTrigger.node_liveness_span) 4142 } 4143 4144 // ------------------------------------------------------------------- 4145 4146 // StickyBitTrigger 4147 4148 inline bool StickyBitTrigger::has_sticky_bit() const { 4149 return this != internal_default_instance() && sticky_bit_ != NULL; 4150 } 4151 inline const ::cockroach::util::hlc::Timestamp& StickyBitTrigger::_internal_sticky_bit() const { 4152 return *sticky_bit_; 4153 } 4154 inline const ::cockroach::util::hlc::Timestamp& StickyBitTrigger::sticky_bit() const { 4155 const ::cockroach::util::hlc::Timestamp* p = sticky_bit_; 4156 // @@protoc_insertion_point(field_get:cockroach.roachpb.StickyBitTrigger.sticky_bit) 4157 return p != NULL ? *p : *reinterpret_cast<const ::cockroach::util::hlc::Timestamp*>( 4158 &::cockroach::util::hlc::_Timestamp_default_instance_); 4159 } 4160 inline ::cockroach::util::hlc::Timestamp* StickyBitTrigger::release_sticky_bit() { 4161 // @@protoc_insertion_point(field_release:cockroach.roachpb.StickyBitTrigger.sticky_bit) 4162 4163 ::cockroach::util::hlc::Timestamp* temp = sticky_bit_; 4164 sticky_bit_ = NULL; 4165 return temp; 4166 } 4167 inline ::cockroach::util::hlc::Timestamp* StickyBitTrigger::mutable_sticky_bit() { 4168 4169 if (sticky_bit_ == NULL) { 4170 auto* p = CreateMaybeMessage<::cockroach::util::hlc::Timestamp>(GetArenaNoVirtual()); 4171 sticky_bit_ = p; 4172 } 4173 // @@protoc_insertion_point(field_mutable:cockroach.roachpb.StickyBitTrigger.sticky_bit) 4174 return sticky_bit_; 4175 } 4176 inline void StickyBitTrigger::set_allocated_sticky_bit(::cockroach::util::hlc::Timestamp* sticky_bit) { 4177 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); 4178 if (message_arena == NULL) { 4179 delete reinterpret_cast< ::google::protobuf::MessageLite*>(sticky_bit_); 4180 } 4181 if (sticky_bit) { 4182 ::google::protobuf::Arena* submessage_arena = NULL; 4183 if (message_arena != submessage_arena) { 4184 sticky_bit = ::google::protobuf::internal::GetOwnedMessage( 4185 message_arena, sticky_bit, submessage_arena); 4186 } 4187 4188 } else { 4189 4190 } 4191 sticky_bit_ = sticky_bit; 4192 // @@protoc_insertion_point(field_set_allocated:cockroach.roachpb.StickyBitTrigger.sticky_bit) 4193 } 4194 4195 // ------------------------------------------------------------------- 4196 4197 // InternalCommitTrigger 4198 4199 // .cockroach.roachpb.SplitTrigger split_trigger = 1; 4200 inline bool InternalCommitTrigger::has_split_trigger() const { 4201 return this != internal_default_instance() && split_trigger_ != NULL; 4202 } 4203 inline void InternalCommitTrigger::clear_split_trigger() { 4204 if (GetArenaNoVirtual() == NULL && split_trigger_ != NULL) { 4205 delete split_trigger_; 4206 } 4207 split_trigger_ = NULL; 4208 } 4209 inline const ::cockroach::roachpb::SplitTrigger& InternalCommitTrigger::_internal_split_trigger() const { 4210 return *split_trigger_; 4211 } 4212 inline const ::cockroach::roachpb::SplitTrigger& InternalCommitTrigger::split_trigger() const { 4213 const ::cockroach::roachpb::SplitTrigger* p = split_trigger_; 4214 // @@protoc_insertion_point(field_get:cockroach.roachpb.InternalCommitTrigger.split_trigger) 4215 return p != NULL ? *p : *reinterpret_cast<const ::cockroach::roachpb::SplitTrigger*>( 4216 &::cockroach::roachpb::_SplitTrigger_default_instance_); 4217 } 4218 inline ::cockroach::roachpb::SplitTrigger* InternalCommitTrigger::release_split_trigger() { 4219 // @@protoc_insertion_point(field_release:cockroach.roachpb.InternalCommitTrigger.split_trigger) 4220 4221 ::cockroach::roachpb::SplitTrigger* temp = split_trigger_; 4222 split_trigger_ = NULL; 4223 return temp; 4224 } 4225 inline ::cockroach::roachpb::SplitTrigger* InternalCommitTrigger::mutable_split_trigger() { 4226 4227 if (split_trigger_ == NULL) { 4228 auto* p = CreateMaybeMessage<::cockroach::roachpb::SplitTrigger>(GetArenaNoVirtual()); 4229 split_trigger_ = p; 4230 } 4231 // @@protoc_insertion_point(field_mutable:cockroach.roachpb.InternalCommitTrigger.split_trigger) 4232 return split_trigger_; 4233 } 4234 inline void InternalCommitTrigger::set_allocated_split_trigger(::cockroach::roachpb::SplitTrigger* split_trigger) { 4235 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); 4236 if (message_arena == NULL) { 4237 delete split_trigger_; 4238 } 4239 if (split_trigger) { 4240 ::google::protobuf::Arena* submessage_arena = NULL; 4241 if (message_arena != submessage_arena) { 4242 split_trigger = ::google::protobuf::internal::GetOwnedMessage( 4243 message_arena, split_trigger, submessage_arena); 4244 } 4245 4246 } else { 4247 4248 } 4249 split_trigger_ = split_trigger; 4250 // @@protoc_insertion_point(field_set_allocated:cockroach.roachpb.InternalCommitTrigger.split_trigger) 4251 } 4252 4253 // .cockroach.roachpb.MergeTrigger merge_trigger = 2; 4254 inline bool InternalCommitTrigger::has_merge_trigger() const { 4255 return this != internal_default_instance() && merge_trigger_ != NULL; 4256 } 4257 inline void InternalCommitTrigger::clear_merge_trigger() { 4258 if (GetArenaNoVirtual() == NULL && merge_trigger_ != NULL) { 4259 delete merge_trigger_; 4260 } 4261 merge_trigger_ = NULL; 4262 } 4263 inline const ::cockroach::roachpb::MergeTrigger& InternalCommitTrigger::_internal_merge_trigger() const { 4264 return *merge_trigger_; 4265 } 4266 inline const ::cockroach::roachpb::MergeTrigger& InternalCommitTrigger::merge_trigger() const { 4267 const ::cockroach::roachpb::MergeTrigger* p = merge_trigger_; 4268 // @@protoc_insertion_point(field_get:cockroach.roachpb.InternalCommitTrigger.merge_trigger) 4269 return p != NULL ? *p : *reinterpret_cast<const ::cockroach::roachpb::MergeTrigger*>( 4270 &::cockroach::roachpb::_MergeTrigger_default_instance_); 4271 } 4272 inline ::cockroach::roachpb::MergeTrigger* InternalCommitTrigger::release_merge_trigger() { 4273 // @@protoc_insertion_point(field_release:cockroach.roachpb.InternalCommitTrigger.merge_trigger) 4274 4275 ::cockroach::roachpb::MergeTrigger* temp = merge_trigger_; 4276 merge_trigger_ = NULL; 4277 return temp; 4278 } 4279 inline ::cockroach::roachpb::MergeTrigger* InternalCommitTrigger::mutable_merge_trigger() { 4280 4281 if (merge_trigger_ == NULL) { 4282 auto* p = CreateMaybeMessage<::cockroach::roachpb::MergeTrigger>(GetArenaNoVirtual()); 4283 merge_trigger_ = p; 4284 } 4285 // @@protoc_insertion_point(field_mutable:cockroach.roachpb.InternalCommitTrigger.merge_trigger) 4286 return merge_trigger_; 4287 } 4288 inline void InternalCommitTrigger::set_allocated_merge_trigger(::cockroach::roachpb::MergeTrigger* merge_trigger) { 4289 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); 4290 if (message_arena == NULL) { 4291 delete merge_trigger_; 4292 } 4293 if (merge_trigger) { 4294 ::google::protobuf::Arena* submessage_arena = NULL; 4295 if (message_arena != submessage_arena) { 4296 merge_trigger = ::google::protobuf::internal::GetOwnedMessage( 4297 message_arena, merge_trigger, submessage_arena); 4298 } 4299 4300 } else { 4301 4302 } 4303 merge_trigger_ = merge_trigger; 4304 // @@protoc_insertion_point(field_set_allocated:cockroach.roachpb.InternalCommitTrigger.merge_trigger) 4305 } 4306 4307 // .cockroach.roachpb.ChangeReplicasTrigger change_replicas_trigger = 3; 4308 inline bool InternalCommitTrigger::has_change_replicas_trigger() const { 4309 return this != internal_default_instance() && change_replicas_trigger_ != NULL; 4310 } 4311 inline void InternalCommitTrigger::clear_change_replicas_trigger() { 4312 if (GetArenaNoVirtual() == NULL && change_replicas_trigger_ != NULL) { 4313 delete change_replicas_trigger_; 4314 } 4315 change_replicas_trigger_ = NULL; 4316 } 4317 inline const ::cockroach::roachpb::ChangeReplicasTrigger& InternalCommitTrigger::_internal_change_replicas_trigger() const { 4318 return *change_replicas_trigger_; 4319 } 4320 inline const ::cockroach::roachpb::ChangeReplicasTrigger& InternalCommitTrigger::change_replicas_trigger() const { 4321 const ::cockroach::roachpb::ChangeReplicasTrigger* p = change_replicas_trigger_; 4322 // @@protoc_insertion_point(field_get:cockroach.roachpb.InternalCommitTrigger.change_replicas_trigger) 4323 return p != NULL ? *p : *reinterpret_cast<const ::cockroach::roachpb::ChangeReplicasTrigger*>( 4324 &::cockroach::roachpb::_ChangeReplicasTrigger_default_instance_); 4325 } 4326 inline ::cockroach::roachpb::ChangeReplicasTrigger* InternalCommitTrigger::release_change_replicas_trigger() { 4327 // @@protoc_insertion_point(field_release:cockroach.roachpb.InternalCommitTrigger.change_replicas_trigger) 4328 4329 ::cockroach::roachpb::ChangeReplicasTrigger* temp = change_replicas_trigger_; 4330 change_replicas_trigger_ = NULL; 4331 return temp; 4332 } 4333 inline ::cockroach::roachpb::ChangeReplicasTrigger* InternalCommitTrigger::mutable_change_replicas_trigger() { 4334 4335 if (change_replicas_trigger_ == NULL) { 4336 auto* p = CreateMaybeMessage<::cockroach::roachpb::ChangeReplicasTrigger>(GetArenaNoVirtual()); 4337 change_replicas_trigger_ = p; 4338 } 4339 // @@protoc_insertion_point(field_mutable:cockroach.roachpb.InternalCommitTrigger.change_replicas_trigger) 4340 return change_replicas_trigger_; 4341 } 4342 inline void InternalCommitTrigger::set_allocated_change_replicas_trigger(::cockroach::roachpb::ChangeReplicasTrigger* change_replicas_trigger) { 4343 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); 4344 if (message_arena == NULL) { 4345 delete change_replicas_trigger_; 4346 } 4347 if (change_replicas_trigger) { 4348 ::google::protobuf::Arena* submessage_arena = NULL; 4349 if (message_arena != submessage_arena) { 4350 change_replicas_trigger = ::google::protobuf::internal::GetOwnedMessage( 4351 message_arena, change_replicas_trigger, submessage_arena); 4352 } 4353 4354 } else { 4355 4356 } 4357 change_replicas_trigger_ = change_replicas_trigger; 4358 // @@protoc_insertion_point(field_set_allocated:cockroach.roachpb.InternalCommitTrigger.change_replicas_trigger) 4359 } 4360 4361 // .cockroach.roachpb.ModifiedSpanTrigger modified_span_trigger = 4; 4362 inline bool InternalCommitTrigger::has_modified_span_trigger() const { 4363 return this != internal_default_instance() && modified_span_trigger_ != NULL; 4364 } 4365 inline void InternalCommitTrigger::clear_modified_span_trigger() { 4366 if (GetArenaNoVirtual() == NULL && modified_span_trigger_ != NULL) { 4367 delete modified_span_trigger_; 4368 } 4369 modified_span_trigger_ = NULL; 4370 } 4371 inline const ::cockroach::roachpb::ModifiedSpanTrigger& InternalCommitTrigger::_internal_modified_span_trigger() const { 4372 return *modified_span_trigger_; 4373 } 4374 inline const ::cockroach::roachpb::ModifiedSpanTrigger& InternalCommitTrigger::modified_span_trigger() const { 4375 const ::cockroach::roachpb::ModifiedSpanTrigger* p = modified_span_trigger_; 4376 // @@protoc_insertion_point(field_get:cockroach.roachpb.InternalCommitTrigger.modified_span_trigger) 4377 return p != NULL ? *p : *reinterpret_cast<const ::cockroach::roachpb::ModifiedSpanTrigger*>( 4378 &::cockroach::roachpb::_ModifiedSpanTrigger_default_instance_); 4379 } 4380 inline ::cockroach::roachpb::ModifiedSpanTrigger* InternalCommitTrigger::release_modified_span_trigger() { 4381 // @@protoc_insertion_point(field_release:cockroach.roachpb.InternalCommitTrigger.modified_span_trigger) 4382 4383 ::cockroach::roachpb::ModifiedSpanTrigger* temp = modified_span_trigger_; 4384 modified_span_trigger_ = NULL; 4385 return temp; 4386 } 4387 inline ::cockroach::roachpb::ModifiedSpanTrigger* InternalCommitTrigger::mutable_modified_span_trigger() { 4388 4389 if (modified_span_trigger_ == NULL) { 4390 auto* p = CreateMaybeMessage<::cockroach::roachpb::ModifiedSpanTrigger>(GetArenaNoVirtual()); 4391 modified_span_trigger_ = p; 4392 } 4393 // @@protoc_insertion_point(field_mutable:cockroach.roachpb.InternalCommitTrigger.modified_span_trigger) 4394 return modified_span_trigger_; 4395 } 4396 inline void InternalCommitTrigger::set_allocated_modified_span_trigger(::cockroach::roachpb::ModifiedSpanTrigger* modified_span_trigger) { 4397 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); 4398 if (message_arena == NULL) { 4399 delete modified_span_trigger_; 4400 } 4401 if (modified_span_trigger) { 4402 ::google::protobuf::Arena* submessage_arena = NULL; 4403 if (message_arena != submessage_arena) { 4404 modified_span_trigger = ::google::protobuf::internal::GetOwnedMessage( 4405 message_arena, modified_span_trigger, submessage_arena); 4406 } 4407 4408 } else { 4409 4410 } 4411 modified_span_trigger_ = modified_span_trigger; 4412 // @@protoc_insertion_point(field_set_allocated:cockroach.roachpb.InternalCommitTrigger.modified_span_trigger) 4413 } 4414 4415 // .cockroach.roachpb.StickyBitTrigger sticky_bit_trigger = 5; 4416 inline bool InternalCommitTrigger::has_sticky_bit_trigger() const { 4417 return this != internal_default_instance() && sticky_bit_trigger_ != NULL; 4418 } 4419 inline void InternalCommitTrigger::clear_sticky_bit_trigger() { 4420 if (GetArenaNoVirtual() == NULL && sticky_bit_trigger_ != NULL) { 4421 delete sticky_bit_trigger_; 4422 } 4423 sticky_bit_trigger_ = NULL; 4424 } 4425 inline const ::cockroach::roachpb::StickyBitTrigger& InternalCommitTrigger::_internal_sticky_bit_trigger() const { 4426 return *sticky_bit_trigger_; 4427 } 4428 inline const ::cockroach::roachpb::StickyBitTrigger& InternalCommitTrigger::sticky_bit_trigger() const { 4429 const ::cockroach::roachpb::StickyBitTrigger* p = sticky_bit_trigger_; 4430 // @@protoc_insertion_point(field_get:cockroach.roachpb.InternalCommitTrigger.sticky_bit_trigger) 4431 return p != NULL ? *p : *reinterpret_cast<const ::cockroach::roachpb::StickyBitTrigger*>( 4432 &::cockroach::roachpb::_StickyBitTrigger_default_instance_); 4433 } 4434 inline ::cockroach::roachpb::StickyBitTrigger* InternalCommitTrigger::release_sticky_bit_trigger() { 4435 // @@protoc_insertion_point(field_release:cockroach.roachpb.InternalCommitTrigger.sticky_bit_trigger) 4436 4437 ::cockroach::roachpb::StickyBitTrigger* temp = sticky_bit_trigger_; 4438 sticky_bit_trigger_ = NULL; 4439 return temp; 4440 } 4441 inline ::cockroach::roachpb::StickyBitTrigger* InternalCommitTrigger::mutable_sticky_bit_trigger() { 4442 4443 if (sticky_bit_trigger_ == NULL) { 4444 auto* p = CreateMaybeMessage<::cockroach::roachpb::StickyBitTrigger>(GetArenaNoVirtual()); 4445 sticky_bit_trigger_ = p; 4446 } 4447 // @@protoc_insertion_point(field_mutable:cockroach.roachpb.InternalCommitTrigger.sticky_bit_trigger) 4448 return sticky_bit_trigger_; 4449 } 4450 inline void InternalCommitTrigger::set_allocated_sticky_bit_trigger(::cockroach::roachpb::StickyBitTrigger* sticky_bit_trigger) { 4451 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); 4452 if (message_arena == NULL) { 4453 delete sticky_bit_trigger_; 4454 } 4455 if (sticky_bit_trigger) { 4456 ::google::protobuf::Arena* submessage_arena = NULL; 4457 if (message_arena != submessage_arena) { 4458 sticky_bit_trigger = ::google::protobuf::internal::GetOwnedMessage( 4459 message_arena, sticky_bit_trigger, submessage_arena); 4460 } 4461 4462 } else { 4463 4464 } 4465 sticky_bit_trigger_ = sticky_bit_trigger; 4466 // @@protoc_insertion_point(field_set_allocated:cockroach.roachpb.InternalCommitTrigger.sticky_bit_trigger) 4467 } 4468 4469 // ------------------------------------------------------------------- 4470 4471 // ObservedTimestamp 4472 4473 inline void ObservedTimestamp::clear_node_id() { 4474 node_id_ = 0; 4475 } 4476 inline ::google::protobuf::int32 ObservedTimestamp::node_id() const { 4477 // @@protoc_insertion_point(field_get:cockroach.roachpb.ObservedTimestamp.node_id) 4478 return node_id_; 4479 } 4480 inline void ObservedTimestamp::set_node_id(::google::protobuf::int32 value) { 4481 4482 node_id_ = value; 4483 // @@protoc_insertion_point(field_set:cockroach.roachpb.ObservedTimestamp.node_id) 4484 } 4485 4486 inline bool ObservedTimestamp::has_timestamp() const { 4487 return this != internal_default_instance() && timestamp_ != NULL; 4488 } 4489 inline const ::cockroach::util::hlc::Timestamp& ObservedTimestamp::_internal_timestamp() const { 4490 return *timestamp_; 4491 } 4492 inline const ::cockroach::util::hlc::Timestamp& ObservedTimestamp::timestamp() const { 4493 const ::cockroach::util::hlc::Timestamp* p = timestamp_; 4494 // @@protoc_insertion_point(field_get:cockroach.roachpb.ObservedTimestamp.timestamp) 4495 return p != NULL ? *p : *reinterpret_cast<const ::cockroach::util::hlc::Timestamp*>( 4496 &::cockroach::util::hlc::_Timestamp_default_instance_); 4497 } 4498 inline ::cockroach::util::hlc::Timestamp* ObservedTimestamp::release_timestamp() { 4499 // @@protoc_insertion_point(field_release:cockroach.roachpb.ObservedTimestamp.timestamp) 4500 4501 ::cockroach::util::hlc::Timestamp* temp = timestamp_; 4502 timestamp_ = NULL; 4503 return temp; 4504 } 4505 inline ::cockroach::util::hlc::Timestamp* ObservedTimestamp::mutable_timestamp() { 4506 4507 if (timestamp_ == NULL) { 4508 auto* p = CreateMaybeMessage<::cockroach::util::hlc::Timestamp>(GetArenaNoVirtual()); 4509 timestamp_ = p; 4510 } 4511 // @@protoc_insertion_point(field_mutable:cockroach.roachpb.ObservedTimestamp.timestamp) 4512 return timestamp_; 4513 } 4514 inline void ObservedTimestamp::set_allocated_timestamp(::cockroach::util::hlc::Timestamp* timestamp) { 4515 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); 4516 if (message_arena == NULL) { 4517 delete reinterpret_cast< ::google::protobuf::MessageLite*>(timestamp_); 4518 } 4519 if (timestamp) { 4520 ::google::protobuf::Arena* submessage_arena = NULL; 4521 if (message_arena != submessage_arena) { 4522 timestamp = ::google::protobuf::internal::GetOwnedMessage( 4523 message_arena, timestamp, submessage_arena); 4524 } 4525 4526 } else { 4527 4528 } 4529 timestamp_ = timestamp; 4530 // @@protoc_insertion_point(field_set_allocated:cockroach.roachpb.ObservedTimestamp.timestamp) 4531 } 4532 4533 // ------------------------------------------------------------------- 4534 4535 // Transaction 4536 4537 inline bool Transaction::has_meta() const { 4538 return this != internal_default_instance() && meta_ != NULL; 4539 } 4540 inline const ::cockroach::storage::enginepb::TxnMeta& Transaction::_internal_meta() const { 4541 return *meta_; 4542 } 4543 inline const ::cockroach::storage::enginepb::TxnMeta& Transaction::meta() const { 4544 const ::cockroach::storage::enginepb::TxnMeta* p = meta_; 4545 // @@protoc_insertion_point(field_get:cockroach.roachpb.Transaction.meta) 4546 return p != NULL ? *p : *reinterpret_cast<const ::cockroach::storage::enginepb::TxnMeta*>( 4547 &::cockroach::storage::enginepb::_TxnMeta_default_instance_); 4548 } 4549 inline ::cockroach::storage::enginepb::TxnMeta* Transaction::release_meta() { 4550 // @@protoc_insertion_point(field_release:cockroach.roachpb.Transaction.meta) 4551 4552 ::cockroach::storage::enginepb::TxnMeta* temp = meta_; 4553 meta_ = NULL; 4554 return temp; 4555 } 4556 inline ::cockroach::storage::enginepb::TxnMeta* Transaction::mutable_meta() { 4557 4558 if (meta_ == NULL) { 4559 auto* p = CreateMaybeMessage<::cockroach::storage::enginepb::TxnMeta>(GetArenaNoVirtual()); 4560 meta_ = p; 4561 } 4562 // @@protoc_insertion_point(field_mutable:cockroach.roachpb.Transaction.meta) 4563 return meta_; 4564 } 4565 inline void Transaction::set_allocated_meta(::cockroach::storage::enginepb::TxnMeta* meta) { 4566 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); 4567 if (message_arena == NULL) { 4568 delete reinterpret_cast< ::google::protobuf::MessageLite*>(meta_); 4569 } 4570 if (meta) { 4571 ::google::protobuf::Arena* submessage_arena = NULL; 4572 if (message_arena != submessage_arena) { 4573 meta = ::google::protobuf::internal::GetOwnedMessage( 4574 message_arena, meta, submessage_arena); 4575 } 4576 4577 } else { 4578 4579 } 4580 meta_ = meta; 4581 // @@protoc_insertion_point(field_set_allocated:cockroach.roachpb.Transaction.meta) 4582 } 4583 4584 // string name = 2; 4585 inline void Transaction::clear_name() { 4586 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 4587 } 4588 inline const ::std::string& Transaction::name() const { 4589 // @@protoc_insertion_point(field_get:cockroach.roachpb.Transaction.name) 4590 return name_.GetNoArena(); 4591 } 4592 inline void Transaction::set_name(const ::std::string& value) { 4593 4594 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); 4595 // @@protoc_insertion_point(field_set:cockroach.roachpb.Transaction.name) 4596 } 4597 #if LANG_CXX11 4598 inline void Transaction::set_name(::std::string&& value) { 4599 4600 name_.SetNoArena( 4601 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); 4602 // @@protoc_insertion_point(field_set_rvalue:cockroach.roachpb.Transaction.name) 4603 } 4604 #endif 4605 inline void Transaction::set_name(const char* value) { 4606 GOOGLE_DCHECK(value != NULL); 4607 4608 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); 4609 // @@protoc_insertion_point(field_set_char:cockroach.roachpb.Transaction.name) 4610 } 4611 inline void Transaction::set_name(const char* value, size_t size) { 4612 4613 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), 4614 ::std::string(reinterpret_cast<const char*>(value), size)); 4615 // @@protoc_insertion_point(field_set_pointer:cockroach.roachpb.Transaction.name) 4616 } 4617 inline ::std::string* Transaction::mutable_name() { 4618 4619 // @@protoc_insertion_point(field_mutable:cockroach.roachpb.Transaction.name) 4620 return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 4621 } 4622 inline ::std::string* Transaction::release_name() { 4623 // @@protoc_insertion_point(field_release:cockroach.roachpb.Transaction.name) 4624 4625 return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 4626 } 4627 inline void Transaction::set_allocated_name(::std::string* name) { 4628 if (name != NULL) { 4629 4630 } else { 4631 4632 } 4633 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name); 4634 // @@protoc_insertion_point(field_set_allocated:cockroach.roachpb.Transaction.name) 4635 } 4636 4637 // .cockroach.roachpb.TransactionStatus status = 4; 4638 inline void Transaction::clear_status() { 4639 status_ = 0; 4640 } 4641 inline ::cockroach::roachpb::TransactionStatus Transaction::status() const { 4642 // @@protoc_insertion_point(field_get:cockroach.roachpb.Transaction.status) 4643 return static_cast< ::cockroach::roachpb::TransactionStatus >(status_); 4644 } 4645 inline void Transaction::set_status(::cockroach::roachpb::TransactionStatus value) { 4646 4647 status_ = value; 4648 // @@protoc_insertion_point(field_set:cockroach.roachpb.Transaction.status) 4649 } 4650 4651 inline bool Transaction::has_last_heartbeat() const { 4652 return this != internal_default_instance() && last_heartbeat_ != NULL; 4653 } 4654 inline const ::cockroach::util::hlc::Timestamp& Transaction::_internal_last_heartbeat() const { 4655 return *last_heartbeat_; 4656 } 4657 inline const ::cockroach::util::hlc::Timestamp& Transaction::last_heartbeat() const { 4658 const ::cockroach::util::hlc::Timestamp* p = last_heartbeat_; 4659 // @@protoc_insertion_point(field_get:cockroach.roachpb.Transaction.last_heartbeat) 4660 return p != NULL ? *p : *reinterpret_cast<const ::cockroach::util::hlc::Timestamp*>( 4661 &::cockroach::util::hlc::_Timestamp_default_instance_); 4662 } 4663 inline ::cockroach::util::hlc::Timestamp* Transaction::release_last_heartbeat() { 4664 // @@protoc_insertion_point(field_release:cockroach.roachpb.Transaction.last_heartbeat) 4665 4666 ::cockroach::util::hlc::Timestamp* temp = last_heartbeat_; 4667 last_heartbeat_ = NULL; 4668 return temp; 4669 } 4670 inline ::cockroach::util::hlc::Timestamp* Transaction::mutable_last_heartbeat() { 4671 4672 if (last_heartbeat_ == NULL) { 4673 auto* p = CreateMaybeMessage<::cockroach::util::hlc::Timestamp>(GetArenaNoVirtual()); 4674 last_heartbeat_ = p; 4675 } 4676 // @@protoc_insertion_point(field_mutable:cockroach.roachpb.Transaction.last_heartbeat) 4677 return last_heartbeat_; 4678 } 4679 inline void Transaction::set_allocated_last_heartbeat(::cockroach::util::hlc::Timestamp* last_heartbeat) { 4680 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); 4681 if (message_arena == NULL) { 4682 delete reinterpret_cast< ::google::protobuf::MessageLite*>(last_heartbeat_); 4683 } 4684 if (last_heartbeat) { 4685 ::google::protobuf::Arena* submessage_arena = NULL; 4686 if (message_arena != submessage_arena) { 4687 last_heartbeat = ::google::protobuf::internal::GetOwnedMessage( 4688 message_arena, last_heartbeat, submessage_arena); 4689 } 4690 4691 } else { 4692 4693 } 4694 last_heartbeat_ = last_heartbeat; 4695 // @@protoc_insertion_point(field_set_allocated:cockroach.roachpb.Transaction.last_heartbeat) 4696 } 4697 4698 inline bool Transaction::has_deprecated_orig_timestamp() const { 4699 return this != internal_default_instance() && deprecated_orig_timestamp_ != NULL; 4700 } 4701 inline const ::cockroach::util::hlc::Timestamp& Transaction::_internal_deprecated_orig_timestamp() const { 4702 return *deprecated_orig_timestamp_; 4703 } 4704 inline const ::cockroach::util::hlc::Timestamp& Transaction::deprecated_orig_timestamp() const { 4705 const ::cockroach::util::hlc::Timestamp* p = deprecated_orig_timestamp_; 4706 // @@protoc_insertion_point(field_get:cockroach.roachpb.Transaction.deprecated_orig_timestamp) 4707 return p != NULL ? *p : *reinterpret_cast<const ::cockroach::util::hlc::Timestamp*>( 4708 &::cockroach::util::hlc::_Timestamp_default_instance_); 4709 } 4710 inline ::cockroach::util::hlc::Timestamp* Transaction::release_deprecated_orig_timestamp() { 4711 // @@protoc_insertion_point(field_release:cockroach.roachpb.Transaction.deprecated_orig_timestamp) 4712 4713 ::cockroach::util::hlc::Timestamp* temp = deprecated_orig_timestamp_; 4714 deprecated_orig_timestamp_ = NULL; 4715 return temp; 4716 } 4717 inline ::cockroach::util::hlc::Timestamp* Transaction::mutable_deprecated_orig_timestamp() { 4718 4719 if (deprecated_orig_timestamp_ == NULL) { 4720 auto* p = CreateMaybeMessage<::cockroach::util::hlc::Timestamp>(GetArenaNoVirtual()); 4721 deprecated_orig_timestamp_ = p; 4722 } 4723 // @@protoc_insertion_point(field_mutable:cockroach.roachpb.Transaction.deprecated_orig_timestamp) 4724 return deprecated_orig_timestamp_; 4725 } 4726 inline void Transaction::set_allocated_deprecated_orig_timestamp(::cockroach::util::hlc::Timestamp* deprecated_orig_timestamp) { 4727 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); 4728 if (message_arena == NULL) { 4729 delete reinterpret_cast< ::google::protobuf::MessageLite*>(deprecated_orig_timestamp_); 4730 } 4731 if (deprecated_orig_timestamp) { 4732 ::google::protobuf::Arena* submessage_arena = NULL; 4733 if (message_arena != submessage_arena) { 4734 deprecated_orig_timestamp = ::google::protobuf::internal::GetOwnedMessage( 4735 message_arena, deprecated_orig_timestamp, submessage_arena); 4736 } 4737 4738 } else { 4739 4740 } 4741 deprecated_orig_timestamp_ = deprecated_orig_timestamp; 4742 // @@protoc_insertion_point(field_set_allocated:cockroach.roachpb.Transaction.deprecated_orig_timestamp) 4743 } 4744 4745 // bool commit_timestamp_fixed = 16; 4746 inline void Transaction::clear_commit_timestamp_fixed() { 4747 commit_timestamp_fixed_ = false; 4748 } 4749 inline bool Transaction::commit_timestamp_fixed() const { 4750 // @@protoc_insertion_point(field_get:cockroach.roachpb.Transaction.commit_timestamp_fixed) 4751 return commit_timestamp_fixed_; 4752 } 4753 inline void Transaction::set_commit_timestamp_fixed(bool value) { 4754 4755 commit_timestamp_fixed_ = value; 4756 // @@protoc_insertion_point(field_set:cockroach.roachpb.Transaction.commit_timestamp_fixed) 4757 } 4758 4759 inline bool Transaction::has_read_timestamp() const { 4760 return this != internal_default_instance() && read_timestamp_ != NULL; 4761 } 4762 inline const ::cockroach::util::hlc::Timestamp& Transaction::_internal_read_timestamp() const { 4763 return *read_timestamp_; 4764 } 4765 inline const ::cockroach::util::hlc::Timestamp& Transaction::read_timestamp() const { 4766 const ::cockroach::util::hlc::Timestamp* p = read_timestamp_; 4767 // @@protoc_insertion_point(field_get:cockroach.roachpb.Transaction.read_timestamp) 4768 return p != NULL ? *p : *reinterpret_cast<const ::cockroach::util::hlc::Timestamp*>( 4769 &::cockroach::util::hlc::_Timestamp_default_instance_); 4770 } 4771 inline ::cockroach::util::hlc::Timestamp* Transaction::release_read_timestamp() { 4772 // @@protoc_insertion_point(field_release:cockroach.roachpb.Transaction.read_timestamp) 4773 4774 ::cockroach::util::hlc::Timestamp* temp = read_timestamp_; 4775 read_timestamp_ = NULL; 4776 return temp; 4777 } 4778 inline ::cockroach::util::hlc::Timestamp* Transaction::mutable_read_timestamp() { 4779 4780 if (read_timestamp_ == NULL) { 4781 auto* p = CreateMaybeMessage<::cockroach::util::hlc::Timestamp>(GetArenaNoVirtual()); 4782 read_timestamp_ = p; 4783 } 4784 // @@protoc_insertion_point(field_mutable:cockroach.roachpb.Transaction.read_timestamp) 4785 return read_timestamp_; 4786 } 4787 inline void Transaction::set_allocated_read_timestamp(::cockroach::util::hlc::Timestamp* read_timestamp) { 4788 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); 4789 if (message_arena == NULL) { 4790 delete reinterpret_cast< ::google::protobuf::MessageLite*>(read_timestamp_); 4791 } 4792 if (read_timestamp) { 4793 ::google::protobuf::Arena* submessage_arena = NULL; 4794 if (message_arena != submessage_arena) { 4795 read_timestamp = ::google::protobuf::internal::GetOwnedMessage( 4796 message_arena, read_timestamp, submessage_arena); 4797 } 4798 4799 } else { 4800 4801 } 4802 read_timestamp_ = read_timestamp; 4803 // @@protoc_insertion_point(field_set_allocated:cockroach.roachpb.Transaction.read_timestamp) 4804 } 4805 4806 inline bool Transaction::has_max_timestamp() const { 4807 return this != internal_default_instance() && max_timestamp_ != NULL; 4808 } 4809 inline const ::cockroach::util::hlc::Timestamp& Transaction::_internal_max_timestamp() const { 4810 return *max_timestamp_; 4811 } 4812 inline const ::cockroach::util::hlc::Timestamp& Transaction::max_timestamp() const { 4813 const ::cockroach::util::hlc::Timestamp* p = max_timestamp_; 4814 // @@protoc_insertion_point(field_get:cockroach.roachpb.Transaction.max_timestamp) 4815 return p != NULL ? *p : *reinterpret_cast<const ::cockroach::util::hlc::Timestamp*>( 4816 &::cockroach::util::hlc::_Timestamp_default_instance_); 4817 } 4818 inline ::cockroach::util::hlc::Timestamp* Transaction::release_max_timestamp() { 4819 // @@protoc_insertion_point(field_release:cockroach.roachpb.Transaction.max_timestamp) 4820 4821 ::cockroach::util::hlc::Timestamp* temp = max_timestamp_; 4822 max_timestamp_ = NULL; 4823 return temp; 4824 } 4825 inline ::cockroach::util::hlc::Timestamp* Transaction::mutable_max_timestamp() { 4826 4827 if (max_timestamp_ == NULL) { 4828 auto* p = CreateMaybeMessage<::cockroach::util::hlc::Timestamp>(GetArenaNoVirtual()); 4829 max_timestamp_ = p; 4830 } 4831 // @@protoc_insertion_point(field_mutable:cockroach.roachpb.Transaction.max_timestamp) 4832 return max_timestamp_; 4833 } 4834 inline void Transaction::set_allocated_max_timestamp(::cockroach::util::hlc::Timestamp* max_timestamp) { 4835 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); 4836 if (message_arena == NULL) { 4837 delete reinterpret_cast< ::google::protobuf::MessageLite*>(max_timestamp_); 4838 } 4839 if (max_timestamp) { 4840 ::google::protobuf::Arena* submessage_arena = NULL; 4841 if (message_arena != submessage_arena) { 4842 max_timestamp = ::google::protobuf::internal::GetOwnedMessage( 4843 message_arena, max_timestamp, submessage_arena); 4844 } 4845 4846 } else { 4847 4848 } 4849 max_timestamp_ = max_timestamp; 4850 // @@protoc_insertion_point(field_set_allocated:cockroach.roachpb.Transaction.max_timestamp) 4851 } 4852 4853 inline int Transaction::observed_timestamps_size() const { 4854 return observed_timestamps_.size(); 4855 } 4856 inline void Transaction::clear_observed_timestamps() { 4857 observed_timestamps_.Clear(); 4858 } 4859 inline ::cockroach::roachpb::ObservedTimestamp* Transaction::mutable_observed_timestamps(int index) { 4860 // @@protoc_insertion_point(field_mutable:cockroach.roachpb.Transaction.observed_timestamps) 4861 return observed_timestamps_.Mutable(index); 4862 } 4863 inline ::google::protobuf::RepeatedPtrField< ::cockroach::roachpb::ObservedTimestamp >* 4864 Transaction::mutable_observed_timestamps() { 4865 // @@protoc_insertion_point(field_mutable_list:cockroach.roachpb.Transaction.observed_timestamps) 4866 return &observed_timestamps_; 4867 } 4868 inline const ::cockroach::roachpb::ObservedTimestamp& Transaction::observed_timestamps(int index) const { 4869 // @@protoc_insertion_point(field_get:cockroach.roachpb.Transaction.observed_timestamps) 4870 return observed_timestamps_.Get(index); 4871 } 4872 inline ::cockroach::roachpb::ObservedTimestamp* Transaction::add_observed_timestamps() { 4873 // @@protoc_insertion_point(field_add:cockroach.roachpb.Transaction.observed_timestamps) 4874 return observed_timestamps_.Add(); 4875 } 4876 inline const ::google::protobuf::RepeatedPtrField< ::cockroach::roachpb::ObservedTimestamp >& 4877 Transaction::observed_timestamps() const { 4878 // @@protoc_insertion_point(field_list:cockroach.roachpb.Transaction.observed_timestamps) 4879 return observed_timestamps_; 4880 } 4881 4882 // bool write_too_old = 12; 4883 inline void Transaction::clear_write_too_old() { 4884 write_too_old_ = false; 4885 } 4886 inline bool Transaction::write_too_old() const { 4887 // @@protoc_insertion_point(field_get:cockroach.roachpb.Transaction.write_too_old) 4888 return write_too_old_; 4889 } 4890 inline void Transaction::set_write_too_old(bool value) { 4891 4892 write_too_old_ = value; 4893 // @@protoc_insertion_point(field_set:cockroach.roachpb.Transaction.write_too_old) 4894 } 4895 4896 inline int Transaction::lock_spans_size() const { 4897 return lock_spans_.size(); 4898 } 4899 inline void Transaction::clear_lock_spans() { 4900 lock_spans_.Clear(); 4901 } 4902 inline ::cockroach::roachpb::Span* Transaction::mutable_lock_spans(int index) { 4903 // @@protoc_insertion_point(field_mutable:cockroach.roachpb.Transaction.lock_spans) 4904 return lock_spans_.Mutable(index); 4905 } 4906 inline ::google::protobuf::RepeatedPtrField< ::cockroach::roachpb::Span >* 4907 Transaction::mutable_lock_spans() { 4908 // @@protoc_insertion_point(field_mutable_list:cockroach.roachpb.Transaction.lock_spans) 4909 return &lock_spans_; 4910 } 4911 inline const ::cockroach::roachpb::Span& Transaction::lock_spans(int index) const { 4912 // @@protoc_insertion_point(field_get:cockroach.roachpb.Transaction.lock_spans) 4913 return lock_spans_.Get(index); 4914 } 4915 inline ::cockroach::roachpb::Span* Transaction::add_lock_spans() { 4916 // @@protoc_insertion_point(field_add:cockroach.roachpb.Transaction.lock_spans) 4917 return lock_spans_.Add(); 4918 } 4919 inline const ::google::protobuf::RepeatedPtrField< ::cockroach::roachpb::Span >& 4920 Transaction::lock_spans() const { 4921 // @@protoc_insertion_point(field_list:cockroach.roachpb.Transaction.lock_spans) 4922 return lock_spans_; 4923 } 4924 4925 inline int Transaction::in_flight_writes_size() const { 4926 return in_flight_writes_.size(); 4927 } 4928 inline void Transaction::clear_in_flight_writes() { 4929 in_flight_writes_.Clear(); 4930 } 4931 inline ::cockroach::roachpb::SequencedWrite* Transaction::mutable_in_flight_writes(int index) { 4932 // @@protoc_insertion_point(field_mutable:cockroach.roachpb.Transaction.in_flight_writes) 4933 return in_flight_writes_.Mutable(index); 4934 } 4935 inline ::google::protobuf::RepeatedPtrField< ::cockroach::roachpb::SequencedWrite >* 4936 Transaction::mutable_in_flight_writes() { 4937 // @@protoc_insertion_point(field_mutable_list:cockroach.roachpb.Transaction.in_flight_writes) 4938 return &in_flight_writes_; 4939 } 4940 inline const ::cockroach::roachpb::SequencedWrite& Transaction::in_flight_writes(int index) const { 4941 // @@protoc_insertion_point(field_get:cockroach.roachpb.Transaction.in_flight_writes) 4942 return in_flight_writes_.Get(index); 4943 } 4944 inline ::cockroach::roachpb::SequencedWrite* Transaction::add_in_flight_writes() { 4945 // @@protoc_insertion_point(field_add:cockroach.roachpb.Transaction.in_flight_writes) 4946 return in_flight_writes_.Add(); 4947 } 4948 inline const ::google::protobuf::RepeatedPtrField< ::cockroach::roachpb::SequencedWrite >& 4949 Transaction::in_flight_writes() const { 4950 // @@protoc_insertion_point(field_list:cockroach.roachpb.Transaction.in_flight_writes) 4951 return in_flight_writes_; 4952 } 4953 4954 inline int Transaction::ignored_seqnums_size() const { 4955 return ignored_seqnums_.size(); 4956 } 4957 inline ::cockroach::storage::enginepb::IgnoredSeqNumRange* Transaction::mutable_ignored_seqnums(int index) { 4958 // @@protoc_insertion_point(field_mutable:cockroach.roachpb.Transaction.ignored_seqnums) 4959 return ignored_seqnums_.Mutable(index); 4960 } 4961 inline ::google::protobuf::RepeatedPtrField< ::cockroach::storage::enginepb::IgnoredSeqNumRange >* 4962 Transaction::mutable_ignored_seqnums() { 4963 // @@protoc_insertion_point(field_mutable_list:cockroach.roachpb.Transaction.ignored_seqnums) 4964 return &ignored_seqnums_; 4965 } 4966 inline const ::cockroach::storage::enginepb::IgnoredSeqNumRange& Transaction::ignored_seqnums(int index) const { 4967 // @@protoc_insertion_point(field_get:cockroach.roachpb.Transaction.ignored_seqnums) 4968 return ignored_seqnums_.Get(index); 4969 } 4970 inline ::cockroach::storage::enginepb::IgnoredSeqNumRange* Transaction::add_ignored_seqnums() { 4971 // @@protoc_insertion_point(field_add:cockroach.roachpb.Transaction.ignored_seqnums) 4972 return ignored_seqnums_.Add(); 4973 } 4974 inline const ::google::protobuf::RepeatedPtrField< ::cockroach::storage::enginepb::IgnoredSeqNumRange >& 4975 Transaction::ignored_seqnums() const { 4976 // @@protoc_insertion_point(field_list:cockroach.roachpb.Transaction.ignored_seqnums) 4977 return ignored_seqnums_; 4978 } 4979 4980 // ------------------------------------------------------------------- 4981 4982 // TransactionRecord 4983 4984 inline bool TransactionRecord::has_meta() const { 4985 return this != internal_default_instance() && meta_ != NULL; 4986 } 4987 inline const ::cockroach::storage::enginepb::TxnMeta& TransactionRecord::_internal_meta() const { 4988 return *meta_; 4989 } 4990 inline const ::cockroach::storage::enginepb::TxnMeta& TransactionRecord::meta() const { 4991 const ::cockroach::storage::enginepb::TxnMeta* p = meta_; 4992 // @@protoc_insertion_point(field_get:cockroach.roachpb.TransactionRecord.meta) 4993 return p != NULL ? *p : *reinterpret_cast<const ::cockroach::storage::enginepb::TxnMeta*>( 4994 &::cockroach::storage::enginepb::_TxnMeta_default_instance_); 4995 } 4996 inline ::cockroach::storage::enginepb::TxnMeta* TransactionRecord::release_meta() { 4997 // @@protoc_insertion_point(field_release:cockroach.roachpb.TransactionRecord.meta) 4998 4999 ::cockroach::storage::enginepb::TxnMeta* temp = meta_; 5000 meta_ = NULL; 5001 return temp; 5002 } 5003 inline ::cockroach::storage::enginepb::TxnMeta* TransactionRecord::mutable_meta() { 5004 5005 if (meta_ == NULL) { 5006 auto* p = CreateMaybeMessage<::cockroach::storage::enginepb::TxnMeta>(GetArenaNoVirtual()); 5007 meta_ = p; 5008 } 5009 // @@protoc_insertion_point(field_mutable:cockroach.roachpb.TransactionRecord.meta) 5010 return meta_; 5011 } 5012 inline void TransactionRecord::set_allocated_meta(::cockroach::storage::enginepb::TxnMeta* meta) { 5013 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); 5014 if (message_arena == NULL) { 5015 delete reinterpret_cast< ::google::protobuf::MessageLite*>(meta_); 5016 } 5017 if (meta) { 5018 ::google::protobuf::Arena* submessage_arena = NULL; 5019 if (message_arena != submessage_arena) { 5020 meta = ::google::protobuf::internal::GetOwnedMessage( 5021 message_arena, meta, submessage_arena); 5022 } 5023 5024 } else { 5025 5026 } 5027 meta_ = meta; 5028 // @@protoc_insertion_point(field_set_allocated:cockroach.roachpb.TransactionRecord.meta) 5029 } 5030 5031 // .cockroach.roachpb.TransactionStatus status = 4; 5032 inline void TransactionRecord::clear_status() { 5033 status_ = 0; 5034 } 5035 inline ::cockroach::roachpb::TransactionStatus TransactionRecord::status() const { 5036 // @@protoc_insertion_point(field_get:cockroach.roachpb.TransactionRecord.status) 5037 return static_cast< ::cockroach::roachpb::TransactionStatus >(status_); 5038 } 5039 inline void TransactionRecord::set_status(::cockroach::roachpb::TransactionStatus value) { 5040 5041 status_ = value; 5042 // @@protoc_insertion_point(field_set:cockroach.roachpb.TransactionRecord.status) 5043 } 5044 5045 inline bool TransactionRecord::has_last_heartbeat() const { 5046 return this != internal_default_instance() && last_heartbeat_ != NULL; 5047 } 5048 inline const ::cockroach::util::hlc::Timestamp& TransactionRecord::_internal_last_heartbeat() const { 5049 return *last_heartbeat_; 5050 } 5051 inline const ::cockroach::util::hlc::Timestamp& TransactionRecord::last_heartbeat() const { 5052 const ::cockroach::util::hlc::Timestamp* p = last_heartbeat_; 5053 // @@protoc_insertion_point(field_get:cockroach.roachpb.TransactionRecord.last_heartbeat) 5054 return p != NULL ? *p : *reinterpret_cast<const ::cockroach::util::hlc::Timestamp*>( 5055 &::cockroach::util::hlc::_Timestamp_default_instance_); 5056 } 5057 inline ::cockroach::util::hlc::Timestamp* TransactionRecord::release_last_heartbeat() { 5058 // @@protoc_insertion_point(field_release:cockroach.roachpb.TransactionRecord.last_heartbeat) 5059 5060 ::cockroach::util::hlc::Timestamp* temp = last_heartbeat_; 5061 last_heartbeat_ = NULL; 5062 return temp; 5063 } 5064 inline ::cockroach::util::hlc::Timestamp* TransactionRecord::mutable_last_heartbeat() { 5065 5066 if (last_heartbeat_ == NULL) { 5067 auto* p = CreateMaybeMessage<::cockroach::util::hlc::Timestamp>(GetArenaNoVirtual()); 5068 last_heartbeat_ = p; 5069 } 5070 // @@protoc_insertion_point(field_mutable:cockroach.roachpb.TransactionRecord.last_heartbeat) 5071 return last_heartbeat_; 5072 } 5073 inline void TransactionRecord::set_allocated_last_heartbeat(::cockroach::util::hlc::Timestamp* last_heartbeat) { 5074 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); 5075 if (message_arena == NULL) { 5076 delete reinterpret_cast< ::google::protobuf::MessageLite*>(last_heartbeat_); 5077 } 5078 if (last_heartbeat) { 5079 ::google::protobuf::Arena* submessage_arena = NULL; 5080 if (message_arena != submessage_arena) { 5081 last_heartbeat = ::google::protobuf::internal::GetOwnedMessage( 5082 message_arena, last_heartbeat, submessage_arena); 5083 } 5084 5085 } else { 5086 5087 } 5088 last_heartbeat_ = last_heartbeat; 5089 // @@protoc_insertion_point(field_set_allocated:cockroach.roachpb.TransactionRecord.last_heartbeat) 5090 } 5091 5092 inline int TransactionRecord::lock_spans_size() const { 5093 return lock_spans_.size(); 5094 } 5095 inline void TransactionRecord::clear_lock_spans() { 5096 lock_spans_.Clear(); 5097 } 5098 inline ::cockroach::roachpb::Span* TransactionRecord::mutable_lock_spans(int index) { 5099 // @@protoc_insertion_point(field_mutable:cockroach.roachpb.TransactionRecord.lock_spans) 5100 return lock_spans_.Mutable(index); 5101 } 5102 inline ::google::protobuf::RepeatedPtrField< ::cockroach::roachpb::Span >* 5103 TransactionRecord::mutable_lock_spans() { 5104 // @@protoc_insertion_point(field_mutable_list:cockroach.roachpb.TransactionRecord.lock_spans) 5105 return &lock_spans_; 5106 } 5107 inline const ::cockroach::roachpb::Span& TransactionRecord::lock_spans(int index) const { 5108 // @@protoc_insertion_point(field_get:cockroach.roachpb.TransactionRecord.lock_spans) 5109 return lock_spans_.Get(index); 5110 } 5111 inline ::cockroach::roachpb::Span* TransactionRecord::add_lock_spans() { 5112 // @@protoc_insertion_point(field_add:cockroach.roachpb.TransactionRecord.lock_spans) 5113 return lock_spans_.Add(); 5114 } 5115 inline const ::google::protobuf::RepeatedPtrField< ::cockroach::roachpb::Span >& 5116 TransactionRecord::lock_spans() const { 5117 // @@protoc_insertion_point(field_list:cockroach.roachpb.TransactionRecord.lock_spans) 5118 return lock_spans_; 5119 } 5120 5121 inline int TransactionRecord::in_flight_writes_size() const { 5122 return in_flight_writes_.size(); 5123 } 5124 inline void TransactionRecord::clear_in_flight_writes() { 5125 in_flight_writes_.Clear(); 5126 } 5127 inline ::cockroach::roachpb::SequencedWrite* TransactionRecord::mutable_in_flight_writes(int index) { 5128 // @@protoc_insertion_point(field_mutable:cockroach.roachpb.TransactionRecord.in_flight_writes) 5129 return in_flight_writes_.Mutable(index); 5130 } 5131 inline ::google::protobuf::RepeatedPtrField< ::cockroach::roachpb::SequencedWrite >* 5132 TransactionRecord::mutable_in_flight_writes() { 5133 // @@protoc_insertion_point(field_mutable_list:cockroach.roachpb.TransactionRecord.in_flight_writes) 5134 return &in_flight_writes_; 5135 } 5136 inline const ::cockroach::roachpb::SequencedWrite& TransactionRecord::in_flight_writes(int index) const { 5137 // @@protoc_insertion_point(field_get:cockroach.roachpb.TransactionRecord.in_flight_writes) 5138 return in_flight_writes_.Get(index); 5139 } 5140 inline ::cockroach::roachpb::SequencedWrite* TransactionRecord::add_in_flight_writes() { 5141 // @@protoc_insertion_point(field_add:cockroach.roachpb.TransactionRecord.in_flight_writes) 5142 return in_flight_writes_.Add(); 5143 } 5144 inline const ::google::protobuf::RepeatedPtrField< ::cockroach::roachpb::SequencedWrite >& 5145 TransactionRecord::in_flight_writes() const { 5146 // @@protoc_insertion_point(field_list:cockroach.roachpb.TransactionRecord.in_flight_writes) 5147 return in_flight_writes_; 5148 } 5149 5150 inline int TransactionRecord::ignored_seqnums_size() const { 5151 return ignored_seqnums_.size(); 5152 } 5153 inline ::cockroach::storage::enginepb::IgnoredSeqNumRange* TransactionRecord::mutable_ignored_seqnums(int index) { 5154 // @@protoc_insertion_point(field_mutable:cockroach.roachpb.TransactionRecord.ignored_seqnums) 5155 return ignored_seqnums_.Mutable(index); 5156 } 5157 inline ::google::protobuf::RepeatedPtrField< ::cockroach::storage::enginepb::IgnoredSeqNumRange >* 5158 TransactionRecord::mutable_ignored_seqnums() { 5159 // @@protoc_insertion_point(field_mutable_list:cockroach.roachpb.TransactionRecord.ignored_seqnums) 5160 return &ignored_seqnums_; 5161 } 5162 inline const ::cockroach::storage::enginepb::IgnoredSeqNumRange& TransactionRecord::ignored_seqnums(int index) const { 5163 // @@protoc_insertion_point(field_get:cockroach.roachpb.TransactionRecord.ignored_seqnums) 5164 return ignored_seqnums_.Get(index); 5165 } 5166 inline ::cockroach::storage::enginepb::IgnoredSeqNumRange* TransactionRecord::add_ignored_seqnums() { 5167 // @@protoc_insertion_point(field_add:cockroach.roachpb.TransactionRecord.ignored_seqnums) 5168 return ignored_seqnums_.Add(); 5169 } 5170 inline const ::google::protobuf::RepeatedPtrField< ::cockroach::storage::enginepb::IgnoredSeqNumRange >& 5171 TransactionRecord::ignored_seqnums() const { 5172 // @@protoc_insertion_point(field_list:cockroach.roachpb.TransactionRecord.ignored_seqnums) 5173 return ignored_seqnums_; 5174 } 5175 5176 // ------------------------------------------------------------------- 5177 5178 // Intent_SingleKeySpan 5179 5180 inline void Intent_SingleKeySpan::clear_key() { 5181 key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 5182 } 5183 inline const ::std::string& Intent_SingleKeySpan::key() const { 5184 // @@protoc_insertion_point(field_get:cockroach.roachpb.Intent.SingleKeySpan.key) 5185 return key_.GetNoArena(); 5186 } 5187 inline void Intent_SingleKeySpan::set_key(const ::std::string& value) { 5188 5189 key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); 5190 // @@protoc_insertion_point(field_set:cockroach.roachpb.Intent.SingleKeySpan.key) 5191 } 5192 #if LANG_CXX11 5193 inline void Intent_SingleKeySpan::set_key(::std::string&& value) { 5194 5195 key_.SetNoArena( 5196 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); 5197 // @@protoc_insertion_point(field_set_rvalue:cockroach.roachpb.Intent.SingleKeySpan.key) 5198 } 5199 #endif 5200 inline void Intent_SingleKeySpan::set_key(const char* value) { 5201 GOOGLE_DCHECK(value != NULL); 5202 5203 key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); 5204 // @@protoc_insertion_point(field_set_char:cockroach.roachpb.Intent.SingleKeySpan.key) 5205 } 5206 inline void Intent_SingleKeySpan::set_key(const void* value, size_t size) { 5207 5208 key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), 5209 ::std::string(reinterpret_cast<const char*>(value), size)); 5210 // @@protoc_insertion_point(field_set_pointer:cockroach.roachpb.Intent.SingleKeySpan.key) 5211 } 5212 inline ::std::string* Intent_SingleKeySpan::mutable_key() { 5213 5214 // @@protoc_insertion_point(field_mutable:cockroach.roachpb.Intent.SingleKeySpan.key) 5215 return key_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 5216 } 5217 inline ::std::string* Intent_SingleKeySpan::release_key() { 5218 // @@protoc_insertion_point(field_release:cockroach.roachpb.Intent.SingleKeySpan.key) 5219 5220 return key_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 5221 } 5222 inline void Intent_SingleKeySpan::set_allocated_key(::std::string* key) { 5223 if (key != NULL) { 5224 5225 } else { 5226 5227 } 5228 key_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), key); 5229 // @@protoc_insertion_point(field_set_allocated:cockroach.roachpb.Intent.SingleKeySpan.key) 5230 } 5231 5232 // ------------------------------------------------------------------- 5233 5234 // Intent 5235 5236 inline bool Intent::has_single_key_span() const { 5237 return this != internal_default_instance() && single_key_span_ != NULL; 5238 } 5239 inline void Intent::clear_single_key_span() { 5240 if (GetArenaNoVirtual() == NULL && single_key_span_ != NULL) { 5241 delete single_key_span_; 5242 } 5243 single_key_span_ = NULL; 5244 } 5245 inline const ::cockroach::roachpb::Intent_SingleKeySpan& Intent::_internal_single_key_span() const { 5246 return *single_key_span_; 5247 } 5248 inline const ::cockroach::roachpb::Intent_SingleKeySpan& Intent::single_key_span() const { 5249 const ::cockroach::roachpb::Intent_SingleKeySpan* p = single_key_span_; 5250 // @@protoc_insertion_point(field_get:cockroach.roachpb.Intent.single_key_span) 5251 return p != NULL ? *p : *reinterpret_cast<const ::cockroach::roachpb::Intent_SingleKeySpan*>( 5252 &::cockroach::roachpb::_Intent_SingleKeySpan_default_instance_); 5253 } 5254 inline ::cockroach::roachpb::Intent_SingleKeySpan* Intent::release_single_key_span() { 5255 // @@protoc_insertion_point(field_release:cockroach.roachpb.Intent.single_key_span) 5256 5257 ::cockroach::roachpb::Intent_SingleKeySpan* temp = single_key_span_; 5258 single_key_span_ = NULL; 5259 return temp; 5260 } 5261 inline ::cockroach::roachpb::Intent_SingleKeySpan* Intent::mutable_single_key_span() { 5262 5263 if (single_key_span_ == NULL) { 5264 auto* p = CreateMaybeMessage<::cockroach::roachpb::Intent_SingleKeySpan>(GetArenaNoVirtual()); 5265 single_key_span_ = p; 5266 } 5267 // @@protoc_insertion_point(field_mutable:cockroach.roachpb.Intent.single_key_span) 5268 return single_key_span_; 5269 } 5270 inline void Intent::set_allocated_single_key_span(::cockroach::roachpb::Intent_SingleKeySpan* single_key_span) { 5271 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); 5272 if (message_arena == NULL) { 5273 delete single_key_span_; 5274 } 5275 if (single_key_span) { 5276 ::google::protobuf::Arena* submessage_arena = NULL; 5277 if (message_arena != submessage_arena) { 5278 single_key_span = ::google::protobuf::internal::GetOwnedMessage( 5279 message_arena, single_key_span, submessage_arena); 5280 } 5281 5282 } else { 5283 5284 } 5285 single_key_span_ = single_key_span; 5286 // @@protoc_insertion_point(field_set_allocated:cockroach.roachpb.Intent.single_key_span) 5287 } 5288 5289 inline bool Intent::has_txn() const { 5290 return this != internal_default_instance() && txn_ != NULL; 5291 } 5292 inline const ::cockroach::storage::enginepb::TxnMeta& Intent::_internal_txn() const { 5293 return *txn_; 5294 } 5295 inline const ::cockroach::storage::enginepb::TxnMeta& Intent::txn() const { 5296 const ::cockroach::storage::enginepb::TxnMeta* p = txn_; 5297 // @@protoc_insertion_point(field_get:cockroach.roachpb.Intent.txn) 5298 return p != NULL ? *p : *reinterpret_cast<const ::cockroach::storage::enginepb::TxnMeta*>( 5299 &::cockroach::storage::enginepb::_TxnMeta_default_instance_); 5300 } 5301 inline ::cockroach::storage::enginepb::TxnMeta* Intent::release_txn() { 5302 // @@protoc_insertion_point(field_release:cockroach.roachpb.Intent.txn) 5303 5304 ::cockroach::storage::enginepb::TxnMeta* temp = txn_; 5305 txn_ = NULL; 5306 return temp; 5307 } 5308 inline ::cockroach::storage::enginepb::TxnMeta* Intent::mutable_txn() { 5309 5310 if (txn_ == NULL) { 5311 auto* p = CreateMaybeMessage<::cockroach::storage::enginepb::TxnMeta>(GetArenaNoVirtual()); 5312 txn_ = p; 5313 } 5314 // @@protoc_insertion_point(field_mutable:cockroach.roachpb.Intent.txn) 5315 return txn_; 5316 } 5317 inline void Intent::set_allocated_txn(::cockroach::storage::enginepb::TxnMeta* txn) { 5318 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); 5319 if (message_arena == NULL) { 5320 delete reinterpret_cast< ::google::protobuf::MessageLite*>(txn_); 5321 } 5322 if (txn) { 5323 ::google::protobuf::Arena* submessage_arena = NULL; 5324 if (message_arena != submessage_arena) { 5325 txn = ::google::protobuf::internal::GetOwnedMessage( 5326 message_arena, txn, submessage_arena); 5327 } 5328 5329 } else { 5330 5331 } 5332 txn_ = txn; 5333 // @@protoc_insertion_point(field_set_allocated:cockroach.roachpb.Intent.txn) 5334 } 5335 5336 // ------------------------------------------------------------------- 5337 5338 // LockAcquisition 5339 5340 inline bool LockAcquisition::has_span() const { 5341 return this != internal_default_instance() && span_ != NULL; 5342 } 5343 inline void LockAcquisition::clear_span() { 5344 if (GetArenaNoVirtual() == NULL && span_ != NULL) { 5345 delete span_; 5346 } 5347 span_ = NULL; 5348 } 5349 inline const ::cockroach::roachpb::Span& LockAcquisition::_internal_span() const { 5350 return *span_; 5351 } 5352 inline const ::cockroach::roachpb::Span& LockAcquisition::span() const { 5353 const ::cockroach::roachpb::Span* p = span_; 5354 // @@protoc_insertion_point(field_get:cockroach.roachpb.LockAcquisition.span) 5355 return p != NULL ? *p : *reinterpret_cast<const ::cockroach::roachpb::Span*>( 5356 &::cockroach::roachpb::_Span_default_instance_); 5357 } 5358 inline ::cockroach::roachpb::Span* LockAcquisition::release_span() { 5359 // @@protoc_insertion_point(field_release:cockroach.roachpb.LockAcquisition.span) 5360 5361 ::cockroach::roachpb::Span* temp = span_; 5362 span_ = NULL; 5363 return temp; 5364 } 5365 inline ::cockroach::roachpb::Span* LockAcquisition::mutable_span() { 5366 5367 if (span_ == NULL) { 5368 auto* p = CreateMaybeMessage<::cockroach::roachpb::Span>(GetArenaNoVirtual()); 5369 span_ = p; 5370 } 5371 // @@protoc_insertion_point(field_mutable:cockroach.roachpb.LockAcquisition.span) 5372 return span_; 5373 } 5374 inline void LockAcquisition::set_allocated_span(::cockroach::roachpb::Span* span) { 5375 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); 5376 if (message_arena == NULL) { 5377 delete span_; 5378 } 5379 if (span) { 5380 ::google::protobuf::Arena* submessage_arena = NULL; 5381 if (message_arena != submessage_arena) { 5382 span = ::google::protobuf::internal::GetOwnedMessage( 5383 message_arena, span, submessage_arena); 5384 } 5385 5386 } else { 5387 5388 } 5389 span_ = span; 5390 // @@protoc_insertion_point(field_set_allocated:cockroach.roachpb.LockAcquisition.span) 5391 } 5392 5393 inline bool LockAcquisition::has_txn() const { 5394 return this != internal_default_instance() && txn_ != NULL; 5395 } 5396 inline const ::cockroach::storage::enginepb::TxnMeta& LockAcquisition::_internal_txn() const { 5397 return *txn_; 5398 } 5399 inline const ::cockroach::storage::enginepb::TxnMeta& LockAcquisition::txn() const { 5400 const ::cockroach::storage::enginepb::TxnMeta* p = txn_; 5401 // @@protoc_insertion_point(field_get:cockroach.roachpb.LockAcquisition.txn) 5402 return p != NULL ? *p : *reinterpret_cast<const ::cockroach::storage::enginepb::TxnMeta*>( 5403 &::cockroach::storage::enginepb::_TxnMeta_default_instance_); 5404 } 5405 inline ::cockroach::storage::enginepb::TxnMeta* LockAcquisition::release_txn() { 5406 // @@protoc_insertion_point(field_release:cockroach.roachpb.LockAcquisition.txn) 5407 5408 ::cockroach::storage::enginepb::TxnMeta* temp = txn_; 5409 txn_ = NULL; 5410 return temp; 5411 } 5412 inline ::cockroach::storage::enginepb::TxnMeta* LockAcquisition::mutable_txn() { 5413 5414 if (txn_ == NULL) { 5415 auto* p = CreateMaybeMessage<::cockroach::storage::enginepb::TxnMeta>(GetArenaNoVirtual()); 5416 txn_ = p; 5417 } 5418 // @@protoc_insertion_point(field_mutable:cockroach.roachpb.LockAcquisition.txn) 5419 return txn_; 5420 } 5421 inline void LockAcquisition::set_allocated_txn(::cockroach::storage::enginepb::TxnMeta* txn) { 5422 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); 5423 if (message_arena == NULL) { 5424 delete reinterpret_cast< ::google::protobuf::MessageLite*>(txn_); 5425 } 5426 if (txn) { 5427 ::google::protobuf::Arena* submessage_arena = NULL; 5428 if (message_arena != submessage_arena) { 5429 txn = ::google::protobuf::internal::GetOwnedMessage( 5430 message_arena, txn, submessage_arena); 5431 } 5432 5433 } else { 5434 5435 } 5436 txn_ = txn; 5437 // @@protoc_insertion_point(field_set_allocated:cockroach.roachpb.LockAcquisition.txn) 5438 } 5439 5440 // .cockroach.kv.kvserver.concurrency.lock.Durability durability = 3; 5441 inline void LockAcquisition::clear_durability() { 5442 durability_ = 0; 5443 } 5444 inline ::cockroach::kv::kvserver::concurrency::lock::Durability LockAcquisition::durability() const { 5445 // @@protoc_insertion_point(field_get:cockroach.roachpb.LockAcquisition.durability) 5446 return static_cast< ::cockroach::kv::kvserver::concurrency::lock::Durability >(durability_); 5447 } 5448 inline void LockAcquisition::set_durability(::cockroach::kv::kvserver::concurrency::lock::Durability value) { 5449 5450 durability_ = value; 5451 // @@protoc_insertion_point(field_set:cockroach.roachpb.LockAcquisition.durability) 5452 } 5453 5454 // ------------------------------------------------------------------- 5455 5456 // LockUpdate 5457 5458 inline bool LockUpdate::has_span() const { 5459 return this != internal_default_instance() && span_ != NULL; 5460 } 5461 inline void LockUpdate::clear_span() { 5462 if (GetArenaNoVirtual() == NULL && span_ != NULL) { 5463 delete span_; 5464 } 5465 span_ = NULL; 5466 } 5467 inline const ::cockroach::roachpb::Span& LockUpdate::_internal_span() const { 5468 return *span_; 5469 } 5470 inline const ::cockroach::roachpb::Span& LockUpdate::span() const { 5471 const ::cockroach::roachpb::Span* p = span_; 5472 // @@protoc_insertion_point(field_get:cockroach.roachpb.LockUpdate.span) 5473 return p != NULL ? *p : *reinterpret_cast<const ::cockroach::roachpb::Span*>( 5474 &::cockroach::roachpb::_Span_default_instance_); 5475 } 5476 inline ::cockroach::roachpb::Span* LockUpdate::release_span() { 5477 // @@protoc_insertion_point(field_release:cockroach.roachpb.LockUpdate.span) 5478 5479 ::cockroach::roachpb::Span* temp = span_; 5480 span_ = NULL; 5481 return temp; 5482 } 5483 inline ::cockroach::roachpb::Span* LockUpdate::mutable_span() { 5484 5485 if (span_ == NULL) { 5486 auto* p = CreateMaybeMessage<::cockroach::roachpb::Span>(GetArenaNoVirtual()); 5487 span_ = p; 5488 } 5489 // @@protoc_insertion_point(field_mutable:cockroach.roachpb.LockUpdate.span) 5490 return span_; 5491 } 5492 inline void LockUpdate::set_allocated_span(::cockroach::roachpb::Span* span) { 5493 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); 5494 if (message_arena == NULL) { 5495 delete span_; 5496 } 5497 if (span) { 5498 ::google::protobuf::Arena* submessage_arena = NULL; 5499 if (message_arena != submessage_arena) { 5500 span = ::google::protobuf::internal::GetOwnedMessage( 5501 message_arena, span, submessage_arena); 5502 } 5503 5504 } else { 5505 5506 } 5507 span_ = span; 5508 // @@protoc_insertion_point(field_set_allocated:cockroach.roachpb.LockUpdate.span) 5509 } 5510 5511 inline bool LockUpdate::has_txn() const { 5512 return this != internal_default_instance() && txn_ != NULL; 5513 } 5514 inline const ::cockroach::storage::enginepb::TxnMeta& LockUpdate::_internal_txn() const { 5515 return *txn_; 5516 } 5517 inline const ::cockroach::storage::enginepb::TxnMeta& LockUpdate::txn() const { 5518 const ::cockroach::storage::enginepb::TxnMeta* p = txn_; 5519 // @@protoc_insertion_point(field_get:cockroach.roachpb.LockUpdate.txn) 5520 return p != NULL ? *p : *reinterpret_cast<const ::cockroach::storage::enginepb::TxnMeta*>( 5521 &::cockroach::storage::enginepb::_TxnMeta_default_instance_); 5522 } 5523 inline ::cockroach::storage::enginepb::TxnMeta* LockUpdate::release_txn() { 5524 // @@protoc_insertion_point(field_release:cockroach.roachpb.LockUpdate.txn) 5525 5526 ::cockroach::storage::enginepb::TxnMeta* temp = txn_; 5527 txn_ = NULL; 5528 return temp; 5529 } 5530 inline ::cockroach::storage::enginepb::TxnMeta* LockUpdate::mutable_txn() { 5531 5532 if (txn_ == NULL) { 5533 auto* p = CreateMaybeMessage<::cockroach::storage::enginepb::TxnMeta>(GetArenaNoVirtual()); 5534 txn_ = p; 5535 } 5536 // @@protoc_insertion_point(field_mutable:cockroach.roachpb.LockUpdate.txn) 5537 return txn_; 5538 } 5539 inline void LockUpdate::set_allocated_txn(::cockroach::storage::enginepb::TxnMeta* txn) { 5540 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); 5541 if (message_arena == NULL) { 5542 delete reinterpret_cast< ::google::protobuf::MessageLite*>(txn_); 5543 } 5544 if (txn) { 5545 ::google::protobuf::Arena* submessage_arena = NULL; 5546 if (message_arena != submessage_arena) { 5547 txn = ::google::protobuf::internal::GetOwnedMessage( 5548 message_arena, txn, submessage_arena); 5549 } 5550 5551 } else { 5552 5553 } 5554 txn_ = txn; 5555 // @@protoc_insertion_point(field_set_allocated:cockroach.roachpb.LockUpdate.txn) 5556 } 5557 5558 // .cockroach.roachpb.TransactionStatus status = 3; 5559 inline void LockUpdate::clear_status() { 5560 status_ = 0; 5561 } 5562 inline ::cockroach::roachpb::TransactionStatus LockUpdate::status() const { 5563 // @@protoc_insertion_point(field_get:cockroach.roachpb.LockUpdate.status) 5564 return static_cast< ::cockroach::roachpb::TransactionStatus >(status_); 5565 } 5566 inline void LockUpdate::set_status(::cockroach::roachpb::TransactionStatus value) { 5567 5568 status_ = value; 5569 // @@protoc_insertion_point(field_set:cockroach.roachpb.LockUpdate.status) 5570 } 5571 5572 inline int LockUpdate::ignored_seqnums_size() const { 5573 return ignored_seqnums_.size(); 5574 } 5575 inline ::cockroach::storage::enginepb::IgnoredSeqNumRange* LockUpdate::mutable_ignored_seqnums(int index) { 5576 // @@protoc_insertion_point(field_mutable:cockroach.roachpb.LockUpdate.ignored_seqnums) 5577 return ignored_seqnums_.Mutable(index); 5578 } 5579 inline ::google::protobuf::RepeatedPtrField< ::cockroach::storage::enginepb::IgnoredSeqNumRange >* 5580 LockUpdate::mutable_ignored_seqnums() { 5581 // @@protoc_insertion_point(field_mutable_list:cockroach.roachpb.LockUpdate.ignored_seqnums) 5582 return &ignored_seqnums_; 5583 } 5584 inline const ::cockroach::storage::enginepb::IgnoredSeqNumRange& LockUpdate::ignored_seqnums(int index) const { 5585 // @@protoc_insertion_point(field_get:cockroach.roachpb.LockUpdate.ignored_seqnums) 5586 return ignored_seqnums_.Get(index); 5587 } 5588 inline ::cockroach::storage::enginepb::IgnoredSeqNumRange* LockUpdate::add_ignored_seqnums() { 5589 // @@protoc_insertion_point(field_add:cockroach.roachpb.LockUpdate.ignored_seqnums) 5590 return ignored_seqnums_.Add(); 5591 } 5592 inline const ::google::protobuf::RepeatedPtrField< ::cockroach::storage::enginepb::IgnoredSeqNumRange >& 5593 LockUpdate::ignored_seqnums() const { 5594 // @@protoc_insertion_point(field_list:cockroach.roachpb.LockUpdate.ignored_seqnums) 5595 return ignored_seqnums_; 5596 } 5597 5598 // ------------------------------------------------------------------- 5599 5600 // SequencedWrite 5601 5602 inline void SequencedWrite::clear_key() { 5603 key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 5604 } 5605 inline const ::std::string& SequencedWrite::key() const { 5606 // @@protoc_insertion_point(field_get:cockroach.roachpb.SequencedWrite.key) 5607 return key_.GetNoArena(); 5608 } 5609 inline void SequencedWrite::set_key(const ::std::string& value) { 5610 5611 key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); 5612 // @@protoc_insertion_point(field_set:cockroach.roachpb.SequencedWrite.key) 5613 } 5614 #if LANG_CXX11 5615 inline void SequencedWrite::set_key(::std::string&& value) { 5616 5617 key_.SetNoArena( 5618 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); 5619 // @@protoc_insertion_point(field_set_rvalue:cockroach.roachpb.SequencedWrite.key) 5620 } 5621 #endif 5622 inline void SequencedWrite::set_key(const char* value) { 5623 GOOGLE_DCHECK(value != NULL); 5624 5625 key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); 5626 // @@protoc_insertion_point(field_set_char:cockroach.roachpb.SequencedWrite.key) 5627 } 5628 inline void SequencedWrite::set_key(const void* value, size_t size) { 5629 5630 key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), 5631 ::std::string(reinterpret_cast<const char*>(value), size)); 5632 // @@protoc_insertion_point(field_set_pointer:cockroach.roachpb.SequencedWrite.key) 5633 } 5634 inline ::std::string* SequencedWrite::mutable_key() { 5635 5636 // @@protoc_insertion_point(field_mutable:cockroach.roachpb.SequencedWrite.key) 5637 return key_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 5638 } 5639 inline ::std::string* SequencedWrite::release_key() { 5640 // @@protoc_insertion_point(field_release:cockroach.roachpb.SequencedWrite.key) 5641 5642 return key_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 5643 } 5644 inline void SequencedWrite::set_allocated_key(::std::string* key) { 5645 if (key != NULL) { 5646 5647 } else { 5648 5649 } 5650 key_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), key); 5651 // @@protoc_insertion_point(field_set_allocated:cockroach.roachpb.SequencedWrite.key) 5652 } 5653 5654 inline void SequencedWrite::clear_sequence() { 5655 sequence_ = 0; 5656 } 5657 inline ::google::protobuf::int32 SequencedWrite::sequence() const { 5658 // @@protoc_insertion_point(field_get:cockroach.roachpb.SequencedWrite.sequence) 5659 return sequence_; 5660 } 5661 inline void SequencedWrite::set_sequence(::google::protobuf::int32 value) { 5662 5663 sequence_ = value; 5664 // @@protoc_insertion_point(field_set:cockroach.roachpb.SequencedWrite.sequence) 5665 } 5666 5667 // ------------------------------------------------------------------- 5668 5669 // Lease 5670 5671 inline bool Lease::has_start() const { 5672 return this != internal_default_instance() && start_ != NULL; 5673 } 5674 inline const ::cockroach::util::hlc::Timestamp& Lease::_internal_start() const { 5675 return *start_; 5676 } 5677 inline const ::cockroach::util::hlc::Timestamp& Lease::start() const { 5678 const ::cockroach::util::hlc::Timestamp* p = start_; 5679 // @@protoc_insertion_point(field_get:cockroach.roachpb.Lease.start) 5680 return p != NULL ? *p : *reinterpret_cast<const ::cockroach::util::hlc::Timestamp*>( 5681 &::cockroach::util::hlc::_Timestamp_default_instance_); 5682 } 5683 inline ::cockroach::util::hlc::Timestamp* Lease::release_start() { 5684 // @@protoc_insertion_point(field_release:cockroach.roachpb.Lease.start) 5685 5686 ::cockroach::util::hlc::Timestamp* temp = start_; 5687 start_ = NULL; 5688 return temp; 5689 } 5690 inline ::cockroach::util::hlc::Timestamp* Lease::mutable_start() { 5691 5692 if (start_ == NULL) { 5693 auto* p = CreateMaybeMessage<::cockroach::util::hlc::Timestamp>(GetArenaNoVirtual()); 5694 start_ = p; 5695 } 5696 // @@protoc_insertion_point(field_mutable:cockroach.roachpb.Lease.start) 5697 return start_; 5698 } 5699 inline void Lease::set_allocated_start(::cockroach::util::hlc::Timestamp* start) { 5700 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); 5701 if (message_arena == NULL) { 5702 delete reinterpret_cast< ::google::protobuf::MessageLite*>(start_); 5703 } 5704 if (start) { 5705 ::google::protobuf::Arena* submessage_arena = NULL; 5706 if (message_arena != submessage_arena) { 5707 start = ::google::protobuf::internal::GetOwnedMessage( 5708 message_arena, start, submessage_arena); 5709 } 5710 5711 } else { 5712 5713 } 5714 start_ = start; 5715 // @@protoc_insertion_point(field_set_allocated:cockroach.roachpb.Lease.start) 5716 } 5717 5718 // .cockroach.util.hlc.Timestamp expiration = 2; 5719 inline bool Lease::has_expiration() const { 5720 return this != internal_default_instance() && expiration_ != NULL; 5721 } 5722 inline const ::cockroach::util::hlc::Timestamp& Lease::_internal_expiration() const { 5723 return *expiration_; 5724 } 5725 inline const ::cockroach::util::hlc::Timestamp& Lease::expiration() const { 5726 const ::cockroach::util::hlc::Timestamp* p = expiration_; 5727 // @@protoc_insertion_point(field_get:cockroach.roachpb.Lease.expiration) 5728 return p != NULL ? *p : *reinterpret_cast<const ::cockroach::util::hlc::Timestamp*>( 5729 &::cockroach::util::hlc::_Timestamp_default_instance_); 5730 } 5731 inline ::cockroach::util::hlc::Timestamp* Lease::release_expiration() { 5732 // @@protoc_insertion_point(field_release:cockroach.roachpb.Lease.expiration) 5733 5734 ::cockroach::util::hlc::Timestamp* temp = expiration_; 5735 expiration_ = NULL; 5736 return temp; 5737 } 5738 inline ::cockroach::util::hlc::Timestamp* Lease::mutable_expiration() { 5739 5740 if (expiration_ == NULL) { 5741 auto* p = CreateMaybeMessage<::cockroach::util::hlc::Timestamp>(GetArenaNoVirtual()); 5742 expiration_ = p; 5743 } 5744 // @@protoc_insertion_point(field_mutable:cockroach.roachpb.Lease.expiration) 5745 return expiration_; 5746 } 5747 inline void Lease::set_allocated_expiration(::cockroach::util::hlc::Timestamp* expiration) { 5748 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); 5749 if (message_arena == NULL) { 5750 delete reinterpret_cast< ::google::protobuf::MessageLite*>(expiration_); 5751 } 5752 if (expiration) { 5753 ::google::protobuf::Arena* submessage_arena = NULL; 5754 if (message_arena != submessage_arena) { 5755 expiration = ::google::protobuf::internal::GetOwnedMessage( 5756 message_arena, expiration, submessage_arena); 5757 } 5758 5759 } else { 5760 5761 } 5762 expiration_ = expiration; 5763 // @@protoc_insertion_point(field_set_allocated:cockroach.roachpb.Lease.expiration) 5764 } 5765 5766 inline bool Lease::has_replica() const { 5767 return this != internal_default_instance() && replica_ != NULL; 5768 } 5769 inline const ::cockroach::roachpb::ReplicaDescriptor& Lease::_internal_replica() const { 5770 return *replica_; 5771 } 5772 inline const ::cockroach::roachpb::ReplicaDescriptor& Lease::replica() const { 5773 const ::cockroach::roachpb::ReplicaDescriptor* p = replica_; 5774 // @@protoc_insertion_point(field_get:cockroach.roachpb.Lease.replica) 5775 return p != NULL ? *p : *reinterpret_cast<const ::cockroach::roachpb::ReplicaDescriptor*>( 5776 &::cockroach::roachpb::_ReplicaDescriptor_default_instance_); 5777 } 5778 inline ::cockroach::roachpb::ReplicaDescriptor* Lease::release_replica() { 5779 // @@protoc_insertion_point(field_release:cockroach.roachpb.Lease.replica) 5780 5781 ::cockroach::roachpb::ReplicaDescriptor* temp = replica_; 5782 replica_ = NULL; 5783 return temp; 5784 } 5785 inline ::cockroach::roachpb::ReplicaDescriptor* Lease::mutable_replica() { 5786 5787 if (replica_ == NULL) { 5788 auto* p = CreateMaybeMessage<::cockroach::roachpb::ReplicaDescriptor>(GetArenaNoVirtual()); 5789 replica_ = p; 5790 } 5791 // @@protoc_insertion_point(field_mutable:cockroach.roachpb.Lease.replica) 5792 return replica_; 5793 } 5794 inline void Lease::set_allocated_replica(::cockroach::roachpb::ReplicaDescriptor* replica) { 5795 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); 5796 if (message_arena == NULL) { 5797 delete reinterpret_cast< ::google::protobuf::MessageLite*>(replica_); 5798 } 5799 if (replica) { 5800 ::google::protobuf::Arena* submessage_arena = NULL; 5801 if (message_arena != submessage_arena) { 5802 replica = ::google::protobuf::internal::GetOwnedMessage( 5803 message_arena, replica, submessage_arena); 5804 } 5805 5806 } else { 5807 5808 } 5809 replica_ = replica; 5810 // @@protoc_insertion_point(field_set_allocated:cockroach.roachpb.Lease.replica) 5811 } 5812 5813 // .cockroach.util.hlc.Timestamp deprecated_start_stasis = 4; 5814 inline bool Lease::has_deprecated_start_stasis() const { 5815 return this != internal_default_instance() && deprecated_start_stasis_ != NULL; 5816 } 5817 inline const ::cockroach::util::hlc::Timestamp& Lease::_internal_deprecated_start_stasis() const { 5818 return *deprecated_start_stasis_; 5819 } 5820 inline const ::cockroach::util::hlc::Timestamp& Lease::deprecated_start_stasis() const { 5821 const ::cockroach::util::hlc::Timestamp* p = deprecated_start_stasis_; 5822 // @@protoc_insertion_point(field_get:cockroach.roachpb.Lease.deprecated_start_stasis) 5823 return p != NULL ? *p : *reinterpret_cast<const ::cockroach::util::hlc::Timestamp*>( 5824 &::cockroach::util::hlc::_Timestamp_default_instance_); 5825 } 5826 inline ::cockroach::util::hlc::Timestamp* Lease::release_deprecated_start_stasis() { 5827 // @@protoc_insertion_point(field_release:cockroach.roachpb.Lease.deprecated_start_stasis) 5828 5829 ::cockroach::util::hlc::Timestamp* temp = deprecated_start_stasis_; 5830 deprecated_start_stasis_ = NULL; 5831 return temp; 5832 } 5833 inline ::cockroach::util::hlc::Timestamp* Lease::mutable_deprecated_start_stasis() { 5834 5835 if (deprecated_start_stasis_ == NULL) { 5836 auto* p = CreateMaybeMessage<::cockroach::util::hlc::Timestamp>(GetArenaNoVirtual()); 5837 deprecated_start_stasis_ = p; 5838 } 5839 // @@protoc_insertion_point(field_mutable:cockroach.roachpb.Lease.deprecated_start_stasis) 5840 return deprecated_start_stasis_; 5841 } 5842 inline void Lease::set_allocated_deprecated_start_stasis(::cockroach::util::hlc::Timestamp* deprecated_start_stasis) { 5843 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); 5844 if (message_arena == NULL) { 5845 delete reinterpret_cast< ::google::protobuf::MessageLite*>(deprecated_start_stasis_); 5846 } 5847 if (deprecated_start_stasis) { 5848 ::google::protobuf::Arena* submessage_arena = NULL; 5849 if (message_arena != submessage_arena) { 5850 deprecated_start_stasis = ::google::protobuf::internal::GetOwnedMessage( 5851 message_arena, deprecated_start_stasis, submessage_arena); 5852 } 5853 5854 } else { 5855 5856 } 5857 deprecated_start_stasis_ = deprecated_start_stasis; 5858 // @@protoc_insertion_point(field_set_allocated:cockroach.roachpb.Lease.deprecated_start_stasis) 5859 } 5860 5861 inline bool Lease::has_proposed_ts() const { 5862 return this != internal_default_instance() && proposed_ts_ != NULL; 5863 } 5864 inline const ::cockroach::util::hlc::Timestamp& Lease::_internal_proposed_ts() const { 5865 return *proposed_ts_; 5866 } 5867 inline const ::cockroach::util::hlc::Timestamp& Lease::proposed_ts() const { 5868 const ::cockroach::util::hlc::Timestamp* p = proposed_ts_; 5869 // @@protoc_insertion_point(field_get:cockroach.roachpb.Lease.proposed_ts) 5870 return p != NULL ? *p : *reinterpret_cast<const ::cockroach::util::hlc::Timestamp*>( 5871 &::cockroach::util::hlc::_Timestamp_default_instance_); 5872 } 5873 inline ::cockroach::util::hlc::Timestamp* Lease::release_proposed_ts() { 5874 // @@protoc_insertion_point(field_release:cockroach.roachpb.Lease.proposed_ts) 5875 5876 ::cockroach::util::hlc::Timestamp* temp = proposed_ts_; 5877 proposed_ts_ = NULL; 5878 return temp; 5879 } 5880 inline ::cockroach::util::hlc::Timestamp* Lease::mutable_proposed_ts() { 5881 5882 if (proposed_ts_ == NULL) { 5883 auto* p = CreateMaybeMessage<::cockroach::util::hlc::Timestamp>(GetArenaNoVirtual()); 5884 proposed_ts_ = p; 5885 } 5886 // @@protoc_insertion_point(field_mutable:cockroach.roachpb.Lease.proposed_ts) 5887 return proposed_ts_; 5888 } 5889 inline void Lease::set_allocated_proposed_ts(::cockroach::util::hlc::Timestamp* proposed_ts) { 5890 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); 5891 if (message_arena == NULL) { 5892 delete reinterpret_cast< ::google::protobuf::MessageLite*>(proposed_ts_); 5893 } 5894 if (proposed_ts) { 5895 ::google::protobuf::Arena* submessage_arena = NULL; 5896 if (message_arena != submessage_arena) { 5897 proposed_ts = ::google::protobuf::internal::GetOwnedMessage( 5898 message_arena, proposed_ts, submessage_arena); 5899 } 5900 5901 } else { 5902 5903 } 5904 proposed_ts_ = proposed_ts; 5905 // @@protoc_insertion_point(field_set_allocated:cockroach.roachpb.Lease.proposed_ts) 5906 } 5907 5908 // int64 epoch = 6; 5909 inline void Lease::clear_epoch() { 5910 epoch_ = GOOGLE_LONGLONG(0); 5911 } 5912 inline ::google::protobuf::int64 Lease::epoch() const { 5913 // @@protoc_insertion_point(field_get:cockroach.roachpb.Lease.epoch) 5914 return epoch_; 5915 } 5916 inline void Lease::set_epoch(::google::protobuf::int64 value) { 5917 5918 epoch_ = value; 5919 // @@protoc_insertion_point(field_set:cockroach.roachpb.Lease.epoch) 5920 } 5921 5922 inline void Lease::clear_sequence() { 5923 sequence_ = GOOGLE_LONGLONG(0); 5924 } 5925 inline ::google::protobuf::int64 Lease::sequence() const { 5926 // @@protoc_insertion_point(field_get:cockroach.roachpb.Lease.sequence) 5927 return sequence_; 5928 } 5929 inline void Lease::set_sequence(::google::protobuf::int64 value) { 5930 5931 sequence_ = value; 5932 // @@protoc_insertion_point(field_set:cockroach.roachpb.Lease.sequence) 5933 } 5934 5935 // ------------------------------------------------------------------- 5936 5937 // AbortSpanEntry 5938 5939 inline void AbortSpanEntry::clear_key() { 5940 key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 5941 } 5942 inline const ::std::string& AbortSpanEntry::key() const { 5943 // @@protoc_insertion_point(field_get:cockroach.roachpb.AbortSpanEntry.key) 5944 return key_.GetNoArena(); 5945 } 5946 inline void AbortSpanEntry::set_key(const ::std::string& value) { 5947 5948 key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); 5949 // @@protoc_insertion_point(field_set:cockroach.roachpb.AbortSpanEntry.key) 5950 } 5951 #if LANG_CXX11 5952 inline void AbortSpanEntry::set_key(::std::string&& value) { 5953 5954 key_.SetNoArena( 5955 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); 5956 // @@protoc_insertion_point(field_set_rvalue:cockroach.roachpb.AbortSpanEntry.key) 5957 } 5958 #endif 5959 inline void AbortSpanEntry::set_key(const char* value) { 5960 GOOGLE_DCHECK(value != NULL); 5961 5962 key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); 5963 // @@protoc_insertion_point(field_set_char:cockroach.roachpb.AbortSpanEntry.key) 5964 } 5965 inline void AbortSpanEntry::set_key(const void* value, size_t size) { 5966 5967 key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), 5968 ::std::string(reinterpret_cast<const char*>(value), size)); 5969 // @@protoc_insertion_point(field_set_pointer:cockroach.roachpb.AbortSpanEntry.key) 5970 } 5971 inline ::std::string* AbortSpanEntry::mutable_key() { 5972 5973 // @@protoc_insertion_point(field_mutable:cockroach.roachpb.AbortSpanEntry.key) 5974 return key_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 5975 } 5976 inline ::std::string* AbortSpanEntry::release_key() { 5977 // @@protoc_insertion_point(field_release:cockroach.roachpb.AbortSpanEntry.key) 5978 5979 return key_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 5980 } 5981 inline void AbortSpanEntry::set_allocated_key(::std::string* key) { 5982 if (key != NULL) { 5983 5984 } else { 5985 5986 } 5987 key_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), key); 5988 // @@protoc_insertion_point(field_set_allocated:cockroach.roachpb.AbortSpanEntry.key) 5989 } 5990 5991 inline bool AbortSpanEntry::has_timestamp() const { 5992 return this != internal_default_instance() && timestamp_ != NULL; 5993 } 5994 inline const ::cockroach::util::hlc::Timestamp& AbortSpanEntry::_internal_timestamp() const { 5995 return *timestamp_; 5996 } 5997 inline const ::cockroach::util::hlc::Timestamp& AbortSpanEntry::timestamp() const { 5998 const ::cockroach::util::hlc::Timestamp* p = timestamp_; 5999 // @@protoc_insertion_point(field_get:cockroach.roachpb.AbortSpanEntry.timestamp) 6000 return p != NULL ? *p : *reinterpret_cast<const ::cockroach::util::hlc::Timestamp*>( 6001 &::cockroach::util::hlc::_Timestamp_default_instance_); 6002 } 6003 inline ::cockroach::util::hlc::Timestamp* AbortSpanEntry::release_timestamp() { 6004 // @@protoc_insertion_point(field_release:cockroach.roachpb.AbortSpanEntry.timestamp) 6005 6006 ::cockroach::util::hlc::Timestamp* temp = timestamp_; 6007 timestamp_ = NULL; 6008 return temp; 6009 } 6010 inline ::cockroach::util::hlc::Timestamp* AbortSpanEntry::mutable_timestamp() { 6011 6012 if (timestamp_ == NULL) { 6013 auto* p = CreateMaybeMessage<::cockroach::util::hlc::Timestamp>(GetArenaNoVirtual()); 6014 timestamp_ = p; 6015 } 6016 // @@protoc_insertion_point(field_mutable:cockroach.roachpb.AbortSpanEntry.timestamp) 6017 return timestamp_; 6018 } 6019 inline void AbortSpanEntry::set_allocated_timestamp(::cockroach::util::hlc::Timestamp* timestamp) { 6020 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); 6021 if (message_arena == NULL) { 6022 delete reinterpret_cast< ::google::protobuf::MessageLite*>(timestamp_); 6023 } 6024 if (timestamp) { 6025 ::google::protobuf::Arena* submessage_arena = NULL; 6026 if (message_arena != submessage_arena) { 6027 timestamp = ::google::protobuf::internal::GetOwnedMessage( 6028 message_arena, timestamp, submessage_arena); 6029 } 6030 6031 } else { 6032 6033 } 6034 timestamp_ = timestamp; 6035 // @@protoc_insertion_point(field_set_allocated:cockroach.roachpb.AbortSpanEntry.timestamp) 6036 } 6037 6038 inline void AbortSpanEntry::clear_priority() { 6039 priority_ = 0; 6040 } 6041 inline ::google::protobuf::int32 AbortSpanEntry::priority() const { 6042 // @@protoc_insertion_point(field_get:cockroach.roachpb.AbortSpanEntry.priority) 6043 return priority_; 6044 } 6045 inline void AbortSpanEntry::set_priority(::google::protobuf::int32 value) { 6046 6047 priority_ = value; 6048 // @@protoc_insertion_point(field_set:cockroach.roachpb.AbortSpanEntry.priority) 6049 } 6050 6051 // ------------------------------------------------------------------- 6052 6053 // LeafTxnInputState 6054 6055 inline bool LeafTxnInputState::has_txn() const { 6056 return this != internal_default_instance() && txn_ != NULL; 6057 } 6058 inline void LeafTxnInputState::clear_txn() { 6059 if (GetArenaNoVirtual() == NULL && txn_ != NULL) { 6060 delete txn_; 6061 } 6062 txn_ = NULL; 6063 } 6064 inline const ::cockroach::roachpb::Transaction& LeafTxnInputState::_internal_txn() const { 6065 return *txn_; 6066 } 6067 inline const ::cockroach::roachpb::Transaction& LeafTxnInputState::txn() const { 6068 const ::cockroach::roachpb::Transaction* p = txn_; 6069 // @@protoc_insertion_point(field_get:cockroach.roachpb.LeafTxnInputState.txn) 6070 return p != NULL ? *p : *reinterpret_cast<const ::cockroach::roachpb::Transaction*>( 6071 &::cockroach::roachpb::_Transaction_default_instance_); 6072 } 6073 inline ::cockroach::roachpb::Transaction* LeafTxnInputState::release_txn() { 6074 // @@protoc_insertion_point(field_release:cockroach.roachpb.LeafTxnInputState.txn) 6075 6076 ::cockroach::roachpb::Transaction* temp = txn_; 6077 txn_ = NULL; 6078 return temp; 6079 } 6080 inline ::cockroach::roachpb::Transaction* LeafTxnInputState::mutable_txn() { 6081 6082 if (txn_ == NULL) { 6083 auto* p = CreateMaybeMessage<::cockroach::roachpb::Transaction>(GetArenaNoVirtual()); 6084 txn_ = p; 6085 } 6086 // @@protoc_insertion_point(field_mutable:cockroach.roachpb.LeafTxnInputState.txn) 6087 return txn_; 6088 } 6089 inline void LeafTxnInputState::set_allocated_txn(::cockroach::roachpb::Transaction* txn) { 6090 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); 6091 if (message_arena == NULL) { 6092 delete txn_; 6093 } 6094 if (txn) { 6095 ::google::protobuf::Arena* submessage_arena = NULL; 6096 if (message_arena != submessage_arena) { 6097 txn = ::google::protobuf::internal::GetOwnedMessage( 6098 message_arena, txn, submessage_arena); 6099 } 6100 6101 } else { 6102 6103 } 6104 txn_ = txn; 6105 // @@protoc_insertion_point(field_set_allocated:cockroach.roachpb.LeafTxnInputState.txn) 6106 } 6107 6108 // bool refresh_invalid = 7; 6109 inline void LeafTxnInputState::clear_refresh_invalid() { 6110 refresh_invalid_ = false; 6111 } 6112 inline bool LeafTxnInputState::refresh_invalid() const { 6113 // @@protoc_insertion_point(field_get:cockroach.roachpb.LeafTxnInputState.refresh_invalid) 6114 return refresh_invalid_; 6115 } 6116 inline void LeafTxnInputState::set_refresh_invalid(bool value) { 6117 6118 refresh_invalid_ = value; 6119 // @@protoc_insertion_point(field_set:cockroach.roachpb.LeafTxnInputState.refresh_invalid) 6120 } 6121 6122 inline int LeafTxnInputState::in_flight_writes_size() const { 6123 return in_flight_writes_.size(); 6124 } 6125 inline void LeafTxnInputState::clear_in_flight_writes() { 6126 in_flight_writes_.Clear(); 6127 } 6128 inline ::cockroach::roachpb::SequencedWrite* LeafTxnInputState::mutable_in_flight_writes(int index) { 6129 // @@protoc_insertion_point(field_mutable:cockroach.roachpb.LeafTxnInputState.in_flight_writes) 6130 return in_flight_writes_.Mutable(index); 6131 } 6132 inline ::google::protobuf::RepeatedPtrField< ::cockroach::roachpb::SequencedWrite >* 6133 LeafTxnInputState::mutable_in_flight_writes() { 6134 // @@protoc_insertion_point(field_mutable_list:cockroach.roachpb.LeafTxnInputState.in_flight_writes) 6135 return &in_flight_writes_; 6136 } 6137 inline const ::cockroach::roachpb::SequencedWrite& LeafTxnInputState::in_flight_writes(int index) const { 6138 // @@protoc_insertion_point(field_get:cockroach.roachpb.LeafTxnInputState.in_flight_writes) 6139 return in_flight_writes_.Get(index); 6140 } 6141 inline ::cockroach::roachpb::SequencedWrite* LeafTxnInputState::add_in_flight_writes() { 6142 // @@protoc_insertion_point(field_add:cockroach.roachpb.LeafTxnInputState.in_flight_writes) 6143 return in_flight_writes_.Add(); 6144 } 6145 inline const ::google::protobuf::RepeatedPtrField< ::cockroach::roachpb::SequencedWrite >& 6146 LeafTxnInputState::in_flight_writes() const { 6147 // @@protoc_insertion_point(field_list:cockroach.roachpb.LeafTxnInputState.in_flight_writes) 6148 return in_flight_writes_; 6149 } 6150 6151 // bool stepping_mode_enabled = 9; 6152 inline void LeafTxnInputState::clear_stepping_mode_enabled() { 6153 stepping_mode_enabled_ = false; 6154 } 6155 inline bool LeafTxnInputState::stepping_mode_enabled() const { 6156 // @@protoc_insertion_point(field_get:cockroach.roachpb.LeafTxnInputState.stepping_mode_enabled) 6157 return stepping_mode_enabled_; 6158 } 6159 inline void LeafTxnInputState::set_stepping_mode_enabled(bool value) { 6160 6161 stepping_mode_enabled_ = value; 6162 // @@protoc_insertion_point(field_set:cockroach.roachpb.LeafTxnInputState.stepping_mode_enabled) 6163 } 6164 6165 inline void LeafTxnInputState::clear_read_seq_num() { 6166 read_seq_num_ = 0; 6167 } 6168 inline ::google::protobuf::int32 LeafTxnInputState::read_seq_num() const { 6169 // @@protoc_insertion_point(field_get:cockroach.roachpb.LeafTxnInputState.read_seq_num) 6170 return read_seq_num_; 6171 } 6172 inline void LeafTxnInputState::set_read_seq_num(::google::protobuf::int32 value) { 6173 6174 read_seq_num_ = value; 6175 // @@protoc_insertion_point(field_set:cockroach.roachpb.LeafTxnInputState.read_seq_num) 6176 } 6177 6178 // ------------------------------------------------------------------- 6179 6180 // LeafTxnFinalState 6181 6182 inline bool LeafTxnFinalState::has_txn() const { 6183 return this != internal_default_instance() && txn_ != NULL; 6184 } 6185 inline void LeafTxnFinalState::clear_txn() { 6186 if (GetArenaNoVirtual() == NULL && txn_ != NULL) { 6187 delete txn_; 6188 } 6189 txn_ = NULL; 6190 } 6191 inline const ::cockroach::roachpb::Transaction& LeafTxnFinalState::_internal_txn() const { 6192 return *txn_; 6193 } 6194 inline const ::cockroach::roachpb::Transaction& LeafTxnFinalState::txn() const { 6195 const ::cockroach::roachpb::Transaction* p = txn_; 6196 // @@protoc_insertion_point(field_get:cockroach.roachpb.LeafTxnFinalState.txn) 6197 return p != NULL ? *p : *reinterpret_cast<const ::cockroach::roachpb::Transaction*>( 6198 &::cockroach::roachpb::_Transaction_default_instance_); 6199 } 6200 inline ::cockroach::roachpb::Transaction* LeafTxnFinalState::release_txn() { 6201 // @@protoc_insertion_point(field_release:cockroach.roachpb.LeafTxnFinalState.txn) 6202 6203 ::cockroach::roachpb::Transaction* temp = txn_; 6204 txn_ = NULL; 6205 return temp; 6206 } 6207 inline ::cockroach::roachpb::Transaction* LeafTxnFinalState::mutable_txn() { 6208 6209 if (txn_ == NULL) { 6210 auto* p = CreateMaybeMessage<::cockroach::roachpb::Transaction>(GetArenaNoVirtual()); 6211 txn_ = p; 6212 } 6213 // @@protoc_insertion_point(field_mutable:cockroach.roachpb.LeafTxnFinalState.txn) 6214 return txn_; 6215 } 6216 inline void LeafTxnFinalState::set_allocated_txn(::cockroach::roachpb::Transaction* txn) { 6217 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); 6218 if (message_arena == NULL) { 6219 delete txn_; 6220 } 6221 if (txn) { 6222 ::google::protobuf::Arena* submessage_arena = NULL; 6223 if (message_arena != submessage_arena) { 6224 txn = ::google::protobuf::internal::GetOwnedMessage( 6225 message_arena, txn, submessage_arena); 6226 } 6227 6228 } else { 6229 6230 } 6231 txn_ = txn; 6232 // @@protoc_insertion_point(field_set_allocated:cockroach.roachpb.LeafTxnFinalState.txn) 6233 } 6234 6235 // int32 deprecated_command_count = 3; 6236 inline void LeafTxnFinalState::clear_deprecated_command_count() { 6237 deprecated_command_count_ = 0; 6238 } 6239 inline ::google::protobuf::int32 LeafTxnFinalState::deprecated_command_count() const { 6240 // @@protoc_insertion_point(field_get:cockroach.roachpb.LeafTxnFinalState.deprecated_command_count) 6241 return deprecated_command_count_; 6242 } 6243 inline void LeafTxnFinalState::set_deprecated_command_count(::google::protobuf::int32 value) { 6244 6245 deprecated_command_count_ = value; 6246 // @@protoc_insertion_point(field_set:cockroach.roachpb.LeafTxnFinalState.deprecated_command_count) 6247 } 6248 6249 inline int LeafTxnFinalState::refresh_spans_size() const { 6250 return refresh_spans_.size(); 6251 } 6252 inline void LeafTxnFinalState::clear_refresh_spans() { 6253 refresh_spans_.Clear(); 6254 } 6255 inline ::cockroach::roachpb::Span* LeafTxnFinalState::mutable_refresh_spans(int index) { 6256 // @@protoc_insertion_point(field_mutable:cockroach.roachpb.LeafTxnFinalState.refresh_spans) 6257 return refresh_spans_.Mutable(index); 6258 } 6259 inline ::google::protobuf::RepeatedPtrField< ::cockroach::roachpb::Span >* 6260 LeafTxnFinalState::mutable_refresh_spans() { 6261 // @@protoc_insertion_point(field_mutable_list:cockroach.roachpb.LeafTxnFinalState.refresh_spans) 6262 return &refresh_spans_; 6263 } 6264 inline const ::cockroach::roachpb::Span& LeafTxnFinalState::refresh_spans(int index) const { 6265 // @@protoc_insertion_point(field_get:cockroach.roachpb.LeafTxnFinalState.refresh_spans) 6266 return refresh_spans_.Get(index); 6267 } 6268 inline ::cockroach::roachpb::Span* LeafTxnFinalState::add_refresh_spans() { 6269 // @@protoc_insertion_point(field_add:cockroach.roachpb.LeafTxnFinalState.refresh_spans) 6270 return refresh_spans_.Add(); 6271 } 6272 inline const ::google::protobuf::RepeatedPtrField< ::cockroach::roachpb::Span >& 6273 LeafTxnFinalState::refresh_spans() const { 6274 // @@protoc_insertion_point(field_list:cockroach.roachpb.LeafTxnFinalState.refresh_spans) 6275 return refresh_spans_; 6276 } 6277 6278 // bool refresh_invalid = 7; 6279 inline void LeafTxnFinalState::clear_refresh_invalid() { 6280 refresh_invalid_ = false; 6281 } 6282 inline bool LeafTxnFinalState::refresh_invalid() const { 6283 // @@protoc_insertion_point(field_get:cockroach.roachpb.LeafTxnFinalState.refresh_invalid) 6284 return refresh_invalid_; 6285 } 6286 inline void LeafTxnFinalState::set_refresh_invalid(bool value) { 6287 6288 refresh_invalid_ = value; 6289 // @@protoc_insertion_point(field_set:cockroach.roachpb.LeafTxnFinalState.refresh_invalid) 6290 } 6291 6292 #ifdef __GNUC__ 6293 #pragma GCC diagnostic pop 6294 #endif // __GNUC__ 6295 // ------------------------------------------------------------------- 6296 6297 // ------------------------------------------------------------------- 6298 6299 // ------------------------------------------------------------------- 6300 6301 // ------------------------------------------------------------------- 6302 6303 // ------------------------------------------------------------------- 6304 6305 // ------------------------------------------------------------------- 6306 6307 // ------------------------------------------------------------------- 6308 6309 // ------------------------------------------------------------------- 6310 6311 // ------------------------------------------------------------------- 6312 6313 // ------------------------------------------------------------------- 6314 6315 // ------------------------------------------------------------------- 6316 6317 // ------------------------------------------------------------------- 6318 6319 // ------------------------------------------------------------------- 6320 6321 // ------------------------------------------------------------------- 6322 6323 // ------------------------------------------------------------------- 6324 6325 // ------------------------------------------------------------------- 6326 6327 // ------------------------------------------------------------------- 6328 6329 // ------------------------------------------------------------------- 6330 6331 // ------------------------------------------------------------------- 6332 6333 // ------------------------------------------------------------------- 6334 6335 // ------------------------------------------------------------------- 6336 6337 6338 // @@protoc_insertion_point(namespace_scope) 6339 6340 } // namespace roachpb 6341 } // namespace cockroach 6342 6343 namespace google { 6344 namespace protobuf { 6345 6346 template <> struct is_proto_enum< ::cockroach::roachpb::ValueType> : ::std::true_type {}; 6347 template <> struct is_proto_enum< ::cockroach::roachpb::ReplicaChangeType> : ::std::true_type {}; 6348 template <> struct is_proto_enum< ::cockroach::roachpb::TransactionStatus> : ::std::true_type {}; 6349 6350 } // namespace protobuf 6351 } // namespace google 6352 6353 // @@protoc_insertion_point(global_scope) 6354 6355 #endif // PROTOBUF_INCLUDED_roachpb_2fdata_2eproto