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