1#[allow(clippy::derive_partial_eq_without_eq)]
5#[derive(Clone, PartialEq, ::prost::Message)]
6pub struct GetRequest {
7 #[prost(message, optional, tag = "1")]
8 pub context: ::core::option::Option<Context>,
9 #[prost(bytes = "vec", tag = "2")]
10 pub key: ::prost::alloc::vec::Vec<u8>,
11 #[prost(uint64, tag = "3")]
12 pub version: u64,
13}
14#[allow(clippy::derive_partial_eq_without_eq)]
15#[derive(Clone, PartialEq, ::prost::Message)]
16pub struct GetResponse {
17 #[prost(message, optional, tag = "1")]
20 pub region_error: ::core::option::Option<super::errorpb::Error>,
21 #[prost(message, optional, tag = "2")]
23 pub error: ::core::option::Option<KeyError>,
24 #[prost(bytes = "vec", tag = "3")]
26 pub value: ::prost::alloc::vec::Vec<u8>,
27 #[prost(bool, tag = "4")]
29 pub not_found: bool,
30 #[prost(message, optional, tag = "6")]
32 pub exec_details_v2: ::core::option::Option<ExecDetailsV2>,
33}
34#[allow(clippy::derive_partial_eq_without_eq)]
37#[derive(Clone, PartialEq, ::prost::Message)]
38pub struct ScanRequest {
39 #[prost(message, optional, tag = "1")]
40 pub context: ::core::option::Option<Context>,
41 #[prost(bytes = "vec", tag = "2")]
42 pub start_key: ::prost::alloc::vec::Vec<u8>,
43 #[prost(uint32, tag = "3")]
45 pub limit: u32,
46 #[prost(uint64, tag = "4")]
47 pub version: u64,
48 #[prost(bool, tag = "5")]
50 pub key_only: bool,
51 #[prost(bool, tag = "6")]
52 pub reverse: bool,
53 #[prost(bytes = "vec", tag = "7")]
56 pub end_key: ::prost::alloc::vec::Vec<u8>,
57 #[prost(uint32, tag = "8")]
60 pub sample_step: u32,
61}
62#[allow(clippy::derive_partial_eq_without_eq)]
63#[derive(Clone, PartialEq, ::prost::Message)]
64pub struct ScanResponse {
65 #[prost(message, optional, tag = "1")]
66 pub region_error: ::core::option::Option<super::errorpb::Error>,
67 #[prost(message, repeated, tag = "2")]
69 pub pairs: ::prost::alloc::vec::Vec<KvPair>,
70 #[prost(message, optional, tag = "3")]
74 pub error: ::core::option::Option<KeyError>,
75}
76#[allow(clippy::derive_partial_eq_without_eq)]
80#[derive(Clone, PartialEq, ::prost::Message)]
81pub struct PrewriteRequest {
82 #[prost(message, optional, tag = "1")]
83 pub context: ::core::option::Option<Context>,
84 #[prost(message, repeated, tag = "2")]
86 pub mutations: ::prost::alloc::vec::Vec<Mutation>,
87 #[prost(bytes = "vec", tag = "3")]
91 pub primary_lock: ::prost::alloc::vec::Vec<u8>,
92 #[prost(uint64, tag = "4")]
94 pub start_version: u64,
95 #[prost(uint64, tag = "5")]
96 pub lock_ttl: u64,
97 #[prost(bool, tag = "6")]
99 pub skip_constraint_check: bool,
100 #[prost(enumeration = "prewrite_request::PessimisticAction", repeated, tag = "7")]
103 pub pessimistic_actions: ::prost::alloc::vec::Vec<i32>,
104 #[prost(uint64, tag = "8")]
106 pub txn_size: u64,
107 #[prost(uint64, tag = "9")]
109 pub for_update_ts: u64,
110 #[prost(uint64, tag = "10")]
113 pub min_commit_ts: u64,
114 #[prost(bool, tag = "11")]
117 pub use_async_commit: bool,
118 #[prost(bytes = "vec", repeated, tag = "12")]
119 pub secondaries: ::prost::alloc::vec::Vec<::prost::alloc::vec::Vec<u8>>,
120 #[prost(bool, tag = "13")]
123 pub try_one_pc: bool,
124 #[prost(uint64, tag = "14")]
127 pub max_commit_ts: u64,
128 #[prost(enumeration = "AssertionLevel", tag = "15")]
130 pub assertion_level: i32,
131 #[prost(message, repeated, tag = "16")]
134 pub for_update_ts_constraints: ::prost::alloc::vec::Vec<
135 prewrite_request::ForUpdateTsConstraint,
136 >,
137 #[prost(uint64, repeated, tag = "100")]
139 pub txn_file_chunks: ::prost::alloc::vec::Vec<u64>,
140}
141pub mod prewrite_request {
143 #[allow(clippy::derive_partial_eq_without_eq)]
145 #[derive(Clone, PartialEq, ::prost::Message)]
146 pub struct ForUpdateTsConstraint {
147 #[prost(uint32, tag = "1")]
149 pub index: u32,
150 #[prost(uint64, tag = "2")]
152 pub expected_for_update_ts: u64,
153 }
154 #[derive(
156 Clone,
157 Copy,
158 Debug,
159 PartialEq,
160 Eq,
161 Hash,
162 PartialOrd,
163 Ord,
164 ::prost::Enumeration
165 )]
166 #[repr(i32)]
167 pub enum PessimisticAction {
168 SkipPessimisticCheck = 0,
170 DoPessimisticCheck = 1,
172 DoConstraintCheck = 2,
174 }
175 impl PessimisticAction {
176 pub fn as_str_name(&self) -> &'static str {
181 match self {
182 PessimisticAction::SkipPessimisticCheck => "SKIP_PESSIMISTIC_CHECK",
183 PessimisticAction::DoPessimisticCheck => "DO_PESSIMISTIC_CHECK",
184 PessimisticAction::DoConstraintCheck => "DO_CONSTRAINT_CHECK",
185 }
186 }
187 pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
189 match value {
190 "SKIP_PESSIMISTIC_CHECK" => Some(Self::SkipPessimisticCheck),
191 "DO_PESSIMISTIC_CHECK" => Some(Self::DoPessimisticCheck),
192 "DO_CONSTRAINT_CHECK" => Some(Self::DoConstraintCheck),
193 _ => None,
194 }
195 }
196 }
197}
198#[allow(clippy::derive_partial_eq_without_eq)]
199#[derive(Clone, PartialEq, ::prost::Message)]
200pub struct PrewriteResponse {
201 #[prost(message, optional, tag = "1")]
202 pub region_error: ::core::option::Option<super::errorpb::Error>,
203 #[prost(message, repeated, tag = "2")]
204 pub errors: ::prost::alloc::vec::Vec<KeyError>,
205 #[prost(uint64, tag = "3")]
209 pub min_commit_ts: u64,
210 #[prost(uint64, tag = "4")]
214 pub one_pc_commit_ts: u64,
215 #[prost(message, optional, tag = "5")]
217 pub exec_details_v2: ::core::option::Option<ExecDetailsV2>,
218}
219#[allow(clippy::derive_partial_eq_without_eq)]
221#[derive(Clone, PartialEq, ::prost::Message)]
222pub struct PessimisticLockRequest {
223 #[prost(message, optional, tag = "1")]
224 pub context: ::core::option::Option<Context>,
225 #[prost(message, repeated, tag = "2")]
227 pub mutations: ::prost::alloc::vec::Vec<Mutation>,
228 #[prost(bytes = "vec", tag = "3")]
229 pub primary_lock: ::prost::alloc::vec::Vec<u8>,
230 #[prost(uint64, tag = "4")]
231 pub start_version: u64,
232 #[prost(uint64, tag = "5")]
233 pub lock_ttl: u64,
234 #[prost(uint64, tag = "6")]
240 pub for_update_ts: u64,
241 #[prost(bool, tag = "7")]
243 pub is_first_lock: bool,
244 #[prost(int64, tag = "8")]
247 pub wait_timeout: i64,
248 #[deprecated]
251 #[prost(bool, tag = "9")]
252 pub force: bool,
253 #[prost(bool, tag = "10")]
257 pub return_values: bool,
258 #[prost(uint64, tag = "11")]
261 pub min_commit_ts: u64,
262 #[prost(bool, tag = "12")]
267 pub check_existence: bool,
268 #[prost(bool, tag = "13")]
270 pub lock_only_if_exists: bool,
271 #[prost(enumeration = "PessimisticLockWakeUpMode", tag = "14")]
273 pub wake_up_mode: i32,
274}
275#[allow(clippy::derive_partial_eq_without_eq)]
276#[derive(Clone, PartialEq, ::prost::Message)]
277pub struct PessimisticLockKeyResult {
278 #[prost(enumeration = "PessimisticLockKeyResultType", tag = "1")]
279 pub r#type: i32,
280 #[prost(bytes = "vec", tag = "2")]
281 pub value: ::prost::alloc::vec::Vec<u8>,
282 #[prost(bool, tag = "3")]
283 pub existence: bool,
284 #[prost(uint64, tag = "4")]
292 pub locked_with_conflict_ts: u64,
293 #[prost(bool, tag = "11")]
296 pub skip_resolving_lock: bool,
297}
298#[allow(clippy::derive_partial_eq_without_eq)]
299#[derive(Clone, PartialEq, ::prost::Message)]
300pub struct PessimisticLockResponse {
301 #[prost(message, optional, tag = "1")]
302 pub region_error: ::core::option::Option<super::errorpb::Error>,
303 #[prost(message, repeated, tag = "2")]
304 pub errors: ::prost::alloc::vec::Vec<KeyError>,
305 #[deprecated]
307 #[prost(uint64, tag = "3")]
308 pub commit_ts: u64,
309 #[deprecated]
310 #[prost(bytes = "vec", tag = "4")]
311 pub value: ::prost::alloc::vec::Vec<u8>,
312 #[prost(bytes = "vec", repeated, tag = "5")]
316 pub values: ::prost::alloc::vec::Vec<::prost::alloc::vec::Vec<u8>>,
317 #[prost(bool, repeated, tag = "6")]
322 pub not_founds: ::prost::alloc::vec::Vec<bool>,
323 #[prost(message, optional, tag = "7")]
325 pub exec_details_v2: ::core::option::Option<ExecDetailsV2>,
326 #[prost(message, repeated, tag = "8")]
328 pub results: ::prost::alloc::vec::Vec<PessimisticLockKeyResult>,
329}
330#[allow(clippy::derive_partial_eq_without_eq)]
332#[derive(Clone, PartialEq, ::prost::Message)]
333pub struct PessimisticRollbackRequest {
334 #[prost(message, optional, tag = "1")]
335 pub context: ::core::option::Option<Context>,
336 #[prost(uint64, tag = "2")]
337 pub start_version: u64,
338 #[prost(uint64, tag = "3")]
339 pub for_update_ts: u64,
340 #[prost(bytes = "vec", repeated, tag = "4")]
341 pub keys: ::prost::alloc::vec::Vec<::prost::alloc::vec::Vec<u8>>,
342}
343#[allow(clippy::derive_partial_eq_without_eq)]
344#[derive(Clone, PartialEq, ::prost::Message)]
345pub struct PessimisticRollbackResponse {
346 #[prost(message, optional, tag = "1")]
347 pub region_error: ::core::option::Option<super::errorpb::Error>,
348 #[prost(message, repeated, tag = "2")]
349 pub errors: ::prost::alloc::vec::Vec<KeyError>,
350 #[prost(message, optional, tag = "3")]
352 pub exec_details_v2: ::core::option::Option<ExecDetailsV2>,
353}
354#[allow(clippy::derive_partial_eq_without_eq)]
356#[derive(Clone, PartialEq, ::prost::Message)]
357pub struct TxnHeartBeatRequest {
358 #[prost(message, optional, tag = "1")]
359 pub context: ::core::option::Option<Context>,
360 #[prost(bytes = "vec", tag = "2")]
362 pub primary_lock: ::prost::alloc::vec::Vec<u8>,
363 #[prost(uint64, tag = "3")]
365 pub start_version: u64,
366 #[prost(uint64, tag = "4")]
368 pub advise_lock_ttl: u64,
369 #[prost(bool, tag = "100")]
371 pub is_txn_file: bool,
372}
373#[allow(clippy::derive_partial_eq_without_eq)]
374#[derive(Clone, PartialEq, ::prost::Message)]
375pub struct TxnHeartBeatResponse {
376 #[prost(message, optional, tag = "1")]
377 pub region_error: ::core::option::Option<super::errorpb::Error>,
378 #[prost(message, optional, tag = "2")]
379 pub error: ::core::option::Option<KeyError>,
380 #[prost(uint64, tag = "3")]
382 pub lock_ttl: u64,
383 #[prost(message, optional, tag = "4")]
385 pub exec_details_v2: ::core::option::Option<ExecDetailsV2>,
386}
387#[allow(clippy::derive_partial_eq_without_eq)]
393#[derive(Clone, PartialEq, ::prost::Message)]
394pub struct CheckTxnStatusRequest {
395 #[prost(message, optional, tag = "1")]
396 pub context: ::core::option::Option<Context>,
397 #[prost(bytes = "vec", tag = "2")]
399 pub primary_key: ::prost::alloc::vec::Vec<u8>,
400 #[prost(uint64, tag = "3")]
402 pub lock_ts: u64,
403 #[prost(uint64, tag = "4")]
405 pub caller_start_ts: u64,
406 #[prost(uint64, tag = "5")]
409 pub current_ts: u64,
410 #[prost(bool, tag = "6")]
413 pub rollback_if_not_exist: bool,
414 #[prost(bool, tag = "7")]
418 pub force_sync_commit: bool,
419 #[prost(bool, tag = "8")]
423 pub resolving_pessimistic_lock: bool,
424 #[prost(bool, tag = "9")]
430 pub verify_is_primary: bool,
431 #[prost(bool, tag = "100")]
433 pub is_txn_file: bool,
434}
435#[allow(clippy::derive_partial_eq_without_eq)]
436#[derive(Clone, PartialEq, ::prost::Message)]
437pub struct CheckTxnStatusResponse {
438 #[prost(message, optional, tag = "1")]
439 pub region_error: ::core::option::Option<super::errorpb::Error>,
440 #[prost(message, optional, tag = "2")]
441 pub error: ::core::option::Option<KeyError>,
442 #[prost(uint64, tag = "3")]
447 pub lock_ttl: u64,
448 #[prost(uint64, tag = "4")]
449 pub commit_version: u64,
450 #[prost(enumeration = "Action", tag = "5")]
452 pub action: i32,
453 #[prost(message, optional, tag = "6")]
454 pub lock_info: ::core::option::Option<LockInfo>,
455 #[prost(message, optional, tag = "7")]
457 pub exec_details_v2: ::core::option::Option<ExecDetailsV2>,
458}
459#[allow(clippy::derive_partial_eq_without_eq)]
463#[derive(Clone, PartialEq, ::prost::Message)]
464pub struct CheckSecondaryLocksRequest {
465 #[prost(message, optional, tag = "1")]
466 pub context: ::core::option::Option<Context>,
467 #[prost(bytes = "vec", repeated, tag = "2")]
468 pub keys: ::prost::alloc::vec::Vec<::prost::alloc::vec::Vec<u8>>,
469 #[prost(uint64, tag = "3")]
471 pub start_version: u64,
472}
473#[allow(clippy::derive_partial_eq_without_eq)]
474#[derive(Clone, PartialEq, ::prost::Message)]
475pub struct CheckSecondaryLocksResponse {
476 #[prost(message, optional, tag = "1")]
477 pub region_error: ::core::option::Option<super::errorpb::Error>,
478 #[prost(message, optional, tag = "2")]
479 pub error: ::core::option::Option<KeyError>,
480 #[prost(message, repeated, tag = "3")]
484 pub locks: ::prost::alloc::vec::Vec<LockInfo>,
485 #[prost(uint64, tag = "4")]
488 pub commit_ts: u64,
489 #[prost(message, optional, tag = "5")]
491 pub exec_details_v2: ::core::option::Option<ExecDetailsV2>,
492}
493#[allow(clippy::derive_partial_eq_without_eq)]
496#[derive(Clone, PartialEq, ::prost::Message)]
497pub struct CommitRequest {
498 #[prost(message, optional, tag = "1")]
499 pub context: ::core::option::Option<Context>,
500 #[prost(uint64, tag = "2")]
502 pub start_version: u64,
503 #[prost(bytes = "vec", repeated, tag = "3")]
505 pub keys: ::prost::alloc::vec::Vec<::prost::alloc::vec::Vec<u8>>,
506 #[prost(uint64, tag = "4")]
508 pub commit_version: u64,
509 #[prost(bool, tag = "100")]
511 pub is_txn_file: bool,
512}
513#[allow(clippy::derive_partial_eq_without_eq)]
514#[derive(Clone, PartialEq, ::prost::Message)]
515pub struct CommitResponse {
516 #[prost(message, optional, tag = "1")]
517 pub region_error: ::core::option::Option<super::errorpb::Error>,
518 #[prost(message, optional, tag = "2")]
519 pub error: ::core::option::Option<KeyError>,
520 #[prost(uint64, tag = "3")]
522 pub commit_version: u64,
523 #[prost(message, optional, tag = "4")]
525 pub exec_details_v2: ::core::option::Option<ExecDetailsV2>,
526}
527#[allow(clippy::derive_partial_eq_without_eq)]
529#[derive(Clone, PartialEq, ::prost::Message)]
530pub struct ImportRequest {
531 #[prost(message, repeated, tag = "1")]
532 pub mutations: ::prost::alloc::vec::Vec<Mutation>,
533 #[prost(uint64, tag = "2")]
534 pub commit_version: u64,
535}
536#[allow(clippy::derive_partial_eq_without_eq)]
537#[derive(Clone, PartialEq, ::prost::Message)]
538pub struct ImportResponse {
539 #[prost(message, optional, tag = "1")]
540 pub region_error: ::core::option::Option<super::errorpb::Error>,
541 #[prost(string, tag = "2")]
542 pub error: ::prost::alloc::string::String,
543}
544#[allow(clippy::derive_partial_eq_without_eq)]
547#[derive(Clone, PartialEq, ::prost::Message)]
548pub struct CleanupRequest {
549 #[prost(message, optional, tag = "1")]
550 pub context: ::core::option::Option<Context>,
551 #[prost(bytes = "vec", tag = "2")]
552 pub key: ::prost::alloc::vec::Vec<u8>,
553 #[prost(uint64, tag = "3")]
554 pub start_version: u64,
555 #[prost(uint64, tag = "4")]
559 pub current_ts: u64,
560}
561#[allow(clippy::derive_partial_eq_without_eq)]
562#[derive(Clone, PartialEq, ::prost::Message)]
563pub struct CleanupResponse {
564 #[prost(message, optional, tag = "1")]
565 pub region_error: ::core::option::Option<super::errorpb::Error>,
566 #[prost(message, optional, tag = "2")]
567 pub error: ::core::option::Option<KeyError>,
568 #[prost(uint64, tag = "3")]
570 pub commit_version: u64,
571}
572#[allow(clippy::derive_partial_eq_without_eq)]
574#[derive(Clone, PartialEq, ::prost::Message)]
575pub struct BatchGetRequest {
576 #[prost(message, optional, tag = "1")]
577 pub context: ::core::option::Option<Context>,
578 #[prost(bytes = "vec", repeated, tag = "2")]
579 pub keys: ::prost::alloc::vec::Vec<::prost::alloc::vec::Vec<u8>>,
580 #[prost(uint64, tag = "3")]
581 pub version: u64,
582}
583#[allow(clippy::derive_partial_eq_without_eq)]
584#[derive(Clone, PartialEq, ::prost::Message)]
585pub struct BatchGetResponse {
586 #[prost(message, optional, tag = "1")]
587 pub region_error: ::core::option::Option<super::errorpb::Error>,
588 #[prost(message, repeated, tag = "2")]
589 pub pairs: ::prost::alloc::vec::Vec<KvPair>,
590 #[prost(message, optional, tag = "4")]
592 pub exec_details_v2: ::core::option::Option<ExecDetailsV2>,
593 #[prost(message, optional, tag = "5")]
597 pub error: ::core::option::Option<KeyError>,
598}
599#[allow(clippy::derive_partial_eq_without_eq)]
602#[derive(Clone, PartialEq, ::prost::Message)]
603pub struct BatchRollbackRequest {
604 #[prost(message, optional, tag = "1")]
605 pub context: ::core::option::Option<Context>,
606 #[prost(uint64, tag = "2")]
608 pub start_version: u64,
609 #[prost(bytes = "vec", repeated, tag = "3")]
611 pub keys: ::prost::alloc::vec::Vec<::prost::alloc::vec::Vec<u8>>,
612 #[prost(bool, tag = "100")]
614 pub is_txn_file: bool,
615}
616#[allow(clippy::derive_partial_eq_without_eq)]
617#[derive(Clone, PartialEq, ::prost::Message)]
618pub struct BatchRollbackResponse {
619 #[prost(message, optional, tag = "1")]
620 pub region_error: ::core::option::Option<super::errorpb::Error>,
621 #[prost(message, optional, tag = "2")]
622 pub error: ::core::option::Option<KeyError>,
623 #[prost(message, optional, tag = "3")]
625 pub exec_details_v2: ::core::option::Option<ExecDetailsV2>,
626}
627#[allow(clippy::derive_partial_eq_without_eq)]
630#[derive(Clone, PartialEq, ::prost::Message)]
631pub struct ScanLockRequest {
632 #[prost(message, optional, tag = "1")]
633 pub context: ::core::option::Option<Context>,
634 #[prost(uint64, tag = "2")]
636 pub max_version: u64,
637 #[prost(bytes = "vec", tag = "3")]
639 pub start_key: ::prost::alloc::vec::Vec<u8>,
640 #[prost(uint32, tag = "4")]
642 pub limit: u32,
643 #[prost(bytes = "vec", tag = "5")]
645 pub end_key: ::prost::alloc::vec::Vec<u8>,
646}
647#[allow(clippy::derive_partial_eq_without_eq)]
648#[derive(Clone, PartialEq, ::prost::Message)]
649pub struct ScanLockResponse {
650 #[prost(message, optional, tag = "1")]
651 pub region_error: ::core::option::Option<super::errorpb::Error>,
652 #[prost(message, optional, tag = "2")]
653 pub error: ::core::option::Option<KeyError>,
654 #[prost(message, repeated, tag = "3")]
656 pub locks: ::prost::alloc::vec::Vec<LockInfo>,
657 #[prost(message, optional, tag = "4")]
659 pub exec_details_v2: ::core::option::Option<ExecDetailsV2>,
660}
661#[allow(clippy::derive_partial_eq_without_eq)]
664#[derive(Clone, PartialEq, ::prost::Message)]
665pub struct ResolveLockRequest {
666 #[prost(message, optional, tag = "1")]
667 pub context: ::core::option::Option<Context>,
668 #[prost(uint64, tag = "2")]
669 pub start_version: u64,
670 #[prost(uint64, tag = "3")]
673 pub commit_version: u64,
674 #[prost(message, repeated, tag = "4")]
675 pub txn_infos: ::prost::alloc::vec::Vec<TxnInfo>,
676 #[prost(bytes = "vec", repeated, tag = "5")]
678 pub keys: ::prost::alloc::vec::Vec<::prost::alloc::vec::Vec<u8>>,
679 #[prost(bool, tag = "100")]
681 pub is_txn_file: bool,
682}
683#[allow(clippy::derive_partial_eq_without_eq)]
684#[derive(Clone, PartialEq, ::prost::Message)]
685pub struct ResolveLockResponse {
686 #[prost(message, optional, tag = "1")]
687 pub region_error: ::core::option::Option<super::errorpb::Error>,
688 #[prost(message, optional, tag = "2")]
689 pub error: ::core::option::Option<KeyError>,
690 #[prost(message, optional, tag = "3")]
692 pub exec_details_v2: ::core::option::Option<ExecDetailsV2>,
693}
694#[allow(clippy::derive_partial_eq_without_eq)]
696#[derive(Clone, PartialEq, ::prost::Message)]
697pub struct GcRequest {
698 #[prost(message, optional, tag = "1")]
699 pub context: ::core::option::Option<Context>,
700 #[prost(uint64, tag = "2")]
701 pub safe_point: u64,
702}
703#[allow(clippy::derive_partial_eq_without_eq)]
704#[derive(Clone, PartialEq, ::prost::Message)]
705pub struct GcResponse {
706 #[prost(message, optional, tag = "1")]
707 pub region_error: ::core::option::Option<super::errorpb::Error>,
708 #[prost(message, optional, tag = "2")]
709 pub error: ::core::option::Option<KeyError>,
710}
711#[allow(clippy::derive_partial_eq_without_eq)]
713#[derive(Clone, PartialEq, ::prost::Message)]
714pub struct DeleteRangeRequest {
715 #[prost(message, optional, tag = "1")]
716 pub context: ::core::option::Option<Context>,
717 #[prost(bytes = "vec", tag = "2")]
718 pub start_key: ::prost::alloc::vec::Vec<u8>,
719 #[prost(bytes = "vec", tag = "3")]
720 pub end_key: ::prost::alloc::vec::Vec<u8>,
721 #[prost(bool, tag = "4")]
725 pub notify_only: bool,
726}
727#[allow(clippy::derive_partial_eq_without_eq)]
728#[derive(Clone, PartialEq, ::prost::Message)]
729pub struct DeleteRangeResponse {
730 #[prost(message, optional, tag = "1")]
731 pub region_error: ::core::option::Option<super::errorpb::Error>,
732 #[prost(string, tag = "2")]
733 pub error: ::prost::alloc::string::String,
734}
735#[allow(clippy::derive_partial_eq_without_eq)]
739#[derive(Clone, PartialEq, ::prost::Message)]
740pub struct PrepareFlashbackToVersionRequest {
741 #[prost(message, optional, tag = "1")]
742 pub context: ::core::option::Option<Context>,
743 #[prost(bytes = "vec", tag = "2")]
744 pub start_key: ::prost::alloc::vec::Vec<u8>,
745 #[prost(bytes = "vec", tag = "3")]
746 pub end_key: ::prost::alloc::vec::Vec<u8>,
747 #[prost(uint64, tag = "4")]
750 pub start_ts: u64,
751 #[prost(uint64, tag = "5")]
753 pub version: u64,
754}
755#[allow(clippy::derive_partial_eq_without_eq)]
756#[derive(Clone, PartialEq, ::prost::Message)]
757pub struct PrepareFlashbackToVersionResponse {
758 #[prost(message, optional, tag = "1")]
759 pub region_error: ::core::option::Option<super::errorpb::Error>,
760 #[prost(string, tag = "2")]
761 pub error: ::prost::alloc::string::String,
762}
763#[allow(clippy::derive_partial_eq_without_eq)]
767#[derive(Clone, PartialEq, ::prost::Message)]
768pub struct FlashbackToVersionRequest {
769 #[prost(message, optional, tag = "1")]
770 pub context: ::core::option::Option<Context>,
771 #[prost(uint64, tag = "2")]
773 pub version: u64,
774 #[prost(bytes = "vec", tag = "3")]
775 pub start_key: ::prost::alloc::vec::Vec<u8>,
776 #[prost(bytes = "vec", tag = "4")]
777 pub end_key: ::prost::alloc::vec::Vec<u8>,
778 #[prost(uint64, tag = "5")]
781 pub start_ts: u64,
782 #[prost(uint64, tag = "6")]
783 pub commit_ts: u64,
784}
785#[allow(clippy::derive_partial_eq_without_eq)]
786#[derive(Clone, PartialEq, ::prost::Message)]
787pub struct FlashbackToVersionResponse {
788 #[prost(message, optional, tag = "1")]
789 pub region_error: ::core::option::Option<super::errorpb::Error>,
790 #[prost(string, tag = "2")]
791 pub error: ::prost::alloc::string::String,
792}
793#[allow(clippy::derive_partial_eq_without_eq)]
794#[derive(Clone, PartialEq, ::prost::Message)]
795pub struct RawGetRequest {
796 #[prost(message, optional, tag = "1")]
797 pub context: ::core::option::Option<Context>,
798 #[prost(bytes = "vec", tag = "2")]
799 pub key: ::prost::alloc::vec::Vec<u8>,
800 #[prost(string, tag = "3")]
801 pub cf: ::prost::alloc::string::String,
802}
803#[allow(clippy::derive_partial_eq_without_eq)]
804#[derive(Clone, PartialEq, ::prost::Message)]
805pub struct RawGetResponse {
806 #[prost(message, optional, tag = "1")]
807 pub region_error: ::core::option::Option<super::errorpb::Error>,
808 #[prost(string, tag = "2")]
809 pub error: ::prost::alloc::string::String,
810 #[prost(bytes = "vec", tag = "3")]
811 pub value: ::prost::alloc::vec::Vec<u8>,
812 #[prost(bool, tag = "4")]
813 pub not_found: bool,
814}
815#[allow(clippy::derive_partial_eq_without_eq)]
816#[derive(Clone, PartialEq, ::prost::Message)]
817pub struct RawBatchGetRequest {
818 #[prost(message, optional, tag = "1")]
819 pub context: ::core::option::Option<Context>,
820 #[prost(bytes = "vec", repeated, tag = "2")]
821 pub keys: ::prost::alloc::vec::Vec<::prost::alloc::vec::Vec<u8>>,
822 #[prost(string, tag = "3")]
823 pub cf: ::prost::alloc::string::String,
824}
825#[allow(clippy::derive_partial_eq_without_eq)]
826#[derive(Clone, PartialEq, ::prost::Message)]
827pub struct RawBatchGetResponse {
828 #[prost(message, optional, tag = "1")]
829 pub region_error: ::core::option::Option<super::errorpb::Error>,
830 #[prost(message, repeated, tag = "2")]
831 pub pairs: ::prost::alloc::vec::Vec<KvPair>,
832}
833#[allow(clippy::derive_partial_eq_without_eq)]
834#[derive(Clone, PartialEq, ::prost::Message)]
835pub struct RawPutRequest {
836 #[prost(message, optional, tag = "1")]
837 pub context: ::core::option::Option<Context>,
838 #[prost(bytes = "vec", tag = "2")]
839 pub key: ::prost::alloc::vec::Vec<u8>,
840 #[prost(bytes = "vec", tag = "3")]
841 pub value: ::prost::alloc::vec::Vec<u8>,
842 #[prost(string, tag = "4")]
843 pub cf: ::prost::alloc::string::String,
844 #[prost(uint64, tag = "5")]
845 pub ttl: u64,
846 #[prost(bool, tag = "6")]
847 pub for_cas: bool,
848}
849#[allow(clippy::derive_partial_eq_without_eq)]
850#[derive(Clone, PartialEq, ::prost::Message)]
851pub struct RawPutResponse {
852 #[prost(message, optional, tag = "1")]
853 pub region_error: ::core::option::Option<super::errorpb::Error>,
854 #[prost(string, tag = "2")]
855 pub error: ::prost::alloc::string::String,
856}
857#[allow(clippy::derive_partial_eq_without_eq)]
858#[derive(Clone, PartialEq, ::prost::Message)]
859pub struct RawBatchPutRequest {
860 #[prost(message, optional, tag = "1")]
861 pub context: ::core::option::Option<Context>,
862 #[prost(message, repeated, tag = "2")]
863 pub pairs: ::prost::alloc::vec::Vec<KvPair>,
864 #[prost(string, tag = "3")]
865 pub cf: ::prost::alloc::string::String,
866 #[deprecated]
867 #[prost(uint64, tag = "4")]
868 pub ttl: u64,
869 #[prost(bool, tag = "5")]
870 pub for_cas: bool,
871 #[prost(uint64, repeated, tag = "6")]
875 pub ttls: ::prost::alloc::vec::Vec<u64>,
876}
877#[allow(clippy::derive_partial_eq_without_eq)]
878#[derive(Clone, PartialEq, ::prost::Message)]
879pub struct RawBatchPutResponse {
880 #[prost(message, optional, tag = "1")]
881 pub region_error: ::core::option::Option<super::errorpb::Error>,
882 #[prost(string, tag = "2")]
883 pub error: ::prost::alloc::string::String,
884}
885#[allow(clippy::derive_partial_eq_without_eq)]
886#[derive(Clone, PartialEq, ::prost::Message)]
887pub struct RawDeleteRequest {
888 #[prost(message, optional, tag = "1")]
889 pub context: ::core::option::Option<Context>,
890 #[prost(bytes = "vec", tag = "2")]
891 pub key: ::prost::alloc::vec::Vec<u8>,
892 #[prost(string, tag = "3")]
893 pub cf: ::prost::alloc::string::String,
894 #[prost(bool, tag = "4")]
895 pub for_cas: bool,
896}
897#[allow(clippy::derive_partial_eq_without_eq)]
898#[derive(Clone, PartialEq, ::prost::Message)]
899pub struct RawDeleteResponse {
900 #[prost(message, optional, tag = "1")]
901 pub region_error: ::core::option::Option<super::errorpb::Error>,
902 #[prost(string, tag = "2")]
903 pub error: ::prost::alloc::string::String,
904}
905#[allow(clippy::derive_partial_eq_without_eq)]
906#[derive(Clone, PartialEq, ::prost::Message)]
907pub struct RawBatchDeleteRequest {
908 #[prost(message, optional, tag = "1")]
909 pub context: ::core::option::Option<Context>,
910 #[prost(bytes = "vec", repeated, tag = "2")]
911 pub keys: ::prost::alloc::vec::Vec<::prost::alloc::vec::Vec<u8>>,
912 #[prost(string, tag = "3")]
913 pub cf: ::prost::alloc::string::String,
914 #[prost(bool, tag = "4")]
915 pub for_cas: bool,
916}
917#[allow(clippy::derive_partial_eq_without_eq)]
918#[derive(Clone, PartialEq, ::prost::Message)]
919pub struct RawBatchDeleteResponse {
920 #[prost(message, optional, tag = "1")]
921 pub region_error: ::core::option::Option<super::errorpb::Error>,
922 #[prost(string, tag = "2")]
923 pub error: ::prost::alloc::string::String,
924}
925#[allow(clippy::derive_partial_eq_without_eq)]
926#[derive(Clone, PartialEq, ::prost::Message)]
927pub struct RawScanRequest {
928 #[prost(message, optional, tag = "1")]
929 pub context: ::core::option::Option<Context>,
930 #[prost(bytes = "vec", tag = "2")]
931 pub start_key: ::prost::alloc::vec::Vec<u8>,
932 #[prost(uint32, tag = "3")]
933 pub limit: u32,
934 #[prost(bool, tag = "4")]
935 pub key_only: bool,
936 #[prost(string, tag = "5")]
937 pub cf: ::prost::alloc::string::String,
938 #[prost(bool, tag = "6")]
939 pub reverse: bool,
940 #[prost(bytes = "vec", tag = "7")]
943 pub end_key: ::prost::alloc::vec::Vec<u8>,
944}
945#[allow(clippy::derive_partial_eq_without_eq)]
946#[derive(Clone, PartialEq, ::prost::Message)]
947pub struct RawScanResponse {
948 #[prost(message, optional, tag = "1")]
949 pub region_error: ::core::option::Option<super::errorpb::Error>,
950 #[prost(message, repeated, tag = "2")]
951 pub kvs: ::prost::alloc::vec::Vec<KvPair>,
952}
953#[allow(clippy::derive_partial_eq_without_eq)]
954#[derive(Clone, PartialEq, ::prost::Message)]
955pub struct RawDeleteRangeRequest {
956 #[prost(message, optional, tag = "1")]
957 pub context: ::core::option::Option<Context>,
958 #[prost(bytes = "vec", tag = "2")]
959 pub start_key: ::prost::alloc::vec::Vec<u8>,
960 #[prost(bytes = "vec", tag = "3")]
961 pub end_key: ::prost::alloc::vec::Vec<u8>,
962 #[prost(string, tag = "4")]
963 pub cf: ::prost::alloc::string::String,
964}
965#[allow(clippy::derive_partial_eq_without_eq)]
966#[derive(Clone, PartialEq, ::prost::Message)]
967pub struct RawDeleteRangeResponse {
968 #[prost(message, optional, tag = "1")]
969 pub region_error: ::core::option::Option<super::errorpb::Error>,
970 #[prost(string, tag = "2")]
971 pub error: ::prost::alloc::string::String,
972}
973#[allow(clippy::derive_partial_eq_without_eq)]
974#[derive(Clone, PartialEq, ::prost::Message)]
975pub struct RawBatchScanRequest {
976 #[prost(message, optional, tag = "1")]
977 pub context: ::core::option::Option<Context>,
978 #[prost(message, repeated, tag = "2")]
980 pub ranges: ::prost::alloc::vec::Vec<KeyRange>,
981 #[prost(uint32, tag = "3")]
983 pub each_limit: u32,
984 #[prost(bool, tag = "4")]
985 pub key_only: bool,
986 #[prost(string, tag = "5")]
987 pub cf: ::prost::alloc::string::String,
988 #[prost(bool, tag = "6")]
989 pub reverse: bool,
990}
991#[allow(clippy::derive_partial_eq_without_eq)]
992#[derive(Clone, PartialEq, ::prost::Message)]
993pub struct RawBatchScanResponse {
994 #[prost(message, optional, tag = "1")]
995 pub region_error: ::core::option::Option<super::errorpb::Error>,
996 #[prost(message, repeated, tag = "2")]
997 pub kvs: ::prost::alloc::vec::Vec<KvPair>,
998}
999#[allow(clippy::derive_partial_eq_without_eq)]
1000#[derive(Clone, PartialEq, ::prost::Message)]
1001pub struct UnsafeDestroyRangeRequest {
1002 #[prost(message, optional, tag = "1")]
1003 pub context: ::core::option::Option<Context>,
1004 #[prost(bytes = "vec", tag = "2")]
1005 pub start_key: ::prost::alloc::vec::Vec<u8>,
1006 #[prost(bytes = "vec", tag = "3")]
1007 pub end_key: ::prost::alloc::vec::Vec<u8>,
1008}
1009#[allow(clippy::derive_partial_eq_without_eq)]
1010#[derive(Clone, PartialEq, ::prost::Message)]
1011pub struct UnsafeDestroyRangeResponse {
1012 #[prost(message, optional, tag = "1")]
1013 pub region_error: ::core::option::Option<super::errorpb::Error>,
1014 #[prost(string, tag = "2")]
1015 pub error: ::prost::alloc::string::String,
1016}
1017#[allow(clippy::derive_partial_eq_without_eq)]
1018#[derive(Clone, PartialEq, ::prost::Message)]
1019pub struct RegisterLockObserverRequest {
1020 #[prost(message, optional, tag = "1")]
1021 pub context: ::core::option::Option<Context>,
1022 #[prost(uint64, tag = "2")]
1023 pub max_ts: u64,
1024}
1025#[allow(clippy::derive_partial_eq_without_eq)]
1026#[derive(Clone, PartialEq, ::prost::Message)]
1027pub struct RegisterLockObserverResponse {
1028 #[prost(string, tag = "1")]
1029 pub error: ::prost::alloc::string::String,
1030}
1031#[allow(clippy::derive_partial_eq_without_eq)]
1032#[derive(Clone, PartialEq, ::prost::Message)]
1033pub struct CheckLockObserverRequest {
1034 #[prost(message, optional, tag = "1")]
1035 pub context: ::core::option::Option<Context>,
1036 #[prost(uint64, tag = "2")]
1037 pub max_ts: u64,
1038}
1039#[allow(clippy::derive_partial_eq_without_eq)]
1040#[derive(Clone, PartialEq, ::prost::Message)]
1041pub struct CheckLockObserverResponse {
1042 #[prost(string, tag = "1")]
1043 pub error: ::prost::alloc::string::String,
1044 #[prost(bool, tag = "2")]
1045 pub is_clean: bool,
1046 #[prost(message, repeated, tag = "3")]
1047 pub locks: ::prost::alloc::vec::Vec<LockInfo>,
1048}
1049#[allow(clippy::derive_partial_eq_without_eq)]
1050#[derive(Clone, PartialEq, ::prost::Message)]
1051pub struct RemoveLockObserverRequest {
1052 #[prost(message, optional, tag = "1")]
1053 pub context: ::core::option::Option<Context>,
1054 #[prost(uint64, tag = "2")]
1055 pub max_ts: u64,
1056}
1057#[allow(clippy::derive_partial_eq_without_eq)]
1058#[derive(Clone, PartialEq, ::prost::Message)]
1059pub struct RemoveLockObserverResponse {
1060 #[prost(string, tag = "1")]
1061 pub error: ::prost::alloc::string::String,
1062}
1063#[allow(clippy::derive_partial_eq_without_eq)]
1064#[derive(Clone, PartialEq, ::prost::Message)]
1065pub struct PhysicalScanLockRequest {
1066 #[prost(message, optional, tag = "1")]
1067 pub context: ::core::option::Option<Context>,
1068 #[prost(uint64, tag = "2")]
1069 pub max_ts: u64,
1070 #[prost(bytes = "vec", tag = "3")]
1071 pub start_key: ::prost::alloc::vec::Vec<u8>,
1072 #[prost(uint32, tag = "4")]
1073 pub limit: u32,
1074}
1075#[allow(clippy::derive_partial_eq_without_eq)]
1076#[derive(Clone, PartialEq, ::prost::Message)]
1077pub struct PhysicalScanLockResponse {
1078 #[prost(string, tag = "1")]
1079 pub error: ::prost::alloc::string::String,
1080 #[prost(message, repeated, tag = "2")]
1081 pub locks: ::prost::alloc::vec::Vec<LockInfo>,
1082}
1083#[allow(clippy::derive_partial_eq_without_eq)]
1085#[derive(Clone, PartialEq, ::prost::Message)]
1086pub struct SplitRegionRequest {
1087 #[prost(message, optional, tag = "1")]
1088 pub context: ::core::option::Option<Context>,
1089 #[deprecated]
1090 #[prost(bytes = "vec", tag = "2")]
1091 pub split_key: ::prost::alloc::vec::Vec<u8>,
1092 #[prost(bytes = "vec", repeated, tag = "3")]
1094 pub split_keys: ::prost::alloc::vec::Vec<::prost::alloc::vec::Vec<u8>>,
1095 #[prost(bool, tag = "4")]
1097 pub is_raw_kv: bool,
1098}
1099#[allow(clippy::derive_partial_eq_without_eq)]
1100#[derive(Clone, PartialEq, ::prost::Message)]
1101pub struct SplitRegionResponse {
1102 #[prost(message, optional, tag = "1")]
1103 pub region_error: ::core::option::Option<super::errorpb::Error>,
1104 #[deprecated]
1106 #[prost(message, optional, tag = "2")]
1107 pub left: ::core::option::Option<super::metapb::Region>,
1108 #[deprecated]
1110 #[prost(message, optional, tag = "3")]
1111 pub right: ::core::option::Option<super::metapb::Region>,
1112 #[prost(message, repeated, tag = "4")]
1114 pub regions: ::prost::alloc::vec::Vec<super::metapb::Region>,
1115}
1116#[allow(clippy::derive_partial_eq_without_eq)]
1118#[derive(Clone, PartialEq, ::prost::Message)]
1119pub struct ReadIndexRequest {
1120 #[prost(message, optional, tag = "1")]
1121 pub context: ::core::option::Option<Context>,
1122 #[prost(uint64, tag = "2")]
1125 pub start_ts: u64,
1126 #[prost(message, repeated, tag = "3")]
1127 pub ranges: ::prost::alloc::vec::Vec<KeyRange>,
1128}
1129#[allow(clippy::derive_partial_eq_without_eq)]
1130#[derive(Clone, PartialEq, ::prost::Message)]
1131pub struct ReadIndexResponse {
1132 #[prost(message, optional, tag = "1")]
1133 pub region_error: ::core::option::Option<super::errorpb::Error>,
1134 #[prost(uint64, tag = "2")]
1135 pub read_index: u64,
1136 #[prost(message, optional, tag = "3")]
1139 pub locked: ::core::option::Option<LockInfo>,
1140}
1141#[allow(clippy::derive_partial_eq_without_eq)]
1142#[derive(Clone, PartialEq, ::prost::Message)]
1143pub struct MvccGetByKeyRequest {
1144 #[prost(message, optional, tag = "1")]
1145 pub context: ::core::option::Option<Context>,
1146 #[prost(bytes = "vec", tag = "2")]
1147 pub key: ::prost::alloc::vec::Vec<u8>,
1148}
1149#[allow(clippy::derive_partial_eq_without_eq)]
1150#[derive(Clone, PartialEq, ::prost::Message)]
1151pub struct MvccGetByKeyResponse {
1152 #[prost(message, optional, tag = "1")]
1153 pub region_error: ::core::option::Option<super::errorpb::Error>,
1154 #[prost(string, tag = "2")]
1155 pub error: ::prost::alloc::string::String,
1156 #[prost(message, optional, tag = "3")]
1157 pub info: ::core::option::Option<MvccInfo>,
1158}
1159#[allow(clippy::derive_partial_eq_without_eq)]
1160#[derive(Clone, PartialEq, ::prost::Message)]
1161pub struct MvccGetByStartTsRequest {
1162 #[prost(message, optional, tag = "1")]
1163 pub context: ::core::option::Option<Context>,
1164 #[prost(uint64, tag = "2")]
1165 pub start_ts: u64,
1166}
1167#[allow(clippy::derive_partial_eq_without_eq)]
1168#[derive(Clone, PartialEq, ::prost::Message)]
1169pub struct MvccGetByStartTsResponse {
1170 #[prost(message, optional, tag = "1")]
1171 pub region_error: ::core::option::Option<super::errorpb::Error>,
1172 #[prost(string, tag = "2")]
1173 pub error: ::prost::alloc::string::String,
1174 #[prost(bytes = "vec", tag = "3")]
1175 pub key: ::prost::alloc::vec::Vec<u8>,
1176 #[prost(message, optional, tag = "4")]
1177 pub info: ::core::option::Option<MvccInfo>,
1178}
1179#[allow(clippy::derive_partial_eq_without_eq)]
1181#[derive(Clone, PartialEq, ::prost::Message)]
1182pub struct Context {
1183 #[prost(uint64, tag = "1")]
1184 pub region_id: u64,
1185 #[prost(message, optional, tag = "2")]
1186 pub region_epoch: ::core::option::Option<super::metapb::RegionEpoch>,
1187 #[prost(message, optional, tag = "3")]
1188 pub peer: ::core::option::Option<super::metapb::Peer>,
1189 #[prost(uint64, tag = "5")]
1190 pub term: u64,
1191 #[prost(enumeration = "CommandPri", tag = "6")]
1192 pub priority: i32,
1193 #[prost(enumeration = "IsolationLevel", tag = "7")]
1194 pub isolation_level: i32,
1195 #[prost(bool, tag = "8")]
1196 pub not_fill_cache: bool,
1197 #[prost(bool, tag = "9")]
1198 pub sync_log: bool,
1199 #[prost(bool, tag = "10")]
1201 pub record_time_stat: bool,
1202 #[prost(bool, tag = "11")]
1204 pub record_scan_stat: bool,
1205 #[prost(bool, tag = "12")]
1206 pub replica_read: bool,
1207 #[prost(uint64, repeated, tag = "13")]
1210 pub resolved_locks: ::prost::alloc::vec::Vec<u64>,
1211 #[prost(uint64, tag = "14")]
1212 pub max_execution_duration_ms: u64,
1213 #[prost(uint64, tag = "15")]
1216 pub applied_index: u64,
1217 #[prost(uint64, tag = "16")]
1220 pub task_id: u64,
1221 #[prost(bool, tag = "17")]
1224 pub stale_read: bool,
1225 #[prost(bytes = "vec", tag = "18")]
1227 pub resource_group_tag: ::prost::alloc::vec::Vec<u8>,
1228 #[prost(enumeration = "DiskFullOpt", tag = "19")]
1230 pub disk_full_opt: i32,
1231 #[prost(bool, tag = "20")]
1233 pub is_retry_request: bool,
1234 #[prost(enumeration = "ApiVersion", tag = "21")]
1236 pub api_version: i32,
1237 #[prost(uint64, repeated, tag = "22")]
1240 pub committed_locks: ::prost::alloc::vec::Vec<u64>,
1241 #[prost(message, optional, tag = "23")]
1243 pub trace_context: ::core::option::Option<super::tracepb::TraceContext>,
1244 #[prost(string, tag = "24")]
1247 pub request_source: ::prost::alloc::string::String,
1248 #[prost(uint64, tag = "25")]
1250 pub txn_source: u64,
1251 #[prost(uint32, tag = "27")]
1254 pub busy_threshold_ms: u32,
1255 #[prost(message, optional, tag = "28")]
1257 pub resource_control_context: ::core::option::Option<ResourceControlContext>,
1258 #[prost(uint32, tag = "32")]
1261 pub keyspace_id: u32,
1262 #[prost(uint64, tag = "33")]
1265 pub buckets_version: u64,
1266 #[prost(message, optional, tag = "34")]
1269 pub source_stmt: ::core::option::Option<SourceStmt>,
1270}
1271#[allow(clippy::derive_partial_eq_without_eq)]
1272#[derive(Clone, PartialEq, ::prost::Message)]
1273pub struct ResourceControlContext {
1274 #[prost(string, tag = "1")]
1276 pub resource_group_name: ::prost::alloc::string::String,
1277 #[prost(message, optional, tag = "2")]
1280 pub penalty: ::core::option::Option<super::resource_manager::Consumption>,
1281 #[prost(uint64, tag = "3")]
1284 pub override_priority: u64,
1285}
1286#[allow(clippy::derive_partial_eq_without_eq)]
1287#[derive(Clone, PartialEq, ::prost::Message)]
1288pub struct SourceStmt {
1289 #[prost(uint64, tag = "1")]
1290 pub start_ts: u64,
1291 #[prost(uint64, tag = "2")]
1292 pub connection_id: u64,
1293 #[prost(uint64, tag = "3")]
1294 pub stmt_id: u64,
1295 #[prost(string, tag = "4")]
1297 pub session_alias: ::prost::alloc::string::String,
1298}
1299#[allow(clippy::derive_partial_eq_without_eq)]
1300#[derive(Clone, PartialEq, ::prost::Message)]
1301pub struct LockInfo {
1302 #[prost(bytes = "vec", tag = "1")]
1303 pub primary_lock: ::prost::alloc::vec::Vec<u8>,
1304 #[prost(uint64, tag = "2")]
1305 pub lock_version: u64,
1306 #[prost(bytes = "vec", tag = "3")]
1307 pub key: ::prost::alloc::vec::Vec<u8>,
1308 #[prost(uint64, tag = "4")]
1309 pub lock_ttl: u64,
1310 #[prost(uint64, tag = "5")]
1312 pub txn_size: u64,
1313 #[prost(enumeration = "Op", tag = "6")]
1314 pub lock_type: i32,
1315 #[prost(uint64, tag = "7")]
1316 pub lock_for_update_ts: u64,
1317 #[prost(bool, tag = "8")]
1319 pub use_async_commit: bool,
1320 #[prost(uint64, tag = "9")]
1321 pub min_commit_ts: u64,
1322 #[prost(bytes = "vec", repeated, tag = "10")]
1323 pub secondaries: ::prost::alloc::vec::Vec<::prost::alloc::vec::Vec<u8>>,
1324 #[prost(uint64, tag = "11")]
1328 pub duration_to_last_update_ms: u64,
1329 #[prost(bool, tag = "100")]
1331 pub is_txn_file: bool,
1332}
1333#[allow(clippy::derive_partial_eq_without_eq)]
1334#[derive(Clone, PartialEq, ::prost::Message)]
1335pub struct KeyError {
1336 #[prost(message, optional, tag = "1")]
1338 pub locked: ::core::option::Option<LockInfo>,
1339 #[prost(string, tag = "2")]
1341 pub retryable: ::prost::alloc::string::String,
1342 #[prost(string, tag = "3")]
1344 pub abort: ::prost::alloc::string::String,
1345 #[prost(message, optional, tag = "4")]
1347 pub conflict: ::core::option::Option<WriteConflict>,
1348 #[prost(message, optional, tag = "5")]
1350 pub already_exist: ::core::option::Option<AlreadyExist>,
1351 #[prost(message, optional, tag = "6")]
1353 pub deadlock: ::core::option::Option<Deadlock>,
1354 #[prost(message, optional, tag = "7")]
1356 pub commit_ts_expired: ::core::option::Option<CommitTsExpired>,
1357 #[prost(message, optional, tag = "8")]
1359 pub txn_not_found: ::core::option::Option<TxnNotFound>,
1360 #[prost(message, optional, tag = "9")]
1362 pub commit_ts_too_large: ::core::option::Option<CommitTsTooLarge>,
1363 #[prost(message, optional, tag = "10")]
1365 pub assertion_failed: ::core::option::Option<AssertionFailed>,
1366 #[prost(message, optional, tag = "11")]
1368 pub primary_mismatch: ::core::option::Option<PrimaryMismatch>,
1369}
1370#[allow(clippy::derive_partial_eq_without_eq)]
1371#[derive(Clone, PartialEq, ::prost::Message)]
1372pub struct WriteConflict {
1373 #[prost(uint64, tag = "1")]
1374 pub start_ts: u64,
1375 #[prost(uint64, tag = "2")]
1376 pub conflict_ts: u64,
1377 #[prost(bytes = "vec", tag = "3")]
1378 pub key: ::prost::alloc::vec::Vec<u8>,
1379 #[prost(bytes = "vec", tag = "4")]
1380 pub primary: ::prost::alloc::vec::Vec<u8>,
1381 #[prost(uint64, tag = "5")]
1382 pub conflict_commit_ts: u64,
1383 #[prost(enumeration = "write_conflict::Reason", tag = "6")]
1384 pub reason: i32,
1385}
1386pub mod write_conflict {
1388 #[derive(
1389 Clone,
1390 Copy,
1391 Debug,
1392 PartialEq,
1393 Eq,
1394 Hash,
1395 PartialOrd,
1396 Ord,
1397 ::prost::Enumeration
1398 )]
1399 #[repr(i32)]
1400 pub enum Reason {
1401 Unknown = 0,
1402 Optimistic = 1,
1404 PessimisticRetry = 2,
1406 SelfRolledBack = 3,
1408 RcCheckTs = 4,
1410 LazyUniquenessCheck = 5,
1412 }
1413 impl Reason {
1414 pub fn as_str_name(&self) -> &'static str {
1419 match self {
1420 Reason::Unknown => "Unknown",
1421 Reason::Optimistic => "Optimistic",
1422 Reason::PessimisticRetry => "PessimisticRetry",
1423 Reason::SelfRolledBack => "SelfRolledBack",
1424 Reason::RcCheckTs => "RcCheckTs",
1425 Reason::LazyUniquenessCheck => "LazyUniquenessCheck",
1426 }
1427 }
1428 pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
1430 match value {
1431 "Unknown" => Some(Self::Unknown),
1432 "Optimistic" => Some(Self::Optimistic),
1433 "PessimisticRetry" => Some(Self::PessimisticRetry),
1434 "SelfRolledBack" => Some(Self::SelfRolledBack),
1435 "RcCheckTs" => Some(Self::RcCheckTs),
1436 "LazyUniquenessCheck" => Some(Self::LazyUniquenessCheck),
1437 _ => None,
1438 }
1439 }
1440 }
1441}
1442#[allow(clippy::derive_partial_eq_without_eq)]
1443#[derive(Clone, PartialEq, ::prost::Message)]
1444pub struct AlreadyExist {
1445 #[prost(bytes = "vec", tag = "1")]
1446 pub key: ::prost::alloc::vec::Vec<u8>,
1447}
1448#[allow(clippy::derive_partial_eq_without_eq)]
1449#[derive(Clone, PartialEq, ::prost::Message)]
1450pub struct Deadlock {
1451 #[prost(uint64, tag = "1")]
1452 pub lock_ts: u64,
1453 #[prost(bytes = "vec", tag = "2")]
1454 pub lock_key: ::prost::alloc::vec::Vec<u8>,
1455 #[prost(uint64, tag = "3")]
1456 pub deadlock_key_hash: u64,
1457 #[prost(message, repeated, tag = "4")]
1458 pub wait_chain: ::prost::alloc::vec::Vec<super::deadlock::WaitForEntry>,
1459}
1460#[allow(clippy::derive_partial_eq_without_eq)]
1461#[derive(Clone, PartialEq, ::prost::Message)]
1462pub struct CommitTsExpired {
1463 #[prost(uint64, tag = "1")]
1464 pub start_ts: u64,
1465 #[prost(uint64, tag = "2")]
1466 pub attempted_commit_ts: u64,
1467 #[prost(bytes = "vec", tag = "3")]
1468 pub key: ::prost::alloc::vec::Vec<u8>,
1469 #[prost(uint64, tag = "4")]
1470 pub min_commit_ts: u64,
1471}
1472#[allow(clippy::derive_partial_eq_without_eq)]
1473#[derive(Clone, PartialEq, ::prost::Message)]
1474pub struct TxnNotFound {
1475 #[prost(uint64, tag = "1")]
1476 pub start_ts: u64,
1477 #[prost(bytes = "vec", tag = "2")]
1478 pub primary_key: ::prost::alloc::vec::Vec<u8>,
1479}
1480#[allow(clippy::derive_partial_eq_without_eq)]
1481#[derive(Clone, PartialEq, ::prost::Message)]
1482pub struct CommitTsTooLarge {
1483 #[prost(uint64, tag = "1")]
1485 pub commit_ts: u64,
1486}
1487#[allow(clippy::derive_partial_eq_without_eq)]
1488#[derive(Clone, PartialEq, ::prost::Message)]
1489pub struct AssertionFailed {
1490 #[prost(uint64, tag = "1")]
1491 pub start_ts: u64,
1492 #[prost(bytes = "vec", tag = "2")]
1493 pub key: ::prost::alloc::vec::Vec<u8>,
1494 #[prost(enumeration = "Assertion", tag = "3")]
1495 pub assertion: i32,
1496 #[prost(uint64, tag = "4")]
1497 pub existing_start_ts: u64,
1498 #[prost(uint64, tag = "5")]
1499 pub existing_commit_ts: u64,
1500}
1501#[allow(clippy::derive_partial_eq_without_eq)]
1502#[derive(Clone, PartialEq, ::prost::Message)]
1503pub struct PrimaryMismatch {
1504 #[prost(message, optional, tag = "1")]
1505 pub lock_info: ::core::option::Option<LockInfo>,
1506}
1507#[allow(clippy::derive_partial_eq_without_eq)]
1508#[derive(Clone, PartialEq, ::prost::Message)]
1509pub struct TimeDetail {
1510 #[prost(uint64, tag = "1")]
1513 pub wait_wall_time_ms: u64,
1514 #[prost(uint64, tag = "2")]
1520 pub process_wall_time_ms: u64,
1521 #[prost(uint64, tag = "3")]
1523 pub kv_read_wall_time_ms: u64,
1524 #[prost(uint64, tag = "4")]
1526 pub total_rpc_wall_time_ns: u64,
1527}
1528#[allow(clippy::derive_partial_eq_without_eq)]
1529#[derive(Clone, PartialEq, ::prost::Message)]
1530pub struct TimeDetailV2 {
1531 #[prost(uint64, tag = "1")]
1534 pub wait_wall_time_ns: u64,
1535 #[prost(uint64, tag = "2")]
1541 pub process_wall_time_ns: u64,
1542 #[prost(uint64, tag = "3")]
1544 pub process_suspend_wall_time_ns: u64,
1545 #[prost(uint64, tag = "4")]
1547 pub kv_read_wall_time_ns: u64,
1548 #[prost(uint64, tag = "5")]
1550 pub total_rpc_wall_time_ns: u64,
1551}
1552#[allow(clippy::derive_partial_eq_without_eq)]
1553#[derive(Clone, PartialEq, ::prost::Message)]
1554pub struct ScanInfo {
1555 #[prost(int64, tag = "1")]
1556 pub total: i64,
1557 #[prost(int64, tag = "2")]
1558 pub processed: i64,
1559 #[prost(int64, tag = "3")]
1560 pub read_bytes: i64,
1561}
1562#[allow(clippy::derive_partial_eq_without_eq)]
1564#[derive(Clone, PartialEq, ::prost::Message)]
1565pub struct ScanDetail {
1566 #[prost(message, optional, tag = "1")]
1567 pub write: ::core::option::Option<ScanInfo>,
1568 #[prost(message, optional, tag = "2")]
1569 pub lock: ::core::option::Option<ScanInfo>,
1570 #[prost(message, optional, tag = "3")]
1571 pub data: ::core::option::Option<ScanInfo>,
1572}
1573#[allow(clippy::derive_partial_eq_without_eq)]
1574#[derive(Clone, PartialEq, ::prost::Message)]
1575pub struct ScanDetailV2 {
1576 #[prost(uint64, tag = "1")]
1581 pub processed_versions: u64,
1582 #[prost(uint64, tag = "8")]
1585 pub processed_versions_size: u64,
1586 #[prost(uint64, tag = "2")]
1592 pub total_versions: u64,
1593 #[prost(uint64, tag = "3")]
1596 pub rocksdb_delete_skipped_count: u64,
1597 #[prost(uint64, tag = "4")]
1600 pub rocksdb_key_skipped_count: u64,
1601 #[prost(uint64, tag = "5")]
1603 pub rocksdb_block_cache_hit_count: u64,
1604 #[prost(uint64, tag = "6")]
1606 pub rocksdb_block_read_count: u64,
1607 #[prost(uint64, tag = "7")]
1609 pub rocksdb_block_read_byte: u64,
1610 #[prost(uint64, tag = "9")]
1612 pub rocksdb_block_read_nanos: u64,
1613 #[prost(uint64, tag = "10")]
1615 pub get_snapshot_nanos: u64,
1616 #[prost(uint64, tag = "11")]
1618 pub read_index_propose_wait_nanos: u64,
1619 #[prost(uint64, tag = "12")]
1621 pub read_index_confirm_wait_nanos: u64,
1622 #[prost(uint64, tag = "13")]
1624 pub read_pool_schedule_wait_nanos: u64,
1625}
1626#[allow(clippy::derive_partial_eq_without_eq)]
1627#[derive(Clone, PartialEq, ::prost::Message)]
1628pub struct ExecDetails {
1629 #[prost(message, optional, tag = "1")]
1631 pub time_detail: ::core::option::Option<TimeDetail>,
1632 #[prost(message, optional, tag = "2")]
1634 pub scan_detail: ::core::option::Option<ScanDetail>,
1635}
1636#[allow(clippy::derive_partial_eq_without_eq)]
1637#[derive(Clone, PartialEq, ::prost::Message)]
1638pub struct ExecDetailsV2 {
1639 #[prost(message, optional, tag = "1")]
1642 pub time_detail: ::core::option::Option<TimeDetail>,
1643 #[prost(message, optional, tag = "2")]
1645 pub scan_detail_v2: ::core::option::Option<ScanDetailV2>,
1646 #[prost(message, optional, tag = "3")]
1648 pub write_detail: ::core::option::Option<WriteDetail>,
1649 #[prost(message, optional, tag = "4")]
1651 pub time_detail_v2: ::core::option::Option<TimeDetailV2>,
1652}
1653#[allow(clippy::derive_partial_eq_without_eq)]
1654#[derive(Clone, PartialEq, ::prost::Message)]
1655pub struct WriteDetail {
1656 #[prost(uint64, tag = "1")]
1658 pub store_batch_wait_nanos: u64,
1659 #[prost(uint64, tag = "2")]
1661 pub propose_send_wait_nanos: u64,
1662 #[prost(uint64, tag = "3")]
1664 pub persist_log_nanos: u64,
1665 #[prost(uint64, tag = "4")]
1667 pub raft_db_write_leader_wait_nanos: u64,
1668 #[prost(uint64, tag = "5")]
1670 pub raft_db_sync_log_nanos: u64,
1671 #[prost(uint64, tag = "6")]
1673 pub raft_db_write_memtable_nanos: u64,
1674 #[prost(uint64, tag = "7")]
1676 pub commit_log_nanos: u64,
1677 #[prost(uint64, tag = "8")]
1679 pub apply_batch_wait_nanos: u64,
1680 #[prost(uint64, tag = "9")]
1682 pub apply_log_nanos: u64,
1683 #[prost(uint64, tag = "10")]
1685 pub apply_mutex_lock_nanos: u64,
1686 #[prost(uint64, tag = "11")]
1688 pub apply_write_leader_wait_nanos: u64,
1689 #[prost(uint64, tag = "12")]
1691 pub apply_write_wal_nanos: u64,
1692 #[prost(uint64, tag = "13")]
1694 pub apply_write_memtable_nanos: u64,
1695 #[prost(uint64, tag = "14")]
1697 pub latch_wait_nanos: u64,
1698 #[prost(uint64, tag = "15")]
1700 pub process_nanos: u64,
1701 #[prost(uint64, tag = "16")]
1703 pub throttle_nanos: u64,
1704 #[prost(uint64, tag = "17")]
1706 pub pessimistic_lock_wait_nanos: u64,
1707}
1708#[allow(clippy::derive_partial_eq_without_eq)]
1709#[derive(Clone, PartialEq, ::prost::Message)]
1710pub struct KvPair {
1711 #[prost(message, optional, tag = "1")]
1712 pub error: ::core::option::Option<KeyError>,
1713 #[prost(bytes = "vec", tag = "2")]
1714 pub key: ::prost::alloc::vec::Vec<u8>,
1715 #[prost(bytes = "vec", tag = "3")]
1716 pub value: ::prost::alloc::vec::Vec<u8>,
1717}
1718#[allow(clippy::derive_partial_eq_without_eq)]
1719#[derive(Clone, PartialEq, ::prost::Message)]
1720pub struct Mutation {
1721 #[prost(enumeration = "Op", tag = "1")]
1722 pub op: i32,
1723 #[prost(bytes = "vec", tag = "2")]
1724 pub key: ::prost::alloc::vec::Vec<u8>,
1725 #[prost(bytes = "vec", tag = "3")]
1726 pub value: ::prost::alloc::vec::Vec<u8>,
1727 #[prost(enumeration = "Assertion", tag = "4")]
1728 pub assertion: i32,
1729}
1730#[allow(clippy::derive_partial_eq_without_eq)]
1731#[derive(Clone, PartialEq, ::prost::Message)]
1732pub struct MvccWrite {
1733 #[prost(enumeration = "Op", tag = "1")]
1734 pub r#type: i32,
1735 #[prost(uint64, tag = "2")]
1736 pub start_ts: u64,
1737 #[prost(uint64, tag = "3")]
1738 pub commit_ts: u64,
1739 #[prost(bytes = "vec", tag = "4")]
1740 pub short_value: ::prost::alloc::vec::Vec<u8>,
1741 #[prost(bool, tag = "5")]
1742 pub has_overlapped_rollback: bool,
1743 #[prost(bool, tag = "6")]
1744 pub has_gc_fence: bool,
1745 #[prost(uint64, tag = "7")]
1746 pub gc_fence: u64,
1747 #[prost(uint64, tag = "8")]
1748 pub last_change_ts: u64,
1749 #[prost(uint64, tag = "9")]
1750 pub versions_to_last_change: u64,
1751}
1752#[allow(clippy::derive_partial_eq_without_eq)]
1753#[derive(Clone, PartialEq, ::prost::Message)]
1754pub struct MvccValue {
1755 #[prost(uint64, tag = "1")]
1756 pub start_ts: u64,
1757 #[prost(bytes = "vec", tag = "2")]
1758 pub value: ::prost::alloc::vec::Vec<u8>,
1759}
1760#[allow(clippy::derive_partial_eq_without_eq)]
1761#[derive(Clone, PartialEq, ::prost::Message)]
1762pub struct MvccLock {
1763 #[prost(enumeration = "Op", tag = "1")]
1764 pub r#type: i32,
1765 #[prost(uint64, tag = "2")]
1766 pub start_ts: u64,
1767 #[prost(bytes = "vec", tag = "3")]
1768 pub primary: ::prost::alloc::vec::Vec<u8>,
1769 #[prost(bytes = "vec", tag = "4")]
1770 pub short_value: ::prost::alloc::vec::Vec<u8>,
1771 #[prost(uint64, tag = "5")]
1772 pub ttl: u64,
1773 #[prost(uint64, tag = "6")]
1774 pub for_update_ts: u64,
1775 #[prost(uint64, tag = "7")]
1776 pub txn_size: u64,
1777 #[prost(bool, tag = "8")]
1778 pub use_async_commit: bool,
1779 #[prost(bytes = "vec", repeated, tag = "9")]
1780 pub secondaries: ::prost::alloc::vec::Vec<::prost::alloc::vec::Vec<u8>>,
1781 #[prost(uint64, repeated, tag = "10")]
1782 pub rollback_ts: ::prost::alloc::vec::Vec<u64>,
1783 #[prost(uint64, tag = "11")]
1784 pub last_change_ts: u64,
1785 #[prost(uint64, tag = "12")]
1786 pub versions_to_last_change: u64,
1787}
1788#[allow(clippy::derive_partial_eq_without_eq)]
1789#[derive(Clone, PartialEq, ::prost::Message)]
1790pub struct MvccInfo {
1791 #[prost(message, optional, tag = "1")]
1792 pub lock: ::core::option::Option<MvccLock>,
1793 #[prost(message, repeated, tag = "2")]
1794 pub writes: ::prost::alloc::vec::Vec<MvccWrite>,
1795 #[prost(message, repeated, tag = "3")]
1796 pub values: ::prost::alloc::vec::Vec<MvccValue>,
1797}
1798#[allow(clippy::derive_partial_eq_without_eq)]
1799#[derive(Clone, PartialEq, ::prost::Message)]
1800pub struct TxnInfo {
1801 #[prost(uint64, tag = "1")]
1802 pub txn: u64,
1803 #[prost(uint64, tag = "2")]
1804 pub status: u64,
1805 #[prost(bool, tag = "100")]
1807 pub is_txn_file: bool,
1808}
1809#[allow(clippy::derive_partial_eq_without_eq)]
1810#[derive(Clone, PartialEq, ::prost::Message)]
1811pub struct KeyRange {
1812 #[prost(bytes = "vec", tag = "1")]
1813 pub start_key: ::prost::alloc::vec::Vec<u8>,
1814 #[prost(bytes = "vec", tag = "2")]
1815 pub end_key: ::prost::alloc::vec::Vec<u8>,
1816}
1817#[allow(clippy::derive_partial_eq_without_eq)]
1818#[derive(Clone, PartialEq, ::prost::Message)]
1819pub struct LeaderInfo {
1820 #[prost(uint64, tag = "1")]
1821 pub region_id: u64,
1822 #[prost(uint64, tag = "2")]
1823 pub peer_id: u64,
1824 #[prost(uint64, tag = "3")]
1825 pub term: u64,
1826 #[prost(message, optional, tag = "4")]
1827 pub region_epoch: ::core::option::Option<super::metapb::RegionEpoch>,
1828 #[prost(message, optional, tag = "5")]
1829 pub read_state: ::core::option::Option<ReadState>,
1830}
1831#[allow(clippy::derive_partial_eq_without_eq)]
1832#[derive(Clone, PartialEq, ::prost::Message)]
1833pub struct ReadState {
1834 #[prost(uint64, tag = "1")]
1835 pub applied_index: u64,
1836 #[prost(uint64, tag = "2")]
1837 pub safe_ts: u64,
1838}
1839#[allow(clippy::derive_partial_eq_without_eq)]
1840#[derive(Clone, PartialEq, ::prost::Message)]
1841pub struct CheckLeaderRequest {
1842 #[prost(message, repeated, tag = "1")]
1843 pub regions: ::prost::alloc::vec::Vec<LeaderInfo>,
1844 #[prost(uint64, tag = "2")]
1845 pub ts: u64,
1846}
1847#[allow(clippy::derive_partial_eq_without_eq)]
1848#[derive(Clone, PartialEq, ::prost::Message)]
1849pub struct CheckLeaderResponse {
1850 #[prost(uint64, repeated, tag = "1")]
1851 pub regions: ::prost::alloc::vec::Vec<u64>,
1852 #[prost(uint64, tag = "2")]
1853 pub ts: u64,
1854}
1855#[allow(clippy::derive_partial_eq_without_eq)]
1856#[derive(Clone, PartialEq, ::prost::Message)]
1857pub struct StoreSafeTsRequest {
1858 #[prost(message, optional, tag = "1")]
1861 pub key_range: ::core::option::Option<KeyRange>,
1862}
1863#[allow(clippy::derive_partial_eq_without_eq)]
1864#[derive(Clone, PartialEq, ::prost::Message)]
1865pub struct StoreSafeTsResponse {
1866 #[prost(uint64, tag = "1")]
1867 pub safe_ts: u64,
1868}
1869#[allow(clippy::derive_partial_eq_without_eq)]
1870#[derive(Clone, PartialEq, ::prost::Message)]
1871pub struct RawGetKeyTtlRequest {
1872 #[prost(message, optional, tag = "1")]
1873 pub context: ::core::option::Option<Context>,
1874 #[prost(bytes = "vec", tag = "2")]
1875 pub key: ::prost::alloc::vec::Vec<u8>,
1876 #[prost(string, tag = "3")]
1877 pub cf: ::prost::alloc::string::String,
1878}
1879#[allow(clippy::derive_partial_eq_without_eq)]
1880#[derive(Clone, PartialEq, ::prost::Message)]
1881pub struct RawGetKeyTtlResponse {
1882 #[prost(message, optional, tag = "1")]
1883 pub region_error: ::core::option::Option<super::errorpb::Error>,
1884 #[prost(string, tag = "2")]
1885 pub error: ::prost::alloc::string::String,
1886 #[prost(uint64, tag = "3")]
1887 pub ttl: u64,
1888 #[prost(bool, tag = "4")]
1889 pub not_found: bool,
1890}
1891#[allow(clippy::derive_partial_eq_without_eq)]
1892#[derive(Clone, PartialEq, ::prost::Message)]
1893pub struct RawCasRequest {
1894 #[prost(message, optional, tag = "1")]
1895 pub context: ::core::option::Option<Context>,
1896 #[prost(bytes = "vec", tag = "2")]
1897 pub key: ::prost::alloc::vec::Vec<u8>,
1898 #[prost(bytes = "vec", tag = "3")]
1899 pub value: ::prost::alloc::vec::Vec<u8>,
1900 #[prost(bool, tag = "4")]
1901 pub previous_not_exist: bool,
1902 #[prost(bytes = "vec", tag = "5")]
1903 pub previous_value: ::prost::alloc::vec::Vec<u8>,
1904 #[prost(string, tag = "6")]
1905 pub cf: ::prost::alloc::string::String,
1906 #[prost(uint64, tag = "7")]
1907 pub ttl: u64,
1908}
1909#[allow(clippy::derive_partial_eq_without_eq)]
1910#[derive(Clone, PartialEq, ::prost::Message)]
1911pub struct RawCasResponse {
1912 #[prost(message, optional, tag = "1")]
1913 pub region_error: ::core::option::Option<super::errorpb::Error>,
1914 #[prost(string, tag = "2")]
1915 pub error: ::prost::alloc::string::String,
1916 #[prost(bool, tag = "3")]
1917 pub succeed: bool,
1918 #[prost(bool, tag = "4")]
1920 pub previous_not_exist: bool,
1921 #[prost(bytes = "vec", tag = "5")]
1922 pub previous_value: ::prost::alloc::vec::Vec<u8>,
1923}
1924#[allow(clippy::derive_partial_eq_without_eq)]
1925#[derive(Clone, PartialEq, ::prost::Message)]
1926pub struct GetLockWaitInfoRequest {
1927 #[prost(message, optional, tag = "1")]
1930 pub context: ::core::option::Option<Context>,
1931}
1932#[allow(clippy::derive_partial_eq_without_eq)]
1933#[derive(Clone, PartialEq, ::prost::Message)]
1934pub struct GetLockWaitInfoResponse {
1935 #[prost(message, optional, tag = "1")]
1936 pub region_error: ::core::option::Option<super::errorpb::Error>,
1937 #[prost(string, tag = "2")]
1938 pub error: ::prost::alloc::string::String,
1939 #[prost(message, repeated, tag = "3")]
1940 pub entries: ::prost::alloc::vec::Vec<super::deadlock::WaitForEntry>,
1941}
1942#[allow(clippy::derive_partial_eq_without_eq)]
1943#[derive(Clone, PartialEq, ::prost::Message)]
1944pub struct GetLockWaitHistoryRequest {
1945 #[prost(message, optional, tag = "1")]
1948 pub context: ::core::option::Option<Context>,
1949}
1950#[allow(clippy::derive_partial_eq_without_eq)]
1951#[derive(Clone, PartialEq, ::prost::Message)]
1952pub struct GetLockWaitHistoryResponse {
1953 #[prost(message, optional, tag = "1")]
1954 pub region_error: ::core::option::Option<super::errorpb::Error>,
1955 #[prost(string, tag = "2")]
1956 pub error: ::prost::alloc::string::String,
1957 #[prost(message, repeated, tag = "3")]
1958 pub entries: ::prost::alloc::vec::Vec<super::deadlock::WaitForEntry>,
1959}
1960#[allow(clippy::derive_partial_eq_without_eq)]
1961#[derive(Clone, PartialEq, ::prost::Message)]
1962pub struct RawCoprocessorRequest {
1963 #[prost(message, optional, tag = "1")]
1964 pub context: ::core::option::Option<Context>,
1965 #[prost(string, tag = "2")]
1966 pub copr_name: ::prost::alloc::string::String,
1967 #[prost(string, tag = "3")]
1969 pub copr_version_req: ::prost::alloc::string::String,
1970 #[prost(message, repeated, tag = "4")]
1971 pub ranges: ::prost::alloc::vec::Vec<KeyRange>,
1972 #[prost(bytes = "vec", tag = "5")]
1973 pub data: ::prost::alloc::vec::Vec<u8>,
1974}
1975#[allow(clippy::derive_partial_eq_without_eq)]
1976#[derive(Clone, PartialEq, ::prost::Message)]
1977pub struct RawCoprocessorResponse {
1978 #[prost(message, optional, tag = "1")]
1979 pub region_error: ::core::option::Option<super::errorpb::Error>,
1980 #[prost(string, tag = "2")]
1983 pub error: ::prost::alloc::string::String,
1984 #[prost(bytes = "vec", tag = "3")]
1985 pub data: ::prost::alloc::vec::Vec<u8>,
1986}
1987#[allow(clippy::derive_partial_eq_without_eq)]
1988#[derive(Clone, PartialEq, ::prost::Message)]
1989pub struct RawChecksumRequest {
1990 #[prost(message, optional, tag = "1")]
1991 pub context: ::core::option::Option<Context>,
1992 #[prost(enumeration = "ChecksumAlgorithm", tag = "2")]
1993 pub algorithm: i32,
1994 #[prost(message, repeated, tag = "3")]
1995 pub ranges: ::prost::alloc::vec::Vec<KeyRange>,
1996}
1997#[allow(clippy::derive_partial_eq_without_eq)]
1998#[derive(Clone, PartialEq, ::prost::Message)]
1999pub struct RawChecksumResponse {
2000 #[prost(message, optional, tag = "1")]
2001 pub region_error: ::core::option::Option<super::errorpb::Error>,
2002 #[prost(string, tag = "2")]
2003 pub error: ::prost::alloc::string::String,
2004 #[prost(uint64, tag = "3")]
2005 pub checksum: u64,
2006 #[prost(uint64, tag = "4")]
2007 pub total_kvs: u64,
2008 #[prost(uint64, tag = "5")]
2009 pub total_bytes: u64,
2010}
2011#[allow(clippy::derive_partial_eq_without_eq)]
2012#[derive(Clone, PartialEq, ::prost::Message)]
2013pub struct CompactError {
2014 #[prost(oneof = "compact_error::Error", tags = "1, 2, 3, 4")]
2015 pub error: ::core::option::Option<compact_error::Error>,
2016}
2017pub mod compact_error {
2019 #[allow(clippy::derive_partial_eq_without_eq)]
2020 #[derive(Clone, PartialEq, ::prost::Oneof)]
2021 pub enum Error {
2022 #[prost(message, tag = "1")]
2023 ErrInvalidStartKey(super::CompactErrorInvalidStartKey),
2024 #[prost(message, tag = "2")]
2025 ErrPhysicalTableNotExist(super::CompactErrorPhysicalTableNotExist),
2026 #[prost(message, tag = "3")]
2027 ErrCompactInProgress(super::CompactErrorCompactInProgress),
2028 #[prost(message, tag = "4")]
2029 ErrTooManyPendingTasks(super::CompactErrorTooManyPendingTasks),
2030 }
2031}
2032#[allow(clippy::derive_partial_eq_without_eq)]
2033#[derive(Clone, PartialEq, ::prost::Message)]
2034pub struct CompactErrorInvalidStartKey {}
2035#[allow(clippy::derive_partial_eq_without_eq)]
2036#[derive(Clone, PartialEq, ::prost::Message)]
2037pub struct CompactErrorPhysicalTableNotExist {}
2038#[allow(clippy::derive_partial_eq_without_eq)]
2039#[derive(Clone, PartialEq, ::prost::Message)]
2040pub struct CompactErrorCompactInProgress {}
2041#[allow(clippy::derive_partial_eq_without_eq)]
2042#[derive(Clone, PartialEq, ::prost::Message)]
2043pub struct CompactErrorTooManyPendingTasks {}
2044#[allow(clippy::derive_partial_eq_without_eq)]
2045#[derive(Clone, PartialEq, ::prost::Message)]
2046pub struct CompactRequest {
2047 #[prost(bytes = "vec", tag = "1")]
2053 pub start_key: ::prost::alloc::vec::Vec<u8>,
2054 #[prost(int64, tag = "2")]
2059 pub physical_table_id: i64,
2060 #[prost(int64, tag = "3")]
2066 pub logical_table_id: i64,
2067 #[prost(enumeration = "ApiVersion", tag = "7")]
2069 pub api_version: i32,
2070 #[prost(uint32, tag = "8")]
2072 pub keyspace_id: u32,
2073}
2074#[allow(clippy::derive_partial_eq_without_eq)]
2075#[derive(Clone, PartialEq, ::prost::Message)]
2076pub struct CompactResponse {
2077 #[prost(message, optional, tag = "1")]
2078 pub error: ::core::option::Option<CompactError>,
2079 #[prost(bool, tag = "2")]
2082 pub has_remaining: bool,
2083 #[prost(bytes = "vec", tag = "3")]
2084 pub compacted_start_key: ::prost::alloc::vec::Vec<u8>,
2085 #[prost(bytes = "vec", tag = "4")]
2086 pub compacted_end_key: ::prost::alloc::vec::Vec<u8>,
2087}
2088#[allow(clippy::derive_partial_eq_without_eq)]
2089#[derive(Clone, PartialEq, ::prost::Message)]
2090pub struct TiFlashSystemTableRequest {
2091 #[prost(string, tag = "1")]
2092 pub sql: ::prost::alloc::string::String,
2093}
2094#[allow(clippy::derive_partial_eq_without_eq)]
2095#[derive(Clone, PartialEq, ::prost::Message)]
2096pub struct TiFlashSystemTableResponse {
2097 #[prost(bytes = "vec", tag = "1")]
2098 pub data: ::prost::alloc::vec::Vec<u8>,
2099}
2100#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
2103#[repr(i32)]
2104pub enum PessimisticLockWakeUpMode {
2105 WakeUpModeNormal = 0,
2109 WakeUpModeForceLock = 1,
2114}
2115impl PessimisticLockWakeUpMode {
2116 pub fn as_str_name(&self) -> &'static str {
2121 match self {
2122 PessimisticLockWakeUpMode::WakeUpModeNormal => "WakeUpModeNormal",
2123 PessimisticLockWakeUpMode::WakeUpModeForceLock => "WakeUpModeForceLock",
2124 }
2125 }
2126 pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
2128 match value {
2129 "WakeUpModeNormal" => Some(Self::WakeUpModeNormal),
2130 "WakeUpModeForceLock" => Some(Self::WakeUpModeForceLock),
2131 _ => None,
2132 }
2133 }
2134}
2135#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
2136#[repr(i32)]
2137pub enum PessimisticLockKeyResultType {
2138 LockResultNormal = 0,
2139 LockResultLockedWithConflict = 1,
2140 LockResultFailed = 2,
2141}
2142impl PessimisticLockKeyResultType {
2143 pub fn as_str_name(&self) -> &'static str {
2148 match self {
2149 PessimisticLockKeyResultType::LockResultNormal => "LockResultNormal",
2150 PessimisticLockKeyResultType::LockResultLockedWithConflict => {
2151 "LockResultLockedWithConflict"
2152 }
2153 PessimisticLockKeyResultType::LockResultFailed => "LockResultFailed",
2154 }
2155 }
2156 pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
2158 match value {
2159 "LockResultNormal" => Some(Self::LockResultNormal),
2160 "LockResultLockedWithConflict" => Some(Self::LockResultLockedWithConflict),
2161 "LockResultFailed" => Some(Self::LockResultFailed),
2162 _ => None,
2163 }
2164 }
2165}
2166#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
2169#[repr(i32)]
2170pub enum ApiVersion {
2171 V1 = 0,
2174 V1ttl = 1,
2184 V2 = 2,
2220}
2221impl ApiVersion {
2222 pub fn as_str_name(&self) -> &'static str {
2227 match self {
2228 ApiVersion::V1 => "V1",
2229 ApiVersion::V1ttl => "V1TTL",
2230 ApiVersion::V2 => "V2",
2231 }
2232 }
2233 pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
2235 match value {
2236 "V1" => Some(Self::V1),
2237 "V1TTL" => Some(Self::V1ttl),
2238 "V2" => Some(Self::V2),
2239 _ => None,
2240 }
2241 }
2242}
2243#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
2244#[repr(i32)]
2245pub enum CommandPri {
2246 Normal = 0,
2248 Low = 1,
2249 High = 2,
2250}
2251impl CommandPri {
2252 pub fn as_str_name(&self) -> &'static str {
2257 match self {
2258 CommandPri::Normal => "Normal",
2259 CommandPri::Low => "Low",
2260 CommandPri::High => "High",
2261 }
2262 }
2263 pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
2265 match value {
2266 "Normal" => Some(Self::Normal),
2267 "Low" => Some(Self::Low),
2268 "High" => Some(Self::High),
2269 _ => None,
2270 }
2271 }
2272}
2273#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
2274#[repr(i32)]
2275pub enum IsolationLevel {
2276 Si = 0,
2278 Rc = 1,
2280 RcCheckTs = 2,
2282}
2283impl IsolationLevel {
2284 pub fn as_str_name(&self) -> &'static str {
2289 match self {
2290 IsolationLevel::Si => "SI",
2291 IsolationLevel::Rc => "RC",
2292 IsolationLevel::RcCheckTs => "RCCheckTS",
2293 }
2294 }
2295 pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
2297 match value {
2298 "SI" => Some(Self::Si),
2299 "RC" => Some(Self::Rc),
2300 "RCCheckTS" => Some(Self::RcCheckTs),
2301 _ => None,
2302 }
2303 }
2304}
2305#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
2307#[repr(i32)]
2308pub enum DiskFullOpt {
2309 NotAllowedOnFull = 0,
2311 AllowedOnAlmostFull = 1,
2313 AllowedOnAlreadyFull = 2,
2315}
2316impl DiskFullOpt {
2317 pub fn as_str_name(&self) -> &'static str {
2322 match self {
2323 DiskFullOpt::NotAllowedOnFull => "NotAllowedOnFull",
2324 DiskFullOpt::AllowedOnAlmostFull => "AllowedOnAlmostFull",
2325 DiskFullOpt::AllowedOnAlreadyFull => "AllowedOnAlreadyFull",
2326 }
2327 }
2328 pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
2330 match value {
2331 "NotAllowedOnFull" => Some(Self::NotAllowedOnFull),
2332 "AllowedOnAlmostFull" => Some(Self::AllowedOnAlmostFull),
2333 "AllowedOnAlreadyFull" => Some(Self::AllowedOnAlreadyFull),
2334 _ => None,
2335 }
2336 }
2337}
2338#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
2339#[repr(i32)]
2340pub enum Op {
2341 Put = 0,
2342 Del = 1,
2343 Lock = 2,
2344 Rollback = 3,
2345 Insert = 4,
2347 PessimisticLock = 5,
2348 CheckNotExists = 6,
2349}
2350impl Op {
2351 pub fn as_str_name(&self) -> &'static str {
2356 match self {
2357 Op::Put => "Put",
2358 Op::Del => "Del",
2359 Op::Lock => "Lock",
2360 Op::Rollback => "Rollback",
2361 Op::Insert => "Insert",
2362 Op::PessimisticLock => "PessimisticLock",
2363 Op::CheckNotExists => "CheckNotExists",
2364 }
2365 }
2366 pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
2368 match value {
2369 "Put" => Some(Self::Put),
2370 "Del" => Some(Self::Del),
2371 "Lock" => Some(Self::Lock),
2372 "Rollback" => Some(Self::Rollback),
2373 "Insert" => Some(Self::Insert),
2374 "PessimisticLock" => Some(Self::PessimisticLock),
2375 "CheckNotExists" => Some(Self::CheckNotExists),
2376 _ => None,
2377 }
2378 }
2379}
2380#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
2381#[repr(i32)]
2382pub enum Assertion {
2383 None = 0,
2384 Exist = 1,
2385 NotExist = 2,
2386}
2387impl Assertion {
2388 pub fn as_str_name(&self) -> &'static str {
2393 match self {
2394 Assertion::None => "None",
2395 Assertion::Exist => "Exist",
2396 Assertion::NotExist => "NotExist",
2397 }
2398 }
2399 pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
2401 match value {
2402 "None" => Some(Self::None),
2403 "Exist" => Some(Self::Exist),
2404 "NotExist" => Some(Self::NotExist),
2405 _ => None,
2406 }
2407 }
2408}
2409#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
2410#[repr(i32)]
2411pub enum AssertionLevel {
2412 Off = 0,
2414 Fast = 1,
2416 Strict = 2,
2418}
2419impl AssertionLevel {
2420 pub fn as_str_name(&self) -> &'static str {
2425 match self {
2426 AssertionLevel::Off => "Off",
2427 AssertionLevel::Fast => "Fast",
2428 AssertionLevel::Strict => "Strict",
2429 }
2430 }
2431 pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
2433 match value {
2434 "Off" => Some(Self::Off),
2435 "Fast" => Some(Self::Fast),
2436 "Strict" => Some(Self::Strict),
2437 _ => None,
2438 }
2439 }
2440}
2441#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
2442#[repr(i32)]
2443pub enum Action {
2444 NoAction = 0,
2445 TtlExpireRollback = 1,
2446 LockNotExistRollback = 2,
2447 MinCommitTsPushed = 3,
2448 TtlExpirePessimisticRollback = 4,
2449 LockNotExistDoNothing = 5,
2450}
2451impl Action {
2452 pub fn as_str_name(&self) -> &'static str {
2457 match self {
2458 Action::NoAction => "NoAction",
2459 Action::TtlExpireRollback => "TTLExpireRollback",
2460 Action::LockNotExistRollback => "LockNotExistRollback",
2461 Action::MinCommitTsPushed => "MinCommitTSPushed",
2462 Action::TtlExpirePessimisticRollback => "TTLExpirePessimisticRollback",
2463 Action::LockNotExistDoNothing => "LockNotExistDoNothing",
2464 }
2465 }
2466 pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
2468 match value {
2469 "NoAction" => Some(Self::NoAction),
2470 "TTLExpireRollback" => Some(Self::TtlExpireRollback),
2471 "LockNotExistRollback" => Some(Self::LockNotExistRollback),
2472 "MinCommitTSPushed" => Some(Self::MinCommitTsPushed),
2473 "TTLExpirePessimisticRollback" => Some(Self::TtlExpirePessimisticRollback),
2474 "LockNotExistDoNothing" => Some(Self::LockNotExistDoNothing),
2475 _ => None,
2476 }
2477 }
2478}
2479#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
2480#[repr(i32)]
2481pub enum ExtraOp {
2482 Noop = 0,
2483 ReadOldValue = 1,
2485}
2486impl ExtraOp {
2487 pub fn as_str_name(&self) -> &'static str {
2492 match self {
2493 ExtraOp::Noop => "Noop",
2494 ExtraOp::ReadOldValue => "ReadOldValue",
2495 }
2496 }
2497 pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
2499 match value {
2500 "Noop" => Some(Self::Noop),
2501 "ReadOldValue" => Some(Self::ReadOldValue),
2502 _ => None,
2503 }
2504 }
2505}
2506#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
2507#[repr(i32)]
2508pub enum ChecksumAlgorithm {
2509 Crc64Xor = 0,
2510}
2511impl ChecksumAlgorithm {
2512 pub fn as_str_name(&self) -> &'static str {
2517 match self {
2518 ChecksumAlgorithm::Crc64Xor => "Crc64_Xor",
2519 }
2520 }
2521 pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
2523 match value {
2524 "Crc64_Xor" => Some(Self::Crc64Xor),
2525 _ => None,
2526 }
2527 }
2528}