tikv-python 0.1.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- tikv/__init__.py +44 -0
- tikv/_async/__init__.py +1 -0
- tikv/_async/_client.py +584 -0
- tikv/_async/_compat.py +53 -0
- tikv/_async/_pd.py +167 -0
- tikv/_async/_transport.py +52 -0
- tikv/_backoff.py +78 -0
- tikv/_errors.py +53 -0
- tikv/_keys.py +109 -0
- tikv/_proto/__init__.py +2 -0
- tikv/_proto/errorpb_pb2.py +68 -0
- tikv/_proto/errorpb_pb2.pyi +200 -0
- tikv/_proto/kvrpcpb_pb2.py +85 -0
- tikv/_proto/kvrpcpb_pb2.pyi +341 -0
- tikv/_proto/metapb_pb2.py +39 -0
- tikv/_proto/metapb_pb2.pyi +92 -0
- tikv/_proto/pdpb_pb2.py +56 -0
- tikv/_proto/pdpb_pb2.pyi +160 -0
- tikv/_region.py +228 -0
- tikv/_rpc.py +109 -0
- tikv/_sync/__init__.py +2 -0
- tikv/_sync/_client.py +585 -0
- tikv/_sync/_compat.py +43 -0
- tikv/_sync/_pd.py +168 -0
- tikv/_sync/_transport.py +53 -0
- tikv/_types.py +34 -0
- tikv/py.typed +0 -0
- tikv_python-0.1.0.dist-info/METADATA +387 -0
- tikv_python-0.1.0.dist-info/RECORD +31 -0
- tikv_python-0.1.0.dist-info/WHEEL +4 -0
- tikv_python-0.1.0.dist-info/licenses/LICENSE +202 -0
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
# Generated by scripts/generate_protos.py. DO NOT EDIT.
|
|
2
|
+
from . import metapb_pb2 as _metapb_pb2
|
|
3
|
+
from google.protobuf.internal import containers as _containers
|
|
4
|
+
from google.protobuf import descriptor as _descriptor
|
|
5
|
+
from google.protobuf import message as _message
|
|
6
|
+
from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union
|
|
7
|
+
|
|
8
|
+
DESCRIPTOR: _descriptor.FileDescriptor
|
|
9
|
+
|
|
10
|
+
class NotLeader(_message.Message):
|
|
11
|
+
__slots__ = ("region_id", "leader")
|
|
12
|
+
REGION_ID_FIELD_NUMBER: _ClassVar[int]
|
|
13
|
+
LEADER_FIELD_NUMBER: _ClassVar[int]
|
|
14
|
+
region_id: int
|
|
15
|
+
leader: _metapb_pb2.Peer
|
|
16
|
+
def __init__(self, region_id: _Optional[int] = ..., leader: _Optional[_Union[_metapb_pb2.Peer, _Mapping]] = ...) -> None: ...
|
|
17
|
+
|
|
18
|
+
class IsWitness(_message.Message):
|
|
19
|
+
__slots__ = ("region_id",)
|
|
20
|
+
REGION_ID_FIELD_NUMBER: _ClassVar[int]
|
|
21
|
+
region_id: int
|
|
22
|
+
def __init__(self, region_id: _Optional[int] = ...) -> None: ...
|
|
23
|
+
|
|
24
|
+
class DiskFull(_message.Message):
|
|
25
|
+
__slots__ = ("store_id", "reason")
|
|
26
|
+
STORE_ID_FIELD_NUMBER: _ClassVar[int]
|
|
27
|
+
REASON_FIELD_NUMBER: _ClassVar[int]
|
|
28
|
+
store_id: _containers.RepeatedScalarFieldContainer[int]
|
|
29
|
+
reason: str
|
|
30
|
+
def __init__(self, store_id: _Optional[_Iterable[int]] = ..., reason: _Optional[str] = ...) -> None: ...
|
|
31
|
+
|
|
32
|
+
class StoreNotMatch(_message.Message):
|
|
33
|
+
__slots__ = ("request_store_id", "actual_store_id")
|
|
34
|
+
REQUEST_STORE_ID_FIELD_NUMBER: _ClassVar[int]
|
|
35
|
+
ACTUAL_STORE_ID_FIELD_NUMBER: _ClassVar[int]
|
|
36
|
+
request_store_id: int
|
|
37
|
+
actual_store_id: int
|
|
38
|
+
def __init__(self, request_store_id: _Optional[int] = ..., actual_store_id: _Optional[int] = ...) -> None: ...
|
|
39
|
+
|
|
40
|
+
class RegionNotFound(_message.Message):
|
|
41
|
+
__slots__ = ("region_id",)
|
|
42
|
+
REGION_ID_FIELD_NUMBER: _ClassVar[int]
|
|
43
|
+
region_id: int
|
|
44
|
+
def __init__(self, region_id: _Optional[int] = ...) -> None: ...
|
|
45
|
+
|
|
46
|
+
class RegionNotInitialized(_message.Message):
|
|
47
|
+
__slots__ = ("region_id",)
|
|
48
|
+
REGION_ID_FIELD_NUMBER: _ClassVar[int]
|
|
49
|
+
region_id: int
|
|
50
|
+
def __init__(self, region_id: _Optional[int] = ...) -> None: ...
|
|
51
|
+
|
|
52
|
+
class KeyNotInRegion(_message.Message):
|
|
53
|
+
__slots__ = ("key", "region_id", "start_key", "end_key")
|
|
54
|
+
KEY_FIELD_NUMBER: _ClassVar[int]
|
|
55
|
+
REGION_ID_FIELD_NUMBER: _ClassVar[int]
|
|
56
|
+
START_KEY_FIELD_NUMBER: _ClassVar[int]
|
|
57
|
+
END_KEY_FIELD_NUMBER: _ClassVar[int]
|
|
58
|
+
key: bytes
|
|
59
|
+
region_id: int
|
|
60
|
+
start_key: bytes
|
|
61
|
+
end_key: bytes
|
|
62
|
+
def __init__(self, key: _Optional[bytes] = ..., region_id: _Optional[int] = ..., start_key: _Optional[bytes] = ..., end_key: _Optional[bytes] = ...) -> None: ...
|
|
63
|
+
|
|
64
|
+
class EpochNotMatch(_message.Message):
|
|
65
|
+
__slots__ = ("current_regions",)
|
|
66
|
+
CURRENT_REGIONS_FIELD_NUMBER: _ClassVar[int]
|
|
67
|
+
current_regions: _containers.RepeatedCompositeFieldContainer[_metapb_pb2.Region]
|
|
68
|
+
def __init__(self, current_regions: _Optional[_Iterable[_Union[_metapb_pb2.Region, _Mapping]]] = ...) -> None: ...
|
|
69
|
+
|
|
70
|
+
class ServerIsBusy(_message.Message):
|
|
71
|
+
__slots__ = ("reason", "backoff_ms", "estimated_wait_ms", "applied_index")
|
|
72
|
+
REASON_FIELD_NUMBER: _ClassVar[int]
|
|
73
|
+
BACKOFF_MS_FIELD_NUMBER: _ClassVar[int]
|
|
74
|
+
ESTIMATED_WAIT_MS_FIELD_NUMBER: _ClassVar[int]
|
|
75
|
+
APPLIED_INDEX_FIELD_NUMBER: _ClassVar[int]
|
|
76
|
+
reason: str
|
|
77
|
+
backoff_ms: int
|
|
78
|
+
estimated_wait_ms: int
|
|
79
|
+
applied_index: int
|
|
80
|
+
def __init__(self, reason: _Optional[str] = ..., backoff_ms: _Optional[int] = ..., estimated_wait_ms: _Optional[int] = ..., applied_index: _Optional[int] = ...) -> None: ...
|
|
81
|
+
|
|
82
|
+
class StaleCommand(_message.Message):
|
|
83
|
+
__slots__ = ()
|
|
84
|
+
def __init__(self) -> None: ...
|
|
85
|
+
|
|
86
|
+
class RaftEntryTooLarge(_message.Message):
|
|
87
|
+
__slots__ = ("region_id", "entry_size")
|
|
88
|
+
REGION_ID_FIELD_NUMBER: _ClassVar[int]
|
|
89
|
+
ENTRY_SIZE_FIELD_NUMBER: _ClassVar[int]
|
|
90
|
+
region_id: int
|
|
91
|
+
entry_size: int
|
|
92
|
+
def __init__(self, region_id: _Optional[int] = ..., entry_size: _Optional[int] = ...) -> None: ...
|
|
93
|
+
|
|
94
|
+
class MaxTimestampNotSynced(_message.Message):
|
|
95
|
+
__slots__ = ()
|
|
96
|
+
def __init__(self) -> None: ...
|
|
97
|
+
|
|
98
|
+
class ReadIndexNotReady(_message.Message):
|
|
99
|
+
__slots__ = ("reason", "region_id")
|
|
100
|
+
REASON_FIELD_NUMBER: _ClassVar[int]
|
|
101
|
+
REGION_ID_FIELD_NUMBER: _ClassVar[int]
|
|
102
|
+
reason: str
|
|
103
|
+
region_id: int
|
|
104
|
+
def __init__(self, reason: _Optional[str] = ..., region_id: _Optional[int] = ...) -> None: ...
|
|
105
|
+
|
|
106
|
+
class ProposalInMergingMode(_message.Message):
|
|
107
|
+
__slots__ = ("region_id",)
|
|
108
|
+
REGION_ID_FIELD_NUMBER: _ClassVar[int]
|
|
109
|
+
region_id: int
|
|
110
|
+
def __init__(self, region_id: _Optional[int] = ...) -> None: ...
|
|
111
|
+
|
|
112
|
+
class DataIsNotReady(_message.Message):
|
|
113
|
+
__slots__ = ("region_id", "peer_id", "safe_ts")
|
|
114
|
+
REGION_ID_FIELD_NUMBER: _ClassVar[int]
|
|
115
|
+
PEER_ID_FIELD_NUMBER: _ClassVar[int]
|
|
116
|
+
SAFE_TS_FIELD_NUMBER: _ClassVar[int]
|
|
117
|
+
region_id: int
|
|
118
|
+
peer_id: int
|
|
119
|
+
safe_ts: int
|
|
120
|
+
def __init__(self, region_id: _Optional[int] = ..., peer_id: _Optional[int] = ..., safe_ts: _Optional[int] = ...) -> None: ...
|
|
121
|
+
|
|
122
|
+
class RecoveryInProgress(_message.Message):
|
|
123
|
+
__slots__ = ("region_id",)
|
|
124
|
+
REGION_ID_FIELD_NUMBER: _ClassVar[int]
|
|
125
|
+
region_id: int
|
|
126
|
+
def __init__(self, region_id: _Optional[int] = ...) -> None: ...
|
|
127
|
+
|
|
128
|
+
class FlashbackInProgress(_message.Message):
|
|
129
|
+
__slots__ = ("region_id", "flashback_start_ts")
|
|
130
|
+
REGION_ID_FIELD_NUMBER: _ClassVar[int]
|
|
131
|
+
FLASHBACK_START_TS_FIELD_NUMBER: _ClassVar[int]
|
|
132
|
+
region_id: int
|
|
133
|
+
flashback_start_ts: int
|
|
134
|
+
def __init__(self, region_id: _Optional[int] = ..., flashback_start_ts: _Optional[int] = ...) -> None: ...
|
|
135
|
+
|
|
136
|
+
class FlashbackNotPrepared(_message.Message):
|
|
137
|
+
__slots__ = ("region_id",)
|
|
138
|
+
REGION_ID_FIELD_NUMBER: _ClassVar[int]
|
|
139
|
+
region_id: int
|
|
140
|
+
def __init__(self, region_id: _Optional[int] = ...) -> None: ...
|
|
141
|
+
|
|
142
|
+
class MismatchPeerId(_message.Message):
|
|
143
|
+
__slots__ = ("request_peer_id", "store_peer_id")
|
|
144
|
+
REQUEST_PEER_ID_FIELD_NUMBER: _ClassVar[int]
|
|
145
|
+
STORE_PEER_ID_FIELD_NUMBER: _ClassVar[int]
|
|
146
|
+
request_peer_id: int
|
|
147
|
+
store_peer_id: int
|
|
148
|
+
def __init__(self, request_peer_id: _Optional[int] = ..., store_peer_id: _Optional[int] = ...) -> None: ...
|
|
149
|
+
|
|
150
|
+
class UndeterminedResult(_message.Message):
|
|
151
|
+
__slots__ = ("message",)
|
|
152
|
+
MESSAGE_FIELD_NUMBER: _ClassVar[int]
|
|
153
|
+
message: str
|
|
154
|
+
def __init__(self, message: _Optional[str] = ...) -> None: ...
|
|
155
|
+
|
|
156
|
+
class Error(_message.Message):
|
|
157
|
+
__slots__ = ("message", "not_leader", "region_not_found", "key_not_in_region", "epoch_not_match", "server_is_busy", "stale_command", "store_not_match", "raft_entry_too_large", "max_timestamp_not_synced", "read_index_not_ready", "proposal_in_merging_mode", "data_is_not_ready", "region_not_initialized", "disk_full", "RecoveryInProgress", "FlashbackInProgress", "FlashbackNotPrepared", "is_witness", "mismatch_peer_id", "undetermined_result")
|
|
158
|
+
MESSAGE_FIELD_NUMBER: _ClassVar[int]
|
|
159
|
+
NOT_LEADER_FIELD_NUMBER: _ClassVar[int]
|
|
160
|
+
REGION_NOT_FOUND_FIELD_NUMBER: _ClassVar[int]
|
|
161
|
+
KEY_NOT_IN_REGION_FIELD_NUMBER: _ClassVar[int]
|
|
162
|
+
EPOCH_NOT_MATCH_FIELD_NUMBER: _ClassVar[int]
|
|
163
|
+
SERVER_IS_BUSY_FIELD_NUMBER: _ClassVar[int]
|
|
164
|
+
STALE_COMMAND_FIELD_NUMBER: _ClassVar[int]
|
|
165
|
+
STORE_NOT_MATCH_FIELD_NUMBER: _ClassVar[int]
|
|
166
|
+
RAFT_ENTRY_TOO_LARGE_FIELD_NUMBER: _ClassVar[int]
|
|
167
|
+
MAX_TIMESTAMP_NOT_SYNCED_FIELD_NUMBER: _ClassVar[int]
|
|
168
|
+
READ_INDEX_NOT_READY_FIELD_NUMBER: _ClassVar[int]
|
|
169
|
+
PROPOSAL_IN_MERGING_MODE_FIELD_NUMBER: _ClassVar[int]
|
|
170
|
+
DATA_IS_NOT_READY_FIELD_NUMBER: _ClassVar[int]
|
|
171
|
+
REGION_NOT_INITIALIZED_FIELD_NUMBER: _ClassVar[int]
|
|
172
|
+
DISK_FULL_FIELD_NUMBER: _ClassVar[int]
|
|
173
|
+
RECOVERYINPROGRESS_FIELD_NUMBER: _ClassVar[int]
|
|
174
|
+
FLASHBACKINPROGRESS_FIELD_NUMBER: _ClassVar[int]
|
|
175
|
+
FLASHBACKNOTPREPARED_FIELD_NUMBER: _ClassVar[int]
|
|
176
|
+
IS_WITNESS_FIELD_NUMBER: _ClassVar[int]
|
|
177
|
+
MISMATCH_PEER_ID_FIELD_NUMBER: _ClassVar[int]
|
|
178
|
+
UNDETERMINED_RESULT_FIELD_NUMBER: _ClassVar[int]
|
|
179
|
+
message: str
|
|
180
|
+
not_leader: NotLeader
|
|
181
|
+
region_not_found: RegionNotFound
|
|
182
|
+
key_not_in_region: KeyNotInRegion
|
|
183
|
+
epoch_not_match: EpochNotMatch
|
|
184
|
+
server_is_busy: ServerIsBusy
|
|
185
|
+
stale_command: StaleCommand
|
|
186
|
+
store_not_match: StoreNotMatch
|
|
187
|
+
raft_entry_too_large: RaftEntryTooLarge
|
|
188
|
+
max_timestamp_not_synced: MaxTimestampNotSynced
|
|
189
|
+
read_index_not_ready: ReadIndexNotReady
|
|
190
|
+
proposal_in_merging_mode: ProposalInMergingMode
|
|
191
|
+
data_is_not_ready: DataIsNotReady
|
|
192
|
+
region_not_initialized: RegionNotInitialized
|
|
193
|
+
disk_full: DiskFull
|
|
194
|
+
RecoveryInProgress: RecoveryInProgress
|
|
195
|
+
FlashbackInProgress: FlashbackInProgress
|
|
196
|
+
FlashbackNotPrepared: FlashbackNotPrepared
|
|
197
|
+
is_witness: IsWitness
|
|
198
|
+
mismatch_peer_id: MismatchPeerId
|
|
199
|
+
undetermined_result: UndeterminedResult
|
|
200
|
+
def __init__(self, message: _Optional[str] = ..., not_leader: _Optional[_Union[NotLeader, _Mapping]] = ..., region_not_found: _Optional[_Union[RegionNotFound, _Mapping]] = ..., key_not_in_region: _Optional[_Union[KeyNotInRegion, _Mapping]] = ..., epoch_not_match: _Optional[_Union[EpochNotMatch, _Mapping]] = ..., server_is_busy: _Optional[_Union[ServerIsBusy, _Mapping]] = ..., stale_command: _Optional[_Union[StaleCommand, _Mapping]] = ..., store_not_match: _Optional[_Union[StoreNotMatch, _Mapping]] = ..., raft_entry_too_large: _Optional[_Union[RaftEntryTooLarge, _Mapping]] = ..., max_timestamp_not_synced: _Optional[_Union[MaxTimestampNotSynced, _Mapping]] = ..., read_index_not_ready: _Optional[_Union[ReadIndexNotReady, _Mapping]] = ..., proposal_in_merging_mode: _Optional[_Union[ProposalInMergingMode, _Mapping]] = ..., data_is_not_ready: _Optional[_Union[DataIsNotReady, _Mapping]] = ..., region_not_initialized: _Optional[_Union[RegionNotInitialized, _Mapping]] = ..., disk_full: _Optional[_Union[DiskFull, _Mapping]] = ..., RecoveryInProgress: _Optional[_Union[RecoveryInProgress, _Mapping]] = ..., FlashbackInProgress: _Optional[_Union[FlashbackInProgress, _Mapping]] = ..., FlashbackNotPrepared: _Optional[_Union[FlashbackNotPrepared, _Mapping]] = ..., is_witness: _Optional[_Union[IsWitness, _Mapping]] = ..., mismatch_peer_id: _Optional[_Union[MismatchPeerId, _Mapping]] = ..., undetermined_result: _Optional[_Union[UndeterminedResult, _Mapping]] = ...) -> None: ...
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
# Generated by scripts/generate_protos.py. DO NOT EDIT.
|
|
2
|
+
# -*- coding: utf-8 -*-
|
|
3
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
4
|
+
# source: kvrpcpb.proto
|
|
5
|
+
# Protobuf Python Version: 4.25.1
|
|
6
|
+
"""Generated protocol buffer code."""
|
|
7
|
+
from google.protobuf import descriptor as _descriptor
|
|
8
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
9
|
+
from google.protobuf import symbol_database as _symbol_database
|
|
10
|
+
from google.protobuf.internal import builder as _builder
|
|
11
|
+
# @@protoc_insertion_point(imports)
|
|
12
|
+
|
|
13
|
+
_sym_db = _symbol_database.Default()
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
from . import errorpb_pb2 as errorpb__pb2
|
|
17
|
+
from . import metapb_pb2 as metapb__pb2
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\rkvrpcpb.proto\x12\x07kvrpcpb\x1a\rerrorpb.proto\x1a\x0cmetapb.proto\"\xef\x02\n\x07\x43ontext\x12\x11\n\tregion_id\x18\x01 \x01(\x04\x12)\n\x0cregion_epoch\x18\x02 \x01(\x0b\x32\x13.metapb.RegionEpoch\x12\x1a\n\x04peer\x18\x03 \x01(\x0b\x32\x0c.metapb.Peer\x12\x0c\n\x04term\x18\x05 \x01(\x04\x12%\n\x08priority\x18\x06 \x01(\x0e\x32\x13.kvrpcpb.CommandPri\x12\x16\n\x0enot_fill_cache\x18\x08 \x01(\x08\x12!\n\x19max_execution_duration_ms\x18\x0e \x01(\x04\x12\x18\n\x10is_retry_request\x18\x14 \x01(\x08\x12(\n\x0b\x61pi_version\x18\x15 \x01(\x0e\x32\x13.kvrpcpb.APIVersion\x12\x16\n\x0erequest_source\x18\x18 \x01(\t\x12\x15\n\rkeyspace_name\x18\x1f \x01(\t\x12\x13\n\x0bkeyspace_id\x18 \x01(\r\x12\x12\n\ncluster_id\x18# \x01(\x04\",\n\x08KeyError\x12\x11\n\tretryable\x18\x02 \x01(\t\x12\r\n\x05\x61\x62ort\x18\x03 \x01(\t\"F\n\x06KvPair\x12 \n\x05\x65rror\x18\x01 \x01(\x0b\x32\x11.kvrpcpb.KeyError\x12\x0b\n\x03key\x18\x02 \x01(\x0c\x12\r\n\x05value\x18\x03 \x01(\x0c\".\n\x08KeyRange\x12\x11\n\tstart_key\x18\x01 \x01(\x0c\x12\x0f\n\x07\x65nd_key\x18\x02 \x01(\x0c\"K\n\rRawGetRequest\x12!\n\x07\x63ontext\x18\x01 \x01(\x0b\x32\x10.kvrpcpb.Context\x12\x0b\n\x03key\x18\x02 \x01(\x0c\x12\n\n\x02\x63\x66\x18\x03 \x01(\t\"g\n\x0eRawGetResponse\x12$\n\x0cregion_error\x18\x01 \x01(\x0b\x32\x0e.errorpb.Error\x12\r\n\x05\x65rror\x18\x02 \x01(\t\x12\r\n\x05value\x18\x03 \x01(\x0c\x12\x11\n\tnot_found\x18\x04 \x01(\x08\"Q\n\x12RawBatchGetRequest\x12!\n\x07\x63ontext\x18\x01 \x01(\x0b\x32\x10.kvrpcpb.Context\x12\x0c\n\x04keys\x18\x02 \x03(\x0c\x12\n\n\x02\x63\x66\x18\x03 \x01(\t\"[\n\x13RawBatchGetResponse\x12$\n\x0cregion_error\x18\x01 \x01(\x0b\x32\x0e.errorpb.Error\x12\x1e\n\x05pairs\x18\x02 \x03(\x0b\x32\x0f.kvrpcpb.KvPair\"x\n\rRawPutRequest\x12!\n\x07\x63ontext\x18\x01 \x01(\x0b\x32\x10.kvrpcpb.Context\x12\x0b\n\x03key\x18\x02 \x01(\x0c\x12\r\n\x05value\x18\x03 \x01(\x0c\x12\n\n\x02\x63\x66\x18\x04 \x01(\t\x12\x0b\n\x03ttl\x18\x05 \x01(\x04\x12\x0f\n\x07\x66or_cas\x18\x06 \x01(\x08\"E\n\x0eRawPutResponse\x12$\n\x0cregion_error\x18\x01 \x01(\x0b\x32\x0e.errorpb.Error\x12\r\n\x05\x65rror\x18\x02 \x01(\t\"\x82\x01\n\x12RawBatchPutRequest\x12!\n\x07\x63ontext\x18\x01 \x01(\x0b\x32\x10.kvrpcpb.Context\x12\x1e\n\x05pairs\x18\x02 \x03(\x0b\x32\x0f.kvrpcpb.KvPair\x12\n\n\x02\x63\x66\x18\x03 \x01(\t\x12\x0f\n\x07\x66or_cas\x18\x05 \x01(\x08\x12\x0c\n\x04ttls\x18\x06 \x03(\x04\"J\n\x13RawBatchPutResponse\x12$\n\x0cregion_error\x18\x01 \x01(\x0b\x32\x0e.errorpb.Error\x12\r\n\x05\x65rror\x18\x02 \x01(\t\"_\n\x10RawDeleteRequest\x12!\n\x07\x63ontext\x18\x01 \x01(\x0b\x32\x10.kvrpcpb.Context\x12\x0b\n\x03key\x18\x02 \x01(\x0c\x12\n\n\x02\x63\x66\x18\x03 \x01(\t\x12\x0f\n\x07\x66or_cas\x18\x04 \x01(\x08\"H\n\x11RawDeleteResponse\x12$\n\x0cregion_error\x18\x01 \x01(\x0b\x32\x0e.errorpb.Error\x12\r\n\x05\x65rror\x18\x02 \x01(\t\"e\n\x15RawBatchDeleteRequest\x12!\n\x07\x63ontext\x18\x01 \x01(\x0b\x32\x10.kvrpcpb.Context\x12\x0c\n\x04keys\x18\x02 \x03(\x0c\x12\n\n\x02\x63\x66\x18\x03 \x01(\t\x12\x0f\n\x07\x66or_cas\x18\x04 \x01(\x08\"M\n\x16RawBatchDeleteResponse\x12$\n\x0cregion_error\x18\x01 \x01(\x0b\x32\x0e.errorpb.Error\x12\r\n\x05\x65rror\x18\x02 \x01(\t\"\x95\x01\n\x0eRawScanRequest\x12!\n\x07\x63ontext\x18\x01 \x01(\x0b\x32\x10.kvrpcpb.Context\x12\x11\n\tstart_key\x18\x02 \x01(\x0c\x12\r\n\x05limit\x18\x03 \x01(\r\x12\x10\n\x08key_only\x18\x04 \x01(\x08\x12\n\n\x02\x63\x66\x18\x05 \x01(\t\x12\x0f\n\x07reverse\x18\x06 \x01(\x08\x12\x0f\n\x07\x65nd_key\x18\x07 \x01(\x0c\"U\n\x0fRawScanResponse\x12$\n\x0cregion_error\x18\x01 \x01(\x0b\x32\x0e.errorpb.Error\x12\x1c\n\x03kvs\x18\x02 \x03(\x0b\x32\x0f.kvrpcpb.KvPair\"j\n\x15RawDeleteRangeRequest\x12!\n\x07\x63ontext\x18\x01 \x01(\x0b\x32\x10.kvrpcpb.Context\x12\x11\n\tstart_key\x18\x02 \x01(\x0c\x12\x0f\n\x07\x65nd_key\x18\x03 \x01(\x0c\x12\n\n\x02\x63\x66\x18\x04 \x01(\t\"M\n\x16RawDeleteRangeResponse\x12$\n\x0cregion_error\x18\x01 \x01(\x0b\x32\x0e.errorpb.Error\x12\r\n\x05\x65rror\x18\x02 \x01(\t\"Q\n\x13RawGetKeyTTLRequest\x12!\n\x07\x63ontext\x18\x01 \x01(\x0b\x32\x10.kvrpcpb.Context\x12\x0b\n\x03key\x18\x02 \x01(\x0c\x12\n\n\x02\x63\x66\x18\x03 \x01(\t\"k\n\x14RawGetKeyTTLResponse\x12$\n\x0cregion_error\x18\x01 \x01(\x0b\x32\x0e.errorpb.Error\x12\r\n\x05\x65rror\x18\x02 \x01(\t\x12\x0b\n\x03ttl\x18\x03 \x01(\x04\x12\x11\n\tnot_found\x18\x04 \x01(\x08\"\x9b\x01\n\rRawCASRequest\x12!\n\x07\x63ontext\x18\x01 \x01(\x0b\x32\x10.kvrpcpb.Context\x12\x0b\n\x03key\x18\x02 \x01(\x0c\x12\r\n\x05value\x18\x03 \x01(\x0c\x12\x1a\n\x12previous_not_exist\x18\x04 \x01(\x08\x12\x16\n\x0eprevious_value\x18\x05 \x01(\x0c\x12\n\n\x02\x63\x66\x18\x06 \x01(\t\x12\x0b\n\x03ttl\x18\x07 \x01(\x04\"\x8a\x01\n\x0eRawCASResponse\x12$\n\x0cregion_error\x18\x01 \x01(\x0b\x32\x0e.errorpb.Error\x12\r\n\x05\x65rror\x18\x02 \x01(\t\x12\x0f\n\x07succeed\x18\x03 \x01(\x08\x12\x1a\n\x12previous_not_exist\x18\x04 \x01(\x08\x12\x16\n\x0eprevious_value\x18\x05 \x01(\x0c\"\x89\x01\n\x12RawChecksumRequest\x12!\n\x07\x63ontext\x18\x01 \x01(\x0b\x32\x10.kvrpcpb.Context\x12-\n\talgorithm\x18\x02 \x01(\x0e\x32\x1a.kvrpcpb.ChecksumAlgorithm\x12!\n\x06ranges\x18\x03 \x03(\x0b\x32\x11.kvrpcpb.KeyRange\"\x84\x01\n\x13RawChecksumResponse\x12$\n\x0cregion_error\x18\x01 \x01(\x0b\x32\x0e.errorpb.Error\x12\r\n\x05\x65rror\x18\x02 \x01(\t\x12\x10\n\x08\x63hecksum\x18\x03 \x01(\x04\x12\x11\n\ttotal_kvs\x18\x04 \x01(\x04\x12\x13\n\x0btotal_bytes\x18\x05 \x01(\x04*/\n\nAPIVersion\x12\x06\n\x02V1\x10\x00\x12\t\n\x05V1TTL\x10\x01\x12\x06\n\x02V2\x10\x02\x12\x06\n\x02V3\x10\x03*+\n\nCommandPri\x12\n\n\x06Normal\x10\x00\x12\x07\n\x03Low\x10\x01\x12\x08\n\x04High\x10\x02*\"\n\x11\x43hecksumAlgorithm\x12\r\n\tCrc64_Xor\x10\x00\x62\x06proto3')
|
|
21
|
+
|
|
22
|
+
_globals = globals()
|
|
23
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
24
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'kvrpcpb_pb2', _globals)
|
|
25
|
+
if _descriptor._USE_C_DESCRIPTORS == False:
|
|
26
|
+
DESCRIPTOR._options = None
|
|
27
|
+
_globals['_APIVERSION']._serialized_start=2896
|
|
28
|
+
_globals['_APIVERSION']._serialized_end=2943
|
|
29
|
+
_globals['_COMMANDPRI']._serialized_start=2945
|
|
30
|
+
_globals['_COMMANDPRI']._serialized_end=2988
|
|
31
|
+
_globals['_CHECKSUMALGORITHM']._serialized_start=2990
|
|
32
|
+
_globals['_CHECKSUMALGORITHM']._serialized_end=3024
|
|
33
|
+
_globals['_CONTEXT']._serialized_start=56
|
|
34
|
+
_globals['_CONTEXT']._serialized_end=423
|
|
35
|
+
_globals['_KEYERROR']._serialized_start=425
|
|
36
|
+
_globals['_KEYERROR']._serialized_end=469
|
|
37
|
+
_globals['_KVPAIR']._serialized_start=471
|
|
38
|
+
_globals['_KVPAIR']._serialized_end=541
|
|
39
|
+
_globals['_KEYRANGE']._serialized_start=543
|
|
40
|
+
_globals['_KEYRANGE']._serialized_end=589
|
|
41
|
+
_globals['_RAWGETREQUEST']._serialized_start=591
|
|
42
|
+
_globals['_RAWGETREQUEST']._serialized_end=666
|
|
43
|
+
_globals['_RAWGETRESPONSE']._serialized_start=668
|
|
44
|
+
_globals['_RAWGETRESPONSE']._serialized_end=771
|
|
45
|
+
_globals['_RAWBATCHGETREQUEST']._serialized_start=773
|
|
46
|
+
_globals['_RAWBATCHGETREQUEST']._serialized_end=854
|
|
47
|
+
_globals['_RAWBATCHGETRESPONSE']._serialized_start=856
|
|
48
|
+
_globals['_RAWBATCHGETRESPONSE']._serialized_end=947
|
|
49
|
+
_globals['_RAWPUTREQUEST']._serialized_start=949
|
|
50
|
+
_globals['_RAWPUTREQUEST']._serialized_end=1069
|
|
51
|
+
_globals['_RAWPUTRESPONSE']._serialized_start=1071
|
|
52
|
+
_globals['_RAWPUTRESPONSE']._serialized_end=1140
|
|
53
|
+
_globals['_RAWBATCHPUTREQUEST']._serialized_start=1143
|
|
54
|
+
_globals['_RAWBATCHPUTREQUEST']._serialized_end=1273
|
|
55
|
+
_globals['_RAWBATCHPUTRESPONSE']._serialized_start=1275
|
|
56
|
+
_globals['_RAWBATCHPUTRESPONSE']._serialized_end=1349
|
|
57
|
+
_globals['_RAWDELETEREQUEST']._serialized_start=1351
|
|
58
|
+
_globals['_RAWDELETEREQUEST']._serialized_end=1446
|
|
59
|
+
_globals['_RAWDELETERESPONSE']._serialized_start=1448
|
|
60
|
+
_globals['_RAWDELETERESPONSE']._serialized_end=1520
|
|
61
|
+
_globals['_RAWBATCHDELETEREQUEST']._serialized_start=1522
|
|
62
|
+
_globals['_RAWBATCHDELETEREQUEST']._serialized_end=1623
|
|
63
|
+
_globals['_RAWBATCHDELETERESPONSE']._serialized_start=1625
|
|
64
|
+
_globals['_RAWBATCHDELETERESPONSE']._serialized_end=1702
|
|
65
|
+
_globals['_RAWSCANREQUEST']._serialized_start=1705
|
|
66
|
+
_globals['_RAWSCANREQUEST']._serialized_end=1854
|
|
67
|
+
_globals['_RAWSCANRESPONSE']._serialized_start=1856
|
|
68
|
+
_globals['_RAWSCANRESPONSE']._serialized_end=1941
|
|
69
|
+
_globals['_RAWDELETERANGEREQUEST']._serialized_start=1943
|
|
70
|
+
_globals['_RAWDELETERANGEREQUEST']._serialized_end=2049
|
|
71
|
+
_globals['_RAWDELETERANGERESPONSE']._serialized_start=2051
|
|
72
|
+
_globals['_RAWDELETERANGERESPONSE']._serialized_end=2128
|
|
73
|
+
_globals['_RAWGETKEYTTLREQUEST']._serialized_start=2130
|
|
74
|
+
_globals['_RAWGETKEYTTLREQUEST']._serialized_end=2211
|
|
75
|
+
_globals['_RAWGETKEYTTLRESPONSE']._serialized_start=2213
|
|
76
|
+
_globals['_RAWGETKEYTTLRESPONSE']._serialized_end=2320
|
|
77
|
+
_globals['_RAWCASREQUEST']._serialized_start=2323
|
|
78
|
+
_globals['_RAWCASREQUEST']._serialized_end=2478
|
|
79
|
+
_globals['_RAWCASRESPONSE']._serialized_start=2481
|
|
80
|
+
_globals['_RAWCASRESPONSE']._serialized_end=2619
|
|
81
|
+
_globals['_RAWCHECKSUMREQUEST']._serialized_start=2622
|
|
82
|
+
_globals['_RAWCHECKSUMREQUEST']._serialized_end=2759
|
|
83
|
+
_globals['_RAWCHECKSUMRESPONSE']._serialized_start=2762
|
|
84
|
+
_globals['_RAWCHECKSUMRESPONSE']._serialized_end=2894
|
|
85
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,341 @@
|
|
|
1
|
+
# Generated by scripts/generate_protos.py. DO NOT EDIT.
|
|
2
|
+
from . import errorpb_pb2 as _errorpb_pb2
|
|
3
|
+
from . import metapb_pb2 as _metapb_pb2
|
|
4
|
+
from google.protobuf.internal import containers as _containers
|
|
5
|
+
from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper
|
|
6
|
+
from google.protobuf import descriptor as _descriptor
|
|
7
|
+
from google.protobuf import message as _message
|
|
8
|
+
from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union
|
|
9
|
+
|
|
10
|
+
DESCRIPTOR: _descriptor.FileDescriptor
|
|
11
|
+
|
|
12
|
+
class APIVersion(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
|
|
13
|
+
__slots__ = ()
|
|
14
|
+
V1: _ClassVar[APIVersion]
|
|
15
|
+
V1TTL: _ClassVar[APIVersion]
|
|
16
|
+
V2: _ClassVar[APIVersion]
|
|
17
|
+
V3: _ClassVar[APIVersion]
|
|
18
|
+
|
|
19
|
+
class CommandPri(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
|
|
20
|
+
__slots__ = ()
|
|
21
|
+
Normal: _ClassVar[CommandPri]
|
|
22
|
+
Low: _ClassVar[CommandPri]
|
|
23
|
+
High: _ClassVar[CommandPri]
|
|
24
|
+
|
|
25
|
+
class ChecksumAlgorithm(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
|
|
26
|
+
__slots__ = ()
|
|
27
|
+
Crc64_Xor: _ClassVar[ChecksumAlgorithm]
|
|
28
|
+
V1: APIVersion
|
|
29
|
+
V1TTL: APIVersion
|
|
30
|
+
V2: APIVersion
|
|
31
|
+
V3: APIVersion
|
|
32
|
+
Normal: CommandPri
|
|
33
|
+
Low: CommandPri
|
|
34
|
+
High: CommandPri
|
|
35
|
+
Crc64_Xor: ChecksumAlgorithm
|
|
36
|
+
|
|
37
|
+
class Context(_message.Message):
|
|
38
|
+
__slots__ = ("region_id", "region_epoch", "peer", "term", "priority", "not_fill_cache", "max_execution_duration_ms", "is_retry_request", "api_version", "request_source", "keyspace_name", "keyspace_id", "cluster_id")
|
|
39
|
+
REGION_ID_FIELD_NUMBER: _ClassVar[int]
|
|
40
|
+
REGION_EPOCH_FIELD_NUMBER: _ClassVar[int]
|
|
41
|
+
PEER_FIELD_NUMBER: _ClassVar[int]
|
|
42
|
+
TERM_FIELD_NUMBER: _ClassVar[int]
|
|
43
|
+
PRIORITY_FIELD_NUMBER: _ClassVar[int]
|
|
44
|
+
NOT_FILL_CACHE_FIELD_NUMBER: _ClassVar[int]
|
|
45
|
+
MAX_EXECUTION_DURATION_MS_FIELD_NUMBER: _ClassVar[int]
|
|
46
|
+
IS_RETRY_REQUEST_FIELD_NUMBER: _ClassVar[int]
|
|
47
|
+
API_VERSION_FIELD_NUMBER: _ClassVar[int]
|
|
48
|
+
REQUEST_SOURCE_FIELD_NUMBER: _ClassVar[int]
|
|
49
|
+
KEYSPACE_NAME_FIELD_NUMBER: _ClassVar[int]
|
|
50
|
+
KEYSPACE_ID_FIELD_NUMBER: _ClassVar[int]
|
|
51
|
+
CLUSTER_ID_FIELD_NUMBER: _ClassVar[int]
|
|
52
|
+
region_id: int
|
|
53
|
+
region_epoch: _metapb_pb2.RegionEpoch
|
|
54
|
+
peer: _metapb_pb2.Peer
|
|
55
|
+
term: int
|
|
56
|
+
priority: CommandPri
|
|
57
|
+
not_fill_cache: bool
|
|
58
|
+
max_execution_duration_ms: int
|
|
59
|
+
is_retry_request: bool
|
|
60
|
+
api_version: APIVersion
|
|
61
|
+
request_source: str
|
|
62
|
+
keyspace_name: str
|
|
63
|
+
keyspace_id: int
|
|
64
|
+
cluster_id: int
|
|
65
|
+
def __init__(self, region_id: _Optional[int] = ..., region_epoch: _Optional[_Union[_metapb_pb2.RegionEpoch, _Mapping]] = ..., peer: _Optional[_Union[_metapb_pb2.Peer, _Mapping]] = ..., term: _Optional[int] = ..., priority: _Optional[_Union[CommandPri, str]] = ..., not_fill_cache: bool = ..., max_execution_duration_ms: _Optional[int] = ..., is_retry_request: bool = ..., api_version: _Optional[_Union[APIVersion, str]] = ..., request_source: _Optional[str] = ..., keyspace_name: _Optional[str] = ..., keyspace_id: _Optional[int] = ..., cluster_id: _Optional[int] = ...) -> None: ...
|
|
66
|
+
|
|
67
|
+
class KeyError(_message.Message):
|
|
68
|
+
__slots__ = ("retryable", "abort")
|
|
69
|
+
RETRYABLE_FIELD_NUMBER: _ClassVar[int]
|
|
70
|
+
ABORT_FIELD_NUMBER: _ClassVar[int]
|
|
71
|
+
retryable: str
|
|
72
|
+
abort: str
|
|
73
|
+
def __init__(self, retryable: _Optional[str] = ..., abort: _Optional[str] = ...) -> None: ...
|
|
74
|
+
|
|
75
|
+
class KvPair(_message.Message):
|
|
76
|
+
__slots__ = ("error", "key", "value")
|
|
77
|
+
ERROR_FIELD_NUMBER: _ClassVar[int]
|
|
78
|
+
KEY_FIELD_NUMBER: _ClassVar[int]
|
|
79
|
+
VALUE_FIELD_NUMBER: _ClassVar[int]
|
|
80
|
+
error: KeyError
|
|
81
|
+
key: bytes
|
|
82
|
+
value: bytes
|
|
83
|
+
def __init__(self, error: _Optional[_Union[KeyError, _Mapping]] = ..., key: _Optional[bytes] = ..., value: _Optional[bytes] = ...) -> None: ...
|
|
84
|
+
|
|
85
|
+
class KeyRange(_message.Message):
|
|
86
|
+
__slots__ = ("start_key", "end_key")
|
|
87
|
+
START_KEY_FIELD_NUMBER: _ClassVar[int]
|
|
88
|
+
END_KEY_FIELD_NUMBER: _ClassVar[int]
|
|
89
|
+
start_key: bytes
|
|
90
|
+
end_key: bytes
|
|
91
|
+
def __init__(self, start_key: _Optional[bytes] = ..., end_key: _Optional[bytes] = ...) -> None: ...
|
|
92
|
+
|
|
93
|
+
class RawGetRequest(_message.Message):
|
|
94
|
+
__slots__ = ("context", "key", "cf")
|
|
95
|
+
CONTEXT_FIELD_NUMBER: _ClassVar[int]
|
|
96
|
+
KEY_FIELD_NUMBER: _ClassVar[int]
|
|
97
|
+
CF_FIELD_NUMBER: _ClassVar[int]
|
|
98
|
+
context: Context
|
|
99
|
+
key: bytes
|
|
100
|
+
cf: str
|
|
101
|
+
def __init__(self, context: _Optional[_Union[Context, _Mapping]] = ..., key: _Optional[bytes] = ..., cf: _Optional[str] = ...) -> None: ...
|
|
102
|
+
|
|
103
|
+
class RawGetResponse(_message.Message):
|
|
104
|
+
__slots__ = ("region_error", "error", "value", "not_found")
|
|
105
|
+
REGION_ERROR_FIELD_NUMBER: _ClassVar[int]
|
|
106
|
+
ERROR_FIELD_NUMBER: _ClassVar[int]
|
|
107
|
+
VALUE_FIELD_NUMBER: _ClassVar[int]
|
|
108
|
+
NOT_FOUND_FIELD_NUMBER: _ClassVar[int]
|
|
109
|
+
region_error: _errorpb_pb2.Error
|
|
110
|
+
error: str
|
|
111
|
+
value: bytes
|
|
112
|
+
not_found: bool
|
|
113
|
+
def __init__(self, region_error: _Optional[_Union[_errorpb_pb2.Error, _Mapping]] = ..., error: _Optional[str] = ..., value: _Optional[bytes] = ..., not_found: bool = ...) -> None: ...
|
|
114
|
+
|
|
115
|
+
class RawBatchGetRequest(_message.Message):
|
|
116
|
+
__slots__ = ("context", "keys", "cf")
|
|
117
|
+
CONTEXT_FIELD_NUMBER: _ClassVar[int]
|
|
118
|
+
KEYS_FIELD_NUMBER: _ClassVar[int]
|
|
119
|
+
CF_FIELD_NUMBER: _ClassVar[int]
|
|
120
|
+
context: Context
|
|
121
|
+
keys: _containers.RepeatedScalarFieldContainer[bytes]
|
|
122
|
+
cf: str
|
|
123
|
+
def __init__(self, context: _Optional[_Union[Context, _Mapping]] = ..., keys: _Optional[_Iterable[bytes]] = ..., cf: _Optional[str] = ...) -> None: ...
|
|
124
|
+
|
|
125
|
+
class RawBatchGetResponse(_message.Message):
|
|
126
|
+
__slots__ = ("region_error", "pairs")
|
|
127
|
+
REGION_ERROR_FIELD_NUMBER: _ClassVar[int]
|
|
128
|
+
PAIRS_FIELD_NUMBER: _ClassVar[int]
|
|
129
|
+
region_error: _errorpb_pb2.Error
|
|
130
|
+
pairs: _containers.RepeatedCompositeFieldContainer[KvPair]
|
|
131
|
+
def __init__(self, region_error: _Optional[_Union[_errorpb_pb2.Error, _Mapping]] = ..., pairs: _Optional[_Iterable[_Union[KvPair, _Mapping]]] = ...) -> None: ...
|
|
132
|
+
|
|
133
|
+
class RawPutRequest(_message.Message):
|
|
134
|
+
__slots__ = ("context", "key", "value", "cf", "ttl", "for_cas")
|
|
135
|
+
CONTEXT_FIELD_NUMBER: _ClassVar[int]
|
|
136
|
+
KEY_FIELD_NUMBER: _ClassVar[int]
|
|
137
|
+
VALUE_FIELD_NUMBER: _ClassVar[int]
|
|
138
|
+
CF_FIELD_NUMBER: _ClassVar[int]
|
|
139
|
+
TTL_FIELD_NUMBER: _ClassVar[int]
|
|
140
|
+
FOR_CAS_FIELD_NUMBER: _ClassVar[int]
|
|
141
|
+
context: Context
|
|
142
|
+
key: bytes
|
|
143
|
+
value: bytes
|
|
144
|
+
cf: str
|
|
145
|
+
ttl: int
|
|
146
|
+
for_cas: bool
|
|
147
|
+
def __init__(self, context: _Optional[_Union[Context, _Mapping]] = ..., key: _Optional[bytes] = ..., value: _Optional[bytes] = ..., cf: _Optional[str] = ..., ttl: _Optional[int] = ..., for_cas: bool = ...) -> None: ...
|
|
148
|
+
|
|
149
|
+
class RawPutResponse(_message.Message):
|
|
150
|
+
__slots__ = ("region_error", "error")
|
|
151
|
+
REGION_ERROR_FIELD_NUMBER: _ClassVar[int]
|
|
152
|
+
ERROR_FIELD_NUMBER: _ClassVar[int]
|
|
153
|
+
region_error: _errorpb_pb2.Error
|
|
154
|
+
error: str
|
|
155
|
+
def __init__(self, region_error: _Optional[_Union[_errorpb_pb2.Error, _Mapping]] = ..., error: _Optional[str] = ...) -> None: ...
|
|
156
|
+
|
|
157
|
+
class RawBatchPutRequest(_message.Message):
|
|
158
|
+
__slots__ = ("context", "pairs", "cf", "for_cas", "ttls")
|
|
159
|
+
CONTEXT_FIELD_NUMBER: _ClassVar[int]
|
|
160
|
+
PAIRS_FIELD_NUMBER: _ClassVar[int]
|
|
161
|
+
CF_FIELD_NUMBER: _ClassVar[int]
|
|
162
|
+
FOR_CAS_FIELD_NUMBER: _ClassVar[int]
|
|
163
|
+
TTLS_FIELD_NUMBER: _ClassVar[int]
|
|
164
|
+
context: Context
|
|
165
|
+
pairs: _containers.RepeatedCompositeFieldContainer[KvPair]
|
|
166
|
+
cf: str
|
|
167
|
+
for_cas: bool
|
|
168
|
+
ttls: _containers.RepeatedScalarFieldContainer[int]
|
|
169
|
+
def __init__(self, context: _Optional[_Union[Context, _Mapping]] = ..., pairs: _Optional[_Iterable[_Union[KvPair, _Mapping]]] = ..., cf: _Optional[str] = ..., for_cas: bool = ..., ttls: _Optional[_Iterable[int]] = ...) -> None: ...
|
|
170
|
+
|
|
171
|
+
class RawBatchPutResponse(_message.Message):
|
|
172
|
+
__slots__ = ("region_error", "error")
|
|
173
|
+
REGION_ERROR_FIELD_NUMBER: _ClassVar[int]
|
|
174
|
+
ERROR_FIELD_NUMBER: _ClassVar[int]
|
|
175
|
+
region_error: _errorpb_pb2.Error
|
|
176
|
+
error: str
|
|
177
|
+
def __init__(self, region_error: _Optional[_Union[_errorpb_pb2.Error, _Mapping]] = ..., error: _Optional[str] = ...) -> None: ...
|
|
178
|
+
|
|
179
|
+
class RawDeleteRequest(_message.Message):
|
|
180
|
+
__slots__ = ("context", "key", "cf", "for_cas")
|
|
181
|
+
CONTEXT_FIELD_NUMBER: _ClassVar[int]
|
|
182
|
+
KEY_FIELD_NUMBER: _ClassVar[int]
|
|
183
|
+
CF_FIELD_NUMBER: _ClassVar[int]
|
|
184
|
+
FOR_CAS_FIELD_NUMBER: _ClassVar[int]
|
|
185
|
+
context: Context
|
|
186
|
+
key: bytes
|
|
187
|
+
cf: str
|
|
188
|
+
for_cas: bool
|
|
189
|
+
def __init__(self, context: _Optional[_Union[Context, _Mapping]] = ..., key: _Optional[bytes] = ..., cf: _Optional[str] = ..., for_cas: bool = ...) -> None: ...
|
|
190
|
+
|
|
191
|
+
class RawDeleteResponse(_message.Message):
|
|
192
|
+
__slots__ = ("region_error", "error")
|
|
193
|
+
REGION_ERROR_FIELD_NUMBER: _ClassVar[int]
|
|
194
|
+
ERROR_FIELD_NUMBER: _ClassVar[int]
|
|
195
|
+
region_error: _errorpb_pb2.Error
|
|
196
|
+
error: str
|
|
197
|
+
def __init__(self, region_error: _Optional[_Union[_errorpb_pb2.Error, _Mapping]] = ..., error: _Optional[str] = ...) -> None: ...
|
|
198
|
+
|
|
199
|
+
class RawBatchDeleteRequest(_message.Message):
|
|
200
|
+
__slots__ = ("context", "keys", "cf", "for_cas")
|
|
201
|
+
CONTEXT_FIELD_NUMBER: _ClassVar[int]
|
|
202
|
+
KEYS_FIELD_NUMBER: _ClassVar[int]
|
|
203
|
+
CF_FIELD_NUMBER: _ClassVar[int]
|
|
204
|
+
FOR_CAS_FIELD_NUMBER: _ClassVar[int]
|
|
205
|
+
context: Context
|
|
206
|
+
keys: _containers.RepeatedScalarFieldContainer[bytes]
|
|
207
|
+
cf: str
|
|
208
|
+
for_cas: bool
|
|
209
|
+
def __init__(self, context: _Optional[_Union[Context, _Mapping]] = ..., keys: _Optional[_Iterable[bytes]] = ..., cf: _Optional[str] = ..., for_cas: bool = ...) -> None: ...
|
|
210
|
+
|
|
211
|
+
class RawBatchDeleteResponse(_message.Message):
|
|
212
|
+
__slots__ = ("region_error", "error")
|
|
213
|
+
REGION_ERROR_FIELD_NUMBER: _ClassVar[int]
|
|
214
|
+
ERROR_FIELD_NUMBER: _ClassVar[int]
|
|
215
|
+
region_error: _errorpb_pb2.Error
|
|
216
|
+
error: str
|
|
217
|
+
def __init__(self, region_error: _Optional[_Union[_errorpb_pb2.Error, _Mapping]] = ..., error: _Optional[str] = ...) -> None: ...
|
|
218
|
+
|
|
219
|
+
class RawScanRequest(_message.Message):
|
|
220
|
+
__slots__ = ("context", "start_key", "limit", "key_only", "cf", "reverse", "end_key")
|
|
221
|
+
CONTEXT_FIELD_NUMBER: _ClassVar[int]
|
|
222
|
+
START_KEY_FIELD_NUMBER: _ClassVar[int]
|
|
223
|
+
LIMIT_FIELD_NUMBER: _ClassVar[int]
|
|
224
|
+
KEY_ONLY_FIELD_NUMBER: _ClassVar[int]
|
|
225
|
+
CF_FIELD_NUMBER: _ClassVar[int]
|
|
226
|
+
REVERSE_FIELD_NUMBER: _ClassVar[int]
|
|
227
|
+
END_KEY_FIELD_NUMBER: _ClassVar[int]
|
|
228
|
+
context: Context
|
|
229
|
+
start_key: bytes
|
|
230
|
+
limit: int
|
|
231
|
+
key_only: bool
|
|
232
|
+
cf: str
|
|
233
|
+
reverse: bool
|
|
234
|
+
end_key: bytes
|
|
235
|
+
def __init__(self, context: _Optional[_Union[Context, _Mapping]] = ..., start_key: _Optional[bytes] = ..., limit: _Optional[int] = ..., key_only: bool = ..., cf: _Optional[str] = ..., reverse: bool = ..., end_key: _Optional[bytes] = ...) -> None: ...
|
|
236
|
+
|
|
237
|
+
class RawScanResponse(_message.Message):
|
|
238
|
+
__slots__ = ("region_error", "kvs")
|
|
239
|
+
REGION_ERROR_FIELD_NUMBER: _ClassVar[int]
|
|
240
|
+
KVS_FIELD_NUMBER: _ClassVar[int]
|
|
241
|
+
region_error: _errorpb_pb2.Error
|
|
242
|
+
kvs: _containers.RepeatedCompositeFieldContainer[KvPair]
|
|
243
|
+
def __init__(self, region_error: _Optional[_Union[_errorpb_pb2.Error, _Mapping]] = ..., kvs: _Optional[_Iterable[_Union[KvPair, _Mapping]]] = ...) -> None: ...
|
|
244
|
+
|
|
245
|
+
class RawDeleteRangeRequest(_message.Message):
|
|
246
|
+
__slots__ = ("context", "start_key", "end_key", "cf")
|
|
247
|
+
CONTEXT_FIELD_NUMBER: _ClassVar[int]
|
|
248
|
+
START_KEY_FIELD_NUMBER: _ClassVar[int]
|
|
249
|
+
END_KEY_FIELD_NUMBER: _ClassVar[int]
|
|
250
|
+
CF_FIELD_NUMBER: _ClassVar[int]
|
|
251
|
+
context: Context
|
|
252
|
+
start_key: bytes
|
|
253
|
+
end_key: bytes
|
|
254
|
+
cf: str
|
|
255
|
+
def __init__(self, context: _Optional[_Union[Context, _Mapping]] = ..., start_key: _Optional[bytes] = ..., end_key: _Optional[bytes] = ..., cf: _Optional[str] = ...) -> None: ...
|
|
256
|
+
|
|
257
|
+
class RawDeleteRangeResponse(_message.Message):
|
|
258
|
+
__slots__ = ("region_error", "error")
|
|
259
|
+
REGION_ERROR_FIELD_NUMBER: _ClassVar[int]
|
|
260
|
+
ERROR_FIELD_NUMBER: _ClassVar[int]
|
|
261
|
+
region_error: _errorpb_pb2.Error
|
|
262
|
+
error: str
|
|
263
|
+
def __init__(self, region_error: _Optional[_Union[_errorpb_pb2.Error, _Mapping]] = ..., error: _Optional[str] = ...) -> None: ...
|
|
264
|
+
|
|
265
|
+
class RawGetKeyTTLRequest(_message.Message):
|
|
266
|
+
__slots__ = ("context", "key", "cf")
|
|
267
|
+
CONTEXT_FIELD_NUMBER: _ClassVar[int]
|
|
268
|
+
KEY_FIELD_NUMBER: _ClassVar[int]
|
|
269
|
+
CF_FIELD_NUMBER: _ClassVar[int]
|
|
270
|
+
context: Context
|
|
271
|
+
key: bytes
|
|
272
|
+
cf: str
|
|
273
|
+
def __init__(self, context: _Optional[_Union[Context, _Mapping]] = ..., key: _Optional[bytes] = ..., cf: _Optional[str] = ...) -> None: ...
|
|
274
|
+
|
|
275
|
+
class RawGetKeyTTLResponse(_message.Message):
|
|
276
|
+
__slots__ = ("region_error", "error", "ttl", "not_found")
|
|
277
|
+
REGION_ERROR_FIELD_NUMBER: _ClassVar[int]
|
|
278
|
+
ERROR_FIELD_NUMBER: _ClassVar[int]
|
|
279
|
+
TTL_FIELD_NUMBER: _ClassVar[int]
|
|
280
|
+
NOT_FOUND_FIELD_NUMBER: _ClassVar[int]
|
|
281
|
+
region_error: _errorpb_pb2.Error
|
|
282
|
+
error: str
|
|
283
|
+
ttl: int
|
|
284
|
+
not_found: bool
|
|
285
|
+
def __init__(self, region_error: _Optional[_Union[_errorpb_pb2.Error, _Mapping]] = ..., error: _Optional[str] = ..., ttl: _Optional[int] = ..., not_found: bool = ...) -> None: ...
|
|
286
|
+
|
|
287
|
+
class RawCASRequest(_message.Message):
|
|
288
|
+
__slots__ = ("context", "key", "value", "previous_not_exist", "previous_value", "cf", "ttl")
|
|
289
|
+
CONTEXT_FIELD_NUMBER: _ClassVar[int]
|
|
290
|
+
KEY_FIELD_NUMBER: _ClassVar[int]
|
|
291
|
+
VALUE_FIELD_NUMBER: _ClassVar[int]
|
|
292
|
+
PREVIOUS_NOT_EXIST_FIELD_NUMBER: _ClassVar[int]
|
|
293
|
+
PREVIOUS_VALUE_FIELD_NUMBER: _ClassVar[int]
|
|
294
|
+
CF_FIELD_NUMBER: _ClassVar[int]
|
|
295
|
+
TTL_FIELD_NUMBER: _ClassVar[int]
|
|
296
|
+
context: Context
|
|
297
|
+
key: bytes
|
|
298
|
+
value: bytes
|
|
299
|
+
previous_not_exist: bool
|
|
300
|
+
previous_value: bytes
|
|
301
|
+
cf: str
|
|
302
|
+
ttl: int
|
|
303
|
+
def __init__(self, context: _Optional[_Union[Context, _Mapping]] = ..., key: _Optional[bytes] = ..., value: _Optional[bytes] = ..., previous_not_exist: bool = ..., previous_value: _Optional[bytes] = ..., cf: _Optional[str] = ..., ttl: _Optional[int] = ...) -> None: ...
|
|
304
|
+
|
|
305
|
+
class RawCASResponse(_message.Message):
|
|
306
|
+
__slots__ = ("region_error", "error", "succeed", "previous_not_exist", "previous_value")
|
|
307
|
+
REGION_ERROR_FIELD_NUMBER: _ClassVar[int]
|
|
308
|
+
ERROR_FIELD_NUMBER: _ClassVar[int]
|
|
309
|
+
SUCCEED_FIELD_NUMBER: _ClassVar[int]
|
|
310
|
+
PREVIOUS_NOT_EXIST_FIELD_NUMBER: _ClassVar[int]
|
|
311
|
+
PREVIOUS_VALUE_FIELD_NUMBER: _ClassVar[int]
|
|
312
|
+
region_error: _errorpb_pb2.Error
|
|
313
|
+
error: str
|
|
314
|
+
succeed: bool
|
|
315
|
+
previous_not_exist: bool
|
|
316
|
+
previous_value: bytes
|
|
317
|
+
def __init__(self, region_error: _Optional[_Union[_errorpb_pb2.Error, _Mapping]] = ..., error: _Optional[str] = ..., succeed: bool = ..., previous_not_exist: bool = ..., previous_value: _Optional[bytes] = ...) -> None: ...
|
|
318
|
+
|
|
319
|
+
class RawChecksumRequest(_message.Message):
|
|
320
|
+
__slots__ = ("context", "algorithm", "ranges")
|
|
321
|
+
CONTEXT_FIELD_NUMBER: _ClassVar[int]
|
|
322
|
+
ALGORITHM_FIELD_NUMBER: _ClassVar[int]
|
|
323
|
+
RANGES_FIELD_NUMBER: _ClassVar[int]
|
|
324
|
+
context: Context
|
|
325
|
+
algorithm: ChecksumAlgorithm
|
|
326
|
+
ranges: _containers.RepeatedCompositeFieldContainer[KeyRange]
|
|
327
|
+
def __init__(self, context: _Optional[_Union[Context, _Mapping]] = ..., algorithm: _Optional[_Union[ChecksumAlgorithm, str]] = ..., ranges: _Optional[_Iterable[_Union[KeyRange, _Mapping]]] = ...) -> None: ...
|
|
328
|
+
|
|
329
|
+
class RawChecksumResponse(_message.Message):
|
|
330
|
+
__slots__ = ("region_error", "error", "checksum", "total_kvs", "total_bytes")
|
|
331
|
+
REGION_ERROR_FIELD_NUMBER: _ClassVar[int]
|
|
332
|
+
ERROR_FIELD_NUMBER: _ClassVar[int]
|
|
333
|
+
CHECKSUM_FIELD_NUMBER: _ClassVar[int]
|
|
334
|
+
TOTAL_KVS_FIELD_NUMBER: _ClassVar[int]
|
|
335
|
+
TOTAL_BYTES_FIELD_NUMBER: _ClassVar[int]
|
|
336
|
+
region_error: _errorpb_pb2.Error
|
|
337
|
+
error: str
|
|
338
|
+
checksum: int
|
|
339
|
+
total_kvs: int
|
|
340
|
+
total_bytes: int
|
|
341
|
+
def __init__(self, region_error: _Optional[_Union[_errorpb_pb2.Error, _Mapping]] = ..., error: _Optional[str] = ..., checksum: _Optional[int] = ..., total_kvs: _Optional[int] = ..., total_bytes: _Optional[int] = ...) -> None: ...
|