yellowstone-fumarole-client 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.
- yellowstone_fumarole_client/__init__.py +297 -0
- yellowstone_fumarole_client/config.py +26 -0
- yellowstone_fumarole_client/grpc_connectivity.py +197 -0
- yellowstone_fumarole_client/runtime/__init__.py +0 -0
- yellowstone_fumarole_client/runtime/aio.py +525 -0
- yellowstone_fumarole_client/runtime/state_machine.py +326 -0
- yellowstone_fumarole_client/utils/__init__.py +0 -0
- yellowstone_fumarole_client/utils/aio.py +29 -0
- yellowstone_fumarole_client/utils/collections.py +37 -0
- yellowstone_fumarole_client-0.1.0.dist-info/METADATA +110 -0
- yellowstone_fumarole_client-0.1.0.dist-info/RECORD +22 -0
- yellowstone_fumarole_client-0.1.0.dist-info/WHEEL +4 -0
- yellowstone_fumarole_proto/__init__.py +0 -0
- yellowstone_fumarole_proto/fumarole_v2_pb2.py +122 -0
- yellowstone_fumarole_proto/fumarole_v2_pb2.pyi +328 -0
- yellowstone_fumarole_proto/fumarole_v2_pb2_grpc.py +400 -0
- yellowstone_fumarole_proto/geyser_pb2.py +144 -0
- yellowstone_fumarole_proto/geyser_pb2.pyi +501 -0
- yellowstone_fumarole_proto/geyser_pb2_grpc.py +355 -0
- yellowstone_fumarole_proto/solana_storage_pb2.py +75 -0
- yellowstone_fumarole_proto/solana_storage_pb2.pyi +238 -0
- yellowstone_fumarole_proto/solana_storage_pb2_grpc.py +24 -0
@@ -0,0 +1,328 @@
|
|
1
|
+
import yellowstone_fumarole_proto.geyser_pb2 as _geyser_pb2
|
2
|
+
import yellowstone_fumarole_proto.solana_storage_pb2 as _solana_storage_pb2
|
3
|
+
from google.protobuf.internal import containers as _containers
|
4
|
+
from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper
|
5
|
+
from google.protobuf import descriptor as _descriptor
|
6
|
+
from google.protobuf import message as _message
|
7
|
+
from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union
|
8
|
+
from yellowstone_fumarole_proto.geyser_pb2 import SubscribeRequest as SubscribeRequest
|
9
|
+
from yellowstone_fumarole_proto.geyser_pb2 import SubscribeRequestFilterAccounts as SubscribeRequestFilterAccounts
|
10
|
+
from yellowstone_fumarole_proto.geyser_pb2 import SubscribeRequestFilterAccountsFilter as SubscribeRequestFilterAccountsFilter
|
11
|
+
from yellowstone_fumarole_proto.geyser_pb2 import SubscribeRequestFilterAccountsFilterMemcmp as SubscribeRequestFilterAccountsFilterMemcmp
|
12
|
+
from yellowstone_fumarole_proto.geyser_pb2 import SubscribeRequestFilterAccountsFilterLamports as SubscribeRequestFilterAccountsFilterLamports
|
13
|
+
from yellowstone_fumarole_proto.geyser_pb2 import SubscribeRequestFilterSlots as SubscribeRequestFilterSlots
|
14
|
+
from yellowstone_fumarole_proto.geyser_pb2 import SubscribeRequestFilterTransactions as SubscribeRequestFilterTransactions
|
15
|
+
from yellowstone_fumarole_proto.geyser_pb2 import SubscribeRequestFilterBlocks as SubscribeRequestFilterBlocks
|
16
|
+
from yellowstone_fumarole_proto.geyser_pb2 import SubscribeRequestFilterBlocksMeta as SubscribeRequestFilterBlocksMeta
|
17
|
+
from yellowstone_fumarole_proto.geyser_pb2 import SubscribeRequestFilterEntry as SubscribeRequestFilterEntry
|
18
|
+
from yellowstone_fumarole_proto.geyser_pb2 import SubscribeRequestAccountsDataSlice as SubscribeRequestAccountsDataSlice
|
19
|
+
from yellowstone_fumarole_proto.geyser_pb2 import SubscribeRequestPing as SubscribeRequestPing
|
20
|
+
from yellowstone_fumarole_proto.geyser_pb2 import SubscribeUpdate as SubscribeUpdate
|
21
|
+
from yellowstone_fumarole_proto.geyser_pb2 import SubscribeUpdateAccount as SubscribeUpdateAccount
|
22
|
+
from yellowstone_fumarole_proto.geyser_pb2 import SubscribeUpdateAccountInfo as SubscribeUpdateAccountInfo
|
23
|
+
from yellowstone_fumarole_proto.geyser_pb2 import SubscribeUpdateSlot as SubscribeUpdateSlot
|
24
|
+
from yellowstone_fumarole_proto.geyser_pb2 import SubscribeUpdateTransaction as SubscribeUpdateTransaction
|
25
|
+
from yellowstone_fumarole_proto.geyser_pb2 import SubscribeUpdateTransactionInfo as SubscribeUpdateTransactionInfo
|
26
|
+
from yellowstone_fumarole_proto.geyser_pb2 import SubscribeUpdateTransactionStatus as SubscribeUpdateTransactionStatus
|
27
|
+
from yellowstone_fumarole_proto.geyser_pb2 import SubscribeUpdateBlock as SubscribeUpdateBlock
|
28
|
+
from yellowstone_fumarole_proto.geyser_pb2 import SubscribeUpdateBlockMeta as SubscribeUpdateBlockMeta
|
29
|
+
from yellowstone_fumarole_proto.geyser_pb2 import SubscribeUpdateEntry as SubscribeUpdateEntry
|
30
|
+
from yellowstone_fumarole_proto.geyser_pb2 import SubscribeUpdatePing as SubscribeUpdatePing
|
31
|
+
from yellowstone_fumarole_proto.geyser_pb2 import SubscribeUpdatePong as SubscribeUpdatePong
|
32
|
+
from yellowstone_fumarole_proto.geyser_pb2 import PingRequest as PingRequest
|
33
|
+
from yellowstone_fumarole_proto.geyser_pb2 import PongResponse as PongResponse
|
34
|
+
from yellowstone_fumarole_proto.geyser_pb2 import GetLatestBlockhashRequest as GetLatestBlockhashRequest
|
35
|
+
from yellowstone_fumarole_proto.geyser_pb2 import GetLatestBlockhashResponse as GetLatestBlockhashResponse
|
36
|
+
from yellowstone_fumarole_proto.geyser_pb2 import GetBlockHeightRequest as GetBlockHeightRequest
|
37
|
+
from yellowstone_fumarole_proto.geyser_pb2 import GetBlockHeightResponse as GetBlockHeightResponse
|
38
|
+
from yellowstone_fumarole_proto.geyser_pb2 import GetSlotRequest as GetSlotRequest
|
39
|
+
from yellowstone_fumarole_proto.geyser_pb2 import GetSlotResponse as GetSlotResponse
|
40
|
+
from yellowstone_fumarole_proto.geyser_pb2 import GetVersionRequest as GetVersionRequest
|
41
|
+
from yellowstone_fumarole_proto.geyser_pb2 import GetVersionResponse as GetVersionResponse
|
42
|
+
from yellowstone_fumarole_proto.geyser_pb2 import IsBlockhashValidRequest as IsBlockhashValidRequest
|
43
|
+
from yellowstone_fumarole_proto.geyser_pb2 import IsBlockhashValidResponse as IsBlockhashValidResponse
|
44
|
+
from yellowstone_fumarole_proto.geyser_pb2 import CommitmentLevel as CommitmentLevel
|
45
|
+
from yellowstone_fumarole_proto.geyser_pb2 import SlotStatus as SlotStatus
|
46
|
+
|
47
|
+
DESCRIPTOR: _descriptor.FileDescriptor
|
48
|
+
PROCESSED: _geyser_pb2.CommitmentLevel
|
49
|
+
CONFIRMED: _geyser_pb2.CommitmentLevel
|
50
|
+
FINALIZED: _geyser_pb2.CommitmentLevel
|
51
|
+
SLOT_PROCESSED: _geyser_pb2.SlotStatus
|
52
|
+
SLOT_CONFIRMED: _geyser_pb2.SlotStatus
|
53
|
+
SLOT_FINALIZED: _geyser_pb2.SlotStatus
|
54
|
+
SLOT_FIRST_SHRED_RECEIVED: _geyser_pb2.SlotStatus
|
55
|
+
SLOT_COMPLETED: _geyser_pb2.SlotStatus
|
56
|
+
SLOT_CREATED_BANK: _geyser_pb2.SlotStatus
|
57
|
+
SLOT_DEAD: _geyser_pb2.SlotStatus
|
58
|
+
|
59
|
+
class InitialOffsetPolicy(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
|
60
|
+
__slots__ = ()
|
61
|
+
LATEST: _ClassVar[InitialOffsetPolicy]
|
62
|
+
LATEST: InitialOffsetPolicy
|
63
|
+
|
64
|
+
class VersionRequest(_message.Message):
|
65
|
+
__slots__ = ()
|
66
|
+
def __init__(self) -> None: ...
|
67
|
+
|
68
|
+
class VersionResponse(_message.Message):
|
69
|
+
__slots__ = ("version",)
|
70
|
+
VERSION_FIELD_NUMBER: _ClassVar[int]
|
71
|
+
version: str
|
72
|
+
def __init__(self, version: _Optional[str] = ...) -> None: ...
|
73
|
+
|
74
|
+
class GetConsumerGroupInfoRequest(_message.Message):
|
75
|
+
__slots__ = ("consumer_group_name",)
|
76
|
+
CONSUMER_GROUP_NAME_FIELD_NUMBER: _ClassVar[int]
|
77
|
+
consumer_group_name: str
|
78
|
+
def __init__(self, consumer_group_name: _Optional[str] = ...) -> None: ...
|
79
|
+
|
80
|
+
class DeleteConsumerGroupRequest(_message.Message):
|
81
|
+
__slots__ = ("consumer_group_name",)
|
82
|
+
CONSUMER_GROUP_NAME_FIELD_NUMBER: _ClassVar[int]
|
83
|
+
consumer_group_name: str
|
84
|
+
def __init__(self, consumer_group_name: _Optional[str] = ...) -> None: ...
|
85
|
+
|
86
|
+
class DeleteConsumerGroupResponse(_message.Message):
|
87
|
+
__slots__ = ("success",)
|
88
|
+
SUCCESS_FIELD_NUMBER: _ClassVar[int]
|
89
|
+
success: bool
|
90
|
+
def __init__(self, success: bool = ...) -> None: ...
|
91
|
+
|
92
|
+
class ListConsumerGroupsRequest(_message.Message):
|
93
|
+
__slots__ = ()
|
94
|
+
def __init__(self) -> None: ...
|
95
|
+
|
96
|
+
class ListConsumerGroupsResponse(_message.Message):
|
97
|
+
__slots__ = ("consumer_groups",)
|
98
|
+
CONSUMER_GROUPS_FIELD_NUMBER: _ClassVar[int]
|
99
|
+
consumer_groups: _containers.RepeatedCompositeFieldContainer[ConsumerGroupInfo]
|
100
|
+
def __init__(self, consumer_groups: _Optional[_Iterable[_Union[ConsumerGroupInfo, _Mapping]]] = ...) -> None: ...
|
101
|
+
|
102
|
+
class ConsumerGroupInfo(_message.Message):
|
103
|
+
__slots__ = ("id", "consumer_group_name", "is_stale")
|
104
|
+
ID_FIELD_NUMBER: _ClassVar[int]
|
105
|
+
CONSUMER_GROUP_NAME_FIELD_NUMBER: _ClassVar[int]
|
106
|
+
IS_STALE_FIELD_NUMBER: _ClassVar[int]
|
107
|
+
id: str
|
108
|
+
consumer_group_name: str
|
109
|
+
is_stale: bool
|
110
|
+
def __init__(self, id: _Optional[str] = ..., consumer_group_name: _Optional[str] = ..., is_stale: bool = ...) -> None: ...
|
111
|
+
|
112
|
+
class GetSlotLagInfoRequest(_message.Message):
|
113
|
+
__slots__ = ("consumer_group_name",)
|
114
|
+
CONSUMER_GROUP_NAME_FIELD_NUMBER: _ClassVar[int]
|
115
|
+
consumer_group_name: str
|
116
|
+
def __init__(self, consumer_group_name: _Optional[str] = ...) -> None: ...
|
117
|
+
|
118
|
+
class BlockFilters(_message.Message):
|
119
|
+
__slots__ = ("accounts", "transactions", "entries", "blocks_meta")
|
120
|
+
class AccountsEntry(_message.Message):
|
121
|
+
__slots__ = ("key", "value")
|
122
|
+
KEY_FIELD_NUMBER: _ClassVar[int]
|
123
|
+
VALUE_FIELD_NUMBER: _ClassVar[int]
|
124
|
+
key: str
|
125
|
+
value: _geyser_pb2.SubscribeRequestFilterAccounts
|
126
|
+
def __init__(self, key: _Optional[str] = ..., value: _Optional[_Union[_geyser_pb2.SubscribeRequestFilterAccounts, _Mapping]] = ...) -> None: ...
|
127
|
+
class TransactionsEntry(_message.Message):
|
128
|
+
__slots__ = ("key", "value")
|
129
|
+
KEY_FIELD_NUMBER: _ClassVar[int]
|
130
|
+
VALUE_FIELD_NUMBER: _ClassVar[int]
|
131
|
+
key: str
|
132
|
+
value: _geyser_pb2.SubscribeRequestFilterTransactions
|
133
|
+
def __init__(self, key: _Optional[str] = ..., value: _Optional[_Union[_geyser_pb2.SubscribeRequestFilterTransactions, _Mapping]] = ...) -> None: ...
|
134
|
+
class EntriesEntry(_message.Message):
|
135
|
+
__slots__ = ("key", "value")
|
136
|
+
KEY_FIELD_NUMBER: _ClassVar[int]
|
137
|
+
VALUE_FIELD_NUMBER: _ClassVar[int]
|
138
|
+
key: str
|
139
|
+
value: _geyser_pb2.SubscribeRequestFilterEntry
|
140
|
+
def __init__(self, key: _Optional[str] = ..., value: _Optional[_Union[_geyser_pb2.SubscribeRequestFilterEntry, _Mapping]] = ...) -> None: ...
|
141
|
+
class BlocksMetaEntry(_message.Message):
|
142
|
+
__slots__ = ("key", "value")
|
143
|
+
KEY_FIELD_NUMBER: _ClassVar[int]
|
144
|
+
VALUE_FIELD_NUMBER: _ClassVar[int]
|
145
|
+
key: str
|
146
|
+
value: _geyser_pb2.SubscribeRequestFilterBlocksMeta
|
147
|
+
def __init__(self, key: _Optional[str] = ..., value: _Optional[_Union[_geyser_pb2.SubscribeRequestFilterBlocksMeta, _Mapping]] = ...) -> None: ...
|
148
|
+
ACCOUNTS_FIELD_NUMBER: _ClassVar[int]
|
149
|
+
TRANSACTIONS_FIELD_NUMBER: _ClassVar[int]
|
150
|
+
ENTRIES_FIELD_NUMBER: _ClassVar[int]
|
151
|
+
BLOCKS_META_FIELD_NUMBER: _ClassVar[int]
|
152
|
+
accounts: _containers.MessageMap[str, _geyser_pb2.SubscribeRequestFilterAccounts]
|
153
|
+
transactions: _containers.MessageMap[str, _geyser_pb2.SubscribeRequestFilterTransactions]
|
154
|
+
entries: _containers.MessageMap[str, _geyser_pb2.SubscribeRequestFilterEntry]
|
155
|
+
blocks_meta: _containers.MessageMap[str, _geyser_pb2.SubscribeRequestFilterBlocksMeta]
|
156
|
+
def __init__(self, accounts: _Optional[_Mapping[str, _geyser_pb2.SubscribeRequestFilterAccounts]] = ..., transactions: _Optional[_Mapping[str, _geyser_pb2.SubscribeRequestFilterTransactions]] = ..., entries: _Optional[_Mapping[str, _geyser_pb2.SubscribeRequestFilterEntry]] = ..., blocks_meta: _Optional[_Mapping[str, _geyser_pb2.SubscribeRequestFilterBlocksMeta]] = ...) -> None: ...
|
157
|
+
|
158
|
+
class DownloadBlockShard(_message.Message):
|
159
|
+
__slots__ = ("blockchain_id", "block_uid", "shard_idx", "blockFilters")
|
160
|
+
BLOCKCHAIN_ID_FIELD_NUMBER: _ClassVar[int]
|
161
|
+
BLOCK_UID_FIELD_NUMBER: _ClassVar[int]
|
162
|
+
SHARD_IDX_FIELD_NUMBER: _ClassVar[int]
|
163
|
+
BLOCKFILTERS_FIELD_NUMBER: _ClassVar[int]
|
164
|
+
blockchain_id: bytes
|
165
|
+
block_uid: bytes
|
166
|
+
shard_idx: int
|
167
|
+
blockFilters: BlockFilters
|
168
|
+
def __init__(self, blockchain_id: _Optional[bytes] = ..., block_uid: _Optional[bytes] = ..., shard_idx: _Optional[int] = ..., blockFilters: _Optional[_Union[BlockFilters, _Mapping]] = ...) -> None: ...
|
169
|
+
|
170
|
+
class Ping(_message.Message):
|
171
|
+
__slots__ = ("ping_id",)
|
172
|
+
PING_ID_FIELD_NUMBER: _ClassVar[int]
|
173
|
+
ping_id: int
|
174
|
+
def __init__(self, ping_id: _Optional[int] = ...) -> None: ...
|
175
|
+
|
176
|
+
class Pong(_message.Message):
|
177
|
+
__slots__ = ("ping_id",)
|
178
|
+
PING_ID_FIELD_NUMBER: _ClassVar[int]
|
179
|
+
ping_id: int
|
180
|
+
def __init__(self, ping_id: _Optional[int] = ...) -> None: ...
|
181
|
+
|
182
|
+
class DataCommand(_message.Message):
|
183
|
+
__slots__ = ("download_block_shard", "filter_update")
|
184
|
+
DOWNLOAD_BLOCK_SHARD_FIELD_NUMBER: _ClassVar[int]
|
185
|
+
FILTER_UPDATE_FIELD_NUMBER: _ClassVar[int]
|
186
|
+
download_block_shard: DownloadBlockShard
|
187
|
+
filter_update: BlockFilters
|
188
|
+
def __init__(self, download_block_shard: _Optional[_Union[DownloadBlockShard, _Mapping]] = ..., filter_update: _Optional[_Union[BlockFilters, _Mapping]] = ...) -> None: ...
|
189
|
+
|
190
|
+
class BlockShardDownloadFinish(_message.Message):
|
191
|
+
__slots__ = ()
|
192
|
+
def __init__(self) -> None: ...
|
193
|
+
|
194
|
+
class BlockNotFound(_message.Message):
|
195
|
+
__slots__ = ("blockchain_id", "block_uid", "shard_idx")
|
196
|
+
BLOCKCHAIN_ID_FIELD_NUMBER: _ClassVar[int]
|
197
|
+
BLOCK_UID_FIELD_NUMBER: _ClassVar[int]
|
198
|
+
SHARD_IDX_FIELD_NUMBER: _ClassVar[int]
|
199
|
+
blockchain_id: bytes
|
200
|
+
block_uid: bytes
|
201
|
+
shard_idx: int
|
202
|
+
def __init__(self, blockchain_id: _Optional[bytes] = ..., block_uid: _Optional[bytes] = ..., shard_idx: _Optional[int] = ...) -> None: ...
|
203
|
+
|
204
|
+
class DataError(_message.Message):
|
205
|
+
__slots__ = ("not_found",)
|
206
|
+
NOT_FOUND_FIELD_NUMBER: _ClassVar[int]
|
207
|
+
not_found: BlockNotFound
|
208
|
+
def __init__(self, not_found: _Optional[_Union[BlockNotFound, _Mapping]] = ...) -> None: ...
|
209
|
+
|
210
|
+
class DataResponse(_message.Message):
|
211
|
+
__slots__ = ("update", "block_shard_download_finish")
|
212
|
+
UPDATE_FIELD_NUMBER: _ClassVar[int]
|
213
|
+
BLOCK_SHARD_DOWNLOAD_FINISH_FIELD_NUMBER: _ClassVar[int]
|
214
|
+
update: _geyser_pb2.SubscribeUpdate
|
215
|
+
block_shard_download_finish: BlockShardDownloadFinish
|
216
|
+
def __init__(self, update: _Optional[_Union[_geyser_pb2.SubscribeUpdate, _Mapping]] = ..., block_shard_download_finish: _Optional[_Union[BlockShardDownloadFinish, _Mapping]] = ...) -> None: ...
|
217
|
+
|
218
|
+
class CommitOffset(_message.Message):
|
219
|
+
__slots__ = ("offset", "shard_id")
|
220
|
+
OFFSET_FIELD_NUMBER: _ClassVar[int]
|
221
|
+
SHARD_ID_FIELD_NUMBER: _ClassVar[int]
|
222
|
+
offset: int
|
223
|
+
shard_id: int
|
224
|
+
def __init__(self, offset: _Optional[int] = ..., shard_id: _Optional[int] = ...) -> None: ...
|
225
|
+
|
226
|
+
class PollBlockchainHistory(_message.Message):
|
227
|
+
__slots__ = ("shard_id", "limit")
|
228
|
+
SHARD_ID_FIELD_NUMBER: _ClassVar[int]
|
229
|
+
FROM_FIELD_NUMBER: _ClassVar[int]
|
230
|
+
LIMIT_FIELD_NUMBER: _ClassVar[int]
|
231
|
+
shard_id: int
|
232
|
+
limit: int
|
233
|
+
def __init__(self, shard_id: _Optional[int] = ..., limit: _Optional[int] = ..., **kwargs) -> None: ...
|
234
|
+
|
235
|
+
class BlockchainEvent(_message.Message):
|
236
|
+
__slots__ = ("offset", "blockchain_id", "block_uid", "num_shards", "slot", "parent_slot", "commitment_level", "blockchain_shard_id", "dead_error")
|
237
|
+
OFFSET_FIELD_NUMBER: _ClassVar[int]
|
238
|
+
BLOCKCHAIN_ID_FIELD_NUMBER: _ClassVar[int]
|
239
|
+
BLOCK_UID_FIELD_NUMBER: _ClassVar[int]
|
240
|
+
NUM_SHARDS_FIELD_NUMBER: _ClassVar[int]
|
241
|
+
SLOT_FIELD_NUMBER: _ClassVar[int]
|
242
|
+
PARENT_SLOT_FIELD_NUMBER: _ClassVar[int]
|
243
|
+
COMMITMENT_LEVEL_FIELD_NUMBER: _ClassVar[int]
|
244
|
+
BLOCKCHAIN_SHARD_ID_FIELD_NUMBER: _ClassVar[int]
|
245
|
+
DEAD_ERROR_FIELD_NUMBER: _ClassVar[int]
|
246
|
+
offset: int
|
247
|
+
blockchain_id: bytes
|
248
|
+
block_uid: bytes
|
249
|
+
num_shards: int
|
250
|
+
slot: int
|
251
|
+
parent_slot: int
|
252
|
+
commitment_level: _geyser_pb2.CommitmentLevel
|
253
|
+
blockchain_shard_id: int
|
254
|
+
dead_error: str
|
255
|
+
def __init__(self, offset: _Optional[int] = ..., blockchain_id: _Optional[bytes] = ..., block_uid: _Optional[bytes] = ..., num_shards: _Optional[int] = ..., slot: _Optional[int] = ..., parent_slot: _Optional[int] = ..., commitment_level: _Optional[_Union[_geyser_pb2.CommitmentLevel, str]] = ..., blockchain_shard_id: _Optional[int] = ..., dead_error: _Optional[str] = ...) -> None: ...
|
256
|
+
|
257
|
+
class BlockchainHistory(_message.Message):
|
258
|
+
__slots__ = ("events",)
|
259
|
+
EVENTS_FIELD_NUMBER: _ClassVar[int]
|
260
|
+
events: _containers.RepeatedCompositeFieldContainer[BlockchainEvent]
|
261
|
+
def __init__(self, events: _Optional[_Iterable[_Union[BlockchainEvent, _Mapping]]] = ...) -> None: ...
|
262
|
+
|
263
|
+
class JoinControlPlane(_message.Message):
|
264
|
+
__slots__ = ("consumer_group_name",)
|
265
|
+
CONSUMER_GROUP_NAME_FIELD_NUMBER: _ClassVar[int]
|
266
|
+
consumer_group_name: str
|
267
|
+
def __init__(self, consumer_group_name: _Optional[str] = ...) -> None: ...
|
268
|
+
|
269
|
+
class ControlCommand(_message.Message):
|
270
|
+
__slots__ = ("initial_join", "commit_offset", "poll_hist", "ping")
|
271
|
+
INITIAL_JOIN_FIELD_NUMBER: _ClassVar[int]
|
272
|
+
COMMIT_OFFSET_FIELD_NUMBER: _ClassVar[int]
|
273
|
+
POLL_HIST_FIELD_NUMBER: _ClassVar[int]
|
274
|
+
PING_FIELD_NUMBER: _ClassVar[int]
|
275
|
+
initial_join: JoinControlPlane
|
276
|
+
commit_offset: CommitOffset
|
277
|
+
poll_hist: PollBlockchainHistory
|
278
|
+
ping: Ping
|
279
|
+
def __init__(self, initial_join: _Optional[_Union[JoinControlPlane, _Mapping]] = ..., commit_offset: _Optional[_Union[CommitOffset, _Mapping]] = ..., poll_hist: _Optional[_Union[PollBlockchainHistory, _Mapping]] = ..., ping: _Optional[_Union[Ping, _Mapping]] = ...) -> None: ...
|
280
|
+
|
281
|
+
class ControlResponse(_message.Message):
|
282
|
+
__slots__ = ("init", "commit_offset", "poll_hist", "pong")
|
283
|
+
INIT_FIELD_NUMBER: _ClassVar[int]
|
284
|
+
COMMIT_OFFSET_FIELD_NUMBER: _ClassVar[int]
|
285
|
+
POLL_HIST_FIELD_NUMBER: _ClassVar[int]
|
286
|
+
PONG_FIELD_NUMBER: _ClassVar[int]
|
287
|
+
init: InitialConsumerGroupState
|
288
|
+
commit_offset: CommitOffsetResult
|
289
|
+
poll_hist: BlockchainHistory
|
290
|
+
pong: Pong
|
291
|
+
def __init__(self, init: _Optional[_Union[InitialConsumerGroupState, _Mapping]] = ..., commit_offset: _Optional[_Union[CommitOffsetResult, _Mapping]] = ..., poll_hist: _Optional[_Union[BlockchainHistory, _Mapping]] = ..., pong: _Optional[_Union[Pong, _Mapping]] = ...) -> None: ...
|
292
|
+
|
293
|
+
class CommitOffsetResult(_message.Message):
|
294
|
+
__slots__ = ("offset", "shard_id")
|
295
|
+
OFFSET_FIELD_NUMBER: _ClassVar[int]
|
296
|
+
SHARD_ID_FIELD_NUMBER: _ClassVar[int]
|
297
|
+
offset: int
|
298
|
+
shard_id: int
|
299
|
+
def __init__(self, offset: _Optional[int] = ..., shard_id: _Optional[int] = ...) -> None: ...
|
300
|
+
|
301
|
+
class InitialConsumerGroupState(_message.Message):
|
302
|
+
__slots__ = ("blockchain_id", "last_committed_offsets")
|
303
|
+
class LastCommittedOffsetsEntry(_message.Message):
|
304
|
+
__slots__ = ("key", "value")
|
305
|
+
KEY_FIELD_NUMBER: _ClassVar[int]
|
306
|
+
VALUE_FIELD_NUMBER: _ClassVar[int]
|
307
|
+
key: int
|
308
|
+
value: int
|
309
|
+
def __init__(self, key: _Optional[int] = ..., value: _Optional[int] = ...) -> None: ...
|
310
|
+
BLOCKCHAIN_ID_FIELD_NUMBER: _ClassVar[int]
|
311
|
+
LAST_COMMITTED_OFFSETS_FIELD_NUMBER: _ClassVar[int]
|
312
|
+
blockchain_id: bytes
|
313
|
+
last_committed_offsets: _containers.ScalarMap[int, int]
|
314
|
+
def __init__(self, blockchain_id: _Optional[bytes] = ..., last_committed_offsets: _Optional[_Mapping[int, int]] = ...) -> None: ...
|
315
|
+
|
316
|
+
class CreateConsumerGroupResponse(_message.Message):
|
317
|
+
__slots__ = ("consumer_group_id",)
|
318
|
+
CONSUMER_GROUP_ID_FIELD_NUMBER: _ClassVar[int]
|
319
|
+
consumer_group_id: str
|
320
|
+
def __init__(self, consumer_group_id: _Optional[str] = ...) -> None: ...
|
321
|
+
|
322
|
+
class CreateConsumerGroupRequest(_message.Message):
|
323
|
+
__slots__ = ("consumer_group_name", "initial_offset_policy")
|
324
|
+
CONSUMER_GROUP_NAME_FIELD_NUMBER: _ClassVar[int]
|
325
|
+
INITIAL_OFFSET_POLICY_FIELD_NUMBER: _ClassVar[int]
|
326
|
+
consumer_group_name: str
|
327
|
+
initial_offset_policy: InitialOffsetPolicy
|
328
|
+
def __init__(self, consumer_group_name: _Optional[str] = ..., initial_offset_policy: _Optional[_Union[InitialOffsetPolicy, str]] = ...) -> None: ...
|