github.com/cockroachdb/cockroach@v20.2.0-alpha.1+incompatible/c-deps/libroach/protos/roachpb/errors.pb.h (about) 1 // Generated by the protocol buffer compiler. DO NOT EDIT! 2 // source: roachpb/errors.proto 3 4 #ifndef PROTOBUF_INCLUDED_roachpb_2ferrors_2eproto 5 #define PROTOBUF_INCLUDED_roachpb_2ferrors_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 "roachpb/data.pb.h" 34 #include "roachpb/metadata.pb.h" 35 #include "util/hlc/timestamp.pb.h" 36 // @@protoc_insertion_point(includes) 37 #define PROTOBUF_INTERNAL_EXPORT_protobuf_roachpb_2ferrors_2eproto 38 39 namespace protobuf_roachpb_2ferrors_2eproto { 40 // Internal implementation detail -- do not use these members. 41 struct TableStruct { 42 static const ::google::protobuf::internal::ParseTableField entries[]; 43 static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; 44 static const ::google::protobuf::internal::ParseTable schema[33]; 45 static const ::google::protobuf::internal::FieldMetadata field_metadata[]; 46 static const ::google::protobuf::internal::SerializationTable serialization_table[]; 47 static const ::google::protobuf::uint32 offsets[]; 48 }; 49 } // namespace protobuf_roachpb_2ferrors_2eproto 50 namespace cockroach { 51 namespace roachpb { 52 class AmbiguousResultError; 53 class AmbiguousResultErrorDefaultTypeInternal; 54 extern AmbiguousResultErrorDefaultTypeInternal _AmbiguousResultError_default_instance_; 55 class BatchTimestampBeforeGCError; 56 class BatchTimestampBeforeGCErrorDefaultTypeInternal; 57 extern BatchTimestampBeforeGCErrorDefaultTypeInternal _BatchTimestampBeforeGCError_default_instance_; 58 class ConditionFailedError; 59 class ConditionFailedErrorDefaultTypeInternal; 60 extern ConditionFailedErrorDefaultTypeInternal _ConditionFailedError_default_instance_; 61 class ErrPosition; 62 class ErrPositionDefaultTypeInternal; 63 extern ErrPositionDefaultTypeInternal _ErrPosition_default_instance_; 64 class Error; 65 class ErrorDefaultTypeInternal; 66 extern ErrorDefaultTypeInternal _Error_default_instance_; 67 class ErrorDetail; 68 class ErrorDetailDefaultTypeInternal; 69 extern ErrorDetailDefaultTypeInternal _ErrorDetail_default_instance_; 70 class IndeterminateCommitError; 71 class IndeterminateCommitErrorDefaultTypeInternal; 72 extern IndeterminateCommitErrorDefaultTypeInternal _IndeterminateCommitError_default_instance_; 73 class IntegerOverflowError; 74 class IntegerOverflowErrorDefaultTypeInternal; 75 extern IntegerOverflowErrorDefaultTypeInternal _IntegerOverflowError_default_instance_; 76 class IntentMissingError; 77 class IntentMissingErrorDefaultTypeInternal; 78 extern IntentMissingErrorDefaultTypeInternal _IntentMissingError_default_instance_; 79 class LeaseRejectedError; 80 class LeaseRejectedErrorDefaultTypeInternal; 81 extern LeaseRejectedErrorDefaultTypeInternal _LeaseRejectedError_default_instance_; 82 class MergeInProgressError; 83 class MergeInProgressErrorDefaultTypeInternal; 84 extern MergeInProgressErrorDefaultTypeInternal _MergeInProgressError_default_instance_; 85 class NodeUnavailableError; 86 class NodeUnavailableErrorDefaultTypeInternal; 87 extern NodeUnavailableErrorDefaultTypeInternal _NodeUnavailableError_default_instance_; 88 class NotLeaseHolderError; 89 class NotLeaseHolderErrorDefaultTypeInternal; 90 extern NotLeaseHolderErrorDefaultTypeInternal _NotLeaseHolderError_default_instance_; 91 class OpRequiresTxnError; 92 class OpRequiresTxnErrorDefaultTypeInternal; 93 extern OpRequiresTxnErrorDefaultTypeInternal _OpRequiresTxnError_default_instance_; 94 class RaftGroupDeletedError; 95 class RaftGroupDeletedErrorDefaultTypeInternal; 96 extern RaftGroupDeletedErrorDefaultTypeInternal _RaftGroupDeletedError_default_instance_; 97 class RangeFeedRetryError; 98 class RangeFeedRetryErrorDefaultTypeInternal; 99 extern RangeFeedRetryErrorDefaultTypeInternal _RangeFeedRetryError_default_instance_; 100 class RangeKeyMismatchError; 101 class RangeKeyMismatchErrorDefaultTypeInternal; 102 extern RangeKeyMismatchErrorDefaultTypeInternal _RangeKeyMismatchError_default_instance_; 103 class RangeNotFoundError; 104 class RangeNotFoundErrorDefaultTypeInternal; 105 extern RangeNotFoundErrorDefaultTypeInternal _RangeNotFoundError_default_instance_; 106 class ReadWithinUncertaintyIntervalError; 107 class ReadWithinUncertaintyIntervalErrorDefaultTypeInternal; 108 extern ReadWithinUncertaintyIntervalErrorDefaultTypeInternal _ReadWithinUncertaintyIntervalError_default_instance_; 109 class ReplicaCorruptionError; 110 class ReplicaCorruptionErrorDefaultTypeInternal; 111 extern ReplicaCorruptionErrorDefaultTypeInternal _ReplicaCorruptionError_default_instance_; 112 class ReplicaTooOldError; 113 class ReplicaTooOldErrorDefaultTypeInternal; 114 extern ReplicaTooOldErrorDefaultTypeInternal _ReplicaTooOldError_default_instance_; 115 class SendError; 116 class SendErrorDefaultTypeInternal; 117 extern SendErrorDefaultTypeInternal _SendError_default_instance_; 118 class StoreNotFoundError; 119 class StoreNotFoundErrorDefaultTypeInternal; 120 extern StoreNotFoundErrorDefaultTypeInternal _StoreNotFoundError_default_instance_; 121 class TransactionAbortedError; 122 class TransactionAbortedErrorDefaultTypeInternal; 123 extern TransactionAbortedErrorDefaultTypeInternal _TransactionAbortedError_default_instance_; 124 class TransactionPushError; 125 class TransactionPushErrorDefaultTypeInternal; 126 extern TransactionPushErrorDefaultTypeInternal _TransactionPushError_default_instance_; 127 class TransactionRetryError; 128 class TransactionRetryErrorDefaultTypeInternal; 129 extern TransactionRetryErrorDefaultTypeInternal _TransactionRetryError_default_instance_; 130 class TransactionRetryWithProtoRefreshError; 131 class TransactionRetryWithProtoRefreshErrorDefaultTypeInternal; 132 extern TransactionRetryWithProtoRefreshErrorDefaultTypeInternal _TransactionRetryWithProtoRefreshError_default_instance_; 133 class TransactionStatusError; 134 class TransactionStatusErrorDefaultTypeInternal; 135 extern TransactionStatusErrorDefaultTypeInternal _TransactionStatusError_default_instance_; 136 class TxnAlreadyEncounteredErrorError; 137 class TxnAlreadyEncounteredErrorErrorDefaultTypeInternal; 138 extern TxnAlreadyEncounteredErrorErrorDefaultTypeInternal _TxnAlreadyEncounteredErrorError_default_instance_; 139 class UnhandledRetryableError; 140 class UnhandledRetryableErrorDefaultTypeInternal; 141 extern UnhandledRetryableErrorDefaultTypeInternal _UnhandledRetryableError_default_instance_; 142 class UnsupportedRequestError; 143 class UnsupportedRequestErrorDefaultTypeInternal; 144 extern UnsupportedRequestErrorDefaultTypeInternal _UnsupportedRequestError_default_instance_; 145 class WriteIntentError; 146 class WriteIntentErrorDefaultTypeInternal; 147 extern WriteIntentErrorDefaultTypeInternal _WriteIntentError_default_instance_; 148 class WriteTooOldError; 149 class WriteTooOldErrorDefaultTypeInternal; 150 extern WriteTooOldErrorDefaultTypeInternal _WriteTooOldError_default_instance_; 151 } // namespace roachpb 152 } // namespace cockroach 153 namespace google { 154 namespace protobuf { 155 template<> ::cockroach::roachpb::AmbiguousResultError* Arena::CreateMaybeMessage<::cockroach::roachpb::AmbiguousResultError>(Arena*); 156 template<> ::cockroach::roachpb::BatchTimestampBeforeGCError* Arena::CreateMaybeMessage<::cockroach::roachpb::BatchTimestampBeforeGCError>(Arena*); 157 template<> ::cockroach::roachpb::ConditionFailedError* Arena::CreateMaybeMessage<::cockroach::roachpb::ConditionFailedError>(Arena*); 158 template<> ::cockroach::roachpb::ErrPosition* Arena::CreateMaybeMessage<::cockroach::roachpb::ErrPosition>(Arena*); 159 template<> ::cockroach::roachpb::Error* Arena::CreateMaybeMessage<::cockroach::roachpb::Error>(Arena*); 160 template<> ::cockroach::roachpb::ErrorDetail* Arena::CreateMaybeMessage<::cockroach::roachpb::ErrorDetail>(Arena*); 161 template<> ::cockroach::roachpb::IndeterminateCommitError* Arena::CreateMaybeMessage<::cockroach::roachpb::IndeterminateCommitError>(Arena*); 162 template<> ::cockroach::roachpb::IntegerOverflowError* Arena::CreateMaybeMessage<::cockroach::roachpb::IntegerOverflowError>(Arena*); 163 template<> ::cockroach::roachpb::IntentMissingError* Arena::CreateMaybeMessage<::cockroach::roachpb::IntentMissingError>(Arena*); 164 template<> ::cockroach::roachpb::LeaseRejectedError* Arena::CreateMaybeMessage<::cockroach::roachpb::LeaseRejectedError>(Arena*); 165 template<> ::cockroach::roachpb::MergeInProgressError* Arena::CreateMaybeMessage<::cockroach::roachpb::MergeInProgressError>(Arena*); 166 template<> ::cockroach::roachpb::NodeUnavailableError* Arena::CreateMaybeMessage<::cockroach::roachpb::NodeUnavailableError>(Arena*); 167 template<> ::cockroach::roachpb::NotLeaseHolderError* Arena::CreateMaybeMessage<::cockroach::roachpb::NotLeaseHolderError>(Arena*); 168 template<> ::cockroach::roachpb::OpRequiresTxnError* Arena::CreateMaybeMessage<::cockroach::roachpb::OpRequiresTxnError>(Arena*); 169 template<> ::cockroach::roachpb::RaftGroupDeletedError* Arena::CreateMaybeMessage<::cockroach::roachpb::RaftGroupDeletedError>(Arena*); 170 template<> ::cockroach::roachpb::RangeFeedRetryError* Arena::CreateMaybeMessage<::cockroach::roachpb::RangeFeedRetryError>(Arena*); 171 template<> ::cockroach::roachpb::RangeKeyMismatchError* Arena::CreateMaybeMessage<::cockroach::roachpb::RangeKeyMismatchError>(Arena*); 172 template<> ::cockroach::roachpb::RangeNotFoundError* Arena::CreateMaybeMessage<::cockroach::roachpb::RangeNotFoundError>(Arena*); 173 template<> ::cockroach::roachpb::ReadWithinUncertaintyIntervalError* Arena::CreateMaybeMessage<::cockroach::roachpb::ReadWithinUncertaintyIntervalError>(Arena*); 174 template<> ::cockroach::roachpb::ReplicaCorruptionError* Arena::CreateMaybeMessage<::cockroach::roachpb::ReplicaCorruptionError>(Arena*); 175 template<> ::cockroach::roachpb::ReplicaTooOldError* Arena::CreateMaybeMessage<::cockroach::roachpb::ReplicaTooOldError>(Arena*); 176 template<> ::cockroach::roachpb::SendError* Arena::CreateMaybeMessage<::cockroach::roachpb::SendError>(Arena*); 177 template<> ::cockroach::roachpb::StoreNotFoundError* Arena::CreateMaybeMessage<::cockroach::roachpb::StoreNotFoundError>(Arena*); 178 template<> ::cockroach::roachpb::TransactionAbortedError* Arena::CreateMaybeMessage<::cockroach::roachpb::TransactionAbortedError>(Arena*); 179 template<> ::cockroach::roachpb::TransactionPushError* Arena::CreateMaybeMessage<::cockroach::roachpb::TransactionPushError>(Arena*); 180 template<> ::cockroach::roachpb::TransactionRetryError* Arena::CreateMaybeMessage<::cockroach::roachpb::TransactionRetryError>(Arena*); 181 template<> ::cockroach::roachpb::TransactionRetryWithProtoRefreshError* Arena::CreateMaybeMessage<::cockroach::roachpb::TransactionRetryWithProtoRefreshError>(Arena*); 182 template<> ::cockroach::roachpb::TransactionStatusError* Arena::CreateMaybeMessage<::cockroach::roachpb::TransactionStatusError>(Arena*); 183 template<> ::cockroach::roachpb::TxnAlreadyEncounteredErrorError* Arena::CreateMaybeMessage<::cockroach::roachpb::TxnAlreadyEncounteredErrorError>(Arena*); 184 template<> ::cockroach::roachpb::UnhandledRetryableError* Arena::CreateMaybeMessage<::cockroach::roachpb::UnhandledRetryableError>(Arena*); 185 template<> ::cockroach::roachpb::UnsupportedRequestError* Arena::CreateMaybeMessage<::cockroach::roachpb::UnsupportedRequestError>(Arena*); 186 template<> ::cockroach::roachpb::WriteIntentError* Arena::CreateMaybeMessage<::cockroach::roachpb::WriteIntentError>(Arena*); 187 template<> ::cockroach::roachpb::WriteTooOldError* Arena::CreateMaybeMessage<::cockroach::roachpb::WriteTooOldError>(Arena*); 188 } // namespace protobuf 189 } // namespace google 190 namespace cockroach { 191 namespace roachpb { 192 193 enum TransactionStatusError_Reason { 194 TransactionStatusError_Reason_REASON_UNKNOWN = 0, 195 TransactionStatusError_Reason_REASON_TXN_COMMITTED = 2 196 }; 197 bool TransactionStatusError_Reason_IsValid(int value); 198 const TransactionStatusError_Reason TransactionStatusError_Reason_Reason_MIN = TransactionStatusError_Reason_REASON_UNKNOWN; 199 const TransactionStatusError_Reason TransactionStatusError_Reason_Reason_MAX = TransactionStatusError_Reason_REASON_TXN_COMMITTED; 200 const int TransactionStatusError_Reason_Reason_ARRAYSIZE = TransactionStatusError_Reason_Reason_MAX + 1; 201 202 enum RangeFeedRetryError_Reason { 203 RangeFeedRetryError_Reason_REASON_REPLICA_REMOVED = 0, 204 RangeFeedRetryError_Reason_REASON_RANGE_SPLIT = 1, 205 RangeFeedRetryError_Reason_REASON_RANGE_MERGED = 2, 206 RangeFeedRetryError_Reason_REASON_RAFT_SNAPSHOT = 3, 207 RangeFeedRetryError_Reason_REASON_LOGICAL_OPS_MISSING = 4, 208 RangeFeedRetryError_Reason_REASON_SLOW_CONSUMER = 5 209 }; 210 bool RangeFeedRetryError_Reason_IsValid(int value); 211 const RangeFeedRetryError_Reason RangeFeedRetryError_Reason_Reason_MIN = RangeFeedRetryError_Reason_REASON_REPLICA_REMOVED; 212 const RangeFeedRetryError_Reason RangeFeedRetryError_Reason_Reason_MAX = RangeFeedRetryError_Reason_REASON_SLOW_CONSUMER; 213 const int RangeFeedRetryError_Reason_Reason_ARRAYSIZE = RangeFeedRetryError_Reason_Reason_MAX + 1; 214 215 enum TransactionAbortedReason { 216 ABORT_REASON_UNKNOWN = 0, 217 ABORT_REASON_ABORTED_RECORD_FOUND = 1, 218 ABORT_REASON_CLIENT_REJECT = 3, 219 ABORT_REASON_PUSHER_ABORTED = 4, 220 ABORT_REASON_ABORT_SPAN = 5, 221 ABORT_REASON_ALREADY_COMMITTED_OR_ROLLED_BACK_POSSIBLE_REPLAY = 6, 222 ABORT_REASON_NEW_LEASE_PREVENTS_TXN = 8, 223 ABORT_REASON_TIMESTAMP_CACHE_REJECTED = 7 224 }; 225 bool TransactionAbortedReason_IsValid(int value); 226 const TransactionAbortedReason TransactionAbortedReason_MIN = ABORT_REASON_UNKNOWN; 227 const TransactionAbortedReason TransactionAbortedReason_MAX = ABORT_REASON_NEW_LEASE_PREVENTS_TXN; 228 const int TransactionAbortedReason_ARRAYSIZE = TransactionAbortedReason_MAX + 1; 229 230 enum TransactionRetryReason { 231 RETRY_REASON_UNKNOWN = 0, 232 RETRY_WRITE_TOO_OLD = 1, 233 RETRY_SERIALIZABLE = 3, 234 RETRY_ASYNC_WRITE_FAILURE = 5, 235 RETRY_COMMIT_DEADLINE_EXCEEDED = 6 236 }; 237 bool TransactionRetryReason_IsValid(int value); 238 const TransactionRetryReason TransactionRetryReason_MIN = RETRY_REASON_UNKNOWN; 239 const TransactionRetryReason TransactionRetryReason_MAX = RETRY_COMMIT_DEADLINE_EXCEEDED; 240 const int TransactionRetryReason_ARRAYSIZE = TransactionRetryReason_MAX + 1; 241 242 enum TransactionRestart { 243 NONE = 0, 244 BACKOFF = 1, 245 IMMEDIATE = 2 246 }; 247 bool TransactionRestart_IsValid(int value); 248 const TransactionRestart TransactionRestart_MIN = NONE; 249 const TransactionRestart TransactionRestart_MAX = IMMEDIATE; 250 const int TransactionRestart_ARRAYSIZE = TransactionRestart_MAX + 1; 251 252 // =================================================================== 253 254 class NotLeaseHolderError : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:cockroach.roachpb.NotLeaseHolderError) */ { 255 public: 256 NotLeaseHolderError(); 257 virtual ~NotLeaseHolderError(); 258 259 NotLeaseHolderError(const NotLeaseHolderError& from); 260 261 inline NotLeaseHolderError& operator=(const NotLeaseHolderError& from) { 262 CopyFrom(from); 263 return *this; 264 } 265 #if LANG_CXX11 266 NotLeaseHolderError(NotLeaseHolderError&& from) noexcept 267 : NotLeaseHolderError() { 268 *this = ::std::move(from); 269 } 270 271 inline NotLeaseHolderError& operator=(NotLeaseHolderError&& from) noexcept { 272 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { 273 if (this != &from) InternalSwap(&from); 274 } else { 275 CopyFrom(from); 276 } 277 return *this; 278 } 279 #endif 280 inline const ::std::string& unknown_fields() const { 281 return _internal_metadata_.unknown_fields(); 282 } 283 inline ::std::string* mutable_unknown_fields() { 284 return _internal_metadata_.mutable_unknown_fields(); 285 } 286 287 static const NotLeaseHolderError& default_instance(); 288 289 static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY 290 static inline const NotLeaseHolderError* internal_default_instance() { 291 return reinterpret_cast<const NotLeaseHolderError*>( 292 &_NotLeaseHolderError_default_instance_); 293 } 294 static constexpr int kIndexInFileMessages = 295 0; 296 297 void Swap(NotLeaseHolderError* other); 298 friend void swap(NotLeaseHolderError& a, NotLeaseHolderError& b) { 299 a.Swap(&b); 300 } 301 302 // implements Message ---------------------------------------------- 303 304 inline NotLeaseHolderError* New() const final { 305 return CreateMaybeMessage<NotLeaseHolderError>(NULL); 306 } 307 308 NotLeaseHolderError* New(::google::protobuf::Arena* arena) const final { 309 return CreateMaybeMessage<NotLeaseHolderError>(arena); 310 } 311 void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from) 312 final; 313 void CopyFrom(const NotLeaseHolderError& from); 314 void MergeFrom(const NotLeaseHolderError& from); 315 void Clear() final; 316 bool IsInitialized() const final; 317 318 size_t ByteSizeLong() const final; 319 bool MergePartialFromCodedStream( 320 ::google::protobuf::io::CodedInputStream* input) final; 321 void SerializeWithCachedSizes( 322 ::google::protobuf::io::CodedOutputStream* output) const final; 323 void DiscardUnknownFields(); 324 int GetCachedSize() const final { return _cached_size_.Get(); } 325 326 private: 327 void SharedCtor(); 328 void SharedDtor(); 329 void SetCachedSize(int size) const; 330 void InternalSwap(NotLeaseHolderError* other); 331 private: 332 inline ::google::protobuf::Arena* GetArenaNoVirtual() const { 333 return NULL; 334 } 335 inline void* MaybeArenaPtr() const { 336 return NULL; 337 } 338 public: 339 340 ::std::string GetTypeName() const final; 341 342 // nested types ---------------------------------------------------- 343 344 // accessors ------------------------------------------------------- 345 346 bool has_custom_msg() const; 347 void clear_custom_msg(); 348 static const int kCustomMsgFieldNumber = 5; 349 const ::std::string& custom_msg() const; 350 void set_custom_msg(const ::std::string& value); 351 #if LANG_CXX11 352 void set_custom_msg(::std::string&& value); 353 #endif 354 void set_custom_msg(const char* value); 355 void set_custom_msg(const char* value, size_t size); 356 ::std::string* mutable_custom_msg(); 357 ::std::string* release_custom_msg(); 358 void set_allocated_custom_msg(::std::string* custom_msg); 359 360 bool has_replica() const; 361 void clear_replica(); 362 static const int kReplicaFieldNumber = 1; 363 private: 364 const ::cockroach::roachpb::ReplicaDescriptor& _internal_replica() const; 365 public: 366 const ::cockroach::roachpb::ReplicaDescriptor& replica() const; 367 ::cockroach::roachpb::ReplicaDescriptor* release_replica(); 368 ::cockroach::roachpb::ReplicaDescriptor* mutable_replica(); 369 void set_allocated_replica(::cockroach::roachpb::ReplicaDescriptor* replica); 370 371 // optional .cockroach.roachpb.ReplicaDescriptor lease_holder = 2; 372 bool has_lease_holder() const; 373 void clear_lease_holder(); 374 static const int kLeaseHolderFieldNumber = 2; 375 private: 376 const ::cockroach::roachpb::ReplicaDescriptor& _internal_lease_holder() const; 377 public: 378 const ::cockroach::roachpb::ReplicaDescriptor& lease_holder() const; 379 ::cockroach::roachpb::ReplicaDescriptor* release_lease_holder(); 380 ::cockroach::roachpb::ReplicaDescriptor* mutable_lease_holder(); 381 void set_allocated_lease_holder(::cockroach::roachpb::ReplicaDescriptor* lease_holder); 382 383 // optional .cockroach.roachpb.Lease lease = 4; 384 bool has_lease() const; 385 void clear_lease(); 386 static const int kLeaseFieldNumber = 4; 387 private: 388 const ::cockroach::roachpb::Lease& _internal_lease() const; 389 public: 390 const ::cockroach::roachpb::Lease& lease() const; 391 ::cockroach::roachpb::Lease* release_lease(); 392 ::cockroach::roachpb::Lease* mutable_lease(); 393 void set_allocated_lease(::cockroach::roachpb::Lease* lease); 394 395 bool has_range_id() const; 396 void clear_range_id(); 397 static const int kRangeIdFieldNumber = 3; 398 ::google::protobuf::int64 range_id() const; 399 void set_range_id(::google::protobuf::int64 value); 400 401 // @@protoc_insertion_point(class_scope:cockroach.roachpb.NotLeaseHolderError) 402 private: 403 void set_has_replica(); 404 void clear_has_replica(); 405 void set_has_lease_holder(); 406 void clear_has_lease_holder(); 407 void set_has_lease(); 408 void clear_has_lease(); 409 void set_has_range_id(); 410 void clear_has_range_id(); 411 void set_has_custom_msg(); 412 void clear_has_custom_msg(); 413 414 ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; 415 ::google::protobuf::internal::HasBits<1> _has_bits_; 416 mutable ::google::protobuf::internal::CachedSize _cached_size_; 417 ::google::protobuf::internal::ArenaStringPtr custom_msg_; 418 ::cockroach::roachpb::ReplicaDescriptor* replica_; 419 ::cockroach::roachpb::ReplicaDescriptor* lease_holder_; 420 ::cockroach::roachpb::Lease* lease_; 421 ::google::protobuf::int64 range_id_; 422 friend struct ::protobuf_roachpb_2ferrors_2eproto::TableStruct; 423 }; 424 // ------------------------------------------------------------------- 425 426 class NodeUnavailableError : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:cockroach.roachpb.NodeUnavailableError) */ { 427 public: 428 NodeUnavailableError(); 429 virtual ~NodeUnavailableError(); 430 431 NodeUnavailableError(const NodeUnavailableError& from); 432 433 inline NodeUnavailableError& operator=(const NodeUnavailableError& from) { 434 CopyFrom(from); 435 return *this; 436 } 437 #if LANG_CXX11 438 NodeUnavailableError(NodeUnavailableError&& from) noexcept 439 : NodeUnavailableError() { 440 *this = ::std::move(from); 441 } 442 443 inline NodeUnavailableError& operator=(NodeUnavailableError&& from) noexcept { 444 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { 445 if (this != &from) InternalSwap(&from); 446 } else { 447 CopyFrom(from); 448 } 449 return *this; 450 } 451 #endif 452 inline const ::std::string& unknown_fields() const { 453 return _internal_metadata_.unknown_fields(); 454 } 455 inline ::std::string* mutable_unknown_fields() { 456 return _internal_metadata_.mutable_unknown_fields(); 457 } 458 459 static const NodeUnavailableError& default_instance(); 460 461 static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY 462 static inline const NodeUnavailableError* internal_default_instance() { 463 return reinterpret_cast<const NodeUnavailableError*>( 464 &_NodeUnavailableError_default_instance_); 465 } 466 static constexpr int kIndexInFileMessages = 467 1; 468 469 void Swap(NodeUnavailableError* other); 470 friend void swap(NodeUnavailableError& a, NodeUnavailableError& b) { 471 a.Swap(&b); 472 } 473 474 // implements Message ---------------------------------------------- 475 476 inline NodeUnavailableError* New() const final { 477 return CreateMaybeMessage<NodeUnavailableError>(NULL); 478 } 479 480 NodeUnavailableError* New(::google::protobuf::Arena* arena) const final { 481 return CreateMaybeMessage<NodeUnavailableError>(arena); 482 } 483 void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from) 484 final; 485 void CopyFrom(const NodeUnavailableError& from); 486 void MergeFrom(const NodeUnavailableError& from); 487 void Clear() final; 488 bool IsInitialized() const final; 489 490 size_t ByteSizeLong() const final; 491 bool MergePartialFromCodedStream( 492 ::google::protobuf::io::CodedInputStream* input) final; 493 void SerializeWithCachedSizes( 494 ::google::protobuf::io::CodedOutputStream* output) const final; 495 void DiscardUnknownFields(); 496 int GetCachedSize() const final { return _cached_size_.Get(); } 497 498 private: 499 void SharedCtor(); 500 void SharedDtor(); 501 void SetCachedSize(int size) const; 502 void InternalSwap(NodeUnavailableError* other); 503 private: 504 inline ::google::protobuf::Arena* GetArenaNoVirtual() const { 505 return NULL; 506 } 507 inline void* MaybeArenaPtr() const { 508 return NULL; 509 } 510 public: 511 512 ::std::string GetTypeName() const final; 513 514 // nested types ---------------------------------------------------- 515 516 // accessors ------------------------------------------------------- 517 518 // @@protoc_insertion_point(class_scope:cockroach.roachpb.NodeUnavailableError) 519 private: 520 521 ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; 522 ::google::protobuf::internal::HasBits<1> _has_bits_; 523 mutable ::google::protobuf::internal::CachedSize _cached_size_; 524 friend struct ::protobuf_roachpb_2ferrors_2eproto::TableStruct; 525 }; 526 // ------------------------------------------------------------------- 527 528 class UnsupportedRequestError : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:cockroach.roachpb.UnsupportedRequestError) */ { 529 public: 530 UnsupportedRequestError(); 531 virtual ~UnsupportedRequestError(); 532 533 UnsupportedRequestError(const UnsupportedRequestError& from); 534 535 inline UnsupportedRequestError& operator=(const UnsupportedRequestError& from) { 536 CopyFrom(from); 537 return *this; 538 } 539 #if LANG_CXX11 540 UnsupportedRequestError(UnsupportedRequestError&& from) noexcept 541 : UnsupportedRequestError() { 542 *this = ::std::move(from); 543 } 544 545 inline UnsupportedRequestError& operator=(UnsupportedRequestError&& from) noexcept { 546 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { 547 if (this != &from) InternalSwap(&from); 548 } else { 549 CopyFrom(from); 550 } 551 return *this; 552 } 553 #endif 554 inline const ::std::string& unknown_fields() const { 555 return _internal_metadata_.unknown_fields(); 556 } 557 inline ::std::string* mutable_unknown_fields() { 558 return _internal_metadata_.mutable_unknown_fields(); 559 } 560 561 static const UnsupportedRequestError& default_instance(); 562 563 static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY 564 static inline const UnsupportedRequestError* internal_default_instance() { 565 return reinterpret_cast<const UnsupportedRequestError*>( 566 &_UnsupportedRequestError_default_instance_); 567 } 568 static constexpr int kIndexInFileMessages = 569 2; 570 571 void Swap(UnsupportedRequestError* other); 572 friend void swap(UnsupportedRequestError& a, UnsupportedRequestError& b) { 573 a.Swap(&b); 574 } 575 576 // implements Message ---------------------------------------------- 577 578 inline UnsupportedRequestError* New() const final { 579 return CreateMaybeMessage<UnsupportedRequestError>(NULL); 580 } 581 582 UnsupportedRequestError* New(::google::protobuf::Arena* arena) const final { 583 return CreateMaybeMessage<UnsupportedRequestError>(arena); 584 } 585 void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from) 586 final; 587 void CopyFrom(const UnsupportedRequestError& from); 588 void MergeFrom(const UnsupportedRequestError& from); 589 void Clear() final; 590 bool IsInitialized() const final; 591 592 size_t ByteSizeLong() const final; 593 bool MergePartialFromCodedStream( 594 ::google::protobuf::io::CodedInputStream* input) final; 595 void SerializeWithCachedSizes( 596 ::google::protobuf::io::CodedOutputStream* output) const final; 597 void DiscardUnknownFields(); 598 int GetCachedSize() const final { return _cached_size_.Get(); } 599 600 private: 601 void SharedCtor(); 602 void SharedDtor(); 603 void SetCachedSize(int size) const; 604 void InternalSwap(UnsupportedRequestError* other); 605 private: 606 inline ::google::protobuf::Arena* GetArenaNoVirtual() const { 607 return NULL; 608 } 609 inline void* MaybeArenaPtr() const { 610 return NULL; 611 } 612 public: 613 614 ::std::string GetTypeName() const final; 615 616 // nested types ---------------------------------------------------- 617 618 // accessors ------------------------------------------------------- 619 620 // @@protoc_insertion_point(class_scope:cockroach.roachpb.UnsupportedRequestError) 621 private: 622 623 ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; 624 ::google::protobuf::internal::HasBits<1> _has_bits_; 625 mutable ::google::protobuf::internal::CachedSize _cached_size_; 626 friend struct ::protobuf_roachpb_2ferrors_2eproto::TableStruct; 627 }; 628 // ------------------------------------------------------------------- 629 630 class RangeNotFoundError : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:cockroach.roachpb.RangeNotFoundError) */ { 631 public: 632 RangeNotFoundError(); 633 virtual ~RangeNotFoundError(); 634 635 RangeNotFoundError(const RangeNotFoundError& from); 636 637 inline RangeNotFoundError& operator=(const RangeNotFoundError& from) { 638 CopyFrom(from); 639 return *this; 640 } 641 #if LANG_CXX11 642 RangeNotFoundError(RangeNotFoundError&& from) noexcept 643 : RangeNotFoundError() { 644 *this = ::std::move(from); 645 } 646 647 inline RangeNotFoundError& operator=(RangeNotFoundError&& from) noexcept { 648 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { 649 if (this != &from) InternalSwap(&from); 650 } else { 651 CopyFrom(from); 652 } 653 return *this; 654 } 655 #endif 656 inline const ::std::string& unknown_fields() const { 657 return _internal_metadata_.unknown_fields(); 658 } 659 inline ::std::string* mutable_unknown_fields() { 660 return _internal_metadata_.mutable_unknown_fields(); 661 } 662 663 static const RangeNotFoundError& default_instance(); 664 665 static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY 666 static inline const RangeNotFoundError* internal_default_instance() { 667 return reinterpret_cast<const RangeNotFoundError*>( 668 &_RangeNotFoundError_default_instance_); 669 } 670 static constexpr int kIndexInFileMessages = 671 3; 672 673 void Swap(RangeNotFoundError* other); 674 friend void swap(RangeNotFoundError& a, RangeNotFoundError& b) { 675 a.Swap(&b); 676 } 677 678 // implements Message ---------------------------------------------- 679 680 inline RangeNotFoundError* New() const final { 681 return CreateMaybeMessage<RangeNotFoundError>(NULL); 682 } 683 684 RangeNotFoundError* New(::google::protobuf::Arena* arena) const final { 685 return CreateMaybeMessage<RangeNotFoundError>(arena); 686 } 687 void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from) 688 final; 689 void CopyFrom(const RangeNotFoundError& from); 690 void MergeFrom(const RangeNotFoundError& from); 691 void Clear() final; 692 bool IsInitialized() const final; 693 694 size_t ByteSizeLong() const final; 695 bool MergePartialFromCodedStream( 696 ::google::protobuf::io::CodedInputStream* input) final; 697 void SerializeWithCachedSizes( 698 ::google::protobuf::io::CodedOutputStream* output) const final; 699 void DiscardUnknownFields(); 700 int GetCachedSize() const final { return _cached_size_.Get(); } 701 702 private: 703 void SharedCtor(); 704 void SharedDtor(); 705 void SetCachedSize(int size) const; 706 void InternalSwap(RangeNotFoundError* other); 707 private: 708 inline ::google::protobuf::Arena* GetArenaNoVirtual() const { 709 return NULL; 710 } 711 inline void* MaybeArenaPtr() const { 712 return NULL; 713 } 714 public: 715 716 ::std::string GetTypeName() const final; 717 718 // nested types ---------------------------------------------------- 719 720 // accessors ------------------------------------------------------- 721 722 bool has_range_id() const; 723 void clear_range_id(); 724 static const int kRangeIdFieldNumber = 1; 725 ::google::protobuf::int64 range_id() const; 726 void set_range_id(::google::protobuf::int64 value); 727 728 bool has_store_id() const; 729 void clear_store_id(); 730 static const int kStoreIdFieldNumber = 2; 731 ::google::protobuf::int64 store_id() const; 732 void set_store_id(::google::protobuf::int64 value); 733 734 // @@protoc_insertion_point(class_scope:cockroach.roachpb.RangeNotFoundError) 735 private: 736 void set_has_range_id(); 737 void clear_has_range_id(); 738 void set_has_store_id(); 739 void clear_has_store_id(); 740 741 ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; 742 ::google::protobuf::internal::HasBits<1> _has_bits_; 743 mutable ::google::protobuf::internal::CachedSize _cached_size_; 744 ::google::protobuf::int64 range_id_; 745 ::google::protobuf::int64 store_id_; 746 friend struct ::protobuf_roachpb_2ferrors_2eproto::TableStruct; 747 }; 748 // ------------------------------------------------------------------- 749 750 class RangeKeyMismatchError : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:cockroach.roachpb.RangeKeyMismatchError) */ { 751 public: 752 RangeKeyMismatchError(); 753 virtual ~RangeKeyMismatchError(); 754 755 RangeKeyMismatchError(const RangeKeyMismatchError& from); 756 757 inline RangeKeyMismatchError& operator=(const RangeKeyMismatchError& from) { 758 CopyFrom(from); 759 return *this; 760 } 761 #if LANG_CXX11 762 RangeKeyMismatchError(RangeKeyMismatchError&& from) noexcept 763 : RangeKeyMismatchError() { 764 *this = ::std::move(from); 765 } 766 767 inline RangeKeyMismatchError& operator=(RangeKeyMismatchError&& from) noexcept { 768 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { 769 if (this != &from) InternalSwap(&from); 770 } else { 771 CopyFrom(from); 772 } 773 return *this; 774 } 775 #endif 776 inline const ::std::string& unknown_fields() const { 777 return _internal_metadata_.unknown_fields(); 778 } 779 inline ::std::string* mutable_unknown_fields() { 780 return _internal_metadata_.mutable_unknown_fields(); 781 } 782 783 static const RangeKeyMismatchError& default_instance(); 784 785 static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY 786 static inline const RangeKeyMismatchError* internal_default_instance() { 787 return reinterpret_cast<const RangeKeyMismatchError*>( 788 &_RangeKeyMismatchError_default_instance_); 789 } 790 static constexpr int kIndexInFileMessages = 791 4; 792 793 void Swap(RangeKeyMismatchError* other); 794 friend void swap(RangeKeyMismatchError& a, RangeKeyMismatchError& b) { 795 a.Swap(&b); 796 } 797 798 // implements Message ---------------------------------------------- 799 800 inline RangeKeyMismatchError* New() const final { 801 return CreateMaybeMessage<RangeKeyMismatchError>(NULL); 802 } 803 804 RangeKeyMismatchError* New(::google::protobuf::Arena* arena) const final { 805 return CreateMaybeMessage<RangeKeyMismatchError>(arena); 806 } 807 void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from) 808 final; 809 void CopyFrom(const RangeKeyMismatchError& from); 810 void MergeFrom(const RangeKeyMismatchError& from); 811 void Clear() final; 812 bool IsInitialized() const final; 813 814 size_t ByteSizeLong() const final; 815 bool MergePartialFromCodedStream( 816 ::google::protobuf::io::CodedInputStream* input) final; 817 void SerializeWithCachedSizes( 818 ::google::protobuf::io::CodedOutputStream* output) const final; 819 void DiscardUnknownFields(); 820 int GetCachedSize() const final { return _cached_size_.Get(); } 821 822 private: 823 void SharedCtor(); 824 void SharedDtor(); 825 void SetCachedSize(int size) const; 826 void InternalSwap(RangeKeyMismatchError* other); 827 private: 828 inline ::google::protobuf::Arena* GetArenaNoVirtual() const { 829 return NULL; 830 } 831 inline void* MaybeArenaPtr() const { 832 return NULL; 833 } 834 public: 835 836 ::std::string GetTypeName() const final; 837 838 // nested types ---------------------------------------------------- 839 840 // accessors ------------------------------------------------------- 841 842 bool has_request_start_key() const; 843 void clear_request_start_key(); 844 static const int kRequestStartKeyFieldNumber = 1; 845 const ::std::string& request_start_key() const; 846 void set_request_start_key(const ::std::string& value); 847 #if LANG_CXX11 848 void set_request_start_key(::std::string&& value); 849 #endif 850 void set_request_start_key(const char* value); 851 void set_request_start_key(const void* value, size_t size); 852 ::std::string* mutable_request_start_key(); 853 ::std::string* release_request_start_key(); 854 void set_allocated_request_start_key(::std::string* request_start_key); 855 856 bool has_request_end_key() const; 857 void clear_request_end_key(); 858 static const int kRequestEndKeyFieldNumber = 2; 859 const ::std::string& request_end_key() const; 860 void set_request_end_key(const ::std::string& value); 861 #if LANG_CXX11 862 void set_request_end_key(::std::string&& value); 863 #endif 864 void set_request_end_key(const char* value); 865 void set_request_end_key(const void* value, size_t size); 866 ::std::string* mutable_request_end_key(); 867 ::std::string* release_request_end_key(); 868 void set_allocated_request_end_key(::std::string* request_end_key); 869 870 bool has_mismatched_range() const; 871 void clear_mismatched_range(); 872 static const int kMismatchedRangeFieldNumber = 3; 873 private: 874 const ::cockroach::roachpb::RangeDescriptor& _internal_mismatched_range() const; 875 public: 876 const ::cockroach::roachpb::RangeDescriptor& mismatched_range() const; 877 ::cockroach::roachpb::RangeDescriptor* release_mismatched_range(); 878 ::cockroach::roachpb::RangeDescriptor* mutable_mismatched_range(); 879 void set_allocated_mismatched_range(::cockroach::roachpb::RangeDescriptor* mismatched_range); 880 881 // optional .cockroach.roachpb.RangeDescriptor suggested_range = 4; 882 bool has_suggested_range() const; 883 void clear_suggested_range(); 884 static const int kSuggestedRangeFieldNumber = 4; 885 private: 886 const ::cockroach::roachpb::RangeDescriptor& _internal_suggested_range() const; 887 public: 888 const ::cockroach::roachpb::RangeDescriptor& suggested_range() const; 889 ::cockroach::roachpb::RangeDescriptor* release_suggested_range(); 890 ::cockroach::roachpb::RangeDescriptor* mutable_suggested_range(); 891 void set_allocated_suggested_range(::cockroach::roachpb::RangeDescriptor* suggested_range); 892 893 // @@protoc_insertion_point(class_scope:cockroach.roachpb.RangeKeyMismatchError) 894 private: 895 void set_has_request_start_key(); 896 void clear_has_request_start_key(); 897 void set_has_request_end_key(); 898 void clear_has_request_end_key(); 899 void set_has_mismatched_range(); 900 void clear_has_mismatched_range(); 901 void set_has_suggested_range(); 902 void clear_has_suggested_range(); 903 904 ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; 905 ::google::protobuf::internal::HasBits<1> _has_bits_; 906 mutable ::google::protobuf::internal::CachedSize _cached_size_; 907 ::google::protobuf::internal::ArenaStringPtr request_start_key_; 908 ::google::protobuf::internal::ArenaStringPtr request_end_key_; 909 ::cockroach::roachpb::RangeDescriptor* mismatched_range_; 910 ::cockroach::roachpb::RangeDescriptor* suggested_range_; 911 friend struct ::protobuf_roachpb_2ferrors_2eproto::TableStruct; 912 }; 913 // ------------------------------------------------------------------- 914 915 class ReadWithinUncertaintyIntervalError : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:cockroach.roachpb.ReadWithinUncertaintyIntervalError) */ { 916 public: 917 ReadWithinUncertaintyIntervalError(); 918 virtual ~ReadWithinUncertaintyIntervalError(); 919 920 ReadWithinUncertaintyIntervalError(const ReadWithinUncertaintyIntervalError& from); 921 922 inline ReadWithinUncertaintyIntervalError& operator=(const ReadWithinUncertaintyIntervalError& from) { 923 CopyFrom(from); 924 return *this; 925 } 926 #if LANG_CXX11 927 ReadWithinUncertaintyIntervalError(ReadWithinUncertaintyIntervalError&& from) noexcept 928 : ReadWithinUncertaintyIntervalError() { 929 *this = ::std::move(from); 930 } 931 932 inline ReadWithinUncertaintyIntervalError& operator=(ReadWithinUncertaintyIntervalError&& from) noexcept { 933 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { 934 if (this != &from) InternalSwap(&from); 935 } else { 936 CopyFrom(from); 937 } 938 return *this; 939 } 940 #endif 941 inline const ::std::string& unknown_fields() const { 942 return _internal_metadata_.unknown_fields(); 943 } 944 inline ::std::string* mutable_unknown_fields() { 945 return _internal_metadata_.mutable_unknown_fields(); 946 } 947 948 static const ReadWithinUncertaintyIntervalError& default_instance(); 949 950 static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY 951 static inline const ReadWithinUncertaintyIntervalError* internal_default_instance() { 952 return reinterpret_cast<const ReadWithinUncertaintyIntervalError*>( 953 &_ReadWithinUncertaintyIntervalError_default_instance_); 954 } 955 static constexpr int kIndexInFileMessages = 956 5; 957 958 void Swap(ReadWithinUncertaintyIntervalError* other); 959 friend void swap(ReadWithinUncertaintyIntervalError& a, ReadWithinUncertaintyIntervalError& b) { 960 a.Swap(&b); 961 } 962 963 // implements Message ---------------------------------------------- 964 965 inline ReadWithinUncertaintyIntervalError* New() const final { 966 return CreateMaybeMessage<ReadWithinUncertaintyIntervalError>(NULL); 967 } 968 969 ReadWithinUncertaintyIntervalError* New(::google::protobuf::Arena* arena) const final { 970 return CreateMaybeMessage<ReadWithinUncertaintyIntervalError>(arena); 971 } 972 void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from) 973 final; 974 void CopyFrom(const ReadWithinUncertaintyIntervalError& from); 975 void MergeFrom(const ReadWithinUncertaintyIntervalError& from); 976 void Clear() final; 977 bool IsInitialized() const final; 978 979 size_t ByteSizeLong() const final; 980 bool MergePartialFromCodedStream( 981 ::google::protobuf::io::CodedInputStream* input) final; 982 void SerializeWithCachedSizes( 983 ::google::protobuf::io::CodedOutputStream* output) const final; 984 void DiscardUnknownFields(); 985 int GetCachedSize() const final { return _cached_size_.Get(); } 986 987 private: 988 void SharedCtor(); 989 void SharedDtor(); 990 void SetCachedSize(int size) const; 991 void InternalSwap(ReadWithinUncertaintyIntervalError* other); 992 private: 993 inline ::google::protobuf::Arena* GetArenaNoVirtual() const { 994 return NULL; 995 } 996 inline void* MaybeArenaPtr() const { 997 return NULL; 998 } 999 public: 1000 1001 ::std::string GetTypeName() const final; 1002 1003 // nested types ---------------------------------------------------- 1004 1005 // accessors ------------------------------------------------------- 1006 1007 int observed_timestamps_size() const; 1008 void clear_observed_timestamps(); 1009 static const int kObservedTimestampsFieldNumber = 4; 1010 ::cockroach::roachpb::ObservedTimestamp* mutable_observed_timestamps(int index); 1011 ::google::protobuf::RepeatedPtrField< ::cockroach::roachpb::ObservedTimestamp >* 1012 mutable_observed_timestamps(); 1013 const ::cockroach::roachpb::ObservedTimestamp& observed_timestamps(int index) const; 1014 ::cockroach::roachpb::ObservedTimestamp* add_observed_timestamps(); 1015 const ::google::protobuf::RepeatedPtrField< ::cockroach::roachpb::ObservedTimestamp >& 1016 observed_timestamps() const; 1017 1018 bool has_read_timestamp() const; 1019 void clear_read_timestamp(); 1020 static const int kReadTimestampFieldNumber = 1; 1021 private: 1022 const ::cockroach::util::hlc::Timestamp& _internal_read_timestamp() const; 1023 public: 1024 const ::cockroach::util::hlc::Timestamp& read_timestamp() const; 1025 ::cockroach::util::hlc::Timestamp* release_read_timestamp(); 1026 ::cockroach::util::hlc::Timestamp* mutable_read_timestamp(); 1027 void set_allocated_read_timestamp(::cockroach::util::hlc::Timestamp* read_timestamp); 1028 1029 bool has_existing_timestamp() const; 1030 void clear_existing_timestamp(); 1031 static const int kExistingTimestampFieldNumber = 2; 1032 private: 1033 const ::cockroach::util::hlc::Timestamp& _internal_existing_timestamp() const; 1034 public: 1035 const ::cockroach::util::hlc::Timestamp& existing_timestamp() const; 1036 ::cockroach::util::hlc::Timestamp* release_existing_timestamp(); 1037 ::cockroach::util::hlc::Timestamp* mutable_existing_timestamp(); 1038 void set_allocated_existing_timestamp(::cockroach::util::hlc::Timestamp* existing_timestamp); 1039 1040 // optional .cockroach.util.hlc.Timestamp max_timestamp = 3; 1041 bool has_max_timestamp() const; 1042 void clear_max_timestamp(); 1043 static const int kMaxTimestampFieldNumber = 3; 1044 private: 1045 const ::cockroach::util::hlc::Timestamp& _internal_max_timestamp() const; 1046 public: 1047 const ::cockroach::util::hlc::Timestamp& max_timestamp() const; 1048 ::cockroach::util::hlc::Timestamp* release_max_timestamp(); 1049 ::cockroach::util::hlc::Timestamp* mutable_max_timestamp(); 1050 void set_allocated_max_timestamp(::cockroach::util::hlc::Timestamp* max_timestamp); 1051 1052 // @@protoc_insertion_point(class_scope:cockroach.roachpb.ReadWithinUncertaintyIntervalError) 1053 private: 1054 void set_has_read_timestamp(); 1055 void clear_has_read_timestamp(); 1056 void set_has_existing_timestamp(); 1057 void clear_has_existing_timestamp(); 1058 void set_has_max_timestamp(); 1059 void clear_has_max_timestamp(); 1060 1061 ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; 1062 ::google::protobuf::internal::HasBits<1> _has_bits_; 1063 mutable ::google::protobuf::internal::CachedSize _cached_size_; 1064 ::google::protobuf::RepeatedPtrField< ::cockroach::roachpb::ObservedTimestamp > observed_timestamps_; 1065 ::cockroach::util::hlc::Timestamp* read_timestamp_; 1066 ::cockroach::util::hlc::Timestamp* existing_timestamp_; 1067 ::cockroach::util::hlc::Timestamp* max_timestamp_; 1068 friend struct ::protobuf_roachpb_2ferrors_2eproto::TableStruct; 1069 }; 1070 // ------------------------------------------------------------------- 1071 1072 class TransactionAbortedError : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:cockroach.roachpb.TransactionAbortedError) */ { 1073 public: 1074 TransactionAbortedError(); 1075 virtual ~TransactionAbortedError(); 1076 1077 TransactionAbortedError(const TransactionAbortedError& from); 1078 1079 inline TransactionAbortedError& operator=(const TransactionAbortedError& from) { 1080 CopyFrom(from); 1081 return *this; 1082 } 1083 #if LANG_CXX11 1084 TransactionAbortedError(TransactionAbortedError&& from) noexcept 1085 : TransactionAbortedError() { 1086 *this = ::std::move(from); 1087 } 1088 1089 inline TransactionAbortedError& operator=(TransactionAbortedError&& from) noexcept { 1090 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { 1091 if (this != &from) InternalSwap(&from); 1092 } else { 1093 CopyFrom(from); 1094 } 1095 return *this; 1096 } 1097 #endif 1098 inline const ::std::string& unknown_fields() const { 1099 return _internal_metadata_.unknown_fields(); 1100 } 1101 inline ::std::string* mutable_unknown_fields() { 1102 return _internal_metadata_.mutable_unknown_fields(); 1103 } 1104 1105 static const TransactionAbortedError& default_instance(); 1106 1107 static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY 1108 static inline const TransactionAbortedError* internal_default_instance() { 1109 return reinterpret_cast<const TransactionAbortedError*>( 1110 &_TransactionAbortedError_default_instance_); 1111 } 1112 static constexpr int kIndexInFileMessages = 1113 6; 1114 1115 void Swap(TransactionAbortedError* other); 1116 friend void swap(TransactionAbortedError& a, TransactionAbortedError& b) { 1117 a.Swap(&b); 1118 } 1119 1120 // implements Message ---------------------------------------------- 1121 1122 inline TransactionAbortedError* New() const final { 1123 return CreateMaybeMessage<TransactionAbortedError>(NULL); 1124 } 1125 1126 TransactionAbortedError* New(::google::protobuf::Arena* arena) const final { 1127 return CreateMaybeMessage<TransactionAbortedError>(arena); 1128 } 1129 void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from) 1130 final; 1131 void CopyFrom(const TransactionAbortedError& from); 1132 void MergeFrom(const TransactionAbortedError& from); 1133 void Clear() final; 1134 bool IsInitialized() const final; 1135 1136 size_t ByteSizeLong() const final; 1137 bool MergePartialFromCodedStream( 1138 ::google::protobuf::io::CodedInputStream* input) final; 1139 void SerializeWithCachedSizes( 1140 ::google::protobuf::io::CodedOutputStream* output) const final; 1141 void DiscardUnknownFields(); 1142 int GetCachedSize() const final { return _cached_size_.Get(); } 1143 1144 private: 1145 void SharedCtor(); 1146 void SharedDtor(); 1147 void SetCachedSize(int size) const; 1148 void InternalSwap(TransactionAbortedError* other); 1149 private: 1150 inline ::google::protobuf::Arena* GetArenaNoVirtual() const { 1151 return NULL; 1152 } 1153 inline void* MaybeArenaPtr() const { 1154 return NULL; 1155 } 1156 public: 1157 1158 ::std::string GetTypeName() const final; 1159 1160 // nested types ---------------------------------------------------- 1161 1162 // accessors ------------------------------------------------------- 1163 1164 bool has_reason() const; 1165 void clear_reason(); 1166 static const int kReasonFieldNumber = 1; 1167 ::cockroach::roachpb::TransactionAbortedReason reason() const; 1168 void set_reason(::cockroach::roachpb::TransactionAbortedReason value); 1169 1170 // @@protoc_insertion_point(class_scope:cockroach.roachpb.TransactionAbortedError) 1171 private: 1172 void set_has_reason(); 1173 void clear_has_reason(); 1174 1175 ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; 1176 ::google::protobuf::internal::HasBits<1> _has_bits_; 1177 mutable ::google::protobuf::internal::CachedSize _cached_size_; 1178 int reason_; 1179 friend struct ::protobuf_roachpb_2ferrors_2eproto::TableStruct; 1180 }; 1181 // ------------------------------------------------------------------- 1182 1183 class TransactionPushError : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:cockroach.roachpb.TransactionPushError) */ { 1184 public: 1185 TransactionPushError(); 1186 virtual ~TransactionPushError(); 1187 1188 TransactionPushError(const TransactionPushError& from); 1189 1190 inline TransactionPushError& operator=(const TransactionPushError& from) { 1191 CopyFrom(from); 1192 return *this; 1193 } 1194 #if LANG_CXX11 1195 TransactionPushError(TransactionPushError&& from) noexcept 1196 : TransactionPushError() { 1197 *this = ::std::move(from); 1198 } 1199 1200 inline TransactionPushError& operator=(TransactionPushError&& from) noexcept { 1201 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { 1202 if (this != &from) InternalSwap(&from); 1203 } else { 1204 CopyFrom(from); 1205 } 1206 return *this; 1207 } 1208 #endif 1209 inline const ::std::string& unknown_fields() const { 1210 return _internal_metadata_.unknown_fields(); 1211 } 1212 inline ::std::string* mutable_unknown_fields() { 1213 return _internal_metadata_.mutable_unknown_fields(); 1214 } 1215 1216 static const TransactionPushError& default_instance(); 1217 1218 static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY 1219 static inline const TransactionPushError* internal_default_instance() { 1220 return reinterpret_cast<const TransactionPushError*>( 1221 &_TransactionPushError_default_instance_); 1222 } 1223 static constexpr int kIndexInFileMessages = 1224 7; 1225 1226 void Swap(TransactionPushError* other); 1227 friend void swap(TransactionPushError& a, TransactionPushError& b) { 1228 a.Swap(&b); 1229 } 1230 1231 // implements Message ---------------------------------------------- 1232 1233 inline TransactionPushError* New() const final { 1234 return CreateMaybeMessage<TransactionPushError>(NULL); 1235 } 1236 1237 TransactionPushError* New(::google::protobuf::Arena* arena) const final { 1238 return CreateMaybeMessage<TransactionPushError>(arena); 1239 } 1240 void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from) 1241 final; 1242 void CopyFrom(const TransactionPushError& from); 1243 void MergeFrom(const TransactionPushError& from); 1244 void Clear() final; 1245 bool IsInitialized() const final; 1246 1247 size_t ByteSizeLong() const final; 1248 bool MergePartialFromCodedStream( 1249 ::google::protobuf::io::CodedInputStream* input) final; 1250 void SerializeWithCachedSizes( 1251 ::google::protobuf::io::CodedOutputStream* output) const final; 1252 void DiscardUnknownFields(); 1253 int GetCachedSize() const final { return _cached_size_.Get(); } 1254 1255 private: 1256 void SharedCtor(); 1257 void SharedDtor(); 1258 void SetCachedSize(int size) const; 1259 void InternalSwap(TransactionPushError* other); 1260 private: 1261 inline ::google::protobuf::Arena* GetArenaNoVirtual() const { 1262 return NULL; 1263 } 1264 inline void* MaybeArenaPtr() const { 1265 return NULL; 1266 } 1267 public: 1268 1269 ::std::string GetTypeName() const final; 1270 1271 // nested types ---------------------------------------------------- 1272 1273 // accessors ------------------------------------------------------- 1274 1275 bool has_pushee_txn() const; 1276 void clear_pushee_txn(); 1277 static const int kPusheeTxnFieldNumber = 1; 1278 private: 1279 const ::cockroach::roachpb::Transaction& _internal_pushee_txn() const; 1280 public: 1281 const ::cockroach::roachpb::Transaction& pushee_txn() const; 1282 ::cockroach::roachpb::Transaction* release_pushee_txn(); 1283 ::cockroach::roachpb::Transaction* mutable_pushee_txn(); 1284 void set_allocated_pushee_txn(::cockroach::roachpb::Transaction* pushee_txn); 1285 1286 // @@protoc_insertion_point(class_scope:cockroach.roachpb.TransactionPushError) 1287 private: 1288 void set_has_pushee_txn(); 1289 void clear_has_pushee_txn(); 1290 1291 ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; 1292 ::google::protobuf::internal::HasBits<1> _has_bits_; 1293 mutable ::google::protobuf::internal::CachedSize _cached_size_; 1294 ::cockroach::roachpb::Transaction* pushee_txn_; 1295 friend struct ::protobuf_roachpb_2ferrors_2eproto::TableStruct; 1296 }; 1297 // ------------------------------------------------------------------- 1298 1299 class TransactionRetryError : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:cockroach.roachpb.TransactionRetryError) */ { 1300 public: 1301 TransactionRetryError(); 1302 virtual ~TransactionRetryError(); 1303 1304 TransactionRetryError(const TransactionRetryError& from); 1305 1306 inline TransactionRetryError& operator=(const TransactionRetryError& from) { 1307 CopyFrom(from); 1308 return *this; 1309 } 1310 #if LANG_CXX11 1311 TransactionRetryError(TransactionRetryError&& from) noexcept 1312 : TransactionRetryError() { 1313 *this = ::std::move(from); 1314 } 1315 1316 inline TransactionRetryError& operator=(TransactionRetryError&& from) noexcept { 1317 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { 1318 if (this != &from) InternalSwap(&from); 1319 } else { 1320 CopyFrom(from); 1321 } 1322 return *this; 1323 } 1324 #endif 1325 inline const ::std::string& unknown_fields() const { 1326 return _internal_metadata_.unknown_fields(); 1327 } 1328 inline ::std::string* mutable_unknown_fields() { 1329 return _internal_metadata_.mutable_unknown_fields(); 1330 } 1331 1332 static const TransactionRetryError& default_instance(); 1333 1334 static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY 1335 static inline const TransactionRetryError* internal_default_instance() { 1336 return reinterpret_cast<const TransactionRetryError*>( 1337 &_TransactionRetryError_default_instance_); 1338 } 1339 static constexpr int kIndexInFileMessages = 1340 8; 1341 1342 void Swap(TransactionRetryError* other); 1343 friend void swap(TransactionRetryError& a, TransactionRetryError& b) { 1344 a.Swap(&b); 1345 } 1346 1347 // implements Message ---------------------------------------------- 1348 1349 inline TransactionRetryError* New() const final { 1350 return CreateMaybeMessage<TransactionRetryError>(NULL); 1351 } 1352 1353 TransactionRetryError* New(::google::protobuf::Arena* arena) const final { 1354 return CreateMaybeMessage<TransactionRetryError>(arena); 1355 } 1356 void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from) 1357 final; 1358 void CopyFrom(const TransactionRetryError& from); 1359 void MergeFrom(const TransactionRetryError& from); 1360 void Clear() final; 1361 bool IsInitialized() const final; 1362 1363 size_t ByteSizeLong() const final; 1364 bool MergePartialFromCodedStream( 1365 ::google::protobuf::io::CodedInputStream* input) final; 1366 void SerializeWithCachedSizes( 1367 ::google::protobuf::io::CodedOutputStream* output) const final; 1368 void DiscardUnknownFields(); 1369 int GetCachedSize() const final { return _cached_size_.Get(); } 1370 1371 private: 1372 void SharedCtor(); 1373 void SharedDtor(); 1374 void SetCachedSize(int size) const; 1375 void InternalSwap(TransactionRetryError* other); 1376 private: 1377 inline ::google::protobuf::Arena* GetArenaNoVirtual() const { 1378 return NULL; 1379 } 1380 inline void* MaybeArenaPtr() const { 1381 return NULL; 1382 } 1383 public: 1384 1385 ::std::string GetTypeName() const final; 1386 1387 // nested types ---------------------------------------------------- 1388 1389 // accessors ------------------------------------------------------- 1390 1391 bool has_extra_msg() const; 1392 void clear_extra_msg(); 1393 static const int kExtraMsgFieldNumber = 2; 1394 const ::std::string& extra_msg() const; 1395 void set_extra_msg(const ::std::string& value); 1396 #if LANG_CXX11 1397 void set_extra_msg(::std::string&& value); 1398 #endif 1399 void set_extra_msg(const char* value); 1400 void set_extra_msg(const char* value, size_t size); 1401 ::std::string* mutable_extra_msg(); 1402 ::std::string* release_extra_msg(); 1403 void set_allocated_extra_msg(::std::string* extra_msg); 1404 1405 bool has_reason() const; 1406 void clear_reason(); 1407 static const int kReasonFieldNumber = 1; 1408 ::cockroach::roachpb::TransactionRetryReason reason() const; 1409 void set_reason(::cockroach::roachpb::TransactionRetryReason value); 1410 1411 // @@protoc_insertion_point(class_scope:cockroach.roachpb.TransactionRetryError) 1412 private: 1413 void set_has_reason(); 1414 void clear_has_reason(); 1415 void set_has_extra_msg(); 1416 void clear_has_extra_msg(); 1417 1418 ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; 1419 ::google::protobuf::internal::HasBits<1> _has_bits_; 1420 mutable ::google::protobuf::internal::CachedSize _cached_size_; 1421 ::google::protobuf::internal::ArenaStringPtr extra_msg_; 1422 int reason_; 1423 friend struct ::protobuf_roachpb_2ferrors_2eproto::TableStruct; 1424 }; 1425 // ------------------------------------------------------------------- 1426 1427 class TransactionStatusError : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:cockroach.roachpb.TransactionStatusError) */ { 1428 public: 1429 TransactionStatusError(); 1430 virtual ~TransactionStatusError(); 1431 1432 TransactionStatusError(const TransactionStatusError& from); 1433 1434 inline TransactionStatusError& operator=(const TransactionStatusError& from) { 1435 CopyFrom(from); 1436 return *this; 1437 } 1438 #if LANG_CXX11 1439 TransactionStatusError(TransactionStatusError&& from) noexcept 1440 : TransactionStatusError() { 1441 *this = ::std::move(from); 1442 } 1443 1444 inline TransactionStatusError& operator=(TransactionStatusError&& from) noexcept { 1445 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { 1446 if (this != &from) InternalSwap(&from); 1447 } else { 1448 CopyFrom(from); 1449 } 1450 return *this; 1451 } 1452 #endif 1453 inline const ::std::string& unknown_fields() const { 1454 return _internal_metadata_.unknown_fields(); 1455 } 1456 inline ::std::string* mutable_unknown_fields() { 1457 return _internal_metadata_.mutable_unknown_fields(); 1458 } 1459 1460 static const TransactionStatusError& default_instance(); 1461 1462 static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY 1463 static inline const TransactionStatusError* internal_default_instance() { 1464 return reinterpret_cast<const TransactionStatusError*>( 1465 &_TransactionStatusError_default_instance_); 1466 } 1467 static constexpr int kIndexInFileMessages = 1468 9; 1469 1470 void Swap(TransactionStatusError* other); 1471 friend void swap(TransactionStatusError& a, TransactionStatusError& b) { 1472 a.Swap(&b); 1473 } 1474 1475 // implements Message ---------------------------------------------- 1476 1477 inline TransactionStatusError* New() const final { 1478 return CreateMaybeMessage<TransactionStatusError>(NULL); 1479 } 1480 1481 TransactionStatusError* New(::google::protobuf::Arena* arena) const final { 1482 return CreateMaybeMessage<TransactionStatusError>(arena); 1483 } 1484 void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from) 1485 final; 1486 void CopyFrom(const TransactionStatusError& from); 1487 void MergeFrom(const TransactionStatusError& from); 1488 void Clear() final; 1489 bool IsInitialized() const final; 1490 1491 size_t ByteSizeLong() const final; 1492 bool MergePartialFromCodedStream( 1493 ::google::protobuf::io::CodedInputStream* input) final; 1494 void SerializeWithCachedSizes( 1495 ::google::protobuf::io::CodedOutputStream* output) const final; 1496 void DiscardUnknownFields(); 1497 int GetCachedSize() const final { return _cached_size_.Get(); } 1498 1499 private: 1500 void SharedCtor(); 1501 void SharedDtor(); 1502 void SetCachedSize(int size) const; 1503 void InternalSwap(TransactionStatusError* other); 1504 private: 1505 inline ::google::protobuf::Arena* GetArenaNoVirtual() const { 1506 return NULL; 1507 } 1508 inline void* MaybeArenaPtr() const { 1509 return NULL; 1510 } 1511 public: 1512 1513 ::std::string GetTypeName() const final; 1514 1515 // nested types ---------------------------------------------------- 1516 1517 typedef TransactionStatusError_Reason Reason; 1518 static const Reason REASON_UNKNOWN = 1519 TransactionStatusError_Reason_REASON_UNKNOWN; 1520 static const Reason REASON_TXN_COMMITTED = 1521 TransactionStatusError_Reason_REASON_TXN_COMMITTED; 1522 static inline bool Reason_IsValid(int value) { 1523 return TransactionStatusError_Reason_IsValid(value); 1524 } 1525 static const Reason Reason_MIN = 1526 TransactionStatusError_Reason_Reason_MIN; 1527 static const Reason Reason_MAX = 1528 TransactionStatusError_Reason_Reason_MAX; 1529 static const int Reason_ARRAYSIZE = 1530 TransactionStatusError_Reason_Reason_ARRAYSIZE; 1531 1532 // accessors ------------------------------------------------------- 1533 1534 bool has_msg() const; 1535 void clear_msg(); 1536 static const int kMsgFieldNumber = 1; 1537 const ::std::string& msg() const; 1538 void set_msg(const ::std::string& value); 1539 #if LANG_CXX11 1540 void set_msg(::std::string&& value); 1541 #endif 1542 void set_msg(const char* value); 1543 void set_msg(const char* value, size_t size); 1544 ::std::string* mutable_msg(); 1545 ::std::string* release_msg(); 1546 void set_allocated_msg(::std::string* msg); 1547 1548 bool has_reason() const; 1549 void clear_reason(); 1550 static const int kReasonFieldNumber = 2; 1551 ::cockroach::roachpb::TransactionStatusError_Reason reason() const; 1552 void set_reason(::cockroach::roachpb::TransactionStatusError_Reason value); 1553 1554 // @@protoc_insertion_point(class_scope:cockroach.roachpb.TransactionStatusError) 1555 private: 1556 void set_has_msg(); 1557 void clear_has_msg(); 1558 void set_has_reason(); 1559 void clear_has_reason(); 1560 1561 ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; 1562 ::google::protobuf::internal::HasBits<1> _has_bits_; 1563 mutable ::google::protobuf::internal::CachedSize _cached_size_; 1564 ::google::protobuf::internal::ArenaStringPtr msg_; 1565 int reason_; 1566 friend struct ::protobuf_roachpb_2ferrors_2eproto::TableStruct; 1567 }; 1568 // ------------------------------------------------------------------- 1569 1570 class WriteIntentError : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:cockroach.roachpb.WriteIntentError) */ { 1571 public: 1572 WriteIntentError(); 1573 virtual ~WriteIntentError(); 1574 1575 WriteIntentError(const WriteIntentError& from); 1576 1577 inline WriteIntentError& operator=(const WriteIntentError& from) { 1578 CopyFrom(from); 1579 return *this; 1580 } 1581 #if LANG_CXX11 1582 WriteIntentError(WriteIntentError&& from) noexcept 1583 : WriteIntentError() { 1584 *this = ::std::move(from); 1585 } 1586 1587 inline WriteIntentError& operator=(WriteIntentError&& from) noexcept { 1588 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { 1589 if (this != &from) InternalSwap(&from); 1590 } else { 1591 CopyFrom(from); 1592 } 1593 return *this; 1594 } 1595 #endif 1596 inline const ::std::string& unknown_fields() const { 1597 return _internal_metadata_.unknown_fields(); 1598 } 1599 inline ::std::string* mutable_unknown_fields() { 1600 return _internal_metadata_.mutable_unknown_fields(); 1601 } 1602 1603 static const WriteIntentError& default_instance(); 1604 1605 static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY 1606 static inline const WriteIntentError* internal_default_instance() { 1607 return reinterpret_cast<const WriteIntentError*>( 1608 &_WriteIntentError_default_instance_); 1609 } 1610 static constexpr int kIndexInFileMessages = 1611 10; 1612 1613 void Swap(WriteIntentError* other); 1614 friend void swap(WriteIntentError& a, WriteIntentError& b) { 1615 a.Swap(&b); 1616 } 1617 1618 // implements Message ---------------------------------------------- 1619 1620 inline WriteIntentError* New() const final { 1621 return CreateMaybeMessage<WriteIntentError>(NULL); 1622 } 1623 1624 WriteIntentError* New(::google::protobuf::Arena* arena) const final { 1625 return CreateMaybeMessage<WriteIntentError>(arena); 1626 } 1627 void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from) 1628 final; 1629 void CopyFrom(const WriteIntentError& from); 1630 void MergeFrom(const WriteIntentError& from); 1631 void Clear() final; 1632 bool IsInitialized() const final; 1633 1634 size_t ByteSizeLong() const final; 1635 bool MergePartialFromCodedStream( 1636 ::google::protobuf::io::CodedInputStream* input) final; 1637 void SerializeWithCachedSizes( 1638 ::google::protobuf::io::CodedOutputStream* output) const final; 1639 void DiscardUnknownFields(); 1640 int GetCachedSize() const final { return _cached_size_.Get(); } 1641 1642 private: 1643 void SharedCtor(); 1644 void SharedDtor(); 1645 void SetCachedSize(int size) const; 1646 void InternalSwap(WriteIntentError* other); 1647 private: 1648 inline ::google::protobuf::Arena* GetArenaNoVirtual() const { 1649 return NULL; 1650 } 1651 inline void* MaybeArenaPtr() const { 1652 return NULL; 1653 } 1654 public: 1655 1656 ::std::string GetTypeName() const final; 1657 1658 // nested types ---------------------------------------------------- 1659 1660 // accessors ------------------------------------------------------- 1661 1662 int intents_size() const; 1663 void clear_intents(); 1664 static const int kIntentsFieldNumber = 1; 1665 ::cockroach::roachpb::Intent* mutable_intents(int index); 1666 ::google::protobuf::RepeatedPtrField< ::cockroach::roachpb::Intent >* 1667 mutable_intents(); 1668 const ::cockroach::roachpb::Intent& intents(int index) const; 1669 ::cockroach::roachpb::Intent* add_intents(); 1670 const ::google::protobuf::RepeatedPtrField< ::cockroach::roachpb::Intent >& 1671 intents() const; 1672 1673 // @@protoc_insertion_point(class_scope:cockroach.roachpb.WriteIntentError) 1674 private: 1675 1676 ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; 1677 ::google::protobuf::internal::HasBits<1> _has_bits_; 1678 mutable ::google::protobuf::internal::CachedSize _cached_size_; 1679 ::google::protobuf::RepeatedPtrField< ::cockroach::roachpb::Intent > intents_; 1680 friend struct ::protobuf_roachpb_2ferrors_2eproto::TableStruct; 1681 }; 1682 // ------------------------------------------------------------------- 1683 1684 class WriteTooOldError : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:cockroach.roachpb.WriteTooOldError) */ { 1685 public: 1686 WriteTooOldError(); 1687 virtual ~WriteTooOldError(); 1688 1689 WriteTooOldError(const WriteTooOldError& from); 1690 1691 inline WriteTooOldError& operator=(const WriteTooOldError& from) { 1692 CopyFrom(from); 1693 return *this; 1694 } 1695 #if LANG_CXX11 1696 WriteTooOldError(WriteTooOldError&& from) noexcept 1697 : WriteTooOldError() { 1698 *this = ::std::move(from); 1699 } 1700 1701 inline WriteTooOldError& operator=(WriteTooOldError&& from) noexcept { 1702 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { 1703 if (this != &from) InternalSwap(&from); 1704 } else { 1705 CopyFrom(from); 1706 } 1707 return *this; 1708 } 1709 #endif 1710 inline const ::std::string& unknown_fields() const { 1711 return _internal_metadata_.unknown_fields(); 1712 } 1713 inline ::std::string* mutable_unknown_fields() { 1714 return _internal_metadata_.mutable_unknown_fields(); 1715 } 1716 1717 static const WriteTooOldError& default_instance(); 1718 1719 static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY 1720 static inline const WriteTooOldError* internal_default_instance() { 1721 return reinterpret_cast<const WriteTooOldError*>( 1722 &_WriteTooOldError_default_instance_); 1723 } 1724 static constexpr int kIndexInFileMessages = 1725 11; 1726 1727 void Swap(WriteTooOldError* other); 1728 friend void swap(WriteTooOldError& a, WriteTooOldError& b) { 1729 a.Swap(&b); 1730 } 1731 1732 // implements Message ---------------------------------------------- 1733 1734 inline WriteTooOldError* New() const final { 1735 return CreateMaybeMessage<WriteTooOldError>(NULL); 1736 } 1737 1738 WriteTooOldError* New(::google::protobuf::Arena* arena) const final { 1739 return CreateMaybeMessage<WriteTooOldError>(arena); 1740 } 1741 void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from) 1742 final; 1743 void CopyFrom(const WriteTooOldError& from); 1744 void MergeFrom(const WriteTooOldError& from); 1745 void Clear() final; 1746 bool IsInitialized() const final; 1747 1748 size_t ByteSizeLong() const final; 1749 bool MergePartialFromCodedStream( 1750 ::google::protobuf::io::CodedInputStream* input) final; 1751 void SerializeWithCachedSizes( 1752 ::google::protobuf::io::CodedOutputStream* output) const final; 1753 void DiscardUnknownFields(); 1754 int GetCachedSize() const final { return _cached_size_.Get(); } 1755 1756 private: 1757 void SharedCtor(); 1758 void SharedDtor(); 1759 void SetCachedSize(int size) const; 1760 void InternalSwap(WriteTooOldError* other); 1761 private: 1762 inline ::google::protobuf::Arena* GetArenaNoVirtual() const { 1763 return NULL; 1764 } 1765 inline void* MaybeArenaPtr() const { 1766 return NULL; 1767 } 1768 public: 1769 1770 ::std::string GetTypeName() const final; 1771 1772 // nested types ---------------------------------------------------- 1773 1774 // accessors ------------------------------------------------------- 1775 1776 bool has_timestamp() const; 1777 void clear_timestamp(); 1778 static const int kTimestampFieldNumber = 1; 1779 private: 1780 const ::cockroach::util::hlc::Timestamp& _internal_timestamp() const; 1781 public: 1782 const ::cockroach::util::hlc::Timestamp& timestamp() const; 1783 ::cockroach::util::hlc::Timestamp* release_timestamp(); 1784 ::cockroach::util::hlc::Timestamp* mutable_timestamp(); 1785 void set_allocated_timestamp(::cockroach::util::hlc::Timestamp* timestamp); 1786 1787 bool has_actual_timestamp() const; 1788 void clear_actual_timestamp(); 1789 static const int kActualTimestampFieldNumber = 2; 1790 private: 1791 const ::cockroach::util::hlc::Timestamp& _internal_actual_timestamp() const; 1792 public: 1793 const ::cockroach::util::hlc::Timestamp& actual_timestamp() const; 1794 ::cockroach::util::hlc::Timestamp* release_actual_timestamp(); 1795 ::cockroach::util::hlc::Timestamp* mutable_actual_timestamp(); 1796 void set_allocated_actual_timestamp(::cockroach::util::hlc::Timestamp* actual_timestamp); 1797 1798 // @@protoc_insertion_point(class_scope:cockroach.roachpb.WriteTooOldError) 1799 private: 1800 void set_has_timestamp(); 1801 void clear_has_timestamp(); 1802 void set_has_actual_timestamp(); 1803 void clear_has_actual_timestamp(); 1804 1805 ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; 1806 ::google::protobuf::internal::HasBits<1> _has_bits_; 1807 mutable ::google::protobuf::internal::CachedSize _cached_size_; 1808 ::cockroach::util::hlc::Timestamp* timestamp_; 1809 ::cockroach::util::hlc::Timestamp* actual_timestamp_; 1810 friend struct ::protobuf_roachpb_2ferrors_2eproto::TableStruct; 1811 }; 1812 // ------------------------------------------------------------------- 1813 1814 class OpRequiresTxnError : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:cockroach.roachpb.OpRequiresTxnError) */ { 1815 public: 1816 OpRequiresTxnError(); 1817 virtual ~OpRequiresTxnError(); 1818 1819 OpRequiresTxnError(const OpRequiresTxnError& from); 1820 1821 inline OpRequiresTxnError& operator=(const OpRequiresTxnError& from) { 1822 CopyFrom(from); 1823 return *this; 1824 } 1825 #if LANG_CXX11 1826 OpRequiresTxnError(OpRequiresTxnError&& from) noexcept 1827 : OpRequiresTxnError() { 1828 *this = ::std::move(from); 1829 } 1830 1831 inline OpRequiresTxnError& operator=(OpRequiresTxnError&& from) noexcept { 1832 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { 1833 if (this != &from) InternalSwap(&from); 1834 } else { 1835 CopyFrom(from); 1836 } 1837 return *this; 1838 } 1839 #endif 1840 inline const ::std::string& unknown_fields() const { 1841 return _internal_metadata_.unknown_fields(); 1842 } 1843 inline ::std::string* mutable_unknown_fields() { 1844 return _internal_metadata_.mutable_unknown_fields(); 1845 } 1846 1847 static const OpRequiresTxnError& default_instance(); 1848 1849 static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY 1850 static inline const OpRequiresTxnError* internal_default_instance() { 1851 return reinterpret_cast<const OpRequiresTxnError*>( 1852 &_OpRequiresTxnError_default_instance_); 1853 } 1854 static constexpr int kIndexInFileMessages = 1855 12; 1856 1857 void Swap(OpRequiresTxnError* other); 1858 friend void swap(OpRequiresTxnError& a, OpRequiresTxnError& b) { 1859 a.Swap(&b); 1860 } 1861 1862 // implements Message ---------------------------------------------- 1863 1864 inline OpRequiresTxnError* New() const final { 1865 return CreateMaybeMessage<OpRequiresTxnError>(NULL); 1866 } 1867 1868 OpRequiresTxnError* New(::google::protobuf::Arena* arena) const final { 1869 return CreateMaybeMessage<OpRequiresTxnError>(arena); 1870 } 1871 void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from) 1872 final; 1873 void CopyFrom(const OpRequiresTxnError& from); 1874 void MergeFrom(const OpRequiresTxnError& from); 1875 void Clear() final; 1876 bool IsInitialized() const final; 1877 1878 size_t ByteSizeLong() const final; 1879 bool MergePartialFromCodedStream( 1880 ::google::protobuf::io::CodedInputStream* input) final; 1881 void SerializeWithCachedSizes( 1882 ::google::protobuf::io::CodedOutputStream* output) const final; 1883 void DiscardUnknownFields(); 1884 int GetCachedSize() const final { return _cached_size_.Get(); } 1885 1886 private: 1887 void SharedCtor(); 1888 void SharedDtor(); 1889 void SetCachedSize(int size) const; 1890 void InternalSwap(OpRequiresTxnError* other); 1891 private: 1892 inline ::google::protobuf::Arena* GetArenaNoVirtual() const { 1893 return NULL; 1894 } 1895 inline void* MaybeArenaPtr() const { 1896 return NULL; 1897 } 1898 public: 1899 1900 ::std::string GetTypeName() const final; 1901 1902 // nested types ---------------------------------------------------- 1903 1904 // accessors ------------------------------------------------------- 1905 1906 // @@protoc_insertion_point(class_scope:cockroach.roachpb.OpRequiresTxnError) 1907 private: 1908 1909 ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; 1910 ::google::protobuf::internal::HasBits<1> _has_bits_; 1911 mutable ::google::protobuf::internal::CachedSize _cached_size_; 1912 friend struct ::protobuf_roachpb_2ferrors_2eproto::TableStruct; 1913 }; 1914 // ------------------------------------------------------------------- 1915 1916 class ConditionFailedError : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:cockroach.roachpb.ConditionFailedError) */ { 1917 public: 1918 ConditionFailedError(); 1919 virtual ~ConditionFailedError(); 1920 1921 ConditionFailedError(const ConditionFailedError& from); 1922 1923 inline ConditionFailedError& operator=(const ConditionFailedError& from) { 1924 CopyFrom(from); 1925 return *this; 1926 } 1927 #if LANG_CXX11 1928 ConditionFailedError(ConditionFailedError&& from) noexcept 1929 : ConditionFailedError() { 1930 *this = ::std::move(from); 1931 } 1932 1933 inline ConditionFailedError& operator=(ConditionFailedError&& from) noexcept { 1934 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { 1935 if (this != &from) InternalSwap(&from); 1936 } else { 1937 CopyFrom(from); 1938 } 1939 return *this; 1940 } 1941 #endif 1942 inline const ::std::string& unknown_fields() const { 1943 return _internal_metadata_.unknown_fields(); 1944 } 1945 inline ::std::string* mutable_unknown_fields() { 1946 return _internal_metadata_.mutable_unknown_fields(); 1947 } 1948 1949 static const ConditionFailedError& default_instance(); 1950 1951 static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY 1952 static inline const ConditionFailedError* internal_default_instance() { 1953 return reinterpret_cast<const ConditionFailedError*>( 1954 &_ConditionFailedError_default_instance_); 1955 } 1956 static constexpr int kIndexInFileMessages = 1957 13; 1958 1959 void Swap(ConditionFailedError* other); 1960 friend void swap(ConditionFailedError& a, ConditionFailedError& b) { 1961 a.Swap(&b); 1962 } 1963 1964 // implements Message ---------------------------------------------- 1965 1966 inline ConditionFailedError* New() const final { 1967 return CreateMaybeMessage<ConditionFailedError>(NULL); 1968 } 1969 1970 ConditionFailedError* New(::google::protobuf::Arena* arena) const final { 1971 return CreateMaybeMessage<ConditionFailedError>(arena); 1972 } 1973 void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from) 1974 final; 1975 void CopyFrom(const ConditionFailedError& from); 1976 void MergeFrom(const ConditionFailedError& from); 1977 void Clear() final; 1978 bool IsInitialized() const final; 1979 1980 size_t ByteSizeLong() const final; 1981 bool MergePartialFromCodedStream( 1982 ::google::protobuf::io::CodedInputStream* input) final; 1983 void SerializeWithCachedSizes( 1984 ::google::protobuf::io::CodedOutputStream* output) const final; 1985 void DiscardUnknownFields(); 1986 int GetCachedSize() const final { return _cached_size_.Get(); } 1987 1988 private: 1989 void SharedCtor(); 1990 void SharedDtor(); 1991 void SetCachedSize(int size) const; 1992 void InternalSwap(ConditionFailedError* other); 1993 private: 1994 inline ::google::protobuf::Arena* GetArenaNoVirtual() const { 1995 return NULL; 1996 } 1997 inline void* MaybeArenaPtr() const { 1998 return NULL; 1999 } 2000 public: 2001 2002 ::std::string GetTypeName() const final; 2003 2004 // nested types ---------------------------------------------------- 2005 2006 // accessors ------------------------------------------------------- 2007 2008 // optional .cockroach.roachpb.Value actual_value = 1; 2009 bool has_actual_value() const; 2010 void clear_actual_value(); 2011 static const int kActualValueFieldNumber = 1; 2012 private: 2013 const ::cockroach::roachpb::Value& _internal_actual_value() const; 2014 public: 2015 const ::cockroach::roachpb::Value& actual_value() const; 2016 ::cockroach::roachpb::Value* release_actual_value(); 2017 ::cockroach::roachpb::Value* mutable_actual_value(); 2018 void set_allocated_actual_value(::cockroach::roachpb::Value* actual_value); 2019 2020 // @@protoc_insertion_point(class_scope:cockroach.roachpb.ConditionFailedError) 2021 private: 2022 void set_has_actual_value(); 2023 void clear_has_actual_value(); 2024 2025 ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; 2026 ::google::protobuf::internal::HasBits<1> _has_bits_; 2027 mutable ::google::protobuf::internal::CachedSize _cached_size_; 2028 ::cockroach::roachpb::Value* actual_value_; 2029 friend struct ::protobuf_roachpb_2ferrors_2eproto::TableStruct; 2030 }; 2031 // ------------------------------------------------------------------- 2032 2033 class LeaseRejectedError : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:cockroach.roachpb.LeaseRejectedError) */ { 2034 public: 2035 LeaseRejectedError(); 2036 virtual ~LeaseRejectedError(); 2037 2038 LeaseRejectedError(const LeaseRejectedError& from); 2039 2040 inline LeaseRejectedError& operator=(const LeaseRejectedError& from) { 2041 CopyFrom(from); 2042 return *this; 2043 } 2044 #if LANG_CXX11 2045 LeaseRejectedError(LeaseRejectedError&& from) noexcept 2046 : LeaseRejectedError() { 2047 *this = ::std::move(from); 2048 } 2049 2050 inline LeaseRejectedError& operator=(LeaseRejectedError&& from) noexcept { 2051 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { 2052 if (this != &from) InternalSwap(&from); 2053 } else { 2054 CopyFrom(from); 2055 } 2056 return *this; 2057 } 2058 #endif 2059 inline const ::std::string& unknown_fields() const { 2060 return _internal_metadata_.unknown_fields(); 2061 } 2062 inline ::std::string* mutable_unknown_fields() { 2063 return _internal_metadata_.mutable_unknown_fields(); 2064 } 2065 2066 static const LeaseRejectedError& default_instance(); 2067 2068 static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY 2069 static inline const LeaseRejectedError* internal_default_instance() { 2070 return reinterpret_cast<const LeaseRejectedError*>( 2071 &_LeaseRejectedError_default_instance_); 2072 } 2073 static constexpr int kIndexInFileMessages = 2074 14; 2075 2076 void Swap(LeaseRejectedError* other); 2077 friend void swap(LeaseRejectedError& a, LeaseRejectedError& b) { 2078 a.Swap(&b); 2079 } 2080 2081 // implements Message ---------------------------------------------- 2082 2083 inline LeaseRejectedError* New() const final { 2084 return CreateMaybeMessage<LeaseRejectedError>(NULL); 2085 } 2086 2087 LeaseRejectedError* New(::google::protobuf::Arena* arena) const final { 2088 return CreateMaybeMessage<LeaseRejectedError>(arena); 2089 } 2090 void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from) 2091 final; 2092 void CopyFrom(const LeaseRejectedError& from); 2093 void MergeFrom(const LeaseRejectedError& from); 2094 void Clear() final; 2095 bool IsInitialized() const final; 2096 2097 size_t ByteSizeLong() const final; 2098 bool MergePartialFromCodedStream( 2099 ::google::protobuf::io::CodedInputStream* input) final; 2100 void SerializeWithCachedSizes( 2101 ::google::protobuf::io::CodedOutputStream* output) const final; 2102 void DiscardUnknownFields(); 2103 int GetCachedSize() const final { return _cached_size_.Get(); } 2104 2105 private: 2106 void SharedCtor(); 2107 void SharedDtor(); 2108 void SetCachedSize(int size) const; 2109 void InternalSwap(LeaseRejectedError* other); 2110 private: 2111 inline ::google::protobuf::Arena* GetArenaNoVirtual() const { 2112 return NULL; 2113 } 2114 inline void* MaybeArenaPtr() const { 2115 return NULL; 2116 } 2117 public: 2118 2119 ::std::string GetTypeName() const final; 2120 2121 // nested types ---------------------------------------------------- 2122 2123 // accessors ------------------------------------------------------- 2124 2125 bool has_message() const; 2126 void clear_message(); 2127 static const int kMessageFieldNumber = 1; 2128 const ::std::string& message() const; 2129 void set_message(const ::std::string& value); 2130 #if LANG_CXX11 2131 void set_message(::std::string&& value); 2132 #endif 2133 void set_message(const char* value); 2134 void set_message(const char* value, size_t size); 2135 ::std::string* mutable_message(); 2136 ::std::string* release_message(); 2137 void set_allocated_message(::std::string* message); 2138 2139 bool has_requested() const; 2140 void clear_requested(); 2141 static const int kRequestedFieldNumber = 2; 2142 private: 2143 const ::cockroach::roachpb::Lease& _internal_requested() const; 2144 public: 2145 const ::cockroach::roachpb::Lease& requested() const; 2146 ::cockroach::roachpb::Lease* release_requested(); 2147 ::cockroach::roachpb::Lease* mutable_requested(); 2148 void set_allocated_requested(::cockroach::roachpb::Lease* requested); 2149 2150 bool has_existing() const; 2151 void clear_existing(); 2152 static const int kExistingFieldNumber = 3; 2153 private: 2154 const ::cockroach::roachpb::Lease& _internal_existing() const; 2155 public: 2156 const ::cockroach::roachpb::Lease& existing() const; 2157 ::cockroach::roachpb::Lease* release_existing(); 2158 ::cockroach::roachpb::Lease* mutable_existing(); 2159 void set_allocated_existing(::cockroach::roachpb::Lease* existing); 2160 2161 // @@protoc_insertion_point(class_scope:cockroach.roachpb.LeaseRejectedError) 2162 private: 2163 void set_has_message(); 2164 void clear_has_message(); 2165 void set_has_requested(); 2166 void clear_has_requested(); 2167 void set_has_existing(); 2168 void clear_has_existing(); 2169 2170 ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; 2171 ::google::protobuf::internal::HasBits<1> _has_bits_; 2172 mutable ::google::protobuf::internal::CachedSize _cached_size_; 2173 ::google::protobuf::internal::ArenaStringPtr message_; 2174 ::cockroach::roachpb::Lease* requested_; 2175 ::cockroach::roachpb::Lease* existing_; 2176 friend struct ::protobuf_roachpb_2ferrors_2eproto::TableStruct; 2177 }; 2178 // ------------------------------------------------------------------- 2179 2180 class SendError : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:cockroach.roachpb.SendError) */ { 2181 public: 2182 SendError(); 2183 virtual ~SendError(); 2184 2185 SendError(const SendError& from); 2186 2187 inline SendError& operator=(const SendError& from) { 2188 CopyFrom(from); 2189 return *this; 2190 } 2191 #if LANG_CXX11 2192 SendError(SendError&& from) noexcept 2193 : SendError() { 2194 *this = ::std::move(from); 2195 } 2196 2197 inline SendError& operator=(SendError&& from) noexcept { 2198 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { 2199 if (this != &from) InternalSwap(&from); 2200 } else { 2201 CopyFrom(from); 2202 } 2203 return *this; 2204 } 2205 #endif 2206 inline const ::std::string& unknown_fields() const { 2207 return _internal_metadata_.unknown_fields(); 2208 } 2209 inline ::std::string* mutable_unknown_fields() { 2210 return _internal_metadata_.mutable_unknown_fields(); 2211 } 2212 2213 static const SendError& default_instance(); 2214 2215 static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY 2216 static inline const SendError* internal_default_instance() { 2217 return reinterpret_cast<const SendError*>( 2218 &_SendError_default_instance_); 2219 } 2220 static constexpr int kIndexInFileMessages = 2221 15; 2222 2223 void Swap(SendError* other); 2224 friend void swap(SendError& a, SendError& b) { 2225 a.Swap(&b); 2226 } 2227 2228 // implements Message ---------------------------------------------- 2229 2230 inline SendError* New() const final { 2231 return CreateMaybeMessage<SendError>(NULL); 2232 } 2233 2234 SendError* New(::google::protobuf::Arena* arena) const final { 2235 return CreateMaybeMessage<SendError>(arena); 2236 } 2237 void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from) 2238 final; 2239 void CopyFrom(const SendError& from); 2240 void MergeFrom(const SendError& from); 2241 void Clear() final; 2242 bool IsInitialized() const final; 2243 2244 size_t ByteSizeLong() const final; 2245 bool MergePartialFromCodedStream( 2246 ::google::protobuf::io::CodedInputStream* input) final; 2247 void SerializeWithCachedSizes( 2248 ::google::protobuf::io::CodedOutputStream* output) const final; 2249 void DiscardUnknownFields(); 2250 int GetCachedSize() const final { return _cached_size_.Get(); } 2251 2252 private: 2253 void SharedCtor(); 2254 void SharedDtor(); 2255 void SetCachedSize(int size) const; 2256 void InternalSwap(SendError* other); 2257 private: 2258 inline ::google::protobuf::Arena* GetArenaNoVirtual() const { 2259 return NULL; 2260 } 2261 inline void* MaybeArenaPtr() const { 2262 return NULL; 2263 } 2264 public: 2265 2266 ::std::string GetTypeName() const final; 2267 2268 // nested types ---------------------------------------------------- 2269 2270 // accessors ------------------------------------------------------- 2271 2272 bool has_message() const; 2273 void clear_message(); 2274 static const int kMessageFieldNumber = 1; 2275 const ::std::string& message() const; 2276 void set_message(const ::std::string& value); 2277 #if LANG_CXX11 2278 void set_message(::std::string&& value); 2279 #endif 2280 void set_message(const char* value); 2281 void set_message(const char* value, size_t size); 2282 ::std::string* mutable_message(); 2283 ::std::string* release_message(); 2284 void set_allocated_message(::std::string* message); 2285 2286 // @@protoc_insertion_point(class_scope:cockroach.roachpb.SendError) 2287 private: 2288 void set_has_message(); 2289 void clear_has_message(); 2290 2291 ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; 2292 ::google::protobuf::internal::HasBits<1> _has_bits_; 2293 mutable ::google::protobuf::internal::CachedSize _cached_size_; 2294 ::google::protobuf::internal::ArenaStringPtr message_; 2295 friend struct ::protobuf_roachpb_2ferrors_2eproto::TableStruct; 2296 }; 2297 // ------------------------------------------------------------------- 2298 2299 class AmbiguousResultError : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:cockroach.roachpb.AmbiguousResultError) */ { 2300 public: 2301 AmbiguousResultError(); 2302 virtual ~AmbiguousResultError(); 2303 2304 AmbiguousResultError(const AmbiguousResultError& from); 2305 2306 inline AmbiguousResultError& operator=(const AmbiguousResultError& from) { 2307 CopyFrom(from); 2308 return *this; 2309 } 2310 #if LANG_CXX11 2311 AmbiguousResultError(AmbiguousResultError&& from) noexcept 2312 : AmbiguousResultError() { 2313 *this = ::std::move(from); 2314 } 2315 2316 inline AmbiguousResultError& operator=(AmbiguousResultError&& from) noexcept { 2317 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { 2318 if (this != &from) InternalSwap(&from); 2319 } else { 2320 CopyFrom(from); 2321 } 2322 return *this; 2323 } 2324 #endif 2325 inline const ::std::string& unknown_fields() const { 2326 return _internal_metadata_.unknown_fields(); 2327 } 2328 inline ::std::string* mutable_unknown_fields() { 2329 return _internal_metadata_.mutable_unknown_fields(); 2330 } 2331 2332 static const AmbiguousResultError& default_instance(); 2333 2334 static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY 2335 static inline const AmbiguousResultError* internal_default_instance() { 2336 return reinterpret_cast<const AmbiguousResultError*>( 2337 &_AmbiguousResultError_default_instance_); 2338 } 2339 static constexpr int kIndexInFileMessages = 2340 16; 2341 2342 void Swap(AmbiguousResultError* other); 2343 friend void swap(AmbiguousResultError& a, AmbiguousResultError& b) { 2344 a.Swap(&b); 2345 } 2346 2347 // implements Message ---------------------------------------------- 2348 2349 inline AmbiguousResultError* New() const final { 2350 return CreateMaybeMessage<AmbiguousResultError>(NULL); 2351 } 2352 2353 AmbiguousResultError* New(::google::protobuf::Arena* arena) const final { 2354 return CreateMaybeMessage<AmbiguousResultError>(arena); 2355 } 2356 void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from) 2357 final; 2358 void CopyFrom(const AmbiguousResultError& from); 2359 void MergeFrom(const AmbiguousResultError& from); 2360 void Clear() final; 2361 bool IsInitialized() const final; 2362 2363 size_t ByteSizeLong() const final; 2364 bool MergePartialFromCodedStream( 2365 ::google::protobuf::io::CodedInputStream* input) final; 2366 void SerializeWithCachedSizes( 2367 ::google::protobuf::io::CodedOutputStream* output) const final; 2368 void DiscardUnknownFields(); 2369 int GetCachedSize() const final { return _cached_size_.Get(); } 2370 2371 private: 2372 void SharedCtor(); 2373 void SharedDtor(); 2374 void SetCachedSize(int size) const; 2375 void InternalSwap(AmbiguousResultError* other); 2376 private: 2377 inline ::google::protobuf::Arena* GetArenaNoVirtual() const { 2378 return NULL; 2379 } 2380 inline void* MaybeArenaPtr() const { 2381 return NULL; 2382 } 2383 public: 2384 2385 ::std::string GetTypeName() const final; 2386 2387 // nested types ---------------------------------------------------- 2388 2389 // accessors ------------------------------------------------------- 2390 2391 bool has_message() const; 2392 void clear_message(); 2393 static const int kMessageFieldNumber = 1; 2394 const ::std::string& message() const; 2395 void set_message(const ::std::string& value); 2396 #if LANG_CXX11 2397 void set_message(::std::string&& value); 2398 #endif 2399 void set_message(const char* value); 2400 void set_message(const char* value, size_t size); 2401 ::std::string* mutable_message(); 2402 ::std::string* release_message(); 2403 void set_allocated_message(::std::string* message); 2404 2405 // optional .cockroach.roachpb.Error wrapped_err = 2; 2406 bool has_wrapped_err() const; 2407 void clear_wrapped_err(); 2408 static const int kWrappedErrFieldNumber = 2; 2409 private: 2410 const ::cockroach::roachpb::Error& _internal_wrapped_err() const; 2411 public: 2412 const ::cockroach::roachpb::Error& wrapped_err() const; 2413 ::cockroach::roachpb::Error* release_wrapped_err(); 2414 ::cockroach::roachpb::Error* mutable_wrapped_err(); 2415 void set_allocated_wrapped_err(::cockroach::roachpb::Error* wrapped_err); 2416 2417 // @@protoc_insertion_point(class_scope:cockroach.roachpb.AmbiguousResultError) 2418 private: 2419 void set_has_message(); 2420 void clear_has_message(); 2421 void set_has_wrapped_err(); 2422 void clear_has_wrapped_err(); 2423 2424 ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; 2425 ::google::protobuf::internal::HasBits<1> _has_bits_; 2426 mutable ::google::protobuf::internal::CachedSize _cached_size_; 2427 ::google::protobuf::internal::ArenaStringPtr message_; 2428 ::cockroach::roachpb::Error* wrapped_err_; 2429 friend struct ::protobuf_roachpb_2ferrors_2eproto::TableStruct; 2430 }; 2431 // ------------------------------------------------------------------- 2432 2433 class RaftGroupDeletedError : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:cockroach.roachpb.RaftGroupDeletedError) */ { 2434 public: 2435 RaftGroupDeletedError(); 2436 virtual ~RaftGroupDeletedError(); 2437 2438 RaftGroupDeletedError(const RaftGroupDeletedError& from); 2439 2440 inline RaftGroupDeletedError& operator=(const RaftGroupDeletedError& from) { 2441 CopyFrom(from); 2442 return *this; 2443 } 2444 #if LANG_CXX11 2445 RaftGroupDeletedError(RaftGroupDeletedError&& from) noexcept 2446 : RaftGroupDeletedError() { 2447 *this = ::std::move(from); 2448 } 2449 2450 inline RaftGroupDeletedError& operator=(RaftGroupDeletedError&& from) noexcept { 2451 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { 2452 if (this != &from) InternalSwap(&from); 2453 } else { 2454 CopyFrom(from); 2455 } 2456 return *this; 2457 } 2458 #endif 2459 inline const ::std::string& unknown_fields() const { 2460 return _internal_metadata_.unknown_fields(); 2461 } 2462 inline ::std::string* mutable_unknown_fields() { 2463 return _internal_metadata_.mutable_unknown_fields(); 2464 } 2465 2466 static const RaftGroupDeletedError& default_instance(); 2467 2468 static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY 2469 static inline const RaftGroupDeletedError* internal_default_instance() { 2470 return reinterpret_cast<const RaftGroupDeletedError*>( 2471 &_RaftGroupDeletedError_default_instance_); 2472 } 2473 static constexpr int kIndexInFileMessages = 2474 17; 2475 2476 void Swap(RaftGroupDeletedError* other); 2477 friend void swap(RaftGroupDeletedError& a, RaftGroupDeletedError& b) { 2478 a.Swap(&b); 2479 } 2480 2481 // implements Message ---------------------------------------------- 2482 2483 inline RaftGroupDeletedError* New() const final { 2484 return CreateMaybeMessage<RaftGroupDeletedError>(NULL); 2485 } 2486 2487 RaftGroupDeletedError* New(::google::protobuf::Arena* arena) const final { 2488 return CreateMaybeMessage<RaftGroupDeletedError>(arena); 2489 } 2490 void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from) 2491 final; 2492 void CopyFrom(const RaftGroupDeletedError& from); 2493 void MergeFrom(const RaftGroupDeletedError& from); 2494 void Clear() final; 2495 bool IsInitialized() const final; 2496 2497 size_t ByteSizeLong() const final; 2498 bool MergePartialFromCodedStream( 2499 ::google::protobuf::io::CodedInputStream* input) final; 2500 void SerializeWithCachedSizes( 2501 ::google::protobuf::io::CodedOutputStream* output) const final; 2502 void DiscardUnknownFields(); 2503 int GetCachedSize() const final { return _cached_size_.Get(); } 2504 2505 private: 2506 void SharedCtor(); 2507 void SharedDtor(); 2508 void SetCachedSize(int size) const; 2509 void InternalSwap(RaftGroupDeletedError* other); 2510 private: 2511 inline ::google::protobuf::Arena* GetArenaNoVirtual() const { 2512 return NULL; 2513 } 2514 inline void* MaybeArenaPtr() const { 2515 return NULL; 2516 } 2517 public: 2518 2519 ::std::string GetTypeName() const final; 2520 2521 // nested types ---------------------------------------------------- 2522 2523 // accessors ------------------------------------------------------- 2524 2525 // @@protoc_insertion_point(class_scope:cockroach.roachpb.RaftGroupDeletedError) 2526 private: 2527 2528 ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; 2529 ::google::protobuf::internal::HasBits<1> _has_bits_; 2530 mutable ::google::protobuf::internal::CachedSize _cached_size_; 2531 friend struct ::protobuf_roachpb_2ferrors_2eproto::TableStruct; 2532 }; 2533 // ------------------------------------------------------------------- 2534 2535 class ReplicaCorruptionError : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:cockroach.roachpb.ReplicaCorruptionError) */ { 2536 public: 2537 ReplicaCorruptionError(); 2538 virtual ~ReplicaCorruptionError(); 2539 2540 ReplicaCorruptionError(const ReplicaCorruptionError& from); 2541 2542 inline ReplicaCorruptionError& operator=(const ReplicaCorruptionError& from) { 2543 CopyFrom(from); 2544 return *this; 2545 } 2546 #if LANG_CXX11 2547 ReplicaCorruptionError(ReplicaCorruptionError&& from) noexcept 2548 : ReplicaCorruptionError() { 2549 *this = ::std::move(from); 2550 } 2551 2552 inline ReplicaCorruptionError& operator=(ReplicaCorruptionError&& from) noexcept { 2553 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { 2554 if (this != &from) InternalSwap(&from); 2555 } else { 2556 CopyFrom(from); 2557 } 2558 return *this; 2559 } 2560 #endif 2561 inline const ::std::string& unknown_fields() const { 2562 return _internal_metadata_.unknown_fields(); 2563 } 2564 inline ::std::string* mutable_unknown_fields() { 2565 return _internal_metadata_.mutable_unknown_fields(); 2566 } 2567 2568 static const ReplicaCorruptionError& default_instance(); 2569 2570 static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY 2571 static inline const ReplicaCorruptionError* internal_default_instance() { 2572 return reinterpret_cast<const ReplicaCorruptionError*>( 2573 &_ReplicaCorruptionError_default_instance_); 2574 } 2575 static constexpr int kIndexInFileMessages = 2576 18; 2577 2578 void Swap(ReplicaCorruptionError* other); 2579 friend void swap(ReplicaCorruptionError& a, ReplicaCorruptionError& b) { 2580 a.Swap(&b); 2581 } 2582 2583 // implements Message ---------------------------------------------- 2584 2585 inline ReplicaCorruptionError* New() const final { 2586 return CreateMaybeMessage<ReplicaCorruptionError>(NULL); 2587 } 2588 2589 ReplicaCorruptionError* New(::google::protobuf::Arena* arena) const final { 2590 return CreateMaybeMessage<ReplicaCorruptionError>(arena); 2591 } 2592 void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from) 2593 final; 2594 void CopyFrom(const ReplicaCorruptionError& from); 2595 void MergeFrom(const ReplicaCorruptionError& from); 2596 void Clear() final; 2597 bool IsInitialized() const final; 2598 2599 size_t ByteSizeLong() const final; 2600 bool MergePartialFromCodedStream( 2601 ::google::protobuf::io::CodedInputStream* input) final; 2602 void SerializeWithCachedSizes( 2603 ::google::protobuf::io::CodedOutputStream* output) const final; 2604 void DiscardUnknownFields(); 2605 int GetCachedSize() const final { return _cached_size_.Get(); } 2606 2607 private: 2608 void SharedCtor(); 2609 void SharedDtor(); 2610 void SetCachedSize(int size) const; 2611 void InternalSwap(ReplicaCorruptionError* other); 2612 private: 2613 inline ::google::protobuf::Arena* GetArenaNoVirtual() const { 2614 return NULL; 2615 } 2616 inline void* MaybeArenaPtr() const { 2617 return NULL; 2618 } 2619 public: 2620 2621 ::std::string GetTypeName() const final; 2622 2623 // nested types ---------------------------------------------------- 2624 2625 // accessors ------------------------------------------------------- 2626 2627 bool has_error_msg() const; 2628 void clear_error_msg(); 2629 static const int kErrorMsgFieldNumber = 1; 2630 const ::std::string& error_msg() const; 2631 void set_error_msg(const ::std::string& value); 2632 #if LANG_CXX11 2633 void set_error_msg(::std::string&& value); 2634 #endif 2635 void set_error_msg(const char* value); 2636 void set_error_msg(const char* value, size_t size); 2637 ::std::string* mutable_error_msg(); 2638 ::std::string* release_error_msg(); 2639 void set_allocated_error_msg(::std::string* error_msg); 2640 2641 bool has_processed() const; 2642 void clear_processed(); 2643 static const int kProcessedFieldNumber = 2; 2644 bool processed() const; 2645 void set_processed(bool value); 2646 2647 // @@protoc_insertion_point(class_scope:cockroach.roachpb.ReplicaCorruptionError) 2648 private: 2649 void set_has_error_msg(); 2650 void clear_has_error_msg(); 2651 void set_has_processed(); 2652 void clear_has_processed(); 2653 2654 ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; 2655 ::google::protobuf::internal::HasBits<1> _has_bits_; 2656 mutable ::google::protobuf::internal::CachedSize _cached_size_; 2657 ::google::protobuf::internal::ArenaStringPtr error_msg_; 2658 bool processed_; 2659 friend struct ::protobuf_roachpb_2ferrors_2eproto::TableStruct; 2660 }; 2661 // ------------------------------------------------------------------- 2662 2663 class ReplicaTooOldError : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:cockroach.roachpb.ReplicaTooOldError) */ { 2664 public: 2665 ReplicaTooOldError(); 2666 virtual ~ReplicaTooOldError(); 2667 2668 ReplicaTooOldError(const ReplicaTooOldError& from); 2669 2670 inline ReplicaTooOldError& operator=(const ReplicaTooOldError& from) { 2671 CopyFrom(from); 2672 return *this; 2673 } 2674 #if LANG_CXX11 2675 ReplicaTooOldError(ReplicaTooOldError&& from) noexcept 2676 : ReplicaTooOldError() { 2677 *this = ::std::move(from); 2678 } 2679 2680 inline ReplicaTooOldError& operator=(ReplicaTooOldError&& from) noexcept { 2681 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { 2682 if (this != &from) InternalSwap(&from); 2683 } else { 2684 CopyFrom(from); 2685 } 2686 return *this; 2687 } 2688 #endif 2689 inline const ::std::string& unknown_fields() const { 2690 return _internal_metadata_.unknown_fields(); 2691 } 2692 inline ::std::string* mutable_unknown_fields() { 2693 return _internal_metadata_.mutable_unknown_fields(); 2694 } 2695 2696 static const ReplicaTooOldError& default_instance(); 2697 2698 static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY 2699 static inline const ReplicaTooOldError* internal_default_instance() { 2700 return reinterpret_cast<const ReplicaTooOldError*>( 2701 &_ReplicaTooOldError_default_instance_); 2702 } 2703 static constexpr int kIndexInFileMessages = 2704 19; 2705 2706 void Swap(ReplicaTooOldError* other); 2707 friend void swap(ReplicaTooOldError& a, ReplicaTooOldError& b) { 2708 a.Swap(&b); 2709 } 2710 2711 // implements Message ---------------------------------------------- 2712 2713 inline ReplicaTooOldError* New() const final { 2714 return CreateMaybeMessage<ReplicaTooOldError>(NULL); 2715 } 2716 2717 ReplicaTooOldError* New(::google::protobuf::Arena* arena) const final { 2718 return CreateMaybeMessage<ReplicaTooOldError>(arena); 2719 } 2720 void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from) 2721 final; 2722 void CopyFrom(const ReplicaTooOldError& from); 2723 void MergeFrom(const ReplicaTooOldError& from); 2724 void Clear() final; 2725 bool IsInitialized() const final; 2726 2727 size_t ByteSizeLong() const final; 2728 bool MergePartialFromCodedStream( 2729 ::google::protobuf::io::CodedInputStream* input) final; 2730 void SerializeWithCachedSizes( 2731 ::google::protobuf::io::CodedOutputStream* output) const final; 2732 void DiscardUnknownFields(); 2733 int GetCachedSize() const final { return _cached_size_.Get(); } 2734 2735 private: 2736 void SharedCtor(); 2737 void SharedDtor(); 2738 void SetCachedSize(int size) const; 2739 void InternalSwap(ReplicaTooOldError* other); 2740 private: 2741 inline ::google::protobuf::Arena* GetArenaNoVirtual() const { 2742 return NULL; 2743 } 2744 inline void* MaybeArenaPtr() const { 2745 return NULL; 2746 } 2747 public: 2748 2749 ::std::string GetTypeName() const final; 2750 2751 // nested types ---------------------------------------------------- 2752 2753 // accessors ------------------------------------------------------- 2754 2755 bool has_replica_id() const; 2756 void clear_replica_id(); 2757 static const int kReplicaIdFieldNumber = 1; 2758 ::google::protobuf::int32 replica_id() const; 2759 void set_replica_id(::google::protobuf::int32 value); 2760 2761 // @@protoc_insertion_point(class_scope:cockroach.roachpb.ReplicaTooOldError) 2762 private: 2763 void set_has_replica_id(); 2764 void clear_has_replica_id(); 2765 2766 ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; 2767 ::google::protobuf::internal::HasBits<1> _has_bits_; 2768 mutable ::google::protobuf::internal::CachedSize _cached_size_; 2769 ::google::protobuf::int32 replica_id_; 2770 friend struct ::protobuf_roachpb_2ferrors_2eproto::TableStruct; 2771 }; 2772 // ------------------------------------------------------------------- 2773 2774 class StoreNotFoundError : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:cockroach.roachpb.StoreNotFoundError) */ { 2775 public: 2776 StoreNotFoundError(); 2777 virtual ~StoreNotFoundError(); 2778 2779 StoreNotFoundError(const StoreNotFoundError& from); 2780 2781 inline StoreNotFoundError& operator=(const StoreNotFoundError& from) { 2782 CopyFrom(from); 2783 return *this; 2784 } 2785 #if LANG_CXX11 2786 StoreNotFoundError(StoreNotFoundError&& from) noexcept 2787 : StoreNotFoundError() { 2788 *this = ::std::move(from); 2789 } 2790 2791 inline StoreNotFoundError& operator=(StoreNotFoundError&& 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 inline const ::std::string& unknown_fields() const { 2801 return _internal_metadata_.unknown_fields(); 2802 } 2803 inline ::std::string* mutable_unknown_fields() { 2804 return _internal_metadata_.mutable_unknown_fields(); 2805 } 2806 2807 static const StoreNotFoundError& default_instance(); 2808 2809 static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY 2810 static inline const StoreNotFoundError* internal_default_instance() { 2811 return reinterpret_cast<const StoreNotFoundError*>( 2812 &_StoreNotFoundError_default_instance_); 2813 } 2814 static constexpr int kIndexInFileMessages = 2815 20; 2816 2817 void Swap(StoreNotFoundError* other); 2818 friend void swap(StoreNotFoundError& a, StoreNotFoundError& b) { 2819 a.Swap(&b); 2820 } 2821 2822 // implements Message ---------------------------------------------- 2823 2824 inline StoreNotFoundError* New() const final { 2825 return CreateMaybeMessage<StoreNotFoundError>(NULL); 2826 } 2827 2828 StoreNotFoundError* New(::google::protobuf::Arena* arena) const final { 2829 return CreateMaybeMessage<StoreNotFoundError>(arena); 2830 } 2831 void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from) 2832 final; 2833 void CopyFrom(const StoreNotFoundError& from); 2834 void MergeFrom(const StoreNotFoundError& from); 2835 void Clear() final; 2836 bool IsInitialized() const final; 2837 2838 size_t ByteSizeLong() const final; 2839 bool MergePartialFromCodedStream( 2840 ::google::protobuf::io::CodedInputStream* input) final; 2841 void SerializeWithCachedSizes( 2842 ::google::protobuf::io::CodedOutputStream* output) const final; 2843 void DiscardUnknownFields(); 2844 int GetCachedSize() const final { return _cached_size_.Get(); } 2845 2846 private: 2847 void SharedCtor(); 2848 void SharedDtor(); 2849 void SetCachedSize(int size) const; 2850 void InternalSwap(StoreNotFoundError* other); 2851 private: 2852 inline ::google::protobuf::Arena* GetArenaNoVirtual() const { 2853 return NULL; 2854 } 2855 inline void* MaybeArenaPtr() const { 2856 return NULL; 2857 } 2858 public: 2859 2860 ::std::string GetTypeName() const final; 2861 2862 // nested types ---------------------------------------------------- 2863 2864 // accessors ------------------------------------------------------- 2865 2866 bool has_store_id() const; 2867 void clear_store_id(); 2868 static const int kStoreIdFieldNumber = 1; 2869 ::google::protobuf::int64 store_id() const; 2870 void set_store_id(::google::protobuf::int64 value); 2871 2872 // @@protoc_insertion_point(class_scope:cockroach.roachpb.StoreNotFoundError) 2873 private: 2874 void set_has_store_id(); 2875 void clear_has_store_id(); 2876 2877 ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; 2878 ::google::protobuf::internal::HasBits<1> _has_bits_; 2879 mutable ::google::protobuf::internal::CachedSize _cached_size_; 2880 ::google::protobuf::int64 store_id_; 2881 friend struct ::protobuf_roachpb_2ferrors_2eproto::TableStruct; 2882 }; 2883 // ------------------------------------------------------------------- 2884 2885 class UnhandledRetryableError : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:cockroach.roachpb.UnhandledRetryableError) */ { 2886 public: 2887 UnhandledRetryableError(); 2888 virtual ~UnhandledRetryableError(); 2889 2890 UnhandledRetryableError(const UnhandledRetryableError& from); 2891 2892 inline UnhandledRetryableError& operator=(const UnhandledRetryableError& from) { 2893 CopyFrom(from); 2894 return *this; 2895 } 2896 #if LANG_CXX11 2897 UnhandledRetryableError(UnhandledRetryableError&& from) noexcept 2898 : UnhandledRetryableError() { 2899 *this = ::std::move(from); 2900 } 2901 2902 inline UnhandledRetryableError& operator=(UnhandledRetryableError&& from) noexcept { 2903 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { 2904 if (this != &from) InternalSwap(&from); 2905 } else { 2906 CopyFrom(from); 2907 } 2908 return *this; 2909 } 2910 #endif 2911 inline const ::std::string& unknown_fields() const { 2912 return _internal_metadata_.unknown_fields(); 2913 } 2914 inline ::std::string* mutable_unknown_fields() { 2915 return _internal_metadata_.mutable_unknown_fields(); 2916 } 2917 2918 static const UnhandledRetryableError& default_instance(); 2919 2920 static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY 2921 static inline const UnhandledRetryableError* internal_default_instance() { 2922 return reinterpret_cast<const UnhandledRetryableError*>( 2923 &_UnhandledRetryableError_default_instance_); 2924 } 2925 static constexpr int kIndexInFileMessages = 2926 21; 2927 2928 void Swap(UnhandledRetryableError* other); 2929 friend void swap(UnhandledRetryableError& a, UnhandledRetryableError& b) { 2930 a.Swap(&b); 2931 } 2932 2933 // implements Message ---------------------------------------------- 2934 2935 inline UnhandledRetryableError* New() const final { 2936 return CreateMaybeMessage<UnhandledRetryableError>(NULL); 2937 } 2938 2939 UnhandledRetryableError* New(::google::protobuf::Arena* arena) const final { 2940 return CreateMaybeMessage<UnhandledRetryableError>(arena); 2941 } 2942 void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from) 2943 final; 2944 void CopyFrom(const UnhandledRetryableError& from); 2945 void MergeFrom(const UnhandledRetryableError& from); 2946 void Clear() final; 2947 bool IsInitialized() const final; 2948 2949 size_t ByteSizeLong() const final; 2950 bool MergePartialFromCodedStream( 2951 ::google::protobuf::io::CodedInputStream* input) final; 2952 void SerializeWithCachedSizes( 2953 ::google::protobuf::io::CodedOutputStream* output) const final; 2954 void DiscardUnknownFields(); 2955 int GetCachedSize() const final { return _cached_size_.Get(); } 2956 2957 private: 2958 void SharedCtor(); 2959 void SharedDtor(); 2960 void SetCachedSize(int size) const; 2961 void InternalSwap(UnhandledRetryableError* other); 2962 private: 2963 inline ::google::protobuf::Arena* GetArenaNoVirtual() const { 2964 return NULL; 2965 } 2966 inline void* MaybeArenaPtr() const { 2967 return NULL; 2968 } 2969 public: 2970 2971 ::std::string GetTypeName() const final; 2972 2973 // nested types ---------------------------------------------------- 2974 2975 // accessors ------------------------------------------------------- 2976 2977 bool has_perr() const; 2978 void clear_perr(); 2979 static const int kPErrFieldNumber = 1; 2980 private: 2981 const ::cockroach::roachpb::Error& _internal_perr() const; 2982 public: 2983 const ::cockroach::roachpb::Error& perr() const; 2984 ::cockroach::roachpb::Error* release_perr(); 2985 ::cockroach::roachpb::Error* mutable_perr(); 2986 void set_allocated_perr(::cockroach::roachpb::Error* perr); 2987 2988 // @@protoc_insertion_point(class_scope:cockroach.roachpb.UnhandledRetryableError) 2989 private: 2990 void set_has_perr(); 2991 void clear_has_perr(); 2992 2993 ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; 2994 ::google::protobuf::internal::HasBits<1> _has_bits_; 2995 mutable ::google::protobuf::internal::CachedSize _cached_size_; 2996 ::cockroach::roachpb::Error* perr_; 2997 friend struct ::protobuf_roachpb_2ferrors_2eproto::TableStruct; 2998 }; 2999 // ------------------------------------------------------------------- 3000 3001 class TransactionRetryWithProtoRefreshError : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:cockroach.roachpb.TransactionRetryWithProtoRefreshError) */ { 3002 public: 3003 TransactionRetryWithProtoRefreshError(); 3004 virtual ~TransactionRetryWithProtoRefreshError(); 3005 3006 TransactionRetryWithProtoRefreshError(const TransactionRetryWithProtoRefreshError& from); 3007 3008 inline TransactionRetryWithProtoRefreshError& operator=(const TransactionRetryWithProtoRefreshError& from) { 3009 CopyFrom(from); 3010 return *this; 3011 } 3012 #if LANG_CXX11 3013 TransactionRetryWithProtoRefreshError(TransactionRetryWithProtoRefreshError&& from) noexcept 3014 : TransactionRetryWithProtoRefreshError() { 3015 *this = ::std::move(from); 3016 } 3017 3018 inline TransactionRetryWithProtoRefreshError& operator=(TransactionRetryWithProtoRefreshError&& from) noexcept { 3019 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { 3020 if (this != &from) InternalSwap(&from); 3021 } else { 3022 CopyFrom(from); 3023 } 3024 return *this; 3025 } 3026 #endif 3027 inline const ::std::string& unknown_fields() const { 3028 return _internal_metadata_.unknown_fields(); 3029 } 3030 inline ::std::string* mutable_unknown_fields() { 3031 return _internal_metadata_.mutable_unknown_fields(); 3032 } 3033 3034 static const TransactionRetryWithProtoRefreshError& default_instance(); 3035 3036 static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY 3037 static inline const TransactionRetryWithProtoRefreshError* internal_default_instance() { 3038 return reinterpret_cast<const TransactionRetryWithProtoRefreshError*>( 3039 &_TransactionRetryWithProtoRefreshError_default_instance_); 3040 } 3041 static constexpr int kIndexInFileMessages = 3042 22; 3043 3044 void Swap(TransactionRetryWithProtoRefreshError* other); 3045 friend void swap(TransactionRetryWithProtoRefreshError& a, TransactionRetryWithProtoRefreshError& b) { 3046 a.Swap(&b); 3047 } 3048 3049 // implements Message ---------------------------------------------- 3050 3051 inline TransactionRetryWithProtoRefreshError* New() const final { 3052 return CreateMaybeMessage<TransactionRetryWithProtoRefreshError>(NULL); 3053 } 3054 3055 TransactionRetryWithProtoRefreshError* New(::google::protobuf::Arena* arena) const final { 3056 return CreateMaybeMessage<TransactionRetryWithProtoRefreshError>(arena); 3057 } 3058 void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from) 3059 final; 3060 void CopyFrom(const TransactionRetryWithProtoRefreshError& from); 3061 void MergeFrom(const TransactionRetryWithProtoRefreshError& from); 3062 void Clear() final; 3063 bool IsInitialized() const final; 3064 3065 size_t ByteSizeLong() const final; 3066 bool MergePartialFromCodedStream( 3067 ::google::protobuf::io::CodedInputStream* input) final; 3068 void SerializeWithCachedSizes( 3069 ::google::protobuf::io::CodedOutputStream* output) const final; 3070 void DiscardUnknownFields(); 3071 int GetCachedSize() const final { return _cached_size_.Get(); } 3072 3073 private: 3074 void SharedCtor(); 3075 void SharedDtor(); 3076 void SetCachedSize(int size) const; 3077 void InternalSwap(TransactionRetryWithProtoRefreshError* other); 3078 private: 3079 inline ::google::protobuf::Arena* GetArenaNoVirtual() const { 3080 return NULL; 3081 } 3082 inline void* MaybeArenaPtr() const { 3083 return NULL; 3084 } 3085 public: 3086 3087 ::std::string GetTypeName() const final; 3088 3089 // nested types ---------------------------------------------------- 3090 3091 // accessors ------------------------------------------------------- 3092 3093 bool has_msg() const; 3094 void clear_msg(); 3095 static const int kMsgFieldNumber = 1; 3096 const ::std::string& msg() const; 3097 void set_msg(const ::std::string& value); 3098 #if LANG_CXX11 3099 void set_msg(::std::string&& value); 3100 #endif 3101 void set_msg(const char* value); 3102 void set_msg(const char* value, size_t size); 3103 ::std::string* mutable_msg(); 3104 ::std::string* release_msg(); 3105 void set_allocated_msg(::std::string* msg); 3106 3107 bool has_txn_id() const; 3108 void clear_txn_id(); 3109 static const int kTxnIdFieldNumber = 2; 3110 const ::std::string& txn_id() const; 3111 void set_txn_id(const ::std::string& value); 3112 #if LANG_CXX11 3113 void set_txn_id(::std::string&& value); 3114 #endif 3115 void set_txn_id(const char* value); 3116 void set_txn_id(const void* value, size_t size); 3117 ::std::string* mutable_txn_id(); 3118 ::std::string* release_txn_id(); 3119 void set_allocated_txn_id(::std::string* txn_id); 3120 3121 bool has_transaction() const; 3122 void clear_transaction(); 3123 static const int kTransactionFieldNumber = 3; 3124 private: 3125 const ::cockroach::roachpb::Transaction& _internal_transaction() const; 3126 public: 3127 const ::cockroach::roachpb::Transaction& transaction() const; 3128 ::cockroach::roachpb::Transaction* release_transaction(); 3129 ::cockroach::roachpb::Transaction* mutable_transaction(); 3130 void set_allocated_transaction(::cockroach::roachpb::Transaction* transaction); 3131 3132 // @@protoc_insertion_point(class_scope:cockroach.roachpb.TransactionRetryWithProtoRefreshError) 3133 private: 3134 void set_has_msg(); 3135 void clear_has_msg(); 3136 void set_has_txn_id(); 3137 void clear_has_txn_id(); 3138 void set_has_transaction(); 3139 void clear_has_transaction(); 3140 3141 ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; 3142 ::google::protobuf::internal::HasBits<1> _has_bits_; 3143 mutable ::google::protobuf::internal::CachedSize _cached_size_; 3144 ::google::protobuf::internal::ArenaStringPtr msg_; 3145 ::google::protobuf::internal::ArenaStringPtr txn_id_; 3146 ::cockroach::roachpb::Transaction* transaction_; 3147 friend struct ::protobuf_roachpb_2ferrors_2eproto::TableStruct; 3148 }; 3149 // ------------------------------------------------------------------- 3150 3151 class TxnAlreadyEncounteredErrorError : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:cockroach.roachpb.TxnAlreadyEncounteredErrorError) */ { 3152 public: 3153 TxnAlreadyEncounteredErrorError(); 3154 virtual ~TxnAlreadyEncounteredErrorError(); 3155 3156 TxnAlreadyEncounteredErrorError(const TxnAlreadyEncounteredErrorError& from); 3157 3158 inline TxnAlreadyEncounteredErrorError& operator=(const TxnAlreadyEncounteredErrorError& from) { 3159 CopyFrom(from); 3160 return *this; 3161 } 3162 #if LANG_CXX11 3163 TxnAlreadyEncounteredErrorError(TxnAlreadyEncounteredErrorError&& from) noexcept 3164 : TxnAlreadyEncounteredErrorError() { 3165 *this = ::std::move(from); 3166 } 3167 3168 inline TxnAlreadyEncounteredErrorError& operator=(TxnAlreadyEncounteredErrorError&& from) noexcept { 3169 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { 3170 if (this != &from) InternalSwap(&from); 3171 } else { 3172 CopyFrom(from); 3173 } 3174 return *this; 3175 } 3176 #endif 3177 inline const ::std::string& unknown_fields() const { 3178 return _internal_metadata_.unknown_fields(); 3179 } 3180 inline ::std::string* mutable_unknown_fields() { 3181 return _internal_metadata_.mutable_unknown_fields(); 3182 } 3183 3184 static const TxnAlreadyEncounteredErrorError& default_instance(); 3185 3186 static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY 3187 static inline const TxnAlreadyEncounteredErrorError* internal_default_instance() { 3188 return reinterpret_cast<const TxnAlreadyEncounteredErrorError*>( 3189 &_TxnAlreadyEncounteredErrorError_default_instance_); 3190 } 3191 static constexpr int kIndexInFileMessages = 3192 23; 3193 3194 void Swap(TxnAlreadyEncounteredErrorError* other); 3195 friend void swap(TxnAlreadyEncounteredErrorError& a, TxnAlreadyEncounteredErrorError& b) { 3196 a.Swap(&b); 3197 } 3198 3199 // implements Message ---------------------------------------------- 3200 3201 inline TxnAlreadyEncounteredErrorError* New() const final { 3202 return CreateMaybeMessage<TxnAlreadyEncounteredErrorError>(NULL); 3203 } 3204 3205 TxnAlreadyEncounteredErrorError* New(::google::protobuf::Arena* arena) const final { 3206 return CreateMaybeMessage<TxnAlreadyEncounteredErrorError>(arena); 3207 } 3208 void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from) 3209 final; 3210 void CopyFrom(const TxnAlreadyEncounteredErrorError& from); 3211 void MergeFrom(const TxnAlreadyEncounteredErrorError& from); 3212 void Clear() final; 3213 bool IsInitialized() const final; 3214 3215 size_t ByteSizeLong() const final; 3216 bool MergePartialFromCodedStream( 3217 ::google::protobuf::io::CodedInputStream* input) final; 3218 void SerializeWithCachedSizes( 3219 ::google::protobuf::io::CodedOutputStream* output) const final; 3220 void DiscardUnknownFields(); 3221 int GetCachedSize() const final { return _cached_size_.Get(); } 3222 3223 private: 3224 void SharedCtor(); 3225 void SharedDtor(); 3226 void SetCachedSize(int size) const; 3227 void InternalSwap(TxnAlreadyEncounteredErrorError* other); 3228 private: 3229 inline ::google::protobuf::Arena* GetArenaNoVirtual() const { 3230 return NULL; 3231 } 3232 inline void* MaybeArenaPtr() const { 3233 return NULL; 3234 } 3235 public: 3236 3237 ::std::string GetTypeName() const final; 3238 3239 // nested types ---------------------------------------------------- 3240 3241 // accessors ------------------------------------------------------- 3242 3243 bool has_prev_error() const; 3244 void clear_prev_error(); 3245 static const int kPrevErrorFieldNumber = 1; 3246 const ::std::string& prev_error() const; 3247 void set_prev_error(const ::std::string& value); 3248 #if LANG_CXX11 3249 void set_prev_error(::std::string&& value); 3250 #endif 3251 void set_prev_error(const char* value); 3252 void set_prev_error(const char* value, size_t size); 3253 ::std::string* mutable_prev_error(); 3254 ::std::string* release_prev_error(); 3255 void set_allocated_prev_error(::std::string* prev_error); 3256 3257 // @@protoc_insertion_point(class_scope:cockroach.roachpb.TxnAlreadyEncounteredErrorError) 3258 private: 3259 void set_has_prev_error(); 3260 void clear_has_prev_error(); 3261 3262 ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; 3263 ::google::protobuf::internal::HasBits<1> _has_bits_; 3264 mutable ::google::protobuf::internal::CachedSize _cached_size_; 3265 ::google::protobuf::internal::ArenaStringPtr prev_error_; 3266 friend struct ::protobuf_roachpb_2ferrors_2eproto::TableStruct; 3267 }; 3268 // ------------------------------------------------------------------- 3269 3270 class IntegerOverflowError : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:cockroach.roachpb.IntegerOverflowError) */ { 3271 public: 3272 IntegerOverflowError(); 3273 virtual ~IntegerOverflowError(); 3274 3275 IntegerOverflowError(const IntegerOverflowError& from); 3276 3277 inline IntegerOverflowError& operator=(const IntegerOverflowError& from) { 3278 CopyFrom(from); 3279 return *this; 3280 } 3281 #if LANG_CXX11 3282 IntegerOverflowError(IntegerOverflowError&& from) noexcept 3283 : IntegerOverflowError() { 3284 *this = ::std::move(from); 3285 } 3286 3287 inline IntegerOverflowError& operator=(IntegerOverflowError&& from) noexcept { 3288 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { 3289 if (this != &from) InternalSwap(&from); 3290 } else { 3291 CopyFrom(from); 3292 } 3293 return *this; 3294 } 3295 #endif 3296 inline const ::std::string& unknown_fields() const { 3297 return _internal_metadata_.unknown_fields(); 3298 } 3299 inline ::std::string* mutable_unknown_fields() { 3300 return _internal_metadata_.mutable_unknown_fields(); 3301 } 3302 3303 static const IntegerOverflowError& default_instance(); 3304 3305 static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY 3306 static inline const IntegerOverflowError* internal_default_instance() { 3307 return reinterpret_cast<const IntegerOverflowError*>( 3308 &_IntegerOverflowError_default_instance_); 3309 } 3310 static constexpr int kIndexInFileMessages = 3311 24; 3312 3313 void Swap(IntegerOverflowError* other); 3314 friend void swap(IntegerOverflowError& a, IntegerOverflowError& b) { 3315 a.Swap(&b); 3316 } 3317 3318 // implements Message ---------------------------------------------- 3319 3320 inline IntegerOverflowError* New() const final { 3321 return CreateMaybeMessage<IntegerOverflowError>(NULL); 3322 } 3323 3324 IntegerOverflowError* New(::google::protobuf::Arena* arena) const final { 3325 return CreateMaybeMessage<IntegerOverflowError>(arena); 3326 } 3327 void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from) 3328 final; 3329 void CopyFrom(const IntegerOverflowError& from); 3330 void MergeFrom(const IntegerOverflowError& from); 3331 void Clear() final; 3332 bool IsInitialized() const final; 3333 3334 size_t ByteSizeLong() const final; 3335 bool MergePartialFromCodedStream( 3336 ::google::protobuf::io::CodedInputStream* input) final; 3337 void SerializeWithCachedSizes( 3338 ::google::protobuf::io::CodedOutputStream* output) const final; 3339 void DiscardUnknownFields(); 3340 int GetCachedSize() const final { return _cached_size_.Get(); } 3341 3342 private: 3343 void SharedCtor(); 3344 void SharedDtor(); 3345 void SetCachedSize(int size) const; 3346 void InternalSwap(IntegerOverflowError* other); 3347 private: 3348 inline ::google::protobuf::Arena* GetArenaNoVirtual() const { 3349 return NULL; 3350 } 3351 inline void* MaybeArenaPtr() const { 3352 return NULL; 3353 } 3354 public: 3355 3356 ::std::string GetTypeName() const final; 3357 3358 // nested types ---------------------------------------------------- 3359 3360 // accessors ------------------------------------------------------- 3361 3362 bool has_key() const; 3363 void clear_key(); 3364 static const int kKeyFieldNumber = 1; 3365 const ::std::string& key() const; 3366 void set_key(const ::std::string& value); 3367 #if LANG_CXX11 3368 void set_key(::std::string&& value); 3369 #endif 3370 void set_key(const char* value); 3371 void set_key(const void* value, size_t size); 3372 ::std::string* mutable_key(); 3373 ::std::string* release_key(); 3374 void set_allocated_key(::std::string* key); 3375 3376 bool has_current_value() const; 3377 void clear_current_value(); 3378 static const int kCurrentValueFieldNumber = 2; 3379 ::google::protobuf::int64 current_value() const; 3380 void set_current_value(::google::protobuf::int64 value); 3381 3382 bool has_increment_value() const; 3383 void clear_increment_value(); 3384 static const int kIncrementValueFieldNumber = 3; 3385 ::google::protobuf::int64 increment_value() const; 3386 void set_increment_value(::google::protobuf::int64 value); 3387 3388 // @@protoc_insertion_point(class_scope:cockroach.roachpb.IntegerOverflowError) 3389 private: 3390 void set_has_key(); 3391 void clear_has_key(); 3392 void set_has_current_value(); 3393 void clear_has_current_value(); 3394 void set_has_increment_value(); 3395 void clear_has_increment_value(); 3396 3397 ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; 3398 ::google::protobuf::internal::HasBits<1> _has_bits_; 3399 mutable ::google::protobuf::internal::CachedSize _cached_size_; 3400 ::google::protobuf::internal::ArenaStringPtr key_; 3401 ::google::protobuf::int64 current_value_; 3402 ::google::protobuf::int64 increment_value_; 3403 friend struct ::protobuf_roachpb_2ferrors_2eproto::TableStruct; 3404 }; 3405 // ------------------------------------------------------------------- 3406 3407 class BatchTimestampBeforeGCError : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:cockroach.roachpb.BatchTimestampBeforeGCError) */ { 3408 public: 3409 BatchTimestampBeforeGCError(); 3410 virtual ~BatchTimestampBeforeGCError(); 3411 3412 BatchTimestampBeforeGCError(const BatchTimestampBeforeGCError& from); 3413 3414 inline BatchTimestampBeforeGCError& operator=(const BatchTimestampBeforeGCError& from) { 3415 CopyFrom(from); 3416 return *this; 3417 } 3418 #if LANG_CXX11 3419 BatchTimestampBeforeGCError(BatchTimestampBeforeGCError&& from) noexcept 3420 : BatchTimestampBeforeGCError() { 3421 *this = ::std::move(from); 3422 } 3423 3424 inline BatchTimestampBeforeGCError& operator=(BatchTimestampBeforeGCError&& from) noexcept { 3425 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { 3426 if (this != &from) InternalSwap(&from); 3427 } else { 3428 CopyFrom(from); 3429 } 3430 return *this; 3431 } 3432 #endif 3433 inline const ::std::string& unknown_fields() const { 3434 return _internal_metadata_.unknown_fields(); 3435 } 3436 inline ::std::string* mutable_unknown_fields() { 3437 return _internal_metadata_.mutable_unknown_fields(); 3438 } 3439 3440 static const BatchTimestampBeforeGCError& default_instance(); 3441 3442 static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY 3443 static inline const BatchTimestampBeforeGCError* internal_default_instance() { 3444 return reinterpret_cast<const BatchTimestampBeforeGCError*>( 3445 &_BatchTimestampBeforeGCError_default_instance_); 3446 } 3447 static constexpr int kIndexInFileMessages = 3448 25; 3449 3450 void Swap(BatchTimestampBeforeGCError* other); 3451 friend void swap(BatchTimestampBeforeGCError& a, BatchTimestampBeforeGCError& b) { 3452 a.Swap(&b); 3453 } 3454 3455 // implements Message ---------------------------------------------- 3456 3457 inline BatchTimestampBeforeGCError* New() const final { 3458 return CreateMaybeMessage<BatchTimestampBeforeGCError>(NULL); 3459 } 3460 3461 BatchTimestampBeforeGCError* New(::google::protobuf::Arena* arena) const final { 3462 return CreateMaybeMessage<BatchTimestampBeforeGCError>(arena); 3463 } 3464 void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from) 3465 final; 3466 void CopyFrom(const BatchTimestampBeforeGCError& from); 3467 void MergeFrom(const BatchTimestampBeforeGCError& from); 3468 void Clear() final; 3469 bool IsInitialized() const final; 3470 3471 size_t ByteSizeLong() const final; 3472 bool MergePartialFromCodedStream( 3473 ::google::protobuf::io::CodedInputStream* input) final; 3474 void SerializeWithCachedSizes( 3475 ::google::protobuf::io::CodedOutputStream* output) const final; 3476 void DiscardUnknownFields(); 3477 int GetCachedSize() const final { return _cached_size_.Get(); } 3478 3479 private: 3480 void SharedCtor(); 3481 void SharedDtor(); 3482 void SetCachedSize(int size) const; 3483 void InternalSwap(BatchTimestampBeforeGCError* other); 3484 private: 3485 inline ::google::protobuf::Arena* GetArenaNoVirtual() const { 3486 return NULL; 3487 } 3488 inline void* MaybeArenaPtr() const { 3489 return NULL; 3490 } 3491 public: 3492 3493 ::std::string GetTypeName() const final; 3494 3495 // nested types ---------------------------------------------------- 3496 3497 // accessors ------------------------------------------------------- 3498 3499 bool has_timestamp() const; 3500 void clear_timestamp(); 3501 static const int kTimestampFieldNumber = 1; 3502 private: 3503 const ::cockroach::util::hlc::Timestamp& _internal_timestamp() const; 3504 public: 3505 const ::cockroach::util::hlc::Timestamp& timestamp() const; 3506 ::cockroach::util::hlc::Timestamp* release_timestamp(); 3507 ::cockroach::util::hlc::Timestamp* mutable_timestamp(); 3508 void set_allocated_timestamp(::cockroach::util::hlc::Timestamp* timestamp); 3509 3510 bool has_threshold() const; 3511 void clear_threshold(); 3512 static const int kThresholdFieldNumber = 2; 3513 private: 3514 const ::cockroach::util::hlc::Timestamp& _internal_threshold() const; 3515 public: 3516 const ::cockroach::util::hlc::Timestamp& threshold() const; 3517 ::cockroach::util::hlc::Timestamp* release_threshold(); 3518 ::cockroach::util::hlc::Timestamp* mutable_threshold(); 3519 void set_allocated_threshold(::cockroach::util::hlc::Timestamp* threshold); 3520 3521 // @@protoc_insertion_point(class_scope:cockroach.roachpb.BatchTimestampBeforeGCError) 3522 private: 3523 void set_has_timestamp(); 3524 void clear_has_timestamp(); 3525 void set_has_threshold(); 3526 void clear_has_threshold(); 3527 3528 ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; 3529 ::google::protobuf::internal::HasBits<1> _has_bits_; 3530 mutable ::google::protobuf::internal::CachedSize _cached_size_; 3531 ::cockroach::util::hlc::Timestamp* timestamp_; 3532 ::cockroach::util::hlc::Timestamp* threshold_; 3533 friend struct ::protobuf_roachpb_2ferrors_2eproto::TableStruct; 3534 }; 3535 // ------------------------------------------------------------------- 3536 3537 class IntentMissingError : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:cockroach.roachpb.IntentMissingError) */ { 3538 public: 3539 IntentMissingError(); 3540 virtual ~IntentMissingError(); 3541 3542 IntentMissingError(const IntentMissingError& from); 3543 3544 inline IntentMissingError& operator=(const IntentMissingError& from) { 3545 CopyFrom(from); 3546 return *this; 3547 } 3548 #if LANG_CXX11 3549 IntentMissingError(IntentMissingError&& from) noexcept 3550 : IntentMissingError() { 3551 *this = ::std::move(from); 3552 } 3553 3554 inline IntentMissingError& operator=(IntentMissingError&& from) noexcept { 3555 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { 3556 if (this != &from) InternalSwap(&from); 3557 } else { 3558 CopyFrom(from); 3559 } 3560 return *this; 3561 } 3562 #endif 3563 inline const ::std::string& unknown_fields() const { 3564 return _internal_metadata_.unknown_fields(); 3565 } 3566 inline ::std::string* mutable_unknown_fields() { 3567 return _internal_metadata_.mutable_unknown_fields(); 3568 } 3569 3570 static const IntentMissingError& default_instance(); 3571 3572 static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY 3573 static inline const IntentMissingError* internal_default_instance() { 3574 return reinterpret_cast<const IntentMissingError*>( 3575 &_IntentMissingError_default_instance_); 3576 } 3577 static constexpr int kIndexInFileMessages = 3578 26; 3579 3580 void Swap(IntentMissingError* other); 3581 friend void swap(IntentMissingError& a, IntentMissingError& b) { 3582 a.Swap(&b); 3583 } 3584 3585 // implements Message ---------------------------------------------- 3586 3587 inline IntentMissingError* New() const final { 3588 return CreateMaybeMessage<IntentMissingError>(NULL); 3589 } 3590 3591 IntentMissingError* New(::google::protobuf::Arena* arena) const final { 3592 return CreateMaybeMessage<IntentMissingError>(arena); 3593 } 3594 void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from) 3595 final; 3596 void CopyFrom(const IntentMissingError& from); 3597 void MergeFrom(const IntentMissingError& from); 3598 void Clear() final; 3599 bool IsInitialized() const final; 3600 3601 size_t ByteSizeLong() const final; 3602 bool MergePartialFromCodedStream( 3603 ::google::protobuf::io::CodedInputStream* input) final; 3604 void SerializeWithCachedSizes( 3605 ::google::protobuf::io::CodedOutputStream* output) const final; 3606 void DiscardUnknownFields(); 3607 int GetCachedSize() const final { return _cached_size_.Get(); } 3608 3609 private: 3610 void SharedCtor(); 3611 void SharedDtor(); 3612 void SetCachedSize(int size) const; 3613 void InternalSwap(IntentMissingError* other); 3614 private: 3615 inline ::google::protobuf::Arena* GetArenaNoVirtual() const { 3616 return NULL; 3617 } 3618 inline void* MaybeArenaPtr() const { 3619 return NULL; 3620 } 3621 public: 3622 3623 ::std::string GetTypeName() const final; 3624 3625 // nested types ---------------------------------------------------- 3626 3627 // accessors ------------------------------------------------------- 3628 3629 bool has_key() const; 3630 void clear_key(); 3631 static const int kKeyFieldNumber = 2; 3632 const ::std::string& key() const; 3633 void set_key(const ::std::string& value); 3634 #if LANG_CXX11 3635 void set_key(::std::string&& value); 3636 #endif 3637 void set_key(const char* value); 3638 void set_key(const void* value, size_t size); 3639 ::std::string* mutable_key(); 3640 ::std::string* release_key(); 3641 void set_allocated_key(::std::string* key); 3642 3643 // optional .cockroach.roachpb.Intent wrong_intent = 1; 3644 bool has_wrong_intent() const; 3645 void clear_wrong_intent(); 3646 static const int kWrongIntentFieldNumber = 1; 3647 private: 3648 const ::cockroach::roachpb::Intent& _internal_wrong_intent() const; 3649 public: 3650 const ::cockroach::roachpb::Intent& wrong_intent() const; 3651 ::cockroach::roachpb::Intent* release_wrong_intent(); 3652 ::cockroach::roachpb::Intent* mutable_wrong_intent(); 3653 void set_allocated_wrong_intent(::cockroach::roachpb::Intent* wrong_intent); 3654 3655 // @@protoc_insertion_point(class_scope:cockroach.roachpb.IntentMissingError) 3656 private: 3657 void set_has_wrong_intent(); 3658 void clear_has_wrong_intent(); 3659 void set_has_key(); 3660 void clear_has_key(); 3661 3662 ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; 3663 ::google::protobuf::internal::HasBits<1> _has_bits_; 3664 mutable ::google::protobuf::internal::CachedSize _cached_size_; 3665 ::google::protobuf::internal::ArenaStringPtr key_; 3666 ::cockroach::roachpb::Intent* wrong_intent_; 3667 friend struct ::protobuf_roachpb_2ferrors_2eproto::TableStruct; 3668 }; 3669 // ------------------------------------------------------------------- 3670 3671 class MergeInProgressError : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:cockroach.roachpb.MergeInProgressError) */ { 3672 public: 3673 MergeInProgressError(); 3674 virtual ~MergeInProgressError(); 3675 3676 MergeInProgressError(const MergeInProgressError& from); 3677 3678 inline MergeInProgressError& operator=(const MergeInProgressError& from) { 3679 CopyFrom(from); 3680 return *this; 3681 } 3682 #if LANG_CXX11 3683 MergeInProgressError(MergeInProgressError&& from) noexcept 3684 : MergeInProgressError() { 3685 *this = ::std::move(from); 3686 } 3687 3688 inline MergeInProgressError& operator=(MergeInProgressError&& from) noexcept { 3689 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { 3690 if (this != &from) InternalSwap(&from); 3691 } else { 3692 CopyFrom(from); 3693 } 3694 return *this; 3695 } 3696 #endif 3697 inline const ::std::string& unknown_fields() const { 3698 return _internal_metadata_.unknown_fields(); 3699 } 3700 inline ::std::string* mutable_unknown_fields() { 3701 return _internal_metadata_.mutable_unknown_fields(); 3702 } 3703 3704 static const MergeInProgressError& default_instance(); 3705 3706 static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY 3707 static inline const MergeInProgressError* internal_default_instance() { 3708 return reinterpret_cast<const MergeInProgressError*>( 3709 &_MergeInProgressError_default_instance_); 3710 } 3711 static constexpr int kIndexInFileMessages = 3712 27; 3713 3714 void Swap(MergeInProgressError* other); 3715 friend void swap(MergeInProgressError& a, MergeInProgressError& b) { 3716 a.Swap(&b); 3717 } 3718 3719 // implements Message ---------------------------------------------- 3720 3721 inline MergeInProgressError* New() const final { 3722 return CreateMaybeMessage<MergeInProgressError>(NULL); 3723 } 3724 3725 MergeInProgressError* New(::google::protobuf::Arena* arena) const final { 3726 return CreateMaybeMessage<MergeInProgressError>(arena); 3727 } 3728 void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from) 3729 final; 3730 void CopyFrom(const MergeInProgressError& from); 3731 void MergeFrom(const MergeInProgressError& from); 3732 void Clear() final; 3733 bool IsInitialized() const final; 3734 3735 size_t ByteSizeLong() const final; 3736 bool MergePartialFromCodedStream( 3737 ::google::protobuf::io::CodedInputStream* input) final; 3738 void SerializeWithCachedSizes( 3739 ::google::protobuf::io::CodedOutputStream* output) const final; 3740 void DiscardUnknownFields(); 3741 int GetCachedSize() const final { return _cached_size_.Get(); } 3742 3743 private: 3744 void SharedCtor(); 3745 void SharedDtor(); 3746 void SetCachedSize(int size) const; 3747 void InternalSwap(MergeInProgressError* other); 3748 private: 3749 inline ::google::protobuf::Arena* GetArenaNoVirtual() const { 3750 return NULL; 3751 } 3752 inline void* MaybeArenaPtr() const { 3753 return NULL; 3754 } 3755 public: 3756 3757 ::std::string GetTypeName() const final; 3758 3759 // nested types ---------------------------------------------------- 3760 3761 // accessors ------------------------------------------------------- 3762 3763 // @@protoc_insertion_point(class_scope:cockroach.roachpb.MergeInProgressError) 3764 private: 3765 3766 ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; 3767 ::google::protobuf::internal::HasBits<1> _has_bits_; 3768 mutable ::google::protobuf::internal::CachedSize _cached_size_; 3769 friend struct ::protobuf_roachpb_2ferrors_2eproto::TableStruct; 3770 }; 3771 // ------------------------------------------------------------------- 3772 3773 class RangeFeedRetryError : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:cockroach.roachpb.RangeFeedRetryError) */ { 3774 public: 3775 RangeFeedRetryError(); 3776 virtual ~RangeFeedRetryError(); 3777 3778 RangeFeedRetryError(const RangeFeedRetryError& from); 3779 3780 inline RangeFeedRetryError& operator=(const RangeFeedRetryError& from) { 3781 CopyFrom(from); 3782 return *this; 3783 } 3784 #if LANG_CXX11 3785 RangeFeedRetryError(RangeFeedRetryError&& from) noexcept 3786 : RangeFeedRetryError() { 3787 *this = ::std::move(from); 3788 } 3789 3790 inline RangeFeedRetryError& operator=(RangeFeedRetryError&& from) noexcept { 3791 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { 3792 if (this != &from) InternalSwap(&from); 3793 } else { 3794 CopyFrom(from); 3795 } 3796 return *this; 3797 } 3798 #endif 3799 inline const ::std::string& unknown_fields() const { 3800 return _internal_metadata_.unknown_fields(); 3801 } 3802 inline ::std::string* mutable_unknown_fields() { 3803 return _internal_metadata_.mutable_unknown_fields(); 3804 } 3805 3806 static const RangeFeedRetryError& default_instance(); 3807 3808 static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY 3809 static inline const RangeFeedRetryError* internal_default_instance() { 3810 return reinterpret_cast<const RangeFeedRetryError*>( 3811 &_RangeFeedRetryError_default_instance_); 3812 } 3813 static constexpr int kIndexInFileMessages = 3814 28; 3815 3816 void Swap(RangeFeedRetryError* other); 3817 friend void swap(RangeFeedRetryError& a, RangeFeedRetryError& b) { 3818 a.Swap(&b); 3819 } 3820 3821 // implements Message ---------------------------------------------- 3822 3823 inline RangeFeedRetryError* New() const final { 3824 return CreateMaybeMessage<RangeFeedRetryError>(NULL); 3825 } 3826 3827 RangeFeedRetryError* New(::google::protobuf::Arena* arena) const final { 3828 return CreateMaybeMessage<RangeFeedRetryError>(arena); 3829 } 3830 void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from) 3831 final; 3832 void CopyFrom(const RangeFeedRetryError& from); 3833 void MergeFrom(const RangeFeedRetryError& from); 3834 void Clear() final; 3835 bool IsInitialized() const final; 3836 3837 size_t ByteSizeLong() const final; 3838 bool MergePartialFromCodedStream( 3839 ::google::protobuf::io::CodedInputStream* input) final; 3840 void SerializeWithCachedSizes( 3841 ::google::protobuf::io::CodedOutputStream* output) const final; 3842 void DiscardUnknownFields(); 3843 int GetCachedSize() const final { return _cached_size_.Get(); } 3844 3845 private: 3846 void SharedCtor(); 3847 void SharedDtor(); 3848 void SetCachedSize(int size) const; 3849 void InternalSwap(RangeFeedRetryError* other); 3850 private: 3851 inline ::google::protobuf::Arena* GetArenaNoVirtual() const { 3852 return NULL; 3853 } 3854 inline void* MaybeArenaPtr() const { 3855 return NULL; 3856 } 3857 public: 3858 3859 ::std::string GetTypeName() const final; 3860 3861 // nested types ---------------------------------------------------- 3862 3863 typedef RangeFeedRetryError_Reason Reason; 3864 static const Reason REASON_REPLICA_REMOVED = 3865 RangeFeedRetryError_Reason_REASON_REPLICA_REMOVED; 3866 static const Reason REASON_RANGE_SPLIT = 3867 RangeFeedRetryError_Reason_REASON_RANGE_SPLIT; 3868 static const Reason REASON_RANGE_MERGED = 3869 RangeFeedRetryError_Reason_REASON_RANGE_MERGED; 3870 static const Reason REASON_RAFT_SNAPSHOT = 3871 RangeFeedRetryError_Reason_REASON_RAFT_SNAPSHOT; 3872 static const Reason REASON_LOGICAL_OPS_MISSING = 3873 RangeFeedRetryError_Reason_REASON_LOGICAL_OPS_MISSING; 3874 static const Reason REASON_SLOW_CONSUMER = 3875 RangeFeedRetryError_Reason_REASON_SLOW_CONSUMER; 3876 static inline bool Reason_IsValid(int value) { 3877 return RangeFeedRetryError_Reason_IsValid(value); 3878 } 3879 static const Reason Reason_MIN = 3880 RangeFeedRetryError_Reason_Reason_MIN; 3881 static const Reason Reason_MAX = 3882 RangeFeedRetryError_Reason_Reason_MAX; 3883 static const int Reason_ARRAYSIZE = 3884 RangeFeedRetryError_Reason_Reason_ARRAYSIZE; 3885 3886 // accessors ------------------------------------------------------- 3887 3888 bool has_reason() const; 3889 void clear_reason(); 3890 static const int kReasonFieldNumber = 1; 3891 ::cockroach::roachpb::RangeFeedRetryError_Reason reason() const; 3892 void set_reason(::cockroach::roachpb::RangeFeedRetryError_Reason value); 3893 3894 // @@protoc_insertion_point(class_scope:cockroach.roachpb.RangeFeedRetryError) 3895 private: 3896 void set_has_reason(); 3897 void clear_has_reason(); 3898 3899 ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; 3900 ::google::protobuf::internal::HasBits<1> _has_bits_; 3901 mutable ::google::protobuf::internal::CachedSize _cached_size_; 3902 int reason_; 3903 friend struct ::protobuf_roachpb_2ferrors_2eproto::TableStruct; 3904 }; 3905 // ------------------------------------------------------------------- 3906 3907 class IndeterminateCommitError : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:cockroach.roachpb.IndeterminateCommitError) */ { 3908 public: 3909 IndeterminateCommitError(); 3910 virtual ~IndeterminateCommitError(); 3911 3912 IndeterminateCommitError(const IndeterminateCommitError& from); 3913 3914 inline IndeterminateCommitError& operator=(const IndeterminateCommitError& from) { 3915 CopyFrom(from); 3916 return *this; 3917 } 3918 #if LANG_CXX11 3919 IndeterminateCommitError(IndeterminateCommitError&& from) noexcept 3920 : IndeterminateCommitError() { 3921 *this = ::std::move(from); 3922 } 3923 3924 inline IndeterminateCommitError& operator=(IndeterminateCommitError&& from) noexcept { 3925 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { 3926 if (this != &from) InternalSwap(&from); 3927 } else { 3928 CopyFrom(from); 3929 } 3930 return *this; 3931 } 3932 #endif 3933 inline const ::std::string& unknown_fields() const { 3934 return _internal_metadata_.unknown_fields(); 3935 } 3936 inline ::std::string* mutable_unknown_fields() { 3937 return _internal_metadata_.mutable_unknown_fields(); 3938 } 3939 3940 static const IndeterminateCommitError& default_instance(); 3941 3942 static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY 3943 static inline const IndeterminateCommitError* internal_default_instance() { 3944 return reinterpret_cast<const IndeterminateCommitError*>( 3945 &_IndeterminateCommitError_default_instance_); 3946 } 3947 static constexpr int kIndexInFileMessages = 3948 29; 3949 3950 void Swap(IndeterminateCommitError* other); 3951 friend void swap(IndeterminateCommitError& a, IndeterminateCommitError& b) { 3952 a.Swap(&b); 3953 } 3954 3955 // implements Message ---------------------------------------------- 3956 3957 inline IndeterminateCommitError* New() const final { 3958 return CreateMaybeMessage<IndeterminateCommitError>(NULL); 3959 } 3960 3961 IndeterminateCommitError* New(::google::protobuf::Arena* arena) const final { 3962 return CreateMaybeMessage<IndeterminateCommitError>(arena); 3963 } 3964 void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from) 3965 final; 3966 void CopyFrom(const IndeterminateCommitError& from); 3967 void MergeFrom(const IndeterminateCommitError& from); 3968 void Clear() final; 3969 bool IsInitialized() const final; 3970 3971 size_t ByteSizeLong() const final; 3972 bool MergePartialFromCodedStream( 3973 ::google::protobuf::io::CodedInputStream* input) final; 3974 void SerializeWithCachedSizes( 3975 ::google::protobuf::io::CodedOutputStream* output) const final; 3976 void DiscardUnknownFields(); 3977 int GetCachedSize() const final { return _cached_size_.Get(); } 3978 3979 private: 3980 void SharedCtor(); 3981 void SharedDtor(); 3982 void SetCachedSize(int size) const; 3983 void InternalSwap(IndeterminateCommitError* other); 3984 private: 3985 inline ::google::protobuf::Arena* GetArenaNoVirtual() const { 3986 return NULL; 3987 } 3988 inline void* MaybeArenaPtr() const { 3989 return NULL; 3990 } 3991 public: 3992 3993 ::std::string GetTypeName() const final; 3994 3995 // nested types ---------------------------------------------------- 3996 3997 // accessors ------------------------------------------------------- 3998 3999 bool has_staging_txn() const; 4000 void clear_staging_txn(); 4001 static const int kStagingTxnFieldNumber = 1; 4002 private: 4003 const ::cockroach::roachpb::Transaction& _internal_staging_txn() const; 4004 public: 4005 const ::cockroach::roachpb::Transaction& staging_txn() const; 4006 ::cockroach::roachpb::Transaction* release_staging_txn(); 4007 ::cockroach::roachpb::Transaction* mutable_staging_txn(); 4008 void set_allocated_staging_txn(::cockroach::roachpb::Transaction* staging_txn); 4009 4010 // @@protoc_insertion_point(class_scope:cockroach.roachpb.IndeterminateCommitError) 4011 private: 4012 void set_has_staging_txn(); 4013 void clear_has_staging_txn(); 4014 4015 ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; 4016 ::google::protobuf::internal::HasBits<1> _has_bits_; 4017 mutable ::google::protobuf::internal::CachedSize _cached_size_; 4018 ::cockroach::roachpb::Transaction* staging_txn_; 4019 friend struct ::protobuf_roachpb_2ferrors_2eproto::TableStruct; 4020 }; 4021 // ------------------------------------------------------------------- 4022 4023 class ErrorDetail : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:cockroach.roachpb.ErrorDetail) */ { 4024 public: 4025 ErrorDetail(); 4026 virtual ~ErrorDetail(); 4027 4028 ErrorDetail(const ErrorDetail& from); 4029 4030 inline ErrorDetail& operator=(const ErrorDetail& from) { 4031 CopyFrom(from); 4032 return *this; 4033 } 4034 #if LANG_CXX11 4035 ErrorDetail(ErrorDetail&& from) noexcept 4036 : ErrorDetail() { 4037 *this = ::std::move(from); 4038 } 4039 4040 inline ErrorDetail& operator=(ErrorDetail&& from) noexcept { 4041 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { 4042 if (this != &from) InternalSwap(&from); 4043 } else { 4044 CopyFrom(from); 4045 } 4046 return *this; 4047 } 4048 #endif 4049 inline const ::std::string& unknown_fields() const { 4050 return _internal_metadata_.unknown_fields(); 4051 } 4052 inline ::std::string* mutable_unknown_fields() { 4053 return _internal_metadata_.mutable_unknown_fields(); 4054 } 4055 4056 static const ErrorDetail& default_instance(); 4057 4058 enum ValueCase { 4059 kNotLeaseHolder = 1, 4060 kRangeNotFound = 2, 4061 kRangeKeyMismatch = 3, 4062 kReadWithinUncertaintyInterval = 4, 4063 kTransactionAborted = 5, 4064 kTransactionPush = 6, 4065 kTransactionRetry = 7, 4066 kTransactionStatus = 8, 4067 kWriteIntent = 9, 4068 kWriteTooOld = 10, 4069 kOpRequiresTxn = 11, 4070 kConditionFailed = 12, 4071 kLeaseRejected = 13, 4072 kNodeUnavailable = 14, 4073 kSend = 15, 4074 kRaftGroupDeleted = 16, 4075 kReplicaCorruption = 17, 4076 kReplicaTooOld = 18, 4077 kAmbiguousResult = 26, 4078 kStoreNotFound = 27, 4079 kTransactionRetryWithProtoRefresh = 28, 4080 kIntegerOverflow = 31, 4081 kUnsupportedRequest = 32, 4082 kTimestampBefore = 34, 4083 kTxnAlreadyEncounteredError = 35, 4084 kIntentMissing = 36, 4085 kMergeInProgress = 37, 4086 kRangefeedRetry = 38, 4087 kIndeterminateCommit = 39, 4088 VALUE_NOT_SET = 0, 4089 }; 4090 4091 static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY 4092 static inline const ErrorDetail* internal_default_instance() { 4093 return reinterpret_cast<const ErrorDetail*>( 4094 &_ErrorDetail_default_instance_); 4095 } 4096 static constexpr int kIndexInFileMessages = 4097 30; 4098 4099 void Swap(ErrorDetail* other); 4100 friend void swap(ErrorDetail& a, ErrorDetail& b) { 4101 a.Swap(&b); 4102 } 4103 4104 // implements Message ---------------------------------------------- 4105 4106 inline ErrorDetail* New() const final { 4107 return CreateMaybeMessage<ErrorDetail>(NULL); 4108 } 4109 4110 ErrorDetail* New(::google::protobuf::Arena* arena) const final { 4111 return CreateMaybeMessage<ErrorDetail>(arena); 4112 } 4113 void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from) 4114 final; 4115 void CopyFrom(const ErrorDetail& from); 4116 void MergeFrom(const ErrorDetail& from); 4117 void Clear() final; 4118 bool IsInitialized() const final; 4119 4120 size_t ByteSizeLong() const final; 4121 bool MergePartialFromCodedStream( 4122 ::google::protobuf::io::CodedInputStream* input) final; 4123 void SerializeWithCachedSizes( 4124 ::google::protobuf::io::CodedOutputStream* output) const final; 4125 void DiscardUnknownFields(); 4126 int GetCachedSize() const final { return _cached_size_.Get(); } 4127 4128 private: 4129 void SharedCtor(); 4130 void SharedDtor(); 4131 void SetCachedSize(int size) const; 4132 void InternalSwap(ErrorDetail* other); 4133 private: 4134 inline ::google::protobuf::Arena* GetArenaNoVirtual() const { 4135 return NULL; 4136 } 4137 inline void* MaybeArenaPtr() const { 4138 return NULL; 4139 } 4140 public: 4141 4142 ::std::string GetTypeName() const final; 4143 4144 // nested types ---------------------------------------------------- 4145 4146 // accessors ------------------------------------------------------- 4147 4148 // optional .cockroach.roachpb.NotLeaseHolderError not_lease_holder = 1; 4149 bool has_not_lease_holder() const; 4150 void clear_not_lease_holder(); 4151 static const int kNotLeaseHolderFieldNumber = 1; 4152 private: 4153 const ::cockroach::roachpb::NotLeaseHolderError& _internal_not_lease_holder() const; 4154 public: 4155 const ::cockroach::roachpb::NotLeaseHolderError& not_lease_holder() const; 4156 ::cockroach::roachpb::NotLeaseHolderError* release_not_lease_holder(); 4157 ::cockroach::roachpb::NotLeaseHolderError* mutable_not_lease_holder(); 4158 void set_allocated_not_lease_holder(::cockroach::roachpb::NotLeaseHolderError* not_lease_holder); 4159 4160 // optional .cockroach.roachpb.RangeNotFoundError range_not_found = 2; 4161 bool has_range_not_found() const; 4162 void clear_range_not_found(); 4163 static const int kRangeNotFoundFieldNumber = 2; 4164 private: 4165 const ::cockroach::roachpb::RangeNotFoundError& _internal_range_not_found() const; 4166 public: 4167 const ::cockroach::roachpb::RangeNotFoundError& range_not_found() const; 4168 ::cockroach::roachpb::RangeNotFoundError* release_range_not_found(); 4169 ::cockroach::roachpb::RangeNotFoundError* mutable_range_not_found(); 4170 void set_allocated_range_not_found(::cockroach::roachpb::RangeNotFoundError* range_not_found); 4171 4172 // optional .cockroach.roachpb.RangeKeyMismatchError range_key_mismatch = 3; 4173 bool has_range_key_mismatch() const; 4174 void clear_range_key_mismatch(); 4175 static const int kRangeKeyMismatchFieldNumber = 3; 4176 private: 4177 const ::cockroach::roachpb::RangeKeyMismatchError& _internal_range_key_mismatch() const; 4178 public: 4179 const ::cockroach::roachpb::RangeKeyMismatchError& range_key_mismatch() const; 4180 ::cockroach::roachpb::RangeKeyMismatchError* release_range_key_mismatch(); 4181 ::cockroach::roachpb::RangeKeyMismatchError* mutable_range_key_mismatch(); 4182 void set_allocated_range_key_mismatch(::cockroach::roachpb::RangeKeyMismatchError* range_key_mismatch); 4183 4184 // optional .cockroach.roachpb.ReadWithinUncertaintyIntervalError read_within_uncertainty_interval = 4; 4185 bool has_read_within_uncertainty_interval() const; 4186 void clear_read_within_uncertainty_interval(); 4187 static const int kReadWithinUncertaintyIntervalFieldNumber = 4; 4188 private: 4189 const ::cockroach::roachpb::ReadWithinUncertaintyIntervalError& _internal_read_within_uncertainty_interval() const; 4190 public: 4191 const ::cockroach::roachpb::ReadWithinUncertaintyIntervalError& read_within_uncertainty_interval() const; 4192 ::cockroach::roachpb::ReadWithinUncertaintyIntervalError* release_read_within_uncertainty_interval(); 4193 ::cockroach::roachpb::ReadWithinUncertaintyIntervalError* mutable_read_within_uncertainty_interval(); 4194 void set_allocated_read_within_uncertainty_interval(::cockroach::roachpb::ReadWithinUncertaintyIntervalError* read_within_uncertainty_interval); 4195 4196 // optional .cockroach.roachpb.TransactionAbortedError transaction_aborted = 5; 4197 bool has_transaction_aborted() const; 4198 void clear_transaction_aborted(); 4199 static const int kTransactionAbortedFieldNumber = 5; 4200 private: 4201 const ::cockroach::roachpb::TransactionAbortedError& _internal_transaction_aborted() const; 4202 public: 4203 const ::cockroach::roachpb::TransactionAbortedError& transaction_aborted() const; 4204 ::cockroach::roachpb::TransactionAbortedError* release_transaction_aborted(); 4205 ::cockroach::roachpb::TransactionAbortedError* mutable_transaction_aborted(); 4206 void set_allocated_transaction_aborted(::cockroach::roachpb::TransactionAbortedError* transaction_aborted); 4207 4208 // optional .cockroach.roachpb.TransactionPushError transaction_push = 6; 4209 bool has_transaction_push() const; 4210 void clear_transaction_push(); 4211 static const int kTransactionPushFieldNumber = 6; 4212 private: 4213 const ::cockroach::roachpb::TransactionPushError& _internal_transaction_push() const; 4214 public: 4215 const ::cockroach::roachpb::TransactionPushError& transaction_push() const; 4216 ::cockroach::roachpb::TransactionPushError* release_transaction_push(); 4217 ::cockroach::roachpb::TransactionPushError* mutable_transaction_push(); 4218 void set_allocated_transaction_push(::cockroach::roachpb::TransactionPushError* transaction_push); 4219 4220 // optional .cockroach.roachpb.TransactionRetryError transaction_retry = 7; 4221 bool has_transaction_retry() const; 4222 void clear_transaction_retry(); 4223 static const int kTransactionRetryFieldNumber = 7; 4224 private: 4225 const ::cockroach::roachpb::TransactionRetryError& _internal_transaction_retry() const; 4226 public: 4227 const ::cockroach::roachpb::TransactionRetryError& transaction_retry() const; 4228 ::cockroach::roachpb::TransactionRetryError* release_transaction_retry(); 4229 ::cockroach::roachpb::TransactionRetryError* mutable_transaction_retry(); 4230 void set_allocated_transaction_retry(::cockroach::roachpb::TransactionRetryError* transaction_retry); 4231 4232 // optional .cockroach.roachpb.TransactionStatusError transaction_status = 8; 4233 bool has_transaction_status() const; 4234 void clear_transaction_status(); 4235 static const int kTransactionStatusFieldNumber = 8; 4236 private: 4237 const ::cockroach::roachpb::TransactionStatusError& _internal_transaction_status() const; 4238 public: 4239 const ::cockroach::roachpb::TransactionStatusError& transaction_status() const; 4240 ::cockroach::roachpb::TransactionStatusError* release_transaction_status(); 4241 ::cockroach::roachpb::TransactionStatusError* mutable_transaction_status(); 4242 void set_allocated_transaction_status(::cockroach::roachpb::TransactionStatusError* transaction_status); 4243 4244 // optional .cockroach.roachpb.WriteIntentError write_intent = 9; 4245 bool has_write_intent() const; 4246 void clear_write_intent(); 4247 static const int kWriteIntentFieldNumber = 9; 4248 private: 4249 const ::cockroach::roachpb::WriteIntentError& _internal_write_intent() const; 4250 public: 4251 const ::cockroach::roachpb::WriteIntentError& write_intent() const; 4252 ::cockroach::roachpb::WriteIntentError* release_write_intent(); 4253 ::cockroach::roachpb::WriteIntentError* mutable_write_intent(); 4254 void set_allocated_write_intent(::cockroach::roachpb::WriteIntentError* write_intent); 4255 4256 // optional .cockroach.roachpb.WriteTooOldError write_too_old = 10; 4257 bool has_write_too_old() const; 4258 void clear_write_too_old(); 4259 static const int kWriteTooOldFieldNumber = 10; 4260 private: 4261 const ::cockroach::roachpb::WriteTooOldError& _internal_write_too_old() const; 4262 public: 4263 const ::cockroach::roachpb::WriteTooOldError& write_too_old() const; 4264 ::cockroach::roachpb::WriteTooOldError* release_write_too_old(); 4265 ::cockroach::roachpb::WriteTooOldError* mutable_write_too_old(); 4266 void set_allocated_write_too_old(::cockroach::roachpb::WriteTooOldError* write_too_old); 4267 4268 // optional .cockroach.roachpb.OpRequiresTxnError op_requires_txn = 11; 4269 bool has_op_requires_txn() const; 4270 void clear_op_requires_txn(); 4271 static const int kOpRequiresTxnFieldNumber = 11; 4272 private: 4273 const ::cockroach::roachpb::OpRequiresTxnError& _internal_op_requires_txn() const; 4274 public: 4275 const ::cockroach::roachpb::OpRequiresTxnError& op_requires_txn() const; 4276 ::cockroach::roachpb::OpRequiresTxnError* release_op_requires_txn(); 4277 ::cockroach::roachpb::OpRequiresTxnError* mutable_op_requires_txn(); 4278 void set_allocated_op_requires_txn(::cockroach::roachpb::OpRequiresTxnError* op_requires_txn); 4279 4280 // optional .cockroach.roachpb.ConditionFailedError condition_failed = 12; 4281 bool has_condition_failed() const; 4282 void clear_condition_failed(); 4283 static const int kConditionFailedFieldNumber = 12; 4284 private: 4285 const ::cockroach::roachpb::ConditionFailedError& _internal_condition_failed() const; 4286 public: 4287 const ::cockroach::roachpb::ConditionFailedError& condition_failed() const; 4288 ::cockroach::roachpb::ConditionFailedError* release_condition_failed(); 4289 ::cockroach::roachpb::ConditionFailedError* mutable_condition_failed(); 4290 void set_allocated_condition_failed(::cockroach::roachpb::ConditionFailedError* condition_failed); 4291 4292 // optional .cockroach.roachpb.LeaseRejectedError lease_rejected = 13; 4293 bool has_lease_rejected() const; 4294 void clear_lease_rejected(); 4295 static const int kLeaseRejectedFieldNumber = 13; 4296 private: 4297 const ::cockroach::roachpb::LeaseRejectedError& _internal_lease_rejected() const; 4298 public: 4299 const ::cockroach::roachpb::LeaseRejectedError& lease_rejected() const; 4300 ::cockroach::roachpb::LeaseRejectedError* release_lease_rejected(); 4301 ::cockroach::roachpb::LeaseRejectedError* mutable_lease_rejected(); 4302 void set_allocated_lease_rejected(::cockroach::roachpb::LeaseRejectedError* lease_rejected); 4303 4304 // optional .cockroach.roachpb.NodeUnavailableError node_unavailable = 14; 4305 bool has_node_unavailable() const; 4306 void clear_node_unavailable(); 4307 static const int kNodeUnavailableFieldNumber = 14; 4308 private: 4309 const ::cockroach::roachpb::NodeUnavailableError& _internal_node_unavailable() const; 4310 public: 4311 const ::cockroach::roachpb::NodeUnavailableError& node_unavailable() const; 4312 ::cockroach::roachpb::NodeUnavailableError* release_node_unavailable(); 4313 ::cockroach::roachpb::NodeUnavailableError* mutable_node_unavailable(); 4314 void set_allocated_node_unavailable(::cockroach::roachpb::NodeUnavailableError* node_unavailable); 4315 4316 // optional .cockroach.roachpb.SendError send = 15; 4317 bool has_send() const; 4318 void clear_send(); 4319 static const int kSendFieldNumber = 15; 4320 private: 4321 const ::cockroach::roachpb::SendError& _internal_send() const; 4322 public: 4323 const ::cockroach::roachpb::SendError& send() const; 4324 ::cockroach::roachpb::SendError* release_send(); 4325 ::cockroach::roachpb::SendError* mutable_send(); 4326 void set_allocated_send(::cockroach::roachpb::SendError* send); 4327 4328 // optional .cockroach.roachpb.RaftGroupDeletedError raft_group_deleted = 16; 4329 bool has_raft_group_deleted() const; 4330 void clear_raft_group_deleted(); 4331 static const int kRaftGroupDeletedFieldNumber = 16; 4332 private: 4333 const ::cockroach::roachpb::RaftGroupDeletedError& _internal_raft_group_deleted() const; 4334 public: 4335 const ::cockroach::roachpb::RaftGroupDeletedError& raft_group_deleted() const; 4336 ::cockroach::roachpb::RaftGroupDeletedError* release_raft_group_deleted(); 4337 ::cockroach::roachpb::RaftGroupDeletedError* mutable_raft_group_deleted(); 4338 void set_allocated_raft_group_deleted(::cockroach::roachpb::RaftGroupDeletedError* raft_group_deleted); 4339 4340 // optional .cockroach.roachpb.ReplicaCorruptionError replica_corruption = 17; 4341 bool has_replica_corruption() const; 4342 void clear_replica_corruption(); 4343 static const int kReplicaCorruptionFieldNumber = 17; 4344 private: 4345 const ::cockroach::roachpb::ReplicaCorruptionError& _internal_replica_corruption() const; 4346 public: 4347 const ::cockroach::roachpb::ReplicaCorruptionError& replica_corruption() const; 4348 ::cockroach::roachpb::ReplicaCorruptionError* release_replica_corruption(); 4349 ::cockroach::roachpb::ReplicaCorruptionError* mutable_replica_corruption(); 4350 void set_allocated_replica_corruption(::cockroach::roachpb::ReplicaCorruptionError* replica_corruption); 4351 4352 // optional .cockroach.roachpb.ReplicaTooOldError replica_too_old = 18; 4353 bool has_replica_too_old() const; 4354 void clear_replica_too_old(); 4355 static const int kReplicaTooOldFieldNumber = 18; 4356 private: 4357 const ::cockroach::roachpb::ReplicaTooOldError& _internal_replica_too_old() const; 4358 public: 4359 const ::cockroach::roachpb::ReplicaTooOldError& replica_too_old() const; 4360 ::cockroach::roachpb::ReplicaTooOldError* release_replica_too_old(); 4361 ::cockroach::roachpb::ReplicaTooOldError* mutable_replica_too_old(); 4362 void set_allocated_replica_too_old(::cockroach::roachpb::ReplicaTooOldError* replica_too_old); 4363 4364 // optional .cockroach.roachpb.AmbiguousResultError ambiguous_result = 26; 4365 bool has_ambiguous_result() const; 4366 void clear_ambiguous_result(); 4367 static const int kAmbiguousResultFieldNumber = 26; 4368 private: 4369 const ::cockroach::roachpb::AmbiguousResultError& _internal_ambiguous_result() const; 4370 public: 4371 const ::cockroach::roachpb::AmbiguousResultError& ambiguous_result() const; 4372 ::cockroach::roachpb::AmbiguousResultError* release_ambiguous_result(); 4373 ::cockroach::roachpb::AmbiguousResultError* mutable_ambiguous_result(); 4374 void set_allocated_ambiguous_result(::cockroach::roachpb::AmbiguousResultError* ambiguous_result); 4375 4376 // optional .cockroach.roachpb.StoreNotFoundError store_not_found = 27; 4377 bool has_store_not_found() const; 4378 void clear_store_not_found(); 4379 static const int kStoreNotFoundFieldNumber = 27; 4380 private: 4381 const ::cockroach::roachpb::StoreNotFoundError& _internal_store_not_found() const; 4382 public: 4383 const ::cockroach::roachpb::StoreNotFoundError& store_not_found() const; 4384 ::cockroach::roachpb::StoreNotFoundError* release_store_not_found(); 4385 ::cockroach::roachpb::StoreNotFoundError* mutable_store_not_found(); 4386 void set_allocated_store_not_found(::cockroach::roachpb::StoreNotFoundError* store_not_found); 4387 4388 // optional .cockroach.roachpb.TransactionRetryWithProtoRefreshError transaction_retry_with_proto_refresh = 28; 4389 bool has_transaction_retry_with_proto_refresh() const; 4390 void clear_transaction_retry_with_proto_refresh(); 4391 static const int kTransactionRetryWithProtoRefreshFieldNumber = 28; 4392 private: 4393 const ::cockroach::roachpb::TransactionRetryWithProtoRefreshError& _internal_transaction_retry_with_proto_refresh() const; 4394 public: 4395 const ::cockroach::roachpb::TransactionRetryWithProtoRefreshError& transaction_retry_with_proto_refresh() const; 4396 ::cockroach::roachpb::TransactionRetryWithProtoRefreshError* release_transaction_retry_with_proto_refresh(); 4397 ::cockroach::roachpb::TransactionRetryWithProtoRefreshError* mutable_transaction_retry_with_proto_refresh(); 4398 void set_allocated_transaction_retry_with_proto_refresh(::cockroach::roachpb::TransactionRetryWithProtoRefreshError* transaction_retry_with_proto_refresh); 4399 4400 // optional .cockroach.roachpb.IntegerOverflowError integer_overflow = 31; 4401 bool has_integer_overflow() const; 4402 void clear_integer_overflow(); 4403 static const int kIntegerOverflowFieldNumber = 31; 4404 private: 4405 const ::cockroach::roachpb::IntegerOverflowError& _internal_integer_overflow() const; 4406 public: 4407 const ::cockroach::roachpb::IntegerOverflowError& integer_overflow() const; 4408 ::cockroach::roachpb::IntegerOverflowError* release_integer_overflow(); 4409 ::cockroach::roachpb::IntegerOverflowError* mutable_integer_overflow(); 4410 void set_allocated_integer_overflow(::cockroach::roachpb::IntegerOverflowError* integer_overflow); 4411 4412 // optional .cockroach.roachpb.UnsupportedRequestError unsupported_request = 32; 4413 bool has_unsupported_request() const; 4414 void clear_unsupported_request(); 4415 static const int kUnsupportedRequestFieldNumber = 32; 4416 private: 4417 const ::cockroach::roachpb::UnsupportedRequestError& _internal_unsupported_request() const; 4418 public: 4419 const ::cockroach::roachpb::UnsupportedRequestError& unsupported_request() const; 4420 ::cockroach::roachpb::UnsupportedRequestError* release_unsupported_request(); 4421 ::cockroach::roachpb::UnsupportedRequestError* mutable_unsupported_request(); 4422 void set_allocated_unsupported_request(::cockroach::roachpb::UnsupportedRequestError* unsupported_request); 4423 4424 // optional .cockroach.roachpb.BatchTimestampBeforeGCError timestamp_before = 34; 4425 bool has_timestamp_before() const; 4426 void clear_timestamp_before(); 4427 static const int kTimestampBeforeFieldNumber = 34; 4428 private: 4429 const ::cockroach::roachpb::BatchTimestampBeforeGCError& _internal_timestamp_before() const; 4430 public: 4431 const ::cockroach::roachpb::BatchTimestampBeforeGCError& timestamp_before() const; 4432 ::cockroach::roachpb::BatchTimestampBeforeGCError* release_timestamp_before(); 4433 ::cockroach::roachpb::BatchTimestampBeforeGCError* mutable_timestamp_before(); 4434 void set_allocated_timestamp_before(::cockroach::roachpb::BatchTimestampBeforeGCError* timestamp_before); 4435 4436 // optional .cockroach.roachpb.TxnAlreadyEncounteredErrorError txn_already_encountered_error = 35; 4437 bool has_txn_already_encountered_error() const; 4438 void clear_txn_already_encountered_error(); 4439 static const int kTxnAlreadyEncounteredErrorFieldNumber = 35; 4440 private: 4441 const ::cockroach::roachpb::TxnAlreadyEncounteredErrorError& _internal_txn_already_encountered_error() const; 4442 public: 4443 const ::cockroach::roachpb::TxnAlreadyEncounteredErrorError& txn_already_encountered_error() const; 4444 ::cockroach::roachpb::TxnAlreadyEncounteredErrorError* release_txn_already_encountered_error(); 4445 ::cockroach::roachpb::TxnAlreadyEncounteredErrorError* mutable_txn_already_encountered_error(); 4446 void set_allocated_txn_already_encountered_error(::cockroach::roachpb::TxnAlreadyEncounteredErrorError* txn_already_encountered_error); 4447 4448 // optional .cockroach.roachpb.IntentMissingError intent_missing = 36; 4449 bool has_intent_missing() const; 4450 void clear_intent_missing(); 4451 static const int kIntentMissingFieldNumber = 36; 4452 private: 4453 const ::cockroach::roachpb::IntentMissingError& _internal_intent_missing() const; 4454 public: 4455 const ::cockroach::roachpb::IntentMissingError& intent_missing() const; 4456 ::cockroach::roachpb::IntentMissingError* release_intent_missing(); 4457 ::cockroach::roachpb::IntentMissingError* mutable_intent_missing(); 4458 void set_allocated_intent_missing(::cockroach::roachpb::IntentMissingError* intent_missing); 4459 4460 // optional .cockroach.roachpb.MergeInProgressError merge_in_progress = 37; 4461 bool has_merge_in_progress() const; 4462 void clear_merge_in_progress(); 4463 static const int kMergeInProgressFieldNumber = 37; 4464 private: 4465 const ::cockroach::roachpb::MergeInProgressError& _internal_merge_in_progress() const; 4466 public: 4467 const ::cockroach::roachpb::MergeInProgressError& merge_in_progress() const; 4468 ::cockroach::roachpb::MergeInProgressError* release_merge_in_progress(); 4469 ::cockroach::roachpb::MergeInProgressError* mutable_merge_in_progress(); 4470 void set_allocated_merge_in_progress(::cockroach::roachpb::MergeInProgressError* merge_in_progress); 4471 4472 // optional .cockroach.roachpb.RangeFeedRetryError rangefeed_retry = 38; 4473 bool has_rangefeed_retry() const; 4474 void clear_rangefeed_retry(); 4475 static const int kRangefeedRetryFieldNumber = 38; 4476 private: 4477 const ::cockroach::roachpb::RangeFeedRetryError& _internal_rangefeed_retry() const; 4478 public: 4479 const ::cockroach::roachpb::RangeFeedRetryError& rangefeed_retry() const; 4480 ::cockroach::roachpb::RangeFeedRetryError* release_rangefeed_retry(); 4481 ::cockroach::roachpb::RangeFeedRetryError* mutable_rangefeed_retry(); 4482 void set_allocated_rangefeed_retry(::cockroach::roachpb::RangeFeedRetryError* rangefeed_retry); 4483 4484 // optional .cockroach.roachpb.IndeterminateCommitError indeterminate_commit = 39; 4485 bool has_indeterminate_commit() const; 4486 void clear_indeterminate_commit(); 4487 static const int kIndeterminateCommitFieldNumber = 39; 4488 private: 4489 const ::cockroach::roachpb::IndeterminateCommitError& _internal_indeterminate_commit() const; 4490 public: 4491 const ::cockroach::roachpb::IndeterminateCommitError& indeterminate_commit() const; 4492 ::cockroach::roachpb::IndeterminateCommitError* release_indeterminate_commit(); 4493 ::cockroach::roachpb::IndeterminateCommitError* mutable_indeterminate_commit(); 4494 void set_allocated_indeterminate_commit(::cockroach::roachpb::IndeterminateCommitError* indeterminate_commit); 4495 4496 void clear_value(); 4497 ValueCase value_case() const; 4498 // @@protoc_insertion_point(class_scope:cockroach.roachpb.ErrorDetail) 4499 private: 4500 void set_has_not_lease_holder(); 4501 void set_has_range_not_found(); 4502 void set_has_range_key_mismatch(); 4503 void set_has_read_within_uncertainty_interval(); 4504 void set_has_transaction_aborted(); 4505 void set_has_transaction_push(); 4506 void set_has_transaction_retry(); 4507 void set_has_transaction_status(); 4508 void set_has_write_intent(); 4509 void set_has_write_too_old(); 4510 void set_has_op_requires_txn(); 4511 void set_has_condition_failed(); 4512 void set_has_lease_rejected(); 4513 void set_has_node_unavailable(); 4514 void set_has_send(); 4515 void set_has_raft_group_deleted(); 4516 void set_has_replica_corruption(); 4517 void set_has_replica_too_old(); 4518 void set_has_ambiguous_result(); 4519 void set_has_store_not_found(); 4520 void set_has_transaction_retry_with_proto_refresh(); 4521 void set_has_integer_overflow(); 4522 void set_has_unsupported_request(); 4523 void set_has_timestamp_before(); 4524 void set_has_txn_already_encountered_error(); 4525 void set_has_intent_missing(); 4526 void set_has_merge_in_progress(); 4527 void set_has_rangefeed_retry(); 4528 void set_has_indeterminate_commit(); 4529 4530 inline bool has_value() const; 4531 inline void clear_has_value(); 4532 4533 ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; 4534 ::google::protobuf::internal::HasBits<1> _has_bits_; 4535 mutable ::google::protobuf::internal::CachedSize _cached_size_; 4536 union ValueUnion { 4537 ValueUnion() {} 4538 ::cockroach::roachpb::NotLeaseHolderError* not_lease_holder_; 4539 ::cockroach::roachpb::RangeNotFoundError* range_not_found_; 4540 ::cockroach::roachpb::RangeKeyMismatchError* range_key_mismatch_; 4541 ::cockroach::roachpb::ReadWithinUncertaintyIntervalError* read_within_uncertainty_interval_; 4542 ::cockroach::roachpb::TransactionAbortedError* transaction_aborted_; 4543 ::cockroach::roachpb::TransactionPushError* transaction_push_; 4544 ::cockroach::roachpb::TransactionRetryError* transaction_retry_; 4545 ::cockroach::roachpb::TransactionStatusError* transaction_status_; 4546 ::cockroach::roachpb::WriteIntentError* write_intent_; 4547 ::cockroach::roachpb::WriteTooOldError* write_too_old_; 4548 ::cockroach::roachpb::OpRequiresTxnError* op_requires_txn_; 4549 ::cockroach::roachpb::ConditionFailedError* condition_failed_; 4550 ::cockroach::roachpb::LeaseRejectedError* lease_rejected_; 4551 ::cockroach::roachpb::NodeUnavailableError* node_unavailable_; 4552 ::cockroach::roachpb::SendError* send_; 4553 ::cockroach::roachpb::RaftGroupDeletedError* raft_group_deleted_; 4554 ::cockroach::roachpb::ReplicaCorruptionError* replica_corruption_; 4555 ::cockroach::roachpb::ReplicaTooOldError* replica_too_old_; 4556 ::cockroach::roachpb::AmbiguousResultError* ambiguous_result_; 4557 ::cockroach::roachpb::StoreNotFoundError* store_not_found_; 4558 ::cockroach::roachpb::TransactionRetryWithProtoRefreshError* transaction_retry_with_proto_refresh_; 4559 ::cockroach::roachpb::IntegerOverflowError* integer_overflow_; 4560 ::cockroach::roachpb::UnsupportedRequestError* unsupported_request_; 4561 ::cockroach::roachpb::BatchTimestampBeforeGCError* timestamp_before_; 4562 ::cockroach::roachpb::TxnAlreadyEncounteredErrorError* txn_already_encountered_error_; 4563 ::cockroach::roachpb::IntentMissingError* intent_missing_; 4564 ::cockroach::roachpb::MergeInProgressError* merge_in_progress_; 4565 ::cockroach::roachpb::RangeFeedRetryError* rangefeed_retry_; 4566 ::cockroach::roachpb::IndeterminateCommitError* indeterminate_commit_; 4567 } value_; 4568 ::google::protobuf::uint32 _oneof_case_[1]; 4569 4570 friend struct ::protobuf_roachpb_2ferrors_2eproto::TableStruct; 4571 }; 4572 // ------------------------------------------------------------------- 4573 4574 class ErrPosition : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:cockroach.roachpb.ErrPosition) */ { 4575 public: 4576 ErrPosition(); 4577 virtual ~ErrPosition(); 4578 4579 ErrPosition(const ErrPosition& from); 4580 4581 inline ErrPosition& operator=(const ErrPosition& from) { 4582 CopyFrom(from); 4583 return *this; 4584 } 4585 #if LANG_CXX11 4586 ErrPosition(ErrPosition&& from) noexcept 4587 : ErrPosition() { 4588 *this = ::std::move(from); 4589 } 4590 4591 inline ErrPosition& operator=(ErrPosition&& from) noexcept { 4592 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { 4593 if (this != &from) InternalSwap(&from); 4594 } else { 4595 CopyFrom(from); 4596 } 4597 return *this; 4598 } 4599 #endif 4600 inline const ::std::string& unknown_fields() const { 4601 return _internal_metadata_.unknown_fields(); 4602 } 4603 inline ::std::string* mutable_unknown_fields() { 4604 return _internal_metadata_.mutable_unknown_fields(); 4605 } 4606 4607 static const ErrPosition& default_instance(); 4608 4609 static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY 4610 static inline const ErrPosition* internal_default_instance() { 4611 return reinterpret_cast<const ErrPosition*>( 4612 &_ErrPosition_default_instance_); 4613 } 4614 static constexpr int kIndexInFileMessages = 4615 31; 4616 4617 void Swap(ErrPosition* other); 4618 friend void swap(ErrPosition& a, ErrPosition& b) { 4619 a.Swap(&b); 4620 } 4621 4622 // implements Message ---------------------------------------------- 4623 4624 inline ErrPosition* New() const final { 4625 return CreateMaybeMessage<ErrPosition>(NULL); 4626 } 4627 4628 ErrPosition* New(::google::protobuf::Arena* arena) const final { 4629 return CreateMaybeMessage<ErrPosition>(arena); 4630 } 4631 void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from) 4632 final; 4633 void CopyFrom(const ErrPosition& from); 4634 void MergeFrom(const ErrPosition& from); 4635 void Clear() final; 4636 bool IsInitialized() const final; 4637 4638 size_t ByteSizeLong() const final; 4639 bool MergePartialFromCodedStream( 4640 ::google::protobuf::io::CodedInputStream* input) final; 4641 void SerializeWithCachedSizes( 4642 ::google::protobuf::io::CodedOutputStream* output) const final; 4643 void DiscardUnknownFields(); 4644 int GetCachedSize() const final { return _cached_size_.Get(); } 4645 4646 private: 4647 void SharedCtor(); 4648 void SharedDtor(); 4649 void SetCachedSize(int size) const; 4650 void InternalSwap(ErrPosition* other); 4651 private: 4652 inline ::google::protobuf::Arena* GetArenaNoVirtual() const { 4653 return NULL; 4654 } 4655 inline void* MaybeArenaPtr() const { 4656 return NULL; 4657 } 4658 public: 4659 4660 ::std::string GetTypeName() const final; 4661 4662 // nested types ---------------------------------------------------- 4663 4664 // accessors ------------------------------------------------------- 4665 4666 bool has_index() const; 4667 void clear_index(); 4668 static const int kIndexFieldNumber = 1; 4669 ::google::protobuf::int32 index() const; 4670 void set_index(::google::protobuf::int32 value); 4671 4672 // @@protoc_insertion_point(class_scope:cockroach.roachpb.ErrPosition) 4673 private: 4674 void set_has_index(); 4675 void clear_has_index(); 4676 4677 ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; 4678 ::google::protobuf::internal::HasBits<1> _has_bits_; 4679 mutable ::google::protobuf::internal::CachedSize _cached_size_; 4680 ::google::protobuf::int32 index_; 4681 friend struct ::protobuf_roachpb_2ferrors_2eproto::TableStruct; 4682 }; 4683 // ------------------------------------------------------------------- 4684 4685 class Error : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:cockroach.roachpb.Error) */ { 4686 public: 4687 Error(); 4688 virtual ~Error(); 4689 4690 Error(const Error& from); 4691 4692 inline Error& operator=(const Error& from) { 4693 CopyFrom(from); 4694 return *this; 4695 } 4696 #if LANG_CXX11 4697 Error(Error&& from) noexcept 4698 : Error() { 4699 *this = ::std::move(from); 4700 } 4701 4702 inline Error& operator=(Error&& from) noexcept { 4703 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { 4704 if (this != &from) InternalSwap(&from); 4705 } else { 4706 CopyFrom(from); 4707 } 4708 return *this; 4709 } 4710 #endif 4711 inline const ::std::string& unknown_fields() const { 4712 return _internal_metadata_.unknown_fields(); 4713 } 4714 inline ::std::string* mutable_unknown_fields() { 4715 return _internal_metadata_.mutable_unknown_fields(); 4716 } 4717 4718 static const Error& default_instance(); 4719 4720 static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY 4721 static inline const Error* internal_default_instance() { 4722 return reinterpret_cast<const Error*>( 4723 &_Error_default_instance_); 4724 } 4725 static constexpr int kIndexInFileMessages = 4726 32; 4727 4728 void Swap(Error* other); 4729 friend void swap(Error& a, Error& b) { 4730 a.Swap(&b); 4731 } 4732 4733 // implements Message ---------------------------------------------- 4734 4735 inline Error* New() const final { 4736 return CreateMaybeMessage<Error>(NULL); 4737 } 4738 4739 Error* New(::google::protobuf::Arena* arena) const final { 4740 return CreateMaybeMessage<Error>(arena); 4741 } 4742 void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from) 4743 final; 4744 void CopyFrom(const Error& from); 4745 void MergeFrom(const Error& from); 4746 void Clear() final; 4747 bool IsInitialized() const final; 4748 4749 size_t ByteSizeLong() const final; 4750 bool MergePartialFromCodedStream( 4751 ::google::protobuf::io::CodedInputStream* input) final; 4752 void SerializeWithCachedSizes( 4753 ::google::protobuf::io::CodedOutputStream* output) const final; 4754 void DiscardUnknownFields(); 4755 int GetCachedSize() const final { return _cached_size_.Get(); } 4756 4757 private: 4758 void SharedCtor(); 4759 void SharedDtor(); 4760 void SetCachedSize(int size) const; 4761 void InternalSwap(Error* other); 4762 private: 4763 inline ::google::protobuf::Arena* GetArenaNoVirtual() const { 4764 return NULL; 4765 } 4766 inline void* MaybeArenaPtr() const { 4767 return NULL; 4768 } 4769 public: 4770 4771 ::std::string GetTypeName() const final; 4772 4773 // nested types ---------------------------------------------------- 4774 4775 // accessors ------------------------------------------------------- 4776 4777 bool has_message() const; 4778 void clear_message(); 4779 static const int kMessageFieldNumber = 1; 4780 const ::std::string& message() const; 4781 void set_message(const ::std::string& value); 4782 #if LANG_CXX11 4783 void set_message(::std::string&& value); 4784 #endif 4785 void set_message(const char* value); 4786 void set_message(const char* value, size_t size); 4787 ::std::string* mutable_message(); 4788 ::std::string* release_message(); 4789 void set_allocated_message(::std::string* message); 4790 4791 // optional .cockroach.roachpb.Transaction unexposed_txn = 4; 4792 bool has_unexposed_txn() const; 4793 void clear_unexposed_txn(); 4794 static const int kUnexposedTxnFieldNumber = 4; 4795 private: 4796 const ::cockroach::roachpb::Transaction& _internal_unexposed_txn() const; 4797 public: 4798 const ::cockroach::roachpb::Transaction& unexposed_txn() const; 4799 ::cockroach::roachpb::Transaction* release_unexposed_txn(); 4800 ::cockroach::roachpb::Transaction* mutable_unexposed_txn(); 4801 void set_allocated_unexposed_txn(::cockroach::roachpb::Transaction* unexposed_txn); 4802 4803 bool has_detail() const; 4804 void clear_detail(); 4805 static const int kDetailFieldNumber = 6; 4806 private: 4807 const ::cockroach::roachpb::ErrorDetail& _internal_detail() const; 4808 public: 4809 const ::cockroach::roachpb::ErrorDetail& detail() const; 4810 ::cockroach::roachpb::ErrorDetail* release_detail(); 4811 ::cockroach::roachpb::ErrorDetail* mutable_detail(); 4812 void set_allocated_detail(::cockroach::roachpb::ErrorDetail* detail); 4813 4814 // optional .cockroach.roachpb.ErrPosition index = 7; 4815 bool has_index() const; 4816 void clear_index(); 4817 static const int kIndexFieldNumber = 7; 4818 private: 4819 const ::cockroach::roachpb::ErrPosition& _internal_index() const; 4820 public: 4821 const ::cockroach::roachpb::ErrPosition& index() const; 4822 ::cockroach::roachpb::ErrPosition* release_index(); 4823 ::cockroach::roachpb::ErrPosition* mutable_index(); 4824 void set_allocated_index(::cockroach::roachpb::ErrPosition* index); 4825 4826 bool has_now() const; 4827 void clear_now(); 4828 static const int kNowFieldNumber = 8; 4829 private: 4830 const ::cockroach::util::hlc::Timestamp& _internal_now() const; 4831 public: 4832 const ::cockroach::util::hlc::Timestamp& now() const; 4833 ::cockroach::util::hlc::Timestamp* release_now(); 4834 ::cockroach::util::hlc::Timestamp* mutable_now(); 4835 void set_allocated_now(::cockroach::util::hlc::Timestamp* now); 4836 4837 bool has_transaction_restart() const; 4838 void clear_transaction_restart(); 4839 static const int kTransactionRestartFieldNumber = 3; 4840 ::cockroach::roachpb::TransactionRestart transaction_restart() const; 4841 void set_transaction_restart(::cockroach::roachpb::TransactionRestart value); 4842 4843 bool has_origin_node() const; 4844 void clear_origin_node(); 4845 static const int kOriginNodeFieldNumber = 5; 4846 ::google::protobuf::int32 origin_node() const; 4847 void set_origin_node(::google::protobuf::int32 value); 4848 4849 // @@protoc_insertion_point(class_scope:cockroach.roachpb.Error) 4850 private: 4851 void set_has_message(); 4852 void clear_has_message(); 4853 void set_has_transaction_restart(); 4854 void clear_has_transaction_restart(); 4855 void set_has_unexposed_txn(); 4856 void clear_has_unexposed_txn(); 4857 void set_has_origin_node(); 4858 void clear_has_origin_node(); 4859 void set_has_detail(); 4860 void clear_has_detail(); 4861 void set_has_index(); 4862 void clear_has_index(); 4863 void set_has_now(); 4864 void clear_has_now(); 4865 4866 ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; 4867 ::google::protobuf::internal::HasBits<1> _has_bits_; 4868 mutable ::google::protobuf::internal::CachedSize _cached_size_; 4869 ::google::protobuf::internal::ArenaStringPtr message_; 4870 ::cockroach::roachpb::Transaction* unexposed_txn_; 4871 ::cockroach::roachpb::ErrorDetail* detail_; 4872 ::cockroach::roachpb::ErrPosition* index_; 4873 ::cockroach::util::hlc::Timestamp* now_; 4874 int transaction_restart_; 4875 ::google::protobuf::int32 origin_node_; 4876 friend struct ::protobuf_roachpb_2ferrors_2eproto::TableStruct; 4877 }; 4878 // =================================================================== 4879 4880 4881 // =================================================================== 4882 4883 #ifdef __GNUC__ 4884 #pragma GCC diagnostic push 4885 #pragma GCC diagnostic ignored "-Wstrict-aliasing" 4886 #endif // __GNUC__ 4887 // NotLeaseHolderError 4888 4889 inline bool NotLeaseHolderError::has_replica() const { 4890 return (_has_bits_[0] & 0x00000002u) != 0; 4891 } 4892 inline void NotLeaseHolderError::set_has_replica() { 4893 _has_bits_[0] |= 0x00000002u; 4894 } 4895 inline void NotLeaseHolderError::clear_has_replica() { 4896 _has_bits_[0] &= ~0x00000002u; 4897 } 4898 inline const ::cockroach::roachpb::ReplicaDescriptor& NotLeaseHolderError::_internal_replica() const { 4899 return *replica_; 4900 } 4901 inline const ::cockroach::roachpb::ReplicaDescriptor& NotLeaseHolderError::replica() const { 4902 const ::cockroach::roachpb::ReplicaDescriptor* p = replica_; 4903 // @@protoc_insertion_point(field_get:cockroach.roachpb.NotLeaseHolderError.replica) 4904 return p != NULL ? *p : *reinterpret_cast<const ::cockroach::roachpb::ReplicaDescriptor*>( 4905 &::cockroach::roachpb::_ReplicaDescriptor_default_instance_); 4906 } 4907 inline ::cockroach::roachpb::ReplicaDescriptor* NotLeaseHolderError::release_replica() { 4908 // @@protoc_insertion_point(field_release:cockroach.roachpb.NotLeaseHolderError.replica) 4909 clear_has_replica(); 4910 ::cockroach::roachpb::ReplicaDescriptor* temp = replica_; 4911 replica_ = NULL; 4912 return temp; 4913 } 4914 inline ::cockroach::roachpb::ReplicaDescriptor* NotLeaseHolderError::mutable_replica() { 4915 set_has_replica(); 4916 if (replica_ == NULL) { 4917 auto* p = CreateMaybeMessage<::cockroach::roachpb::ReplicaDescriptor>(GetArenaNoVirtual()); 4918 replica_ = p; 4919 } 4920 // @@protoc_insertion_point(field_mutable:cockroach.roachpb.NotLeaseHolderError.replica) 4921 return replica_; 4922 } 4923 inline void NotLeaseHolderError::set_allocated_replica(::cockroach::roachpb::ReplicaDescriptor* replica) { 4924 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); 4925 if (message_arena == NULL) { 4926 delete reinterpret_cast< ::google::protobuf::MessageLite*>(replica_); 4927 } 4928 if (replica) { 4929 ::google::protobuf::Arena* submessage_arena = NULL; 4930 if (message_arena != submessage_arena) { 4931 replica = ::google::protobuf::internal::GetOwnedMessage( 4932 message_arena, replica, submessage_arena); 4933 } 4934 set_has_replica(); 4935 } else { 4936 clear_has_replica(); 4937 } 4938 replica_ = replica; 4939 // @@protoc_insertion_point(field_set_allocated:cockroach.roachpb.NotLeaseHolderError.replica) 4940 } 4941 4942 // optional .cockroach.roachpb.ReplicaDescriptor lease_holder = 2; 4943 inline bool NotLeaseHolderError::has_lease_holder() const { 4944 return (_has_bits_[0] & 0x00000004u) != 0; 4945 } 4946 inline void NotLeaseHolderError::set_has_lease_holder() { 4947 _has_bits_[0] |= 0x00000004u; 4948 } 4949 inline void NotLeaseHolderError::clear_has_lease_holder() { 4950 _has_bits_[0] &= ~0x00000004u; 4951 } 4952 inline const ::cockroach::roachpb::ReplicaDescriptor& NotLeaseHolderError::_internal_lease_holder() const { 4953 return *lease_holder_; 4954 } 4955 inline const ::cockroach::roachpb::ReplicaDescriptor& NotLeaseHolderError::lease_holder() const { 4956 const ::cockroach::roachpb::ReplicaDescriptor* p = lease_holder_; 4957 // @@protoc_insertion_point(field_get:cockroach.roachpb.NotLeaseHolderError.lease_holder) 4958 return p != NULL ? *p : *reinterpret_cast<const ::cockroach::roachpb::ReplicaDescriptor*>( 4959 &::cockroach::roachpb::_ReplicaDescriptor_default_instance_); 4960 } 4961 inline ::cockroach::roachpb::ReplicaDescriptor* NotLeaseHolderError::release_lease_holder() { 4962 // @@protoc_insertion_point(field_release:cockroach.roachpb.NotLeaseHolderError.lease_holder) 4963 clear_has_lease_holder(); 4964 ::cockroach::roachpb::ReplicaDescriptor* temp = lease_holder_; 4965 lease_holder_ = NULL; 4966 return temp; 4967 } 4968 inline ::cockroach::roachpb::ReplicaDescriptor* NotLeaseHolderError::mutable_lease_holder() { 4969 set_has_lease_holder(); 4970 if (lease_holder_ == NULL) { 4971 auto* p = CreateMaybeMessage<::cockroach::roachpb::ReplicaDescriptor>(GetArenaNoVirtual()); 4972 lease_holder_ = p; 4973 } 4974 // @@protoc_insertion_point(field_mutable:cockroach.roachpb.NotLeaseHolderError.lease_holder) 4975 return lease_holder_; 4976 } 4977 inline void NotLeaseHolderError::set_allocated_lease_holder(::cockroach::roachpb::ReplicaDescriptor* lease_holder) { 4978 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); 4979 if (message_arena == NULL) { 4980 delete reinterpret_cast< ::google::protobuf::MessageLite*>(lease_holder_); 4981 } 4982 if (lease_holder) { 4983 ::google::protobuf::Arena* submessage_arena = NULL; 4984 if (message_arena != submessage_arena) { 4985 lease_holder = ::google::protobuf::internal::GetOwnedMessage( 4986 message_arena, lease_holder, submessage_arena); 4987 } 4988 set_has_lease_holder(); 4989 } else { 4990 clear_has_lease_holder(); 4991 } 4992 lease_holder_ = lease_holder; 4993 // @@protoc_insertion_point(field_set_allocated:cockroach.roachpb.NotLeaseHolderError.lease_holder) 4994 } 4995 4996 // optional .cockroach.roachpb.Lease lease = 4; 4997 inline bool NotLeaseHolderError::has_lease() const { 4998 return (_has_bits_[0] & 0x00000008u) != 0; 4999 } 5000 inline void NotLeaseHolderError::set_has_lease() { 5001 _has_bits_[0] |= 0x00000008u; 5002 } 5003 inline void NotLeaseHolderError::clear_has_lease() { 5004 _has_bits_[0] &= ~0x00000008u; 5005 } 5006 inline const ::cockroach::roachpb::Lease& NotLeaseHolderError::_internal_lease() const { 5007 return *lease_; 5008 } 5009 inline const ::cockroach::roachpb::Lease& NotLeaseHolderError::lease() const { 5010 const ::cockroach::roachpb::Lease* p = lease_; 5011 // @@protoc_insertion_point(field_get:cockroach.roachpb.NotLeaseHolderError.lease) 5012 return p != NULL ? *p : *reinterpret_cast<const ::cockroach::roachpb::Lease*>( 5013 &::cockroach::roachpb::_Lease_default_instance_); 5014 } 5015 inline ::cockroach::roachpb::Lease* NotLeaseHolderError::release_lease() { 5016 // @@protoc_insertion_point(field_release:cockroach.roachpb.NotLeaseHolderError.lease) 5017 clear_has_lease(); 5018 ::cockroach::roachpb::Lease* temp = lease_; 5019 lease_ = NULL; 5020 return temp; 5021 } 5022 inline ::cockroach::roachpb::Lease* NotLeaseHolderError::mutable_lease() { 5023 set_has_lease(); 5024 if (lease_ == NULL) { 5025 auto* p = CreateMaybeMessage<::cockroach::roachpb::Lease>(GetArenaNoVirtual()); 5026 lease_ = p; 5027 } 5028 // @@protoc_insertion_point(field_mutable:cockroach.roachpb.NotLeaseHolderError.lease) 5029 return lease_; 5030 } 5031 inline void NotLeaseHolderError::set_allocated_lease(::cockroach::roachpb::Lease* lease) { 5032 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); 5033 if (message_arena == NULL) { 5034 delete reinterpret_cast< ::google::protobuf::MessageLite*>(lease_); 5035 } 5036 if (lease) { 5037 ::google::protobuf::Arena* submessage_arena = NULL; 5038 if (message_arena != submessage_arena) { 5039 lease = ::google::protobuf::internal::GetOwnedMessage( 5040 message_arena, lease, submessage_arena); 5041 } 5042 set_has_lease(); 5043 } else { 5044 clear_has_lease(); 5045 } 5046 lease_ = lease; 5047 // @@protoc_insertion_point(field_set_allocated:cockroach.roachpb.NotLeaseHolderError.lease) 5048 } 5049 5050 inline bool NotLeaseHolderError::has_range_id() const { 5051 return (_has_bits_[0] & 0x00000010u) != 0; 5052 } 5053 inline void NotLeaseHolderError::set_has_range_id() { 5054 _has_bits_[0] |= 0x00000010u; 5055 } 5056 inline void NotLeaseHolderError::clear_has_range_id() { 5057 _has_bits_[0] &= ~0x00000010u; 5058 } 5059 inline void NotLeaseHolderError::clear_range_id() { 5060 range_id_ = GOOGLE_LONGLONG(0); 5061 clear_has_range_id(); 5062 } 5063 inline ::google::protobuf::int64 NotLeaseHolderError::range_id() const { 5064 // @@protoc_insertion_point(field_get:cockroach.roachpb.NotLeaseHolderError.range_id) 5065 return range_id_; 5066 } 5067 inline void NotLeaseHolderError::set_range_id(::google::protobuf::int64 value) { 5068 set_has_range_id(); 5069 range_id_ = value; 5070 // @@protoc_insertion_point(field_set:cockroach.roachpb.NotLeaseHolderError.range_id) 5071 } 5072 5073 inline bool NotLeaseHolderError::has_custom_msg() const { 5074 return (_has_bits_[0] & 0x00000001u) != 0; 5075 } 5076 inline void NotLeaseHolderError::set_has_custom_msg() { 5077 _has_bits_[0] |= 0x00000001u; 5078 } 5079 inline void NotLeaseHolderError::clear_has_custom_msg() { 5080 _has_bits_[0] &= ~0x00000001u; 5081 } 5082 inline void NotLeaseHolderError::clear_custom_msg() { 5083 custom_msg_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 5084 clear_has_custom_msg(); 5085 } 5086 inline const ::std::string& NotLeaseHolderError::custom_msg() const { 5087 // @@protoc_insertion_point(field_get:cockroach.roachpb.NotLeaseHolderError.custom_msg) 5088 return custom_msg_.GetNoArena(); 5089 } 5090 inline void NotLeaseHolderError::set_custom_msg(const ::std::string& value) { 5091 set_has_custom_msg(); 5092 custom_msg_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); 5093 // @@protoc_insertion_point(field_set:cockroach.roachpb.NotLeaseHolderError.custom_msg) 5094 } 5095 #if LANG_CXX11 5096 inline void NotLeaseHolderError::set_custom_msg(::std::string&& value) { 5097 set_has_custom_msg(); 5098 custom_msg_.SetNoArena( 5099 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); 5100 // @@protoc_insertion_point(field_set_rvalue:cockroach.roachpb.NotLeaseHolderError.custom_msg) 5101 } 5102 #endif 5103 inline void NotLeaseHolderError::set_custom_msg(const char* value) { 5104 GOOGLE_DCHECK(value != NULL); 5105 set_has_custom_msg(); 5106 custom_msg_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); 5107 // @@protoc_insertion_point(field_set_char:cockroach.roachpb.NotLeaseHolderError.custom_msg) 5108 } 5109 inline void NotLeaseHolderError::set_custom_msg(const char* value, size_t size) { 5110 set_has_custom_msg(); 5111 custom_msg_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), 5112 ::std::string(reinterpret_cast<const char*>(value), size)); 5113 // @@protoc_insertion_point(field_set_pointer:cockroach.roachpb.NotLeaseHolderError.custom_msg) 5114 } 5115 inline ::std::string* NotLeaseHolderError::mutable_custom_msg() { 5116 set_has_custom_msg(); 5117 // @@protoc_insertion_point(field_mutable:cockroach.roachpb.NotLeaseHolderError.custom_msg) 5118 return custom_msg_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 5119 } 5120 inline ::std::string* NotLeaseHolderError::release_custom_msg() { 5121 // @@protoc_insertion_point(field_release:cockroach.roachpb.NotLeaseHolderError.custom_msg) 5122 if (!has_custom_msg()) { 5123 return NULL; 5124 } 5125 clear_has_custom_msg(); 5126 return custom_msg_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 5127 } 5128 inline void NotLeaseHolderError::set_allocated_custom_msg(::std::string* custom_msg) { 5129 if (custom_msg != NULL) { 5130 set_has_custom_msg(); 5131 } else { 5132 clear_has_custom_msg(); 5133 } 5134 custom_msg_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), custom_msg); 5135 // @@protoc_insertion_point(field_set_allocated:cockroach.roachpb.NotLeaseHolderError.custom_msg) 5136 } 5137 5138 // ------------------------------------------------------------------- 5139 5140 // NodeUnavailableError 5141 5142 // ------------------------------------------------------------------- 5143 5144 // UnsupportedRequestError 5145 5146 // ------------------------------------------------------------------- 5147 5148 // RangeNotFoundError 5149 5150 inline bool RangeNotFoundError::has_range_id() const { 5151 return (_has_bits_[0] & 0x00000001u) != 0; 5152 } 5153 inline void RangeNotFoundError::set_has_range_id() { 5154 _has_bits_[0] |= 0x00000001u; 5155 } 5156 inline void RangeNotFoundError::clear_has_range_id() { 5157 _has_bits_[0] &= ~0x00000001u; 5158 } 5159 inline void RangeNotFoundError::clear_range_id() { 5160 range_id_ = GOOGLE_LONGLONG(0); 5161 clear_has_range_id(); 5162 } 5163 inline ::google::protobuf::int64 RangeNotFoundError::range_id() const { 5164 // @@protoc_insertion_point(field_get:cockroach.roachpb.RangeNotFoundError.range_id) 5165 return range_id_; 5166 } 5167 inline void RangeNotFoundError::set_range_id(::google::protobuf::int64 value) { 5168 set_has_range_id(); 5169 range_id_ = value; 5170 // @@protoc_insertion_point(field_set:cockroach.roachpb.RangeNotFoundError.range_id) 5171 } 5172 5173 inline bool RangeNotFoundError::has_store_id() const { 5174 return (_has_bits_[0] & 0x00000002u) != 0; 5175 } 5176 inline void RangeNotFoundError::set_has_store_id() { 5177 _has_bits_[0] |= 0x00000002u; 5178 } 5179 inline void RangeNotFoundError::clear_has_store_id() { 5180 _has_bits_[0] &= ~0x00000002u; 5181 } 5182 inline void RangeNotFoundError::clear_store_id() { 5183 store_id_ = GOOGLE_LONGLONG(0); 5184 clear_has_store_id(); 5185 } 5186 inline ::google::protobuf::int64 RangeNotFoundError::store_id() const { 5187 // @@protoc_insertion_point(field_get:cockroach.roachpb.RangeNotFoundError.store_id) 5188 return store_id_; 5189 } 5190 inline void RangeNotFoundError::set_store_id(::google::protobuf::int64 value) { 5191 set_has_store_id(); 5192 store_id_ = value; 5193 // @@protoc_insertion_point(field_set:cockroach.roachpb.RangeNotFoundError.store_id) 5194 } 5195 5196 // ------------------------------------------------------------------- 5197 5198 // RangeKeyMismatchError 5199 5200 inline bool RangeKeyMismatchError::has_request_start_key() const { 5201 return (_has_bits_[0] & 0x00000001u) != 0; 5202 } 5203 inline void RangeKeyMismatchError::set_has_request_start_key() { 5204 _has_bits_[0] |= 0x00000001u; 5205 } 5206 inline void RangeKeyMismatchError::clear_has_request_start_key() { 5207 _has_bits_[0] &= ~0x00000001u; 5208 } 5209 inline void RangeKeyMismatchError::clear_request_start_key() { 5210 request_start_key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 5211 clear_has_request_start_key(); 5212 } 5213 inline const ::std::string& RangeKeyMismatchError::request_start_key() const { 5214 // @@protoc_insertion_point(field_get:cockroach.roachpb.RangeKeyMismatchError.request_start_key) 5215 return request_start_key_.GetNoArena(); 5216 } 5217 inline void RangeKeyMismatchError::set_request_start_key(const ::std::string& value) { 5218 set_has_request_start_key(); 5219 request_start_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); 5220 // @@protoc_insertion_point(field_set:cockroach.roachpb.RangeKeyMismatchError.request_start_key) 5221 } 5222 #if LANG_CXX11 5223 inline void RangeKeyMismatchError::set_request_start_key(::std::string&& value) { 5224 set_has_request_start_key(); 5225 request_start_key_.SetNoArena( 5226 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); 5227 // @@protoc_insertion_point(field_set_rvalue:cockroach.roachpb.RangeKeyMismatchError.request_start_key) 5228 } 5229 #endif 5230 inline void RangeKeyMismatchError::set_request_start_key(const char* value) { 5231 GOOGLE_DCHECK(value != NULL); 5232 set_has_request_start_key(); 5233 request_start_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); 5234 // @@protoc_insertion_point(field_set_char:cockroach.roachpb.RangeKeyMismatchError.request_start_key) 5235 } 5236 inline void RangeKeyMismatchError::set_request_start_key(const void* value, size_t size) { 5237 set_has_request_start_key(); 5238 request_start_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), 5239 ::std::string(reinterpret_cast<const char*>(value), size)); 5240 // @@protoc_insertion_point(field_set_pointer:cockroach.roachpb.RangeKeyMismatchError.request_start_key) 5241 } 5242 inline ::std::string* RangeKeyMismatchError::mutable_request_start_key() { 5243 set_has_request_start_key(); 5244 // @@protoc_insertion_point(field_mutable:cockroach.roachpb.RangeKeyMismatchError.request_start_key) 5245 return request_start_key_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 5246 } 5247 inline ::std::string* RangeKeyMismatchError::release_request_start_key() { 5248 // @@protoc_insertion_point(field_release:cockroach.roachpb.RangeKeyMismatchError.request_start_key) 5249 if (!has_request_start_key()) { 5250 return NULL; 5251 } 5252 clear_has_request_start_key(); 5253 return request_start_key_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 5254 } 5255 inline void RangeKeyMismatchError::set_allocated_request_start_key(::std::string* request_start_key) { 5256 if (request_start_key != NULL) { 5257 set_has_request_start_key(); 5258 } else { 5259 clear_has_request_start_key(); 5260 } 5261 request_start_key_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), request_start_key); 5262 // @@protoc_insertion_point(field_set_allocated:cockroach.roachpb.RangeKeyMismatchError.request_start_key) 5263 } 5264 5265 inline bool RangeKeyMismatchError::has_request_end_key() const { 5266 return (_has_bits_[0] & 0x00000002u) != 0; 5267 } 5268 inline void RangeKeyMismatchError::set_has_request_end_key() { 5269 _has_bits_[0] |= 0x00000002u; 5270 } 5271 inline void RangeKeyMismatchError::clear_has_request_end_key() { 5272 _has_bits_[0] &= ~0x00000002u; 5273 } 5274 inline void RangeKeyMismatchError::clear_request_end_key() { 5275 request_end_key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 5276 clear_has_request_end_key(); 5277 } 5278 inline const ::std::string& RangeKeyMismatchError::request_end_key() const { 5279 // @@protoc_insertion_point(field_get:cockroach.roachpb.RangeKeyMismatchError.request_end_key) 5280 return request_end_key_.GetNoArena(); 5281 } 5282 inline void RangeKeyMismatchError::set_request_end_key(const ::std::string& value) { 5283 set_has_request_end_key(); 5284 request_end_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); 5285 // @@protoc_insertion_point(field_set:cockroach.roachpb.RangeKeyMismatchError.request_end_key) 5286 } 5287 #if LANG_CXX11 5288 inline void RangeKeyMismatchError::set_request_end_key(::std::string&& value) { 5289 set_has_request_end_key(); 5290 request_end_key_.SetNoArena( 5291 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); 5292 // @@protoc_insertion_point(field_set_rvalue:cockroach.roachpb.RangeKeyMismatchError.request_end_key) 5293 } 5294 #endif 5295 inline void RangeKeyMismatchError::set_request_end_key(const char* value) { 5296 GOOGLE_DCHECK(value != NULL); 5297 set_has_request_end_key(); 5298 request_end_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); 5299 // @@protoc_insertion_point(field_set_char:cockroach.roachpb.RangeKeyMismatchError.request_end_key) 5300 } 5301 inline void RangeKeyMismatchError::set_request_end_key(const void* value, size_t size) { 5302 set_has_request_end_key(); 5303 request_end_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), 5304 ::std::string(reinterpret_cast<const char*>(value), size)); 5305 // @@protoc_insertion_point(field_set_pointer:cockroach.roachpb.RangeKeyMismatchError.request_end_key) 5306 } 5307 inline ::std::string* RangeKeyMismatchError::mutable_request_end_key() { 5308 set_has_request_end_key(); 5309 // @@protoc_insertion_point(field_mutable:cockroach.roachpb.RangeKeyMismatchError.request_end_key) 5310 return request_end_key_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 5311 } 5312 inline ::std::string* RangeKeyMismatchError::release_request_end_key() { 5313 // @@protoc_insertion_point(field_release:cockroach.roachpb.RangeKeyMismatchError.request_end_key) 5314 if (!has_request_end_key()) { 5315 return NULL; 5316 } 5317 clear_has_request_end_key(); 5318 return request_end_key_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 5319 } 5320 inline void RangeKeyMismatchError::set_allocated_request_end_key(::std::string* request_end_key) { 5321 if (request_end_key != NULL) { 5322 set_has_request_end_key(); 5323 } else { 5324 clear_has_request_end_key(); 5325 } 5326 request_end_key_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), request_end_key); 5327 // @@protoc_insertion_point(field_set_allocated:cockroach.roachpb.RangeKeyMismatchError.request_end_key) 5328 } 5329 5330 inline bool RangeKeyMismatchError::has_mismatched_range() const { 5331 return (_has_bits_[0] & 0x00000004u) != 0; 5332 } 5333 inline void RangeKeyMismatchError::set_has_mismatched_range() { 5334 _has_bits_[0] |= 0x00000004u; 5335 } 5336 inline void RangeKeyMismatchError::clear_has_mismatched_range() { 5337 _has_bits_[0] &= ~0x00000004u; 5338 } 5339 inline const ::cockroach::roachpb::RangeDescriptor& RangeKeyMismatchError::_internal_mismatched_range() const { 5340 return *mismatched_range_; 5341 } 5342 inline const ::cockroach::roachpb::RangeDescriptor& RangeKeyMismatchError::mismatched_range() const { 5343 const ::cockroach::roachpb::RangeDescriptor* p = mismatched_range_; 5344 // @@protoc_insertion_point(field_get:cockroach.roachpb.RangeKeyMismatchError.mismatched_range) 5345 return p != NULL ? *p : *reinterpret_cast<const ::cockroach::roachpb::RangeDescriptor*>( 5346 &::cockroach::roachpb::_RangeDescriptor_default_instance_); 5347 } 5348 inline ::cockroach::roachpb::RangeDescriptor* RangeKeyMismatchError::release_mismatched_range() { 5349 // @@protoc_insertion_point(field_release:cockroach.roachpb.RangeKeyMismatchError.mismatched_range) 5350 clear_has_mismatched_range(); 5351 ::cockroach::roachpb::RangeDescriptor* temp = mismatched_range_; 5352 mismatched_range_ = NULL; 5353 return temp; 5354 } 5355 inline ::cockroach::roachpb::RangeDescriptor* RangeKeyMismatchError::mutable_mismatched_range() { 5356 set_has_mismatched_range(); 5357 if (mismatched_range_ == NULL) { 5358 auto* p = CreateMaybeMessage<::cockroach::roachpb::RangeDescriptor>(GetArenaNoVirtual()); 5359 mismatched_range_ = p; 5360 } 5361 // @@protoc_insertion_point(field_mutable:cockroach.roachpb.RangeKeyMismatchError.mismatched_range) 5362 return mismatched_range_; 5363 } 5364 inline void RangeKeyMismatchError::set_allocated_mismatched_range(::cockroach::roachpb::RangeDescriptor* mismatched_range) { 5365 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); 5366 if (message_arena == NULL) { 5367 delete reinterpret_cast< ::google::protobuf::MessageLite*>(mismatched_range_); 5368 } 5369 if (mismatched_range) { 5370 ::google::protobuf::Arena* submessage_arena = NULL; 5371 if (message_arena != submessage_arena) { 5372 mismatched_range = ::google::protobuf::internal::GetOwnedMessage( 5373 message_arena, mismatched_range, submessage_arena); 5374 } 5375 set_has_mismatched_range(); 5376 } else { 5377 clear_has_mismatched_range(); 5378 } 5379 mismatched_range_ = mismatched_range; 5380 // @@protoc_insertion_point(field_set_allocated:cockroach.roachpb.RangeKeyMismatchError.mismatched_range) 5381 } 5382 5383 // optional .cockroach.roachpb.RangeDescriptor suggested_range = 4; 5384 inline bool RangeKeyMismatchError::has_suggested_range() const { 5385 return (_has_bits_[0] & 0x00000008u) != 0; 5386 } 5387 inline void RangeKeyMismatchError::set_has_suggested_range() { 5388 _has_bits_[0] |= 0x00000008u; 5389 } 5390 inline void RangeKeyMismatchError::clear_has_suggested_range() { 5391 _has_bits_[0] &= ~0x00000008u; 5392 } 5393 inline const ::cockroach::roachpb::RangeDescriptor& RangeKeyMismatchError::_internal_suggested_range() const { 5394 return *suggested_range_; 5395 } 5396 inline const ::cockroach::roachpb::RangeDescriptor& RangeKeyMismatchError::suggested_range() const { 5397 const ::cockroach::roachpb::RangeDescriptor* p = suggested_range_; 5398 // @@protoc_insertion_point(field_get:cockroach.roachpb.RangeKeyMismatchError.suggested_range) 5399 return p != NULL ? *p : *reinterpret_cast<const ::cockroach::roachpb::RangeDescriptor*>( 5400 &::cockroach::roachpb::_RangeDescriptor_default_instance_); 5401 } 5402 inline ::cockroach::roachpb::RangeDescriptor* RangeKeyMismatchError::release_suggested_range() { 5403 // @@protoc_insertion_point(field_release:cockroach.roachpb.RangeKeyMismatchError.suggested_range) 5404 clear_has_suggested_range(); 5405 ::cockroach::roachpb::RangeDescriptor* temp = suggested_range_; 5406 suggested_range_ = NULL; 5407 return temp; 5408 } 5409 inline ::cockroach::roachpb::RangeDescriptor* RangeKeyMismatchError::mutable_suggested_range() { 5410 set_has_suggested_range(); 5411 if (suggested_range_ == NULL) { 5412 auto* p = CreateMaybeMessage<::cockroach::roachpb::RangeDescriptor>(GetArenaNoVirtual()); 5413 suggested_range_ = p; 5414 } 5415 // @@protoc_insertion_point(field_mutable:cockroach.roachpb.RangeKeyMismatchError.suggested_range) 5416 return suggested_range_; 5417 } 5418 inline void RangeKeyMismatchError::set_allocated_suggested_range(::cockroach::roachpb::RangeDescriptor* suggested_range) { 5419 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); 5420 if (message_arena == NULL) { 5421 delete reinterpret_cast< ::google::protobuf::MessageLite*>(suggested_range_); 5422 } 5423 if (suggested_range) { 5424 ::google::protobuf::Arena* submessage_arena = NULL; 5425 if (message_arena != submessage_arena) { 5426 suggested_range = ::google::protobuf::internal::GetOwnedMessage( 5427 message_arena, suggested_range, submessage_arena); 5428 } 5429 set_has_suggested_range(); 5430 } else { 5431 clear_has_suggested_range(); 5432 } 5433 suggested_range_ = suggested_range; 5434 // @@protoc_insertion_point(field_set_allocated:cockroach.roachpb.RangeKeyMismatchError.suggested_range) 5435 } 5436 5437 // ------------------------------------------------------------------- 5438 5439 // ReadWithinUncertaintyIntervalError 5440 5441 inline bool ReadWithinUncertaintyIntervalError::has_read_timestamp() const { 5442 return (_has_bits_[0] & 0x00000001u) != 0; 5443 } 5444 inline void ReadWithinUncertaintyIntervalError::set_has_read_timestamp() { 5445 _has_bits_[0] |= 0x00000001u; 5446 } 5447 inline void ReadWithinUncertaintyIntervalError::clear_has_read_timestamp() { 5448 _has_bits_[0] &= ~0x00000001u; 5449 } 5450 inline const ::cockroach::util::hlc::Timestamp& ReadWithinUncertaintyIntervalError::_internal_read_timestamp() const { 5451 return *read_timestamp_; 5452 } 5453 inline const ::cockroach::util::hlc::Timestamp& ReadWithinUncertaintyIntervalError::read_timestamp() const { 5454 const ::cockroach::util::hlc::Timestamp* p = read_timestamp_; 5455 // @@protoc_insertion_point(field_get:cockroach.roachpb.ReadWithinUncertaintyIntervalError.read_timestamp) 5456 return p != NULL ? *p : *reinterpret_cast<const ::cockroach::util::hlc::Timestamp*>( 5457 &::cockroach::util::hlc::_Timestamp_default_instance_); 5458 } 5459 inline ::cockroach::util::hlc::Timestamp* ReadWithinUncertaintyIntervalError::release_read_timestamp() { 5460 // @@protoc_insertion_point(field_release:cockroach.roachpb.ReadWithinUncertaintyIntervalError.read_timestamp) 5461 clear_has_read_timestamp(); 5462 ::cockroach::util::hlc::Timestamp* temp = read_timestamp_; 5463 read_timestamp_ = NULL; 5464 return temp; 5465 } 5466 inline ::cockroach::util::hlc::Timestamp* ReadWithinUncertaintyIntervalError::mutable_read_timestamp() { 5467 set_has_read_timestamp(); 5468 if (read_timestamp_ == NULL) { 5469 auto* p = CreateMaybeMessage<::cockroach::util::hlc::Timestamp>(GetArenaNoVirtual()); 5470 read_timestamp_ = p; 5471 } 5472 // @@protoc_insertion_point(field_mutable:cockroach.roachpb.ReadWithinUncertaintyIntervalError.read_timestamp) 5473 return read_timestamp_; 5474 } 5475 inline void ReadWithinUncertaintyIntervalError::set_allocated_read_timestamp(::cockroach::util::hlc::Timestamp* read_timestamp) { 5476 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); 5477 if (message_arena == NULL) { 5478 delete reinterpret_cast< ::google::protobuf::MessageLite*>(read_timestamp_); 5479 } 5480 if (read_timestamp) { 5481 ::google::protobuf::Arena* submessage_arena = NULL; 5482 if (message_arena != submessage_arena) { 5483 read_timestamp = ::google::protobuf::internal::GetOwnedMessage( 5484 message_arena, read_timestamp, submessage_arena); 5485 } 5486 set_has_read_timestamp(); 5487 } else { 5488 clear_has_read_timestamp(); 5489 } 5490 read_timestamp_ = read_timestamp; 5491 // @@protoc_insertion_point(field_set_allocated:cockroach.roachpb.ReadWithinUncertaintyIntervalError.read_timestamp) 5492 } 5493 5494 inline bool ReadWithinUncertaintyIntervalError::has_existing_timestamp() const { 5495 return (_has_bits_[0] & 0x00000002u) != 0; 5496 } 5497 inline void ReadWithinUncertaintyIntervalError::set_has_existing_timestamp() { 5498 _has_bits_[0] |= 0x00000002u; 5499 } 5500 inline void ReadWithinUncertaintyIntervalError::clear_has_existing_timestamp() { 5501 _has_bits_[0] &= ~0x00000002u; 5502 } 5503 inline const ::cockroach::util::hlc::Timestamp& ReadWithinUncertaintyIntervalError::_internal_existing_timestamp() const { 5504 return *existing_timestamp_; 5505 } 5506 inline const ::cockroach::util::hlc::Timestamp& ReadWithinUncertaintyIntervalError::existing_timestamp() const { 5507 const ::cockroach::util::hlc::Timestamp* p = existing_timestamp_; 5508 // @@protoc_insertion_point(field_get:cockroach.roachpb.ReadWithinUncertaintyIntervalError.existing_timestamp) 5509 return p != NULL ? *p : *reinterpret_cast<const ::cockroach::util::hlc::Timestamp*>( 5510 &::cockroach::util::hlc::_Timestamp_default_instance_); 5511 } 5512 inline ::cockroach::util::hlc::Timestamp* ReadWithinUncertaintyIntervalError::release_existing_timestamp() { 5513 // @@protoc_insertion_point(field_release:cockroach.roachpb.ReadWithinUncertaintyIntervalError.existing_timestamp) 5514 clear_has_existing_timestamp(); 5515 ::cockroach::util::hlc::Timestamp* temp = existing_timestamp_; 5516 existing_timestamp_ = NULL; 5517 return temp; 5518 } 5519 inline ::cockroach::util::hlc::Timestamp* ReadWithinUncertaintyIntervalError::mutable_existing_timestamp() { 5520 set_has_existing_timestamp(); 5521 if (existing_timestamp_ == NULL) { 5522 auto* p = CreateMaybeMessage<::cockroach::util::hlc::Timestamp>(GetArenaNoVirtual()); 5523 existing_timestamp_ = p; 5524 } 5525 // @@protoc_insertion_point(field_mutable:cockroach.roachpb.ReadWithinUncertaintyIntervalError.existing_timestamp) 5526 return existing_timestamp_; 5527 } 5528 inline void ReadWithinUncertaintyIntervalError::set_allocated_existing_timestamp(::cockroach::util::hlc::Timestamp* existing_timestamp) { 5529 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); 5530 if (message_arena == NULL) { 5531 delete reinterpret_cast< ::google::protobuf::MessageLite*>(existing_timestamp_); 5532 } 5533 if (existing_timestamp) { 5534 ::google::protobuf::Arena* submessage_arena = NULL; 5535 if (message_arena != submessage_arena) { 5536 existing_timestamp = ::google::protobuf::internal::GetOwnedMessage( 5537 message_arena, existing_timestamp, submessage_arena); 5538 } 5539 set_has_existing_timestamp(); 5540 } else { 5541 clear_has_existing_timestamp(); 5542 } 5543 existing_timestamp_ = existing_timestamp; 5544 // @@protoc_insertion_point(field_set_allocated:cockroach.roachpb.ReadWithinUncertaintyIntervalError.existing_timestamp) 5545 } 5546 5547 // optional .cockroach.util.hlc.Timestamp max_timestamp = 3; 5548 inline bool ReadWithinUncertaintyIntervalError::has_max_timestamp() const { 5549 return (_has_bits_[0] & 0x00000004u) != 0; 5550 } 5551 inline void ReadWithinUncertaintyIntervalError::set_has_max_timestamp() { 5552 _has_bits_[0] |= 0x00000004u; 5553 } 5554 inline void ReadWithinUncertaintyIntervalError::clear_has_max_timestamp() { 5555 _has_bits_[0] &= ~0x00000004u; 5556 } 5557 inline const ::cockroach::util::hlc::Timestamp& ReadWithinUncertaintyIntervalError::_internal_max_timestamp() const { 5558 return *max_timestamp_; 5559 } 5560 inline const ::cockroach::util::hlc::Timestamp& ReadWithinUncertaintyIntervalError::max_timestamp() const { 5561 const ::cockroach::util::hlc::Timestamp* p = max_timestamp_; 5562 // @@protoc_insertion_point(field_get:cockroach.roachpb.ReadWithinUncertaintyIntervalError.max_timestamp) 5563 return p != NULL ? *p : *reinterpret_cast<const ::cockroach::util::hlc::Timestamp*>( 5564 &::cockroach::util::hlc::_Timestamp_default_instance_); 5565 } 5566 inline ::cockroach::util::hlc::Timestamp* ReadWithinUncertaintyIntervalError::release_max_timestamp() { 5567 // @@protoc_insertion_point(field_release:cockroach.roachpb.ReadWithinUncertaintyIntervalError.max_timestamp) 5568 clear_has_max_timestamp(); 5569 ::cockroach::util::hlc::Timestamp* temp = max_timestamp_; 5570 max_timestamp_ = NULL; 5571 return temp; 5572 } 5573 inline ::cockroach::util::hlc::Timestamp* ReadWithinUncertaintyIntervalError::mutable_max_timestamp() { 5574 set_has_max_timestamp(); 5575 if (max_timestamp_ == NULL) { 5576 auto* p = CreateMaybeMessage<::cockroach::util::hlc::Timestamp>(GetArenaNoVirtual()); 5577 max_timestamp_ = p; 5578 } 5579 // @@protoc_insertion_point(field_mutable:cockroach.roachpb.ReadWithinUncertaintyIntervalError.max_timestamp) 5580 return max_timestamp_; 5581 } 5582 inline void ReadWithinUncertaintyIntervalError::set_allocated_max_timestamp(::cockroach::util::hlc::Timestamp* max_timestamp) { 5583 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); 5584 if (message_arena == NULL) { 5585 delete reinterpret_cast< ::google::protobuf::MessageLite*>(max_timestamp_); 5586 } 5587 if (max_timestamp) { 5588 ::google::protobuf::Arena* submessage_arena = NULL; 5589 if (message_arena != submessage_arena) { 5590 max_timestamp = ::google::protobuf::internal::GetOwnedMessage( 5591 message_arena, max_timestamp, submessage_arena); 5592 } 5593 set_has_max_timestamp(); 5594 } else { 5595 clear_has_max_timestamp(); 5596 } 5597 max_timestamp_ = max_timestamp; 5598 // @@protoc_insertion_point(field_set_allocated:cockroach.roachpb.ReadWithinUncertaintyIntervalError.max_timestamp) 5599 } 5600 5601 inline int ReadWithinUncertaintyIntervalError::observed_timestamps_size() const { 5602 return observed_timestamps_.size(); 5603 } 5604 inline ::cockroach::roachpb::ObservedTimestamp* ReadWithinUncertaintyIntervalError::mutable_observed_timestamps(int index) { 5605 // @@protoc_insertion_point(field_mutable:cockroach.roachpb.ReadWithinUncertaintyIntervalError.observed_timestamps) 5606 return observed_timestamps_.Mutable(index); 5607 } 5608 inline ::google::protobuf::RepeatedPtrField< ::cockroach::roachpb::ObservedTimestamp >* 5609 ReadWithinUncertaintyIntervalError::mutable_observed_timestamps() { 5610 // @@protoc_insertion_point(field_mutable_list:cockroach.roachpb.ReadWithinUncertaintyIntervalError.observed_timestamps) 5611 return &observed_timestamps_; 5612 } 5613 inline const ::cockroach::roachpb::ObservedTimestamp& ReadWithinUncertaintyIntervalError::observed_timestamps(int index) const { 5614 // @@protoc_insertion_point(field_get:cockroach.roachpb.ReadWithinUncertaintyIntervalError.observed_timestamps) 5615 return observed_timestamps_.Get(index); 5616 } 5617 inline ::cockroach::roachpb::ObservedTimestamp* ReadWithinUncertaintyIntervalError::add_observed_timestamps() { 5618 // @@protoc_insertion_point(field_add:cockroach.roachpb.ReadWithinUncertaintyIntervalError.observed_timestamps) 5619 return observed_timestamps_.Add(); 5620 } 5621 inline const ::google::protobuf::RepeatedPtrField< ::cockroach::roachpb::ObservedTimestamp >& 5622 ReadWithinUncertaintyIntervalError::observed_timestamps() const { 5623 // @@protoc_insertion_point(field_list:cockroach.roachpb.ReadWithinUncertaintyIntervalError.observed_timestamps) 5624 return observed_timestamps_; 5625 } 5626 5627 // ------------------------------------------------------------------- 5628 5629 // TransactionAbortedError 5630 5631 inline bool TransactionAbortedError::has_reason() const { 5632 return (_has_bits_[0] & 0x00000001u) != 0; 5633 } 5634 inline void TransactionAbortedError::set_has_reason() { 5635 _has_bits_[0] |= 0x00000001u; 5636 } 5637 inline void TransactionAbortedError::clear_has_reason() { 5638 _has_bits_[0] &= ~0x00000001u; 5639 } 5640 inline void TransactionAbortedError::clear_reason() { 5641 reason_ = 0; 5642 clear_has_reason(); 5643 } 5644 inline ::cockroach::roachpb::TransactionAbortedReason TransactionAbortedError::reason() const { 5645 // @@protoc_insertion_point(field_get:cockroach.roachpb.TransactionAbortedError.reason) 5646 return static_cast< ::cockroach::roachpb::TransactionAbortedReason >(reason_); 5647 } 5648 inline void TransactionAbortedError::set_reason(::cockroach::roachpb::TransactionAbortedReason value) { 5649 assert(::cockroach::roachpb::TransactionAbortedReason_IsValid(value)); 5650 set_has_reason(); 5651 reason_ = value; 5652 // @@protoc_insertion_point(field_set:cockroach.roachpb.TransactionAbortedError.reason) 5653 } 5654 5655 // ------------------------------------------------------------------- 5656 5657 // TransactionPushError 5658 5659 inline bool TransactionPushError::has_pushee_txn() const { 5660 return (_has_bits_[0] & 0x00000001u) != 0; 5661 } 5662 inline void TransactionPushError::set_has_pushee_txn() { 5663 _has_bits_[0] |= 0x00000001u; 5664 } 5665 inline void TransactionPushError::clear_has_pushee_txn() { 5666 _has_bits_[0] &= ~0x00000001u; 5667 } 5668 inline const ::cockroach::roachpb::Transaction& TransactionPushError::_internal_pushee_txn() const { 5669 return *pushee_txn_; 5670 } 5671 inline const ::cockroach::roachpb::Transaction& TransactionPushError::pushee_txn() const { 5672 const ::cockroach::roachpb::Transaction* p = pushee_txn_; 5673 // @@protoc_insertion_point(field_get:cockroach.roachpb.TransactionPushError.pushee_txn) 5674 return p != NULL ? *p : *reinterpret_cast<const ::cockroach::roachpb::Transaction*>( 5675 &::cockroach::roachpb::_Transaction_default_instance_); 5676 } 5677 inline ::cockroach::roachpb::Transaction* TransactionPushError::release_pushee_txn() { 5678 // @@protoc_insertion_point(field_release:cockroach.roachpb.TransactionPushError.pushee_txn) 5679 clear_has_pushee_txn(); 5680 ::cockroach::roachpb::Transaction* temp = pushee_txn_; 5681 pushee_txn_ = NULL; 5682 return temp; 5683 } 5684 inline ::cockroach::roachpb::Transaction* TransactionPushError::mutable_pushee_txn() { 5685 set_has_pushee_txn(); 5686 if (pushee_txn_ == NULL) { 5687 auto* p = CreateMaybeMessage<::cockroach::roachpb::Transaction>(GetArenaNoVirtual()); 5688 pushee_txn_ = p; 5689 } 5690 // @@protoc_insertion_point(field_mutable:cockroach.roachpb.TransactionPushError.pushee_txn) 5691 return pushee_txn_; 5692 } 5693 inline void TransactionPushError::set_allocated_pushee_txn(::cockroach::roachpb::Transaction* pushee_txn) { 5694 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); 5695 if (message_arena == NULL) { 5696 delete reinterpret_cast< ::google::protobuf::MessageLite*>(pushee_txn_); 5697 } 5698 if (pushee_txn) { 5699 ::google::protobuf::Arena* submessage_arena = NULL; 5700 if (message_arena != submessage_arena) { 5701 pushee_txn = ::google::protobuf::internal::GetOwnedMessage( 5702 message_arena, pushee_txn, submessage_arena); 5703 } 5704 set_has_pushee_txn(); 5705 } else { 5706 clear_has_pushee_txn(); 5707 } 5708 pushee_txn_ = pushee_txn; 5709 // @@protoc_insertion_point(field_set_allocated:cockroach.roachpb.TransactionPushError.pushee_txn) 5710 } 5711 5712 // ------------------------------------------------------------------- 5713 5714 // TransactionRetryError 5715 5716 inline bool TransactionRetryError::has_reason() const { 5717 return (_has_bits_[0] & 0x00000002u) != 0; 5718 } 5719 inline void TransactionRetryError::set_has_reason() { 5720 _has_bits_[0] |= 0x00000002u; 5721 } 5722 inline void TransactionRetryError::clear_has_reason() { 5723 _has_bits_[0] &= ~0x00000002u; 5724 } 5725 inline void TransactionRetryError::clear_reason() { 5726 reason_ = 0; 5727 clear_has_reason(); 5728 } 5729 inline ::cockroach::roachpb::TransactionRetryReason TransactionRetryError::reason() const { 5730 // @@protoc_insertion_point(field_get:cockroach.roachpb.TransactionRetryError.reason) 5731 return static_cast< ::cockroach::roachpb::TransactionRetryReason >(reason_); 5732 } 5733 inline void TransactionRetryError::set_reason(::cockroach::roachpb::TransactionRetryReason value) { 5734 assert(::cockroach::roachpb::TransactionRetryReason_IsValid(value)); 5735 set_has_reason(); 5736 reason_ = value; 5737 // @@protoc_insertion_point(field_set:cockroach.roachpb.TransactionRetryError.reason) 5738 } 5739 5740 inline bool TransactionRetryError::has_extra_msg() const { 5741 return (_has_bits_[0] & 0x00000001u) != 0; 5742 } 5743 inline void TransactionRetryError::set_has_extra_msg() { 5744 _has_bits_[0] |= 0x00000001u; 5745 } 5746 inline void TransactionRetryError::clear_has_extra_msg() { 5747 _has_bits_[0] &= ~0x00000001u; 5748 } 5749 inline void TransactionRetryError::clear_extra_msg() { 5750 extra_msg_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 5751 clear_has_extra_msg(); 5752 } 5753 inline const ::std::string& TransactionRetryError::extra_msg() const { 5754 // @@protoc_insertion_point(field_get:cockroach.roachpb.TransactionRetryError.extra_msg) 5755 return extra_msg_.GetNoArena(); 5756 } 5757 inline void TransactionRetryError::set_extra_msg(const ::std::string& value) { 5758 set_has_extra_msg(); 5759 extra_msg_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); 5760 // @@protoc_insertion_point(field_set:cockroach.roachpb.TransactionRetryError.extra_msg) 5761 } 5762 #if LANG_CXX11 5763 inline void TransactionRetryError::set_extra_msg(::std::string&& value) { 5764 set_has_extra_msg(); 5765 extra_msg_.SetNoArena( 5766 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); 5767 // @@protoc_insertion_point(field_set_rvalue:cockroach.roachpb.TransactionRetryError.extra_msg) 5768 } 5769 #endif 5770 inline void TransactionRetryError::set_extra_msg(const char* value) { 5771 GOOGLE_DCHECK(value != NULL); 5772 set_has_extra_msg(); 5773 extra_msg_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); 5774 // @@protoc_insertion_point(field_set_char:cockroach.roachpb.TransactionRetryError.extra_msg) 5775 } 5776 inline void TransactionRetryError::set_extra_msg(const char* value, size_t size) { 5777 set_has_extra_msg(); 5778 extra_msg_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), 5779 ::std::string(reinterpret_cast<const char*>(value), size)); 5780 // @@protoc_insertion_point(field_set_pointer:cockroach.roachpb.TransactionRetryError.extra_msg) 5781 } 5782 inline ::std::string* TransactionRetryError::mutable_extra_msg() { 5783 set_has_extra_msg(); 5784 // @@protoc_insertion_point(field_mutable:cockroach.roachpb.TransactionRetryError.extra_msg) 5785 return extra_msg_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 5786 } 5787 inline ::std::string* TransactionRetryError::release_extra_msg() { 5788 // @@protoc_insertion_point(field_release:cockroach.roachpb.TransactionRetryError.extra_msg) 5789 if (!has_extra_msg()) { 5790 return NULL; 5791 } 5792 clear_has_extra_msg(); 5793 return extra_msg_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 5794 } 5795 inline void TransactionRetryError::set_allocated_extra_msg(::std::string* extra_msg) { 5796 if (extra_msg != NULL) { 5797 set_has_extra_msg(); 5798 } else { 5799 clear_has_extra_msg(); 5800 } 5801 extra_msg_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), extra_msg); 5802 // @@protoc_insertion_point(field_set_allocated:cockroach.roachpb.TransactionRetryError.extra_msg) 5803 } 5804 5805 // ------------------------------------------------------------------- 5806 5807 // TransactionStatusError 5808 5809 inline bool TransactionStatusError::has_msg() const { 5810 return (_has_bits_[0] & 0x00000001u) != 0; 5811 } 5812 inline void TransactionStatusError::set_has_msg() { 5813 _has_bits_[0] |= 0x00000001u; 5814 } 5815 inline void TransactionStatusError::clear_has_msg() { 5816 _has_bits_[0] &= ~0x00000001u; 5817 } 5818 inline void TransactionStatusError::clear_msg() { 5819 msg_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 5820 clear_has_msg(); 5821 } 5822 inline const ::std::string& TransactionStatusError::msg() const { 5823 // @@protoc_insertion_point(field_get:cockroach.roachpb.TransactionStatusError.msg) 5824 return msg_.GetNoArena(); 5825 } 5826 inline void TransactionStatusError::set_msg(const ::std::string& value) { 5827 set_has_msg(); 5828 msg_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); 5829 // @@protoc_insertion_point(field_set:cockroach.roachpb.TransactionStatusError.msg) 5830 } 5831 #if LANG_CXX11 5832 inline void TransactionStatusError::set_msg(::std::string&& value) { 5833 set_has_msg(); 5834 msg_.SetNoArena( 5835 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); 5836 // @@protoc_insertion_point(field_set_rvalue:cockroach.roachpb.TransactionStatusError.msg) 5837 } 5838 #endif 5839 inline void TransactionStatusError::set_msg(const char* value) { 5840 GOOGLE_DCHECK(value != NULL); 5841 set_has_msg(); 5842 msg_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); 5843 // @@protoc_insertion_point(field_set_char:cockroach.roachpb.TransactionStatusError.msg) 5844 } 5845 inline void TransactionStatusError::set_msg(const char* value, size_t size) { 5846 set_has_msg(); 5847 msg_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), 5848 ::std::string(reinterpret_cast<const char*>(value), size)); 5849 // @@protoc_insertion_point(field_set_pointer:cockroach.roachpb.TransactionStatusError.msg) 5850 } 5851 inline ::std::string* TransactionStatusError::mutable_msg() { 5852 set_has_msg(); 5853 // @@protoc_insertion_point(field_mutable:cockroach.roachpb.TransactionStatusError.msg) 5854 return msg_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 5855 } 5856 inline ::std::string* TransactionStatusError::release_msg() { 5857 // @@protoc_insertion_point(field_release:cockroach.roachpb.TransactionStatusError.msg) 5858 if (!has_msg()) { 5859 return NULL; 5860 } 5861 clear_has_msg(); 5862 return msg_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 5863 } 5864 inline void TransactionStatusError::set_allocated_msg(::std::string* msg) { 5865 if (msg != NULL) { 5866 set_has_msg(); 5867 } else { 5868 clear_has_msg(); 5869 } 5870 msg_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), msg); 5871 // @@protoc_insertion_point(field_set_allocated:cockroach.roachpb.TransactionStatusError.msg) 5872 } 5873 5874 inline bool TransactionStatusError::has_reason() const { 5875 return (_has_bits_[0] & 0x00000002u) != 0; 5876 } 5877 inline void TransactionStatusError::set_has_reason() { 5878 _has_bits_[0] |= 0x00000002u; 5879 } 5880 inline void TransactionStatusError::clear_has_reason() { 5881 _has_bits_[0] &= ~0x00000002u; 5882 } 5883 inline void TransactionStatusError::clear_reason() { 5884 reason_ = 0; 5885 clear_has_reason(); 5886 } 5887 inline ::cockroach::roachpb::TransactionStatusError_Reason TransactionStatusError::reason() const { 5888 // @@protoc_insertion_point(field_get:cockroach.roachpb.TransactionStatusError.reason) 5889 return static_cast< ::cockroach::roachpb::TransactionStatusError_Reason >(reason_); 5890 } 5891 inline void TransactionStatusError::set_reason(::cockroach::roachpb::TransactionStatusError_Reason value) { 5892 assert(::cockroach::roachpb::TransactionStatusError_Reason_IsValid(value)); 5893 set_has_reason(); 5894 reason_ = value; 5895 // @@protoc_insertion_point(field_set:cockroach.roachpb.TransactionStatusError.reason) 5896 } 5897 5898 // ------------------------------------------------------------------- 5899 5900 // WriteIntentError 5901 5902 inline int WriteIntentError::intents_size() const { 5903 return intents_.size(); 5904 } 5905 inline ::cockroach::roachpb::Intent* WriteIntentError::mutable_intents(int index) { 5906 // @@protoc_insertion_point(field_mutable:cockroach.roachpb.WriteIntentError.intents) 5907 return intents_.Mutable(index); 5908 } 5909 inline ::google::protobuf::RepeatedPtrField< ::cockroach::roachpb::Intent >* 5910 WriteIntentError::mutable_intents() { 5911 // @@protoc_insertion_point(field_mutable_list:cockroach.roachpb.WriteIntentError.intents) 5912 return &intents_; 5913 } 5914 inline const ::cockroach::roachpb::Intent& WriteIntentError::intents(int index) const { 5915 // @@protoc_insertion_point(field_get:cockroach.roachpb.WriteIntentError.intents) 5916 return intents_.Get(index); 5917 } 5918 inline ::cockroach::roachpb::Intent* WriteIntentError::add_intents() { 5919 // @@protoc_insertion_point(field_add:cockroach.roachpb.WriteIntentError.intents) 5920 return intents_.Add(); 5921 } 5922 inline const ::google::protobuf::RepeatedPtrField< ::cockroach::roachpb::Intent >& 5923 WriteIntentError::intents() const { 5924 // @@protoc_insertion_point(field_list:cockroach.roachpb.WriteIntentError.intents) 5925 return intents_; 5926 } 5927 5928 // ------------------------------------------------------------------- 5929 5930 // WriteTooOldError 5931 5932 inline bool WriteTooOldError::has_timestamp() const { 5933 return (_has_bits_[0] & 0x00000001u) != 0; 5934 } 5935 inline void WriteTooOldError::set_has_timestamp() { 5936 _has_bits_[0] |= 0x00000001u; 5937 } 5938 inline void WriteTooOldError::clear_has_timestamp() { 5939 _has_bits_[0] &= ~0x00000001u; 5940 } 5941 inline const ::cockroach::util::hlc::Timestamp& WriteTooOldError::_internal_timestamp() const { 5942 return *timestamp_; 5943 } 5944 inline const ::cockroach::util::hlc::Timestamp& WriteTooOldError::timestamp() const { 5945 const ::cockroach::util::hlc::Timestamp* p = timestamp_; 5946 // @@protoc_insertion_point(field_get:cockroach.roachpb.WriteTooOldError.timestamp) 5947 return p != NULL ? *p : *reinterpret_cast<const ::cockroach::util::hlc::Timestamp*>( 5948 &::cockroach::util::hlc::_Timestamp_default_instance_); 5949 } 5950 inline ::cockroach::util::hlc::Timestamp* WriteTooOldError::release_timestamp() { 5951 // @@protoc_insertion_point(field_release:cockroach.roachpb.WriteTooOldError.timestamp) 5952 clear_has_timestamp(); 5953 ::cockroach::util::hlc::Timestamp* temp = timestamp_; 5954 timestamp_ = NULL; 5955 return temp; 5956 } 5957 inline ::cockroach::util::hlc::Timestamp* WriteTooOldError::mutable_timestamp() { 5958 set_has_timestamp(); 5959 if (timestamp_ == NULL) { 5960 auto* p = CreateMaybeMessage<::cockroach::util::hlc::Timestamp>(GetArenaNoVirtual()); 5961 timestamp_ = p; 5962 } 5963 // @@protoc_insertion_point(field_mutable:cockroach.roachpb.WriteTooOldError.timestamp) 5964 return timestamp_; 5965 } 5966 inline void WriteTooOldError::set_allocated_timestamp(::cockroach::util::hlc::Timestamp* timestamp) { 5967 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); 5968 if (message_arena == NULL) { 5969 delete reinterpret_cast< ::google::protobuf::MessageLite*>(timestamp_); 5970 } 5971 if (timestamp) { 5972 ::google::protobuf::Arena* submessage_arena = NULL; 5973 if (message_arena != submessage_arena) { 5974 timestamp = ::google::protobuf::internal::GetOwnedMessage( 5975 message_arena, timestamp, submessage_arena); 5976 } 5977 set_has_timestamp(); 5978 } else { 5979 clear_has_timestamp(); 5980 } 5981 timestamp_ = timestamp; 5982 // @@protoc_insertion_point(field_set_allocated:cockroach.roachpb.WriteTooOldError.timestamp) 5983 } 5984 5985 inline bool WriteTooOldError::has_actual_timestamp() const { 5986 return (_has_bits_[0] & 0x00000002u) != 0; 5987 } 5988 inline void WriteTooOldError::set_has_actual_timestamp() { 5989 _has_bits_[0] |= 0x00000002u; 5990 } 5991 inline void WriteTooOldError::clear_has_actual_timestamp() { 5992 _has_bits_[0] &= ~0x00000002u; 5993 } 5994 inline const ::cockroach::util::hlc::Timestamp& WriteTooOldError::_internal_actual_timestamp() const { 5995 return *actual_timestamp_; 5996 } 5997 inline const ::cockroach::util::hlc::Timestamp& WriteTooOldError::actual_timestamp() const { 5998 const ::cockroach::util::hlc::Timestamp* p = actual_timestamp_; 5999 // @@protoc_insertion_point(field_get:cockroach.roachpb.WriteTooOldError.actual_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* WriteTooOldError::release_actual_timestamp() { 6004 // @@protoc_insertion_point(field_release:cockroach.roachpb.WriteTooOldError.actual_timestamp) 6005 clear_has_actual_timestamp(); 6006 ::cockroach::util::hlc::Timestamp* temp = actual_timestamp_; 6007 actual_timestamp_ = NULL; 6008 return temp; 6009 } 6010 inline ::cockroach::util::hlc::Timestamp* WriteTooOldError::mutable_actual_timestamp() { 6011 set_has_actual_timestamp(); 6012 if (actual_timestamp_ == NULL) { 6013 auto* p = CreateMaybeMessage<::cockroach::util::hlc::Timestamp>(GetArenaNoVirtual()); 6014 actual_timestamp_ = p; 6015 } 6016 // @@protoc_insertion_point(field_mutable:cockroach.roachpb.WriteTooOldError.actual_timestamp) 6017 return actual_timestamp_; 6018 } 6019 inline void WriteTooOldError::set_allocated_actual_timestamp(::cockroach::util::hlc::Timestamp* actual_timestamp) { 6020 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); 6021 if (message_arena == NULL) { 6022 delete reinterpret_cast< ::google::protobuf::MessageLite*>(actual_timestamp_); 6023 } 6024 if (actual_timestamp) { 6025 ::google::protobuf::Arena* submessage_arena = NULL; 6026 if (message_arena != submessage_arena) { 6027 actual_timestamp = ::google::protobuf::internal::GetOwnedMessage( 6028 message_arena, actual_timestamp, submessage_arena); 6029 } 6030 set_has_actual_timestamp(); 6031 } else { 6032 clear_has_actual_timestamp(); 6033 } 6034 actual_timestamp_ = actual_timestamp; 6035 // @@protoc_insertion_point(field_set_allocated:cockroach.roachpb.WriteTooOldError.actual_timestamp) 6036 } 6037 6038 // ------------------------------------------------------------------- 6039 6040 // OpRequiresTxnError 6041 6042 // ------------------------------------------------------------------- 6043 6044 // ConditionFailedError 6045 6046 // optional .cockroach.roachpb.Value actual_value = 1; 6047 inline bool ConditionFailedError::has_actual_value() const { 6048 return (_has_bits_[0] & 0x00000001u) != 0; 6049 } 6050 inline void ConditionFailedError::set_has_actual_value() { 6051 _has_bits_[0] |= 0x00000001u; 6052 } 6053 inline void ConditionFailedError::clear_has_actual_value() { 6054 _has_bits_[0] &= ~0x00000001u; 6055 } 6056 inline const ::cockroach::roachpb::Value& ConditionFailedError::_internal_actual_value() const { 6057 return *actual_value_; 6058 } 6059 inline const ::cockroach::roachpb::Value& ConditionFailedError::actual_value() const { 6060 const ::cockroach::roachpb::Value* p = actual_value_; 6061 // @@protoc_insertion_point(field_get:cockroach.roachpb.ConditionFailedError.actual_value) 6062 return p != NULL ? *p : *reinterpret_cast<const ::cockroach::roachpb::Value*>( 6063 &::cockroach::roachpb::_Value_default_instance_); 6064 } 6065 inline ::cockroach::roachpb::Value* ConditionFailedError::release_actual_value() { 6066 // @@protoc_insertion_point(field_release:cockroach.roachpb.ConditionFailedError.actual_value) 6067 clear_has_actual_value(); 6068 ::cockroach::roachpb::Value* temp = actual_value_; 6069 actual_value_ = NULL; 6070 return temp; 6071 } 6072 inline ::cockroach::roachpb::Value* ConditionFailedError::mutable_actual_value() { 6073 set_has_actual_value(); 6074 if (actual_value_ == NULL) { 6075 auto* p = CreateMaybeMessage<::cockroach::roachpb::Value>(GetArenaNoVirtual()); 6076 actual_value_ = p; 6077 } 6078 // @@protoc_insertion_point(field_mutable:cockroach.roachpb.ConditionFailedError.actual_value) 6079 return actual_value_; 6080 } 6081 inline void ConditionFailedError::set_allocated_actual_value(::cockroach::roachpb::Value* actual_value) { 6082 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); 6083 if (message_arena == NULL) { 6084 delete reinterpret_cast< ::google::protobuf::MessageLite*>(actual_value_); 6085 } 6086 if (actual_value) { 6087 ::google::protobuf::Arena* submessage_arena = NULL; 6088 if (message_arena != submessage_arena) { 6089 actual_value = ::google::protobuf::internal::GetOwnedMessage( 6090 message_arena, actual_value, submessage_arena); 6091 } 6092 set_has_actual_value(); 6093 } else { 6094 clear_has_actual_value(); 6095 } 6096 actual_value_ = actual_value; 6097 // @@protoc_insertion_point(field_set_allocated:cockroach.roachpb.ConditionFailedError.actual_value) 6098 } 6099 6100 // ------------------------------------------------------------------- 6101 6102 // LeaseRejectedError 6103 6104 inline bool LeaseRejectedError::has_message() const { 6105 return (_has_bits_[0] & 0x00000001u) != 0; 6106 } 6107 inline void LeaseRejectedError::set_has_message() { 6108 _has_bits_[0] |= 0x00000001u; 6109 } 6110 inline void LeaseRejectedError::clear_has_message() { 6111 _has_bits_[0] &= ~0x00000001u; 6112 } 6113 inline void LeaseRejectedError::clear_message() { 6114 message_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 6115 clear_has_message(); 6116 } 6117 inline const ::std::string& LeaseRejectedError::message() const { 6118 // @@protoc_insertion_point(field_get:cockroach.roachpb.LeaseRejectedError.message) 6119 return message_.GetNoArena(); 6120 } 6121 inline void LeaseRejectedError::set_message(const ::std::string& value) { 6122 set_has_message(); 6123 message_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); 6124 // @@protoc_insertion_point(field_set:cockroach.roachpb.LeaseRejectedError.message) 6125 } 6126 #if LANG_CXX11 6127 inline void LeaseRejectedError::set_message(::std::string&& value) { 6128 set_has_message(); 6129 message_.SetNoArena( 6130 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); 6131 // @@protoc_insertion_point(field_set_rvalue:cockroach.roachpb.LeaseRejectedError.message) 6132 } 6133 #endif 6134 inline void LeaseRejectedError::set_message(const char* value) { 6135 GOOGLE_DCHECK(value != NULL); 6136 set_has_message(); 6137 message_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); 6138 // @@protoc_insertion_point(field_set_char:cockroach.roachpb.LeaseRejectedError.message) 6139 } 6140 inline void LeaseRejectedError::set_message(const char* value, size_t size) { 6141 set_has_message(); 6142 message_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), 6143 ::std::string(reinterpret_cast<const char*>(value), size)); 6144 // @@protoc_insertion_point(field_set_pointer:cockroach.roachpb.LeaseRejectedError.message) 6145 } 6146 inline ::std::string* LeaseRejectedError::mutable_message() { 6147 set_has_message(); 6148 // @@protoc_insertion_point(field_mutable:cockroach.roachpb.LeaseRejectedError.message) 6149 return message_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 6150 } 6151 inline ::std::string* LeaseRejectedError::release_message() { 6152 // @@protoc_insertion_point(field_release:cockroach.roachpb.LeaseRejectedError.message) 6153 if (!has_message()) { 6154 return NULL; 6155 } 6156 clear_has_message(); 6157 return message_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 6158 } 6159 inline void LeaseRejectedError::set_allocated_message(::std::string* message) { 6160 if (message != NULL) { 6161 set_has_message(); 6162 } else { 6163 clear_has_message(); 6164 } 6165 message_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), message); 6166 // @@protoc_insertion_point(field_set_allocated:cockroach.roachpb.LeaseRejectedError.message) 6167 } 6168 6169 inline bool LeaseRejectedError::has_requested() const { 6170 return (_has_bits_[0] & 0x00000002u) != 0; 6171 } 6172 inline void LeaseRejectedError::set_has_requested() { 6173 _has_bits_[0] |= 0x00000002u; 6174 } 6175 inline void LeaseRejectedError::clear_has_requested() { 6176 _has_bits_[0] &= ~0x00000002u; 6177 } 6178 inline const ::cockroach::roachpb::Lease& LeaseRejectedError::_internal_requested() const { 6179 return *requested_; 6180 } 6181 inline const ::cockroach::roachpb::Lease& LeaseRejectedError::requested() const { 6182 const ::cockroach::roachpb::Lease* p = requested_; 6183 // @@protoc_insertion_point(field_get:cockroach.roachpb.LeaseRejectedError.requested) 6184 return p != NULL ? *p : *reinterpret_cast<const ::cockroach::roachpb::Lease*>( 6185 &::cockroach::roachpb::_Lease_default_instance_); 6186 } 6187 inline ::cockroach::roachpb::Lease* LeaseRejectedError::release_requested() { 6188 // @@protoc_insertion_point(field_release:cockroach.roachpb.LeaseRejectedError.requested) 6189 clear_has_requested(); 6190 ::cockroach::roachpb::Lease* temp = requested_; 6191 requested_ = NULL; 6192 return temp; 6193 } 6194 inline ::cockroach::roachpb::Lease* LeaseRejectedError::mutable_requested() { 6195 set_has_requested(); 6196 if (requested_ == NULL) { 6197 auto* p = CreateMaybeMessage<::cockroach::roachpb::Lease>(GetArenaNoVirtual()); 6198 requested_ = p; 6199 } 6200 // @@protoc_insertion_point(field_mutable:cockroach.roachpb.LeaseRejectedError.requested) 6201 return requested_; 6202 } 6203 inline void LeaseRejectedError::set_allocated_requested(::cockroach::roachpb::Lease* requested) { 6204 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); 6205 if (message_arena == NULL) { 6206 delete reinterpret_cast< ::google::protobuf::MessageLite*>(requested_); 6207 } 6208 if (requested) { 6209 ::google::protobuf::Arena* submessage_arena = NULL; 6210 if (message_arena != submessage_arena) { 6211 requested = ::google::protobuf::internal::GetOwnedMessage( 6212 message_arena, requested, submessage_arena); 6213 } 6214 set_has_requested(); 6215 } else { 6216 clear_has_requested(); 6217 } 6218 requested_ = requested; 6219 // @@protoc_insertion_point(field_set_allocated:cockroach.roachpb.LeaseRejectedError.requested) 6220 } 6221 6222 inline bool LeaseRejectedError::has_existing() const { 6223 return (_has_bits_[0] & 0x00000004u) != 0; 6224 } 6225 inline void LeaseRejectedError::set_has_existing() { 6226 _has_bits_[0] |= 0x00000004u; 6227 } 6228 inline void LeaseRejectedError::clear_has_existing() { 6229 _has_bits_[0] &= ~0x00000004u; 6230 } 6231 inline const ::cockroach::roachpb::Lease& LeaseRejectedError::_internal_existing() const { 6232 return *existing_; 6233 } 6234 inline const ::cockroach::roachpb::Lease& LeaseRejectedError::existing() const { 6235 const ::cockroach::roachpb::Lease* p = existing_; 6236 // @@protoc_insertion_point(field_get:cockroach.roachpb.LeaseRejectedError.existing) 6237 return p != NULL ? *p : *reinterpret_cast<const ::cockroach::roachpb::Lease*>( 6238 &::cockroach::roachpb::_Lease_default_instance_); 6239 } 6240 inline ::cockroach::roachpb::Lease* LeaseRejectedError::release_existing() { 6241 // @@protoc_insertion_point(field_release:cockroach.roachpb.LeaseRejectedError.existing) 6242 clear_has_existing(); 6243 ::cockroach::roachpb::Lease* temp = existing_; 6244 existing_ = NULL; 6245 return temp; 6246 } 6247 inline ::cockroach::roachpb::Lease* LeaseRejectedError::mutable_existing() { 6248 set_has_existing(); 6249 if (existing_ == NULL) { 6250 auto* p = CreateMaybeMessage<::cockroach::roachpb::Lease>(GetArenaNoVirtual()); 6251 existing_ = p; 6252 } 6253 // @@protoc_insertion_point(field_mutable:cockroach.roachpb.LeaseRejectedError.existing) 6254 return existing_; 6255 } 6256 inline void LeaseRejectedError::set_allocated_existing(::cockroach::roachpb::Lease* existing) { 6257 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); 6258 if (message_arena == NULL) { 6259 delete reinterpret_cast< ::google::protobuf::MessageLite*>(existing_); 6260 } 6261 if (existing) { 6262 ::google::protobuf::Arena* submessage_arena = NULL; 6263 if (message_arena != submessage_arena) { 6264 existing = ::google::protobuf::internal::GetOwnedMessage( 6265 message_arena, existing, submessage_arena); 6266 } 6267 set_has_existing(); 6268 } else { 6269 clear_has_existing(); 6270 } 6271 existing_ = existing; 6272 // @@protoc_insertion_point(field_set_allocated:cockroach.roachpb.LeaseRejectedError.existing) 6273 } 6274 6275 // ------------------------------------------------------------------- 6276 6277 // SendError 6278 6279 inline bool SendError::has_message() const { 6280 return (_has_bits_[0] & 0x00000001u) != 0; 6281 } 6282 inline void SendError::set_has_message() { 6283 _has_bits_[0] |= 0x00000001u; 6284 } 6285 inline void SendError::clear_has_message() { 6286 _has_bits_[0] &= ~0x00000001u; 6287 } 6288 inline void SendError::clear_message() { 6289 message_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 6290 clear_has_message(); 6291 } 6292 inline const ::std::string& SendError::message() const { 6293 // @@protoc_insertion_point(field_get:cockroach.roachpb.SendError.message) 6294 return message_.GetNoArena(); 6295 } 6296 inline void SendError::set_message(const ::std::string& value) { 6297 set_has_message(); 6298 message_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); 6299 // @@protoc_insertion_point(field_set:cockroach.roachpb.SendError.message) 6300 } 6301 #if LANG_CXX11 6302 inline void SendError::set_message(::std::string&& value) { 6303 set_has_message(); 6304 message_.SetNoArena( 6305 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); 6306 // @@protoc_insertion_point(field_set_rvalue:cockroach.roachpb.SendError.message) 6307 } 6308 #endif 6309 inline void SendError::set_message(const char* value) { 6310 GOOGLE_DCHECK(value != NULL); 6311 set_has_message(); 6312 message_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); 6313 // @@protoc_insertion_point(field_set_char:cockroach.roachpb.SendError.message) 6314 } 6315 inline void SendError::set_message(const char* value, size_t size) { 6316 set_has_message(); 6317 message_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), 6318 ::std::string(reinterpret_cast<const char*>(value), size)); 6319 // @@protoc_insertion_point(field_set_pointer:cockroach.roachpb.SendError.message) 6320 } 6321 inline ::std::string* SendError::mutable_message() { 6322 set_has_message(); 6323 // @@protoc_insertion_point(field_mutable:cockroach.roachpb.SendError.message) 6324 return message_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 6325 } 6326 inline ::std::string* SendError::release_message() { 6327 // @@protoc_insertion_point(field_release:cockroach.roachpb.SendError.message) 6328 if (!has_message()) { 6329 return NULL; 6330 } 6331 clear_has_message(); 6332 return message_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 6333 } 6334 inline void SendError::set_allocated_message(::std::string* message) { 6335 if (message != NULL) { 6336 set_has_message(); 6337 } else { 6338 clear_has_message(); 6339 } 6340 message_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), message); 6341 // @@protoc_insertion_point(field_set_allocated:cockroach.roachpb.SendError.message) 6342 } 6343 6344 // ------------------------------------------------------------------- 6345 6346 // AmbiguousResultError 6347 6348 inline bool AmbiguousResultError::has_message() const { 6349 return (_has_bits_[0] & 0x00000001u) != 0; 6350 } 6351 inline void AmbiguousResultError::set_has_message() { 6352 _has_bits_[0] |= 0x00000001u; 6353 } 6354 inline void AmbiguousResultError::clear_has_message() { 6355 _has_bits_[0] &= ~0x00000001u; 6356 } 6357 inline void AmbiguousResultError::clear_message() { 6358 message_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 6359 clear_has_message(); 6360 } 6361 inline const ::std::string& AmbiguousResultError::message() const { 6362 // @@protoc_insertion_point(field_get:cockroach.roachpb.AmbiguousResultError.message) 6363 return message_.GetNoArena(); 6364 } 6365 inline void AmbiguousResultError::set_message(const ::std::string& value) { 6366 set_has_message(); 6367 message_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); 6368 // @@protoc_insertion_point(field_set:cockroach.roachpb.AmbiguousResultError.message) 6369 } 6370 #if LANG_CXX11 6371 inline void AmbiguousResultError::set_message(::std::string&& value) { 6372 set_has_message(); 6373 message_.SetNoArena( 6374 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); 6375 // @@protoc_insertion_point(field_set_rvalue:cockroach.roachpb.AmbiguousResultError.message) 6376 } 6377 #endif 6378 inline void AmbiguousResultError::set_message(const char* value) { 6379 GOOGLE_DCHECK(value != NULL); 6380 set_has_message(); 6381 message_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); 6382 // @@protoc_insertion_point(field_set_char:cockroach.roachpb.AmbiguousResultError.message) 6383 } 6384 inline void AmbiguousResultError::set_message(const char* value, size_t size) { 6385 set_has_message(); 6386 message_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), 6387 ::std::string(reinterpret_cast<const char*>(value), size)); 6388 // @@protoc_insertion_point(field_set_pointer:cockroach.roachpb.AmbiguousResultError.message) 6389 } 6390 inline ::std::string* AmbiguousResultError::mutable_message() { 6391 set_has_message(); 6392 // @@protoc_insertion_point(field_mutable:cockroach.roachpb.AmbiguousResultError.message) 6393 return message_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 6394 } 6395 inline ::std::string* AmbiguousResultError::release_message() { 6396 // @@protoc_insertion_point(field_release:cockroach.roachpb.AmbiguousResultError.message) 6397 if (!has_message()) { 6398 return NULL; 6399 } 6400 clear_has_message(); 6401 return message_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 6402 } 6403 inline void AmbiguousResultError::set_allocated_message(::std::string* message) { 6404 if (message != NULL) { 6405 set_has_message(); 6406 } else { 6407 clear_has_message(); 6408 } 6409 message_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), message); 6410 // @@protoc_insertion_point(field_set_allocated:cockroach.roachpb.AmbiguousResultError.message) 6411 } 6412 6413 // optional .cockroach.roachpb.Error wrapped_err = 2; 6414 inline bool AmbiguousResultError::has_wrapped_err() const { 6415 return (_has_bits_[0] & 0x00000002u) != 0; 6416 } 6417 inline void AmbiguousResultError::set_has_wrapped_err() { 6418 _has_bits_[0] |= 0x00000002u; 6419 } 6420 inline void AmbiguousResultError::clear_has_wrapped_err() { 6421 _has_bits_[0] &= ~0x00000002u; 6422 } 6423 inline void AmbiguousResultError::clear_wrapped_err() { 6424 if (wrapped_err_ != NULL) wrapped_err_->Clear(); 6425 clear_has_wrapped_err(); 6426 } 6427 inline const ::cockroach::roachpb::Error& AmbiguousResultError::_internal_wrapped_err() const { 6428 return *wrapped_err_; 6429 } 6430 inline const ::cockroach::roachpb::Error& AmbiguousResultError::wrapped_err() const { 6431 const ::cockroach::roachpb::Error* p = wrapped_err_; 6432 // @@protoc_insertion_point(field_get:cockroach.roachpb.AmbiguousResultError.wrapped_err) 6433 return p != NULL ? *p : *reinterpret_cast<const ::cockroach::roachpb::Error*>( 6434 &::cockroach::roachpb::_Error_default_instance_); 6435 } 6436 inline ::cockroach::roachpb::Error* AmbiguousResultError::release_wrapped_err() { 6437 // @@protoc_insertion_point(field_release:cockroach.roachpb.AmbiguousResultError.wrapped_err) 6438 clear_has_wrapped_err(); 6439 ::cockroach::roachpb::Error* temp = wrapped_err_; 6440 wrapped_err_ = NULL; 6441 return temp; 6442 } 6443 inline ::cockroach::roachpb::Error* AmbiguousResultError::mutable_wrapped_err() { 6444 set_has_wrapped_err(); 6445 if (wrapped_err_ == NULL) { 6446 auto* p = CreateMaybeMessage<::cockroach::roachpb::Error>(GetArenaNoVirtual()); 6447 wrapped_err_ = p; 6448 } 6449 // @@protoc_insertion_point(field_mutable:cockroach.roachpb.AmbiguousResultError.wrapped_err) 6450 return wrapped_err_; 6451 } 6452 inline void AmbiguousResultError::set_allocated_wrapped_err(::cockroach::roachpb::Error* wrapped_err) { 6453 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); 6454 if (message_arena == NULL) { 6455 delete wrapped_err_; 6456 } 6457 if (wrapped_err) { 6458 ::google::protobuf::Arena* submessage_arena = NULL; 6459 if (message_arena != submessage_arena) { 6460 wrapped_err = ::google::protobuf::internal::GetOwnedMessage( 6461 message_arena, wrapped_err, submessage_arena); 6462 } 6463 set_has_wrapped_err(); 6464 } else { 6465 clear_has_wrapped_err(); 6466 } 6467 wrapped_err_ = wrapped_err; 6468 // @@protoc_insertion_point(field_set_allocated:cockroach.roachpb.AmbiguousResultError.wrapped_err) 6469 } 6470 6471 // ------------------------------------------------------------------- 6472 6473 // RaftGroupDeletedError 6474 6475 // ------------------------------------------------------------------- 6476 6477 // ReplicaCorruptionError 6478 6479 inline bool ReplicaCorruptionError::has_error_msg() const { 6480 return (_has_bits_[0] & 0x00000001u) != 0; 6481 } 6482 inline void ReplicaCorruptionError::set_has_error_msg() { 6483 _has_bits_[0] |= 0x00000001u; 6484 } 6485 inline void ReplicaCorruptionError::clear_has_error_msg() { 6486 _has_bits_[0] &= ~0x00000001u; 6487 } 6488 inline void ReplicaCorruptionError::clear_error_msg() { 6489 error_msg_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 6490 clear_has_error_msg(); 6491 } 6492 inline const ::std::string& ReplicaCorruptionError::error_msg() const { 6493 // @@protoc_insertion_point(field_get:cockroach.roachpb.ReplicaCorruptionError.error_msg) 6494 return error_msg_.GetNoArena(); 6495 } 6496 inline void ReplicaCorruptionError::set_error_msg(const ::std::string& value) { 6497 set_has_error_msg(); 6498 error_msg_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); 6499 // @@protoc_insertion_point(field_set:cockroach.roachpb.ReplicaCorruptionError.error_msg) 6500 } 6501 #if LANG_CXX11 6502 inline void ReplicaCorruptionError::set_error_msg(::std::string&& value) { 6503 set_has_error_msg(); 6504 error_msg_.SetNoArena( 6505 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); 6506 // @@protoc_insertion_point(field_set_rvalue:cockroach.roachpb.ReplicaCorruptionError.error_msg) 6507 } 6508 #endif 6509 inline void ReplicaCorruptionError::set_error_msg(const char* value) { 6510 GOOGLE_DCHECK(value != NULL); 6511 set_has_error_msg(); 6512 error_msg_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); 6513 // @@protoc_insertion_point(field_set_char:cockroach.roachpb.ReplicaCorruptionError.error_msg) 6514 } 6515 inline void ReplicaCorruptionError::set_error_msg(const char* value, size_t size) { 6516 set_has_error_msg(); 6517 error_msg_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), 6518 ::std::string(reinterpret_cast<const char*>(value), size)); 6519 // @@protoc_insertion_point(field_set_pointer:cockroach.roachpb.ReplicaCorruptionError.error_msg) 6520 } 6521 inline ::std::string* ReplicaCorruptionError::mutable_error_msg() { 6522 set_has_error_msg(); 6523 // @@protoc_insertion_point(field_mutable:cockroach.roachpb.ReplicaCorruptionError.error_msg) 6524 return error_msg_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 6525 } 6526 inline ::std::string* ReplicaCorruptionError::release_error_msg() { 6527 // @@protoc_insertion_point(field_release:cockroach.roachpb.ReplicaCorruptionError.error_msg) 6528 if (!has_error_msg()) { 6529 return NULL; 6530 } 6531 clear_has_error_msg(); 6532 return error_msg_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 6533 } 6534 inline void ReplicaCorruptionError::set_allocated_error_msg(::std::string* error_msg) { 6535 if (error_msg != NULL) { 6536 set_has_error_msg(); 6537 } else { 6538 clear_has_error_msg(); 6539 } 6540 error_msg_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), error_msg); 6541 // @@protoc_insertion_point(field_set_allocated:cockroach.roachpb.ReplicaCorruptionError.error_msg) 6542 } 6543 6544 inline bool ReplicaCorruptionError::has_processed() const { 6545 return (_has_bits_[0] & 0x00000002u) != 0; 6546 } 6547 inline void ReplicaCorruptionError::set_has_processed() { 6548 _has_bits_[0] |= 0x00000002u; 6549 } 6550 inline void ReplicaCorruptionError::clear_has_processed() { 6551 _has_bits_[0] &= ~0x00000002u; 6552 } 6553 inline void ReplicaCorruptionError::clear_processed() { 6554 processed_ = false; 6555 clear_has_processed(); 6556 } 6557 inline bool ReplicaCorruptionError::processed() const { 6558 // @@protoc_insertion_point(field_get:cockroach.roachpb.ReplicaCorruptionError.processed) 6559 return processed_; 6560 } 6561 inline void ReplicaCorruptionError::set_processed(bool value) { 6562 set_has_processed(); 6563 processed_ = value; 6564 // @@protoc_insertion_point(field_set:cockroach.roachpb.ReplicaCorruptionError.processed) 6565 } 6566 6567 // ------------------------------------------------------------------- 6568 6569 // ReplicaTooOldError 6570 6571 inline bool ReplicaTooOldError::has_replica_id() const { 6572 return (_has_bits_[0] & 0x00000001u) != 0; 6573 } 6574 inline void ReplicaTooOldError::set_has_replica_id() { 6575 _has_bits_[0] |= 0x00000001u; 6576 } 6577 inline void ReplicaTooOldError::clear_has_replica_id() { 6578 _has_bits_[0] &= ~0x00000001u; 6579 } 6580 inline void ReplicaTooOldError::clear_replica_id() { 6581 replica_id_ = 0; 6582 clear_has_replica_id(); 6583 } 6584 inline ::google::protobuf::int32 ReplicaTooOldError::replica_id() const { 6585 // @@protoc_insertion_point(field_get:cockroach.roachpb.ReplicaTooOldError.replica_id) 6586 return replica_id_; 6587 } 6588 inline void ReplicaTooOldError::set_replica_id(::google::protobuf::int32 value) { 6589 set_has_replica_id(); 6590 replica_id_ = value; 6591 // @@protoc_insertion_point(field_set:cockroach.roachpb.ReplicaTooOldError.replica_id) 6592 } 6593 6594 // ------------------------------------------------------------------- 6595 6596 // StoreNotFoundError 6597 6598 inline bool StoreNotFoundError::has_store_id() const { 6599 return (_has_bits_[0] & 0x00000001u) != 0; 6600 } 6601 inline void StoreNotFoundError::set_has_store_id() { 6602 _has_bits_[0] |= 0x00000001u; 6603 } 6604 inline void StoreNotFoundError::clear_has_store_id() { 6605 _has_bits_[0] &= ~0x00000001u; 6606 } 6607 inline void StoreNotFoundError::clear_store_id() { 6608 store_id_ = GOOGLE_LONGLONG(0); 6609 clear_has_store_id(); 6610 } 6611 inline ::google::protobuf::int64 StoreNotFoundError::store_id() const { 6612 // @@protoc_insertion_point(field_get:cockroach.roachpb.StoreNotFoundError.store_id) 6613 return store_id_; 6614 } 6615 inline void StoreNotFoundError::set_store_id(::google::protobuf::int64 value) { 6616 set_has_store_id(); 6617 store_id_ = value; 6618 // @@protoc_insertion_point(field_set:cockroach.roachpb.StoreNotFoundError.store_id) 6619 } 6620 6621 // ------------------------------------------------------------------- 6622 6623 // UnhandledRetryableError 6624 6625 inline bool UnhandledRetryableError::has_perr() const { 6626 return (_has_bits_[0] & 0x00000001u) != 0; 6627 } 6628 inline void UnhandledRetryableError::set_has_perr() { 6629 _has_bits_[0] |= 0x00000001u; 6630 } 6631 inline void UnhandledRetryableError::clear_has_perr() { 6632 _has_bits_[0] &= ~0x00000001u; 6633 } 6634 inline void UnhandledRetryableError::clear_perr() { 6635 if (perr_ != NULL) perr_->Clear(); 6636 clear_has_perr(); 6637 } 6638 inline const ::cockroach::roachpb::Error& UnhandledRetryableError::_internal_perr() const { 6639 return *perr_; 6640 } 6641 inline const ::cockroach::roachpb::Error& UnhandledRetryableError::perr() const { 6642 const ::cockroach::roachpb::Error* p = perr_; 6643 // @@protoc_insertion_point(field_get:cockroach.roachpb.UnhandledRetryableError.pErr) 6644 return p != NULL ? *p : *reinterpret_cast<const ::cockroach::roachpb::Error*>( 6645 &::cockroach::roachpb::_Error_default_instance_); 6646 } 6647 inline ::cockroach::roachpb::Error* UnhandledRetryableError::release_perr() { 6648 // @@protoc_insertion_point(field_release:cockroach.roachpb.UnhandledRetryableError.pErr) 6649 clear_has_perr(); 6650 ::cockroach::roachpb::Error* temp = perr_; 6651 perr_ = NULL; 6652 return temp; 6653 } 6654 inline ::cockroach::roachpb::Error* UnhandledRetryableError::mutable_perr() { 6655 set_has_perr(); 6656 if (perr_ == NULL) { 6657 auto* p = CreateMaybeMessage<::cockroach::roachpb::Error>(GetArenaNoVirtual()); 6658 perr_ = p; 6659 } 6660 // @@protoc_insertion_point(field_mutable:cockroach.roachpb.UnhandledRetryableError.pErr) 6661 return perr_; 6662 } 6663 inline void UnhandledRetryableError::set_allocated_perr(::cockroach::roachpb::Error* perr) { 6664 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); 6665 if (message_arena == NULL) { 6666 delete perr_; 6667 } 6668 if (perr) { 6669 ::google::protobuf::Arena* submessage_arena = NULL; 6670 if (message_arena != submessage_arena) { 6671 perr = ::google::protobuf::internal::GetOwnedMessage( 6672 message_arena, perr, submessage_arena); 6673 } 6674 set_has_perr(); 6675 } else { 6676 clear_has_perr(); 6677 } 6678 perr_ = perr; 6679 // @@protoc_insertion_point(field_set_allocated:cockroach.roachpb.UnhandledRetryableError.pErr) 6680 } 6681 6682 // ------------------------------------------------------------------- 6683 6684 // TransactionRetryWithProtoRefreshError 6685 6686 inline bool TransactionRetryWithProtoRefreshError::has_msg() const { 6687 return (_has_bits_[0] & 0x00000001u) != 0; 6688 } 6689 inline void TransactionRetryWithProtoRefreshError::set_has_msg() { 6690 _has_bits_[0] |= 0x00000001u; 6691 } 6692 inline void TransactionRetryWithProtoRefreshError::clear_has_msg() { 6693 _has_bits_[0] &= ~0x00000001u; 6694 } 6695 inline void TransactionRetryWithProtoRefreshError::clear_msg() { 6696 msg_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 6697 clear_has_msg(); 6698 } 6699 inline const ::std::string& TransactionRetryWithProtoRefreshError::msg() const { 6700 // @@protoc_insertion_point(field_get:cockroach.roachpb.TransactionRetryWithProtoRefreshError.msg) 6701 return msg_.GetNoArena(); 6702 } 6703 inline void TransactionRetryWithProtoRefreshError::set_msg(const ::std::string& value) { 6704 set_has_msg(); 6705 msg_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); 6706 // @@protoc_insertion_point(field_set:cockroach.roachpb.TransactionRetryWithProtoRefreshError.msg) 6707 } 6708 #if LANG_CXX11 6709 inline void TransactionRetryWithProtoRefreshError::set_msg(::std::string&& value) { 6710 set_has_msg(); 6711 msg_.SetNoArena( 6712 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); 6713 // @@protoc_insertion_point(field_set_rvalue:cockroach.roachpb.TransactionRetryWithProtoRefreshError.msg) 6714 } 6715 #endif 6716 inline void TransactionRetryWithProtoRefreshError::set_msg(const char* value) { 6717 GOOGLE_DCHECK(value != NULL); 6718 set_has_msg(); 6719 msg_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); 6720 // @@protoc_insertion_point(field_set_char:cockroach.roachpb.TransactionRetryWithProtoRefreshError.msg) 6721 } 6722 inline void TransactionRetryWithProtoRefreshError::set_msg(const char* value, size_t size) { 6723 set_has_msg(); 6724 msg_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), 6725 ::std::string(reinterpret_cast<const char*>(value), size)); 6726 // @@protoc_insertion_point(field_set_pointer:cockroach.roachpb.TransactionRetryWithProtoRefreshError.msg) 6727 } 6728 inline ::std::string* TransactionRetryWithProtoRefreshError::mutable_msg() { 6729 set_has_msg(); 6730 // @@protoc_insertion_point(field_mutable:cockroach.roachpb.TransactionRetryWithProtoRefreshError.msg) 6731 return msg_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 6732 } 6733 inline ::std::string* TransactionRetryWithProtoRefreshError::release_msg() { 6734 // @@protoc_insertion_point(field_release:cockroach.roachpb.TransactionRetryWithProtoRefreshError.msg) 6735 if (!has_msg()) { 6736 return NULL; 6737 } 6738 clear_has_msg(); 6739 return msg_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 6740 } 6741 inline void TransactionRetryWithProtoRefreshError::set_allocated_msg(::std::string* msg) { 6742 if (msg != NULL) { 6743 set_has_msg(); 6744 } else { 6745 clear_has_msg(); 6746 } 6747 msg_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), msg); 6748 // @@protoc_insertion_point(field_set_allocated:cockroach.roachpb.TransactionRetryWithProtoRefreshError.msg) 6749 } 6750 6751 inline bool TransactionRetryWithProtoRefreshError::has_txn_id() const { 6752 return (_has_bits_[0] & 0x00000002u) != 0; 6753 } 6754 inline void TransactionRetryWithProtoRefreshError::set_has_txn_id() { 6755 _has_bits_[0] |= 0x00000002u; 6756 } 6757 inline void TransactionRetryWithProtoRefreshError::clear_has_txn_id() { 6758 _has_bits_[0] &= ~0x00000002u; 6759 } 6760 inline void TransactionRetryWithProtoRefreshError::clear_txn_id() { 6761 txn_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 6762 clear_has_txn_id(); 6763 } 6764 inline const ::std::string& TransactionRetryWithProtoRefreshError::txn_id() const { 6765 // @@protoc_insertion_point(field_get:cockroach.roachpb.TransactionRetryWithProtoRefreshError.txn_id) 6766 return txn_id_.GetNoArena(); 6767 } 6768 inline void TransactionRetryWithProtoRefreshError::set_txn_id(const ::std::string& value) { 6769 set_has_txn_id(); 6770 txn_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); 6771 // @@protoc_insertion_point(field_set:cockroach.roachpb.TransactionRetryWithProtoRefreshError.txn_id) 6772 } 6773 #if LANG_CXX11 6774 inline void TransactionRetryWithProtoRefreshError::set_txn_id(::std::string&& value) { 6775 set_has_txn_id(); 6776 txn_id_.SetNoArena( 6777 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); 6778 // @@protoc_insertion_point(field_set_rvalue:cockroach.roachpb.TransactionRetryWithProtoRefreshError.txn_id) 6779 } 6780 #endif 6781 inline void TransactionRetryWithProtoRefreshError::set_txn_id(const char* value) { 6782 GOOGLE_DCHECK(value != NULL); 6783 set_has_txn_id(); 6784 txn_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); 6785 // @@protoc_insertion_point(field_set_char:cockroach.roachpb.TransactionRetryWithProtoRefreshError.txn_id) 6786 } 6787 inline void TransactionRetryWithProtoRefreshError::set_txn_id(const void* value, size_t size) { 6788 set_has_txn_id(); 6789 txn_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), 6790 ::std::string(reinterpret_cast<const char*>(value), size)); 6791 // @@protoc_insertion_point(field_set_pointer:cockroach.roachpb.TransactionRetryWithProtoRefreshError.txn_id) 6792 } 6793 inline ::std::string* TransactionRetryWithProtoRefreshError::mutable_txn_id() { 6794 set_has_txn_id(); 6795 // @@protoc_insertion_point(field_mutable:cockroach.roachpb.TransactionRetryWithProtoRefreshError.txn_id) 6796 return txn_id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 6797 } 6798 inline ::std::string* TransactionRetryWithProtoRefreshError::release_txn_id() { 6799 // @@protoc_insertion_point(field_release:cockroach.roachpb.TransactionRetryWithProtoRefreshError.txn_id) 6800 if (!has_txn_id()) { 6801 return NULL; 6802 } 6803 clear_has_txn_id(); 6804 return txn_id_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 6805 } 6806 inline void TransactionRetryWithProtoRefreshError::set_allocated_txn_id(::std::string* txn_id) { 6807 if (txn_id != NULL) { 6808 set_has_txn_id(); 6809 } else { 6810 clear_has_txn_id(); 6811 } 6812 txn_id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), txn_id); 6813 // @@protoc_insertion_point(field_set_allocated:cockroach.roachpb.TransactionRetryWithProtoRefreshError.txn_id) 6814 } 6815 6816 inline bool TransactionRetryWithProtoRefreshError::has_transaction() const { 6817 return (_has_bits_[0] & 0x00000004u) != 0; 6818 } 6819 inline void TransactionRetryWithProtoRefreshError::set_has_transaction() { 6820 _has_bits_[0] |= 0x00000004u; 6821 } 6822 inline void TransactionRetryWithProtoRefreshError::clear_has_transaction() { 6823 _has_bits_[0] &= ~0x00000004u; 6824 } 6825 inline const ::cockroach::roachpb::Transaction& TransactionRetryWithProtoRefreshError::_internal_transaction() const { 6826 return *transaction_; 6827 } 6828 inline const ::cockroach::roachpb::Transaction& TransactionRetryWithProtoRefreshError::transaction() const { 6829 const ::cockroach::roachpb::Transaction* p = transaction_; 6830 // @@protoc_insertion_point(field_get:cockroach.roachpb.TransactionRetryWithProtoRefreshError.transaction) 6831 return p != NULL ? *p : *reinterpret_cast<const ::cockroach::roachpb::Transaction*>( 6832 &::cockroach::roachpb::_Transaction_default_instance_); 6833 } 6834 inline ::cockroach::roachpb::Transaction* TransactionRetryWithProtoRefreshError::release_transaction() { 6835 // @@protoc_insertion_point(field_release:cockroach.roachpb.TransactionRetryWithProtoRefreshError.transaction) 6836 clear_has_transaction(); 6837 ::cockroach::roachpb::Transaction* temp = transaction_; 6838 transaction_ = NULL; 6839 return temp; 6840 } 6841 inline ::cockroach::roachpb::Transaction* TransactionRetryWithProtoRefreshError::mutable_transaction() { 6842 set_has_transaction(); 6843 if (transaction_ == NULL) { 6844 auto* p = CreateMaybeMessage<::cockroach::roachpb::Transaction>(GetArenaNoVirtual()); 6845 transaction_ = p; 6846 } 6847 // @@protoc_insertion_point(field_mutable:cockroach.roachpb.TransactionRetryWithProtoRefreshError.transaction) 6848 return transaction_; 6849 } 6850 inline void TransactionRetryWithProtoRefreshError::set_allocated_transaction(::cockroach::roachpb::Transaction* transaction) { 6851 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); 6852 if (message_arena == NULL) { 6853 delete reinterpret_cast< ::google::protobuf::MessageLite*>(transaction_); 6854 } 6855 if (transaction) { 6856 ::google::protobuf::Arena* submessage_arena = NULL; 6857 if (message_arena != submessage_arena) { 6858 transaction = ::google::protobuf::internal::GetOwnedMessage( 6859 message_arena, transaction, submessage_arena); 6860 } 6861 set_has_transaction(); 6862 } else { 6863 clear_has_transaction(); 6864 } 6865 transaction_ = transaction; 6866 // @@protoc_insertion_point(field_set_allocated:cockroach.roachpb.TransactionRetryWithProtoRefreshError.transaction) 6867 } 6868 6869 // ------------------------------------------------------------------- 6870 6871 // TxnAlreadyEncounteredErrorError 6872 6873 inline bool TxnAlreadyEncounteredErrorError::has_prev_error() const { 6874 return (_has_bits_[0] & 0x00000001u) != 0; 6875 } 6876 inline void TxnAlreadyEncounteredErrorError::set_has_prev_error() { 6877 _has_bits_[0] |= 0x00000001u; 6878 } 6879 inline void TxnAlreadyEncounteredErrorError::clear_has_prev_error() { 6880 _has_bits_[0] &= ~0x00000001u; 6881 } 6882 inline void TxnAlreadyEncounteredErrorError::clear_prev_error() { 6883 prev_error_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 6884 clear_has_prev_error(); 6885 } 6886 inline const ::std::string& TxnAlreadyEncounteredErrorError::prev_error() const { 6887 // @@protoc_insertion_point(field_get:cockroach.roachpb.TxnAlreadyEncounteredErrorError.prev_error) 6888 return prev_error_.GetNoArena(); 6889 } 6890 inline void TxnAlreadyEncounteredErrorError::set_prev_error(const ::std::string& value) { 6891 set_has_prev_error(); 6892 prev_error_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); 6893 // @@protoc_insertion_point(field_set:cockroach.roachpb.TxnAlreadyEncounteredErrorError.prev_error) 6894 } 6895 #if LANG_CXX11 6896 inline void TxnAlreadyEncounteredErrorError::set_prev_error(::std::string&& value) { 6897 set_has_prev_error(); 6898 prev_error_.SetNoArena( 6899 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); 6900 // @@protoc_insertion_point(field_set_rvalue:cockroach.roachpb.TxnAlreadyEncounteredErrorError.prev_error) 6901 } 6902 #endif 6903 inline void TxnAlreadyEncounteredErrorError::set_prev_error(const char* value) { 6904 GOOGLE_DCHECK(value != NULL); 6905 set_has_prev_error(); 6906 prev_error_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); 6907 // @@protoc_insertion_point(field_set_char:cockroach.roachpb.TxnAlreadyEncounteredErrorError.prev_error) 6908 } 6909 inline void TxnAlreadyEncounteredErrorError::set_prev_error(const char* value, size_t size) { 6910 set_has_prev_error(); 6911 prev_error_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), 6912 ::std::string(reinterpret_cast<const char*>(value), size)); 6913 // @@protoc_insertion_point(field_set_pointer:cockroach.roachpb.TxnAlreadyEncounteredErrorError.prev_error) 6914 } 6915 inline ::std::string* TxnAlreadyEncounteredErrorError::mutable_prev_error() { 6916 set_has_prev_error(); 6917 // @@protoc_insertion_point(field_mutable:cockroach.roachpb.TxnAlreadyEncounteredErrorError.prev_error) 6918 return prev_error_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 6919 } 6920 inline ::std::string* TxnAlreadyEncounteredErrorError::release_prev_error() { 6921 // @@protoc_insertion_point(field_release:cockroach.roachpb.TxnAlreadyEncounteredErrorError.prev_error) 6922 if (!has_prev_error()) { 6923 return NULL; 6924 } 6925 clear_has_prev_error(); 6926 return prev_error_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 6927 } 6928 inline void TxnAlreadyEncounteredErrorError::set_allocated_prev_error(::std::string* prev_error) { 6929 if (prev_error != NULL) { 6930 set_has_prev_error(); 6931 } else { 6932 clear_has_prev_error(); 6933 } 6934 prev_error_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), prev_error); 6935 // @@protoc_insertion_point(field_set_allocated:cockroach.roachpb.TxnAlreadyEncounteredErrorError.prev_error) 6936 } 6937 6938 // ------------------------------------------------------------------- 6939 6940 // IntegerOverflowError 6941 6942 inline bool IntegerOverflowError::has_key() const { 6943 return (_has_bits_[0] & 0x00000001u) != 0; 6944 } 6945 inline void IntegerOverflowError::set_has_key() { 6946 _has_bits_[0] |= 0x00000001u; 6947 } 6948 inline void IntegerOverflowError::clear_has_key() { 6949 _has_bits_[0] &= ~0x00000001u; 6950 } 6951 inline void IntegerOverflowError::clear_key() { 6952 key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 6953 clear_has_key(); 6954 } 6955 inline const ::std::string& IntegerOverflowError::key() const { 6956 // @@protoc_insertion_point(field_get:cockroach.roachpb.IntegerOverflowError.key) 6957 return key_.GetNoArena(); 6958 } 6959 inline void IntegerOverflowError::set_key(const ::std::string& value) { 6960 set_has_key(); 6961 key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); 6962 // @@protoc_insertion_point(field_set:cockroach.roachpb.IntegerOverflowError.key) 6963 } 6964 #if LANG_CXX11 6965 inline void IntegerOverflowError::set_key(::std::string&& value) { 6966 set_has_key(); 6967 key_.SetNoArena( 6968 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); 6969 // @@protoc_insertion_point(field_set_rvalue:cockroach.roachpb.IntegerOverflowError.key) 6970 } 6971 #endif 6972 inline void IntegerOverflowError::set_key(const char* value) { 6973 GOOGLE_DCHECK(value != NULL); 6974 set_has_key(); 6975 key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); 6976 // @@protoc_insertion_point(field_set_char:cockroach.roachpb.IntegerOverflowError.key) 6977 } 6978 inline void IntegerOverflowError::set_key(const void* value, size_t size) { 6979 set_has_key(); 6980 key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), 6981 ::std::string(reinterpret_cast<const char*>(value), size)); 6982 // @@protoc_insertion_point(field_set_pointer:cockroach.roachpb.IntegerOverflowError.key) 6983 } 6984 inline ::std::string* IntegerOverflowError::mutable_key() { 6985 set_has_key(); 6986 // @@protoc_insertion_point(field_mutable:cockroach.roachpb.IntegerOverflowError.key) 6987 return key_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 6988 } 6989 inline ::std::string* IntegerOverflowError::release_key() { 6990 // @@protoc_insertion_point(field_release:cockroach.roachpb.IntegerOverflowError.key) 6991 if (!has_key()) { 6992 return NULL; 6993 } 6994 clear_has_key(); 6995 return key_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 6996 } 6997 inline void IntegerOverflowError::set_allocated_key(::std::string* key) { 6998 if (key != NULL) { 6999 set_has_key(); 7000 } else { 7001 clear_has_key(); 7002 } 7003 key_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), key); 7004 // @@protoc_insertion_point(field_set_allocated:cockroach.roachpb.IntegerOverflowError.key) 7005 } 7006 7007 inline bool IntegerOverflowError::has_current_value() const { 7008 return (_has_bits_[0] & 0x00000002u) != 0; 7009 } 7010 inline void IntegerOverflowError::set_has_current_value() { 7011 _has_bits_[0] |= 0x00000002u; 7012 } 7013 inline void IntegerOverflowError::clear_has_current_value() { 7014 _has_bits_[0] &= ~0x00000002u; 7015 } 7016 inline void IntegerOverflowError::clear_current_value() { 7017 current_value_ = GOOGLE_LONGLONG(0); 7018 clear_has_current_value(); 7019 } 7020 inline ::google::protobuf::int64 IntegerOverflowError::current_value() const { 7021 // @@protoc_insertion_point(field_get:cockroach.roachpb.IntegerOverflowError.current_value) 7022 return current_value_; 7023 } 7024 inline void IntegerOverflowError::set_current_value(::google::protobuf::int64 value) { 7025 set_has_current_value(); 7026 current_value_ = value; 7027 // @@protoc_insertion_point(field_set:cockroach.roachpb.IntegerOverflowError.current_value) 7028 } 7029 7030 inline bool IntegerOverflowError::has_increment_value() const { 7031 return (_has_bits_[0] & 0x00000004u) != 0; 7032 } 7033 inline void IntegerOverflowError::set_has_increment_value() { 7034 _has_bits_[0] |= 0x00000004u; 7035 } 7036 inline void IntegerOverflowError::clear_has_increment_value() { 7037 _has_bits_[0] &= ~0x00000004u; 7038 } 7039 inline void IntegerOverflowError::clear_increment_value() { 7040 increment_value_ = GOOGLE_LONGLONG(0); 7041 clear_has_increment_value(); 7042 } 7043 inline ::google::protobuf::int64 IntegerOverflowError::increment_value() const { 7044 // @@protoc_insertion_point(field_get:cockroach.roachpb.IntegerOverflowError.increment_value) 7045 return increment_value_; 7046 } 7047 inline void IntegerOverflowError::set_increment_value(::google::protobuf::int64 value) { 7048 set_has_increment_value(); 7049 increment_value_ = value; 7050 // @@protoc_insertion_point(field_set:cockroach.roachpb.IntegerOverflowError.increment_value) 7051 } 7052 7053 // ------------------------------------------------------------------- 7054 7055 // BatchTimestampBeforeGCError 7056 7057 inline bool BatchTimestampBeforeGCError::has_timestamp() const { 7058 return (_has_bits_[0] & 0x00000001u) != 0; 7059 } 7060 inline void BatchTimestampBeforeGCError::set_has_timestamp() { 7061 _has_bits_[0] |= 0x00000001u; 7062 } 7063 inline void BatchTimestampBeforeGCError::clear_has_timestamp() { 7064 _has_bits_[0] &= ~0x00000001u; 7065 } 7066 inline const ::cockroach::util::hlc::Timestamp& BatchTimestampBeforeGCError::_internal_timestamp() const { 7067 return *timestamp_; 7068 } 7069 inline const ::cockroach::util::hlc::Timestamp& BatchTimestampBeforeGCError::timestamp() const { 7070 const ::cockroach::util::hlc::Timestamp* p = timestamp_; 7071 // @@protoc_insertion_point(field_get:cockroach.roachpb.BatchTimestampBeforeGCError.Timestamp) 7072 return p != NULL ? *p : *reinterpret_cast<const ::cockroach::util::hlc::Timestamp*>( 7073 &::cockroach::util::hlc::_Timestamp_default_instance_); 7074 } 7075 inline ::cockroach::util::hlc::Timestamp* BatchTimestampBeforeGCError::release_timestamp() { 7076 // @@protoc_insertion_point(field_release:cockroach.roachpb.BatchTimestampBeforeGCError.Timestamp) 7077 clear_has_timestamp(); 7078 ::cockroach::util::hlc::Timestamp* temp = timestamp_; 7079 timestamp_ = NULL; 7080 return temp; 7081 } 7082 inline ::cockroach::util::hlc::Timestamp* BatchTimestampBeforeGCError::mutable_timestamp() { 7083 set_has_timestamp(); 7084 if (timestamp_ == NULL) { 7085 auto* p = CreateMaybeMessage<::cockroach::util::hlc::Timestamp>(GetArenaNoVirtual()); 7086 timestamp_ = p; 7087 } 7088 // @@protoc_insertion_point(field_mutable:cockroach.roachpb.BatchTimestampBeforeGCError.Timestamp) 7089 return timestamp_; 7090 } 7091 inline void BatchTimestampBeforeGCError::set_allocated_timestamp(::cockroach::util::hlc::Timestamp* timestamp) { 7092 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); 7093 if (message_arena == NULL) { 7094 delete reinterpret_cast< ::google::protobuf::MessageLite*>(timestamp_); 7095 } 7096 if (timestamp) { 7097 ::google::protobuf::Arena* submessage_arena = NULL; 7098 if (message_arena != submessage_arena) { 7099 timestamp = ::google::protobuf::internal::GetOwnedMessage( 7100 message_arena, timestamp, submessage_arena); 7101 } 7102 set_has_timestamp(); 7103 } else { 7104 clear_has_timestamp(); 7105 } 7106 timestamp_ = timestamp; 7107 // @@protoc_insertion_point(field_set_allocated:cockroach.roachpb.BatchTimestampBeforeGCError.Timestamp) 7108 } 7109 7110 inline bool BatchTimestampBeforeGCError::has_threshold() const { 7111 return (_has_bits_[0] & 0x00000002u) != 0; 7112 } 7113 inline void BatchTimestampBeforeGCError::set_has_threshold() { 7114 _has_bits_[0] |= 0x00000002u; 7115 } 7116 inline void BatchTimestampBeforeGCError::clear_has_threshold() { 7117 _has_bits_[0] &= ~0x00000002u; 7118 } 7119 inline const ::cockroach::util::hlc::Timestamp& BatchTimestampBeforeGCError::_internal_threshold() const { 7120 return *threshold_; 7121 } 7122 inline const ::cockroach::util::hlc::Timestamp& BatchTimestampBeforeGCError::threshold() const { 7123 const ::cockroach::util::hlc::Timestamp* p = threshold_; 7124 // @@protoc_insertion_point(field_get:cockroach.roachpb.BatchTimestampBeforeGCError.Threshold) 7125 return p != NULL ? *p : *reinterpret_cast<const ::cockroach::util::hlc::Timestamp*>( 7126 &::cockroach::util::hlc::_Timestamp_default_instance_); 7127 } 7128 inline ::cockroach::util::hlc::Timestamp* BatchTimestampBeforeGCError::release_threshold() { 7129 // @@protoc_insertion_point(field_release:cockroach.roachpb.BatchTimestampBeforeGCError.Threshold) 7130 clear_has_threshold(); 7131 ::cockroach::util::hlc::Timestamp* temp = threshold_; 7132 threshold_ = NULL; 7133 return temp; 7134 } 7135 inline ::cockroach::util::hlc::Timestamp* BatchTimestampBeforeGCError::mutable_threshold() { 7136 set_has_threshold(); 7137 if (threshold_ == NULL) { 7138 auto* p = CreateMaybeMessage<::cockroach::util::hlc::Timestamp>(GetArenaNoVirtual()); 7139 threshold_ = p; 7140 } 7141 // @@protoc_insertion_point(field_mutable:cockroach.roachpb.BatchTimestampBeforeGCError.Threshold) 7142 return threshold_; 7143 } 7144 inline void BatchTimestampBeforeGCError::set_allocated_threshold(::cockroach::util::hlc::Timestamp* threshold) { 7145 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); 7146 if (message_arena == NULL) { 7147 delete reinterpret_cast< ::google::protobuf::MessageLite*>(threshold_); 7148 } 7149 if (threshold) { 7150 ::google::protobuf::Arena* submessage_arena = NULL; 7151 if (message_arena != submessage_arena) { 7152 threshold = ::google::protobuf::internal::GetOwnedMessage( 7153 message_arena, threshold, submessage_arena); 7154 } 7155 set_has_threshold(); 7156 } else { 7157 clear_has_threshold(); 7158 } 7159 threshold_ = threshold; 7160 // @@protoc_insertion_point(field_set_allocated:cockroach.roachpb.BatchTimestampBeforeGCError.Threshold) 7161 } 7162 7163 // ------------------------------------------------------------------- 7164 7165 // IntentMissingError 7166 7167 // optional .cockroach.roachpb.Intent wrong_intent = 1; 7168 inline bool IntentMissingError::has_wrong_intent() const { 7169 return (_has_bits_[0] & 0x00000002u) != 0; 7170 } 7171 inline void IntentMissingError::set_has_wrong_intent() { 7172 _has_bits_[0] |= 0x00000002u; 7173 } 7174 inline void IntentMissingError::clear_has_wrong_intent() { 7175 _has_bits_[0] &= ~0x00000002u; 7176 } 7177 inline const ::cockroach::roachpb::Intent& IntentMissingError::_internal_wrong_intent() const { 7178 return *wrong_intent_; 7179 } 7180 inline const ::cockroach::roachpb::Intent& IntentMissingError::wrong_intent() const { 7181 const ::cockroach::roachpb::Intent* p = wrong_intent_; 7182 // @@protoc_insertion_point(field_get:cockroach.roachpb.IntentMissingError.wrong_intent) 7183 return p != NULL ? *p : *reinterpret_cast<const ::cockroach::roachpb::Intent*>( 7184 &::cockroach::roachpb::_Intent_default_instance_); 7185 } 7186 inline ::cockroach::roachpb::Intent* IntentMissingError::release_wrong_intent() { 7187 // @@protoc_insertion_point(field_release:cockroach.roachpb.IntentMissingError.wrong_intent) 7188 clear_has_wrong_intent(); 7189 ::cockroach::roachpb::Intent* temp = wrong_intent_; 7190 wrong_intent_ = NULL; 7191 return temp; 7192 } 7193 inline ::cockroach::roachpb::Intent* IntentMissingError::mutable_wrong_intent() { 7194 set_has_wrong_intent(); 7195 if (wrong_intent_ == NULL) { 7196 auto* p = CreateMaybeMessage<::cockroach::roachpb::Intent>(GetArenaNoVirtual()); 7197 wrong_intent_ = p; 7198 } 7199 // @@protoc_insertion_point(field_mutable:cockroach.roachpb.IntentMissingError.wrong_intent) 7200 return wrong_intent_; 7201 } 7202 inline void IntentMissingError::set_allocated_wrong_intent(::cockroach::roachpb::Intent* wrong_intent) { 7203 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); 7204 if (message_arena == NULL) { 7205 delete reinterpret_cast< ::google::protobuf::MessageLite*>(wrong_intent_); 7206 } 7207 if (wrong_intent) { 7208 ::google::protobuf::Arena* submessage_arena = NULL; 7209 if (message_arena != submessage_arena) { 7210 wrong_intent = ::google::protobuf::internal::GetOwnedMessage( 7211 message_arena, wrong_intent, submessage_arena); 7212 } 7213 set_has_wrong_intent(); 7214 } else { 7215 clear_has_wrong_intent(); 7216 } 7217 wrong_intent_ = wrong_intent; 7218 // @@protoc_insertion_point(field_set_allocated:cockroach.roachpb.IntentMissingError.wrong_intent) 7219 } 7220 7221 inline bool IntentMissingError::has_key() const { 7222 return (_has_bits_[0] & 0x00000001u) != 0; 7223 } 7224 inline void IntentMissingError::set_has_key() { 7225 _has_bits_[0] |= 0x00000001u; 7226 } 7227 inline void IntentMissingError::clear_has_key() { 7228 _has_bits_[0] &= ~0x00000001u; 7229 } 7230 inline void IntentMissingError::clear_key() { 7231 key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 7232 clear_has_key(); 7233 } 7234 inline const ::std::string& IntentMissingError::key() const { 7235 // @@protoc_insertion_point(field_get:cockroach.roachpb.IntentMissingError.key) 7236 return key_.GetNoArena(); 7237 } 7238 inline void IntentMissingError::set_key(const ::std::string& value) { 7239 set_has_key(); 7240 key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); 7241 // @@protoc_insertion_point(field_set:cockroach.roachpb.IntentMissingError.key) 7242 } 7243 #if LANG_CXX11 7244 inline void IntentMissingError::set_key(::std::string&& value) { 7245 set_has_key(); 7246 key_.SetNoArena( 7247 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); 7248 // @@protoc_insertion_point(field_set_rvalue:cockroach.roachpb.IntentMissingError.key) 7249 } 7250 #endif 7251 inline void IntentMissingError::set_key(const char* value) { 7252 GOOGLE_DCHECK(value != NULL); 7253 set_has_key(); 7254 key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); 7255 // @@protoc_insertion_point(field_set_char:cockroach.roachpb.IntentMissingError.key) 7256 } 7257 inline void IntentMissingError::set_key(const void* value, size_t size) { 7258 set_has_key(); 7259 key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), 7260 ::std::string(reinterpret_cast<const char*>(value), size)); 7261 // @@protoc_insertion_point(field_set_pointer:cockroach.roachpb.IntentMissingError.key) 7262 } 7263 inline ::std::string* IntentMissingError::mutable_key() { 7264 set_has_key(); 7265 // @@protoc_insertion_point(field_mutable:cockroach.roachpb.IntentMissingError.key) 7266 return key_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 7267 } 7268 inline ::std::string* IntentMissingError::release_key() { 7269 // @@protoc_insertion_point(field_release:cockroach.roachpb.IntentMissingError.key) 7270 if (!has_key()) { 7271 return NULL; 7272 } 7273 clear_has_key(); 7274 return key_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 7275 } 7276 inline void IntentMissingError::set_allocated_key(::std::string* key) { 7277 if (key != NULL) { 7278 set_has_key(); 7279 } else { 7280 clear_has_key(); 7281 } 7282 key_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), key); 7283 // @@protoc_insertion_point(field_set_allocated:cockroach.roachpb.IntentMissingError.key) 7284 } 7285 7286 // ------------------------------------------------------------------- 7287 7288 // MergeInProgressError 7289 7290 // ------------------------------------------------------------------- 7291 7292 // RangeFeedRetryError 7293 7294 inline bool RangeFeedRetryError::has_reason() const { 7295 return (_has_bits_[0] & 0x00000001u) != 0; 7296 } 7297 inline void RangeFeedRetryError::set_has_reason() { 7298 _has_bits_[0] |= 0x00000001u; 7299 } 7300 inline void RangeFeedRetryError::clear_has_reason() { 7301 _has_bits_[0] &= ~0x00000001u; 7302 } 7303 inline void RangeFeedRetryError::clear_reason() { 7304 reason_ = 0; 7305 clear_has_reason(); 7306 } 7307 inline ::cockroach::roachpb::RangeFeedRetryError_Reason RangeFeedRetryError::reason() const { 7308 // @@protoc_insertion_point(field_get:cockroach.roachpb.RangeFeedRetryError.reason) 7309 return static_cast< ::cockroach::roachpb::RangeFeedRetryError_Reason >(reason_); 7310 } 7311 inline void RangeFeedRetryError::set_reason(::cockroach::roachpb::RangeFeedRetryError_Reason value) { 7312 assert(::cockroach::roachpb::RangeFeedRetryError_Reason_IsValid(value)); 7313 set_has_reason(); 7314 reason_ = value; 7315 // @@protoc_insertion_point(field_set:cockroach.roachpb.RangeFeedRetryError.reason) 7316 } 7317 7318 // ------------------------------------------------------------------- 7319 7320 // IndeterminateCommitError 7321 7322 inline bool IndeterminateCommitError::has_staging_txn() const { 7323 return (_has_bits_[0] & 0x00000001u) != 0; 7324 } 7325 inline void IndeterminateCommitError::set_has_staging_txn() { 7326 _has_bits_[0] |= 0x00000001u; 7327 } 7328 inline void IndeterminateCommitError::clear_has_staging_txn() { 7329 _has_bits_[0] &= ~0x00000001u; 7330 } 7331 inline const ::cockroach::roachpb::Transaction& IndeterminateCommitError::_internal_staging_txn() const { 7332 return *staging_txn_; 7333 } 7334 inline const ::cockroach::roachpb::Transaction& IndeterminateCommitError::staging_txn() const { 7335 const ::cockroach::roachpb::Transaction* p = staging_txn_; 7336 // @@protoc_insertion_point(field_get:cockroach.roachpb.IndeterminateCommitError.staging_txn) 7337 return p != NULL ? *p : *reinterpret_cast<const ::cockroach::roachpb::Transaction*>( 7338 &::cockroach::roachpb::_Transaction_default_instance_); 7339 } 7340 inline ::cockroach::roachpb::Transaction* IndeterminateCommitError::release_staging_txn() { 7341 // @@protoc_insertion_point(field_release:cockroach.roachpb.IndeterminateCommitError.staging_txn) 7342 clear_has_staging_txn(); 7343 ::cockroach::roachpb::Transaction* temp = staging_txn_; 7344 staging_txn_ = NULL; 7345 return temp; 7346 } 7347 inline ::cockroach::roachpb::Transaction* IndeterminateCommitError::mutable_staging_txn() { 7348 set_has_staging_txn(); 7349 if (staging_txn_ == NULL) { 7350 auto* p = CreateMaybeMessage<::cockroach::roachpb::Transaction>(GetArenaNoVirtual()); 7351 staging_txn_ = p; 7352 } 7353 // @@protoc_insertion_point(field_mutable:cockroach.roachpb.IndeterminateCommitError.staging_txn) 7354 return staging_txn_; 7355 } 7356 inline void IndeterminateCommitError::set_allocated_staging_txn(::cockroach::roachpb::Transaction* staging_txn) { 7357 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); 7358 if (message_arena == NULL) { 7359 delete reinterpret_cast< ::google::protobuf::MessageLite*>(staging_txn_); 7360 } 7361 if (staging_txn) { 7362 ::google::protobuf::Arena* submessage_arena = NULL; 7363 if (message_arena != submessage_arena) { 7364 staging_txn = ::google::protobuf::internal::GetOwnedMessage( 7365 message_arena, staging_txn, submessage_arena); 7366 } 7367 set_has_staging_txn(); 7368 } else { 7369 clear_has_staging_txn(); 7370 } 7371 staging_txn_ = staging_txn; 7372 // @@protoc_insertion_point(field_set_allocated:cockroach.roachpb.IndeterminateCommitError.staging_txn) 7373 } 7374 7375 // ------------------------------------------------------------------- 7376 7377 // ErrorDetail 7378 7379 // optional .cockroach.roachpb.NotLeaseHolderError not_lease_holder = 1; 7380 inline bool ErrorDetail::has_not_lease_holder() const { 7381 return value_case() == kNotLeaseHolder; 7382 } 7383 inline void ErrorDetail::set_has_not_lease_holder() { 7384 _oneof_case_[0] = kNotLeaseHolder; 7385 } 7386 inline void ErrorDetail::clear_not_lease_holder() { 7387 if (has_not_lease_holder()) { 7388 delete value_.not_lease_holder_; 7389 clear_has_value(); 7390 } 7391 } 7392 inline const ::cockroach::roachpb::NotLeaseHolderError& ErrorDetail::_internal_not_lease_holder() const { 7393 return *value_.not_lease_holder_; 7394 } 7395 inline ::cockroach::roachpb::NotLeaseHolderError* ErrorDetail::release_not_lease_holder() { 7396 // @@protoc_insertion_point(field_release:cockroach.roachpb.ErrorDetail.not_lease_holder) 7397 if (has_not_lease_holder()) { 7398 clear_has_value(); 7399 ::cockroach::roachpb::NotLeaseHolderError* temp = value_.not_lease_holder_; 7400 value_.not_lease_holder_ = NULL; 7401 return temp; 7402 } else { 7403 return NULL; 7404 } 7405 } 7406 inline const ::cockroach::roachpb::NotLeaseHolderError& ErrorDetail::not_lease_holder() const { 7407 // @@protoc_insertion_point(field_get:cockroach.roachpb.ErrorDetail.not_lease_holder) 7408 return has_not_lease_holder() 7409 ? *value_.not_lease_holder_ 7410 : *reinterpret_cast< ::cockroach::roachpb::NotLeaseHolderError*>(&::cockroach::roachpb::_NotLeaseHolderError_default_instance_); 7411 } 7412 inline ::cockroach::roachpb::NotLeaseHolderError* ErrorDetail::mutable_not_lease_holder() { 7413 if (!has_not_lease_holder()) { 7414 clear_value(); 7415 set_has_not_lease_holder(); 7416 value_.not_lease_holder_ = CreateMaybeMessage< ::cockroach::roachpb::NotLeaseHolderError >( 7417 GetArenaNoVirtual()); 7418 } 7419 // @@protoc_insertion_point(field_mutable:cockroach.roachpb.ErrorDetail.not_lease_holder) 7420 return value_.not_lease_holder_; 7421 } 7422 7423 // optional .cockroach.roachpb.RangeNotFoundError range_not_found = 2; 7424 inline bool ErrorDetail::has_range_not_found() const { 7425 return value_case() == kRangeNotFound; 7426 } 7427 inline void ErrorDetail::set_has_range_not_found() { 7428 _oneof_case_[0] = kRangeNotFound; 7429 } 7430 inline void ErrorDetail::clear_range_not_found() { 7431 if (has_range_not_found()) { 7432 delete value_.range_not_found_; 7433 clear_has_value(); 7434 } 7435 } 7436 inline const ::cockroach::roachpb::RangeNotFoundError& ErrorDetail::_internal_range_not_found() const { 7437 return *value_.range_not_found_; 7438 } 7439 inline ::cockroach::roachpb::RangeNotFoundError* ErrorDetail::release_range_not_found() { 7440 // @@protoc_insertion_point(field_release:cockroach.roachpb.ErrorDetail.range_not_found) 7441 if (has_range_not_found()) { 7442 clear_has_value(); 7443 ::cockroach::roachpb::RangeNotFoundError* temp = value_.range_not_found_; 7444 value_.range_not_found_ = NULL; 7445 return temp; 7446 } else { 7447 return NULL; 7448 } 7449 } 7450 inline const ::cockroach::roachpb::RangeNotFoundError& ErrorDetail::range_not_found() const { 7451 // @@protoc_insertion_point(field_get:cockroach.roachpb.ErrorDetail.range_not_found) 7452 return has_range_not_found() 7453 ? *value_.range_not_found_ 7454 : *reinterpret_cast< ::cockroach::roachpb::RangeNotFoundError*>(&::cockroach::roachpb::_RangeNotFoundError_default_instance_); 7455 } 7456 inline ::cockroach::roachpb::RangeNotFoundError* ErrorDetail::mutable_range_not_found() { 7457 if (!has_range_not_found()) { 7458 clear_value(); 7459 set_has_range_not_found(); 7460 value_.range_not_found_ = CreateMaybeMessage< ::cockroach::roachpb::RangeNotFoundError >( 7461 GetArenaNoVirtual()); 7462 } 7463 // @@protoc_insertion_point(field_mutable:cockroach.roachpb.ErrorDetail.range_not_found) 7464 return value_.range_not_found_; 7465 } 7466 7467 // optional .cockroach.roachpb.RangeKeyMismatchError range_key_mismatch = 3; 7468 inline bool ErrorDetail::has_range_key_mismatch() const { 7469 return value_case() == kRangeKeyMismatch; 7470 } 7471 inline void ErrorDetail::set_has_range_key_mismatch() { 7472 _oneof_case_[0] = kRangeKeyMismatch; 7473 } 7474 inline void ErrorDetail::clear_range_key_mismatch() { 7475 if (has_range_key_mismatch()) { 7476 delete value_.range_key_mismatch_; 7477 clear_has_value(); 7478 } 7479 } 7480 inline const ::cockroach::roachpb::RangeKeyMismatchError& ErrorDetail::_internal_range_key_mismatch() const { 7481 return *value_.range_key_mismatch_; 7482 } 7483 inline ::cockroach::roachpb::RangeKeyMismatchError* ErrorDetail::release_range_key_mismatch() { 7484 // @@protoc_insertion_point(field_release:cockroach.roachpb.ErrorDetail.range_key_mismatch) 7485 if (has_range_key_mismatch()) { 7486 clear_has_value(); 7487 ::cockroach::roachpb::RangeKeyMismatchError* temp = value_.range_key_mismatch_; 7488 value_.range_key_mismatch_ = NULL; 7489 return temp; 7490 } else { 7491 return NULL; 7492 } 7493 } 7494 inline const ::cockroach::roachpb::RangeKeyMismatchError& ErrorDetail::range_key_mismatch() const { 7495 // @@protoc_insertion_point(field_get:cockroach.roachpb.ErrorDetail.range_key_mismatch) 7496 return has_range_key_mismatch() 7497 ? *value_.range_key_mismatch_ 7498 : *reinterpret_cast< ::cockroach::roachpb::RangeKeyMismatchError*>(&::cockroach::roachpb::_RangeKeyMismatchError_default_instance_); 7499 } 7500 inline ::cockroach::roachpb::RangeKeyMismatchError* ErrorDetail::mutable_range_key_mismatch() { 7501 if (!has_range_key_mismatch()) { 7502 clear_value(); 7503 set_has_range_key_mismatch(); 7504 value_.range_key_mismatch_ = CreateMaybeMessage< ::cockroach::roachpb::RangeKeyMismatchError >( 7505 GetArenaNoVirtual()); 7506 } 7507 // @@protoc_insertion_point(field_mutable:cockroach.roachpb.ErrorDetail.range_key_mismatch) 7508 return value_.range_key_mismatch_; 7509 } 7510 7511 // optional .cockroach.roachpb.ReadWithinUncertaintyIntervalError read_within_uncertainty_interval = 4; 7512 inline bool ErrorDetail::has_read_within_uncertainty_interval() const { 7513 return value_case() == kReadWithinUncertaintyInterval; 7514 } 7515 inline void ErrorDetail::set_has_read_within_uncertainty_interval() { 7516 _oneof_case_[0] = kReadWithinUncertaintyInterval; 7517 } 7518 inline void ErrorDetail::clear_read_within_uncertainty_interval() { 7519 if (has_read_within_uncertainty_interval()) { 7520 delete value_.read_within_uncertainty_interval_; 7521 clear_has_value(); 7522 } 7523 } 7524 inline const ::cockroach::roachpb::ReadWithinUncertaintyIntervalError& ErrorDetail::_internal_read_within_uncertainty_interval() const { 7525 return *value_.read_within_uncertainty_interval_; 7526 } 7527 inline ::cockroach::roachpb::ReadWithinUncertaintyIntervalError* ErrorDetail::release_read_within_uncertainty_interval() { 7528 // @@protoc_insertion_point(field_release:cockroach.roachpb.ErrorDetail.read_within_uncertainty_interval) 7529 if (has_read_within_uncertainty_interval()) { 7530 clear_has_value(); 7531 ::cockroach::roachpb::ReadWithinUncertaintyIntervalError* temp = value_.read_within_uncertainty_interval_; 7532 value_.read_within_uncertainty_interval_ = NULL; 7533 return temp; 7534 } else { 7535 return NULL; 7536 } 7537 } 7538 inline const ::cockroach::roachpb::ReadWithinUncertaintyIntervalError& ErrorDetail::read_within_uncertainty_interval() const { 7539 // @@protoc_insertion_point(field_get:cockroach.roachpb.ErrorDetail.read_within_uncertainty_interval) 7540 return has_read_within_uncertainty_interval() 7541 ? *value_.read_within_uncertainty_interval_ 7542 : *reinterpret_cast< ::cockroach::roachpb::ReadWithinUncertaintyIntervalError*>(&::cockroach::roachpb::_ReadWithinUncertaintyIntervalError_default_instance_); 7543 } 7544 inline ::cockroach::roachpb::ReadWithinUncertaintyIntervalError* ErrorDetail::mutable_read_within_uncertainty_interval() { 7545 if (!has_read_within_uncertainty_interval()) { 7546 clear_value(); 7547 set_has_read_within_uncertainty_interval(); 7548 value_.read_within_uncertainty_interval_ = CreateMaybeMessage< ::cockroach::roachpb::ReadWithinUncertaintyIntervalError >( 7549 GetArenaNoVirtual()); 7550 } 7551 // @@protoc_insertion_point(field_mutable:cockroach.roachpb.ErrorDetail.read_within_uncertainty_interval) 7552 return value_.read_within_uncertainty_interval_; 7553 } 7554 7555 // optional .cockroach.roachpb.TransactionAbortedError transaction_aborted = 5; 7556 inline bool ErrorDetail::has_transaction_aborted() const { 7557 return value_case() == kTransactionAborted; 7558 } 7559 inline void ErrorDetail::set_has_transaction_aborted() { 7560 _oneof_case_[0] = kTransactionAborted; 7561 } 7562 inline void ErrorDetail::clear_transaction_aborted() { 7563 if (has_transaction_aborted()) { 7564 delete value_.transaction_aborted_; 7565 clear_has_value(); 7566 } 7567 } 7568 inline const ::cockroach::roachpb::TransactionAbortedError& ErrorDetail::_internal_transaction_aborted() const { 7569 return *value_.transaction_aborted_; 7570 } 7571 inline ::cockroach::roachpb::TransactionAbortedError* ErrorDetail::release_transaction_aborted() { 7572 // @@protoc_insertion_point(field_release:cockroach.roachpb.ErrorDetail.transaction_aborted) 7573 if (has_transaction_aborted()) { 7574 clear_has_value(); 7575 ::cockroach::roachpb::TransactionAbortedError* temp = value_.transaction_aborted_; 7576 value_.transaction_aborted_ = NULL; 7577 return temp; 7578 } else { 7579 return NULL; 7580 } 7581 } 7582 inline const ::cockroach::roachpb::TransactionAbortedError& ErrorDetail::transaction_aborted() const { 7583 // @@protoc_insertion_point(field_get:cockroach.roachpb.ErrorDetail.transaction_aborted) 7584 return has_transaction_aborted() 7585 ? *value_.transaction_aborted_ 7586 : *reinterpret_cast< ::cockroach::roachpb::TransactionAbortedError*>(&::cockroach::roachpb::_TransactionAbortedError_default_instance_); 7587 } 7588 inline ::cockroach::roachpb::TransactionAbortedError* ErrorDetail::mutable_transaction_aborted() { 7589 if (!has_transaction_aborted()) { 7590 clear_value(); 7591 set_has_transaction_aborted(); 7592 value_.transaction_aborted_ = CreateMaybeMessage< ::cockroach::roachpb::TransactionAbortedError >( 7593 GetArenaNoVirtual()); 7594 } 7595 // @@protoc_insertion_point(field_mutable:cockroach.roachpb.ErrorDetail.transaction_aborted) 7596 return value_.transaction_aborted_; 7597 } 7598 7599 // optional .cockroach.roachpb.TransactionPushError transaction_push = 6; 7600 inline bool ErrorDetail::has_transaction_push() const { 7601 return value_case() == kTransactionPush; 7602 } 7603 inline void ErrorDetail::set_has_transaction_push() { 7604 _oneof_case_[0] = kTransactionPush; 7605 } 7606 inline void ErrorDetail::clear_transaction_push() { 7607 if (has_transaction_push()) { 7608 delete value_.transaction_push_; 7609 clear_has_value(); 7610 } 7611 } 7612 inline const ::cockroach::roachpb::TransactionPushError& ErrorDetail::_internal_transaction_push() const { 7613 return *value_.transaction_push_; 7614 } 7615 inline ::cockroach::roachpb::TransactionPushError* ErrorDetail::release_transaction_push() { 7616 // @@protoc_insertion_point(field_release:cockroach.roachpb.ErrorDetail.transaction_push) 7617 if (has_transaction_push()) { 7618 clear_has_value(); 7619 ::cockroach::roachpb::TransactionPushError* temp = value_.transaction_push_; 7620 value_.transaction_push_ = NULL; 7621 return temp; 7622 } else { 7623 return NULL; 7624 } 7625 } 7626 inline const ::cockroach::roachpb::TransactionPushError& ErrorDetail::transaction_push() const { 7627 // @@protoc_insertion_point(field_get:cockroach.roachpb.ErrorDetail.transaction_push) 7628 return has_transaction_push() 7629 ? *value_.transaction_push_ 7630 : *reinterpret_cast< ::cockroach::roachpb::TransactionPushError*>(&::cockroach::roachpb::_TransactionPushError_default_instance_); 7631 } 7632 inline ::cockroach::roachpb::TransactionPushError* ErrorDetail::mutable_transaction_push() { 7633 if (!has_transaction_push()) { 7634 clear_value(); 7635 set_has_transaction_push(); 7636 value_.transaction_push_ = CreateMaybeMessage< ::cockroach::roachpb::TransactionPushError >( 7637 GetArenaNoVirtual()); 7638 } 7639 // @@protoc_insertion_point(field_mutable:cockroach.roachpb.ErrorDetail.transaction_push) 7640 return value_.transaction_push_; 7641 } 7642 7643 // optional .cockroach.roachpb.TransactionRetryError transaction_retry = 7; 7644 inline bool ErrorDetail::has_transaction_retry() const { 7645 return value_case() == kTransactionRetry; 7646 } 7647 inline void ErrorDetail::set_has_transaction_retry() { 7648 _oneof_case_[0] = kTransactionRetry; 7649 } 7650 inline void ErrorDetail::clear_transaction_retry() { 7651 if (has_transaction_retry()) { 7652 delete value_.transaction_retry_; 7653 clear_has_value(); 7654 } 7655 } 7656 inline const ::cockroach::roachpb::TransactionRetryError& ErrorDetail::_internal_transaction_retry() const { 7657 return *value_.transaction_retry_; 7658 } 7659 inline ::cockroach::roachpb::TransactionRetryError* ErrorDetail::release_transaction_retry() { 7660 // @@protoc_insertion_point(field_release:cockroach.roachpb.ErrorDetail.transaction_retry) 7661 if (has_transaction_retry()) { 7662 clear_has_value(); 7663 ::cockroach::roachpb::TransactionRetryError* temp = value_.transaction_retry_; 7664 value_.transaction_retry_ = NULL; 7665 return temp; 7666 } else { 7667 return NULL; 7668 } 7669 } 7670 inline const ::cockroach::roachpb::TransactionRetryError& ErrorDetail::transaction_retry() const { 7671 // @@protoc_insertion_point(field_get:cockroach.roachpb.ErrorDetail.transaction_retry) 7672 return has_transaction_retry() 7673 ? *value_.transaction_retry_ 7674 : *reinterpret_cast< ::cockroach::roachpb::TransactionRetryError*>(&::cockroach::roachpb::_TransactionRetryError_default_instance_); 7675 } 7676 inline ::cockroach::roachpb::TransactionRetryError* ErrorDetail::mutable_transaction_retry() { 7677 if (!has_transaction_retry()) { 7678 clear_value(); 7679 set_has_transaction_retry(); 7680 value_.transaction_retry_ = CreateMaybeMessage< ::cockroach::roachpb::TransactionRetryError >( 7681 GetArenaNoVirtual()); 7682 } 7683 // @@protoc_insertion_point(field_mutable:cockroach.roachpb.ErrorDetail.transaction_retry) 7684 return value_.transaction_retry_; 7685 } 7686 7687 // optional .cockroach.roachpb.TransactionStatusError transaction_status = 8; 7688 inline bool ErrorDetail::has_transaction_status() const { 7689 return value_case() == kTransactionStatus; 7690 } 7691 inline void ErrorDetail::set_has_transaction_status() { 7692 _oneof_case_[0] = kTransactionStatus; 7693 } 7694 inline void ErrorDetail::clear_transaction_status() { 7695 if (has_transaction_status()) { 7696 delete value_.transaction_status_; 7697 clear_has_value(); 7698 } 7699 } 7700 inline const ::cockroach::roachpb::TransactionStatusError& ErrorDetail::_internal_transaction_status() const { 7701 return *value_.transaction_status_; 7702 } 7703 inline ::cockroach::roachpb::TransactionStatusError* ErrorDetail::release_transaction_status() { 7704 // @@protoc_insertion_point(field_release:cockroach.roachpb.ErrorDetail.transaction_status) 7705 if (has_transaction_status()) { 7706 clear_has_value(); 7707 ::cockroach::roachpb::TransactionStatusError* temp = value_.transaction_status_; 7708 value_.transaction_status_ = NULL; 7709 return temp; 7710 } else { 7711 return NULL; 7712 } 7713 } 7714 inline const ::cockroach::roachpb::TransactionStatusError& ErrorDetail::transaction_status() const { 7715 // @@protoc_insertion_point(field_get:cockroach.roachpb.ErrorDetail.transaction_status) 7716 return has_transaction_status() 7717 ? *value_.transaction_status_ 7718 : *reinterpret_cast< ::cockroach::roachpb::TransactionStatusError*>(&::cockroach::roachpb::_TransactionStatusError_default_instance_); 7719 } 7720 inline ::cockroach::roachpb::TransactionStatusError* ErrorDetail::mutable_transaction_status() { 7721 if (!has_transaction_status()) { 7722 clear_value(); 7723 set_has_transaction_status(); 7724 value_.transaction_status_ = CreateMaybeMessage< ::cockroach::roachpb::TransactionStatusError >( 7725 GetArenaNoVirtual()); 7726 } 7727 // @@protoc_insertion_point(field_mutable:cockroach.roachpb.ErrorDetail.transaction_status) 7728 return value_.transaction_status_; 7729 } 7730 7731 // optional .cockroach.roachpb.WriteIntentError write_intent = 9; 7732 inline bool ErrorDetail::has_write_intent() const { 7733 return value_case() == kWriteIntent; 7734 } 7735 inline void ErrorDetail::set_has_write_intent() { 7736 _oneof_case_[0] = kWriteIntent; 7737 } 7738 inline void ErrorDetail::clear_write_intent() { 7739 if (has_write_intent()) { 7740 delete value_.write_intent_; 7741 clear_has_value(); 7742 } 7743 } 7744 inline const ::cockroach::roachpb::WriteIntentError& ErrorDetail::_internal_write_intent() const { 7745 return *value_.write_intent_; 7746 } 7747 inline ::cockroach::roachpb::WriteIntentError* ErrorDetail::release_write_intent() { 7748 // @@protoc_insertion_point(field_release:cockroach.roachpb.ErrorDetail.write_intent) 7749 if (has_write_intent()) { 7750 clear_has_value(); 7751 ::cockroach::roachpb::WriteIntentError* temp = value_.write_intent_; 7752 value_.write_intent_ = NULL; 7753 return temp; 7754 } else { 7755 return NULL; 7756 } 7757 } 7758 inline const ::cockroach::roachpb::WriteIntentError& ErrorDetail::write_intent() const { 7759 // @@protoc_insertion_point(field_get:cockroach.roachpb.ErrorDetail.write_intent) 7760 return has_write_intent() 7761 ? *value_.write_intent_ 7762 : *reinterpret_cast< ::cockroach::roachpb::WriteIntentError*>(&::cockroach::roachpb::_WriteIntentError_default_instance_); 7763 } 7764 inline ::cockroach::roachpb::WriteIntentError* ErrorDetail::mutable_write_intent() { 7765 if (!has_write_intent()) { 7766 clear_value(); 7767 set_has_write_intent(); 7768 value_.write_intent_ = CreateMaybeMessage< ::cockroach::roachpb::WriteIntentError >( 7769 GetArenaNoVirtual()); 7770 } 7771 // @@protoc_insertion_point(field_mutable:cockroach.roachpb.ErrorDetail.write_intent) 7772 return value_.write_intent_; 7773 } 7774 7775 // optional .cockroach.roachpb.WriteTooOldError write_too_old = 10; 7776 inline bool ErrorDetail::has_write_too_old() const { 7777 return value_case() == kWriteTooOld; 7778 } 7779 inline void ErrorDetail::set_has_write_too_old() { 7780 _oneof_case_[0] = kWriteTooOld; 7781 } 7782 inline void ErrorDetail::clear_write_too_old() { 7783 if (has_write_too_old()) { 7784 delete value_.write_too_old_; 7785 clear_has_value(); 7786 } 7787 } 7788 inline const ::cockroach::roachpb::WriteTooOldError& ErrorDetail::_internal_write_too_old() const { 7789 return *value_.write_too_old_; 7790 } 7791 inline ::cockroach::roachpb::WriteTooOldError* ErrorDetail::release_write_too_old() { 7792 // @@protoc_insertion_point(field_release:cockroach.roachpb.ErrorDetail.write_too_old) 7793 if (has_write_too_old()) { 7794 clear_has_value(); 7795 ::cockroach::roachpb::WriteTooOldError* temp = value_.write_too_old_; 7796 value_.write_too_old_ = NULL; 7797 return temp; 7798 } else { 7799 return NULL; 7800 } 7801 } 7802 inline const ::cockroach::roachpb::WriteTooOldError& ErrorDetail::write_too_old() const { 7803 // @@protoc_insertion_point(field_get:cockroach.roachpb.ErrorDetail.write_too_old) 7804 return has_write_too_old() 7805 ? *value_.write_too_old_ 7806 : *reinterpret_cast< ::cockroach::roachpb::WriteTooOldError*>(&::cockroach::roachpb::_WriteTooOldError_default_instance_); 7807 } 7808 inline ::cockroach::roachpb::WriteTooOldError* ErrorDetail::mutable_write_too_old() { 7809 if (!has_write_too_old()) { 7810 clear_value(); 7811 set_has_write_too_old(); 7812 value_.write_too_old_ = CreateMaybeMessage< ::cockroach::roachpb::WriteTooOldError >( 7813 GetArenaNoVirtual()); 7814 } 7815 // @@protoc_insertion_point(field_mutable:cockroach.roachpb.ErrorDetail.write_too_old) 7816 return value_.write_too_old_; 7817 } 7818 7819 // optional .cockroach.roachpb.OpRequiresTxnError op_requires_txn = 11; 7820 inline bool ErrorDetail::has_op_requires_txn() const { 7821 return value_case() == kOpRequiresTxn; 7822 } 7823 inline void ErrorDetail::set_has_op_requires_txn() { 7824 _oneof_case_[0] = kOpRequiresTxn; 7825 } 7826 inline void ErrorDetail::clear_op_requires_txn() { 7827 if (has_op_requires_txn()) { 7828 delete value_.op_requires_txn_; 7829 clear_has_value(); 7830 } 7831 } 7832 inline const ::cockroach::roachpb::OpRequiresTxnError& ErrorDetail::_internal_op_requires_txn() const { 7833 return *value_.op_requires_txn_; 7834 } 7835 inline ::cockroach::roachpb::OpRequiresTxnError* ErrorDetail::release_op_requires_txn() { 7836 // @@protoc_insertion_point(field_release:cockroach.roachpb.ErrorDetail.op_requires_txn) 7837 if (has_op_requires_txn()) { 7838 clear_has_value(); 7839 ::cockroach::roachpb::OpRequiresTxnError* temp = value_.op_requires_txn_; 7840 value_.op_requires_txn_ = NULL; 7841 return temp; 7842 } else { 7843 return NULL; 7844 } 7845 } 7846 inline const ::cockroach::roachpb::OpRequiresTxnError& ErrorDetail::op_requires_txn() const { 7847 // @@protoc_insertion_point(field_get:cockroach.roachpb.ErrorDetail.op_requires_txn) 7848 return has_op_requires_txn() 7849 ? *value_.op_requires_txn_ 7850 : *reinterpret_cast< ::cockroach::roachpb::OpRequiresTxnError*>(&::cockroach::roachpb::_OpRequiresTxnError_default_instance_); 7851 } 7852 inline ::cockroach::roachpb::OpRequiresTxnError* ErrorDetail::mutable_op_requires_txn() { 7853 if (!has_op_requires_txn()) { 7854 clear_value(); 7855 set_has_op_requires_txn(); 7856 value_.op_requires_txn_ = CreateMaybeMessage< ::cockroach::roachpb::OpRequiresTxnError >( 7857 GetArenaNoVirtual()); 7858 } 7859 // @@protoc_insertion_point(field_mutable:cockroach.roachpb.ErrorDetail.op_requires_txn) 7860 return value_.op_requires_txn_; 7861 } 7862 7863 // optional .cockroach.roachpb.ConditionFailedError condition_failed = 12; 7864 inline bool ErrorDetail::has_condition_failed() const { 7865 return value_case() == kConditionFailed; 7866 } 7867 inline void ErrorDetail::set_has_condition_failed() { 7868 _oneof_case_[0] = kConditionFailed; 7869 } 7870 inline void ErrorDetail::clear_condition_failed() { 7871 if (has_condition_failed()) { 7872 delete value_.condition_failed_; 7873 clear_has_value(); 7874 } 7875 } 7876 inline const ::cockroach::roachpb::ConditionFailedError& ErrorDetail::_internal_condition_failed() const { 7877 return *value_.condition_failed_; 7878 } 7879 inline ::cockroach::roachpb::ConditionFailedError* ErrorDetail::release_condition_failed() { 7880 // @@protoc_insertion_point(field_release:cockroach.roachpb.ErrorDetail.condition_failed) 7881 if (has_condition_failed()) { 7882 clear_has_value(); 7883 ::cockroach::roachpb::ConditionFailedError* temp = value_.condition_failed_; 7884 value_.condition_failed_ = NULL; 7885 return temp; 7886 } else { 7887 return NULL; 7888 } 7889 } 7890 inline const ::cockroach::roachpb::ConditionFailedError& ErrorDetail::condition_failed() const { 7891 // @@protoc_insertion_point(field_get:cockroach.roachpb.ErrorDetail.condition_failed) 7892 return has_condition_failed() 7893 ? *value_.condition_failed_ 7894 : *reinterpret_cast< ::cockroach::roachpb::ConditionFailedError*>(&::cockroach::roachpb::_ConditionFailedError_default_instance_); 7895 } 7896 inline ::cockroach::roachpb::ConditionFailedError* ErrorDetail::mutable_condition_failed() { 7897 if (!has_condition_failed()) { 7898 clear_value(); 7899 set_has_condition_failed(); 7900 value_.condition_failed_ = CreateMaybeMessage< ::cockroach::roachpb::ConditionFailedError >( 7901 GetArenaNoVirtual()); 7902 } 7903 // @@protoc_insertion_point(field_mutable:cockroach.roachpb.ErrorDetail.condition_failed) 7904 return value_.condition_failed_; 7905 } 7906 7907 // optional .cockroach.roachpb.LeaseRejectedError lease_rejected = 13; 7908 inline bool ErrorDetail::has_lease_rejected() const { 7909 return value_case() == kLeaseRejected; 7910 } 7911 inline void ErrorDetail::set_has_lease_rejected() { 7912 _oneof_case_[0] = kLeaseRejected; 7913 } 7914 inline void ErrorDetail::clear_lease_rejected() { 7915 if (has_lease_rejected()) { 7916 delete value_.lease_rejected_; 7917 clear_has_value(); 7918 } 7919 } 7920 inline const ::cockroach::roachpb::LeaseRejectedError& ErrorDetail::_internal_lease_rejected() const { 7921 return *value_.lease_rejected_; 7922 } 7923 inline ::cockroach::roachpb::LeaseRejectedError* ErrorDetail::release_lease_rejected() { 7924 // @@protoc_insertion_point(field_release:cockroach.roachpb.ErrorDetail.lease_rejected) 7925 if (has_lease_rejected()) { 7926 clear_has_value(); 7927 ::cockroach::roachpb::LeaseRejectedError* temp = value_.lease_rejected_; 7928 value_.lease_rejected_ = NULL; 7929 return temp; 7930 } else { 7931 return NULL; 7932 } 7933 } 7934 inline const ::cockroach::roachpb::LeaseRejectedError& ErrorDetail::lease_rejected() const { 7935 // @@protoc_insertion_point(field_get:cockroach.roachpb.ErrorDetail.lease_rejected) 7936 return has_lease_rejected() 7937 ? *value_.lease_rejected_ 7938 : *reinterpret_cast< ::cockroach::roachpb::LeaseRejectedError*>(&::cockroach::roachpb::_LeaseRejectedError_default_instance_); 7939 } 7940 inline ::cockroach::roachpb::LeaseRejectedError* ErrorDetail::mutable_lease_rejected() { 7941 if (!has_lease_rejected()) { 7942 clear_value(); 7943 set_has_lease_rejected(); 7944 value_.lease_rejected_ = CreateMaybeMessage< ::cockroach::roachpb::LeaseRejectedError >( 7945 GetArenaNoVirtual()); 7946 } 7947 // @@protoc_insertion_point(field_mutable:cockroach.roachpb.ErrorDetail.lease_rejected) 7948 return value_.lease_rejected_; 7949 } 7950 7951 // optional .cockroach.roachpb.NodeUnavailableError node_unavailable = 14; 7952 inline bool ErrorDetail::has_node_unavailable() const { 7953 return value_case() == kNodeUnavailable; 7954 } 7955 inline void ErrorDetail::set_has_node_unavailable() { 7956 _oneof_case_[0] = kNodeUnavailable; 7957 } 7958 inline void ErrorDetail::clear_node_unavailable() { 7959 if (has_node_unavailable()) { 7960 delete value_.node_unavailable_; 7961 clear_has_value(); 7962 } 7963 } 7964 inline const ::cockroach::roachpb::NodeUnavailableError& ErrorDetail::_internal_node_unavailable() const { 7965 return *value_.node_unavailable_; 7966 } 7967 inline ::cockroach::roachpb::NodeUnavailableError* ErrorDetail::release_node_unavailable() { 7968 // @@protoc_insertion_point(field_release:cockroach.roachpb.ErrorDetail.node_unavailable) 7969 if (has_node_unavailable()) { 7970 clear_has_value(); 7971 ::cockroach::roachpb::NodeUnavailableError* temp = value_.node_unavailable_; 7972 value_.node_unavailable_ = NULL; 7973 return temp; 7974 } else { 7975 return NULL; 7976 } 7977 } 7978 inline const ::cockroach::roachpb::NodeUnavailableError& ErrorDetail::node_unavailable() const { 7979 // @@protoc_insertion_point(field_get:cockroach.roachpb.ErrorDetail.node_unavailable) 7980 return has_node_unavailable() 7981 ? *value_.node_unavailable_ 7982 : *reinterpret_cast< ::cockroach::roachpb::NodeUnavailableError*>(&::cockroach::roachpb::_NodeUnavailableError_default_instance_); 7983 } 7984 inline ::cockroach::roachpb::NodeUnavailableError* ErrorDetail::mutable_node_unavailable() { 7985 if (!has_node_unavailable()) { 7986 clear_value(); 7987 set_has_node_unavailable(); 7988 value_.node_unavailable_ = CreateMaybeMessage< ::cockroach::roachpb::NodeUnavailableError >( 7989 GetArenaNoVirtual()); 7990 } 7991 // @@protoc_insertion_point(field_mutable:cockroach.roachpb.ErrorDetail.node_unavailable) 7992 return value_.node_unavailable_; 7993 } 7994 7995 // optional .cockroach.roachpb.SendError send = 15; 7996 inline bool ErrorDetail::has_send() const { 7997 return value_case() == kSend; 7998 } 7999 inline void ErrorDetail::set_has_send() { 8000 _oneof_case_[0] = kSend; 8001 } 8002 inline void ErrorDetail::clear_send() { 8003 if (has_send()) { 8004 delete value_.send_; 8005 clear_has_value(); 8006 } 8007 } 8008 inline const ::cockroach::roachpb::SendError& ErrorDetail::_internal_send() const { 8009 return *value_.send_; 8010 } 8011 inline ::cockroach::roachpb::SendError* ErrorDetail::release_send() { 8012 // @@protoc_insertion_point(field_release:cockroach.roachpb.ErrorDetail.send) 8013 if (has_send()) { 8014 clear_has_value(); 8015 ::cockroach::roachpb::SendError* temp = value_.send_; 8016 value_.send_ = NULL; 8017 return temp; 8018 } else { 8019 return NULL; 8020 } 8021 } 8022 inline const ::cockroach::roachpb::SendError& ErrorDetail::send() const { 8023 // @@protoc_insertion_point(field_get:cockroach.roachpb.ErrorDetail.send) 8024 return has_send() 8025 ? *value_.send_ 8026 : *reinterpret_cast< ::cockroach::roachpb::SendError*>(&::cockroach::roachpb::_SendError_default_instance_); 8027 } 8028 inline ::cockroach::roachpb::SendError* ErrorDetail::mutable_send() { 8029 if (!has_send()) { 8030 clear_value(); 8031 set_has_send(); 8032 value_.send_ = CreateMaybeMessage< ::cockroach::roachpb::SendError >( 8033 GetArenaNoVirtual()); 8034 } 8035 // @@protoc_insertion_point(field_mutable:cockroach.roachpb.ErrorDetail.send) 8036 return value_.send_; 8037 } 8038 8039 // optional .cockroach.roachpb.RaftGroupDeletedError raft_group_deleted = 16; 8040 inline bool ErrorDetail::has_raft_group_deleted() const { 8041 return value_case() == kRaftGroupDeleted; 8042 } 8043 inline void ErrorDetail::set_has_raft_group_deleted() { 8044 _oneof_case_[0] = kRaftGroupDeleted; 8045 } 8046 inline void ErrorDetail::clear_raft_group_deleted() { 8047 if (has_raft_group_deleted()) { 8048 delete value_.raft_group_deleted_; 8049 clear_has_value(); 8050 } 8051 } 8052 inline const ::cockroach::roachpb::RaftGroupDeletedError& ErrorDetail::_internal_raft_group_deleted() const { 8053 return *value_.raft_group_deleted_; 8054 } 8055 inline ::cockroach::roachpb::RaftGroupDeletedError* ErrorDetail::release_raft_group_deleted() { 8056 // @@protoc_insertion_point(field_release:cockroach.roachpb.ErrorDetail.raft_group_deleted) 8057 if (has_raft_group_deleted()) { 8058 clear_has_value(); 8059 ::cockroach::roachpb::RaftGroupDeletedError* temp = value_.raft_group_deleted_; 8060 value_.raft_group_deleted_ = NULL; 8061 return temp; 8062 } else { 8063 return NULL; 8064 } 8065 } 8066 inline const ::cockroach::roachpb::RaftGroupDeletedError& ErrorDetail::raft_group_deleted() const { 8067 // @@protoc_insertion_point(field_get:cockroach.roachpb.ErrorDetail.raft_group_deleted) 8068 return has_raft_group_deleted() 8069 ? *value_.raft_group_deleted_ 8070 : *reinterpret_cast< ::cockroach::roachpb::RaftGroupDeletedError*>(&::cockroach::roachpb::_RaftGroupDeletedError_default_instance_); 8071 } 8072 inline ::cockroach::roachpb::RaftGroupDeletedError* ErrorDetail::mutable_raft_group_deleted() { 8073 if (!has_raft_group_deleted()) { 8074 clear_value(); 8075 set_has_raft_group_deleted(); 8076 value_.raft_group_deleted_ = CreateMaybeMessage< ::cockroach::roachpb::RaftGroupDeletedError >( 8077 GetArenaNoVirtual()); 8078 } 8079 // @@protoc_insertion_point(field_mutable:cockroach.roachpb.ErrorDetail.raft_group_deleted) 8080 return value_.raft_group_deleted_; 8081 } 8082 8083 // optional .cockroach.roachpb.ReplicaCorruptionError replica_corruption = 17; 8084 inline bool ErrorDetail::has_replica_corruption() const { 8085 return value_case() == kReplicaCorruption; 8086 } 8087 inline void ErrorDetail::set_has_replica_corruption() { 8088 _oneof_case_[0] = kReplicaCorruption; 8089 } 8090 inline void ErrorDetail::clear_replica_corruption() { 8091 if (has_replica_corruption()) { 8092 delete value_.replica_corruption_; 8093 clear_has_value(); 8094 } 8095 } 8096 inline const ::cockroach::roachpb::ReplicaCorruptionError& ErrorDetail::_internal_replica_corruption() const { 8097 return *value_.replica_corruption_; 8098 } 8099 inline ::cockroach::roachpb::ReplicaCorruptionError* ErrorDetail::release_replica_corruption() { 8100 // @@protoc_insertion_point(field_release:cockroach.roachpb.ErrorDetail.replica_corruption) 8101 if (has_replica_corruption()) { 8102 clear_has_value(); 8103 ::cockroach::roachpb::ReplicaCorruptionError* temp = value_.replica_corruption_; 8104 value_.replica_corruption_ = NULL; 8105 return temp; 8106 } else { 8107 return NULL; 8108 } 8109 } 8110 inline const ::cockroach::roachpb::ReplicaCorruptionError& ErrorDetail::replica_corruption() const { 8111 // @@protoc_insertion_point(field_get:cockroach.roachpb.ErrorDetail.replica_corruption) 8112 return has_replica_corruption() 8113 ? *value_.replica_corruption_ 8114 : *reinterpret_cast< ::cockroach::roachpb::ReplicaCorruptionError*>(&::cockroach::roachpb::_ReplicaCorruptionError_default_instance_); 8115 } 8116 inline ::cockroach::roachpb::ReplicaCorruptionError* ErrorDetail::mutable_replica_corruption() { 8117 if (!has_replica_corruption()) { 8118 clear_value(); 8119 set_has_replica_corruption(); 8120 value_.replica_corruption_ = CreateMaybeMessage< ::cockroach::roachpb::ReplicaCorruptionError >( 8121 GetArenaNoVirtual()); 8122 } 8123 // @@protoc_insertion_point(field_mutable:cockroach.roachpb.ErrorDetail.replica_corruption) 8124 return value_.replica_corruption_; 8125 } 8126 8127 // optional .cockroach.roachpb.ReplicaTooOldError replica_too_old = 18; 8128 inline bool ErrorDetail::has_replica_too_old() const { 8129 return value_case() == kReplicaTooOld; 8130 } 8131 inline void ErrorDetail::set_has_replica_too_old() { 8132 _oneof_case_[0] = kReplicaTooOld; 8133 } 8134 inline void ErrorDetail::clear_replica_too_old() { 8135 if (has_replica_too_old()) { 8136 delete value_.replica_too_old_; 8137 clear_has_value(); 8138 } 8139 } 8140 inline const ::cockroach::roachpb::ReplicaTooOldError& ErrorDetail::_internal_replica_too_old() const { 8141 return *value_.replica_too_old_; 8142 } 8143 inline ::cockroach::roachpb::ReplicaTooOldError* ErrorDetail::release_replica_too_old() { 8144 // @@protoc_insertion_point(field_release:cockroach.roachpb.ErrorDetail.replica_too_old) 8145 if (has_replica_too_old()) { 8146 clear_has_value(); 8147 ::cockroach::roachpb::ReplicaTooOldError* temp = value_.replica_too_old_; 8148 value_.replica_too_old_ = NULL; 8149 return temp; 8150 } else { 8151 return NULL; 8152 } 8153 } 8154 inline const ::cockroach::roachpb::ReplicaTooOldError& ErrorDetail::replica_too_old() const { 8155 // @@protoc_insertion_point(field_get:cockroach.roachpb.ErrorDetail.replica_too_old) 8156 return has_replica_too_old() 8157 ? *value_.replica_too_old_ 8158 : *reinterpret_cast< ::cockroach::roachpb::ReplicaTooOldError*>(&::cockroach::roachpb::_ReplicaTooOldError_default_instance_); 8159 } 8160 inline ::cockroach::roachpb::ReplicaTooOldError* ErrorDetail::mutable_replica_too_old() { 8161 if (!has_replica_too_old()) { 8162 clear_value(); 8163 set_has_replica_too_old(); 8164 value_.replica_too_old_ = CreateMaybeMessage< ::cockroach::roachpb::ReplicaTooOldError >( 8165 GetArenaNoVirtual()); 8166 } 8167 // @@protoc_insertion_point(field_mutable:cockroach.roachpb.ErrorDetail.replica_too_old) 8168 return value_.replica_too_old_; 8169 } 8170 8171 // optional .cockroach.roachpb.AmbiguousResultError ambiguous_result = 26; 8172 inline bool ErrorDetail::has_ambiguous_result() const { 8173 return value_case() == kAmbiguousResult; 8174 } 8175 inline void ErrorDetail::set_has_ambiguous_result() { 8176 _oneof_case_[0] = kAmbiguousResult; 8177 } 8178 inline void ErrorDetail::clear_ambiguous_result() { 8179 if (has_ambiguous_result()) { 8180 delete value_.ambiguous_result_; 8181 clear_has_value(); 8182 } 8183 } 8184 inline const ::cockroach::roachpb::AmbiguousResultError& ErrorDetail::_internal_ambiguous_result() const { 8185 return *value_.ambiguous_result_; 8186 } 8187 inline ::cockroach::roachpb::AmbiguousResultError* ErrorDetail::release_ambiguous_result() { 8188 // @@protoc_insertion_point(field_release:cockroach.roachpb.ErrorDetail.ambiguous_result) 8189 if (has_ambiguous_result()) { 8190 clear_has_value(); 8191 ::cockroach::roachpb::AmbiguousResultError* temp = value_.ambiguous_result_; 8192 value_.ambiguous_result_ = NULL; 8193 return temp; 8194 } else { 8195 return NULL; 8196 } 8197 } 8198 inline const ::cockroach::roachpb::AmbiguousResultError& ErrorDetail::ambiguous_result() const { 8199 // @@protoc_insertion_point(field_get:cockroach.roachpb.ErrorDetail.ambiguous_result) 8200 return has_ambiguous_result() 8201 ? *value_.ambiguous_result_ 8202 : *reinterpret_cast< ::cockroach::roachpb::AmbiguousResultError*>(&::cockroach::roachpb::_AmbiguousResultError_default_instance_); 8203 } 8204 inline ::cockroach::roachpb::AmbiguousResultError* ErrorDetail::mutable_ambiguous_result() { 8205 if (!has_ambiguous_result()) { 8206 clear_value(); 8207 set_has_ambiguous_result(); 8208 value_.ambiguous_result_ = CreateMaybeMessage< ::cockroach::roachpb::AmbiguousResultError >( 8209 GetArenaNoVirtual()); 8210 } 8211 // @@protoc_insertion_point(field_mutable:cockroach.roachpb.ErrorDetail.ambiguous_result) 8212 return value_.ambiguous_result_; 8213 } 8214 8215 // optional .cockroach.roachpb.StoreNotFoundError store_not_found = 27; 8216 inline bool ErrorDetail::has_store_not_found() const { 8217 return value_case() == kStoreNotFound; 8218 } 8219 inline void ErrorDetail::set_has_store_not_found() { 8220 _oneof_case_[0] = kStoreNotFound; 8221 } 8222 inline void ErrorDetail::clear_store_not_found() { 8223 if (has_store_not_found()) { 8224 delete value_.store_not_found_; 8225 clear_has_value(); 8226 } 8227 } 8228 inline const ::cockroach::roachpb::StoreNotFoundError& ErrorDetail::_internal_store_not_found() const { 8229 return *value_.store_not_found_; 8230 } 8231 inline ::cockroach::roachpb::StoreNotFoundError* ErrorDetail::release_store_not_found() { 8232 // @@protoc_insertion_point(field_release:cockroach.roachpb.ErrorDetail.store_not_found) 8233 if (has_store_not_found()) { 8234 clear_has_value(); 8235 ::cockroach::roachpb::StoreNotFoundError* temp = value_.store_not_found_; 8236 value_.store_not_found_ = NULL; 8237 return temp; 8238 } else { 8239 return NULL; 8240 } 8241 } 8242 inline const ::cockroach::roachpb::StoreNotFoundError& ErrorDetail::store_not_found() const { 8243 // @@protoc_insertion_point(field_get:cockroach.roachpb.ErrorDetail.store_not_found) 8244 return has_store_not_found() 8245 ? *value_.store_not_found_ 8246 : *reinterpret_cast< ::cockroach::roachpb::StoreNotFoundError*>(&::cockroach::roachpb::_StoreNotFoundError_default_instance_); 8247 } 8248 inline ::cockroach::roachpb::StoreNotFoundError* ErrorDetail::mutable_store_not_found() { 8249 if (!has_store_not_found()) { 8250 clear_value(); 8251 set_has_store_not_found(); 8252 value_.store_not_found_ = CreateMaybeMessage< ::cockroach::roachpb::StoreNotFoundError >( 8253 GetArenaNoVirtual()); 8254 } 8255 // @@protoc_insertion_point(field_mutable:cockroach.roachpb.ErrorDetail.store_not_found) 8256 return value_.store_not_found_; 8257 } 8258 8259 // optional .cockroach.roachpb.TransactionRetryWithProtoRefreshError transaction_retry_with_proto_refresh = 28; 8260 inline bool ErrorDetail::has_transaction_retry_with_proto_refresh() const { 8261 return value_case() == kTransactionRetryWithProtoRefresh; 8262 } 8263 inline void ErrorDetail::set_has_transaction_retry_with_proto_refresh() { 8264 _oneof_case_[0] = kTransactionRetryWithProtoRefresh; 8265 } 8266 inline void ErrorDetail::clear_transaction_retry_with_proto_refresh() { 8267 if (has_transaction_retry_with_proto_refresh()) { 8268 delete value_.transaction_retry_with_proto_refresh_; 8269 clear_has_value(); 8270 } 8271 } 8272 inline const ::cockroach::roachpb::TransactionRetryWithProtoRefreshError& ErrorDetail::_internal_transaction_retry_with_proto_refresh() const { 8273 return *value_.transaction_retry_with_proto_refresh_; 8274 } 8275 inline ::cockroach::roachpb::TransactionRetryWithProtoRefreshError* ErrorDetail::release_transaction_retry_with_proto_refresh() { 8276 // @@protoc_insertion_point(field_release:cockroach.roachpb.ErrorDetail.transaction_retry_with_proto_refresh) 8277 if (has_transaction_retry_with_proto_refresh()) { 8278 clear_has_value(); 8279 ::cockroach::roachpb::TransactionRetryWithProtoRefreshError* temp = value_.transaction_retry_with_proto_refresh_; 8280 value_.transaction_retry_with_proto_refresh_ = NULL; 8281 return temp; 8282 } else { 8283 return NULL; 8284 } 8285 } 8286 inline const ::cockroach::roachpb::TransactionRetryWithProtoRefreshError& ErrorDetail::transaction_retry_with_proto_refresh() const { 8287 // @@protoc_insertion_point(field_get:cockroach.roachpb.ErrorDetail.transaction_retry_with_proto_refresh) 8288 return has_transaction_retry_with_proto_refresh() 8289 ? *value_.transaction_retry_with_proto_refresh_ 8290 : *reinterpret_cast< ::cockroach::roachpb::TransactionRetryWithProtoRefreshError*>(&::cockroach::roachpb::_TransactionRetryWithProtoRefreshError_default_instance_); 8291 } 8292 inline ::cockroach::roachpb::TransactionRetryWithProtoRefreshError* ErrorDetail::mutable_transaction_retry_with_proto_refresh() { 8293 if (!has_transaction_retry_with_proto_refresh()) { 8294 clear_value(); 8295 set_has_transaction_retry_with_proto_refresh(); 8296 value_.transaction_retry_with_proto_refresh_ = CreateMaybeMessage< ::cockroach::roachpb::TransactionRetryWithProtoRefreshError >( 8297 GetArenaNoVirtual()); 8298 } 8299 // @@protoc_insertion_point(field_mutable:cockroach.roachpb.ErrorDetail.transaction_retry_with_proto_refresh) 8300 return value_.transaction_retry_with_proto_refresh_; 8301 } 8302 8303 // optional .cockroach.roachpb.IntegerOverflowError integer_overflow = 31; 8304 inline bool ErrorDetail::has_integer_overflow() const { 8305 return value_case() == kIntegerOverflow; 8306 } 8307 inline void ErrorDetail::set_has_integer_overflow() { 8308 _oneof_case_[0] = kIntegerOverflow; 8309 } 8310 inline void ErrorDetail::clear_integer_overflow() { 8311 if (has_integer_overflow()) { 8312 delete value_.integer_overflow_; 8313 clear_has_value(); 8314 } 8315 } 8316 inline const ::cockroach::roachpb::IntegerOverflowError& ErrorDetail::_internal_integer_overflow() const { 8317 return *value_.integer_overflow_; 8318 } 8319 inline ::cockroach::roachpb::IntegerOverflowError* ErrorDetail::release_integer_overflow() { 8320 // @@protoc_insertion_point(field_release:cockroach.roachpb.ErrorDetail.integer_overflow) 8321 if (has_integer_overflow()) { 8322 clear_has_value(); 8323 ::cockroach::roachpb::IntegerOverflowError* temp = value_.integer_overflow_; 8324 value_.integer_overflow_ = NULL; 8325 return temp; 8326 } else { 8327 return NULL; 8328 } 8329 } 8330 inline const ::cockroach::roachpb::IntegerOverflowError& ErrorDetail::integer_overflow() const { 8331 // @@protoc_insertion_point(field_get:cockroach.roachpb.ErrorDetail.integer_overflow) 8332 return has_integer_overflow() 8333 ? *value_.integer_overflow_ 8334 : *reinterpret_cast< ::cockroach::roachpb::IntegerOverflowError*>(&::cockroach::roachpb::_IntegerOverflowError_default_instance_); 8335 } 8336 inline ::cockroach::roachpb::IntegerOverflowError* ErrorDetail::mutable_integer_overflow() { 8337 if (!has_integer_overflow()) { 8338 clear_value(); 8339 set_has_integer_overflow(); 8340 value_.integer_overflow_ = CreateMaybeMessage< ::cockroach::roachpb::IntegerOverflowError >( 8341 GetArenaNoVirtual()); 8342 } 8343 // @@protoc_insertion_point(field_mutable:cockroach.roachpb.ErrorDetail.integer_overflow) 8344 return value_.integer_overflow_; 8345 } 8346 8347 // optional .cockroach.roachpb.UnsupportedRequestError unsupported_request = 32; 8348 inline bool ErrorDetail::has_unsupported_request() const { 8349 return value_case() == kUnsupportedRequest; 8350 } 8351 inline void ErrorDetail::set_has_unsupported_request() { 8352 _oneof_case_[0] = kUnsupportedRequest; 8353 } 8354 inline void ErrorDetail::clear_unsupported_request() { 8355 if (has_unsupported_request()) { 8356 delete value_.unsupported_request_; 8357 clear_has_value(); 8358 } 8359 } 8360 inline const ::cockroach::roachpb::UnsupportedRequestError& ErrorDetail::_internal_unsupported_request() const { 8361 return *value_.unsupported_request_; 8362 } 8363 inline ::cockroach::roachpb::UnsupportedRequestError* ErrorDetail::release_unsupported_request() { 8364 // @@protoc_insertion_point(field_release:cockroach.roachpb.ErrorDetail.unsupported_request) 8365 if (has_unsupported_request()) { 8366 clear_has_value(); 8367 ::cockroach::roachpb::UnsupportedRequestError* temp = value_.unsupported_request_; 8368 value_.unsupported_request_ = NULL; 8369 return temp; 8370 } else { 8371 return NULL; 8372 } 8373 } 8374 inline const ::cockroach::roachpb::UnsupportedRequestError& ErrorDetail::unsupported_request() const { 8375 // @@protoc_insertion_point(field_get:cockroach.roachpb.ErrorDetail.unsupported_request) 8376 return has_unsupported_request() 8377 ? *value_.unsupported_request_ 8378 : *reinterpret_cast< ::cockroach::roachpb::UnsupportedRequestError*>(&::cockroach::roachpb::_UnsupportedRequestError_default_instance_); 8379 } 8380 inline ::cockroach::roachpb::UnsupportedRequestError* ErrorDetail::mutable_unsupported_request() { 8381 if (!has_unsupported_request()) { 8382 clear_value(); 8383 set_has_unsupported_request(); 8384 value_.unsupported_request_ = CreateMaybeMessage< ::cockroach::roachpb::UnsupportedRequestError >( 8385 GetArenaNoVirtual()); 8386 } 8387 // @@protoc_insertion_point(field_mutable:cockroach.roachpb.ErrorDetail.unsupported_request) 8388 return value_.unsupported_request_; 8389 } 8390 8391 // optional .cockroach.roachpb.BatchTimestampBeforeGCError timestamp_before = 34; 8392 inline bool ErrorDetail::has_timestamp_before() const { 8393 return value_case() == kTimestampBefore; 8394 } 8395 inline void ErrorDetail::set_has_timestamp_before() { 8396 _oneof_case_[0] = kTimestampBefore; 8397 } 8398 inline void ErrorDetail::clear_timestamp_before() { 8399 if (has_timestamp_before()) { 8400 delete value_.timestamp_before_; 8401 clear_has_value(); 8402 } 8403 } 8404 inline const ::cockroach::roachpb::BatchTimestampBeforeGCError& ErrorDetail::_internal_timestamp_before() const { 8405 return *value_.timestamp_before_; 8406 } 8407 inline ::cockroach::roachpb::BatchTimestampBeforeGCError* ErrorDetail::release_timestamp_before() { 8408 // @@protoc_insertion_point(field_release:cockroach.roachpb.ErrorDetail.timestamp_before) 8409 if (has_timestamp_before()) { 8410 clear_has_value(); 8411 ::cockroach::roachpb::BatchTimestampBeforeGCError* temp = value_.timestamp_before_; 8412 value_.timestamp_before_ = NULL; 8413 return temp; 8414 } else { 8415 return NULL; 8416 } 8417 } 8418 inline const ::cockroach::roachpb::BatchTimestampBeforeGCError& ErrorDetail::timestamp_before() const { 8419 // @@protoc_insertion_point(field_get:cockroach.roachpb.ErrorDetail.timestamp_before) 8420 return has_timestamp_before() 8421 ? *value_.timestamp_before_ 8422 : *reinterpret_cast< ::cockroach::roachpb::BatchTimestampBeforeGCError*>(&::cockroach::roachpb::_BatchTimestampBeforeGCError_default_instance_); 8423 } 8424 inline ::cockroach::roachpb::BatchTimestampBeforeGCError* ErrorDetail::mutable_timestamp_before() { 8425 if (!has_timestamp_before()) { 8426 clear_value(); 8427 set_has_timestamp_before(); 8428 value_.timestamp_before_ = CreateMaybeMessage< ::cockroach::roachpb::BatchTimestampBeforeGCError >( 8429 GetArenaNoVirtual()); 8430 } 8431 // @@protoc_insertion_point(field_mutable:cockroach.roachpb.ErrorDetail.timestamp_before) 8432 return value_.timestamp_before_; 8433 } 8434 8435 // optional .cockroach.roachpb.TxnAlreadyEncounteredErrorError txn_already_encountered_error = 35; 8436 inline bool ErrorDetail::has_txn_already_encountered_error() const { 8437 return value_case() == kTxnAlreadyEncounteredError; 8438 } 8439 inline void ErrorDetail::set_has_txn_already_encountered_error() { 8440 _oneof_case_[0] = kTxnAlreadyEncounteredError; 8441 } 8442 inline void ErrorDetail::clear_txn_already_encountered_error() { 8443 if (has_txn_already_encountered_error()) { 8444 delete value_.txn_already_encountered_error_; 8445 clear_has_value(); 8446 } 8447 } 8448 inline const ::cockroach::roachpb::TxnAlreadyEncounteredErrorError& ErrorDetail::_internal_txn_already_encountered_error() const { 8449 return *value_.txn_already_encountered_error_; 8450 } 8451 inline ::cockroach::roachpb::TxnAlreadyEncounteredErrorError* ErrorDetail::release_txn_already_encountered_error() { 8452 // @@protoc_insertion_point(field_release:cockroach.roachpb.ErrorDetail.txn_already_encountered_error) 8453 if (has_txn_already_encountered_error()) { 8454 clear_has_value(); 8455 ::cockroach::roachpb::TxnAlreadyEncounteredErrorError* temp = value_.txn_already_encountered_error_; 8456 value_.txn_already_encountered_error_ = NULL; 8457 return temp; 8458 } else { 8459 return NULL; 8460 } 8461 } 8462 inline const ::cockroach::roachpb::TxnAlreadyEncounteredErrorError& ErrorDetail::txn_already_encountered_error() const { 8463 // @@protoc_insertion_point(field_get:cockroach.roachpb.ErrorDetail.txn_already_encountered_error) 8464 return has_txn_already_encountered_error() 8465 ? *value_.txn_already_encountered_error_ 8466 : *reinterpret_cast< ::cockroach::roachpb::TxnAlreadyEncounteredErrorError*>(&::cockroach::roachpb::_TxnAlreadyEncounteredErrorError_default_instance_); 8467 } 8468 inline ::cockroach::roachpb::TxnAlreadyEncounteredErrorError* ErrorDetail::mutable_txn_already_encountered_error() { 8469 if (!has_txn_already_encountered_error()) { 8470 clear_value(); 8471 set_has_txn_already_encountered_error(); 8472 value_.txn_already_encountered_error_ = CreateMaybeMessage< ::cockroach::roachpb::TxnAlreadyEncounteredErrorError >( 8473 GetArenaNoVirtual()); 8474 } 8475 // @@protoc_insertion_point(field_mutable:cockroach.roachpb.ErrorDetail.txn_already_encountered_error) 8476 return value_.txn_already_encountered_error_; 8477 } 8478 8479 // optional .cockroach.roachpb.IntentMissingError intent_missing = 36; 8480 inline bool ErrorDetail::has_intent_missing() const { 8481 return value_case() == kIntentMissing; 8482 } 8483 inline void ErrorDetail::set_has_intent_missing() { 8484 _oneof_case_[0] = kIntentMissing; 8485 } 8486 inline void ErrorDetail::clear_intent_missing() { 8487 if (has_intent_missing()) { 8488 delete value_.intent_missing_; 8489 clear_has_value(); 8490 } 8491 } 8492 inline const ::cockroach::roachpb::IntentMissingError& ErrorDetail::_internal_intent_missing() const { 8493 return *value_.intent_missing_; 8494 } 8495 inline ::cockroach::roachpb::IntentMissingError* ErrorDetail::release_intent_missing() { 8496 // @@protoc_insertion_point(field_release:cockroach.roachpb.ErrorDetail.intent_missing) 8497 if (has_intent_missing()) { 8498 clear_has_value(); 8499 ::cockroach::roachpb::IntentMissingError* temp = value_.intent_missing_; 8500 value_.intent_missing_ = NULL; 8501 return temp; 8502 } else { 8503 return NULL; 8504 } 8505 } 8506 inline const ::cockroach::roachpb::IntentMissingError& ErrorDetail::intent_missing() const { 8507 // @@protoc_insertion_point(field_get:cockroach.roachpb.ErrorDetail.intent_missing) 8508 return has_intent_missing() 8509 ? *value_.intent_missing_ 8510 : *reinterpret_cast< ::cockroach::roachpb::IntentMissingError*>(&::cockroach::roachpb::_IntentMissingError_default_instance_); 8511 } 8512 inline ::cockroach::roachpb::IntentMissingError* ErrorDetail::mutable_intent_missing() { 8513 if (!has_intent_missing()) { 8514 clear_value(); 8515 set_has_intent_missing(); 8516 value_.intent_missing_ = CreateMaybeMessage< ::cockroach::roachpb::IntentMissingError >( 8517 GetArenaNoVirtual()); 8518 } 8519 // @@protoc_insertion_point(field_mutable:cockroach.roachpb.ErrorDetail.intent_missing) 8520 return value_.intent_missing_; 8521 } 8522 8523 // optional .cockroach.roachpb.MergeInProgressError merge_in_progress = 37; 8524 inline bool ErrorDetail::has_merge_in_progress() const { 8525 return value_case() == kMergeInProgress; 8526 } 8527 inline void ErrorDetail::set_has_merge_in_progress() { 8528 _oneof_case_[0] = kMergeInProgress; 8529 } 8530 inline void ErrorDetail::clear_merge_in_progress() { 8531 if (has_merge_in_progress()) { 8532 delete value_.merge_in_progress_; 8533 clear_has_value(); 8534 } 8535 } 8536 inline const ::cockroach::roachpb::MergeInProgressError& ErrorDetail::_internal_merge_in_progress() const { 8537 return *value_.merge_in_progress_; 8538 } 8539 inline ::cockroach::roachpb::MergeInProgressError* ErrorDetail::release_merge_in_progress() { 8540 // @@protoc_insertion_point(field_release:cockroach.roachpb.ErrorDetail.merge_in_progress) 8541 if (has_merge_in_progress()) { 8542 clear_has_value(); 8543 ::cockroach::roachpb::MergeInProgressError* temp = value_.merge_in_progress_; 8544 value_.merge_in_progress_ = NULL; 8545 return temp; 8546 } else { 8547 return NULL; 8548 } 8549 } 8550 inline const ::cockroach::roachpb::MergeInProgressError& ErrorDetail::merge_in_progress() const { 8551 // @@protoc_insertion_point(field_get:cockroach.roachpb.ErrorDetail.merge_in_progress) 8552 return has_merge_in_progress() 8553 ? *value_.merge_in_progress_ 8554 : *reinterpret_cast< ::cockroach::roachpb::MergeInProgressError*>(&::cockroach::roachpb::_MergeInProgressError_default_instance_); 8555 } 8556 inline ::cockroach::roachpb::MergeInProgressError* ErrorDetail::mutable_merge_in_progress() { 8557 if (!has_merge_in_progress()) { 8558 clear_value(); 8559 set_has_merge_in_progress(); 8560 value_.merge_in_progress_ = CreateMaybeMessage< ::cockroach::roachpb::MergeInProgressError >( 8561 GetArenaNoVirtual()); 8562 } 8563 // @@protoc_insertion_point(field_mutable:cockroach.roachpb.ErrorDetail.merge_in_progress) 8564 return value_.merge_in_progress_; 8565 } 8566 8567 // optional .cockroach.roachpb.RangeFeedRetryError rangefeed_retry = 38; 8568 inline bool ErrorDetail::has_rangefeed_retry() const { 8569 return value_case() == kRangefeedRetry; 8570 } 8571 inline void ErrorDetail::set_has_rangefeed_retry() { 8572 _oneof_case_[0] = kRangefeedRetry; 8573 } 8574 inline void ErrorDetail::clear_rangefeed_retry() { 8575 if (has_rangefeed_retry()) { 8576 delete value_.rangefeed_retry_; 8577 clear_has_value(); 8578 } 8579 } 8580 inline const ::cockroach::roachpb::RangeFeedRetryError& ErrorDetail::_internal_rangefeed_retry() const { 8581 return *value_.rangefeed_retry_; 8582 } 8583 inline ::cockroach::roachpb::RangeFeedRetryError* ErrorDetail::release_rangefeed_retry() { 8584 // @@protoc_insertion_point(field_release:cockroach.roachpb.ErrorDetail.rangefeed_retry) 8585 if (has_rangefeed_retry()) { 8586 clear_has_value(); 8587 ::cockroach::roachpb::RangeFeedRetryError* temp = value_.rangefeed_retry_; 8588 value_.rangefeed_retry_ = NULL; 8589 return temp; 8590 } else { 8591 return NULL; 8592 } 8593 } 8594 inline const ::cockroach::roachpb::RangeFeedRetryError& ErrorDetail::rangefeed_retry() const { 8595 // @@protoc_insertion_point(field_get:cockroach.roachpb.ErrorDetail.rangefeed_retry) 8596 return has_rangefeed_retry() 8597 ? *value_.rangefeed_retry_ 8598 : *reinterpret_cast< ::cockroach::roachpb::RangeFeedRetryError*>(&::cockroach::roachpb::_RangeFeedRetryError_default_instance_); 8599 } 8600 inline ::cockroach::roachpb::RangeFeedRetryError* ErrorDetail::mutable_rangefeed_retry() { 8601 if (!has_rangefeed_retry()) { 8602 clear_value(); 8603 set_has_rangefeed_retry(); 8604 value_.rangefeed_retry_ = CreateMaybeMessage< ::cockroach::roachpb::RangeFeedRetryError >( 8605 GetArenaNoVirtual()); 8606 } 8607 // @@protoc_insertion_point(field_mutable:cockroach.roachpb.ErrorDetail.rangefeed_retry) 8608 return value_.rangefeed_retry_; 8609 } 8610 8611 // optional .cockroach.roachpb.IndeterminateCommitError indeterminate_commit = 39; 8612 inline bool ErrorDetail::has_indeterminate_commit() const { 8613 return value_case() == kIndeterminateCommit; 8614 } 8615 inline void ErrorDetail::set_has_indeterminate_commit() { 8616 _oneof_case_[0] = kIndeterminateCommit; 8617 } 8618 inline void ErrorDetail::clear_indeterminate_commit() { 8619 if (has_indeterminate_commit()) { 8620 delete value_.indeterminate_commit_; 8621 clear_has_value(); 8622 } 8623 } 8624 inline const ::cockroach::roachpb::IndeterminateCommitError& ErrorDetail::_internal_indeterminate_commit() const { 8625 return *value_.indeterminate_commit_; 8626 } 8627 inline ::cockroach::roachpb::IndeterminateCommitError* ErrorDetail::release_indeterminate_commit() { 8628 // @@protoc_insertion_point(field_release:cockroach.roachpb.ErrorDetail.indeterminate_commit) 8629 if (has_indeterminate_commit()) { 8630 clear_has_value(); 8631 ::cockroach::roachpb::IndeterminateCommitError* temp = value_.indeterminate_commit_; 8632 value_.indeterminate_commit_ = NULL; 8633 return temp; 8634 } else { 8635 return NULL; 8636 } 8637 } 8638 inline const ::cockroach::roachpb::IndeterminateCommitError& ErrorDetail::indeterminate_commit() const { 8639 // @@protoc_insertion_point(field_get:cockroach.roachpb.ErrorDetail.indeterminate_commit) 8640 return has_indeterminate_commit() 8641 ? *value_.indeterminate_commit_ 8642 : *reinterpret_cast< ::cockroach::roachpb::IndeterminateCommitError*>(&::cockroach::roachpb::_IndeterminateCommitError_default_instance_); 8643 } 8644 inline ::cockroach::roachpb::IndeterminateCommitError* ErrorDetail::mutable_indeterminate_commit() { 8645 if (!has_indeterminate_commit()) { 8646 clear_value(); 8647 set_has_indeterminate_commit(); 8648 value_.indeterminate_commit_ = CreateMaybeMessage< ::cockroach::roachpb::IndeterminateCommitError >( 8649 GetArenaNoVirtual()); 8650 } 8651 // @@protoc_insertion_point(field_mutable:cockroach.roachpb.ErrorDetail.indeterminate_commit) 8652 return value_.indeterminate_commit_; 8653 } 8654 8655 inline bool ErrorDetail::has_value() const { 8656 return value_case() != VALUE_NOT_SET; 8657 } 8658 inline void ErrorDetail::clear_has_value() { 8659 _oneof_case_[0] = VALUE_NOT_SET; 8660 } 8661 inline ErrorDetail::ValueCase ErrorDetail::value_case() const { 8662 return ErrorDetail::ValueCase(_oneof_case_[0]); 8663 } 8664 // ------------------------------------------------------------------- 8665 8666 // ErrPosition 8667 8668 inline bool ErrPosition::has_index() const { 8669 return (_has_bits_[0] & 0x00000001u) != 0; 8670 } 8671 inline void ErrPosition::set_has_index() { 8672 _has_bits_[0] |= 0x00000001u; 8673 } 8674 inline void ErrPosition::clear_has_index() { 8675 _has_bits_[0] &= ~0x00000001u; 8676 } 8677 inline void ErrPosition::clear_index() { 8678 index_ = 0; 8679 clear_has_index(); 8680 } 8681 inline ::google::protobuf::int32 ErrPosition::index() const { 8682 // @@protoc_insertion_point(field_get:cockroach.roachpb.ErrPosition.index) 8683 return index_; 8684 } 8685 inline void ErrPosition::set_index(::google::protobuf::int32 value) { 8686 set_has_index(); 8687 index_ = value; 8688 // @@protoc_insertion_point(field_set:cockroach.roachpb.ErrPosition.index) 8689 } 8690 8691 // ------------------------------------------------------------------- 8692 8693 // Error 8694 8695 inline bool Error::has_message() const { 8696 return (_has_bits_[0] & 0x00000001u) != 0; 8697 } 8698 inline void Error::set_has_message() { 8699 _has_bits_[0] |= 0x00000001u; 8700 } 8701 inline void Error::clear_has_message() { 8702 _has_bits_[0] &= ~0x00000001u; 8703 } 8704 inline void Error::clear_message() { 8705 message_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 8706 clear_has_message(); 8707 } 8708 inline const ::std::string& Error::message() const { 8709 // @@protoc_insertion_point(field_get:cockroach.roachpb.Error.message) 8710 return message_.GetNoArena(); 8711 } 8712 inline void Error::set_message(const ::std::string& value) { 8713 set_has_message(); 8714 message_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); 8715 // @@protoc_insertion_point(field_set:cockroach.roachpb.Error.message) 8716 } 8717 #if LANG_CXX11 8718 inline void Error::set_message(::std::string&& value) { 8719 set_has_message(); 8720 message_.SetNoArena( 8721 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); 8722 // @@protoc_insertion_point(field_set_rvalue:cockroach.roachpb.Error.message) 8723 } 8724 #endif 8725 inline void Error::set_message(const char* value) { 8726 GOOGLE_DCHECK(value != NULL); 8727 set_has_message(); 8728 message_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); 8729 // @@protoc_insertion_point(field_set_char:cockroach.roachpb.Error.message) 8730 } 8731 inline void Error::set_message(const char* value, size_t size) { 8732 set_has_message(); 8733 message_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), 8734 ::std::string(reinterpret_cast<const char*>(value), size)); 8735 // @@protoc_insertion_point(field_set_pointer:cockroach.roachpb.Error.message) 8736 } 8737 inline ::std::string* Error::mutable_message() { 8738 set_has_message(); 8739 // @@protoc_insertion_point(field_mutable:cockroach.roachpb.Error.message) 8740 return message_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 8741 } 8742 inline ::std::string* Error::release_message() { 8743 // @@protoc_insertion_point(field_release:cockroach.roachpb.Error.message) 8744 if (!has_message()) { 8745 return NULL; 8746 } 8747 clear_has_message(); 8748 return message_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 8749 } 8750 inline void Error::set_allocated_message(::std::string* message) { 8751 if (message != NULL) { 8752 set_has_message(); 8753 } else { 8754 clear_has_message(); 8755 } 8756 message_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), message); 8757 // @@protoc_insertion_point(field_set_allocated:cockroach.roachpb.Error.message) 8758 } 8759 8760 inline bool Error::has_transaction_restart() const { 8761 return (_has_bits_[0] & 0x00000020u) != 0; 8762 } 8763 inline void Error::set_has_transaction_restart() { 8764 _has_bits_[0] |= 0x00000020u; 8765 } 8766 inline void Error::clear_has_transaction_restart() { 8767 _has_bits_[0] &= ~0x00000020u; 8768 } 8769 inline void Error::clear_transaction_restart() { 8770 transaction_restart_ = 0; 8771 clear_has_transaction_restart(); 8772 } 8773 inline ::cockroach::roachpb::TransactionRestart Error::transaction_restart() const { 8774 // @@protoc_insertion_point(field_get:cockroach.roachpb.Error.transaction_restart) 8775 return static_cast< ::cockroach::roachpb::TransactionRestart >(transaction_restart_); 8776 } 8777 inline void Error::set_transaction_restart(::cockroach::roachpb::TransactionRestart value) { 8778 assert(::cockroach::roachpb::TransactionRestart_IsValid(value)); 8779 set_has_transaction_restart(); 8780 transaction_restart_ = value; 8781 // @@protoc_insertion_point(field_set:cockroach.roachpb.Error.transaction_restart) 8782 } 8783 8784 // optional .cockroach.roachpb.Transaction unexposed_txn = 4; 8785 inline bool Error::has_unexposed_txn() const { 8786 return (_has_bits_[0] & 0x00000002u) != 0; 8787 } 8788 inline void Error::set_has_unexposed_txn() { 8789 _has_bits_[0] |= 0x00000002u; 8790 } 8791 inline void Error::clear_has_unexposed_txn() { 8792 _has_bits_[0] &= ~0x00000002u; 8793 } 8794 inline const ::cockroach::roachpb::Transaction& Error::_internal_unexposed_txn() const { 8795 return *unexposed_txn_; 8796 } 8797 inline const ::cockroach::roachpb::Transaction& Error::unexposed_txn() const { 8798 const ::cockroach::roachpb::Transaction* p = unexposed_txn_; 8799 // @@protoc_insertion_point(field_get:cockroach.roachpb.Error.unexposed_txn) 8800 return p != NULL ? *p : *reinterpret_cast<const ::cockroach::roachpb::Transaction*>( 8801 &::cockroach::roachpb::_Transaction_default_instance_); 8802 } 8803 inline ::cockroach::roachpb::Transaction* Error::release_unexposed_txn() { 8804 // @@protoc_insertion_point(field_release:cockroach.roachpb.Error.unexposed_txn) 8805 clear_has_unexposed_txn(); 8806 ::cockroach::roachpb::Transaction* temp = unexposed_txn_; 8807 unexposed_txn_ = NULL; 8808 return temp; 8809 } 8810 inline ::cockroach::roachpb::Transaction* Error::mutable_unexposed_txn() { 8811 set_has_unexposed_txn(); 8812 if (unexposed_txn_ == NULL) { 8813 auto* p = CreateMaybeMessage<::cockroach::roachpb::Transaction>(GetArenaNoVirtual()); 8814 unexposed_txn_ = p; 8815 } 8816 // @@protoc_insertion_point(field_mutable:cockroach.roachpb.Error.unexposed_txn) 8817 return unexposed_txn_; 8818 } 8819 inline void Error::set_allocated_unexposed_txn(::cockroach::roachpb::Transaction* unexposed_txn) { 8820 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); 8821 if (message_arena == NULL) { 8822 delete reinterpret_cast< ::google::protobuf::MessageLite*>(unexposed_txn_); 8823 } 8824 if (unexposed_txn) { 8825 ::google::protobuf::Arena* submessage_arena = NULL; 8826 if (message_arena != submessage_arena) { 8827 unexposed_txn = ::google::protobuf::internal::GetOwnedMessage( 8828 message_arena, unexposed_txn, submessage_arena); 8829 } 8830 set_has_unexposed_txn(); 8831 } else { 8832 clear_has_unexposed_txn(); 8833 } 8834 unexposed_txn_ = unexposed_txn; 8835 // @@protoc_insertion_point(field_set_allocated:cockroach.roachpb.Error.unexposed_txn) 8836 } 8837 8838 inline bool Error::has_origin_node() const { 8839 return (_has_bits_[0] & 0x00000040u) != 0; 8840 } 8841 inline void Error::set_has_origin_node() { 8842 _has_bits_[0] |= 0x00000040u; 8843 } 8844 inline void Error::clear_has_origin_node() { 8845 _has_bits_[0] &= ~0x00000040u; 8846 } 8847 inline void Error::clear_origin_node() { 8848 origin_node_ = 0; 8849 clear_has_origin_node(); 8850 } 8851 inline ::google::protobuf::int32 Error::origin_node() const { 8852 // @@protoc_insertion_point(field_get:cockroach.roachpb.Error.origin_node) 8853 return origin_node_; 8854 } 8855 inline void Error::set_origin_node(::google::protobuf::int32 value) { 8856 set_has_origin_node(); 8857 origin_node_ = value; 8858 // @@protoc_insertion_point(field_set:cockroach.roachpb.Error.origin_node) 8859 } 8860 8861 inline bool Error::has_detail() const { 8862 return (_has_bits_[0] & 0x00000004u) != 0; 8863 } 8864 inline void Error::set_has_detail() { 8865 _has_bits_[0] |= 0x00000004u; 8866 } 8867 inline void Error::clear_has_detail() { 8868 _has_bits_[0] &= ~0x00000004u; 8869 } 8870 inline void Error::clear_detail() { 8871 if (detail_ != NULL) detail_->Clear(); 8872 clear_has_detail(); 8873 } 8874 inline const ::cockroach::roachpb::ErrorDetail& Error::_internal_detail() const { 8875 return *detail_; 8876 } 8877 inline const ::cockroach::roachpb::ErrorDetail& Error::detail() const { 8878 const ::cockroach::roachpb::ErrorDetail* p = detail_; 8879 // @@protoc_insertion_point(field_get:cockroach.roachpb.Error.detail) 8880 return p != NULL ? *p : *reinterpret_cast<const ::cockroach::roachpb::ErrorDetail*>( 8881 &::cockroach::roachpb::_ErrorDetail_default_instance_); 8882 } 8883 inline ::cockroach::roachpb::ErrorDetail* Error::release_detail() { 8884 // @@protoc_insertion_point(field_release:cockroach.roachpb.Error.detail) 8885 clear_has_detail(); 8886 ::cockroach::roachpb::ErrorDetail* temp = detail_; 8887 detail_ = NULL; 8888 return temp; 8889 } 8890 inline ::cockroach::roachpb::ErrorDetail* Error::mutable_detail() { 8891 set_has_detail(); 8892 if (detail_ == NULL) { 8893 auto* p = CreateMaybeMessage<::cockroach::roachpb::ErrorDetail>(GetArenaNoVirtual()); 8894 detail_ = p; 8895 } 8896 // @@protoc_insertion_point(field_mutable:cockroach.roachpb.Error.detail) 8897 return detail_; 8898 } 8899 inline void Error::set_allocated_detail(::cockroach::roachpb::ErrorDetail* detail) { 8900 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); 8901 if (message_arena == NULL) { 8902 delete detail_; 8903 } 8904 if (detail) { 8905 ::google::protobuf::Arena* submessage_arena = NULL; 8906 if (message_arena != submessage_arena) { 8907 detail = ::google::protobuf::internal::GetOwnedMessage( 8908 message_arena, detail, submessage_arena); 8909 } 8910 set_has_detail(); 8911 } else { 8912 clear_has_detail(); 8913 } 8914 detail_ = detail; 8915 // @@protoc_insertion_point(field_set_allocated:cockroach.roachpb.Error.detail) 8916 } 8917 8918 // optional .cockroach.roachpb.ErrPosition index = 7; 8919 inline bool Error::has_index() const { 8920 return (_has_bits_[0] & 0x00000008u) != 0; 8921 } 8922 inline void Error::set_has_index() { 8923 _has_bits_[0] |= 0x00000008u; 8924 } 8925 inline void Error::clear_has_index() { 8926 _has_bits_[0] &= ~0x00000008u; 8927 } 8928 inline void Error::clear_index() { 8929 if (index_ != NULL) index_->Clear(); 8930 clear_has_index(); 8931 } 8932 inline const ::cockroach::roachpb::ErrPosition& Error::_internal_index() const { 8933 return *index_; 8934 } 8935 inline const ::cockroach::roachpb::ErrPosition& Error::index() const { 8936 const ::cockroach::roachpb::ErrPosition* p = index_; 8937 // @@protoc_insertion_point(field_get:cockroach.roachpb.Error.index) 8938 return p != NULL ? *p : *reinterpret_cast<const ::cockroach::roachpb::ErrPosition*>( 8939 &::cockroach::roachpb::_ErrPosition_default_instance_); 8940 } 8941 inline ::cockroach::roachpb::ErrPosition* Error::release_index() { 8942 // @@protoc_insertion_point(field_release:cockroach.roachpb.Error.index) 8943 clear_has_index(); 8944 ::cockroach::roachpb::ErrPosition* temp = index_; 8945 index_ = NULL; 8946 return temp; 8947 } 8948 inline ::cockroach::roachpb::ErrPosition* Error::mutable_index() { 8949 set_has_index(); 8950 if (index_ == NULL) { 8951 auto* p = CreateMaybeMessage<::cockroach::roachpb::ErrPosition>(GetArenaNoVirtual()); 8952 index_ = p; 8953 } 8954 // @@protoc_insertion_point(field_mutable:cockroach.roachpb.Error.index) 8955 return index_; 8956 } 8957 inline void Error::set_allocated_index(::cockroach::roachpb::ErrPosition* index) { 8958 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); 8959 if (message_arena == NULL) { 8960 delete index_; 8961 } 8962 if (index) { 8963 ::google::protobuf::Arena* submessage_arena = NULL; 8964 if (message_arena != submessage_arena) { 8965 index = ::google::protobuf::internal::GetOwnedMessage( 8966 message_arena, index, submessage_arena); 8967 } 8968 set_has_index(); 8969 } else { 8970 clear_has_index(); 8971 } 8972 index_ = index; 8973 // @@protoc_insertion_point(field_set_allocated:cockroach.roachpb.Error.index) 8974 } 8975 8976 inline bool Error::has_now() const { 8977 return (_has_bits_[0] & 0x00000010u) != 0; 8978 } 8979 inline void Error::set_has_now() { 8980 _has_bits_[0] |= 0x00000010u; 8981 } 8982 inline void Error::clear_has_now() { 8983 _has_bits_[0] &= ~0x00000010u; 8984 } 8985 inline const ::cockroach::util::hlc::Timestamp& Error::_internal_now() const { 8986 return *now_; 8987 } 8988 inline const ::cockroach::util::hlc::Timestamp& Error::now() const { 8989 const ::cockroach::util::hlc::Timestamp* p = now_; 8990 // @@protoc_insertion_point(field_get:cockroach.roachpb.Error.now) 8991 return p != NULL ? *p : *reinterpret_cast<const ::cockroach::util::hlc::Timestamp*>( 8992 &::cockroach::util::hlc::_Timestamp_default_instance_); 8993 } 8994 inline ::cockroach::util::hlc::Timestamp* Error::release_now() { 8995 // @@protoc_insertion_point(field_release:cockroach.roachpb.Error.now) 8996 clear_has_now(); 8997 ::cockroach::util::hlc::Timestamp* temp = now_; 8998 now_ = NULL; 8999 return temp; 9000 } 9001 inline ::cockroach::util::hlc::Timestamp* Error::mutable_now() { 9002 set_has_now(); 9003 if (now_ == NULL) { 9004 auto* p = CreateMaybeMessage<::cockroach::util::hlc::Timestamp>(GetArenaNoVirtual()); 9005 now_ = p; 9006 } 9007 // @@protoc_insertion_point(field_mutable:cockroach.roachpb.Error.now) 9008 return now_; 9009 } 9010 inline void Error::set_allocated_now(::cockroach::util::hlc::Timestamp* now) { 9011 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); 9012 if (message_arena == NULL) { 9013 delete reinterpret_cast< ::google::protobuf::MessageLite*>(now_); 9014 } 9015 if (now) { 9016 ::google::protobuf::Arena* submessage_arena = NULL; 9017 if (message_arena != submessage_arena) { 9018 now = ::google::protobuf::internal::GetOwnedMessage( 9019 message_arena, now, submessage_arena); 9020 } 9021 set_has_now(); 9022 } else { 9023 clear_has_now(); 9024 } 9025 now_ = now; 9026 // @@protoc_insertion_point(field_set_allocated:cockroach.roachpb.Error.now) 9027 } 9028 9029 #ifdef __GNUC__ 9030 #pragma GCC diagnostic pop 9031 #endif // __GNUC__ 9032 // ------------------------------------------------------------------- 9033 9034 // ------------------------------------------------------------------- 9035 9036 // ------------------------------------------------------------------- 9037 9038 // ------------------------------------------------------------------- 9039 9040 // ------------------------------------------------------------------- 9041 9042 // ------------------------------------------------------------------- 9043 9044 // ------------------------------------------------------------------- 9045 9046 // ------------------------------------------------------------------- 9047 9048 // ------------------------------------------------------------------- 9049 9050 // ------------------------------------------------------------------- 9051 9052 // ------------------------------------------------------------------- 9053 9054 // ------------------------------------------------------------------- 9055 9056 // ------------------------------------------------------------------- 9057 9058 // ------------------------------------------------------------------- 9059 9060 // ------------------------------------------------------------------- 9061 9062 // ------------------------------------------------------------------- 9063 9064 // ------------------------------------------------------------------- 9065 9066 // ------------------------------------------------------------------- 9067 9068 // ------------------------------------------------------------------- 9069 9070 // ------------------------------------------------------------------- 9071 9072 // ------------------------------------------------------------------- 9073 9074 // ------------------------------------------------------------------- 9075 9076 // ------------------------------------------------------------------- 9077 9078 // ------------------------------------------------------------------- 9079 9080 // ------------------------------------------------------------------- 9081 9082 // ------------------------------------------------------------------- 9083 9084 // ------------------------------------------------------------------- 9085 9086 // ------------------------------------------------------------------- 9087 9088 // ------------------------------------------------------------------- 9089 9090 // ------------------------------------------------------------------- 9091 9092 // ------------------------------------------------------------------- 9093 9094 // ------------------------------------------------------------------- 9095 9096 9097 // @@protoc_insertion_point(namespace_scope) 9098 9099 } // namespace roachpb 9100 } // namespace cockroach 9101 9102 namespace google { 9103 namespace protobuf { 9104 9105 template <> struct is_proto_enum< ::cockroach::roachpb::TransactionStatusError_Reason> : ::std::true_type {}; 9106 template <> struct is_proto_enum< ::cockroach::roachpb::RangeFeedRetryError_Reason> : ::std::true_type {}; 9107 template <> struct is_proto_enum< ::cockroach::roachpb::TransactionAbortedReason> : ::std::true_type {}; 9108 template <> struct is_proto_enum< ::cockroach::roachpb::TransactionRetryReason> : ::std::true_type {}; 9109 template <> struct is_proto_enum< ::cockroach::roachpb::TransactionRestart> : ::std::true_type {}; 9110 9111 } // namespace protobuf 9112 } // namespace google 9113 9114 // @@protoc_insertion_point(global_scope) 9115 9116 #endif // PROTOBUF_INCLUDED_roachpb_2ferrors_2eproto