diff --git a/docker-compose.yml b/compose.yaml similarity index 83% rename from docker-compose.yml rename to compose.yaml index 68f7166..32d43b4 100644 --- a/docker-compose.yml +++ b/compose.yaml @@ -1,5 +1,3 @@ -version: "3.5" - services: volumes-provisioner: image: hasnat/volumes-provisioner @@ -10,23 +8,18 @@ services: network_mode: none cert-gen: - image: eventstore/es-gencert-cli:1.0.2 + image: eventstore/es-gencert-cli entrypoint: bash user: "1000:1000" command: > - -c "mkdir -p ./certs && cd /certs - && es-gencert-cli create-ca - && es-gencert-cli create-node -out ./node1 -ip-addresses 127.0.0.1,172.30.240.11 -dns-names localhost - && es-gencert-cli create-node -out ./node2 -ip-addresses 127.0.0.1,172.30.240.12 -dns-names localhost - && es-gencert-cli create-node -out ./node3 -ip-addresses 127.0.0.1,172.30.240.13 -dns-names localhost - && find . -type f -print0 | xargs -0 chmod 666" + -c "mkdir -p ./certs && cd /certs && es-gencert-cli create-ca && es-gencert-cli create-node -out ./node1 -ip-addresses 127.0.0.1,172.30.240.11 -dns-names localhost && es-gencert-cli create-node -out ./node2 -ip-addresses 127.0.0.1,172.30.240.12 -dns-names localhost && es-gencert-cli create-node -out ./node3 -ip-addresses 127.0.0.1,172.30.240.13 -dns-names localhost && find . -type f -print0 | xargs -0 chmod 666" volumes: - "./certs:/certs" depends_on: - volumes-provisioner esdb-node1: - image: eventstore/eventstore:21.10.7-bionic + image: eventstore/eventstore:24.2.0 env_file: - shared.env environment: @@ -107,4 +100,4 @@ networks: ipam: driver: default config: - - subnet: 172.30.240.0/24 \ No newline at end of file + - subnet: 172.30.240.0/24 diff --git a/esdb/generated/cluster_pb2.py b/esdb/generated/cluster_pb2.py index ee6cb05..9fa2fcb 100644 --- a/esdb/generated/cluster_pb2.py +++ b/esdb/generated/cluster_pb2.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: cluster.proto -# Protobuf Python Version: 4.25.0 +# Protobuf Python Version: 4.25.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool @@ -15,7 +15,7 @@ from . import shared_pb2 as shared__pb2 -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\rcluster.proto\x12\x13\x65vent_store.cluster\x1a\x0cshared.proto\"n\n\rGossipRequest\x12.\n\x04info\x18\x01 \x01(\x0b\x32 .event_store.cluster.ClusterInfo\x12-\n\x06server\x18\x02 \x01(\x0b\x32\x1d.event_store.cluster.EndPoint\"\x8c\x01\n\x11ViewChangeRequest\x12+\n\tserver_id\x18\x01 \x01(\x0b\x32\x18.event_store.client.UUID\x12\x32\n\x0bserver_http\x18\x02 \x01(\x0b\x32\x1d.event_store.cluster.EndPoint\x12\x16\n\x0e\x61ttempted_view\x18\x03 \x01(\x05\"\x91\x01\n\x16ViewChangeProofRequest\x12+\n\tserver_id\x18\x01 \x01(\x0b\x32\x18.event_store.client.UUID\x12\x32\n\x0bserver_http\x18\x02 \x01(\x0b\x32\x1d.event_store.cluster.EndPoint\x12\x16\n\x0einstalled_view\x18\x03 \x01(\x05\"\x7f\n\x0ePrepareRequest\x12+\n\tserver_id\x18\x01 \x01(\x0b\x32\x18.event_store.client.UUID\x12\x32\n\x0bserver_http\x18\x02 \x01(\x0b\x32\x1d.event_store.cluster.EndPoint\x12\x0c\n\x04view\x18\x03 \x01(\x05\"\xba\x03\n\x10PrepareOkRequest\x12\x0c\n\x04view\x18\x01 \x01(\x05\x12+\n\tserver_id\x18\x02 \x01(\x0b\x32\x18.event_store.client.UUID\x12\x32\n\x0bserver_http\x18\x03 \x01(\x0b\x32\x1d.event_store.cluster.EndPoint\x12\x14\n\x0c\x65poch_number\x18\x04 \x01(\x05\x12\x16\n\x0e\x65poch_position\x18\x05 \x01(\x03\x12*\n\x08\x65poch_id\x18\x06 \x01(\x0b\x32\x18.event_store.client.UUID\x12:\n\x18\x65poch_leader_instance_id\x18\x07 \x01(\x0b\x32\x18.event_store.client.UUID\x12\x1c\n\x14last_commit_position\x18\x08 \x01(\x03\x12\x19\n\x11writer_checkpoint\x18\t \x01(\x03\x12\x19\n\x11\x63haser_checkpoint\x18\n \x01(\x03\x12\x15\n\rnode_priority\x18\x0b \x01(\x05\x12\x36\n\x0c\x63luster_info\x18\x0c \x01(\x0b\x32 .event_store.cluster.ClusterInfo\"\xe2\x03\n\x0fProposalRequest\x12+\n\tserver_id\x18\x01 \x01(\x0b\x32\x18.event_store.client.UUID\x12\x32\n\x0bserver_http\x18\x02 \x01(\x0b\x32\x1d.event_store.cluster.EndPoint\x12+\n\tleader_id\x18\x03 \x01(\x0b\x32\x18.event_store.client.UUID\x12\x32\n\x0bleader_http\x18\x04 \x01(\x0b\x32\x1d.event_store.cluster.EndPoint\x12\x0c\n\x04view\x18\x05 \x01(\x05\x12\x14\n\x0c\x65poch_number\x18\x06 \x01(\x05\x12\x16\n\x0e\x65poch_position\x18\x07 \x01(\x03\x12*\n\x08\x65poch_id\x18\x08 \x01(\x0b\x32\x18.event_store.client.UUID\x12:\n\x18\x65poch_leader_instance_id\x18\t \x01(\x0b\x32\x18.event_store.client.UUID\x12\x1c\n\x14last_commit_position\x18\n \x01(\x03\x12\x19\n\x11writer_checkpoint\x18\x0b \x01(\x03\x12\x19\n\x11\x63haser_checkpoint\x18\x0c \x01(\x03\x12\x15\n\rnode_priority\x18\r \x01(\x05\"\xdf\x01\n\rAcceptRequest\x12+\n\tserver_id\x18\x01 \x01(\x0b\x32\x18.event_store.client.UUID\x12\x32\n\x0bserver_http\x18\x02 \x01(\x0b\x32\x1d.event_store.cluster.EndPoint\x12+\n\tleader_id\x18\x03 \x01(\x0b\x32\x18.event_store.client.UUID\x12\x32\n\x0bleader_http\x18\x04 \x01(\x0b\x32\x1d.event_store.cluster.EndPoint\x12\x0c\n\x04view\x18\x05 \x01(\x05\"{\n\x18LeaderIsResigningRequest\x12+\n\tleader_id\x18\x01 \x01(\x0b\x32\x18.event_store.client.UUID\x12\x32\n\x0bleader_http\x18\x02 \x01(\x0b\x32\x1d.event_store.cluster.EndPoint\"\xde\x01\n\x1aLeaderIsResigningOkRequest\x12+\n\tleader_id\x18\x01 \x01(\x0b\x32\x18.event_store.client.UUID\x12\x32\n\x0bleader_http\x18\x02 \x01(\x0b\x32\x1d.event_store.cluster.EndPoint\x12+\n\tserver_id\x18\x03 \x01(\x0b\x32\x18.event_store.client.UUID\x12\x32\n\x0bserver_http\x18\x04 \x01(\x0b\x32\x1d.event_store.cluster.EndPoint\"?\n\x0b\x43lusterInfo\x12\x30\n\x07members\x18\x01 \x03(\x0b\x32\x1f.event_store.cluster.MemberInfo\")\n\x08\x45ndPoint\x12\x0f\n\x07\x61\x64\x64ress\x18\x01 \x01(\t\x12\x0c\n\x04port\x18\x02 \x01(\r\"\xf3\x07\n\nMemberInfo\x12-\n\x0binstance_id\x18\x01 \x01(\x0b\x32\x18.event_store.client.UUID\x12\x12\n\ntime_stamp\x18\x02 \x01(\x03\x12\x39\n\x05state\x18\x03 \x01(\x0e\x32*.event_store.cluster.MemberInfo.VNodeState\x12\x10\n\x08is_alive\x18\x04 \x01(\x08\x12\x35\n\x0ehttp_end_point\x18\x05 \x01(\x0b\x32\x1d.event_store.cluster.EndPoint\x12\x33\n\x0cinternal_tcp\x18\x06 \x01(\x0b\x32\x1d.event_store.cluster.EndPoint\x12\x33\n\x0c\x65xternal_tcp\x18\x07 \x01(\x0b\x32\x1d.event_store.cluster.EndPoint\x12\x1d\n\x15internal_tcp_uses_tls\x18\x08 \x01(\x08\x12\x1d\n\x15\x65xternal_tcp_uses_tls\x18\t \x01(\x08\x12\x1c\n\x14last_commit_position\x18\n \x01(\x03\x12\x19\n\x11writer_checkpoint\x18\x0b \x01(\x03\x12\x19\n\x11\x63haser_checkpoint\x18\x0c \x01(\x03\x12\x16\n\x0e\x65poch_position\x18\r \x01(\x03\x12\x14\n\x0c\x65poch_number\x18\x0e \x01(\x05\x12*\n\x08\x65poch_id\x18\x0f \x01(\x0b\x32\x18.event_store.client.UUID\x12\x15\n\rnode_priority\x18\x10 \x01(\x05\x12\x1c\n\x14is_read_only_replica\x18\x11 \x01(\x08\x12#\n\x1b\x61\x64vertise_host_to_client_as\x18\x12 \x01(\t\x12(\n advertise_http_port_to_client_as\x18\x13 \x01(\r\x12\'\n\x1f\x61\x64vertise_tcp_port_to_client_as\x18\x14 \x01(\r\"\x9a\x02\n\nVNodeState\x12\x10\n\x0cInitializing\x10\x00\x12\x12\n\x0e\x44iscoverLeader\x10\x01\x12\x0b\n\x07Unknown\x10\x02\x12\x0e\n\nPreReplica\x10\x03\x12\x0e\n\nCatchingUp\x10\x04\x12\t\n\x05\x43lone\x10\x05\x12\x0c\n\x08\x46ollower\x10\x06\x12\r\n\tPreLeader\x10\x07\x12\n\n\x06Leader\x10\x08\x12\x0b\n\x07Manager\x10\t\x12\x10\n\x0cShuttingDown\x10\n\x12\x0c\n\x08Shutdown\x10\x0b\x12\x16\n\x12ReadOnlyLeaderless\x10\x0c\x12\x16\n\x12PreReadOnlyReplica\x10\r\x12\x13\n\x0fReadOnlyReplica\x10\x0e\x12\x13\n\x0fResigningLeader\x10\x0f\";\n\x0fReplicaLogWrite\x12\x14\n\x0clog_position\x18\x01 \x01(\x03\x12\x12\n\nreplica_id\x18\x02 \x01(\x0c\"$\n\x0cReplicatedTo\x12\x14\n\x0clog_position\x18\x01 \x01(\x03\"G\n\x05\x45poch\x12\x16\n\x0e\x65poch_position\x18\x01 \x01(\x03\x12\x14\n\x0c\x65poch_number\x18\x02 \x01(\x05\x12\x10\n\x08\x65poch_id\x18\x03 \x01(\x0c\"\xd8\x01\n\x10SubscribeReplica\x12\x14\n\x0clog_position\x18\x01 \x01(\x03\x12\x10\n\x08\x63hunk_id\x18\x02 \x01(\x0c\x12.\n\nLastEpochs\x18\x03 \x03(\x0b\x32\x1a.event_store.cluster.Epoch\x12\n\n\x02ip\x18\x04 \x01(\x0c\x12\x0c\n\x04port\x18\x05 \x01(\x05\x12\x11\n\tleader_id\x18\x06 \x01(\x0c\x12\x17\n\x0fsubscription_id\x18\x07 \x01(\x0c\x12\x15\n\ris_promotable\x18\x08 \x01(\x08\x12\x0f\n\x07version\x18\t \x01(\x05\"F\n\x18ReplicaSubscriptionRetry\x12\x11\n\tleader_id\x18\x01 \x01(\x0c\x12\x17\n\x0fsubscription_id\x18\x02 \x01(\x0c\"^\n\x11ReplicaSubscribed\x12\x11\n\tleader_id\x18\x01 \x01(\x0c\x12\x17\n\x0fsubscription_id\x18\x02 \x01(\x0c\x12\x1d\n\x15subscription_position\x18\x03 \x01(\x03\"o\n\x15ReplicaLogPositionAck\x12\x17\n\x0fsubscription_id\x18\x01 \x01(\x0c\x12 \n\x18replication_log_position\x18\x02 \x01(\x03\x12\x1b\n\x13writer_log_position\x18\x03 \x01(\x03\"\x84\x01\n\x0b\x43reateChunk\x12\x11\n\tleader_id\x18\x01 \x01(\x0c\x12\x17\n\x0fsubscription_id\x18\x02 \x01(\x0c\x12\x1a\n\x12\x63hunk_header_bytes\x18\x03 \x01(\x0c\x12\x11\n\tfile_size\x18\x04 \x01(\x05\x12\x1a\n\x12is_completed_chunk\x18\x05 \x01(\x08\"\xb1\x01\n\x0cRawChunkBulk\x12\x11\n\tleader_id\x18\x01 \x01(\x0c\x12\x17\n\x0fsubscription_id\x18\x02 \x01(\x0c\x12\x1a\n\x12\x63hunk_start_number\x18\x03 \x01(\x05\x12\x18\n\x10\x63hunk_end_number\x18\x04 \x01(\x05\x12\x14\n\x0craw_position\x18\x05 \x01(\x05\x12\x11\n\traw_bytes\x18\x06 \x01(\x0c\x12\x16\n\x0e\x63omplete_chunk\x18\x07 \x01(\x08\"\xbc\x01\n\rDataChunkBulk\x12\x11\n\tleader_id\x18\x01 \x01(\x0c\x12\x17\n\x0fsubscription_id\x18\x02 \x01(\x0c\x12\x1a\n\x12\x63hunk_start_number\x18\x03 \x01(\x05\x12\x18\n\x10\x63hunk_end_number\x18\x04 \x01(\x05\x12\x1d\n\x15subscription_position\x18\x05 \x01(\x03\x12\x12\n\ndata_bytes\x18\x06 \x01(\x0c\x12\x16\n\x0e\x63omplete_chunk\x18\x07 \x01(\x08\"@\n\x12\x46ollowerAssignment\x12\x11\n\tleader_id\x18\x01 \x01(\x0c\x12\x17\n\x0fsubscription_id\x18\x02 \x01(\x0c\"=\n\x0f\x43loneAssignment\x12\x11\n\tleader_id\x18\x01 \x01(\x0c\x12\x17\n\x0fsubscription_id\x18\x02 \x01(\x0c\">\n\x10\x44ropSubscription\x12\x11\n\tleader_id\x18\x01 \x01(\x0c\x12\x17\n\x0fsubscription_id\x18\x02 \x01(\x0c\x32\x9d\x01\n\x06Gossip\x12N\n\x06Update\x12\".event_store.cluster.GossipRequest\x1a .event_store.cluster.ClusterInfo\x12\x43\n\x04Read\x12\x19.event_store.client.Empty\x1a .event_store.cluster.ClusterInfo2\xa9\x05\n\tElections\x12O\n\nViewChange\x12&.event_store.cluster.ViewChangeRequest\x1a\x19.event_store.client.Empty\x12Y\n\x0fViewChangeProof\x12+.event_store.cluster.ViewChangeProofRequest\x1a\x19.event_store.client.Empty\x12I\n\x07Prepare\x12#.event_store.cluster.PrepareRequest\x1a\x19.event_store.client.Empty\x12M\n\tPrepareOk\x12%.event_store.cluster.PrepareOkRequest\x1a\x19.event_store.client.Empty\x12K\n\x08Proposal\x12$.event_store.cluster.ProposalRequest\x1a\x19.event_store.client.Empty\x12G\n\x06\x41\x63\x63\x65pt\x12\".event_store.cluster.AcceptRequest\x1a\x19.event_store.client.Empty\x12]\n\x11LeaderIsResigning\x12-.event_store.cluster.LeaderIsResigningRequest\x1a\x19.event_store.client.Empty\x12\x61\n\x13LeaderIsResigningOk\x12/.event_store.cluster.LeaderIsResigningOkRequest\x1a\x19.event_store.client.EmptyB\'\n%com.eventstore.dbclient.proto.clusterb\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\rcluster.proto\x12\x13\x65vent_store.cluster\x1a\x0cshared.proto\"n\n\rGossipRequest\x12.\n\x04info\x18\x01 \x01(\x0b\x32 .event_store.cluster.ClusterInfo\x12-\n\x06server\x18\x02 \x01(\x0b\x32\x1d.event_store.cluster.EndPoint\"\x8c\x01\n\x11ViewChangeRequest\x12+\n\tserver_id\x18\x01 \x01(\x0b\x32\x18.event_store.client.UUID\x12\x32\n\x0bserver_http\x18\x02 \x01(\x0b\x32\x1d.event_store.cluster.EndPoint\x12\x16\n\x0e\x61ttempted_view\x18\x03 \x01(\x05\"\x91\x01\n\x16ViewChangeProofRequest\x12+\n\tserver_id\x18\x01 \x01(\x0b\x32\x18.event_store.client.UUID\x12\x32\n\x0bserver_http\x18\x02 \x01(\x0b\x32\x1d.event_store.cluster.EndPoint\x12\x16\n\x0einstalled_view\x18\x03 \x01(\x05\"\x7f\n\x0ePrepareRequest\x12+\n\tserver_id\x18\x01 \x01(\x0b\x32\x18.event_store.client.UUID\x12\x32\n\x0bserver_http\x18\x02 \x01(\x0b\x32\x1d.event_store.cluster.EndPoint\x12\x0c\n\x04view\x18\x03 \x01(\x05\"\xba\x03\n\x10PrepareOkRequest\x12\x0c\n\x04view\x18\x01 \x01(\x05\x12+\n\tserver_id\x18\x02 \x01(\x0b\x32\x18.event_store.client.UUID\x12\x32\n\x0bserver_http\x18\x03 \x01(\x0b\x32\x1d.event_store.cluster.EndPoint\x12\x14\n\x0c\x65poch_number\x18\x04 \x01(\x05\x12\x16\n\x0e\x65poch_position\x18\x05 \x01(\x03\x12*\n\x08\x65poch_id\x18\x06 \x01(\x0b\x32\x18.event_store.client.UUID\x12:\n\x18\x65poch_leader_instance_id\x18\x07 \x01(\x0b\x32\x18.event_store.client.UUID\x12\x1c\n\x14last_commit_position\x18\x08 \x01(\x03\x12\x19\n\x11writer_checkpoint\x18\t \x01(\x03\x12\x19\n\x11\x63haser_checkpoint\x18\n \x01(\x03\x12\x15\n\rnode_priority\x18\x0b \x01(\x05\x12\x36\n\x0c\x63luster_info\x18\x0c \x01(\x0b\x32 .event_store.cluster.ClusterInfo\"\xe2\x03\n\x0fProposalRequest\x12+\n\tserver_id\x18\x01 \x01(\x0b\x32\x18.event_store.client.UUID\x12\x32\n\x0bserver_http\x18\x02 \x01(\x0b\x32\x1d.event_store.cluster.EndPoint\x12+\n\tleader_id\x18\x03 \x01(\x0b\x32\x18.event_store.client.UUID\x12\x32\n\x0bleader_http\x18\x04 \x01(\x0b\x32\x1d.event_store.cluster.EndPoint\x12\x0c\n\x04view\x18\x05 \x01(\x05\x12\x14\n\x0c\x65poch_number\x18\x06 \x01(\x05\x12\x16\n\x0e\x65poch_position\x18\x07 \x01(\x03\x12*\n\x08\x65poch_id\x18\x08 \x01(\x0b\x32\x18.event_store.client.UUID\x12:\n\x18\x65poch_leader_instance_id\x18\t \x01(\x0b\x32\x18.event_store.client.UUID\x12\x1c\n\x14last_commit_position\x18\n \x01(\x03\x12\x19\n\x11writer_checkpoint\x18\x0b \x01(\x03\x12\x19\n\x11\x63haser_checkpoint\x18\x0c \x01(\x03\x12\x15\n\rnode_priority\x18\r \x01(\x05\"\xdf\x01\n\rAcceptRequest\x12+\n\tserver_id\x18\x01 \x01(\x0b\x32\x18.event_store.client.UUID\x12\x32\n\x0bserver_http\x18\x02 \x01(\x0b\x32\x1d.event_store.cluster.EndPoint\x12+\n\tleader_id\x18\x03 \x01(\x0b\x32\x18.event_store.client.UUID\x12\x32\n\x0bleader_http\x18\x04 \x01(\x0b\x32\x1d.event_store.cluster.EndPoint\x12\x0c\n\x04view\x18\x05 \x01(\x05\"{\n\x18LeaderIsResigningRequest\x12+\n\tleader_id\x18\x01 \x01(\x0b\x32\x18.event_store.client.UUID\x12\x32\n\x0bleader_http\x18\x02 \x01(\x0b\x32\x1d.event_store.cluster.EndPoint\"\xde\x01\n\x1aLeaderIsResigningOkRequest\x12+\n\tleader_id\x18\x01 \x01(\x0b\x32\x18.event_store.client.UUID\x12\x32\n\x0bleader_http\x18\x02 \x01(\x0b\x32\x1d.event_store.cluster.EndPoint\x12+\n\tserver_id\x18\x03 \x01(\x0b\x32\x18.event_store.client.UUID\x12\x32\n\x0bserver_http\x18\x04 \x01(\x0b\x32\x1d.event_store.cluster.EndPoint\"?\n\x0b\x43lusterInfo\x12\x30\n\x07members\x18\x01 \x03(\x0b\x32\x1f.event_store.cluster.MemberInfo\")\n\x08\x45ndPoint\x12\x0f\n\x07\x61\x64\x64ress\x18\x01 \x01(\t\x12\x0c\n\x04port\x18\x02 \x01(\r\"\x87\x08\n\nMemberInfo\x12-\n\x0binstance_id\x18\x01 \x01(\x0b\x32\x18.event_store.client.UUID\x12\x12\n\ntime_stamp\x18\x02 \x01(\x03\x12\x39\n\x05state\x18\x03 \x01(\x0e\x32*.event_store.cluster.MemberInfo.VNodeState\x12\x10\n\x08is_alive\x18\x04 \x01(\x08\x12\x35\n\x0ehttp_end_point\x18\x05 \x01(\x0b\x32\x1d.event_store.cluster.EndPoint\x12\x33\n\x0cinternal_tcp\x18\x06 \x01(\x0b\x32\x1d.event_store.cluster.EndPoint\x12\x33\n\x0c\x65xternal_tcp\x18\x07 \x01(\x0b\x32\x1d.event_store.cluster.EndPoint\x12\x1d\n\x15internal_tcp_uses_tls\x18\x08 \x01(\x08\x12\x1d\n\x15\x65xternal_tcp_uses_tls\x18\t \x01(\x08\x12\x1c\n\x14last_commit_position\x18\n \x01(\x03\x12\x19\n\x11writer_checkpoint\x18\x0b \x01(\x03\x12\x19\n\x11\x63haser_checkpoint\x18\x0c \x01(\x03\x12\x16\n\x0e\x65poch_position\x18\r \x01(\x03\x12\x14\n\x0c\x65poch_number\x18\x0e \x01(\x05\x12*\n\x08\x65poch_id\x18\x0f \x01(\x0b\x32\x18.event_store.client.UUID\x12\x15\n\rnode_priority\x18\x10 \x01(\x05\x12\x1c\n\x14is_read_only_replica\x18\x11 \x01(\x08\x12#\n\x1b\x61\x64vertise_host_to_client_as\x18\x12 \x01(\t\x12(\n advertise_http_port_to_client_as\x18\x13 \x01(\r\x12\'\n\x1f\x61\x64vertise_tcp_port_to_client_as\x18\x14 \x01(\r\x12\x12\n\nes_version\x18\x15 \x01(\t\"\x9a\x02\n\nVNodeState\x12\x10\n\x0cInitializing\x10\x00\x12\x12\n\x0e\x44iscoverLeader\x10\x01\x12\x0b\n\x07Unknown\x10\x02\x12\x0e\n\nPreReplica\x10\x03\x12\x0e\n\nCatchingUp\x10\x04\x12\t\n\x05\x43lone\x10\x05\x12\x0c\n\x08\x46ollower\x10\x06\x12\r\n\tPreLeader\x10\x07\x12\n\n\x06Leader\x10\x08\x12\x0b\n\x07Manager\x10\t\x12\x10\n\x0cShuttingDown\x10\n\x12\x0c\n\x08Shutdown\x10\x0b\x12\x16\n\x12ReadOnlyLeaderless\x10\x0c\x12\x16\n\x12PreReadOnlyReplica\x10\r\x12\x13\n\x0fReadOnlyReplica\x10\x0e\x12\x13\n\x0fResigningLeader\x10\x0f\";\n\x0fReplicaLogWrite\x12\x14\n\x0clog_position\x18\x01 \x01(\x03\x12\x12\n\nreplica_id\x18\x02 \x01(\x0c\"$\n\x0cReplicatedTo\x12\x14\n\x0clog_position\x18\x01 \x01(\x03\"G\n\x05\x45poch\x12\x16\n\x0e\x65poch_position\x18\x01 \x01(\x03\x12\x14\n\x0c\x65poch_number\x18\x02 \x01(\x05\x12\x10\n\x08\x65poch_id\x18\x03 \x01(\x0c\"\xd8\x01\n\x10SubscribeReplica\x12\x14\n\x0clog_position\x18\x01 \x01(\x03\x12\x10\n\x08\x63hunk_id\x18\x02 \x01(\x0c\x12.\n\nLastEpochs\x18\x03 \x03(\x0b\x32\x1a.event_store.cluster.Epoch\x12\n\n\x02ip\x18\x04 \x01(\x0c\x12\x0c\n\x04port\x18\x05 \x01(\x05\x12\x11\n\tleader_id\x18\x06 \x01(\x0c\x12\x17\n\x0fsubscription_id\x18\x07 \x01(\x0c\x12\x15\n\ris_promotable\x18\x08 \x01(\x08\x12\x0f\n\x07version\x18\t \x01(\x05\"F\n\x18ReplicaSubscriptionRetry\x12\x11\n\tleader_id\x18\x01 \x01(\x0c\x12\x17\n\x0fsubscription_id\x18\x02 \x01(\x0c\"^\n\x11ReplicaSubscribed\x12\x11\n\tleader_id\x18\x01 \x01(\x0c\x12\x17\n\x0fsubscription_id\x18\x02 \x01(\x0c\x12\x1d\n\x15subscription_position\x18\x03 \x01(\x03\"o\n\x15ReplicaLogPositionAck\x12\x17\n\x0fsubscription_id\x18\x01 \x01(\x0c\x12 \n\x18replication_log_position\x18\x02 \x01(\x03\x12\x1b\n\x13writer_log_position\x18\x03 \x01(\x03\"\x84\x01\n\x0b\x43reateChunk\x12\x11\n\tleader_id\x18\x01 \x01(\x0c\x12\x17\n\x0fsubscription_id\x18\x02 \x01(\x0c\x12\x1a\n\x12\x63hunk_header_bytes\x18\x03 \x01(\x0c\x12\x11\n\tfile_size\x18\x04 \x01(\x05\x12\x1a\n\x12is_completed_chunk\x18\x05 \x01(\x08\"\xb1\x01\n\x0cRawChunkBulk\x12\x11\n\tleader_id\x18\x01 \x01(\x0c\x12\x17\n\x0fsubscription_id\x18\x02 \x01(\x0c\x12\x1a\n\x12\x63hunk_start_number\x18\x03 \x01(\x05\x12\x18\n\x10\x63hunk_end_number\x18\x04 \x01(\x05\x12\x14\n\x0craw_position\x18\x05 \x01(\x05\x12\x11\n\traw_bytes\x18\x06 \x01(\x0c\x12\x16\n\x0e\x63omplete_chunk\x18\x07 \x01(\x08\"\xbc\x01\n\rDataChunkBulk\x12\x11\n\tleader_id\x18\x01 \x01(\x0c\x12\x17\n\x0fsubscription_id\x18\x02 \x01(\x0c\x12\x1a\n\x12\x63hunk_start_number\x18\x03 \x01(\x05\x12\x18\n\x10\x63hunk_end_number\x18\x04 \x01(\x05\x12\x1d\n\x15subscription_position\x18\x05 \x01(\x03\x12\x12\n\ndata_bytes\x18\x06 \x01(\x0c\x12\x16\n\x0e\x63omplete_chunk\x18\x07 \x01(\x08\"@\n\x12\x46ollowerAssignment\x12\x11\n\tleader_id\x18\x01 \x01(\x0c\x12\x17\n\x0fsubscription_id\x18\x02 \x01(\x0c\"=\n\x0f\x43loneAssignment\x12\x11\n\tleader_id\x18\x01 \x01(\x0c\x12\x17\n\x0fsubscription_id\x18\x02 \x01(\x0c\">\n\x10\x44ropSubscription\x12\x11\n\tleader_id\x18\x01 \x01(\x0c\x12\x17\n\x0fsubscription_id\x18\x02 \x01(\x0c\x32\x9d\x01\n\x06Gossip\x12N\n\x06Update\x12\".event_store.cluster.GossipRequest\x1a .event_store.cluster.ClusterInfo\x12\x43\n\x04Read\x12\x19.event_store.client.Empty\x1a .event_store.cluster.ClusterInfo2\xa9\x05\n\tElections\x12O\n\nViewChange\x12&.event_store.cluster.ViewChangeRequest\x1a\x19.event_store.client.Empty\x12Y\n\x0fViewChangeProof\x12+.event_store.cluster.ViewChangeProofRequest\x1a\x19.event_store.client.Empty\x12I\n\x07Prepare\x12#.event_store.cluster.PrepareRequest\x1a\x19.event_store.client.Empty\x12M\n\tPrepareOk\x12%.event_store.cluster.PrepareOkRequest\x1a\x19.event_store.client.Empty\x12K\n\x08Proposal\x12$.event_store.cluster.ProposalRequest\x1a\x19.event_store.client.Empty\x12G\n\x06\x41\x63\x63\x65pt\x12\".event_store.cluster.AcceptRequest\x1a\x19.event_store.client.Empty\x12]\n\x11LeaderIsResigning\x12-.event_store.cluster.LeaderIsResigningRequest\x1a\x19.event_store.client.Empty\x12\x61\n\x13LeaderIsResigningOk\x12/.event_store.cluster.LeaderIsResigningOkRequest\x1a\x19.event_store.client.EmptyB\'\n%com.eventstore.dbclient.proto.clusterb\x06proto3') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) @@ -46,37 +46,37 @@ _globals['_ENDPOINT']._serialized_start=2155 _globals['_ENDPOINT']._serialized_end=2196 _globals['_MEMBERINFO']._serialized_start=2199 - _globals['_MEMBERINFO']._serialized_end=3210 - _globals['_MEMBERINFO_VNODESTATE']._serialized_start=2928 - _globals['_MEMBERINFO_VNODESTATE']._serialized_end=3210 - _globals['_REPLICALOGWRITE']._serialized_start=3212 - _globals['_REPLICALOGWRITE']._serialized_end=3271 - _globals['_REPLICATEDTO']._serialized_start=3273 - _globals['_REPLICATEDTO']._serialized_end=3309 - _globals['_EPOCH']._serialized_start=3311 - _globals['_EPOCH']._serialized_end=3382 - _globals['_SUBSCRIBEREPLICA']._serialized_start=3385 - _globals['_SUBSCRIBEREPLICA']._serialized_end=3601 - _globals['_REPLICASUBSCRIPTIONRETRY']._serialized_start=3603 - _globals['_REPLICASUBSCRIPTIONRETRY']._serialized_end=3673 - _globals['_REPLICASUBSCRIBED']._serialized_start=3675 - _globals['_REPLICASUBSCRIBED']._serialized_end=3769 - _globals['_REPLICALOGPOSITIONACK']._serialized_start=3771 - _globals['_REPLICALOGPOSITIONACK']._serialized_end=3882 - _globals['_CREATECHUNK']._serialized_start=3885 - _globals['_CREATECHUNK']._serialized_end=4017 - _globals['_RAWCHUNKBULK']._serialized_start=4020 - _globals['_RAWCHUNKBULK']._serialized_end=4197 - _globals['_DATACHUNKBULK']._serialized_start=4200 - _globals['_DATACHUNKBULK']._serialized_end=4388 - _globals['_FOLLOWERASSIGNMENT']._serialized_start=4390 - _globals['_FOLLOWERASSIGNMENT']._serialized_end=4454 - _globals['_CLONEASSIGNMENT']._serialized_start=4456 - _globals['_CLONEASSIGNMENT']._serialized_end=4517 - _globals['_DROPSUBSCRIPTION']._serialized_start=4519 - _globals['_DROPSUBSCRIPTION']._serialized_end=4581 - _globals['_GOSSIP']._serialized_start=4584 - _globals['_GOSSIP']._serialized_end=4741 - _globals['_ELECTIONS']._serialized_start=4744 - _globals['_ELECTIONS']._serialized_end=5425 + _globals['_MEMBERINFO']._serialized_end=3230 + _globals['_MEMBERINFO_VNODESTATE']._serialized_start=2948 + _globals['_MEMBERINFO_VNODESTATE']._serialized_end=3230 + _globals['_REPLICALOGWRITE']._serialized_start=3232 + _globals['_REPLICALOGWRITE']._serialized_end=3291 + _globals['_REPLICATEDTO']._serialized_start=3293 + _globals['_REPLICATEDTO']._serialized_end=3329 + _globals['_EPOCH']._serialized_start=3331 + _globals['_EPOCH']._serialized_end=3402 + _globals['_SUBSCRIBEREPLICA']._serialized_start=3405 + _globals['_SUBSCRIBEREPLICA']._serialized_end=3621 + _globals['_REPLICASUBSCRIPTIONRETRY']._serialized_start=3623 + _globals['_REPLICASUBSCRIPTIONRETRY']._serialized_end=3693 + _globals['_REPLICASUBSCRIBED']._serialized_start=3695 + _globals['_REPLICASUBSCRIBED']._serialized_end=3789 + _globals['_REPLICALOGPOSITIONACK']._serialized_start=3791 + _globals['_REPLICALOGPOSITIONACK']._serialized_end=3902 + _globals['_CREATECHUNK']._serialized_start=3905 + _globals['_CREATECHUNK']._serialized_end=4037 + _globals['_RAWCHUNKBULK']._serialized_start=4040 + _globals['_RAWCHUNKBULK']._serialized_end=4217 + _globals['_DATACHUNKBULK']._serialized_start=4220 + _globals['_DATACHUNKBULK']._serialized_end=4408 + _globals['_FOLLOWERASSIGNMENT']._serialized_start=4410 + _globals['_FOLLOWERASSIGNMENT']._serialized_end=4474 + _globals['_CLONEASSIGNMENT']._serialized_start=4476 + _globals['_CLONEASSIGNMENT']._serialized_end=4537 + _globals['_DROPSUBSCRIPTION']._serialized_start=4539 + _globals['_DROPSUBSCRIPTION']._serialized_end=4601 + _globals['_GOSSIP']._serialized_start=4604 + _globals['_GOSSIP']._serialized_end=4761 + _globals['_ELECTIONS']._serialized_start=4764 + _globals['_ELECTIONS']._serialized_end=5445 # @@protoc_insertion_point(module_scope) diff --git a/esdb/generated/cluster_pb2.pyi b/esdb/generated/cluster_pb2.pyi index 436fd26..7edf8d2 100644 --- a/esdb/generated/cluster_pb2.pyi +++ b/esdb/generated/cluster_pb2.pyi @@ -2,6 +2,7 @@ @generated by mypy-protobuf. Do not edit manually! isort:skip_file """ + import builtins import collections.abc import google.protobuf.descriptor @@ -19,7 +20,7 @@ else: DESCRIPTOR: google.protobuf.descriptor.FileDescriptor -@typing_extensions.final +@typing.final class GossipRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -35,23 +36,23 @@ class GossipRequest(google.protobuf.message.Message): info: global___ClusterInfo | None = ..., server: global___EndPoint | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["info", b"info", "server", b"server"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["info", b"info", "server", b"server"]) -> None: ... + def HasField(self, field_name: typing.Literal["info", b"info", "server", b"server"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["info", b"info", "server", b"server"]) -> None: ... global___GossipRequest = GossipRequest -@typing_extensions.final +@typing.final class ViewChangeRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor SERVER_ID_FIELD_NUMBER: builtins.int SERVER_HTTP_FIELD_NUMBER: builtins.int ATTEMPTED_VIEW_FIELD_NUMBER: builtins.int + attempted_view: builtins.int @property def server_id(self) -> shared_pb2.UUID: ... @property def server_http(self) -> global___EndPoint: ... - attempted_view: builtins.int def __init__( self, *, @@ -59,23 +60,23 @@ class ViewChangeRequest(google.protobuf.message.Message): server_http: global___EndPoint | None = ..., attempted_view: builtins.int = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["server_http", b"server_http", "server_id", b"server_id"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["attempted_view", b"attempted_view", "server_http", b"server_http", "server_id", b"server_id"]) -> None: ... + def HasField(self, field_name: typing.Literal["server_http", b"server_http", "server_id", b"server_id"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["attempted_view", b"attempted_view", "server_http", b"server_http", "server_id", b"server_id"]) -> None: ... global___ViewChangeRequest = ViewChangeRequest -@typing_extensions.final +@typing.final class ViewChangeProofRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor SERVER_ID_FIELD_NUMBER: builtins.int SERVER_HTTP_FIELD_NUMBER: builtins.int INSTALLED_VIEW_FIELD_NUMBER: builtins.int + installed_view: builtins.int @property def server_id(self) -> shared_pb2.UUID: ... @property def server_http(self) -> global___EndPoint: ... - installed_view: builtins.int def __init__( self, *, @@ -83,23 +84,23 @@ class ViewChangeProofRequest(google.protobuf.message.Message): server_http: global___EndPoint | None = ..., installed_view: builtins.int = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["server_http", b"server_http", "server_id", b"server_id"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["installed_view", b"installed_view", "server_http", b"server_http", "server_id", b"server_id"]) -> None: ... + def HasField(self, field_name: typing.Literal["server_http", b"server_http", "server_id", b"server_id"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["installed_view", b"installed_view", "server_http", b"server_http", "server_id", b"server_id"]) -> None: ... global___ViewChangeProofRequest = ViewChangeProofRequest -@typing_extensions.final +@typing.final class PrepareRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor SERVER_ID_FIELD_NUMBER: builtins.int SERVER_HTTP_FIELD_NUMBER: builtins.int VIEW_FIELD_NUMBER: builtins.int + view: builtins.int @property def server_id(self) -> shared_pb2.UUID: ... @property def server_http(self) -> global___EndPoint: ... - view: builtins.int def __init__( self, *, @@ -107,12 +108,12 @@ class PrepareRequest(google.protobuf.message.Message): server_http: global___EndPoint | None = ..., view: builtins.int = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["server_http", b"server_http", "server_id", b"server_id"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["server_http", b"server_http", "server_id", b"server_id", "view", b"view"]) -> None: ... + def HasField(self, field_name: typing.Literal["server_http", b"server_http", "server_id", b"server_id"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["server_http", b"server_http", "server_id", b"server_id", "view", b"view"]) -> None: ... global___PrepareRequest = PrepareRequest -@typing_extensions.final +@typing.final class PrepareOkRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -129,20 +130,20 @@ class PrepareOkRequest(google.protobuf.message.Message): NODE_PRIORITY_FIELD_NUMBER: builtins.int CLUSTER_INFO_FIELD_NUMBER: builtins.int view: builtins.int + epoch_number: builtins.int + epoch_position: builtins.int + last_commit_position: builtins.int + writer_checkpoint: builtins.int + chaser_checkpoint: builtins.int + node_priority: builtins.int @property def server_id(self) -> shared_pb2.UUID: ... @property def server_http(self) -> global___EndPoint: ... - epoch_number: builtins.int - epoch_position: builtins.int @property def epoch_id(self) -> shared_pb2.UUID: ... @property def epoch_leader_instance_id(self) -> shared_pb2.UUID: ... - last_commit_position: builtins.int - writer_checkpoint: builtins.int - chaser_checkpoint: builtins.int - node_priority: builtins.int @property def cluster_info(self) -> global___ClusterInfo: ... def __init__( @@ -161,12 +162,12 @@ class PrepareOkRequest(google.protobuf.message.Message): node_priority: builtins.int = ..., cluster_info: global___ClusterInfo | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["cluster_info", b"cluster_info", "epoch_id", b"epoch_id", "epoch_leader_instance_id", b"epoch_leader_instance_id", "server_http", b"server_http", "server_id", b"server_id"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["chaser_checkpoint", b"chaser_checkpoint", "cluster_info", b"cluster_info", "epoch_id", b"epoch_id", "epoch_leader_instance_id", b"epoch_leader_instance_id", "epoch_number", b"epoch_number", "epoch_position", b"epoch_position", "last_commit_position", b"last_commit_position", "node_priority", b"node_priority", "server_http", b"server_http", "server_id", b"server_id", "view", b"view", "writer_checkpoint", b"writer_checkpoint"]) -> None: ... + def HasField(self, field_name: typing.Literal["cluster_info", b"cluster_info", "epoch_id", b"epoch_id", "epoch_leader_instance_id", b"epoch_leader_instance_id", "server_http", b"server_http", "server_id", b"server_id"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["chaser_checkpoint", b"chaser_checkpoint", "cluster_info", b"cluster_info", "epoch_id", b"epoch_id", "epoch_leader_instance_id", b"epoch_leader_instance_id", "epoch_number", b"epoch_number", "epoch_position", b"epoch_position", "last_commit_position", b"last_commit_position", "node_priority", b"node_priority", "server_http", b"server_http", "server_id", b"server_id", "view", b"view", "writer_checkpoint", b"writer_checkpoint"]) -> None: ... global___PrepareOkRequest = PrepareOkRequest -@typing_extensions.final +@typing.final class ProposalRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -183,6 +184,13 @@ class ProposalRequest(google.protobuf.message.Message): WRITER_CHECKPOINT_FIELD_NUMBER: builtins.int CHASER_CHECKPOINT_FIELD_NUMBER: builtins.int NODE_PRIORITY_FIELD_NUMBER: builtins.int + view: builtins.int + epoch_number: builtins.int + epoch_position: builtins.int + last_commit_position: builtins.int + writer_checkpoint: builtins.int + chaser_checkpoint: builtins.int + node_priority: builtins.int @property def server_id(self) -> shared_pb2.UUID: ... @property @@ -191,17 +199,10 @@ class ProposalRequest(google.protobuf.message.Message): def leader_id(self) -> shared_pb2.UUID: ... @property def leader_http(self) -> global___EndPoint: ... - view: builtins.int - epoch_number: builtins.int - epoch_position: builtins.int @property def epoch_id(self) -> shared_pb2.UUID: ... @property def epoch_leader_instance_id(self) -> shared_pb2.UUID: ... - last_commit_position: builtins.int - writer_checkpoint: builtins.int - chaser_checkpoint: builtins.int - node_priority: builtins.int def __init__( self, *, @@ -219,12 +220,12 @@ class ProposalRequest(google.protobuf.message.Message): chaser_checkpoint: builtins.int = ..., node_priority: builtins.int = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["epoch_id", b"epoch_id", "epoch_leader_instance_id", b"epoch_leader_instance_id", "leader_http", b"leader_http", "leader_id", b"leader_id", "server_http", b"server_http", "server_id", b"server_id"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["chaser_checkpoint", b"chaser_checkpoint", "epoch_id", b"epoch_id", "epoch_leader_instance_id", b"epoch_leader_instance_id", "epoch_number", b"epoch_number", "epoch_position", b"epoch_position", "last_commit_position", b"last_commit_position", "leader_http", b"leader_http", "leader_id", b"leader_id", "node_priority", b"node_priority", "server_http", b"server_http", "server_id", b"server_id", "view", b"view", "writer_checkpoint", b"writer_checkpoint"]) -> None: ... + def HasField(self, field_name: typing.Literal["epoch_id", b"epoch_id", "epoch_leader_instance_id", b"epoch_leader_instance_id", "leader_http", b"leader_http", "leader_id", b"leader_id", "server_http", b"server_http", "server_id", b"server_id"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["chaser_checkpoint", b"chaser_checkpoint", "epoch_id", b"epoch_id", "epoch_leader_instance_id", b"epoch_leader_instance_id", "epoch_number", b"epoch_number", "epoch_position", b"epoch_position", "last_commit_position", b"last_commit_position", "leader_http", b"leader_http", "leader_id", b"leader_id", "node_priority", b"node_priority", "server_http", b"server_http", "server_id", b"server_id", "view", b"view", "writer_checkpoint", b"writer_checkpoint"]) -> None: ... global___ProposalRequest = ProposalRequest -@typing_extensions.final +@typing.final class AcceptRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -233,6 +234,7 @@ class AcceptRequest(google.protobuf.message.Message): LEADER_ID_FIELD_NUMBER: builtins.int LEADER_HTTP_FIELD_NUMBER: builtins.int VIEW_FIELD_NUMBER: builtins.int + view: builtins.int @property def server_id(self) -> shared_pb2.UUID: ... @property @@ -241,7 +243,6 @@ class AcceptRequest(google.protobuf.message.Message): def leader_id(self) -> shared_pb2.UUID: ... @property def leader_http(self) -> global___EndPoint: ... - view: builtins.int def __init__( self, *, @@ -251,12 +252,12 @@ class AcceptRequest(google.protobuf.message.Message): leader_http: global___EndPoint | None = ..., view: builtins.int = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["leader_http", b"leader_http", "leader_id", b"leader_id", "server_http", b"server_http", "server_id", b"server_id"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["leader_http", b"leader_http", "leader_id", b"leader_id", "server_http", b"server_http", "server_id", b"server_id", "view", b"view"]) -> None: ... + def HasField(self, field_name: typing.Literal["leader_http", b"leader_http", "leader_id", b"leader_id", "server_http", b"server_http", "server_id", b"server_id"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["leader_http", b"leader_http", "leader_id", b"leader_id", "server_http", b"server_http", "server_id", b"server_id", "view", b"view"]) -> None: ... global___AcceptRequest = AcceptRequest -@typing_extensions.final +@typing.final class LeaderIsResigningRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -272,12 +273,12 @@ class LeaderIsResigningRequest(google.protobuf.message.Message): leader_id: shared_pb2.UUID | None = ..., leader_http: global___EndPoint | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["leader_http", b"leader_http", "leader_id", b"leader_id"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["leader_http", b"leader_http", "leader_id", b"leader_id"]) -> None: ... + def HasField(self, field_name: typing.Literal["leader_http", b"leader_http", "leader_id", b"leader_id"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["leader_http", b"leader_http", "leader_id", b"leader_id"]) -> None: ... global___LeaderIsResigningRequest = LeaderIsResigningRequest -@typing_extensions.final +@typing.final class LeaderIsResigningOkRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -301,12 +302,12 @@ class LeaderIsResigningOkRequest(google.protobuf.message.Message): server_id: shared_pb2.UUID | None = ..., server_http: global___EndPoint | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["leader_http", b"leader_http", "leader_id", b"leader_id", "server_http", b"server_http", "server_id", b"server_id"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["leader_http", b"leader_http", "leader_id", b"leader_id", "server_http", b"server_http", "server_id", b"server_id"]) -> None: ... + def HasField(self, field_name: typing.Literal["leader_http", b"leader_http", "leader_id", b"leader_id", "server_http", b"server_http", "server_id", b"server_id"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["leader_http", b"leader_http", "leader_id", b"leader_id", "server_http", b"server_http", "server_id", b"server_id"]) -> None: ... global___LeaderIsResigningOkRequest = LeaderIsResigningOkRequest -@typing_extensions.final +@typing.final class ClusterInfo(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -318,11 +319,11 @@ class ClusterInfo(google.protobuf.message.Message): *, members: collections.abc.Iterable[global___MemberInfo] | None = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["members", b"members"]) -> None: ... + def ClearField(self, field_name: typing.Literal["members", b"members"]) -> None: ... global___ClusterInfo = ClusterInfo -@typing_extensions.final +@typing.final class EndPoint(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -336,11 +337,11 @@ class EndPoint(google.protobuf.message.Message): address: builtins.str = ..., port: builtins.int = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["address", b"address", "port", b"port"]) -> None: ... + def ClearField(self, field_name: typing.Literal["address", b"address", "port", b"port"]) -> None: ... global___EndPoint = EndPoint -@typing_extensions.final +@typing.final class MemberInfo(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -405,17 +406,10 @@ class MemberInfo(google.protobuf.message.Message): ADVERTISE_HOST_TO_CLIENT_AS_FIELD_NUMBER: builtins.int ADVERTISE_HTTP_PORT_TO_CLIENT_AS_FIELD_NUMBER: builtins.int ADVERTISE_TCP_PORT_TO_CLIENT_AS_FIELD_NUMBER: builtins.int - @property - def instance_id(self) -> shared_pb2.UUID: ... + ES_VERSION_FIELD_NUMBER: builtins.int time_stamp: builtins.int state: global___MemberInfo.VNodeState.ValueType is_alive: builtins.bool - @property - def http_end_point(self) -> global___EndPoint: ... - @property - def internal_tcp(self) -> global___EndPoint: ... - @property - def external_tcp(self) -> global___EndPoint: ... internal_tcp_uses_tls: builtins.bool external_tcp_uses_tls: builtins.bool last_commit_position: builtins.int @@ -423,13 +417,22 @@ class MemberInfo(google.protobuf.message.Message): chaser_checkpoint: builtins.int epoch_position: builtins.int epoch_number: builtins.int - @property - def epoch_id(self) -> shared_pb2.UUID: ... node_priority: builtins.int is_read_only_replica: builtins.bool advertise_host_to_client_as: builtins.str advertise_http_port_to_client_as: builtins.int advertise_tcp_port_to_client_as: builtins.int + es_version: builtins.str + @property + def instance_id(self) -> shared_pb2.UUID: ... + @property + def http_end_point(self) -> global___EndPoint: ... + @property + def internal_tcp(self) -> global___EndPoint: ... + @property + def external_tcp(self) -> global___EndPoint: ... + @property + def epoch_id(self) -> shared_pb2.UUID: ... def __init__( self, *, @@ -453,13 +456,14 @@ class MemberInfo(google.protobuf.message.Message): advertise_host_to_client_as: builtins.str = ..., advertise_http_port_to_client_as: builtins.int = ..., advertise_tcp_port_to_client_as: builtins.int = ..., + es_version: builtins.str = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["epoch_id", b"epoch_id", "external_tcp", b"external_tcp", "http_end_point", b"http_end_point", "instance_id", b"instance_id", "internal_tcp", b"internal_tcp"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["advertise_host_to_client_as", b"advertise_host_to_client_as", "advertise_http_port_to_client_as", b"advertise_http_port_to_client_as", "advertise_tcp_port_to_client_as", b"advertise_tcp_port_to_client_as", "chaser_checkpoint", b"chaser_checkpoint", "epoch_id", b"epoch_id", "epoch_number", b"epoch_number", "epoch_position", b"epoch_position", "external_tcp", b"external_tcp", "external_tcp_uses_tls", b"external_tcp_uses_tls", "http_end_point", b"http_end_point", "instance_id", b"instance_id", "internal_tcp", b"internal_tcp", "internal_tcp_uses_tls", b"internal_tcp_uses_tls", "is_alive", b"is_alive", "is_read_only_replica", b"is_read_only_replica", "last_commit_position", b"last_commit_position", "node_priority", b"node_priority", "state", b"state", "time_stamp", b"time_stamp", "writer_checkpoint", b"writer_checkpoint"]) -> None: ... + def HasField(self, field_name: typing.Literal["epoch_id", b"epoch_id", "external_tcp", b"external_tcp", "http_end_point", b"http_end_point", "instance_id", b"instance_id", "internal_tcp", b"internal_tcp"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["advertise_host_to_client_as", b"advertise_host_to_client_as", "advertise_http_port_to_client_as", b"advertise_http_port_to_client_as", "advertise_tcp_port_to_client_as", b"advertise_tcp_port_to_client_as", "chaser_checkpoint", b"chaser_checkpoint", "epoch_id", b"epoch_id", "epoch_number", b"epoch_number", "epoch_position", b"epoch_position", "es_version", b"es_version", "external_tcp", b"external_tcp", "external_tcp_uses_tls", b"external_tcp_uses_tls", "http_end_point", b"http_end_point", "instance_id", b"instance_id", "internal_tcp", b"internal_tcp", "internal_tcp_uses_tls", b"internal_tcp_uses_tls", "is_alive", b"is_alive", "is_read_only_replica", b"is_read_only_replica", "last_commit_position", b"last_commit_position", "node_priority", b"node_priority", "state", b"state", "time_stamp", b"time_stamp", "writer_checkpoint", b"writer_checkpoint"]) -> None: ... global___MemberInfo = MemberInfo -@typing_extensions.final +@typing.final class ReplicaLogWrite(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -473,11 +477,11 @@ class ReplicaLogWrite(google.protobuf.message.Message): log_position: builtins.int = ..., replica_id: builtins.bytes = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["log_position", b"log_position", "replica_id", b"replica_id"]) -> None: ... + def ClearField(self, field_name: typing.Literal["log_position", b"log_position", "replica_id", b"replica_id"]) -> None: ... global___ReplicaLogWrite = ReplicaLogWrite -@typing_extensions.final +@typing.final class ReplicatedTo(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -488,11 +492,11 @@ class ReplicatedTo(google.protobuf.message.Message): *, log_position: builtins.int = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["log_position", b"log_position"]) -> None: ... + def ClearField(self, field_name: typing.Literal["log_position", b"log_position"]) -> None: ... global___ReplicatedTo = ReplicatedTo -@typing_extensions.final +@typing.final class Epoch(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -509,11 +513,11 @@ class Epoch(google.protobuf.message.Message): epoch_number: builtins.int = ..., epoch_id: builtins.bytes = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["epoch_id", b"epoch_id", "epoch_number", b"epoch_number", "epoch_position", b"epoch_position"]) -> None: ... + def ClearField(self, field_name: typing.Literal["epoch_id", b"epoch_id", "epoch_number", b"epoch_number", "epoch_position", b"epoch_position"]) -> None: ... global___Epoch = Epoch -@typing_extensions.final +@typing.final class SubscribeReplica(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -528,14 +532,14 @@ class SubscribeReplica(google.protobuf.message.Message): VERSION_FIELD_NUMBER: builtins.int log_position: builtins.int chunk_id: builtins.bytes - @property - def LastEpochs(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Epoch]: ... ip: builtins.bytes port: builtins.int leader_id: builtins.bytes subscription_id: builtins.bytes is_promotable: builtins.bool version: builtins.int + @property + def LastEpochs(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Epoch]: ... def __init__( self, *, @@ -549,11 +553,11 @@ class SubscribeReplica(google.protobuf.message.Message): is_promotable: builtins.bool = ..., version: builtins.int = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["LastEpochs", b"LastEpochs", "chunk_id", b"chunk_id", "ip", b"ip", "is_promotable", b"is_promotable", "leader_id", b"leader_id", "log_position", b"log_position", "port", b"port", "subscription_id", b"subscription_id", "version", b"version"]) -> None: ... + def ClearField(self, field_name: typing.Literal["LastEpochs", b"LastEpochs", "chunk_id", b"chunk_id", "ip", b"ip", "is_promotable", b"is_promotable", "leader_id", b"leader_id", "log_position", b"log_position", "port", b"port", "subscription_id", b"subscription_id", "version", b"version"]) -> None: ... global___SubscribeReplica = SubscribeReplica -@typing_extensions.final +@typing.final class ReplicaSubscriptionRetry(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -567,11 +571,11 @@ class ReplicaSubscriptionRetry(google.protobuf.message.Message): leader_id: builtins.bytes = ..., subscription_id: builtins.bytes = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["leader_id", b"leader_id", "subscription_id", b"subscription_id"]) -> None: ... + def ClearField(self, field_name: typing.Literal["leader_id", b"leader_id", "subscription_id", b"subscription_id"]) -> None: ... global___ReplicaSubscriptionRetry = ReplicaSubscriptionRetry -@typing_extensions.final +@typing.final class ReplicaSubscribed(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -588,11 +592,11 @@ class ReplicaSubscribed(google.protobuf.message.Message): subscription_id: builtins.bytes = ..., subscription_position: builtins.int = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["leader_id", b"leader_id", "subscription_id", b"subscription_id", "subscription_position", b"subscription_position"]) -> None: ... + def ClearField(self, field_name: typing.Literal["leader_id", b"leader_id", "subscription_id", b"subscription_id", "subscription_position", b"subscription_position"]) -> None: ... global___ReplicaSubscribed = ReplicaSubscribed -@typing_extensions.final +@typing.final class ReplicaLogPositionAck(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -609,11 +613,11 @@ class ReplicaLogPositionAck(google.protobuf.message.Message): replication_log_position: builtins.int = ..., writer_log_position: builtins.int = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["replication_log_position", b"replication_log_position", "subscription_id", b"subscription_id", "writer_log_position", b"writer_log_position"]) -> None: ... + def ClearField(self, field_name: typing.Literal["replication_log_position", b"replication_log_position", "subscription_id", b"subscription_id", "writer_log_position", b"writer_log_position"]) -> None: ... global___ReplicaLogPositionAck = ReplicaLogPositionAck -@typing_extensions.final +@typing.final class CreateChunk(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -636,11 +640,11 @@ class CreateChunk(google.protobuf.message.Message): file_size: builtins.int = ..., is_completed_chunk: builtins.bool = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["chunk_header_bytes", b"chunk_header_bytes", "file_size", b"file_size", "is_completed_chunk", b"is_completed_chunk", "leader_id", b"leader_id", "subscription_id", b"subscription_id"]) -> None: ... + def ClearField(self, field_name: typing.Literal["chunk_header_bytes", b"chunk_header_bytes", "file_size", b"file_size", "is_completed_chunk", b"is_completed_chunk", "leader_id", b"leader_id", "subscription_id", b"subscription_id"]) -> None: ... global___CreateChunk = CreateChunk -@typing_extensions.final +@typing.final class RawChunkBulk(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -669,11 +673,11 @@ class RawChunkBulk(google.protobuf.message.Message): raw_bytes: builtins.bytes = ..., complete_chunk: builtins.bool = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["chunk_end_number", b"chunk_end_number", "chunk_start_number", b"chunk_start_number", "complete_chunk", b"complete_chunk", "leader_id", b"leader_id", "raw_bytes", b"raw_bytes", "raw_position", b"raw_position", "subscription_id", b"subscription_id"]) -> None: ... + def ClearField(self, field_name: typing.Literal["chunk_end_number", b"chunk_end_number", "chunk_start_number", b"chunk_start_number", "complete_chunk", b"complete_chunk", "leader_id", b"leader_id", "raw_bytes", b"raw_bytes", "raw_position", b"raw_position", "subscription_id", b"subscription_id"]) -> None: ... global___RawChunkBulk = RawChunkBulk -@typing_extensions.final +@typing.final class DataChunkBulk(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -702,11 +706,11 @@ class DataChunkBulk(google.protobuf.message.Message): data_bytes: builtins.bytes = ..., complete_chunk: builtins.bool = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["chunk_end_number", b"chunk_end_number", "chunk_start_number", b"chunk_start_number", "complete_chunk", b"complete_chunk", "data_bytes", b"data_bytes", "leader_id", b"leader_id", "subscription_id", b"subscription_id", "subscription_position", b"subscription_position"]) -> None: ... + def ClearField(self, field_name: typing.Literal["chunk_end_number", b"chunk_end_number", "chunk_start_number", b"chunk_start_number", "complete_chunk", b"complete_chunk", "data_bytes", b"data_bytes", "leader_id", b"leader_id", "subscription_id", b"subscription_id", "subscription_position", b"subscription_position"]) -> None: ... global___DataChunkBulk = DataChunkBulk -@typing_extensions.final +@typing.final class FollowerAssignment(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -720,11 +724,11 @@ class FollowerAssignment(google.protobuf.message.Message): leader_id: builtins.bytes = ..., subscription_id: builtins.bytes = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["leader_id", b"leader_id", "subscription_id", b"subscription_id"]) -> None: ... + def ClearField(self, field_name: typing.Literal["leader_id", b"leader_id", "subscription_id", b"subscription_id"]) -> None: ... global___FollowerAssignment = FollowerAssignment -@typing_extensions.final +@typing.final class CloneAssignment(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -738,11 +742,11 @@ class CloneAssignment(google.protobuf.message.Message): leader_id: builtins.bytes = ..., subscription_id: builtins.bytes = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["leader_id", b"leader_id", "subscription_id", b"subscription_id"]) -> None: ... + def ClearField(self, field_name: typing.Literal["leader_id", b"leader_id", "subscription_id", b"subscription_id"]) -> None: ... global___CloneAssignment = CloneAssignment -@typing_extensions.final +@typing.final class DropSubscription(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -756,6 +760,6 @@ class DropSubscription(google.protobuf.message.Message): leader_id: builtins.bytes = ..., subscription_id: builtins.bytes = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["leader_id", b"leader_id", "subscription_id", b"subscription_id"]) -> None: ... + def ClearField(self, field_name: typing.Literal["leader_id", b"leader_id", "subscription_id", b"subscription_id"]) -> None: ... global___DropSubscription = DropSubscription diff --git a/esdb/generated/code_pb2.py b/esdb/generated/code_pb2.py index 184dfd4..6cc8716 100644 --- a/esdb/generated/code_pb2.py +++ b/esdb/generated/code_pb2.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: code.proto -# Protobuf Python Version: 4.25.0 +# Protobuf Python Version: 4.25.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool diff --git a/esdb/generated/code_pb2.pyi b/esdb/generated/code_pb2.pyi index 90f217a..5c0d8e4 100644 --- a/esdb/generated/code_pb2.pyi +++ b/esdb/generated/code_pb2.pyi @@ -15,6 +15,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ + import builtins import google.protobuf.descriptor import google.protobuf.internal.enum_type_wrapper diff --git a/esdb/generated/gossip_pb2.py b/esdb/generated/gossip_pb2.py index b3b6837..fae766b 100644 --- a/esdb/generated/gossip_pb2.py +++ b/esdb/generated/gossip_pb2.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: gossip.proto -# Protobuf Python Version: 4.25.0 +# Protobuf Python Version: 4.25.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool diff --git a/esdb/generated/gossip_pb2.pyi b/esdb/generated/gossip_pb2.pyi index a3de4fa..14e82d1 100644 --- a/esdb/generated/gossip_pb2.pyi +++ b/esdb/generated/gossip_pb2.pyi @@ -2,6 +2,7 @@ @generated by mypy-protobuf. Do not edit manually! isort:skip_file """ + import builtins import collections.abc import google.protobuf.descriptor @@ -19,7 +20,7 @@ else: DESCRIPTOR: google.protobuf.descriptor.FileDescriptor -@typing_extensions.final +@typing.final class ClusterInfo(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -31,11 +32,11 @@ class ClusterInfo(google.protobuf.message.Message): *, members: collections.abc.Iterable[global___MemberInfo] | None = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["members", b"members"]) -> None: ... + def ClearField(self, field_name: typing.Literal["members", b"members"]) -> None: ... global___ClusterInfo = ClusterInfo -@typing_extensions.final +@typing.final class EndPoint(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -49,11 +50,11 @@ class EndPoint(google.protobuf.message.Message): address: builtins.str = ..., port: builtins.int = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["address", b"address", "port", b"port"]) -> None: ... + def ClearField(self, field_name: typing.Literal["address", b"address", "port", b"port"]) -> None: ... global___EndPoint = EndPoint -@typing_extensions.final +@typing.final class MemberInfo(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -103,12 +104,12 @@ class MemberInfo(google.protobuf.message.Message): STATE_FIELD_NUMBER: builtins.int IS_ALIVE_FIELD_NUMBER: builtins.int HTTP_END_POINT_FIELD_NUMBER: builtins.int - @property - def instance_id(self) -> shared_pb2.UUID: ... time_stamp: builtins.int state: global___MemberInfo.VNodeState.ValueType is_alive: builtins.bool @property + def instance_id(self) -> shared_pb2.UUID: ... + @property def http_end_point(self) -> global___EndPoint: ... def __init__( self, @@ -119,7 +120,7 @@ class MemberInfo(google.protobuf.message.Message): is_alive: builtins.bool = ..., http_end_point: global___EndPoint | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["http_end_point", b"http_end_point", "instance_id", b"instance_id"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["http_end_point", b"http_end_point", "instance_id", b"instance_id", "is_alive", b"is_alive", "state", b"state", "time_stamp", b"time_stamp"]) -> None: ... + def HasField(self, field_name: typing.Literal["http_end_point", b"http_end_point", "instance_id", b"instance_id"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["http_end_point", b"http_end_point", "instance_id", b"instance_id", "is_alive", b"is_alive", "state", b"state", "time_stamp", b"time_stamp"]) -> None: ... global___MemberInfo = MemberInfo diff --git a/esdb/generated/monitoring_pb2.py b/esdb/generated/monitoring_pb2.py index 74e449a..83b7864 100644 --- a/esdb/generated/monitoring_pb2.py +++ b/esdb/generated/monitoring_pb2.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: monitoring.proto -# Protobuf Python Version: 4.25.0 +# Protobuf Python Version: 4.25.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool diff --git a/esdb/generated/monitoring_pb2.pyi b/esdb/generated/monitoring_pb2.pyi index 1141ee8..3ae1b16 100644 --- a/esdb/generated/monitoring_pb2.pyi +++ b/esdb/generated/monitoring_pb2.pyi @@ -2,21 +2,17 @@ @generated by mypy-protobuf. Do not edit manually! isort:skip_file """ + import builtins import collections.abc import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.message -import sys - -if sys.version_info >= (3, 8): - import typing as typing_extensions -else: - import typing_extensions +import typing DESCRIPTOR: google.protobuf.descriptor.FileDescriptor -@typing_extensions.final +@typing.final class StatsReq(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -30,15 +26,15 @@ class StatsReq(google.protobuf.message.Message): use_metadata: builtins.bool = ..., refresh_time_period_in_ms: builtins.int = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["refresh_time_period_in_ms", b"refresh_time_period_in_ms", "use_metadata", b"use_metadata"]) -> None: ... + def ClearField(self, field_name: typing.Literal["refresh_time_period_in_ms", b"refresh_time_period_in_ms", "use_metadata", b"use_metadata"]) -> None: ... global___StatsReq = StatsReq -@typing_extensions.final +@typing.final class StatsResp(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor - @typing_extensions.final + @typing.final class StatsEntry(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -52,7 +48,7 @@ class StatsResp(google.protobuf.message.Message): key: builtins.str = ..., value: builtins.str = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["key", b"key", "value", b"value"]) -> None: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... STATS_FIELD_NUMBER: builtins.int @property @@ -62,6 +58,6 @@ class StatsResp(google.protobuf.message.Message): *, stats: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["stats", b"stats"]) -> None: ... + def ClearField(self, field_name: typing.Literal["stats", b"stats"]) -> None: ... global___StatsResp = StatsResp diff --git a/esdb/generated/operations_pb2.py b/esdb/generated/operations_pb2.py index d4672ec..4518d48 100644 --- a/esdb/generated/operations_pb2.py +++ b/esdb/generated/operations_pb2.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: operations.proto -# Protobuf Python Version: 4.25.0 +# Protobuf Python Version: 4.25.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool diff --git a/esdb/generated/operations_pb2.pyi b/esdb/generated/operations_pb2.pyi index d4ec573..61ebac1 100644 --- a/esdb/generated/operations_pb2.pyi +++ b/esdb/generated/operations_pb2.pyi @@ -2,6 +2,7 @@ @generated by mypy-protobuf. Do not edit manually! isort:skip_file """ + import builtins import google.protobuf.descriptor import google.protobuf.internal.enum_type_wrapper @@ -16,11 +17,11 @@ else: DESCRIPTOR: google.protobuf.descriptor.FileDescriptor -@typing_extensions.final +@typing.final class StartScavengeReq(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor - @typing_extensions.final + @typing.final class Options(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -34,7 +35,7 @@ class StartScavengeReq(google.protobuf.message.Message): thread_count: builtins.int = ..., start_from_chunk: builtins.int = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["start_from_chunk", b"start_from_chunk", "thread_count", b"thread_count"]) -> None: ... + def ClearField(self, field_name: typing.Literal["start_from_chunk", b"start_from_chunk", "thread_count", b"thread_count"]) -> None: ... OPTIONS_FIELD_NUMBER: builtins.int @property @@ -44,16 +45,16 @@ class StartScavengeReq(google.protobuf.message.Message): *, options: global___StartScavengeReq.Options | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["options", b"options"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["options", b"options"]) -> None: ... + def HasField(self, field_name: typing.Literal["options", b"options"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["options", b"options"]) -> None: ... global___StartScavengeReq = StartScavengeReq -@typing_extensions.final +@typing.final class StopScavengeReq(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor - @typing_extensions.final + @typing.final class Options(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -64,7 +65,7 @@ class StopScavengeReq(google.protobuf.message.Message): *, scavenge_id: builtins.str = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["scavenge_id", b"scavenge_id"]) -> None: ... + def ClearField(self, field_name: typing.Literal["scavenge_id", b"scavenge_id"]) -> None: ... OPTIONS_FIELD_NUMBER: builtins.int @property @@ -74,12 +75,12 @@ class StopScavengeReq(google.protobuf.message.Message): *, options: global___StopScavengeReq.Options | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["options", b"options"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["options", b"options"]) -> None: ... + def HasField(self, field_name: typing.Literal["options", b"options"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["options", b"options"]) -> None: ... global___StopScavengeReq = StopScavengeReq -@typing_extensions.final +@typing.final class ScavengeResp(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -108,11 +109,11 @@ class ScavengeResp(google.protobuf.message.Message): scavenge_id: builtins.str = ..., scavenge_result: global___ScavengeResp.ScavengeResult.ValueType = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["scavenge_id", b"scavenge_id", "scavenge_result", b"scavenge_result"]) -> None: ... + def ClearField(self, field_name: typing.Literal["scavenge_id", b"scavenge_id", "scavenge_result", b"scavenge_result"]) -> None: ... global___ScavengeResp = ScavengeResp -@typing_extensions.final +@typing.final class SetNodePriorityReq(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -123,6 +124,6 @@ class SetNodePriorityReq(google.protobuf.message.Message): *, priority: builtins.int = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["priority", b"priority"]) -> None: ... + def ClearField(self, field_name: typing.Literal["priority", b"priority"]) -> None: ... global___SetNodePriorityReq = SetNodePriorityReq diff --git a/esdb/generated/persistent_pb2.py b/esdb/generated/persistent_pb2.py index c6a583c..4f7b3fb 100644 --- a/esdb/generated/persistent_pb2.py +++ b/esdb/generated/persistent_pb2.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: persistent.proto -# Protobuf Python Version: 4.25.0 +# Protobuf Python Version: 4.25.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool diff --git a/esdb/generated/persistent_pb2.pyi b/esdb/generated/persistent_pb2.pyi index ece6e22..31de911 100644 --- a/esdb/generated/persistent_pb2.pyi +++ b/esdb/generated/persistent_pb2.pyi @@ -2,6 +2,7 @@ @generated by mypy-protobuf. Do not edit manually! isort:skip_file """ + import builtins import collections.abc import google.protobuf.descriptor @@ -19,15 +20,15 @@ else: DESCRIPTOR: google.protobuf.descriptor.FileDescriptor -@typing_extensions.final +@typing.final class ReadReq(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor - @typing_extensions.final + @typing.final class Options(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor - @typing_extensions.final + @typing.final class UUIDOption(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -43,21 +44,21 @@ class ReadReq(google.protobuf.message.Message): structured: shared_pb2.Empty | None = ..., string: shared_pb2.Empty | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["content", b"content", "string", b"string", "structured", b"structured"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["content", b"content", "string", b"string", "structured", b"structured"]) -> None: ... - def WhichOneof(self, oneof_group: typing_extensions.Literal["content", b"content"]) -> typing_extensions.Literal["structured", "string"] | None: ... + def HasField(self, field_name: typing.Literal["content", b"content", "string", b"string", "structured", b"structured"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["content", b"content", "string", b"string", "structured", b"structured"]) -> None: ... + def WhichOneof(self, oneof_group: typing.Literal["content", b"content"]) -> typing.Literal["structured", "string"] | None: ... STREAM_IDENTIFIER_FIELD_NUMBER: builtins.int ALL_FIELD_NUMBER: builtins.int GROUP_NAME_FIELD_NUMBER: builtins.int BUFFER_SIZE_FIELD_NUMBER: builtins.int UUID_OPTION_FIELD_NUMBER: builtins.int + group_name: builtins.str + buffer_size: builtins.int @property def stream_identifier(self) -> shared_pb2.StreamIdentifier: ... @property def all(self) -> shared_pb2.Empty: ... - group_name: builtins.str - buffer_size: builtins.int @property def uuid_option(self) -> global___ReadReq.Options.UUIDOption: ... def __init__( @@ -69,11 +70,11 @@ class ReadReq(google.protobuf.message.Message): buffer_size: builtins.int = ..., uuid_option: global___ReadReq.Options.UUIDOption | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["all", b"all", "stream_identifier", b"stream_identifier", "stream_option", b"stream_option", "uuid_option", b"uuid_option"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["all", b"all", "buffer_size", b"buffer_size", "group_name", b"group_name", "stream_identifier", b"stream_identifier", "stream_option", b"stream_option", "uuid_option", b"uuid_option"]) -> None: ... - def WhichOneof(self, oneof_group: typing_extensions.Literal["stream_option", b"stream_option"]) -> typing_extensions.Literal["stream_identifier", "all"] | None: ... + def HasField(self, field_name: typing.Literal["all", b"all", "stream_identifier", b"stream_identifier", "stream_option", b"stream_option", "uuid_option", b"uuid_option"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["all", b"all", "buffer_size", b"buffer_size", "group_name", b"group_name", "stream_identifier", b"stream_identifier", "stream_option", b"stream_option", "uuid_option", b"uuid_option"]) -> None: ... + def WhichOneof(self, oneof_group: typing.Literal["stream_option", b"stream_option"]) -> typing.Literal["stream_identifier", "all"] | None: ... - @typing_extensions.final + @typing.final class Ack(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -88,9 +89,9 @@ class ReadReq(google.protobuf.message.Message): id: builtins.bytes = ..., ids: collections.abc.Iterable[shared_pb2.UUID] | None = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["id", b"id", "ids", b"ids"]) -> None: ... + def ClearField(self, field_name: typing.Literal["id", b"id", "ids", b"ids"]) -> None: ... - @typing_extensions.final + @typing.final class Nack(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -118,10 +119,10 @@ class ReadReq(google.protobuf.message.Message): ACTION_FIELD_NUMBER: builtins.int REASON_FIELD_NUMBER: builtins.int id: builtins.bytes - @property - def ids(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[shared_pb2.UUID]: ... action: global___ReadReq.Nack.Action.ValueType reason: builtins.str + @property + def ids(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[shared_pb2.UUID]: ... def __init__( self, *, @@ -130,7 +131,7 @@ class ReadReq(google.protobuf.message.Message): action: global___ReadReq.Nack.Action.ValueType = ..., reason: builtins.str = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["action", b"action", "id", b"id", "ids", b"ids", "reason", b"reason"]) -> None: ... + def ClearField(self, field_name: typing.Literal["action", b"action", "id", b"id", "ids", b"ids", "reason", b"reason"]) -> None: ... OPTIONS_FIELD_NUMBER: builtins.int ACK_FIELD_NUMBER: builtins.int @@ -148,25 +149,25 @@ class ReadReq(google.protobuf.message.Message): ack: global___ReadReq.Ack | None = ..., nack: global___ReadReq.Nack | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["ack", b"ack", "content", b"content", "nack", b"nack", "options", b"options"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["ack", b"ack", "content", b"content", "nack", b"nack", "options", b"options"]) -> None: ... - def WhichOneof(self, oneof_group: typing_extensions.Literal["content", b"content"]) -> typing_extensions.Literal["options", "ack", "nack"] | None: ... + def HasField(self, field_name: typing.Literal["ack", b"ack", "content", b"content", "nack", b"nack", "options", b"options"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["ack", b"ack", "content", b"content", "nack", b"nack", "options", b"options"]) -> None: ... + def WhichOneof(self, oneof_group: typing.Literal["content", b"content"]) -> typing.Literal["options", "ack", "nack"] | None: ... global___ReadReq = ReadReq -@typing_extensions.final +@typing.final class ReadResp(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor - @typing_extensions.final + @typing.final class ReadEvent(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor - @typing_extensions.final + @typing.final class RecordedEvent(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor - @typing_extensions.final + @typing.final class MetadataEntry(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -180,7 +181,7 @@ class ReadResp(google.protobuf.message.Message): key: builtins.str = ..., value: builtins.str = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["key", b"key", "value", b"value"]) -> None: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... ID_FIELD_NUMBER: builtins.int STREAM_IDENTIFIER_FIELD_NUMBER: builtins.int @@ -190,17 +191,17 @@ class ReadResp(google.protobuf.message.Message): METADATA_FIELD_NUMBER: builtins.int CUSTOM_METADATA_FIELD_NUMBER: builtins.int DATA_FIELD_NUMBER: builtins.int + stream_revision: builtins.int + prepare_position: builtins.int + commit_position: builtins.int + custom_metadata: builtins.bytes + data: builtins.bytes @property def id(self) -> shared_pb2.UUID: ... @property def stream_identifier(self) -> shared_pb2.StreamIdentifier: ... - stream_revision: builtins.int - prepare_position: builtins.int - commit_position: builtins.int @property def metadata(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: ... - custom_metadata: builtins.bytes - data: builtins.bytes def __init__( self, *, @@ -213,8 +214,8 @@ class ReadResp(google.protobuf.message.Message): custom_metadata: builtins.bytes = ..., data: builtins.bytes = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["id", b"id", "stream_identifier", b"stream_identifier"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["commit_position", b"commit_position", "custom_metadata", b"custom_metadata", "data", b"data", "id", b"id", "metadata", b"metadata", "prepare_position", b"prepare_position", "stream_identifier", b"stream_identifier", "stream_revision", b"stream_revision"]) -> None: ... + def HasField(self, field_name: typing.Literal["id", b"id", "stream_identifier", b"stream_identifier"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["commit_position", b"commit_position", "custom_metadata", b"custom_metadata", "data", b"data", "id", b"id", "metadata", b"metadata", "prepare_position", b"prepare_position", "stream_identifier", b"stream_identifier", "stream_revision", b"stream_revision"]) -> None: ... EVENT_FIELD_NUMBER: builtins.int LINK_FIELD_NUMBER: builtins.int @@ -222,14 +223,14 @@ class ReadResp(google.protobuf.message.Message): NO_POSITION_FIELD_NUMBER: builtins.int RETRY_COUNT_FIELD_NUMBER: builtins.int NO_RETRY_COUNT_FIELD_NUMBER: builtins.int + commit_position: builtins.int + retry_count: builtins.int @property def event(self) -> global___ReadResp.ReadEvent.RecordedEvent: ... @property def link(self) -> global___ReadResp.ReadEvent.RecordedEvent: ... - commit_position: builtins.int @property def no_position(self) -> shared_pb2.Empty: ... - retry_count: builtins.int @property def no_retry_count(self) -> shared_pb2.Empty: ... def __init__( @@ -242,14 +243,14 @@ class ReadResp(google.protobuf.message.Message): retry_count: builtins.int = ..., no_retry_count: shared_pb2.Empty | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["commit_position", b"commit_position", "count", b"count", "event", b"event", "link", b"link", "no_position", b"no_position", "no_retry_count", b"no_retry_count", "position", b"position", "retry_count", b"retry_count"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["commit_position", b"commit_position", "count", b"count", "event", b"event", "link", b"link", "no_position", b"no_position", "no_retry_count", b"no_retry_count", "position", b"position", "retry_count", b"retry_count"]) -> None: ... + def HasField(self, field_name: typing.Literal["commit_position", b"commit_position", "count", b"count", "event", b"event", "link", b"link", "no_position", b"no_position", "no_retry_count", b"no_retry_count", "position", b"position", "retry_count", b"retry_count"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["commit_position", b"commit_position", "count", b"count", "event", b"event", "link", b"link", "no_position", b"no_position", "no_retry_count", b"no_retry_count", "position", b"position", "retry_count", b"retry_count"]) -> None: ... @typing.overload - def WhichOneof(self, oneof_group: typing_extensions.Literal["count", b"count"]) -> typing_extensions.Literal["retry_count", "no_retry_count"] | None: ... + def WhichOneof(self, oneof_group: typing.Literal["count", b"count"]) -> typing.Literal["retry_count", "no_retry_count"] | None: ... @typing.overload - def WhichOneof(self, oneof_group: typing_extensions.Literal["position", b"position"]) -> typing_extensions.Literal["commit_position", "no_position"] | None: ... + def WhichOneof(self, oneof_group: typing.Literal["position", b"position"]) -> typing.Literal["commit_position", "no_position"] | None: ... - @typing_extensions.final + @typing.final class SubscriptionConfirmation(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -260,7 +261,7 @@ class ReadResp(google.protobuf.message.Message): *, subscription_id: builtins.str = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["subscription_id", b"subscription_id"]) -> None: ... + def ClearField(self, field_name: typing.Literal["subscription_id", b"subscription_id"]) -> None: ... EVENT_FIELD_NUMBER: builtins.int SUBSCRIPTION_CONFIRMATION_FIELD_NUMBER: builtins.int @@ -274,13 +275,13 @@ class ReadResp(google.protobuf.message.Message): event: global___ReadResp.ReadEvent | None = ..., subscription_confirmation: global___ReadResp.SubscriptionConfirmation | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["content", b"content", "event", b"event", "subscription_confirmation", b"subscription_confirmation"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["content", b"content", "event", b"event", "subscription_confirmation", b"subscription_confirmation"]) -> None: ... - def WhichOneof(self, oneof_group: typing_extensions.Literal["content", b"content"]) -> typing_extensions.Literal["event", "subscription_confirmation"] | None: ... + def HasField(self, field_name: typing.Literal["content", b"content", "event", b"event", "subscription_confirmation", b"subscription_confirmation"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["content", b"content", "event", b"event", "subscription_confirmation", b"subscription_confirmation"]) -> None: ... + def WhichOneof(self, oneof_group: typing.Literal["content", b"content"]) -> typing.Literal["event", "subscription_confirmation"] | None: ... global___ReadResp = ReadResp -@typing_extensions.final +@typing.final class CreateReq(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -299,7 +300,7 @@ class CreateReq(google.protobuf.message.Message): RoundRobin: CreateReq.ConsumerStrategy.ValueType # 1 Pinned: CreateReq.ConsumerStrategy.ValueType # 2 - @typing_extensions.final + @typing.final class Options(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -308,13 +309,13 @@ class CreateReq(google.protobuf.message.Message): STREAM_IDENTIFIER_FIELD_NUMBER: builtins.int GROUP_NAME_FIELD_NUMBER: builtins.int SETTINGS_FIELD_NUMBER: builtins.int + group_name: builtins.str @property def stream(self) -> global___CreateReq.StreamOptions: ... @property def all(self) -> global___CreateReq.AllOptions: ... @property def stream_identifier(self) -> shared_pb2.StreamIdentifier: ... - group_name: builtins.str @property def settings(self) -> global___CreateReq.Settings: ... def __init__( @@ -326,11 +327,11 @@ class CreateReq(google.protobuf.message.Message): group_name: builtins.str = ..., settings: global___CreateReq.Settings | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["all", b"all", "settings", b"settings", "stream", b"stream", "stream_identifier", b"stream_identifier", "stream_option", b"stream_option"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["all", b"all", "group_name", b"group_name", "settings", b"settings", "stream", b"stream", "stream_identifier", b"stream_identifier", "stream_option", b"stream_option"]) -> None: ... - def WhichOneof(self, oneof_group: typing_extensions.Literal["stream_option", b"stream_option"]) -> typing_extensions.Literal["stream", "all"] | None: ... + def HasField(self, field_name: typing.Literal["all", b"all", "settings", b"settings", "stream", b"stream", "stream_identifier", b"stream_identifier", "stream_option", b"stream_option"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["all", b"all", "group_name", b"group_name", "settings", b"settings", "stream", b"stream", "stream_identifier", b"stream_identifier", "stream_option", b"stream_option"]) -> None: ... + def WhichOneof(self, oneof_group: typing.Literal["stream_option", b"stream_option"]) -> typing.Literal["stream", "all"] | None: ... - @typing_extensions.final + @typing.final class StreamOptions(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -338,9 +339,9 @@ class CreateReq(google.protobuf.message.Message): REVISION_FIELD_NUMBER: builtins.int START_FIELD_NUMBER: builtins.int END_FIELD_NUMBER: builtins.int + revision: builtins.int @property def stream_identifier(self) -> shared_pb2.StreamIdentifier: ... - revision: builtins.int @property def start(self) -> shared_pb2.Empty: ... @property @@ -353,19 +354,19 @@ class CreateReq(google.protobuf.message.Message): start: shared_pb2.Empty | None = ..., end: shared_pb2.Empty | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["end", b"end", "revision", b"revision", "revision_option", b"revision_option", "start", b"start", "stream_identifier", b"stream_identifier"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["end", b"end", "revision", b"revision", "revision_option", b"revision_option", "start", b"start", "stream_identifier", b"stream_identifier"]) -> None: ... - def WhichOneof(self, oneof_group: typing_extensions.Literal["revision_option", b"revision_option"]) -> typing_extensions.Literal["revision", "start", "end"] | None: ... + def HasField(self, field_name: typing.Literal["end", b"end", "revision", b"revision", "revision_option", b"revision_option", "start", b"start", "stream_identifier", b"stream_identifier"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["end", b"end", "revision", b"revision", "revision_option", b"revision_option", "start", b"start", "stream_identifier", b"stream_identifier"]) -> None: ... + def WhichOneof(self, oneof_group: typing.Literal["revision_option", b"revision_option"]) -> typing.Literal["revision", "start", "end"] | None: ... - @typing_extensions.final + @typing.final class AllOptions(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor - @typing_extensions.final + @typing.final class FilterOptions(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor - @typing_extensions.final + @typing.final class Expression(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -380,21 +381,21 @@ class CreateReq(google.protobuf.message.Message): regex: builtins.str = ..., prefix: collections.abc.Iterable[builtins.str] | None = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["prefix", b"prefix", "regex", b"regex"]) -> None: ... + def ClearField(self, field_name: typing.Literal["prefix", b"prefix", "regex", b"regex"]) -> None: ... STREAM_IDENTIFIER_FIELD_NUMBER: builtins.int EVENT_TYPE_FIELD_NUMBER: builtins.int MAX_FIELD_NUMBER: builtins.int COUNT_FIELD_NUMBER: builtins.int CHECKPOINTINTERVALMULTIPLIER_FIELD_NUMBER: builtins.int + max: builtins.int + checkpointIntervalMultiplier: builtins.int @property def stream_identifier(self) -> global___CreateReq.AllOptions.FilterOptions.Expression: ... @property def event_type(self) -> global___CreateReq.AllOptions.FilterOptions.Expression: ... - max: builtins.int @property def count(self) -> shared_pb2.Empty: ... - checkpointIntervalMultiplier: builtins.int def __init__( self, *, @@ -404,12 +405,12 @@ class CreateReq(google.protobuf.message.Message): count: shared_pb2.Empty | None = ..., checkpointIntervalMultiplier: builtins.int = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["count", b"count", "event_type", b"event_type", "filter", b"filter", "max", b"max", "stream_identifier", b"stream_identifier", "window", b"window"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["checkpointIntervalMultiplier", b"checkpointIntervalMultiplier", "count", b"count", "event_type", b"event_type", "filter", b"filter", "max", b"max", "stream_identifier", b"stream_identifier", "window", b"window"]) -> None: ... + def HasField(self, field_name: typing.Literal["count", b"count", "event_type", b"event_type", "filter", b"filter", "max", b"max", "stream_identifier", b"stream_identifier", "window", b"window"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["checkpointIntervalMultiplier", b"checkpointIntervalMultiplier", "count", b"count", "event_type", b"event_type", "filter", b"filter", "max", b"max", "stream_identifier", b"stream_identifier", "window", b"window"]) -> None: ... @typing.overload - def WhichOneof(self, oneof_group: typing_extensions.Literal["filter", b"filter"]) -> typing_extensions.Literal["stream_identifier", "event_type"] | None: ... + def WhichOneof(self, oneof_group: typing.Literal["filter", b"filter"]) -> typing.Literal["stream_identifier", "event_type"] | None: ... @typing.overload - def WhichOneof(self, oneof_group: typing_extensions.Literal["window", b"window"]) -> typing_extensions.Literal["max", "count"] | None: ... + def WhichOneof(self, oneof_group: typing.Literal["window", b"window"]) -> typing.Literal["max", "count"] | None: ... POSITION_FIELD_NUMBER: builtins.int START_FIELD_NUMBER: builtins.int @@ -435,14 +436,14 @@ class CreateReq(google.protobuf.message.Message): filter: global___CreateReq.AllOptions.FilterOptions | None = ..., no_filter: shared_pb2.Empty | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["all_option", b"all_option", "end", b"end", "filter", b"filter", "filter_option", b"filter_option", "no_filter", b"no_filter", "position", b"position", "start", b"start"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["all_option", b"all_option", "end", b"end", "filter", b"filter", "filter_option", b"filter_option", "no_filter", b"no_filter", "position", b"position", "start", b"start"]) -> None: ... + def HasField(self, field_name: typing.Literal["all_option", b"all_option", "end", b"end", "filter", b"filter", "filter_option", b"filter_option", "no_filter", b"no_filter", "position", b"position", "start", b"start"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["all_option", b"all_option", "end", b"end", "filter", b"filter", "filter_option", b"filter_option", "no_filter", b"no_filter", "position", b"position", "start", b"start"]) -> None: ... @typing.overload - def WhichOneof(self, oneof_group: typing_extensions.Literal["all_option", b"all_option"]) -> typing_extensions.Literal["position", "start", "end"] | None: ... + def WhichOneof(self, oneof_group: typing.Literal["all_option", b"all_option"]) -> typing.Literal["position", "start", "end"] | None: ... @typing.overload - def WhichOneof(self, oneof_group: typing_extensions.Literal["filter_option", b"filter_option"]) -> typing_extensions.Literal["filter", "no_filter"] | None: ... + def WhichOneof(self, oneof_group: typing.Literal["filter_option", b"filter_option"]) -> typing.Literal["filter", "no_filter"] | None: ... - @typing_extensions.final + @typing.final class Position(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -456,9 +457,9 @@ class CreateReq(google.protobuf.message.Message): commit_position: builtins.int = ..., prepare_position: builtins.int = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["commit_position", b"commit_position", "prepare_position", b"prepare_position"]) -> None: ... + def ClearField(self, field_name: typing.Literal["commit_position", b"commit_position", "prepare_position", b"prepare_position"]) -> None: ... - @typing_extensions.final + @typing.final class Settings(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -514,12 +515,12 @@ class CreateReq(google.protobuf.message.Message): checkpoint_after_ms: builtins.int = ..., consumer_strategy: builtins.str = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["checkpoint_after", b"checkpoint_after", "checkpoint_after_ms", b"checkpoint_after_ms", "checkpoint_after_ticks", b"checkpoint_after_ticks", "message_timeout", b"message_timeout", "message_timeout_ms", b"message_timeout_ms", "message_timeout_ticks", b"message_timeout_ticks"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["checkpoint_after", b"checkpoint_after", "checkpoint_after_ms", b"checkpoint_after_ms", "checkpoint_after_ticks", b"checkpoint_after_ticks", "consumer_strategy", b"consumer_strategy", "extra_statistics", b"extra_statistics", "history_buffer_size", b"history_buffer_size", "live_buffer_size", b"live_buffer_size", "max_checkpoint_count", b"max_checkpoint_count", "max_retry_count", b"max_retry_count", "max_subscriber_count", b"max_subscriber_count", "message_timeout", b"message_timeout", "message_timeout_ms", b"message_timeout_ms", "message_timeout_ticks", b"message_timeout_ticks", "min_checkpoint_count", b"min_checkpoint_count", "named_consumer_strategy", b"named_consumer_strategy", "read_batch_size", b"read_batch_size", "resolve_links", b"resolve_links", "revision", b"revision"]) -> None: ... + def HasField(self, field_name: typing.Literal["checkpoint_after", b"checkpoint_after", "checkpoint_after_ms", b"checkpoint_after_ms", "checkpoint_after_ticks", b"checkpoint_after_ticks", "message_timeout", b"message_timeout", "message_timeout_ms", b"message_timeout_ms", "message_timeout_ticks", b"message_timeout_ticks"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["checkpoint_after", b"checkpoint_after", "checkpoint_after_ms", b"checkpoint_after_ms", "checkpoint_after_ticks", b"checkpoint_after_ticks", "consumer_strategy", b"consumer_strategy", "extra_statistics", b"extra_statistics", "history_buffer_size", b"history_buffer_size", "live_buffer_size", b"live_buffer_size", "max_checkpoint_count", b"max_checkpoint_count", "max_retry_count", b"max_retry_count", "max_subscriber_count", b"max_subscriber_count", "message_timeout", b"message_timeout", "message_timeout_ms", b"message_timeout_ms", "message_timeout_ticks", b"message_timeout_ticks", "min_checkpoint_count", b"min_checkpoint_count", "named_consumer_strategy", b"named_consumer_strategy", "read_batch_size", b"read_batch_size", "resolve_links", b"resolve_links", "revision", b"revision"]) -> None: ... @typing.overload - def WhichOneof(self, oneof_group: typing_extensions.Literal["checkpoint_after", b"checkpoint_after"]) -> typing_extensions.Literal["checkpoint_after_ticks", "checkpoint_after_ms"] | None: ... + def WhichOneof(self, oneof_group: typing.Literal["checkpoint_after", b"checkpoint_after"]) -> typing.Literal["checkpoint_after_ticks", "checkpoint_after_ms"] | None: ... @typing.overload - def WhichOneof(self, oneof_group: typing_extensions.Literal["message_timeout", b"message_timeout"]) -> typing_extensions.Literal["message_timeout_ticks", "message_timeout_ms"] | None: ... + def WhichOneof(self, oneof_group: typing.Literal["message_timeout", b"message_timeout"]) -> typing.Literal["message_timeout_ticks", "message_timeout_ms"] | None: ... OPTIONS_FIELD_NUMBER: builtins.int @property @@ -529,12 +530,12 @@ class CreateReq(google.protobuf.message.Message): *, options: global___CreateReq.Options | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["options", b"options"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["options", b"options"]) -> None: ... + def HasField(self, field_name: typing.Literal["options", b"options"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["options", b"options"]) -> None: ... global___CreateReq = CreateReq -@typing_extensions.final +@typing.final class CreateResp(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -544,7 +545,7 @@ class CreateResp(google.protobuf.message.Message): global___CreateResp = CreateResp -@typing_extensions.final +@typing.final class UpdateReq(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -563,7 +564,7 @@ class UpdateReq(google.protobuf.message.Message): RoundRobin: UpdateReq.ConsumerStrategy.ValueType # 1 Pinned: UpdateReq.ConsumerStrategy.ValueType # 2 - @typing_extensions.final + @typing.final class Options(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -572,13 +573,13 @@ class UpdateReq(google.protobuf.message.Message): STREAM_IDENTIFIER_FIELD_NUMBER: builtins.int GROUP_NAME_FIELD_NUMBER: builtins.int SETTINGS_FIELD_NUMBER: builtins.int + group_name: builtins.str @property def stream(self) -> global___UpdateReq.StreamOptions: ... @property def all(self) -> global___UpdateReq.AllOptions: ... @property def stream_identifier(self) -> shared_pb2.StreamIdentifier: ... - group_name: builtins.str @property def settings(self) -> global___UpdateReq.Settings: ... def __init__( @@ -590,11 +591,11 @@ class UpdateReq(google.protobuf.message.Message): group_name: builtins.str = ..., settings: global___UpdateReq.Settings | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["all", b"all", "settings", b"settings", "stream", b"stream", "stream_identifier", b"stream_identifier", "stream_option", b"stream_option"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["all", b"all", "group_name", b"group_name", "settings", b"settings", "stream", b"stream", "stream_identifier", b"stream_identifier", "stream_option", b"stream_option"]) -> None: ... - def WhichOneof(self, oneof_group: typing_extensions.Literal["stream_option", b"stream_option"]) -> typing_extensions.Literal["stream", "all"] | None: ... + def HasField(self, field_name: typing.Literal["all", b"all", "settings", b"settings", "stream", b"stream", "stream_identifier", b"stream_identifier", "stream_option", b"stream_option"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["all", b"all", "group_name", b"group_name", "settings", b"settings", "stream", b"stream", "stream_identifier", b"stream_identifier", "stream_option", b"stream_option"]) -> None: ... + def WhichOneof(self, oneof_group: typing.Literal["stream_option", b"stream_option"]) -> typing.Literal["stream", "all"] | None: ... - @typing_extensions.final + @typing.final class StreamOptions(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -602,9 +603,9 @@ class UpdateReq(google.protobuf.message.Message): REVISION_FIELD_NUMBER: builtins.int START_FIELD_NUMBER: builtins.int END_FIELD_NUMBER: builtins.int + revision: builtins.int @property def stream_identifier(self) -> shared_pb2.StreamIdentifier: ... - revision: builtins.int @property def start(self) -> shared_pb2.Empty: ... @property @@ -617,11 +618,11 @@ class UpdateReq(google.protobuf.message.Message): start: shared_pb2.Empty | None = ..., end: shared_pb2.Empty | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["end", b"end", "revision", b"revision", "revision_option", b"revision_option", "start", b"start", "stream_identifier", b"stream_identifier"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["end", b"end", "revision", b"revision", "revision_option", b"revision_option", "start", b"start", "stream_identifier", b"stream_identifier"]) -> None: ... - def WhichOneof(self, oneof_group: typing_extensions.Literal["revision_option", b"revision_option"]) -> typing_extensions.Literal["revision", "start", "end"] | None: ... + def HasField(self, field_name: typing.Literal["end", b"end", "revision", b"revision", "revision_option", b"revision_option", "start", b"start", "stream_identifier", b"stream_identifier"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["end", b"end", "revision", b"revision", "revision_option", b"revision_option", "start", b"start", "stream_identifier", b"stream_identifier"]) -> None: ... + def WhichOneof(self, oneof_group: typing.Literal["revision_option", b"revision_option"]) -> typing.Literal["revision", "start", "end"] | None: ... - @typing_extensions.final + @typing.final class AllOptions(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -641,11 +642,11 @@ class UpdateReq(google.protobuf.message.Message): start: shared_pb2.Empty | None = ..., end: shared_pb2.Empty | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["all_option", b"all_option", "end", b"end", "position", b"position", "start", b"start"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["all_option", b"all_option", "end", b"end", "position", b"position", "start", b"start"]) -> None: ... - def WhichOneof(self, oneof_group: typing_extensions.Literal["all_option", b"all_option"]) -> typing_extensions.Literal["position", "start", "end"] | None: ... + def HasField(self, field_name: typing.Literal["all_option", b"all_option", "end", b"end", "position", b"position", "start", b"start"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["all_option", b"all_option", "end", b"end", "position", b"position", "start", b"start"]) -> None: ... + def WhichOneof(self, oneof_group: typing.Literal["all_option", b"all_option"]) -> typing.Literal["position", "start", "end"] | None: ... - @typing_extensions.final + @typing.final class Position(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -659,9 +660,9 @@ class UpdateReq(google.protobuf.message.Message): commit_position: builtins.int = ..., prepare_position: builtins.int = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["commit_position", b"commit_position", "prepare_position", b"prepare_position"]) -> None: ... + def ClearField(self, field_name: typing.Literal["commit_position", b"commit_position", "prepare_position", b"prepare_position"]) -> None: ... - @typing_extensions.final + @typing.final class Settings(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -714,12 +715,12 @@ class UpdateReq(google.protobuf.message.Message): checkpoint_after_ticks: builtins.int = ..., checkpoint_after_ms: builtins.int = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["checkpoint_after", b"checkpoint_after", "checkpoint_after_ms", b"checkpoint_after_ms", "checkpoint_after_ticks", b"checkpoint_after_ticks", "message_timeout", b"message_timeout", "message_timeout_ms", b"message_timeout_ms", "message_timeout_ticks", b"message_timeout_ticks"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["checkpoint_after", b"checkpoint_after", "checkpoint_after_ms", b"checkpoint_after_ms", "checkpoint_after_ticks", b"checkpoint_after_ticks", "extra_statistics", b"extra_statistics", "history_buffer_size", b"history_buffer_size", "live_buffer_size", b"live_buffer_size", "max_checkpoint_count", b"max_checkpoint_count", "max_retry_count", b"max_retry_count", "max_subscriber_count", b"max_subscriber_count", "message_timeout", b"message_timeout", "message_timeout_ms", b"message_timeout_ms", "message_timeout_ticks", b"message_timeout_ticks", "min_checkpoint_count", b"min_checkpoint_count", "named_consumer_strategy", b"named_consumer_strategy", "read_batch_size", b"read_batch_size", "resolve_links", b"resolve_links", "revision", b"revision"]) -> None: ... + def HasField(self, field_name: typing.Literal["checkpoint_after", b"checkpoint_after", "checkpoint_after_ms", b"checkpoint_after_ms", "checkpoint_after_ticks", b"checkpoint_after_ticks", "message_timeout", b"message_timeout", "message_timeout_ms", b"message_timeout_ms", "message_timeout_ticks", b"message_timeout_ticks"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["checkpoint_after", b"checkpoint_after", "checkpoint_after_ms", b"checkpoint_after_ms", "checkpoint_after_ticks", b"checkpoint_after_ticks", "extra_statistics", b"extra_statistics", "history_buffer_size", b"history_buffer_size", "live_buffer_size", b"live_buffer_size", "max_checkpoint_count", b"max_checkpoint_count", "max_retry_count", b"max_retry_count", "max_subscriber_count", b"max_subscriber_count", "message_timeout", b"message_timeout", "message_timeout_ms", b"message_timeout_ms", "message_timeout_ticks", b"message_timeout_ticks", "min_checkpoint_count", b"min_checkpoint_count", "named_consumer_strategy", b"named_consumer_strategy", "read_batch_size", b"read_batch_size", "resolve_links", b"resolve_links", "revision", b"revision"]) -> None: ... @typing.overload - def WhichOneof(self, oneof_group: typing_extensions.Literal["checkpoint_after", b"checkpoint_after"]) -> typing_extensions.Literal["checkpoint_after_ticks", "checkpoint_after_ms"] | None: ... + def WhichOneof(self, oneof_group: typing.Literal["checkpoint_after", b"checkpoint_after"]) -> typing.Literal["checkpoint_after_ticks", "checkpoint_after_ms"] | None: ... @typing.overload - def WhichOneof(self, oneof_group: typing_extensions.Literal["message_timeout", b"message_timeout"]) -> typing_extensions.Literal["message_timeout_ticks", "message_timeout_ms"] | None: ... + def WhichOneof(self, oneof_group: typing.Literal["message_timeout", b"message_timeout"]) -> typing.Literal["message_timeout_ticks", "message_timeout_ms"] | None: ... OPTIONS_FIELD_NUMBER: builtins.int @property @@ -729,12 +730,12 @@ class UpdateReq(google.protobuf.message.Message): *, options: global___UpdateReq.Options | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["options", b"options"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["options", b"options"]) -> None: ... + def HasField(self, field_name: typing.Literal["options", b"options"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["options", b"options"]) -> None: ... global___UpdateReq = UpdateReq -@typing_extensions.final +@typing.final class UpdateResp(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -744,22 +745,22 @@ class UpdateResp(google.protobuf.message.Message): global___UpdateResp = UpdateResp -@typing_extensions.final +@typing.final class DeleteReq(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor - @typing_extensions.final + @typing.final class Options(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor STREAM_IDENTIFIER_FIELD_NUMBER: builtins.int ALL_FIELD_NUMBER: builtins.int GROUP_NAME_FIELD_NUMBER: builtins.int + group_name: builtins.str @property def stream_identifier(self) -> shared_pb2.StreamIdentifier: ... @property def all(self) -> shared_pb2.Empty: ... - group_name: builtins.str def __init__( self, *, @@ -767,9 +768,9 @@ class DeleteReq(google.protobuf.message.Message): all: shared_pb2.Empty | None = ..., group_name: builtins.str = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["all", b"all", "stream_identifier", b"stream_identifier", "stream_option", b"stream_option"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["all", b"all", "group_name", b"group_name", "stream_identifier", b"stream_identifier", "stream_option", b"stream_option"]) -> None: ... - def WhichOneof(self, oneof_group: typing_extensions.Literal["stream_option", b"stream_option"]) -> typing_extensions.Literal["stream_identifier", "all"] | None: ... + def HasField(self, field_name: typing.Literal["all", b"all", "stream_identifier", b"stream_identifier", "stream_option", b"stream_option"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["all", b"all", "group_name", b"group_name", "stream_identifier", b"stream_identifier", "stream_option", b"stream_option"]) -> None: ... + def WhichOneof(self, oneof_group: typing.Literal["stream_option", b"stream_option"]) -> typing.Literal["stream_identifier", "all"] | None: ... OPTIONS_FIELD_NUMBER: builtins.int @property @@ -779,12 +780,12 @@ class DeleteReq(google.protobuf.message.Message): *, options: global___DeleteReq.Options | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["options", b"options"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["options", b"options"]) -> None: ... + def HasField(self, field_name: typing.Literal["options", b"options"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["options", b"options"]) -> None: ... global___DeleteReq = DeleteReq -@typing_extensions.final +@typing.final class DeleteResp(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -794,22 +795,22 @@ class DeleteResp(google.protobuf.message.Message): global___DeleteResp = DeleteResp -@typing_extensions.final +@typing.final class GetInfoReq(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor - @typing_extensions.final + @typing.final class Options(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor STREAM_IDENTIFIER_FIELD_NUMBER: builtins.int ALL_FIELD_NUMBER: builtins.int GROUP_NAME_FIELD_NUMBER: builtins.int + group_name: builtins.str @property def stream_identifier(self) -> shared_pb2.StreamIdentifier: ... @property def all(self) -> shared_pb2.Empty: ... - group_name: builtins.str def __init__( self, *, @@ -817,9 +818,9 @@ class GetInfoReq(google.protobuf.message.Message): all: shared_pb2.Empty | None = ..., group_name: builtins.str = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["all", b"all", "stream_identifier", b"stream_identifier", "stream_option", b"stream_option"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["all", b"all", "group_name", b"group_name", "stream_identifier", b"stream_identifier", "stream_option", b"stream_option"]) -> None: ... - def WhichOneof(self, oneof_group: typing_extensions.Literal["stream_option", b"stream_option"]) -> typing_extensions.Literal["stream_identifier", "all"] | None: ... + def HasField(self, field_name: typing.Literal["all", b"all", "stream_identifier", b"stream_identifier", "stream_option", b"stream_option"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["all", b"all", "group_name", b"group_name", "stream_identifier", b"stream_identifier", "stream_option", b"stream_option"]) -> None: ... + def WhichOneof(self, oneof_group: typing.Literal["stream_option", b"stream_option"]) -> typing.Literal["stream_identifier", "all"] | None: ... OPTIONS_FIELD_NUMBER: builtins.int @property @@ -829,12 +830,12 @@ class GetInfoReq(google.protobuf.message.Message): *, options: global___GetInfoReq.Options | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["options", b"options"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["options", b"options"]) -> None: ... + def HasField(self, field_name: typing.Literal["options", b"options"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["options", b"options"]) -> None: ... global___GetInfoReq = GetInfoReq -@typing_extensions.final +@typing.final class GetInfoResp(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -846,16 +847,16 @@ class GetInfoResp(google.protobuf.message.Message): *, subscription_info: global___SubscriptionInfo | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["subscription_info", b"subscription_info"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["subscription_info", b"subscription_info"]) -> None: ... + def HasField(self, field_name: typing.Literal["subscription_info", b"subscription_info"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["subscription_info", b"subscription_info"]) -> None: ... global___GetInfoResp = GetInfoResp -@typing_extensions.final +@typing.final class SubscriptionInfo(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor - @typing_extensions.final + @typing.final class ConnectionInfo(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -872,11 +873,11 @@ class SubscriptionInfo(google.protobuf.message.Message): average_items_per_second: builtins.int total_items: builtins.int count_since_last_measurement: builtins.int - @property - def observed_measurements(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___SubscriptionInfo.Measurement]: ... available_slots: builtins.int in_flight_messages: builtins.int connection_name: builtins.str + @property + def observed_measurements(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___SubscriptionInfo.Measurement]: ... def __init__( self, *, @@ -889,9 +890,9 @@ class SubscriptionInfo(google.protobuf.message.Message): in_flight_messages: builtins.int = ..., connection_name: builtins.str = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["available_slots", b"available_slots", "average_items_per_second", b"average_items_per_second", "connection_name", b"connection_name", "count_since_last_measurement", b"count_since_last_measurement", "from", b"from", "in_flight_messages", b"in_flight_messages", "observed_measurements", b"observed_measurements", "total_items", b"total_items", "username", b"username"]) -> None: ... + def ClearField(self, field_name: typing.Literal["available_slots", b"available_slots", "average_items_per_second", b"average_items_per_second", "connection_name", b"connection_name", "count_since_last_measurement", b"count_since_last_measurement", "from", b"from", "in_flight_messages", b"in_flight_messages", "observed_measurements", b"observed_measurements", "total_items", b"total_items", "username", b"username"]) -> None: ... - @typing_extensions.final + @typing.final class Measurement(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -905,7 +906,7 @@ class SubscriptionInfo(google.protobuf.message.Message): key: builtins.str = ..., value: builtins.int = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["key", b"key", "value", b"value"]) -> None: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... EVENT_SOURCE_FIELD_NUMBER: builtins.int GROUP_NAME_FIELD_NUMBER: builtins.int @@ -938,8 +939,6 @@ class SubscriptionInfo(google.protobuf.message.Message): event_source: builtins.str group_name: builtins.str status: builtins.str - @property - def connections(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___SubscriptionInfo.ConnectionInfo]: ... average_per_second: builtins.int total_items: builtins.int count_since_last_measurement: builtins.int @@ -964,6 +963,8 @@ class SubscriptionInfo(google.protobuf.message.Message): named_consumer_strategy: builtins.str max_subscriber_count: builtins.int parked_message_count: builtins.int + @property + def connections(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___SubscriptionInfo.ConnectionInfo]: ... def __init__( self, *, @@ -996,15 +997,15 @@ class SubscriptionInfo(google.protobuf.message.Message): max_subscriber_count: builtins.int = ..., parked_message_count: builtins.int = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["average_per_second", b"average_per_second", "buffer_size", b"buffer_size", "check_point_after_milliseconds", b"check_point_after_milliseconds", "connections", b"connections", "count_since_last_measurement", b"count_since_last_measurement", "event_source", b"event_source", "extra_statistics", b"extra_statistics", "group_name", b"group_name", "last_checkpointed_event_position", b"last_checkpointed_event_position", "last_known_event_position", b"last_known_event_position", "live_buffer_count", b"live_buffer_count", "live_buffer_size", b"live_buffer_size", "max_check_point_count", b"max_check_point_count", "max_retry_count", b"max_retry_count", "max_subscriber_count", b"max_subscriber_count", "message_timeout_milliseconds", b"message_timeout_milliseconds", "min_check_point_count", b"min_check_point_count", "named_consumer_strategy", b"named_consumer_strategy", "outstanding_messages_count", b"outstanding_messages_count", "parked_message_count", b"parked_message_count", "read_batch_size", b"read_batch_size", "read_buffer_count", b"read_buffer_count", "resolve_link_tos", b"resolve_link_tos", "retry_buffer_count", b"retry_buffer_count", "start_from", b"start_from", "status", b"status", "total_in_flight_messages", b"total_in_flight_messages", "total_items", b"total_items"]) -> None: ... + def ClearField(self, field_name: typing.Literal["average_per_second", b"average_per_second", "buffer_size", b"buffer_size", "check_point_after_milliseconds", b"check_point_after_milliseconds", "connections", b"connections", "count_since_last_measurement", b"count_since_last_measurement", "event_source", b"event_source", "extra_statistics", b"extra_statistics", "group_name", b"group_name", "last_checkpointed_event_position", b"last_checkpointed_event_position", "last_known_event_position", b"last_known_event_position", "live_buffer_count", b"live_buffer_count", "live_buffer_size", b"live_buffer_size", "max_check_point_count", b"max_check_point_count", "max_retry_count", b"max_retry_count", "max_subscriber_count", b"max_subscriber_count", "message_timeout_milliseconds", b"message_timeout_milliseconds", "min_check_point_count", b"min_check_point_count", "named_consumer_strategy", b"named_consumer_strategy", "outstanding_messages_count", b"outstanding_messages_count", "parked_message_count", b"parked_message_count", "read_batch_size", b"read_batch_size", "read_buffer_count", b"read_buffer_count", "resolve_link_tos", b"resolve_link_tos", "retry_buffer_count", b"retry_buffer_count", "start_from", b"start_from", "status", b"status", "total_in_flight_messages", b"total_in_flight_messages", "total_items", b"total_items"]) -> None: ... global___SubscriptionInfo = SubscriptionInfo -@typing_extensions.final +@typing.final class ReplayParkedReq(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor - @typing_extensions.final + @typing.final class Options(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -1014,11 +1015,11 @@ class ReplayParkedReq(google.protobuf.message.Message): STOP_AT_FIELD_NUMBER: builtins.int NO_LIMIT_FIELD_NUMBER: builtins.int group_name: builtins.str + stop_at: builtins.int @property def stream_identifier(self) -> shared_pb2.StreamIdentifier: ... @property def all(self) -> shared_pb2.Empty: ... - stop_at: builtins.int @property def no_limit(self) -> shared_pb2.Empty: ... def __init__( @@ -1030,12 +1031,12 @@ class ReplayParkedReq(google.protobuf.message.Message): stop_at: builtins.int = ..., no_limit: shared_pb2.Empty | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["all", b"all", "no_limit", b"no_limit", "stop_at", b"stop_at", "stop_at_option", b"stop_at_option", "stream_identifier", b"stream_identifier", "stream_option", b"stream_option"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["all", b"all", "group_name", b"group_name", "no_limit", b"no_limit", "stop_at", b"stop_at", "stop_at_option", b"stop_at_option", "stream_identifier", b"stream_identifier", "stream_option", b"stream_option"]) -> None: ... + def HasField(self, field_name: typing.Literal["all", b"all", "no_limit", b"no_limit", "stop_at", b"stop_at", "stop_at_option", b"stop_at_option", "stream_identifier", b"stream_identifier", "stream_option", b"stream_option"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["all", b"all", "group_name", b"group_name", "no_limit", b"no_limit", "stop_at", b"stop_at", "stop_at_option", b"stop_at_option", "stream_identifier", b"stream_identifier", "stream_option", b"stream_option"]) -> None: ... @typing.overload - def WhichOneof(self, oneof_group: typing_extensions.Literal["stop_at_option", b"stop_at_option"]) -> typing_extensions.Literal["stop_at", "no_limit"] | None: ... + def WhichOneof(self, oneof_group: typing.Literal["stop_at_option", b"stop_at_option"]) -> typing.Literal["stop_at", "no_limit"] | None: ... @typing.overload - def WhichOneof(self, oneof_group: typing_extensions.Literal["stream_option", b"stream_option"]) -> typing_extensions.Literal["stream_identifier", "all"] | None: ... + def WhichOneof(self, oneof_group: typing.Literal["stream_option", b"stream_option"]) -> typing.Literal["stream_identifier", "all"] | None: ... OPTIONS_FIELD_NUMBER: builtins.int @property @@ -1045,12 +1046,12 @@ class ReplayParkedReq(google.protobuf.message.Message): *, options: global___ReplayParkedReq.Options | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["options", b"options"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["options", b"options"]) -> None: ... + def HasField(self, field_name: typing.Literal["options", b"options"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["options", b"options"]) -> None: ... global___ReplayParkedReq = ReplayParkedReq -@typing_extensions.final +@typing.final class ReplayParkedResp(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -1060,11 +1061,11 @@ class ReplayParkedResp(google.protobuf.message.Message): global___ReplayParkedResp = ReplayParkedResp -@typing_extensions.final +@typing.final class ListReq(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor - @typing_extensions.final + @typing.final class Options(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -1080,11 +1081,11 @@ class ListReq(google.protobuf.message.Message): list_all_subscriptions: shared_pb2.Empty | None = ..., list_for_stream: global___ListReq.StreamOption | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["list_all_subscriptions", b"list_all_subscriptions", "list_for_stream", b"list_for_stream", "list_option", b"list_option"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["list_all_subscriptions", b"list_all_subscriptions", "list_for_stream", b"list_for_stream", "list_option", b"list_option"]) -> None: ... - def WhichOneof(self, oneof_group: typing_extensions.Literal["list_option", b"list_option"]) -> typing_extensions.Literal["list_all_subscriptions", "list_for_stream"] | None: ... + def HasField(self, field_name: typing.Literal["list_all_subscriptions", b"list_all_subscriptions", "list_for_stream", b"list_for_stream", "list_option", b"list_option"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["list_all_subscriptions", b"list_all_subscriptions", "list_for_stream", b"list_for_stream", "list_option", b"list_option"]) -> None: ... + def WhichOneof(self, oneof_group: typing.Literal["list_option", b"list_option"]) -> typing.Literal["list_all_subscriptions", "list_for_stream"] | None: ... - @typing_extensions.final + @typing.final class StreamOption(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -1100,9 +1101,9 @@ class ListReq(google.protobuf.message.Message): stream: shared_pb2.StreamIdentifier | None = ..., all: shared_pb2.Empty | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["all", b"all", "stream", b"stream", "stream_option", b"stream_option"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["all", b"all", "stream", b"stream", "stream_option", b"stream_option"]) -> None: ... - def WhichOneof(self, oneof_group: typing_extensions.Literal["stream_option", b"stream_option"]) -> typing_extensions.Literal["stream", "all"] | None: ... + def HasField(self, field_name: typing.Literal["all", b"all", "stream", b"stream", "stream_option", b"stream_option"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["all", b"all", "stream", b"stream", "stream_option", b"stream_option"]) -> None: ... + def WhichOneof(self, oneof_group: typing.Literal["stream_option", b"stream_option"]) -> typing.Literal["stream", "all"] | None: ... OPTIONS_FIELD_NUMBER: builtins.int @property @@ -1112,12 +1113,12 @@ class ListReq(google.protobuf.message.Message): *, options: global___ListReq.Options | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["options", b"options"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["options", b"options"]) -> None: ... + def HasField(self, field_name: typing.Literal["options", b"options"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["options", b"options"]) -> None: ... global___ListReq = ListReq -@typing_extensions.final +@typing.final class ListResp(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -1129,6 +1130,6 @@ class ListResp(google.protobuf.message.Message): *, subscriptions: collections.abc.Iterable[global___SubscriptionInfo] | None = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["subscriptions", b"subscriptions"]) -> None: ... + def ClearField(self, field_name: typing.Literal["subscriptions", b"subscriptions"]) -> None: ... global___ListResp = ListResp diff --git a/esdb/generated/projections_pb2.py b/esdb/generated/projections_pb2.py index a3e67e6..5f52e3e 100644 --- a/esdb/generated/projections_pb2.py +++ b/esdb/generated/projections_pb2.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: projections.proto -# Protobuf Python Version: 4.25.0 +# Protobuf Python Version: 4.25.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool diff --git a/esdb/generated/projections_pb2.pyi b/esdb/generated/projections_pb2.pyi index 06e2637..63612d9 100644 --- a/esdb/generated/projections_pb2.pyi +++ b/esdb/generated/projections_pb2.pyi @@ -2,29 +2,25 @@ @generated by mypy-protobuf. Do not edit manually! isort:skip_file """ + import builtins import google.protobuf.descriptor import google.protobuf.message import google.protobuf.struct_pb2 import shared_pb2 -import sys - -if sys.version_info >= (3, 8): - import typing as typing_extensions -else: - import typing_extensions +import typing DESCRIPTOR: google.protobuf.descriptor.FileDescriptor -@typing_extensions.final +@typing.final class CreateReq(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor - @typing_extensions.final + @typing.final class Options(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor - @typing_extensions.final + @typing.final class Transient(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -35,9 +31,9 @@ class CreateReq(google.protobuf.message.Message): *, name: builtins.str = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["name", b"name"]) -> None: ... + def ClearField(self, field_name: typing.Literal["name", b"name"]) -> None: ... - @typing_extensions.final + @typing.final class Continuous(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -54,19 +50,19 @@ class CreateReq(google.protobuf.message.Message): emit_enabled: builtins.bool = ..., track_emitted_streams: builtins.bool = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["emit_enabled", b"emit_enabled", "name", b"name", "track_emitted_streams", b"track_emitted_streams"]) -> None: ... + def ClearField(self, field_name: typing.Literal["emit_enabled", b"emit_enabled", "name", b"name", "track_emitted_streams", b"track_emitted_streams"]) -> None: ... ONE_TIME_FIELD_NUMBER: builtins.int TRANSIENT_FIELD_NUMBER: builtins.int CONTINUOUS_FIELD_NUMBER: builtins.int QUERY_FIELD_NUMBER: builtins.int + query: builtins.str @property def one_time(self) -> shared_pb2.Empty: ... @property def transient(self) -> global___CreateReq.Options.Transient: ... @property def continuous(self) -> global___CreateReq.Options.Continuous: ... - query: builtins.str def __init__( self, *, @@ -75,9 +71,9 @@ class CreateReq(google.protobuf.message.Message): continuous: global___CreateReq.Options.Continuous | None = ..., query: builtins.str = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["continuous", b"continuous", "mode", b"mode", "one_time", b"one_time", "transient", b"transient"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["continuous", b"continuous", "mode", b"mode", "one_time", b"one_time", "query", b"query", "transient", b"transient"]) -> None: ... - def WhichOneof(self, oneof_group: typing_extensions.Literal["mode", b"mode"]) -> typing_extensions.Literal["one_time", "transient", "continuous"] | None: ... + def HasField(self, field_name: typing.Literal["continuous", b"continuous", "mode", b"mode", "one_time", b"one_time", "transient", b"transient"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["continuous", b"continuous", "mode", b"mode", "one_time", b"one_time", "query", b"query", "transient", b"transient"]) -> None: ... + def WhichOneof(self, oneof_group: typing.Literal["mode", b"mode"]) -> typing.Literal["one_time", "transient", "continuous"] | None: ... OPTIONS_FIELD_NUMBER: builtins.int @property @@ -87,12 +83,12 @@ class CreateReq(google.protobuf.message.Message): *, options: global___CreateReq.Options | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["options", b"options"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["options", b"options"]) -> None: ... + def HasField(self, field_name: typing.Literal["options", b"options"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["options", b"options"]) -> None: ... global___CreateReq = CreateReq -@typing_extensions.final +@typing.final class CreateResp(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -102,11 +98,11 @@ class CreateResp(google.protobuf.message.Message): global___CreateResp = CreateResp -@typing_extensions.final +@typing.final class UpdateReq(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor - @typing_extensions.final + @typing.final class Options(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -127,9 +123,9 @@ class UpdateReq(google.protobuf.message.Message): emit_enabled: builtins.bool = ..., no_emit_options: shared_pb2.Empty | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["emit_enabled", b"emit_enabled", "emit_option", b"emit_option", "no_emit_options", b"no_emit_options"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["emit_enabled", b"emit_enabled", "emit_option", b"emit_option", "name", b"name", "no_emit_options", b"no_emit_options", "query", b"query"]) -> None: ... - def WhichOneof(self, oneof_group: typing_extensions.Literal["emit_option", b"emit_option"]) -> typing_extensions.Literal["emit_enabled", "no_emit_options"] | None: ... + def HasField(self, field_name: typing.Literal["emit_enabled", b"emit_enabled", "emit_option", b"emit_option", "no_emit_options", b"no_emit_options"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["emit_enabled", b"emit_enabled", "emit_option", b"emit_option", "name", b"name", "no_emit_options", b"no_emit_options", "query", b"query"]) -> None: ... + def WhichOneof(self, oneof_group: typing.Literal["emit_option", b"emit_option"]) -> typing.Literal["emit_enabled", "no_emit_options"] | None: ... OPTIONS_FIELD_NUMBER: builtins.int @property @@ -139,12 +135,12 @@ class UpdateReq(google.protobuf.message.Message): *, options: global___UpdateReq.Options | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["options", b"options"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["options", b"options"]) -> None: ... + def HasField(self, field_name: typing.Literal["options", b"options"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["options", b"options"]) -> None: ... global___UpdateReq = UpdateReq -@typing_extensions.final +@typing.final class UpdateResp(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -154,11 +150,11 @@ class UpdateResp(google.protobuf.message.Message): global___UpdateResp = UpdateResp -@typing_extensions.final +@typing.final class DeleteReq(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor - @typing_extensions.final + @typing.final class Options(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -178,7 +174,7 @@ class DeleteReq(google.protobuf.message.Message): delete_state_stream: builtins.bool = ..., delete_checkpoint_stream: builtins.bool = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["delete_checkpoint_stream", b"delete_checkpoint_stream", "delete_emitted_streams", b"delete_emitted_streams", "delete_state_stream", b"delete_state_stream", "name", b"name"]) -> None: ... + def ClearField(self, field_name: typing.Literal["delete_checkpoint_stream", b"delete_checkpoint_stream", "delete_emitted_streams", b"delete_emitted_streams", "delete_state_stream", b"delete_state_stream", "name", b"name"]) -> None: ... OPTIONS_FIELD_NUMBER: builtins.int @property @@ -188,12 +184,12 @@ class DeleteReq(google.protobuf.message.Message): *, options: global___DeleteReq.Options | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["options", b"options"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["options", b"options"]) -> None: ... + def HasField(self, field_name: typing.Literal["options", b"options"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["options", b"options"]) -> None: ... global___DeleteReq = DeleteReq -@typing_extensions.final +@typing.final class DeleteResp(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -203,11 +199,11 @@ class DeleteResp(google.protobuf.message.Message): global___DeleteResp = DeleteResp -@typing_extensions.final +@typing.final class StatisticsReq(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor - @typing_extensions.final + @typing.final class Options(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -234,9 +230,9 @@ class StatisticsReq(google.protobuf.message.Message): continuous: shared_pb2.Empty | None = ..., one_time: shared_pb2.Empty | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["all", b"all", "continuous", b"continuous", "mode", b"mode", "name", b"name", "one_time", b"one_time", "transient", b"transient"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["all", b"all", "continuous", b"continuous", "mode", b"mode", "name", b"name", "one_time", b"one_time", "transient", b"transient"]) -> None: ... - def WhichOneof(self, oneof_group: typing_extensions.Literal["mode", b"mode"]) -> typing_extensions.Literal["name", "all", "transient", "continuous", "one_time"] | None: ... + def HasField(self, field_name: typing.Literal["all", b"all", "continuous", b"continuous", "mode", b"mode", "name", b"name", "one_time", b"one_time", "transient", b"transient"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["all", b"all", "continuous", b"continuous", "mode", b"mode", "name", b"name", "one_time", b"one_time", "transient", b"transient"]) -> None: ... + def WhichOneof(self, oneof_group: typing.Literal["mode", b"mode"]) -> typing.Literal["name", "all", "transient", "continuous", "one_time"] | None: ... OPTIONS_FIELD_NUMBER: builtins.int @property @@ -246,16 +242,16 @@ class StatisticsReq(google.protobuf.message.Message): *, options: global___StatisticsReq.Options | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["options", b"options"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["options", b"options"]) -> None: ... + def HasField(self, field_name: typing.Literal["options", b"options"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["options", b"options"]) -> None: ... global___StatisticsReq = StatisticsReq -@typing_extensions.final +@typing.final class StatisticsResp(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor - @typing_extensions.final + @typing.final class Details(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -320,7 +316,7 @@ class StatisticsResp(google.protobuf.message.Message): writePendingEventsBeforeCheckpoint: builtins.int = ..., writePendingEventsAfterCheckpoint: builtins.int = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["bufferedEvents", b"bufferedEvents", "checkpointStatus", b"checkpointStatus", "coreProcessingTime", b"coreProcessingTime", "effectiveName", b"effectiveName", "epoch", b"epoch", "eventsProcessedAfterRestart", b"eventsProcessedAfterRestart", "lastCheckpoint", b"lastCheckpoint", "mode", b"mode", "name", b"name", "partitionsCached", b"partitionsCached", "position", b"position", "progress", b"progress", "readsInProgress", b"readsInProgress", "stateReason", b"stateReason", "status", b"status", "version", b"version", "writePendingEventsAfterCheckpoint", b"writePendingEventsAfterCheckpoint", "writePendingEventsBeforeCheckpoint", b"writePendingEventsBeforeCheckpoint", "writesInProgress", b"writesInProgress"]) -> None: ... + def ClearField(self, field_name: typing.Literal["bufferedEvents", b"bufferedEvents", "checkpointStatus", b"checkpointStatus", "coreProcessingTime", b"coreProcessingTime", "effectiveName", b"effectiveName", "epoch", b"epoch", "eventsProcessedAfterRestart", b"eventsProcessedAfterRestart", "lastCheckpoint", b"lastCheckpoint", "mode", b"mode", "name", b"name", "partitionsCached", b"partitionsCached", "position", b"position", "progress", b"progress", "readsInProgress", b"readsInProgress", "stateReason", b"stateReason", "status", b"status", "version", b"version", "writePendingEventsAfterCheckpoint", b"writePendingEventsAfterCheckpoint", "writePendingEventsBeforeCheckpoint", b"writePendingEventsBeforeCheckpoint", "writesInProgress", b"writesInProgress"]) -> None: ... DETAILS_FIELD_NUMBER: builtins.int @property @@ -330,16 +326,16 @@ class StatisticsResp(google.protobuf.message.Message): *, details: global___StatisticsResp.Details | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["details", b"details"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["details", b"details"]) -> None: ... + def HasField(self, field_name: typing.Literal["details", b"details"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["details", b"details"]) -> None: ... global___StatisticsResp = StatisticsResp -@typing_extensions.final +@typing.final class StateReq(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor - @typing_extensions.final + @typing.final class Options(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -353,7 +349,7 @@ class StateReq(google.protobuf.message.Message): name: builtins.str = ..., partition: builtins.str = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["name", b"name", "partition", b"partition"]) -> None: ... + def ClearField(self, field_name: typing.Literal["name", b"name", "partition", b"partition"]) -> None: ... OPTIONS_FIELD_NUMBER: builtins.int @property @@ -363,12 +359,12 @@ class StateReq(google.protobuf.message.Message): *, options: global___StateReq.Options | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["options", b"options"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["options", b"options"]) -> None: ... + def HasField(self, field_name: typing.Literal["options", b"options"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["options", b"options"]) -> None: ... global___StateReq = StateReq -@typing_extensions.final +@typing.final class StateResp(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -380,16 +376,16 @@ class StateResp(google.protobuf.message.Message): *, state: google.protobuf.struct_pb2.Value | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["state", b"state"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["state", b"state"]) -> None: ... + def HasField(self, field_name: typing.Literal["state", b"state"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["state", b"state"]) -> None: ... global___StateResp = StateResp -@typing_extensions.final +@typing.final class ResultReq(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor - @typing_extensions.final + @typing.final class Options(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -403,7 +399,7 @@ class ResultReq(google.protobuf.message.Message): name: builtins.str = ..., partition: builtins.str = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["name", b"name", "partition", b"partition"]) -> None: ... + def ClearField(self, field_name: typing.Literal["name", b"name", "partition", b"partition"]) -> None: ... OPTIONS_FIELD_NUMBER: builtins.int @property @@ -413,12 +409,12 @@ class ResultReq(google.protobuf.message.Message): *, options: global___ResultReq.Options | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["options", b"options"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["options", b"options"]) -> None: ... + def HasField(self, field_name: typing.Literal["options", b"options"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["options", b"options"]) -> None: ... global___ResultReq = ResultReq -@typing_extensions.final +@typing.final class ResultResp(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -430,16 +426,16 @@ class ResultResp(google.protobuf.message.Message): *, result: google.protobuf.struct_pb2.Value | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["result", b"result"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["result", b"result"]) -> None: ... + def HasField(self, field_name: typing.Literal["result", b"result"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["result", b"result"]) -> None: ... global___ResultResp = ResultResp -@typing_extensions.final +@typing.final class ResetReq(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor - @typing_extensions.final + @typing.final class Options(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -453,7 +449,7 @@ class ResetReq(google.protobuf.message.Message): name: builtins.str = ..., write_checkpoint: builtins.bool = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["name", b"name", "write_checkpoint", b"write_checkpoint"]) -> None: ... + def ClearField(self, field_name: typing.Literal["name", b"name", "write_checkpoint", b"write_checkpoint"]) -> None: ... OPTIONS_FIELD_NUMBER: builtins.int @property @@ -463,12 +459,12 @@ class ResetReq(google.protobuf.message.Message): *, options: global___ResetReq.Options | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["options", b"options"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["options", b"options"]) -> None: ... + def HasField(self, field_name: typing.Literal["options", b"options"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["options", b"options"]) -> None: ... global___ResetReq = ResetReq -@typing_extensions.final +@typing.final class ResetResp(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -478,11 +474,11 @@ class ResetResp(google.protobuf.message.Message): global___ResetResp = ResetResp -@typing_extensions.final +@typing.final class EnableReq(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor - @typing_extensions.final + @typing.final class Options(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -493,7 +489,7 @@ class EnableReq(google.protobuf.message.Message): *, name: builtins.str = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["name", b"name"]) -> None: ... + def ClearField(self, field_name: typing.Literal["name", b"name"]) -> None: ... OPTIONS_FIELD_NUMBER: builtins.int @property @@ -503,12 +499,12 @@ class EnableReq(google.protobuf.message.Message): *, options: global___EnableReq.Options | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["options", b"options"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["options", b"options"]) -> None: ... + def HasField(self, field_name: typing.Literal["options", b"options"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["options", b"options"]) -> None: ... global___EnableReq = EnableReq -@typing_extensions.final +@typing.final class EnableResp(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -518,11 +514,11 @@ class EnableResp(google.protobuf.message.Message): global___EnableResp = EnableResp -@typing_extensions.final +@typing.final class DisableReq(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor - @typing_extensions.final + @typing.final class Options(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -536,7 +532,7 @@ class DisableReq(google.protobuf.message.Message): name: builtins.str = ..., write_checkpoint: builtins.bool = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["name", b"name", "write_checkpoint", b"write_checkpoint"]) -> None: ... + def ClearField(self, field_name: typing.Literal["name", b"name", "write_checkpoint", b"write_checkpoint"]) -> None: ... OPTIONS_FIELD_NUMBER: builtins.int @property @@ -546,12 +542,12 @@ class DisableReq(google.protobuf.message.Message): *, options: global___DisableReq.Options | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["options", b"options"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["options", b"options"]) -> None: ... + def HasField(self, field_name: typing.Literal["options", b"options"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["options", b"options"]) -> None: ... global___DisableReq = DisableReq -@typing_extensions.final +@typing.final class DisableResp(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor diff --git a/esdb/generated/redaction_pb2.py b/esdb/generated/redaction_pb2.py new file mode 100644 index 0000000..576f64c --- /dev/null +++ b/esdb/generated/redaction_pb2.py @@ -0,0 +1,40 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: redaction.proto +# Protobuf Python Version: 4.25.1 +"""Generated protocol buffer code.""" +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from . import shared_pb2 as shared__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x0fredaction.proto\x12\x1c\x65vent_store.client.redaction\x1a\x0cshared.proto\"o\n\x13GetEventPositionReq\x12?\n\x11stream_identifier\x18\x01 \x01(\x0b\x32$.event_store.client.StreamIdentifier\x12\x17\n\x0fstream_revision\x18\x02 \x01(\x04\"\\\n\x14GetEventPositionResp\x12\x44\n\x0f\x65vent_positions\x18\x01 \x03(\x0b\x32+.event_store.client.redaction.EventPosition\"b\n\rEventPosition\x12\x14\n\x0clog_position\x18\x01 \x01(\x04\x12;\n\nchunk_info\x18\x02 \x01(\x0b\x32\'.event_store.client.redaction.ChunkInfo\"Z\n\tChunkInfo\x12\x11\n\tfile_name\x18\x01 \x01(\t\x12\x0f\n\x07version\x18\x02 \x01(\r\x12\x13\n\x0bis_complete\x18\x03 \x01(\x08\x12\x14\n\x0c\x65vent_offset\x18\x04 \x01(\r\"C\n\x0eSwitchChunkReq\x12\x19\n\x11target_chunk_file\x18\x01 \x01(\t\x12\x16\n\x0enew_chunk_file\x18\x02 \x01(\t\"\x11\n\x0fSwitchChunkResp2\xfc\x01\n\tRedaction\x12~\n\x11GetEventPositions\x12\x31.event_store.client.redaction.GetEventPositionReq\x1a\x32.event_store.client.redaction.GetEventPositionResp(\x01\x30\x01\x12o\n\x0cSwitchChunks\x12,.event_store.client.redaction.SwitchChunkReq\x1a-.event_store.client.redaction.SwitchChunkResp(\x01\x30\x01\x42)\n\'com.eventstore.dbclient.proto.redactionb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'redaction_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + _globals['DESCRIPTOR']._options = None + _globals['DESCRIPTOR']._serialized_options = b'\n\'com.eventstore.dbclient.proto.redaction' + _globals['_GETEVENTPOSITIONREQ']._serialized_start=63 + _globals['_GETEVENTPOSITIONREQ']._serialized_end=174 + _globals['_GETEVENTPOSITIONRESP']._serialized_start=176 + _globals['_GETEVENTPOSITIONRESP']._serialized_end=268 + _globals['_EVENTPOSITION']._serialized_start=270 + _globals['_EVENTPOSITION']._serialized_end=368 + _globals['_CHUNKINFO']._serialized_start=370 + _globals['_CHUNKINFO']._serialized_end=460 + _globals['_SWITCHCHUNKREQ']._serialized_start=462 + _globals['_SWITCHCHUNKREQ']._serialized_end=529 + _globals['_SWITCHCHUNKRESP']._serialized_start=531 + _globals['_SWITCHCHUNKRESP']._serialized_end=548 + _globals['_REDACTION']._serialized_start=551 + _globals['_REDACTION']._serialized_end=803 +# @@protoc_insertion_point(module_scope) diff --git a/esdb/generated/redaction_pb2.pyi b/esdb/generated/redaction_pb2.pyi new file mode 100644 index 0000000..c4a0623 --- /dev/null +++ b/esdb/generated/redaction_pb2.pyi @@ -0,0 +1,122 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +import builtins +import collections.abc +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.message +import shared_pb2 +import typing + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor + +@typing.final +class GetEventPositionReq(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + STREAM_IDENTIFIER_FIELD_NUMBER: builtins.int + STREAM_REVISION_FIELD_NUMBER: builtins.int + stream_revision: builtins.int + @property + def stream_identifier(self) -> shared_pb2.StreamIdentifier: ... + def __init__( + self, + *, + stream_identifier: shared_pb2.StreamIdentifier | None = ..., + stream_revision: builtins.int = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["stream_identifier", b"stream_identifier"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["stream_identifier", b"stream_identifier", "stream_revision", b"stream_revision"]) -> None: ... + +global___GetEventPositionReq = GetEventPositionReq + +@typing.final +class GetEventPositionResp(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + EVENT_POSITIONS_FIELD_NUMBER: builtins.int + @property + def event_positions(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___EventPosition]: ... + def __init__( + self, + *, + event_positions: collections.abc.Iterable[global___EventPosition] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["event_positions", b"event_positions"]) -> None: ... + +global___GetEventPositionResp = GetEventPositionResp + +@typing.final +class EventPosition(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + LOG_POSITION_FIELD_NUMBER: builtins.int + CHUNK_INFO_FIELD_NUMBER: builtins.int + log_position: builtins.int + @property + def chunk_info(self) -> global___ChunkInfo: ... + def __init__( + self, + *, + log_position: builtins.int = ..., + chunk_info: global___ChunkInfo | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["chunk_info", b"chunk_info"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["chunk_info", b"chunk_info", "log_position", b"log_position"]) -> None: ... + +global___EventPosition = EventPosition + +@typing.final +class ChunkInfo(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + FILE_NAME_FIELD_NUMBER: builtins.int + VERSION_FIELD_NUMBER: builtins.int + IS_COMPLETE_FIELD_NUMBER: builtins.int + EVENT_OFFSET_FIELD_NUMBER: builtins.int + file_name: builtins.str + version: builtins.int + is_complete: builtins.bool + event_offset: builtins.int + def __init__( + self, + *, + file_name: builtins.str = ..., + version: builtins.int = ..., + is_complete: builtins.bool = ..., + event_offset: builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["event_offset", b"event_offset", "file_name", b"file_name", "is_complete", b"is_complete", "version", b"version"]) -> None: ... + +global___ChunkInfo = ChunkInfo + +@typing.final +class SwitchChunkReq(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + TARGET_CHUNK_FILE_FIELD_NUMBER: builtins.int + NEW_CHUNK_FILE_FIELD_NUMBER: builtins.int + target_chunk_file: builtins.str + new_chunk_file: builtins.str + def __init__( + self, + *, + target_chunk_file: builtins.str = ..., + new_chunk_file: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["new_chunk_file", b"new_chunk_file", "target_chunk_file", b"target_chunk_file"]) -> None: ... + +global___SwitchChunkReq = SwitchChunkReq + +@typing.final +class SwitchChunkResp(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + +global___SwitchChunkResp = SwitchChunkResp diff --git a/esdb/generated/redaction_pb2_grpc.py b/esdb/generated/redaction_pb2_grpc.py new file mode 100644 index 0000000..a40f404 --- /dev/null +++ b/esdb/generated/redaction_pb2_grpc.py @@ -0,0 +1,123 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + +from . import redaction_pb2 as redaction__pb2 + + +class RedactionStub(object): + """The intended usage is as follows: + 1. Initiate the SwitchChunks() call in order to lock the database for chunk switching. + This ensures that chunks / event positions will not change while the lock is acquired. + 2. The GetEventPositions() call is then initiated to obtain the required event positions. + 3. The relevant chunks are copied to files with a .tmp extension and modified as necessary. + 4. SwitchChunk requests are then sent to replace the relevant chunks with the modified chunks. + 5. Finally, the lock is released by ending the SwitchChunks() call. + + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.GetEventPositions = channel.stream_stream( + '/event_store.client.redaction.Redaction/GetEventPositions', + request_serializer=redaction__pb2.GetEventPositionReq.SerializeToString, + response_deserializer=redaction__pb2.GetEventPositionResp.FromString, + ) + self.SwitchChunks = channel.stream_stream( + '/event_store.client.redaction.Redaction/SwitchChunks', + request_serializer=redaction__pb2.SwitchChunkReq.SerializeToString, + response_deserializer=redaction__pb2.SwitchChunkResp.FromString, + ) + + +class RedactionServicer(object): + """The intended usage is as follows: + 1. Initiate the SwitchChunks() call in order to lock the database for chunk switching. + This ensures that chunks / event positions will not change while the lock is acquired. + 2. The GetEventPositions() call is then initiated to obtain the required event positions. + 3. The relevant chunks are copied to files with a .tmp extension and modified as necessary. + 4. SwitchChunk requests are then sent to replace the relevant chunks with the modified chunks. + 5. Finally, the lock is released by ending the SwitchChunks() call. + + """ + + def GetEventPositions(self, request_iterator, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def SwitchChunks(self, request_iterator, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_RedactionServicer_to_server(servicer, server): + rpc_method_handlers = { + 'GetEventPositions': grpc.stream_stream_rpc_method_handler( + servicer.GetEventPositions, + request_deserializer=redaction__pb2.GetEventPositionReq.FromString, + response_serializer=redaction__pb2.GetEventPositionResp.SerializeToString, + ), + 'SwitchChunks': grpc.stream_stream_rpc_method_handler( + servicer.SwitchChunks, + request_deserializer=redaction__pb2.SwitchChunkReq.FromString, + response_serializer=redaction__pb2.SwitchChunkResp.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'event_store.client.redaction.Redaction', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + + + # This class is part of an EXPERIMENTAL API. +class Redaction(object): + """The intended usage is as follows: + 1. Initiate the SwitchChunks() call in order to lock the database for chunk switching. + This ensures that chunks / event positions will not change while the lock is acquired. + 2. The GetEventPositions() call is then initiated to obtain the required event positions. + 3. The relevant chunks are copied to files with a .tmp extension and modified as necessary. + 4. SwitchChunk requests are then sent to replace the relevant chunks with the modified chunks. + 5. Finally, the lock is released by ending the SwitchChunks() call. + + """ + + @staticmethod + def GetEventPositions(request_iterator, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.stream_stream(request_iterator, target, '/event_store.client.redaction.Redaction/GetEventPositions', + redaction__pb2.GetEventPositionReq.SerializeToString, + redaction__pb2.GetEventPositionResp.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def SwitchChunks(request_iterator, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.stream_stream(request_iterator, target, '/event_store.client.redaction.Redaction/SwitchChunks', + redaction__pb2.SwitchChunkReq.SerializeToString, + redaction__pb2.SwitchChunkResp.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/esdb/generated/serverfeatures_pb2.py b/esdb/generated/serverfeatures_pb2.py index afd3373..3e64947 100644 --- a/esdb/generated/serverfeatures_pb2.py +++ b/esdb/generated/serverfeatures_pb2.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: serverfeatures.proto -# Protobuf Python Version: 4.25.0 +# Protobuf Python Version: 4.25.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool diff --git a/esdb/generated/serverfeatures_pb2.pyi b/esdb/generated/serverfeatures_pb2.pyi index 365d73e..fbe141c 100644 --- a/esdb/generated/serverfeatures_pb2.pyi +++ b/esdb/generated/serverfeatures_pb2.pyi @@ -2,40 +2,36 @@ @generated by mypy-protobuf. Do not edit manually! isort:skip_file """ + import builtins import collections.abc import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.message -import sys - -if sys.version_info >= (3, 8): - import typing as typing_extensions -else: - import typing_extensions +import typing DESCRIPTOR: google.protobuf.descriptor.FileDescriptor -@typing_extensions.final +@typing.final class SupportedMethods(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor METHODS_FIELD_NUMBER: builtins.int EVENT_STORE_SERVER_VERSION_FIELD_NUMBER: builtins.int + event_store_server_version: builtins.str @property def methods(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___SupportedMethod]: ... - event_store_server_version: builtins.str def __init__( self, *, methods: collections.abc.Iterable[global___SupportedMethod] | None = ..., event_store_server_version: builtins.str = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["event_store_server_version", b"event_store_server_version", "methods", b"methods"]) -> None: ... + def ClearField(self, field_name: typing.Literal["event_store_server_version", b"event_store_server_version", "methods", b"methods"]) -> None: ... global___SupportedMethods = SupportedMethods -@typing_extensions.final +@typing.final class SupportedMethod(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -53,6 +49,6 @@ class SupportedMethod(google.protobuf.message.Message): service_name: builtins.str = ..., features: collections.abc.Iterable[builtins.str] | None = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["features", b"features", "method_name", b"method_name", "service_name", b"service_name"]) -> None: ... + def ClearField(self, field_name: typing.Literal["features", b"features", "method_name", b"method_name", "service_name", b"service_name"]) -> None: ... global___SupportedMethod = SupportedMethod diff --git a/esdb/generated/shared_pb2.py b/esdb/generated/shared_pb2.py index 73c84dd..985ed4b 100644 --- a/esdb/generated/shared_pb2.py +++ b/esdb/generated/shared_pb2.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: shared.proto -# Protobuf Python Version: 4.25.0 +# Protobuf Python Version: 4.25.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool diff --git a/esdb/generated/shared_pb2.pyi b/esdb/generated/shared_pb2.pyi index 32e3aec..3f51cce 100644 --- a/esdb/generated/shared_pb2.pyi +++ b/esdb/generated/shared_pb2.pyi @@ -2,25 +2,20 @@ @generated by mypy-protobuf. Do not edit manually! isort:skip_file """ + import builtins import google.protobuf.descriptor import google.protobuf.empty_pb2 import google.protobuf.message -import sys import typing -if sys.version_info >= (3, 8): - import typing as typing_extensions -else: - import typing_extensions - DESCRIPTOR: google.protobuf.descriptor.FileDescriptor -@typing_extensions.final +@typing.final class UUID(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor - @typing_extensions.final + @typing.final class Structured(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -34,26 +29,26 @@ class UUID(google.protobuf.message.Message): most_significant_bits: builtins.int = ..., least_significant_bits: builtins.int = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["least_significant_bits", b"least_significant_bits", "most_significant_bits", b"most_significant_bits"]) -> None: ... + def ClearField(self, field_name: typing.Literal["least_significant_bits", b"least_significant_bits", "most_significant_bits", b"most_significant_bits"]) -> None: ... STRUCTURED_FIELD_NUMBER: builtins.int STRING_FIELD_NUMBER: builtins.int + string: builtins.str @property def structured(self) -> global___UUID.Structured: ... - string: builtins.str def __init__( self, *, structured: global___UUID.Structured | None = ..., string: builtins.str = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["string", b"string", "structured", b"structured", "value", b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["string", b"string", "structured", b"structured", "value", b"value"]) -> None: ... - def WhichOneof(self, oneof_group: typing_extensions.Literal["value", b"value"]) -> typing_extensions.Literal["structured", "string"] | None: ... + def HasField(self, field_name: typing.Literal["string", b"string", "structured", b"structured", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["string", b"string", "structured", b"structured", "value", b"value"]) -> None: ... + def WhichOneof(self, oneof_group: typing.Literal["value", b"value"]) -> typing.Literal["structured", "string"] | None: ... global___UUID = UUID -@typing_extensions.final +@typing.final class Empty(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -63,7 +58,7 @@ class Empty(google.protobuf.message.Message): global___Empty = Empty -@typing_extensions.final +@typing.final class StreamIdentifier(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -74,11 +69,11 @@ class StreamIdentifier(google.protobuf.message.Message): *, stream_name: builtins.bytes = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["stream_name", b"stream_name"]) -> None: ... + def ClearField(self, field_name: typing.Literal["stream_name", b"stream_name"]) -> None: ... global___StreamIdentifier = StreamIdentifier -@typing_extensions.final +@typing.final class AllStreamPosition(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -92,11 +87,11 @@ class AllStreamPosition(google.protobuf.message.Message): commit_position: builtins.int = ..., prepare_position: builtins.int = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["commit_position", b"commit_position", "prepare_position", b"prepare_position"]) -> None: ... + def ClearField(self, field_name: typing.Literal["commit_position", b"commit_position", "prepare_position", b"prepare_position"]) -> None: ... global___AllStreamPosition = AllStreamPosition -@typing_extensions.final +@typing.final class WrongExpectedVersion(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -107,9 +102,9 @@ class WrongExpectedVersion(google.protobuf.message.Message): EXPECTED_STREAM_EXISTS_FIELD_NUMBER: builtins.int EXPECTED_NO_STREAM_FIELD_NUMBER: builtins.int current_stream_revision: builtins.int + expected_stream_position: builtins.int @property def current_no_stream(self) -> google.protobuf.empty_pb2.Empty: ... - expected_stream_position: builtins.int @property def expected_any(self) -> google.protobuf.empty_pb2.Empty: ... @property @@ -126,16 +121,16 @@ class WrongExpectedVersion(google.protobuf.message.Message): expected_stream_exists: google.protobuf.empty_pb2.Empty | None = ..., expected_no_stream: google.protobuf.empty_pb2.Empty | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["current_no_stream", b"current_no_stream", "current_stream_revision", b"current_stream_revision", "current_stream_revision_option", b"current_stream_revision_option", "expected_any", b"expected_any", "expected_no_stream", b"expected_no_stream", "expected_stream_exists", b"expected_stream_exists", "expected_stream_position", b"expected_stream_position", "expected_stream_position_option", b"expected_stream_position_option"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["current_no_stream", b"current_no_stream", "current_stream_revision", b"current_stream_revision", "current_stream_revision_option", b"current_stream_revision_option", "expected_any", b"expected_any", "expected_no_stream", b"expected_no_stream", "expected_stream_exists", b"expected_stream_exists", "expected_stream_position", b"expected_stream_position", "expected_stream_position_option", b"expected_stream_position_option"]) -> None: ... + def HasField(self, field_name: typing.Literal["current_no_stream", b"current_no_stream", "current_stream_revision", b"current_stream_revision", "current_stream_revision_option", b"current_stream_revision_option", "expected_any", b"expected_any", "expected_no_stream", b"expected_no_stream", "expected_stream_exists", b"expected_stream_exists", "expected_stream_position", b"expected_stream_position", "expected_stream_position_option", b"expected_stream_position_option"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["current_no_stream", b"current_no_stream", "current_stream_revision", b"current_stream_revision", "current_stream_revision_option", b"current_stream_revision_option", "expected_any", b"expected_any", "expected_no_stream", b"expected_no_stream", "expected_stream_exists", b"expected_stream_exists", "expected_stream_position", b"expected_stream_position", "expected_stream_position_option", b"expected_stream_position_option"]) -> None: ... @typing.overload - def WhichOneof(self, oneof_group: typing_extensions.Literal["current_stream_revision_option", b"current_stream_revision_option"]) -> typing_extensions.Literal["current_stream_revision", "current_no_stream"] | None: ... + def WhichOneof(self, oneof_group: typing.Literal["current_stream_revision_option", b"current_stream_revision_option"]) -> typing.Literal["current_stream_revision", "current_no_stream"] | None: ... @typing.overload - def WhichOneof(self, oneof_group: typing_extensions.Literal["expected_stream_position_option", b"expected_stream_position_option"]) -> typing_extensions.Literal["expected_stream_position", "expected_any", "expected_stream_exists", "expected_no_stream"] | None: ... + def WhichOneof(self, oneof_group: typing.Literal["expected_stream_position_option", b"expected_stream_position_option"]) -> typing.Literal["expected_stream_position", "expected_any", "expected_stream_exists", "expected_no_stream"] | None: ... global___WrongExpectedVersion = WrongExpectedVersion -@typing_extensions.final +@typing.final class AccessDenied(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -145,7 +140,7 @@ class AccessDenied(google.protobuf.message.Message): global___AccessDenied = AccessDenied -@typing_extensions.final +@typing.final class StreamDeleted(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -157,12 +152,12 @@ class StreamDeleted(google.protobuf.message.Message): *, stream_identifier: global___StreamIdentifier | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["stream_identifier", b"stream_identifier"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["stream_identifier", b"stream_identifier"]) -> None: ... + def HasField(self, field_name: typing.Literal["stream_identifier", b"stream_identifier"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["stream_identifier", b"stream_identifier"]) -> None: ... global___StreamDeleted = StreamDeleted -@typing_extensions.final +@typing.final class Timeout(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -172,7 +167,7 @@ class Timeout(google.protobuf.message.Message): global___Timeout = Timeout -@typing_extensions.final +@typing.final class Unknown(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -182,7 +177,7 @@ class Unknown(google.protobuf.message.Message): global___Unknown = Unknown -@typing_extensions.final +@typing.final class InvalidTransaction(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -192,7 +187,7 @@ class InvalidTransaction(google.protobuf.message.Message): global___InvalidTransaction = InvalidTransaction -@typing_extensions.final +@typing.final class MaximumAppendSizeExceeded(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -203,11 +198,11 @@ class MaximumAppendSizeExceeded(google.protobuf.message.Message): *, maxAppendSize: builtins.int = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["maxAppendSize", b"maxAppendSize"]) -> None: ... + def ClearField(self, field_name: typing.Literal["maxAppendSize", b"maxAppendSize"]) -> None: ... global___MaximumAppendSizeExceeded = MaximumAppendSizeExceeded -@typing_extensions.final +@typing.final class BadRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -218,6 +213,6 @@ class BadRequest(google.protobuf.message.Message): *, message: builtins.str = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["message", b"message"]) -> None: ... + def ClearField(self, field_name: typing.Literal["message", b"message"]) -> None: ... global___BadRequest = BadRequest diff --git a/esdb/generated/status_pb2.py b/esdb/generated/status_pb2.py index d7cb2f7..9aa2314 100644 --- a/esdb/generated/status_pb2.py +++ b/esdb/generated/status_pb2.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: status.proto -# Protobuf Python Version: 4.25.0 +# Protobuf Python Version: 4.25.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool diff --git a/esdb/generated/status_pb2.pyi b/esdb/generated/status_pb2.pyi index 3163c42..e58ce9b 100644 --- a/esdb/generated/status_pb2.pyi +++ b/esdb/generated/status_pb2.pyi @@ -15,21 +15,17 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ + import builtins import code_pb2 import google.protobuf.any_pb2 import google.protobuf.descriptor import google.protobuf.message -import sys - -if sys.version_info >= (3, 8): - import typing as typing_extensions -else: - import typing_extensions +import typing DESCRIPTOR: google.protobuf.descriptor.FileDescriptor -@typing_extensions.final +@typing.final class Status(google.protobuf.message.Message): """The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is @@ -57,6 +53,7 @@ class Status(google.protobuf.message.Message): """A list of messages that carry the error details. There is a common set of message types for APIs to use. """ + def __init__( self, *, @@ -64,7 +61,7 @@ class Status(google.protobuf.message.Message): message: builtins.str = ..., details: google.protobuf.any_pb2.Any | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["details", b"details"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["code", b"code", "details", b"details", "message", b"message"]) -> None: ... + def HasField(self, field_name: typing.Literal["details", b"details"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["code", b"code", "details", b"details", "message", b"message"]) -> None: ... global___Status = Status diff --git a/esdb/generated/streams_pb2.py b/esdb/generated/streams_pb2.py index c0ec75f..2cd191e 100644 --- a/esdb/generated/streams_pb2.py +++ b/esdb/generated/streams_pb2.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: streams.proto -# Protobuf Python Version: 4.25.0 +# Protobuf Python Version: 4.25.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool @@ -19,7 +19,7 @@ from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\rstreams.proto\x12\x1a\x65vent_store.client.streams\x1a\x0cshared.proto\x1a\x0cstatus.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xad\x0e\n\x07ReadReq\x12<\n\x07options\x18\x01 \x01(\x0b\x32+.event_store.client.streams.ReadReq.Options\x1a\xe3\r\n\x07Options\x12K\n\x06stream\x18\x01 \x01(\x0b\x32\x39.event_store.client.streams.ReadReq.Options.StreamOptionsH\x00\x12\x45\n\x03\x61ll\x18\x02 \x01(\x0b\x32\x36.event_store.client.streams.ReadReq.Options.AllOptionsH\x00\x12Q\n\x0eread_direction\x18\x03 \x01(\x0e\x32\x39.event_store.client.streams.ReadReq.Options.ReadDirection\x12\x15\n\rresolve_links\x18\x04 \x01(\x08\x12\x0f\n\x05\x63ount\x18\x05 \x01(\x04H\x01\x12W\n\x0csubscription\x18\x06 \x01(\x0b\x32?.event_store.client.streams.ReadReq.Options.SubscriptionOptionsH\x01\x12K\n\x06\x66ilter\x18\x07 \x01(\x0b\x32\x39.event_store.client.streams.ReadReq.Options.FilterOptionsH\x02\x12.\n\tno_filter\x18\x08 \x01(\x0b\x32\x19.event_store.client.EmptyH\x02\x12K\n\x0buuid_option\x18\t \x01(\x0b\x32\x36.event_store.client.streams.ReadReq.Options.UUIDOption\x12Q\n\x0e\x63ontrol_option\x18\n \x01(\x0b\x32\x39.event_store.client.streams.ReadReq.Options.ControlOption\x1a\xcd\x01\n\rStreamOptions\x12?\n\x11stream_identifier\x18\x01 \x01(\x0b\x32$.event_store.client.StreamIdentifier\x12\x12\n\x08revision\x18\x02 \x01(\x04H\x00\x12*\n\x05start\x18\x03 \x01(\x0b\x32\x19.event_store.client.EmptyH\x00\x12(\n\x03\x65nd\x18\x04 \x01(\x0b\x32\x19.event_store.client.EmptyH\x00\x42\x11\n\x0frevision_option\x1a\xba\x01\n\nAllOptions\x12H\n\x08position\x18\x01 \x01(\x0b\x32\x34.event_store.client.streams.ReadReq.Options.PositionH\x00\x12*\n\x05start\x18\x02 \x01(\x0b\x32\x19.event_store.client.EmptyH\x00\x12(\n\x03\x65nd\x18\x03 \x01(\x0b\x32\x19.event_store.client.EmptyH\x00\x42\x0c\n\nall_option\x1a\x15\n\x13SubscriptionOptions\x1a=\n\x08Position\x12\x17\n\x0f\x63ommit_position\x18\x01 \x01(\x04\x12\x18\n\x10prepare_position\x18\x02 \x01(\x04\x1a\xf0\x02\n\rFilterOptions\x12\x61\n\x11stream_identifier\x18\x01 \x01(\x0b\x32\x44.event_store.client.streams.ReadReq.Options.FilterOptions.ExpressionH\x00\x12Z\n\nevent_type\x18\x02 \x01(\x0b\x32\x44.event_store.client.streams.ReadReq.Options.FilterOptions.ExpressionH\x00\x12\r\n\x03max\x18\x03 \x01(\rH\x01\x12*\n\x05\x63ount\x18\x04 \x01(\x0b\x32\x19.event_store.client.EmptyH\x01\x12$\n\x1c\x63heckpointIntervalMultiplier\x18\x05 \x01(\r\x1a+\n\nExpression\x12\r\n\x05regex\x18\x01 \x01(\t\x12\x0e\n\x06prefix\x18\x02 \x03(\tB\x08\n\x06\x66ilterB\x08\n\x06window\x1au\n\nUUIDOption\x12/\n\nstructured\x18\x01 \x01(\x0b\x32\x19.event_store.client.EmptyH\x00\x12+\n\x06string\x18\x02 \x01(\x0b\x32\x19.event_store.client.EmptyH\x00\x42\t\n\x07\x63ontent\x1a&\n\rControlOption\x12\x15\n\rcompatibility\x18\x01 \x01(\r\",\n\rReadDirection\x12\x0c\n\x08\x46orwards\x10\x00\x12\r\n\tBackwards\x10\x01\x42\x0f\n\rstream_optionB\x0e\n\x0c\x63ount_optionB\x0f\n\rfilter_option\"\x95\n\n\x08ReadResp\x12?\n\x05\x65vent\x18\x01 \x01(\x0b\x32..event_store.client.streams.ReadResp.ReadEventH\x00\x12U\n\x0c\x63onfirmation\x18\x02 \x01(\x0b\x32=.event_store.client.streams.ReadResp.SubscriptionConfirmationH\x00\x12\x45\n\ncheckpoint\x18\x03 \x01(\x0b\x32/.event_store.client.streams.ReadResp.CheckpointH\x00\x12O\n\x10stream_not_found\x18\x04 \x01(\x0b\x32\x33.event_store.client.streams.ReadResp.StreamNotFoundH\x00\x12\x1f\n\x15\x66irst_stream_position\x18\x05 \x01(\x04H\x00\x12\x1e\n\x14last_stream_position\x18\x06 \x01(\x04H\x00\x12I\n\x18last_all_stream_position\x18\x07 \x01(\x0b\x32%.event_store.client.AllStreamPositionH\x00\x1a\xf8\x04\n\tReadEvent\x12K\n\x05\x65vent\x18\x01 \x01(\x0b\x32<.event_store.client.streams.ReadResp.ReadEvent.RecordedEvent\x12J\n\x04link\x18\x02 \x01(\x0b\x32<.event_store.client.streams.ReadResp.ReadEvent.RecordedEvent\x12\x19\n\x0f\x63ommit_position\x18\x03 \x01(\x04H\x00\x12\x30\n\x0bno_position\x18\x04 \x01(\x0b\x32\x19.event_store.client.EmptyH\x00\x1a\xf8\x02\n\rRecordedEvent\x12$\n\x02id\x18\x01 \x01(\x0b\x32\x18.event_store.client.UUID\x12?\n\x11stream_identifier\x18\x02 \x01(\x0b\x32$.event_store.client.StreamIdentifier\x12\x17\n\x0fstream_revision\x18\x03 \x01(\x04\x12\x18\n\x10prepare_position\x18\x04 \x01(\x04\x12\x17\n\x0f\x63ommit_position\x18\x05 \x01(\x04\x12\\\n\x08metadata\x18\x06 \x03(\x0b\x32J.event_store.client.streams.ReadResp.ReadEvent.RecordedEvent.MetadataEntry\x12\x17\n\x0f\x63ustom_metadata\x18\x07 \x01(\x0c\x12\x0c\n\x04\x64\x61ta\x18\x08 \x01(\x0c\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\n\n\x08position\x1a\x33\n\x18SubscriptionConfirmation\x12\x17\n\x0fsubscription_id\x18\x01 \x01(\t\x1a?\n\nCheckpoint\x12\x17\n\x0f\x63ommit_position\x18\x01 \x01(\x04\x12\x18\n\x10prepare_position\x18\x02 \x01(\x04\x1aQ\n\x0eStreamNotFound\x12?\n\x11stream_identifier\x18\x01 \x01(\x0b\x32$.event_store.client.StreamIdentifierB\t\n\x07\x63ontent\"\x9f\x05\n\tAppendReq\x12@\n\x07options\x18\x01 \x01(\x0b\x32-.event_store.client.streams.AppendReq.OptionsH\x00\x12Q\n\x10proposed_message\x18\x02 \x01(\x0b\x32\x35.event_store.client.streams.AppendReq.ProposedMessageH\x00\x1a\x88\x02\n\x07Options\x12?\n\x11stream_identifier\x18\x01 \x01(\x0b\x32$.event_store.client.StreamIdentifier\x12\x12\n\x08revision\x18\x02 \x01(\x04H\x00\x12.\n\tno_stream\x18\x03 \x01(\x0b\x32\x19.event_store.client.EmptyH\x00\x12(\n\x03\x61ny\x18\x04 \x01(\x0b\x32\x19.event_store.client.EmptyH\x00\x12\x32\n\rstream_exists\x18\x05 \x01(\x0b\x32\x19.event_store.client.EmptyH\x00\x42\x1a\n\x18\x65xpected_stream_revision\x1a\xe6\x01\n\x0fProposedMessage\x12$\n\x02id\x18\x01 \x01(\x0b\x32\x18.event_store.client.UUID\x12U\n\x08metadata\x18\x02 \x03(\x0b\x32\x43.event_store.client.streams.AppendReq.ProposedMessage.MetadataEntry\x12\x17\n\x0f\x63ustom_metadata\x18\x03 \x01(\x0c\x12\x0c\n\x04\x64\x61ta\x18\x04 \x01(\x0c\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\t\n\x07\x63ontent\"\x8d\t\n\nAppendResp\x12\x41\n\x07success\x18\x01 \x01(\x0b\x32..event_store.client.streams.AppendResp.SuccessH\x00\x12]\n\x16wrong_expected_version\x18\x02 \x01(\x0b\x32;.event_store.client.streams.AppendResp.WrongExpectedVersionH\x00\x1a=\n\x08Position\x12\x17\n\x0f\x63ommit_position\x18\x01 \x01(\x04\x12\x18\n\x10prepare_position\x18\x02 \x01(\x04\x1a\xfa\x01\n\x07Success\x12\x1a\n\x10\x63urrent_revision\x18\x01 \x01(\x04H\x00\x12.\n\tno_stream\x18\x02 \x01(\x0b\x32\x19.event_store.client.EmptyH\x00\x12\x43\n\x08position\x18\x03 \x01(\x0b\x32/.event_store.client.streams.AppendResp.PositionH\x01\x12\x30\n\x0bno_position\x18\x04 \x01(\x0b\x32\x19.event_store.client.EmptyH\x01\x42\x19\n\x17\x63urrent_revision_optionB\x11\n\x0fposition_option\x1a\x96\x05\n\x14WrongExpectedVersion\x12!\n\x17\x63urrent_revision_20_6_0\x18\x01 \x01(\x04H\x00\x12\x35\n\x10no_stream_20_6_0\x18\x02 \x01(\x0b\x32\x19.event_store.client.EmptyH\x00\x12\"\n\x18\x65xpected_revision_20_6_0\x18\x03 \x01(\x04H\x01\x12/\n\nany_20_6_0\x18\x04 \x01(\x0b\x32\x19.event_store.client.EmptyH\x01\x12\x39\n\x14stream_exists_20_6_0\x18\x05 \x01(\x0b\x32\x19.event_store.client.EmptyH\x01\x12\x1a\n\x10\x63urrent_revision\x18\x06 \x01(\x04H\x02\x12\x36\n\x11\x63urrent_no_stream\x18\x07 \x01(\x0b\x32\x19.event_store.client.EmptyH\x02\x12\x1b\n\x11\x65xpected_revision\x18\x08 \x01(\x04H\x03\x12\x31\n\x0c\x65xpected_any\x18\t \x01(\x0b\x32\x19.event_store.client.EmptyH\x03\x12;\n\x16\x65xpected_stream_exists\x18\n \x01(\x0b\x32\x19.event_store.client.EmptyH\x03\x12\x37\n\x12\x65xpected_no_stream\x18\x0b \x01(\x0b\x32\x19.event_store.client.EmptyH\x03\x42 \n\x1e\x63urrent_revision_option_20_6_0B!\n\x1f\x65xpected_revision_option_20_6_0B\x19\n\x17\x63urrent_revision_optionB\x1a\n\x18\x65xpected_revision_optionB\x08\n\x06result\"\xe1\x06\n\x0e\x42\x61tchAppendReq\x12\x30\n\x0e\x63orrelation_id\x18\x01 \x01(\x0b\x32\x18.event_store.client.UUID\x12\x43\n\x07options\x18\x02 \x01(\x0b\x32\x32.event_store.client.streams.BatchAppendReq.Options\x12U\n\x11proposed_messages\x18\x03 \x03(\x0b\x32:.event_store.client.streams.BatchAppendReq.ProposedMessage\x12\x10\n\x08is_final\x18\x04 \x01(\x08\x1a\x80\x03\n\x07Options\x12?\n\x11stream_identifier\x18\x01 \x01(\x0b\x32$.event_store.client.StreamIdentifier\x12\x19\n\x0fstream_position\x18\x02 \x01(\x04H\x00\x12+\n\tno_stream\x18\x03 \x01(\x0b\x32\x16.google.protobuf.EmptyH\x00\x12%\n\x03\x61ny\x18\x04 \x01(\x0b\x32\x16.google.protobuf.EmptyH\x00\x12/\n\rstream_exists\x18\x05 \x01(\x0b\x32\x16.google.protobuf.EmptyH\x00\x12\x36\n\x10\x64\x65\x61\x64line_21_10_0\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x01\x12-\n\x08\x64\x65\x61\x64line\x18\x07 \x01(\x0b\x32\x19.google.protobuf.DurationH\x01\x42\x1a\n\x18\x65xpected_stream_positionB\x11\n\x0f\x64\x65\x61\x64line_option\x1a\xeb\x01\n\x0fProposedMessage\x12$\n\x02id\x18\x01 \x01(\x0b\x32\x18.event_store.client.UUID\x12Z\n\x08metadata\x18\x02 \x03(\x0b\x32H.event_store.client.streams.BatchAppendReq.ProposedMessage.MetadataEntry\x12\x17\n\x0f\x63ustom_metadata\x18\x03 \x01(\x0c\x12\x0c\n\x04\x64\x61ta\x18\x04 \x01(\x0c\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xa4\x05\n\x0f\x42\x61tchAppendResp\x12\x30\n\x0e\x63orrelation_id\x18\x01 \x01(\x0b\x32\x18.event_store.client.UUID\x12#\n\x05\x65rror\x18\x02 \x01(\x0b\x32\x12.google.rpc.StatusH\x00\x12\x46\n\x07success\x18\x03 \x01(\x0b\x32\x33.event_store.client.streams.BatchAppendResp.SuccessH\x00\x12?\n\x11stream_identifier\x18\x04 \x01(\x0b\x32$.event_store.client.StreamIdentifier\x12\x19\n\x0fstream_position\x18\x05 \x01(\x04H\x01\x12+\n\tno_stream\x18\x06 \x01(\x0b\x32\x16.google.protobuf.EmptyH\x01\x12%\n\x03\x61ny\x18\x07 \x01(\x0b\x32\x16.google.protobuf.EmptyH\x01\x12/\n\rstream_exists\x18\x08 \x01(\x0b\x32\x16.google.protobuf.EmptyH\x01\x1a\xea\x01\n\x07Success\x12\x1a\n\x10\x63urrent_revision\x18\x01 \x01(\x04H\x00\x12+\n\tno_stream\x18\x02 \x01(\x0b\x32\x16.google.protobuf.EmptyH\x00\x12\x39\n\x08position\x18\x03 \x01(\x0b\x32%.event_store.client.AllStreamPositionH\x01\x12-\n\x0bno_position\x18\x04 \x01(\x0b\x32\x16.google.protobuf.EmptyH\x01\x42\x19\n\x17\x63urrent_revision_optionB\x11\n\x0fposition_optionB\x08\n\x06resultB\x1a\n\x18\x65xpected_stream_position\"\xd6\x02\n\tDeleteReq\x12>\n\x07options\x18\x01 \x01(\x0b\x32-.event_store.client.streams.DeleteReq.Options\x1a\x88\x02\n\x07Options\x12?\n\x11stream_identifier\x18\x01 \x01(\x0b\x32$.event_store.client.StreamIdentifier\x12\x12\n\x08revision\x18\x02 \x01(\x04H\x00\x12.\n\tno_stream\x18\x03 \x01(\x0b\x32\x19.event_store.client.EmptyH\x00\x12(\n\x03\x61ny\x18\x04 \x01(\x0b\x32\x19.event_store.client.EmptyH\x00\x12\x32\n\rstream_exists\x18\x05 \x01(\x0b\x32\x19.event_store.client.EmptyH\x00\x42\x1a\n\x18\x65xpected_stream_revision\"\xd5\x01\n\nDeleteResp\x12\x43\n\x08position\x18\x01 \x01(\x0b\x32/.event_store.client.streams.DeleteResp.PositionH\x00\x12\x30\n\x0bno_position\x18\x02 \x01(\x0b\x32\x19.event_store.client.EmptyH\x00\x1a=\n\x08Position\x12\x17\n\x0f\x63ommit_position\x18\x01 \x01(\x04\x12\x18\n\x10prepare_position\x18\x02 \x01(\x04\x42\x11\n\x0fposition_option\"\xdc\x02\n\x0cTombstoneReq\x12\x41\n\x07options\x18\x01 \x01(\x0b\x32\x30.event_store.client.streams.TombstoneReq.Options\x1a\x88\x02\n\x07Options\x12?\n\x11stream_identifier\x18\x01 \x01(\x0b\x32$.event_store.client.StreamIdentifier\x12\x12\n\x08revision\x18\x02 \x01(\x04H\x00\x12.\n\tno_stream\x18\x03 \x01(\x0b\x32\x19.event_store.client.EmptyH\x00\x12(\n\x03\x61ny\x18\x04 \x01(\x0b\x32\x19.event_store.client.EmptyH\x00\x12\x32\n\rstream_exists\x18\x05 \x01(\x0b\x32\x19.event_store.client.EmptyH\x00\x42\x1a\n\x18\x65xpected_stream_revision\"\xdb\x01\n\rTombstoneResp\x12\x46\n\x08position\x18\x01 \x01(\x0b\x32\x32.event_store.client.streams.TombstoneResp.PositionH\x00\x12\x30\n\x0bno_position\x18\x02 \x01(\x0b\x32\x19.event_store.client.EmptyH\x00\x1a=\n\x08Position\x12\x17\n\x0f\x63ommit_position\x18\x01 \x01(\x04\x12\x18\n\x10prepare_position\x18\x02 \x01(\x04\x42\x11\n\x0fposition_option2\xe0\x03\n\x07Streams\x12S\n\x04Read\x12#.event_store.client.streams.ReadReq\x1a$.event_store.client.streams.ReadResp0\x01\x12Y\n\x06\x41ppend\x12%.event_store.client.streams.AppendReq\x1a&.event_store.client.streams.AppendResp(\x01\x12W\n\x06\x44\x65lete\x12%.event_store.client.streams.DeleteReq\x1a&.event_store.client.streams.DeleteResp\x12`\n\tTombstone\x12(.event_store.client.streams.TombstoneReq\x1a).event_store.client.streams.TombstoneResp\x12j\n\x0b\x42\x61tchAppend\x12*.event_store.client.streams.BatchAppendReq\x1a+.event_store.client.streams.BatchAppendResp(\x01\x30\x01\x42\'\n%com.eventstore.dbclient.proto.streamsb\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\rstreams.proto\x12\x1a\x65vent_store.client.streams\x1a\x0cshared.proto\x1a\x0cstatus.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xad\x0e\n\x07ReadReq\x12<\n\x07options\x18\x01 \x01(\x0b\x32+.event_store.client.streams.ReadReq.Options\x1a\xe3\r\n\x07Options\x12K\n\x06stream\x18\x01 \x01(\x0b\x32\x39.event_store.client.streams.ReadReq.Options.StreamOptionsH\x00\x12\x45\n\x03\x61ll\x18\x02 \x01(\x0b\x32\x36.event_store.client.streams.ReadReq.Options.AllOptionsH\x00\x12Q\n\x0eread_direction\x18\x03 \x01(\x0e\x32\x39.event_store.client.streams.ReadReq.Options.ReadDirection\x12\x15\n\rresolve_links\x18\x04 \x01(\x08\x12\x0f\n\x05\x63ount\x18\x05 \x01(\x04H\x01\x12W\n\x0csubscription\x18\x06 \x01(\x0b\x32?.event_store.client.streams.ReadReq.Options.SubscriptionOptionsH\x01\x12K\n\x06\x66ilter\x18\x07 \x01(\x0b\x32\x39.event_store.client.streams.ReadReq.Options.FilterOptionsH\x02\x12.\n\tno_filter\x18\x08 \x01(\x0b\x32\x19.event_store.client.EmptyH\x02\x12K\n\x0buuid_option\x18\t \x01(\x0b\x32\x36.event_store.client.streams.ReadReq.Options.UUIDOption\x12Q\n\x0e\x63ontrol_option\x18\n \x01(\x0b\x32\x39.event_store.client.streams.ReadReq.Options.ControlOption\x1a\xcd\x01\n\rStreamOptions\x12?\n\x11stream_identifier\x18\x01 \x01(\x0b\x32$.event_store.client.StreamIdentifier\x12\x12\n\x08revision\x18\x02 \x01(\x04H\x00\x12*\n\x05start\x18\x03 \x01(\x0b\x32\x19.event_store.client.EmptyH\x00\x12(\n\x03\x65nd\x18\x04 \x01(\x0b\x32\x19.event_store.client.EmptyH\x00\x42\x11\n\x0frevision_option\x1a\xba\x01\n\nAllOptions\x12H\n\x08position\x18\x01 \x01(\x0b\x32\x34.event_store.client.streams.ReadReq.Options.PositionH\x00\x12*\n\x05start\x18\x02 \x01(\x0b\x32\x19.event_store.client.EmptyH\x00\x12(\n\x03\x65nd\x18\x03 \x01(\x0b\x32\x19.event_store.client.EmptyH\x00\x42\x0c\n\nall_option\x1a\x15\n\x13SubscriptionOptions\x1a=\n\x08Position\x12\x17\n\x0f\x63ommit_position\x18\x01 \x01(\x04\x12\x18\n\x10prepare_position\x18\x02 \x01(\x04\x1a\xf0\x02\n\rFilterOptions\x12\x61\n\x11stream_identifier\x18\x01 \x01(\x0b\x32\x44.event_store.client.streams.ReadReq.Options.FilterOptions.ExpressionH\x00\x12Z\n\nevent_type\x18\x02 \x01(\x0b\x32\x44.event_store.client.streams.ReadReq.Options.FilterOptions.ExpressionH\x00\x12\r\n\x03max\x18\x03 \x01(\rH\x01\x12*\n\x05\x63ount\x18\x04 \x01(\x0b\x32\x19.event_store.client.EmptyH\x01\x12$\n\x1c\x63heckpointIntervalMultiplier\x18\x05 \x01(\r\x1a+\n\nExpression\x12\r\n\x05regex\x18\x01 \x01(\t\x12\x0e\n\x06prefix\x18\x02 \x03(\tB\x08\n\x06\x66ilterB\x08\n\x06window\x1au\n\nUUIDOption\x12/\n\nstructured\x18\x01 \x01(\x0b\x32\x19.event_store.client.EmptyH\x00\x12+\n\x06string\x18\x02 \x01(\x0b\x32\x19.event_store.client.EmptyH\x00\x42\t\n\x07\x63ontent\x1a&\n\rControlOption\x12\x15\n\rcompatibility\x18\x01 \x01(\r\",\n\rReadDirection\x12\x0c\n\x08\x46orwards\x10\x00\x12\r\n\tBackwards\x10\x01\x42\x0f\n\rstream_optionB\x0e\n\x0c\x63ount_optionB\x0f\n\rfilter_option\"\xbb\x0b\n\x08ReadResp\x12?\n\x05\x65vent\x18\x01 \x01(\x0b\x32..event_store.client.streams.ReadResp.ReadEventH\x00\x12U\n\x0c\x63onfirmation\x18\x02 \x01(\x0b\x32=.event_store.client.streams.ReadResp.SubscriptionConfirmationH\x00\x12\x45\n\ncheckpoint\x18\x03 \x01(\x0b\x32/.event_store.client.streams.ReadResp.CheckpointH\x00\x12O\n\x10stream_not_found\x18\x04 \x01(\x0b\x32\x33.event_store.client.streams.ReadResp.StreamNotFoundH\x00\x12\x1f\n\x15\x66irst_stream_position\x18\x05 \x01(\x04H\x00\x12\x1e\n\x14last_stream_position\x18\x06 \x01(\x04H\x00\x12I\n\x18last_all_stream_position\x18\x07 \x01(\x0b\x32%.event_store.client.AllStreamPositionH\x00\x12\x42\n\tcaught_up\x18\x08 \x01(\x0b\x32-.event_store.client.streams.ReadResp.CaughtUpH\x00\x12\x46\n\x0b\x66\x65ll_behind\x18\t \x01(\x0b\x32/.event_store.client.streams.ReadResp.FellBehindH\x00\x1a\n\n\x08\x43\x61ughtUp\x1a\x0c\n\nFellBehind\x1a\xf8\x04\n\tReadEvent\x12K\n\x05\x65vent\x18\x01 \x01(\x0b\x32<.event_store.client.streams.ReadResp.ReadEvent.RecordedEvent\x12J\n\x04link\x18\x02 \x01(\x0b\x32<.event_store.client.streams.ReadResp.ReadEvent.RecordedEvent\x12\x19\n\x0f\x63ommit_position\x18\x03 \x01(\x04H\x00\x12\x30\n\x0bno_position\x18\x04 \x01(\x0b\x32\x19.event_store.client.EmptyH\x00\x1a\xf8\x02\n\rRecordedEvent\x12$\n\x02id\x18\x01 \x01(\x0b\x32\x18.event_store.client.UUID\x12?\n\x11stream_identifier\x18\x02 \x01(\x0b\x32$.event_store.client.StreamIdentifier\x12\x17\n\x0fstream_revision\x18\x03 \x01(\x04\x12\x18\n\x10prepare_position\x18\x04 \x01(\x04\x12\x17\n\x0f\x63ommit_position\x18\x05 \x01(\x04\x12\\\n\x08metadata\x18\x06 \x03(\x0b\x32J.event_store.client.streams.ReadResp.ReadEvent.RecordedEvent.MetadataEntry\x12\x17\n\x0f\x63ustom_metadata\x18\x07 \x01(\x0c\x12\x0c\n\x04\x64\x61ta\x18\x08 \x01(\x0c\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\n\n\x08position\x1a\x33\n\x18SubscriptionConfirmation\x12\x17\n\x0fsubscription_id\x18\x01 \x01(\t\x1a?\n\nCheckpoint\x12\x17\n\x0f\x63ommit_position\x18\x01 \x01(\x04\x12\x18\n\x10prepare_position\x18\x02 \x01(\x04\x1aQ\n\x0eStreamNotFound\x12?\n\x11stream_identifier\x18\x01 \x01(\x0b\x32$.event_store.client.StreamIdentifierB\t\n\x07\x63ontent\"\x9f\x05\n\tAppendReq\x12@\n\x07options\x18\x01 \x01(\x0b\x32-.event_store.client.streams.AppendReq.OptionsH\x00\x12Q\n\x10proposed_message\x18\x02 \x01(\x0b\x32\x35.event_store.client.streams.AppendReq.ProposedMessageH\x00\x1a\x88\x02\n\x07Options\x12?\n\x11stream_identifier\x18\x01 \x01(\x0b\x32$.event_store.client.StreamIdentifier\x12\x12\n\x08revision\x18\x02 \x01(\x04H\x00\x12.\n\tno_stream\x18\x03 \x01(\x0b\x32\x19.event_store.client.EmptyH\x00\x12(\n\x03\x61ny\x18\x04 \x01(\x0b\x32\x19.event_store.client.EmptyH\x00\x12\x32\n\rstream_exists\x18\x05 \x01(\x0b\x32\x19.event_store.client.EmptyH\x00\x42\x1a\n\x18\x65xpected_stream_revision\x1a\xe6\x01\n\x0fProposedMessage\x12$\n\x02id\x18\x01 \x01(\x0b\x32\x18.event_store.client.UUID\x12U\n\x08metadata\x18\x02 \x03(\x0b\x32\x43.event_store.client.streams.AppendReq.ProposedMessage.MetadataEntry\x12\x17\n\x0f\x63ustom_metadata\x18\x03 \x01(\x0c\x12\x0c\n\x04\x64\x61ta\x18\x04 \x01(\x0c\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\t\n\x07\x63ontent\"\x8d\t\n\nAppendResp\x12\x41\n\x07success\x18\x01 \x01(\x0b\x32..event_store.client.streams.AppendResp.SuccessH\x00\x12]\n\x16wrong_expected_version\x18\x02 \x01(\x0b\x32;.event_store.client.streams.AppendResp.WrongExpectedVersionH\x00\x1a=\n\x08Position\x12\x17\n\x0f\x63ommit_position\x18\x01 \x01(\x04\x12\x18\n\x10prepare_position\x18\x02 \x01(\x04\x1a\xfa\x01\n\x07Success\x12\x1a\n\x10\x63urrent_revision\x18\x01 \x01(\x04H\x00\x12.\n\tno_stream\x18\x02 \x01(\x0b\x32\x19.event_store.client.EmptyH\x00\x12\x43\n\x08position\x18\x03 \x01(\x0b\x32/.event_store.client.streams.AppendResp.PositionH\x01\x12\x30\n\x0bno_position\x18\x04 \x01(\x0b\x32\x19.event_store.client.EmptyH\x01\x42\x19\n\x17\x63urrent_revision_optionB\x11\n\x0fposition_option\x1a\x96\x05\n\x14WrongExpectedVersion\x12!\n\x17\x63urrent_revision_20_6_0\x18\x01 \x01(\x04H\x00\x12\x35\n\x10no_stream_20_6_0\x18\x02 \x01(\x0b\x32\x19.event_store.client.EmptyH\x00\x12\"\n\x18\x65xpected_revision_20_6_0\x18\x03 \x01(\x04H\x01\x12/\n\nany_20_6_0\x18\x04 \x01(\x0b\x32\x19.event_store.client.EmptyH\x01\x12\x39\n\x14stream_exists_20_6_0\x18\x05 \x01(\x0b\x32\x19.event_store.client.EmptyH\x01\x12\x1a\n\x10\x63urrent_revision\x18\x06 \x01(\x04H\x02\x12\x36\n\x11\x63urrent_no_stream\x18\x07 \x01(\x0b\x32\x19.event_store.client.EmptyH\x02\x12\x1b\n\x11\x65xpected_revision\x18\x08 \x01(\x04H\x03\x12\x31\n\x0c\x65xpected_any\x18\t \x01(\x0b\x32\x19.event_store.client.EmptyH\x03\x12;\n\x16\x65xpected_stream_exists\x18\n \x01(\x0b\x32\x19.event_store.client.EmptyH\x03\x12\x37\n\x12\x65xpected_no_stream\x18\x0b \x01(\x0b\x32\x19.event_store.client.EmptyH\x03\x42 \n\x1e\x63urrent_revision_option_20_6_0B!\n\x1f\x65xpected_revision_option_20_6_0B\x19\n\x17\x63urrent_revision_optionB\x1a\n\x18\x65xpected_revision_optionB\x08\n\x06result\"\xe1\x06\n\x0e\x42\x61tchAppendReq\x12\x30\n\x0e\x63orrelation_id\x18\x01 \x01(\x0b\x32\x18.event_store.client.UUID\x12\x43\n\x07options\x18\x02 \x01(\x0b\x32\x32.event_store.client.streams.BatchAppendReq.Options\x12U\n\x11proposed_messages\x18\x03 \x03(\x0b\x32:.event_store.client.streams.BatchAppendReq.ProposedMessage\x12\x10\n\x08is_final\x18\x04 \x01(\x08\x1a\x80\x03\n\x07Options\x12?\n\x11stream_identifier\x18\x01 \x01(\x0b\x32$.event_store.client.StreamIdentifier\x12\x19\n\x0fstream_position\x18\x02 \x01(\x04H\x00\x12+\n\tno_stream\x18\x03 \x01(\x0b\x32\x16.google.protobuf.EmptyH\x00\x12%\n\x03\x61ny\x18\x04 \x01(\x0b\x32\x16.google.protobuf.EmptyH\x00\x12/\n\rstream_exists\x18\x05 \x01(\x0b\x32\x16.google.protobuf.EmptyH\x00\x12\x36\n\x10\x64\x65\x61\x64line_21_10_0\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x01\x12-\n\x08\x64\x65\x61\x64line\x18\x07 \x01(\x0b\x32\x19.google.protobuf.DurationH\x01\x42\x1a\n\x18\x65xpected_stream_positionB\x11\n\x0f\x64\x65\x61\x64line_option\x1a\xeb\x01\n\x0fProposedMessage\x12$\n\x02id\x18\x01 \x01(\x0b\x32\x18.event_store.client.UUID\x12Z\n\x08metadata\x18\x02 \x03(\x0b\x32H.event_store.client.streams.BatchAppendReq.ProposedMessage.MetadataEntry\x12\x17\n\x0f\x63ustom_metadata\x18\x03 \x01(\x0c\x12\x0c\n\x04\x64\x61ta\x18\x04 \x01(\x0c\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xa4\x05\n\x0f\x42\x61tchAppendResp\x12\x30\n\x0e\x63orrelation_id\x18\x01 \x01(\x0b\x32\x18.event_store.client.UUID\x12#\n\x05\x65rror\x18\x02 \x01(\x0b\x32\x12.google.rpc.StatusH\x00\x12\x46\n\x07success\x18\x03 \x01(\x0b\x32\x33.event_store.client.streams.BatchAppendResp.SuccessH\x00\x12?\n\x11stream_identifier\x18\x04 \x01(\x0b\x32$.event_store.client.StreamIdentifier\x12\x19\n\x0fstream_position\x18\x05 \x01(\x04H\x01\x12+\n\tno_stream\x18\x06 \x01(\x0b\x32\x16.google.protobuf.EmptyH\x01\x12%\n\x03\x61ny\x18\x07 \x01(\x0b\x32\x16.google.protobuf.EmptyH\x01\x12/\n\rstream_exists\x18\x08 \x01(\x0b\x32\x16.google.protobuf.EmptyH\x01\x1a\xea\x01\n\x07Success\x12\x1a\n\x10\x63urrent_revision\x18\x01 \x01(\x04H\x00\x12+\n\tno_stream\x18\x02 \x01(\x0b\x32\x16.google.protobuf.EmptyH\x00\x12\x39\n\x08position\x18\x03 \x01(\x0b\x32%.event_store.client.AllStreamPositionH\x01\x12-\n\x0bno_position\x18\x04 \x01(\x0b\x32\x16.google.protobuf.EmptyH\x01\x42\x19\n\x17\x63urrent_revision_optionB\x11\n\x0fposition_optionB\x08\n\x06resultB\x1a\n\x18\x65xpected_stream_position\"\xd6\x02\n\tDeleteReq\x12>\n\x07options\x18\x01 \x01(\x0b\x32-.event_store.client.streams.DeleteReq.Options\x1a\x88\x02\n\x07Options\x12?\n\x11stream_identifier\x18\x01 \x01(\x0b\x32$.event_store.client.StreamIdentifier\x12\x12\n\x08revision\x18\x02 \x01(\x04H\x00\x12.\n\tno_stream\x18\x03 \x01(\x0b\x32\x19.event_store.client.EmptyH\x00\x12(\n\x03\x61ny\x18\x04 \x01(\x0b\x32\x19.event_store.client.EmptyH\x00\x12\x32\n\rstream_exists\x18\x05 \x01(\x0b\x32\x19.event_store.client.EmptyH\x00\x42\x1a\n\x18\x65xpected_stream_revision\"\xd5\x01\n\nDeleteResp\x12\x43\n\x08position\x18\x01 \x01(\x0b\x32/.event_store.client.streams.DeleteResp.PositionH\x00\x12\x30\n\x0bno_position\x18\x02 \x01(\x0b\x32\x19.event_store.client.EmptyH\x00\x1a=\n\x08Position\x12\x17\n\x0f\x63ommit_position\x18\x01 \x01(\x04\x12\x18\n\x10prepare_position\x18\x02 \x01(\x04\x42\x11\n\x0fposition_option\"\xdc\x02\n\x0cTombstoneReq\x12\x41\n\x07options\x18\x01 \x01(\x0b\x32\x30.event_store.client.streams.TombstoneReq.Options\x1a\x88\x02\n\x07Options\x12?\n\x11stream_identifier\x18\x01 \x01(\x0b\x32$.event_store.client.StreamIdentifier\x12\x12\n\x08revision\x18\x02 \x01(\x04H\x00\x12.\n\tno_stream\x18\x03 \x01(\x0b\x32\x19.event_store.client.EmptyH\x00\x12(\n\x03\x61ny\x18\x04 \x01(\x0b\x32\x19.event_store.client.EmptyH\x00\x12\x32\n\rstream_exists\x18\x05 \x01(\x0b\x32\x19.event_store.client.EmptyH\x00\x42\x1a\n\x18\x65xpected_stream_revision\"\xdb\x01\n\rTombstoneResp\x12\x46\n\x08position\x18\x01 \x01(\x0b\x32\x32.event_store.client.streams.TombstoneResp.PositionH\x00\x12\x30\n\x0bno_position\x18\x02 \x01(\x0b\x32\x19.event_store.client.EmptyH\x00\x1a=\n\x08Position\x12\x17\n\x0f\x63ommit_position\x18\x01 \x01(\x04\x12\x18\n\x10prepare_position\x18\x02 \x01(\x04\x42\x11\n\x0fposition_option2\xe0\x03\n\x07Streams\x12S\n\x04Read\x12#.event_store.client.streams.ReadReq\x1a$.event_store.client.streams.ReadResp0\x01\x12Y\n\x06\x41ppend\x12%.event_store.client.streams.AppendReq\x1a&.event_store.client.streams.AppendResp(\x01\x12W\n\x06\x44\x65lete\x12%.event_store.client.streams.DeleteReq\x1a&.event_store.client.streams.DeleteResp\x12`\n\tTombstone\x12(.event_store.client.streams.TombstoneReq\x1a).event_store.client.streams.TombstoneResp\x12j\n\x0b\x42\x61tchAppend\x12*.event_store.client.streams.BatchAppendReq\x1a+.event_store.client.streams.BatchAppendResp(\x01\x30\x01\x42\'\n%com.eventstore.dbclient.proto.streamsb\x06proto3') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) @@ -56,63 +56,67 @@ _globals['_READREQ_OPTIONS_READDIRECTION']._serialized_start=1911 _globals['_READREQ_OPTIONS_READDIRECTION']._serialized_end=1955 _globals['_READRESP']._serialized_start=2008 - _globals['_READRESP']._serialized_end=3309 - _globals['_READRESP_READEVENT']._serialized_start=2465 - _globals['_READRESP_READEVENT']._serialized_end=3097 - _globals['_READRESP_READEVENT_RECORDEDEVENT']._serialized_start=2709 - _globals['_READRESP_READEVENT_RECORDEDEVENT']._serialized_end=3085 - _globals['_READRESP_READEVENT_RECORDEDEVENT_METADATAENTRY']._serialized_start=3038 - _globals['_READRESP_READEVENT_RECORDEDEVENT_METADATAENTRY']._serialized_end=3085 - _globals['_READRESP_SUBSCRIPTIONCONFIRMATION']._serialized_start=3099 - _globals['_READRESP_SUBSCRIPTIONCONFIRMATION']._serialized_end=3150 - _globals['_READRESP_CHECKPOINT']._serialized_start=3152 - _globals['_READRESP_CHECKPOINT']._serialized_end=3215 - _globals['_READRESP_STREAMNOTFOUND']._serialized_start=3217 - _globals['_READRESP_STREAMNOTFOUND']._serialized_end=3298 - _globals['_APPENDREQ']._serialized_start=3312 - _globals['_APPENDREQ']._serialized_end=3983 - _globals['_APPENDREQ_OPTIONS']._serialized_start=3475 - _globals['_APPENDREQ_OPTIONS']._serialized_end=3739 - _globals['_APPENDREQ_PROPOSEDMESSAGE']._serialized_start=3742 - _globals['_APPENDREQ_PROPOSEDMESSAGE']._serialized_end=3972 - _globals['_APPENDREQ_PROPOSEDMESSAGE_METADATAENTRY']._serialized_start=3038 - _globals['_APPENDREQ_PROPOSEDMESSAGE_METADATAENTRY']._serialized_end=3085 - _globals['_APPENDRESP']._serialized_start=3986 - _globals['_APPENDRESP']._serialized_end=5151 + _globals['_READRESP']._serialized_end=3475 + _globals['_READRESP_CAUGHTUP']._serialized_start=2604 + _globals['_READRESP_CAUGHTUP']._serialized_end=2614 + _globals['_READRESP_FELLBEHIND']._serialized_start=2616 + _globals['_READRESP_FELLBEHIND']._serialized_end=2628 + _globals['_READRESP_READEVENT']._serialized_start=2631 + _globals['_READRESP_READEVENT']._serialized_end=3263 + _globals['_READRESP_READEVENT_RECORDEDEVENT']._serialized_start=2875 + _globals['_READRESP_READEVENT_RECORDEDEVENT']._serialized_end=3251 + _globals['_READRESP_READEVENT_RECORDEDEVENT_METADATAENTRY']._serialized_start=3204 + _globals['_READRESP_READEVENT_RECORDEDEVENT_METADATAENTRY']._serialized_end=3251 + _globals['_READRESP_SUBSCRIPTIONCONFIRMATION']._serialized_start=3265 + _globals['_READRESP_SUBSCRIPTIONCONFIRMATION']._serialized_end=3316 + _globals['_READRESP_CHECKPOINT']._serialized_start=3318 + _globals['_READRESP_CHECKPOINT']._serialized_end=3381 + _globals['_READRESP_STREAMNOTFOUND']._serialized_start=3383 + _globals['_READRESP_STREAMNOTFOUND']._serialized_end=3464 + _globals['_APPENDREQ']._serialized_start=3478 + _globals['_APPENDREQ']._serialized_end=4149 + _globals['_APPENDREQ_OPTIONS']._serialized_start=3641 + _globals['_APPENDREQ_OPTIONS']._serialized_end=3905 + _globals['_APPENDREQ_PROPOSEDMESSAGE']._serialized_start=3908 + _globals['_APPENDREQ_PROPOSEDMESSAGE']._serialized_end=4138 + _globals['_APPENDREQ_PROPOSEDMESSAGE_METADATAENTRY']._serialized_start=3204 + _globals['_APPENDREQ_PROPOSEDMESSAGE_METADATAENTRY']._serialized_end=3251 + _globals['_APPENDRESP']._serialized_start=4152 + _globals['_APPENDRESP']._serialized_end=5317 _globals['_APPENDRESP_POSITION']._serialized_start=1318 _globals['_APPENDRESP_POSITION']._serialized_end=1379 - _globals['_APPENDRESP_SUCCESS']._serialized_start=4226 - _globals['_APPENDRESP_SUCCESS']._serialized_end=4476 - _globals['_APPENDRESP_WRONGEXPECTEDVERSION']._serialized_start=4479 - _globals['_APPENDRESP_WRONGEXPECTEDVERSION']._serialized_end=5141 - _globals['_BATCHAPPENDREQ']._serialized_start=5154 - _globals['_BATCHAPPENDREQ']._serialized_end=6019 - _globals['_BATCHAPPENDREQ_OPTIONS']._serialized_start=5397 - _globals['_BATCHAPPENDREQ_OPTIONS']._serialized_end=5781 - _globals['_BATCHAPPENDREQ_PROPOSEDMESSAGE']._serialized_start=5784 - _globals['_BATCHAPPENDREQ_PROPOSEDMESSAGE']._serialized_end=6019 - _globals['_BATCHAPPENDREQ_PROPOSEDMESSAGE_METADATAENTRY']._serialized_start=3038 - _globals['_BATCHAPPENDREQ_PROPOSEDMESSAGE_METADATAENTRY']._serialized_end=3085 - _globals['_BATCHAPPENDRESP']._serialized_start=6022 - _globals['_BATCHAPPENDRESP']._serialized_end=6698 - _globals['_BATCHAPPENDRESP_SUCCESS']._serialized_start=6426 - _globals['_BATCHAPPENDRESP_SUCCESS']._serialized_end=6660 - _globals['_DELETEREQ']._serialized_start=6701 - _globals['_DELETEREQ']._serialized_end=7043 - _globals['_DELETEREQ_OPTIONS']._serialized_start=3475 - _globals['_DELETEREQ_OPTIONS']._serialized_end=3739 - _globals['_DELETERESP']._serialized_start=7046 - _globals['_DELETERESP']._serialized_end=7259 + _globals['_APPENDRESP_SUCCESS']._serialized_start=4392 + _globals['_APPENDRESP_SUCCESS']._serialized_end=4642 + _globals['_APPENDRESP_WRONGEXPECTEDVERSION']._serialized_start=4645 + _globals['_APPENDRESP_WRONGEXPECTEDVERSION']._serialized_end=5307 + _globals['_BATCHAPPENDREQ']._serialized_start=5320 + _globals['_BATCHAPPENDREQ']._serialized_end=6185 + _globals['_BATCHAPPENDREQ_OPTIONS']._serialized_start=5563 + _globals['_BATCHAPPENDREQ_OPTIONS']._serialized_end=5947 + _globals['_BATCHAPPENDREQ_PROPOSEDMESSAGE']._serialized_start=5950 + _globals['_BATCHAPPENDREQ_PROPOSEDMESSAGE']._serialized_end=6185 + _globals['_BATCHAPPENDREQ_PROPOSEDMESSAGE_METADATAENTRY']._serialized_start=3204 + _globals['_BATCHAPPENDREQ_PROPOSEDMESSAGE_METADATAENTRY']._serialized_end=3251 + _globals['_BATCHAPPENDRESP']._serialized_start=6188 + _globals['_BATCHAPPENDRESP']._serialized_end=6864 + _globals['_BATCHAPPENDRESP_SUCCESS']._serialized_start=6592 + _globals['_BATCHAPPENDRESP_SUCCESS']._serialized_end=6826 + _globals['_DELETEREQ']._serialized_start=6867 + _globals['_DELETEREQ']._serialized_end=7209 + _globals['_DELETEREQ_OPTIONS']._serialized_start=3641 + _globals['_DELETEREQ_OPTIONS']._serialized_end=3905 + _globals['_DELETERESP']._serialized_start=7212 + _globals['_DELETERESP']._serialized_end=7425 _globals['_DELETERESP_POSITION']._serialized_start=1318 _globals['_DELETERESP_POSITION']._serialized_end=1379 - _globals['_TOMBSTONEREQ']._serialized_start=7262 - _globals['_TOMBSTONEREQ']._serialized_end=7610 - _globals['_TOMBSTONEREQ_OPTIONS']._serialized_start=3475 - _globals['_TOMBSTONEREQ_OPTIONS']._serialized_end=3739 - _globals['_TOMBSTONERESP']._serialized_start=7613 - _globals['_TOMBSTONERESP']._serialized_end=7832 + _globals['_TOMBSTONEREQ']._serialized_start=7428 + _globals['_TOMBSTONEREQ']._serialized_end=7776 + _globals['_TOMBSTONEREQ_OPTIONS']._serialized_start=3641 + _globals['_TOMBSTONEREQ_OPTIONS']._serialized_end=3905 + _globals['_TOMBSTONERESP']._serialized_start=7779 + _globals['_TOMBSTONERESP']._serialized_end=7998 _globals['_TOMBSTONERESP_POSITION']._serialized_start=1318 _globals['_TOMBSTONERESP_POSITION']._serialized_end=1379 - _globals['_STREAMS']._serialized_start=7835 - _globals['_STREAMS']._serialized_end=8315 + _globals['_STREAMS']._serialized_start=8001 + _globals['_STREAMS']._serialized_end=8481 # @@protoc_insertion_point(module_scope) diff --git a/esdb/generated/streams_pb2.pyi b/esdb/generated/streams_pb2.pyi index d7f098c..3a8bbdd 100644 --- a/esdb/generated/streams_pb2.pyi +++ b/esdb/generated/streams_pb2.pyi @@ -2,6 +2,7 @@ @generated by mypy-protobuf. Do not edit manually! isort:skip_file """ + import builtins import collections.abc import google.protobuf.descriptor @@ -23,11 +24,11 @@ else: DESCRIPTOR: google.protobuf.descriptor.FileDescriptor -@typing_extensions.final +@typing.final class ReadReq(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor - @typing_extensions.final + @typing.final class Options(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -44,7 +45,7 @@ class ReadReq(google.protobuf.message.Message): Forwards: ReadReq.Options.ReadDirection.ValueType # 0 Backwards: ReadReq.Options.ReadDirection.ValueType # 1 - @typing_extensions.final + @typing.final class StreamOptions(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -52,9 +53,9 @@ class ReadReq(google.protobuf.message.Message): REVISION_FIELD_NUMBER: builtins.int START_FIELD_NUMBER: builtins.int END_FIELD_NUMBER: builtins.int + revision: builtins.int @property def stream_identifier(self) -> shared_pb2.StreamIdentifier: ... - revision: builtins.int @property def start(self) -> shared_pb2.Empty: ... @property @@ -67,11 +68,11 @@ class ReadReq(google.protobuf.message.Message): start: shared_pb2.Empty | None = ..., end: shared_pb2.Empty | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["end", b"end", "revision", b"revision", "revision_option", b"revision_option", "start", b"start", "stream_identifier", b"stream_identifier"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["end", b"end", "revision", b"revision", "revision_option", b"revision_option", "start", b"start", "stream_identifier", b"stream_identifier"]) -> None: ... - def WhichOneof(self, oneof_group: typing_extensions.Literal["revision_option", b"revision_option"]) -> typing_extensions.Literal["revision", "start", "end"] | None: ... + def HasField(self, field_name: typing.Literal["end", b"end", "revision", b"revision", "revision_option", b"revision_option", "start", b"start", "stream_identifier", b"stream_identifier"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["end", b"end", "revision", b"revision", "revision_option", b"revision_option", "start", b"start", "stream_identifier", b"stream_identifier"]) -> None: ... + def WhichOneof(self, oneof_group: typing.Literal["revision_option", b"revision_option"]) -> typing.Literal["revision", "start", "end"] | None: ... - @typing_extensions.final + @typing.final class AllOptions(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -91,11 +92,11 @@ class ReadReq(google.protobuf.message.Message): start: shared_pb2.Empty | None = ..., end: shared_pb2.Empty | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["all_option", b"all_option", "end", b"end", "position", b"position", "start", b"start"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["all_option", b"all_option", "end", b"end", "position", b"position", "start", b"start"]) -> None: ... - def WhichOneof(self, oneof_group: typing_extensions.Literal["all_option", b"all_option"]) -> typing_extensions.Literal["position", "start", "end"] | None: ... + def HasField(self, field_name: typing.Literal["all_option", b"all_option", "end", b"end", "position", b"position", "start", b"start"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["all_option", b"all_option", "end", b"end", "position", b"position", "start", b"start"]) -> None: ... + def WhichOneof(self, oneof_group: typing.Literal["all_option", b"all_option"]) -> typing.Literal["position", "start", "end"] | None: ... - @typing_extensions.final + @typing.final class SubscriptionOptions(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -103,7 +104,7 @@ class ReadReq(google.protobuf.message.Message): self, ) -> None: ... - @typing_extensions.final + @typing.final class Position(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -117,13 +118,13 @@ class ReadReq(google.protobuf.message.Message): commit_position: builtins.int = ..., prepare_position: builtins.int = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["commit_position", b"commit_position", "prepare_position", b"prepare_position"]) -> None: ... + def ClearField(self, field_name: typing.Literal["commit_position", b"commit_position", "prepare_position", b"prepare_position"]) -> None: ... - @typing_extensions.final + @typing.final class FilterOptions(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor - @typing_extensions.final + @typing.final class Expression(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -138,21 +139,21 @@ class ReadReq(google.protobuf.message.Message): regex: builtins.str = ..., prefix: collections.abc.Iterable[builtins.str] | None = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["prefix", b"prefix", "regex", b"regex"]) -> None: ... + def ClearField(self, field_name: typing.Literal["prefix", b"prefix", "regex", b"regex"]) -> None: ... STREAM_IDENTIFIER_FIELD_NUMBER: builtins.int EVENT_TYPE_FIELD_NUMBER: builtins.int MAX_FIELD_NUMBER: builtins.int COUNT_FIELD_NUMBER: builtins.int CHECKPOINTINTERVALMULTIPLIER_FIELD_NUMBER: builtins.int + max: builtins.int + checkpointIntervalMultiplier: builtins.int @property def stream_identifier(self) -> global___ReadReq.Options.FilterOptions.Expression: ... @property def event_type(self) -> global___ReadReq.Options.FilterOptions.Expression: ... - max: builtins.int @property def count(self) -> shared_pb2.Empty: ... - checkpointIntervalMultiplier: builtins.int def __init__( self, *, @@ -162,14 +163,14 @@ class ReadReq(google.protobuf.message.Message): count: shared_pb2.Empty | None = ..., checkpointIntervalMultiplier: builtins.int = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["count", b"count", "event_type", b"event_type", "filter", b"filter", "max", b"max", "stream_identifier", b"stream_identifier", "window", b"window"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["checkpointIntervalMultiplier", b"checkpointIntervalMultiplier", "count", b"count", "event_type", b"event_type", "filter", b"filter", "max", b"max", "stream_identifier", b"stream_identifier", "window", b"window"]) -> None: ... + def HasField(self, field_name: typing.Literal["count", b"count", "event_type", b"event_type", "filter", b"filter", "max", b"max", "stream_identifier", b"stream_identifier", "window", b"window"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["checkpointIntervalMultiplier", b"checkpointIntervalMultiplier", "count", b"count", "event_type", b"event_type", "filter", b"filter", "max", b"max", "stream_identifier", b"stream_identifier", "window", b"window"]) -> None: ... @typing.overload - def WhichOneof(self, oneof_group: typing_extensions.Literal["filter", b"filter"]) -> typing_extensions.Literal["stream_identifier", "event_type"] | None: ... + def WhichOneof(self, oneof_group: typing.Literal["filter", b"filter"]) -> typing.Literal["stream_identifier", "event_type"] | None: ... @typing.overload - def WhichOneof(self, oneof_group: typing_extensions.Literal["window", b"window"]) -> typing_extensions.Literal["max", "count"] | None: ... + def WhichOneof(self, oneof_group: typing.Literal["window", b"window"]) -> typing.Literal["max", "count"] | None: ... - @typing_extensions.final + @typing.final class UUIDOption(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -185,11 +186,11 @@ class ReadReq(google.protobuf.message.Message): structured: shared_pb2.Empty | None = ..., string: shared_pb2.Empty | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["content", b"content", "string", b"string", "structured", b"structured"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["content", b"content", "string", b"string", "structured", b"structured"]) -> None: ... - def WhichOneof(self, oneof_group: typing_extensions.Literal["content", b"content"]) -> typing_extensions.Literal["structured", "string"] | None: ... + def HasField(self, field_name: typing.Literal["content", b"content", "string", b"string", "structured", b"structured"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["content", b"content", "string", b"string", "structured", b"structured"]) -> None: ... + def WhichOneof(self, oneof_group: typing.Literal["content", b"content"]) -> typing.Literal["structured", "string"] | None: ... - @typing_extensions.final + @typing.final class ControlOption(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -200,7 +201,7 @@ class ReadReq(google.protobuf.message.Message): *, compatibility: builtins.int = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["compatibility", b"compatibility"]) -> None: ... + def ClearField(self, field_name: typing.Literal["compatibility", b"compatibility"]) -> None: ... STREAM_FIELD_NUMBER: builtins.int ALL_FIELD_NUMBER: builtins.int @@ -212,13 +213,13 @@ class ReadReq(google.protobuf.message.Message): NO_FILTER_FIELD_NUMBER: builtins.int UUID_OPTION_FIELD_NUMBER: builtins.int CONTROL_OPTION_FIELD_NUMBER: builtins.int + read_direction: global___ReadReq.Options.ReadDirection.ValueType + resolve_links: builtins.bool + count: builtins.int @property def stream(self) -> global___ReadReq.Options.StreamOptions: ... @property def all(self) -> global___ReadReq.Options.AllOptions: ... - read_direction: global___ReadReq.Options.ReadDirection.ValueType - resolve_links: builtins.bool - count: builtins.int @property def subscription(self) -> global___ReadReq.Options.SubscriptionOptions: ... @property @@ -243,14 +244,14 @@ class ReadReq(google.protobuf.message.Message): uuid_option: global___ReadReq.Options.UUIDOption | None = ..., control_option: global___ReadReq.Options.ControlOption | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["all", b"all", "control_option", b"control_option", "count", b"count", "count_option", b"count_option", "filter", b"filter", "filter_option", b"filter_option", "no_filter", b"no_filter", "stream", b"stream", "stream_option", b"stream_option", "subscription", b"subscription", "uuid_option", b"uuid_option"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["all", b"all", "control_option", b"control_option", "count", b"count", "count_option", b"count_option", "filter", b"filter", "filter_option", b"filter_option", "no_filter", b"no_filter", "read_direction", b"read_direction", "resolve_links", b"resolve_links", "stream", b"stream", "stream_option", b"stream_option", "subscription", b"subscription", "uuid_option", b"uuid_option"]) -> None: ... + def HasField(self, field_name: typing.Literal["all", b"all", "control_option", b"control_option", "count", b"count", "count_option", b"count_option", "filter", b"filter", "filter_option", b"filter_option", "no_filter", b"no_filter", "stream", b"stream", "stream_option", b"stream_option", "subscription", b"subscription", "uuid_option", b"uuid_option"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["all", b"all", "control_option", b"control_option", "count", b"count", "count_option", b"count_option", "filter", b"filter", "filter_option", b"filter_option", "no_filter", b"no_filter", "read_direction", b"read_direction", "resolve_links", b"resolve_links", "stream", b"stream", "stream_option", b"stream_option", "subscription", b"subscription", "uuid_option", b"uuid_option"]) -> None: ... @typing.overload - def WhichOneof(self, oneof_group: typing_extensions.Literal["count_option", b"count_option"]) -> typing_extensions.Literal["count", "subscription"] | None: ... + def WhichOneof(self, oneof_group: typing.Literal["count_option", b"count_option"]) -> typing.Literal["count", "subscription"] | None: ... @typing.overload - def WhichOneof(self, oneof_group: typing_extensions.Literal["filter_option", b"filter_option"]) -> typing_extensions.Literal["filter", "no_filter"] | None: ... + def WhichOneof(self, oneof_group: typing.Literal["filter_option", b"filter_option"]) -> typing.Literal["filter", "no_filter"] | None: ... @typing.overload - def WhichOneof(self, oneof_group: typing_extensions.Literal["stream_option", b"stream_option"]) -> typing_extensions.Literal["stream", "all"] | None: ... + def WhichOneof(self, oneof_group: typing.Literal["stream_option", b"stream_option"]) -> typing.Literal["stream", "all"] | None: ... OPTIONS_FIELD_NUMBER: builtins.int @property @@ -260,24 +261,40 @@ class ReadReq(google.protobuf.message.Message): *, options: global___ReadReq.Options | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["options", b"options"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["options", b"options"]) -> None: ... + def HasField(self, field_name: typing.Literal["options", b"options"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["options", b"options"]) -> None: ... global___ReadReq = ReadReq -@typing_extensions.final +@typing.final class ReadResp(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor - @typing_extensions.final + @typing.final + class CaughtUp(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + + @typing.final + class FellBehind(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + + @typing.final class ReadEvent(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor - @typing_extensions.final + @typing.final class RecordedEvent(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor - @typing_extensions.final + @typing.final class MetadataEntry(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -291,7 +308,7 @@ class ReadResp(google.protobuf.message.Message): key: builtins.str = ..., value: builtins.str = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["key", b"key", "value", b"value"]) -> None: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... ID_FIELD_NUMBER: builtins.int STREAM_IDENTIFIER_FIELD_NUMBER: builtins.int @@ -301,17 +318,17 @@ class ReadResp(google.protobuf.message.Message): METADATA_FIELD_NUMBER: builtins.int CUSTOM_METADATA_FIELD_NUMBER: builtins.int DATA_FIELD_NUMBER: builtins.int + stream_revision: builtins.int + prepare_position: builtins.int + commit_position: builtins.int + custom_metadata: builtins.bytes + data: builtins.bytes @property def id(self) -> shared_pb2.UUID: ... @property def stream_identifier(self) -> shared_pb2.StreamIdentifier: ... - stream_revision: builtins.int - prepare_position: builtins.int - commit_position: builtins.int @property def metadata(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: ... - custom_metadata: builtins.bytes - data: builtins.bytes def __init__( self, *, @@ -324,18 +341,18 @@ class ReadResp(google.protobuf.message.Message): custom_metadata: builtins.bytes = ..., data: builtins.bytes = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["id", b"id", "stream_identifier", b"stream_identifier"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["commit_position", b"commit_position", "custom_metadata", b"custom_metadata", "data", b"data", "id", b"id", "metadata", b"metadata", "prepare_position", b"prepare_position", "stream_identifier", b"stream_identifier", "stream_revision", b"stream_revision"]) -> None: ... + def HasField(self, field_name: typing.Literal["id", b"id", "stream_identifier", b"stream_identifier"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["commit_position", b"commit_position", "custom_metadata", b"custom_metadata", "data", b"data", "id", b"id", "metadata", b"metadata", "prepare_position", b"prepare_position", "stream_identifier", b"stream_identifier", "stream_revision", b"stream_revision"]) -> None: ... EVENT_FIELD_NUMBER: builtins.int LINK_FIELD_NUMBER: builtins.int COMMIT_POSITION_FIELD_NUMBER: builtins.int NO_POSITION_FIELD_NUMBER: builtins.int + commit_position: builtins.int @property def event(self) -> global___ReadResp.ReadEvent.RecordedEvent: ... @property def link(self) -> global___ReadResp.ReadEvent.RecordedEvent: ... - commit_position: builtins.int @property def no_position(self) -> shared_pb2.Empty: ... def __init__( @@ -346,11 +363,11 @@ class ReadResp(google.protobuf.message.Message): commit_position: builtins.int = ..., no_position: shared_pb2.Empty | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["commit_position", b"commit_position", "event", b"event", "link", b"link", "no_position", b"no_position", "position", b"position"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["commit_position", b"commit_position", "event", b"event", "link", b"link", "no_position", b"no_position", "position", b"position"]) -> None: ... - def WhichOneof(self, oneof_group: typing_extensions.Literal["position", b"position"]) -> typing_extensions.Literal["commit_position", "no_position"] | None: ... + def HasField(self, field_name: typing.Literal["commit_position", b"commit_position", "event", b"event", "link", b"link", "no_position", b"no_position", "position", b"position"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["commit_position", b"commit_position", "event", b"event", "link", b"link", "no_position", b"no_position", "position", b"position"]) -> None: ... + def WhichOneof(self, oneof_group: typing.Literal["position", b"position"]) -> typing.Literal["commit_position", "no_position"] | None: ... - @typing_extensions.final + @typing.final class SubscriptionConfirmation(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -361,9 +378,9 @@ class ReadResp(google.protobuf.message.Message): *, subscription_id: builtins.str = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["subscription_id", b"subscription_id"]) -> None: ... + def ClearField(self, field_name: typing.Literal["subscription_id", b"subscription_id"]) -> None: ... - @typing_extensions.final + @typing.final class Checkpoint(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -377,9 +394,9 @@ class ReadResp(google.protobuf.message.Message): commit_position: builtins.int = ..., prepare_position: builtins.int = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["commit_position", b"commit_position", "prepare_position", b"prepare_position"]) -> None: ... + def ClearField(self, field_name: typing.Literal["commit_position", b"commit_position", "prepare_position", b"prepare_position"]) -> None: ... - @typing_extensions.final + @typing.final class StreamNotFound(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -391,8 +408,8 @@ class ReadResp(google.protobuf.message.Message): *, stream_identifier: shared_pb2.StreamIdentifier | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["stream_identifier", b"stream_identifier"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["stream_identifier", b"stream_identifier"]) -> None: ... + def HasField(self, field_name: typing.Literal["stream_identifier", b"stream_identifier"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["stream_identifier", b"stream_identifier"]) -> None: ... EVENT_FIELD_NUMBER: builtins.int CONFIRMATION_FIELD_NUMBER: builtins.int @@ -401,6 +418,10 @@ class ReadResp(google.protobuf.message.Message): FIRST_STREAM_POSITION_FIELD_NUMBER: builtins.int LAST_STREAM_POSITION_FIELD_NUMBER: builtins.int LAST_ALL_STREAM_POSITION_FIELD_NUMBER: builtins.int + CAUGHT_UP_FIELD_NUMBER: builtins.int + FELL_BEHIND_FIELD_NUMBER: builtins.int + first_stream_position: builtins.int + last_stream_position: builtins.int @property def event(self) -> global___ReadResp.ReadEvent: ... @property @@ -409,10 +430,12 @@ class ReadResp(google.protobuf.message.Message): def checkpoint(self) -> global___ReadResp.Checkpoint: ... @property def stream_not_found(self) -> global___ReadResp.StreamNotFound: ... - first_stream_position: builtins.int - last_stream_position: builtins.int @property def last_all_stream_position(self) -> shared_pb2.AllStreamPosition: ... + @property + def caught_up(self) -> global___ReadResp.CaughtUp: ... + @property + def fell_behind(self) -> global___ReadResp.FellBehind: ... def __init__( self, *, @@ -423,18 +446,20 @@ class ReadResp(google.protobuf.message.Message): first_stream_position: builtins.int = ..., last_stream_position: builtins.int = ..., last_all_stream_position: shared_pb2.AllStreamPosition | None = ..., + caught_up: global___ReadResp.CaughtUp | None = ..., + fell_behind: global___ReadResp.FellBehind | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["checkpoint", b"checkpoint", "confirmation", b"confirmation", "content", b"content", "event", b"event", "first_stream_position", b"first_stream_position", "last_all_stream_position", b"last_all_stream_position", "last_stream_position", b"last_stream_position", "stream_not_found", b"stream_not_found"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["checkpoint", b"checkpoint", "confirmation", b"confirmation", "content", b"content", "event", b"event", "first_stream_position", b"first_stream_position", "last_all_stream_position", b"last_all_stream_position", "last_stream_position", b"last_stream_position", "stream_not_found", b"stream_not_found"]) -> None: ... - def WhichOneof(self, oneof_group: typing_extensions.Literal["content", b"content"]) -> typing_extensions.Literal["event", "confirmation", "checkpoint", "stream_not_found", "first_stream_position", "last_stream_position", "last_all_stream_position"] | None: ... + def HasField(self, field_name: typing.Literal["caught_up", b"caught_up", "checkpoint", b"checkpoint", "confirmation", b"confirmation", "content", b"content", "event", b"event", "fell_behind", b"fell_behind", "first_stream_position", b"first_stream_position", "last_all_stream_position", b"last_all_stream_position", "last_stream_position", b"last_stream_position", "stream_not_found", b"stream_not_found"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["caught_up", b"caught_up", "checkpoint", b"checkpoint", "confirmation", b"confirmation", "content", b"content", "event", b"event", "fell_behind", b"fell_behind", "first_stream_position", b"first_stream_position", "last_all_stream_position", b"last_all_stream_position", "last_stream_position", b"last_stream_position", "stream_not_found", b"stream_not_found"]) -> None: ... + def WhichOneof(self, oneof_group: typing.Literal["content", b"content"]) -> typing.Literal["event", "confirmation", "checkpoint", "stream_not_found", "first_stream_position", "last_stream_position", "last_all_stream_position", "caught_up", "fell_behind"] | None: ... global___ReadResp = ReadResp -@typing_extensions.final +@typing.final class AppendReq(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor - @typing_extensions.final + @typing.final class Options(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -443,9 +468,9 @@ class AppendReq(google.protobuf.message.Message): NO_STREAM_FIELD_NUMBER: builtins.int ANY_FIELD_NUMBER: builtins.int STREAM_EXISTS_FIELD_NUMBER: builtins.int + revision: builtins.int @property def stream_identifier(self) -> shared_pb2.StreamIdentifier: ... - revision: builtins.int @property def no_stream(self) -> shared_pb2.Empty: ... @property @@ -461,15 +486,15 @@ class AppendReq(google.protobuf.message.Message): any: shared_pb2.Empty | None = ..., stream_exists: shared_pb2.Empty | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["any", b"any", "expected_stream_revision", b"expected_stream_revision", "no_stream", b"no_stream", "revision", b"revision", "stream_exists", b"stream_exists", "stream_identifier", b"stream_identifier"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["any", b"any", "expected_stream_revision", b"expected_stream_revision", "no_stream", b"no_stream", "revision", b"revision", "stream_exists", b"stream_exists", "stream_identifier", b"stream_identifier"]) -> None: ... - def WhichOneof(self, oneof_group: typing_extensions.Literal["expected_stream_revision", b"expected_stream_revision"]) -> typing_extensions.Literal["revision", "no_stream", "any", "stream_exists"] | None: ... + def HasField(self, field_name: typing.Literal["any", b"any", "expected_stream_revision", b"expected_stream_revision", "no_stream", b"no_stream", "revision", b"revision", "stream_exists", b"stream_exists", "stream_identifier", b"stream_identifier"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["any", b"any", "expected_stream_revision", b"expected_stream_revision", "no_stream", b"no_stream", "revision", b"revision", "stream_exists", b"stream_exists", "stream_identifier", b"stream_identifier"]) -> None: ... + def WhichOneof(self, oneof_group: typing.Literal["expected_stream_revision", b"expected_stream_revision"]) -> typing.Literal["revision", "no_stream", "any", "stream_exists"] | None: ... - @typing_extensions.final + @typing.final class ProposedMessage(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor - @typing_extensions.final + @typing.final class MetadataEntry(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -483,18 +508,18 @@ class AppendReq(google.protobuf.message.Message): key: builtins.str = ..., value: builtins.str = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["key", b"key", "value", b"value"]) -> None: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... ID_FIELD_NUMBER: builtins.int METADATA_FIELD_NUMBER: builtins.int CUSTOM_METADATA_FIELD_NUMBER: builtins.int DATA_FIELD_NUMBER: builtins.int + custom_metadata: builtins.bytes + data: builtins.bytes @property def id(self) -> shared_pb2.UUID: ... @property def metadata(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: ... - custom_metadata: builtins.bytes - data: builtins.bytes def __init__( self, *, @@ -503,8 +528,8 @@ class AppendReq(google.protobuf.message.Message): custom_metadata: builtins.bytes = ..., data: builtins.bytes = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["id", b"id"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["custom_metadata", b"custom_metadata", "data", b"data", "id", b"id", "metadata", b"metadata"]) -> None: ... + def HasField(self, field_name: typing.Literal["id", b"id"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["custom_metadata", b"custom_metadata", "data", b"data", "id", b"id", "metadata", b"metadata"]) -> None: ... OPTIONS_FIELD_NUMBER: builtins.int PROPOSED_MESSAGE_FIELD_NUMBER: builtins.int @@ -518,17 +543,17 @@ class AppendReq(google.protobuf.message.Message): options: global___AppendReq.Options | None = ..., proposed_message: global___AppendReq.ProposedMessage | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["content", b"content", "options", b"options", "proposed_message", b"proposed_message"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["content", b"content", "options", b"options", "proposed_message", b"proposed_message"]) -> None: ... - def WhichOneof(self, oneof_group: typing_extensions.Literal["content", b"content"]) -> typing_extensions.Literal["options", "proposed_message"] | None: ... + def HasField(self, field_name: typing.Literal["content", b"content", "options", b"options", "proposed_message", b"proposed_message"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["content", b"content", "options", b"options", "proposed_message", b"proposed_message"]) -> None: ... + def WhichOneof(self, oneof_group: typing.Literal["content", b"content"]) -> typing.Literal["options", "proposed_message"] | None: ... global___AppendReq = AppendReq -@typing_extensions.final +@typing.final class AppendResp(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor - @typing_extensions.final + @typing.final class Position(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -542,9 +567,9 @@ class AppendResp(google.protobuf.message.Message): commit_position: builtins.int = ..., prepare_position: builtins.int = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["commit_position", b"commit_position", "prepare_position", b"prepare_position"]) -> None: ... + def ClearField(self, field_name: typing.Literal["commit_position", b"commit_position", "prepare_position", b"prepare_position"]) -> None: ... - @typing_extensions.final + @typing.final class Success(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -567,14 +592,14 @@ class AppendResp(google.protobuf.message.Message): position: global___AppendResp.Position | None = ..., no_position: shared_pb2.Empty | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["current_revision", b"current_revision", "current_revision_option", b"current_revision_option", "no_position", b"no_position", "no_stream", b"no_stream", "position", b"position", "position_option", b"position_option"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["current_revision", b"current_revision", "current_revision_option", b"current_revision_option", "no_position", b"no_position", "no_stream", b"no_stream", "position", b"position", "position_option", b"position_option"]) -> None: ... + def HasField(self, field_name: typing.Literal["current_revision", b"current_revision", "current_revision_option", b"current_revision_option", "no_position", b"no_position", "no_stream", b"no_stream", "position", b"position", "position_option", b"position_option"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["current_revision", b"current_revision", "current_revision_option", b"current_revision_option", "no_position", b"no_position", "no_stream", b"no_stream", "position", b"position", "position_option", b"position_option"]) -> None: ... @typing.overload - def WhichOneof(self, oneof_group: typing_extensions.Literal["current_revision_option", b"current_revision_option"]) -> typing_extensions.Literal["current_revision", "no_stream"] | None: ... + def WhichOneof(self, oneof_group: typing.Literal["current_revision_option", b"current_revision_option"]) -> typing.Literal["current_revision", "no_stream"] | None: ... @typing.overload - def WhichOneof(self, oneof_group: typing_extensions.Literal["position_option", b"position_option"]) -> typing_extensions.Literal["position", "no_position"] | None: ... + def WhichOneof(self, oneof_group: typing.Literal["position_option", b"position_option"]) -> typing.Literal["position", "no_position"] | None: ... - @typing_extensions.final + @typing.final class WrongExpectedVersion(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -590,17 +615,17 @@ class AppendResp(google.protobuf.message.Message): EXPECTED_STREAM_EXISTS_FIELD_NUMBER: builtins.int EXPECTED_NO_STREAM_FIELD_NUMBER: builtins.int current_revision_20_6_0: builtins.int + expected_revision_20_6_0: builtins.int + current_revision: builtins.int + expected_revision: builtins.int @property def no_stream_20_6_0(self) -> shared_pb2.Empty: ... - expected_revision_20_6_0: builtins.int @property def any_20_6_0(self) -> shared_pb2.Empty: ... @property def stream_exists_20_6_0(self) -> shared_pb2.Empty: ... - current_revision: builtins.int @property def current_no_stream(self) -> shared_pb2.Empty: ... - expected_revision: builtins.int @property def expected_any(self) -> shared_pb2.Empty: ... @property @@ -622,16 +647,16 @@ class AppendResp(google.protobuf.message.Message): expected_stream_exists: shared_pb2.Empty | None = ..., expected_no_stream: shared_pb2.Empty | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["any_20_6_0", b"any_20_6_0", "current_no_stream", b"current_no_stream", "current_revision", b"current_revision", "current_revision_20_6_0", b"current_revision_20_6_0", "current_revision_option", b"current_revision_option", "current_revision_option_20_6_0", b"current_revision_option_20_6_0", "expected_any", b"expected_any", "expected_no_stream", b"expected_no_stream", "expected_revision", b"expected_revision", "expected_revision_20_6_0", b"expected_revision_20_6_0", "expected_revision_option", b"expected_revision_option", "expected_revision_option_20_6_0", b"expected_revision_option_20_6_0", "expected_stream_exists", b"expected_stream_exists", "no_stream_20_6_0", b"no_stream_20_6_0", "stream_exists_20_6_0", b"stream_exists_20_6_0"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["any_20_6_0", b"any_20_6_0", "current_no_stream", b"current_no_stream", "current_revision", b"current_revision", "current_revision_20_6_0", b"current_revision_20_6_0", "current_revision_option", b"current_revision_option", "current_revision_option_20_6_0", b"current_revision_option_20_6_0", "expected_any", b"expected_any", "expected_no_stream", b"expected_no_stream", "expected_revision", b"expected_revision", "expected_revision_20_6_0", b"expected_revision_20_6_0", "expected_revision_option", b"expected_revision_option", "expected_revision_option_20_6_0", b"expected_revision_option_20_6_0", "expected_stream_exists", b"expected_stream_exists", "no_stream_20_6_0", b"no_stream_20_6_0", "stream_exists_20_6_0", b"stream_exists_20_6_0"]) -> None: ... + def HasField(self, field_name: typing.Literal["any_20_6_0", b"any_20_6_0", "current_no_stream", b"current_no_stream", "current_revision", b"current_revision", "current_revision_20_6_0", b"current_revision_20_6_0", "current_revision_option", b"current_revision_option", "current_revision_option_20_6_0", b"current_revision_option_20_6_0", "expected_any", b"expected_any", "expected_no_stream", b"expected_no_stream", "expected_revision", b"expected_revision", "expected_revision_20_6_0", b"expected_revision_20_6_0", "expected_revision_option", b"expected_revision_option", "expected_revision_option_20_6_0", b"expected_revision_option_20_6_0", "expected_stream_exists", b"expected_stream_exists", "no_stream_20_6_0", b"no_stream_20_6_0", "stream_exists_20_6_0", b"stream_exists_20_6_0"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["any_20_6_0", b"any_20_6_0", "current_no_stream", b"current_no_stream", "current_revision", b"current_revision", "current_revision_20_6_0", b"current_revision_20_6_0", "current_revision_option", b"current_revision_option", "current_revision_option_20_6_0", b"current_revision_option_20_6_0", "expected_any", b"expected_any", "expected_no_stream", b"expected_no_stream", "expected_revision", b"expected_revision", "expected_revision_20_6_0", b"expected_revision_20_6_0", "expected_revision_option", b"expected_revision_option", "expected_revision_option_20_6_0", b"expected_revision_option_20_6_0", "expected_stream_exists", b"expected_stream_exists", "no_stream_20_6_0", b"no_stream_20_6_0", "stream_exists_20_6_0", b"stream_exists_20_6_0"]) -> None: ... @typing.overload - def WhichOneof(self, oneof_group: typing_extensions.Literal["current_revision_option", b"current_revision_option"]) -> typing_extensions.Literal["current_revision", "current_no_stream"] | None: ... + def WhichOneof(self, oneof_group: typing.Literal["current_revision_option", b"current_revision_option"]) -> typing.Literal["current_revision", "current_no_stream"] | None: ... @typing.overload - def WhichOneof(self, oneof_group: typing_extensions.Literal["current_revision_option_20_6_0", b"current_revision_option_20_6_0"]) -> typing_extensions.Literal["current_revision_20_6_0", "no_stream_20_6_0"] | None: ... + def WhichOneof(self, oneof_group: typing.Literal["current_revision_option_20_6_0", b"current_revision_option_20_6_0"]) -> typing.Literal["current_revision_20_6_0", "no_stream_20_6_0"] | None: ... @typing.overload - def WhichOneof(self, oneof_group: typing_extensions.Literal["expected_revision_option", b"expected_revision_option"]) -> typing_extensions.Literal["expected_revision", "expected_any", "expected_stream_exists", "expected_no_stream"] | None: ... + def WhichOneof(self, oneof_group: typing.Literal["expected_revision_option", b"expected_revision_option"]) -> typing.Literal["expected_revision", "expected_any", "expected_stream_exists", "expected_no_stream"] | None: ... @typing.overload - def WhichOneof(self, oneof_group: typing_extensions.Literal["expected_revision_option_20_6_0", b"expected_revision_option_20_6_0"]) -> typing_extensions.Literal["expected_revision_20_6_0", "any_20_6_0", "stream_exists_20_6_0"] | None: ... + def WhichOneof(self, oneof_group: typing.Literal["expected_revision_option_20_6_0", b"expected_revision_option_20_6_0"]) -> typing.Literal["expected_revision_20_6_0", "any_20_6_0", "stream_exists_20_6_0"] | None: ... SUCCESS_FIELD_NUMBER: builtins.int WRONG_EXPECTED_VERSION_FIELD_NUMBER: builtins.int @@ -645,17 +670,17 @@ class AppendResp(google.protobuf.message.Message): success: global___AppendResp.Success | None = ..., wrong_expected_version: global___AppendResp.WrongExpectedVersion | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["result", b"result", "success", b"success", "wrong_expected_version", b"wrong_expected_version"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["result", b"result", "success", b"success", "wrong_expected_version", b"wrong_expected_version"]) -> None: ... - def WhichOneof(self, oneof_group: typing_extensions.Literal["result", b"result"]) -> typing_extensions.Literal["success", "wrong_expected_version"] | None: ... + def HasField(self, field_name: typing.Literal["result", b"result", "success", b"success", "wrong_expected_version", b"wrong_expected_version"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["result", b"result", "success", b"success", "wrong_expected_version", b"wrong_expected_version"]) -> None: ... + def WhichOneof(self, oneof_group: typing.Literal["result", b"result"]) -> typing.Literal["success", "wrong_expected_version"] | None: ... global___AppendResp = AppendResp -@typing_extensions.final +@typing.final class BatchAppendReq(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor - @typing_extensions.final + @typing.final class Options(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -666,9 +691,9 @@ class BatchAppendReq(google.protobuf.message.Message): STREAM_EXISTS_FIELD_NUMBER: builtins.int DEADLINE_21_10_0_FIELD_NUMBER: builtins.int DEADLINE_FIELD_NUMBER: builtins.int + stream_position: builtins.int @property def stream_identifier(self) -> shared_pb2.StreamIdentifier: ... - stream_position: builtins.int @property def no_stream(self) -> google.protobuf.empty_pb2.Empty: ... @property @@ -690,18 +715,18 @@ class BatchAppendReq(google.protobuf.message.Message): deadline_21_10_0: google.protobuf.timestamp_pb2.Timestamp | None = ..., deadline: google.protobuf.duration_pb2.Duration | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["any", b"any", "deadline", b"deadline", "deadline_21_10_0", b"deadline_21_10_0", "deadline_option", b"deadline_option", "expected_stream_position", b"expected_stream_position", "no_stream", b"no_stream", "stream_exists", b"stream_exists", "stream_identifier", b"stream_identifier", "stream_position", b"stream_position"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["any", b"any", "deadline", b"deadline", "deadline_21_10_0", b"deadline_21_10_0", "deadline_option", b"deadline_option", "expected_stream_position", b"expected_stream_position", "no_stream", b"no_stream", "stream_exists", b"stream_exists", "stream_identifier", b"stream_identifier", "stream_position", b"stream_position"]) -> None: ... + def HasField(self, field_name: typing.Literal["any", b"any", "deadline", b"deadline", "deadline_21_10_0", b"deadline_21_10_0", "deadline_option", b"deadline_option", "expected_stream_position", b"expected_stream_position", "no_stream", b"no_stream", "stream_exists", b"stream_exists", "stream_identifier", b"stream_identifier", "stream_position", b"stream_position"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["any", b"any", "deadline", b"deadline", "deadline_21_10_0", b"deadline_21_10_0", "deadline_option", b"deadline_option", "expected_stream_position", b"expected_stream_position", "no_stream", b"no_stream", "stream_exists", b"stream_exists", "stream_identifier", b"stream_identifier", "stream_position", b"stream_position"]) -> None: ... @typing.overload - def WhichOneof(self, oneof_group: typing_extensions.Literal["deadline_option", b"deadline_option"]) -> typing_extensions.Literal["deadline_21_10_0", "deadline"] | None: ... + def WhichOneof(self, oneof_group: typing.Literal["deadline_option", b"deadline_option"]) -> typing.Literal["deadline_21_10_0", "deadline"] | None: ... @typing.overload - def WhichOneof(self, oneof_group: typing_extensions.Literal["expected_stream_position", b"expected_stream_position"]) -> typing_extensions.Literal["stream_position", "no_stream", "any", "stream_exists"] | None: ... + def WhichOneof(self, oneof_group: typing.Literal["expected_stream_position", b"expected_stream_position"]) -> typing.Literal["stream_position", "no_stream", "any", "stream_exists"] | None: ... - @typing_extensions.final + @typing.final class ProposedMessage(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor - @typing_extensions.final + @typing.final class MetadataEntry(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -715,18 +740,18 @@ class BatchAppendReq(google.protobuf.message.Message): key: builtins.str = ..., value: builtins.str = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["key", b"key", "value", b"value"]) -> None: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... ID_FIELD_NUMBER: builtins.int METADATA_FIELD_NUMBER: builtins.int CUSTOM_METADATA_FIELD_NUMBER: builtins.int DATA_FIELD_NUMBER: builtins.int + custom_metadata: builtins.bytes + data: builtins.bytes @property def id(self) -> shared_pb2.UUID: ... @property def metadata(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: ... - custom_metadata: builtins.bytes - data: builtins.bytes def __init__( self, *, @@ -735,20 +760,20 @@ class BatchAppendReq(google.protobuf.message.Message): custom_metadata: builtins.bytes = ..., data: builtins.bytes = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["id", b"id"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["custom_metadata", b"custom_metadata", "data", b"data", "id", b"id", "metadata", b"metadata"]) -> None: ... + def HasField(self, field_name: typing.Literal["id", b"id"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["custom_metadata", b"custom_metadata", "data", b"data", "id", b"id", "metadata", b"metadata"]) -> None: ... CORRELATION_ID_FIELD_NUMBER: builtins.int OPTIONS_FIELD_NUMBER: builtins.int PROPOSED_MESSAGES_FIELD_NUMBER: builtins.int IS_FINAL_FIELD_NUMBER: builtins.int + is_final: builtins.bool @property def correlation_id(self) -> shared_pb2.UUID: ... @property def options(self) -> global___BatchAppendReq.Options: ... @property def proposed_messages(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___BatchAppendReq.ProposedMessage]: ... - is_final: builtins.bool def __init__( self, *, @@ -757,16 +782,16 @@ class BatchAppendReq(google.protobuf.message.Message): proposed_messages: collections.abc.Iterable[global___BatchAppendReq.ProposedMessage] | None = ..., is_final: builtins.bool = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["correlation_id", b"correlation_id", "options", b"options"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["correlation_id", b"correlation_id", "is_final", b"is_final", "options", b"options", "proposed_messages", b"proposed_messages"]) -> None: ... + def HasField(self, field_name: typing.Literal["correlation_id", b"correlation_id", "options", b"options"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["correlation_id", b"correlation_id", "is_final", b"is_final", "options", b"options", "proposed_messages", b"proposed_messages"]) -> None: ... global___BatchAppendReq = BatchAppendReq -@typing_extensions.final +@typing.final class BatchAppendResp(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor - @typing_extensions.final + @typing.final class Success(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -789,12 +814,12 @@ class BatchAppendResp(google.protobuf.message.Message): position: shared_pb2.AllStreamPosition | None = ..., no_position: google.protobuf.empty_pb2.Empty | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["current_revision", b"current_revision", "current_revision_option", b"current_revision_option", "no_position", b"no_position", "no_stream", b"no_stream", "position", b"position", "position_option", b"position_option"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["current_revision", b"current_revision", "current_revision_option", b"current_revision_option", "no_position", b"no_position", "no_stream", b"no_stream", "position", b"position", "position_option", b"position_option"]) -> None: ... + def HasField(self, field_name: typing.Literal["current_revision", b"current_revision", "current_revision_option", b"current_revision_option", "no_position", b"no_position", "no_stream", b"no_stream", "position", b"position", "position_option", b"position_option"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["current_revision", b"current_revision", "current_revision_option", b"current_revision_option", "no_position", b"no_position", "no_stream", b"no_stream", "position", b"position", "position_option", b"position_option"]) -> None: ... @typing.overload - def WhichOneof(self, oneof_group: typing_extensions.Literal["current_revision_option", b"current_revision_option"]) -> typing_extensions.Literal["current_revision", "no_stream"] | None: ... + def WhichOneof(self, oneof_group: typing.Literal["current_revision_option", b"current_revision_option"]) -> typing.Literal["current_revision", "no_stream"] | None: ... @typing.overload - def WhichOneof(self, oneof_group: typing_extensions.Literal["position_option", b"position_option"]) -> typing_extensions.Literal["position", "no_position"] | None: ... + def WhichOneof(self, oneof_group: typing.Literal["position_option", b"position_option"]) -> typing.Literal["position", "no_position"] | None: ... CORRELATION_ID_FIELD_NUMBER: builtins.int ERROR_FIELD_NUMBER: builtins.int @@ -804,6 +829,7 @@ class BatchAppendResp(google.protobuf.message.Message): NO_STREAM_FIELD_NUMBER: builtins.int ANY_FIELD_NUMBER: builtins.int STREAM_EXISTS_FIELD_NUMBER: builtins.int + stream_position: builtins.int @property def correlation_id(self) -> shared_pb2.UUID: ... @property @@ -812,7 +838,6 @@ class BatchAppendResp(google.protobuf.message.Message): def success(self) -> global___BatchAppendResp.Success: ... @property def stream_identifier(self) -> shared_pb2.StreamIdentifier: ... - stream_position: builtins.int @property def no_stream(self) -> google.protobuf.empty_pb2.Empty: ... @property @@ -831,20 +856,20 @@ class BatchAppendResp(google.protobuf.message.Message): any: google.protobuf.empty_pb2.Empty | None = ..., stream_exists: google.protobuf.empty_pb2.Empty | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["any", b"any", "correlation_id", b"correlation_id", "error", b"error", "expected_stream_position", b"expected_stream_position", "no_stream", b"no_stream", "result", b"result", "stream_exists", b"stream_exists", "stream_identifier", b"stream_identifier", "stream_position", b"stream_position", "success", b"success"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["any", b"any", "correlation_id", b"correlation_id", "error", b"error", "expected_stream_position", b"expected_stream_position", "no_stream", b"no_stream", "result", b"result", "stream_exists", b"stream_exists", "stream_identifier", b"stream_identifier", "stream_position", b"stream_position", "success", b"success"]) -> None: ... + def HasField(self, field_name: typing.Literal["any", b"any", "correlation_id", b"correlation_id", "error", b"error", "expected_stream_position", b"expected_stream_position", "no_stream", b"no_stream", "result", b"result", "stream_exists", b"stream_exists", "stream_identifier", b"stream_identifier", "stream_position", b"stream_position", "success", b"success"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["any", b"any", "correlation_id", b"correlation_id", "error", b"error", "expected_stream_position", b"expected_stream_position", "no_stream", b"no_stream", "result", b"result", "stream_exists", b"stream_exists", "stream_identifier", b"stream_identifier", "stream_position", b"stream_position", "success", b"success"]) -> None: ... @typing.overload - def WhichOneof(self, oneof_group: typing_extensions.Literal["expected_stream_position", b"expected_stream_position"]) -> typing_extensions.Literal["stream_position", "no_stream", "any", "stream_exists"] | None: ... + def WhichOneof(self, oneof_group: typing.Literal["expected_stream_position", b"expected_stream_position"]) -> typing.Literal["stream_position", "no_stream", "any", "stream_exists"] | None: ... @typing.overload - def WhichOneof(self, oneof_group: typing_extensions.Literal["result", b"result"]) -> typing_extensions.Literal["error", "success"] | None: ... + def WhichOneof(self, oneof_group: typing.Literal["result", b"result"]) -> typing.Literal["error", "success"] | None: ... global___BatchAppendResp = BatchAppendResp -@typing_extensions.final +@typing.final class DeleteReq(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor - @typing_extensions.final + @typing.final class Options(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -853,9 +878,9 @@ class DeleteReq(google.protobuf.message.Message): NO_STREAM_FIELD_NUMBER: builtins.int ANY_FIELD_NUMBER: builtins.int STREAM_EXISTS_FIELD_NUMBER: builtins.int + revision: builtins.int @property def stream_identifier(self) -> shared_pb2.StreamIdentifier: ... - revision: builtins.int @property def no_stream(self) -> shared_pb2.Empty: ... @property @@ -871,9 +896,9 @@ class DeleteReq(google.protobuf.message.Message): any: shared_pb2.Empty | None = ..., stream_exists: shared_pb2.Empty | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["any", b"any", "expected_stream_revision", b"expected_stream_revision", "no_stream", b"no_stream", "revision", b"revision", "stream_exists", b"stream_exists", "stream_identifier", b"stream_identifier"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["any", b"any", "expected_stream_revision", b"expected_stream_revision", "no_stream", b"no_stream", "revision", b"revision", "stream_exists", b"stream_exists", "stream_identifier", b"stream_identifier"]) -> None: ... - def WhichOneof(self, oneof_group: typing_extensions.Literal["expected_stream_revision", b"expected_stream_revision"]) -> typing_extensions.Literal["revision", "no_stream", "any", "stream_exists"] | None: ... + def HasField(self, field_name: typing.Literal["any", b"any", "expected_stream_revision", b"expected_stream_revision", "no_stream", b"no_stream", "revision", b"revision", "stream_exists", b"stream_exists", "stream_identifier", b"stream_identifier"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["any", b"any", "expected_stream_revision", b"expected_stream_revision", "no_stream", b"no_stream", "revision", b"revision", "stream_exists", b"stream_exists", "stream_identifier", b"stream_identifier"]) -> None: ... + def WhichOneof(self, oneof_group: typing.Literal["expected_stream_revision", b"expected_stream_revision"]) -> typing.Literal["revision", "no_stream", "any", "stream_exists"] | None: ... OPTIONS_FIELD_NUMBER: builtins.int @property @@ -883,16 +908,16 @@ class DeleteReq(google.protobuf.message.Message): *, options: global___DeleteReq.Options | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["options", b"options"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["options", b"options"]) -> None: ... + def HasField(self, field_name: typing.Literal["options", b"options"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["options", b"options"]) -> None: ... global___DeleteReq = DeleteReq -@typing_extensions.final +@typing.final class DeleteResp(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor - @typing_extensions.final + @typing.final class Position(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -906,7 +931,7 @@ class DeleteResp(google.protobuf.message.Message): commit_position: builtins.int = ..., prepare_position: builtins.int = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["commit_position", b"commit_position", "prepare_position", b"prepare_position"]) -> None: ... + def ClearField(self, field_name: typing.Literal["commit_position", b"commit_position", "prepare_position", b"prepare_position"]) -> None: ... POSITION_FIELD_NUMBER: builtins.int NO_POSITION_FIELD_NUMBER: builtins.int @@ -920,17 +945,17 @@ class DeleteResp(google.protobuf.message.Message): position: global___DeleteResp.Position | None = ..., no_position: shared_pb2.Empty | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["no_position", b"no_position", "position", b"position", "position_option", b"position_option"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["no_position", b"no_position", "position", b"position", "position_option", b"position_option"]) -> None: ... - def WhichOneof(self, oneof_group: typing_extensions.Literal["position_option", b"position_option"]) -> typing_extensions.Literal["position", "no_position"] | None: ... + def HasField(self, field_name: typing.Literal["no_position", b"no_position", "position", b"position", "position_option", b"position_option"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["no_position", b"no_position", "position", b"position", "position_option", b"position_option"]) -> None: ... + def WhichOneof(self, oneof_group: typing.Literal["position_option", b"position_option"]) -> typing.Literal["position", "no_position"] | None: ... global___DeleteResp = DeleteResp -@typing_extensions.final +@typing.final class TombstoneReq(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor - @typing_extensions.final + @typing.final class Options(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -939,9 +964,9 @@ class TombstoneReq(google.protobuf.message.Message): NO_STREAM_FIELD_NUMBER: builtins.int ANY_FIELD_NUMBER: builtins.int STREAM_EXISTS_FIELD_NUMBER: builtins.int + revision: builtins.int @property def stream_identifier(self) -> shared_pb2.StreamIdentifier: ... - revision: builtins.int @property def no_stream(self) -> shared_pb2.Empty: ... @property @@ -957,9 +982,9 @@ class TombstoneReq(google.protobuf.message.Message): any: shared_pb2.Empty | None = ..., stream_exists: shared_pb2.Empty | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["any", b"any", "expected_stream_revision", b"expected_stream_revision", "no_stream", b"no_stream", "revision", b"revision", "stream_exists", b"stream_exists", "stream_identifier", b"stream_identifier"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["any", b"any", "expected_stream_revision", b"expected_stream_revision", "no_stream", b"no_stream", "revision", b"revision", "stream_exists", b"stream_exists", "stream_identifier", b"stream_identifier"]) -> None: ... - def WhichOneof(self, oneof_group: typing_extensions.Literal["expected_stream_revision", b"expected_stream_revision"]) -> typing_extensions.Literal["revision", "no_stream", "any", "stream_exists"] | None: ... + def HasField(self, field_name: typing.Literal["any", b"any", "expected_stream_revision", b"expected_stream_revision", "no_stream", b"no_stream", "revision", b"revision", "stream_exists", b"stream_exists", "stream_identifier", b"stream_identifier"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["any", b"any", "expected_stream_revision", b"expected_stream_revision", "no_stream", b"no_stream", "revision", b"revision", "stream_exists", b"stream_exists", "stream_identifier", b"stream_identifier"]) -> None: ... + def WhichOneof(self, oneof_group: typing.Literal["expected_stream_revision", b"expected_stream_revision"]) -> typing.Literal["revision", "no_stream", "any", "stream_exists"] | None: ... OPTIONS_FIELD_NUMBER: builtins.int @property @@ -969,16 +994,16 @@ class TombstoneReq(google.protobuf.message.Message): *, options: global___TombstoneReq.Options | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["options", b"options"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["options", b"options"]) -> None: ... + def HasField(self, field_name: typing.Literal["options", b"options"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["options", b"options"]) -> None: ... global___TombstoneReq = TombstoneReq -@typing_extensions.final +@typing.final class TombstoneResp(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor - @typing_extensions.final + @typing.final class Position(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -992,7 +1017,7 @@ class TombstoneResp(google.protobuf.message.Message): commit_position: builtins.int = ..., prepare_position: builtins.int = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["commit_position", b"commit_position", "prepare_position", b"prepare_position"]) -> None: ... + def ClearField(self, field_name: typing.Literal["commit_position", b"commit_position", "prepare_position", b"prepare_position"]) -> None: ... POSITION_FIELD_NUMBER: builtins.int NO_POSITION_FIELD_NUMBER: builtins.int @@ -1006,8 +1031,8 @@ class TombstoneResp(google.protobuf.message.Message): position: global___TombstoneResp.Position | None = ..., no_position: shared_pb2.Empty | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["no_position", b"no_position", "position", b"position", "position_option", b"position_option"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["no_position", b"no_position", "position", b"position", "position_option", b"position_option"]) -> None: ... - def WhichOneof(self, oneof_group: typing_extensions.Literal["position_option", b"position_option"]) -> typing_extensions.Literal["position", "no_position"] | None: ... + def HasField(self, field_name: typing.Literal["no_position", b"no_position", "position", b"position", "position_option", b"position_option"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["no_position", b"no_position", "position", b"position", "position_option", b"position_option"]) -> None: ... + def WhichOneof(self, oneof_group: typing.Literal["position_option", b"position_option"]) -> typing.Literal["position", "no_position"] | None: ... global___TombstoneResp = TombstoneResp diff --git a/esdb/generated/users_pb2.py b/esdb/generated/users_pb2.py index b86d625..03f363f 100644 --- a/esdb/generated/users_pb2.py +++ b/esdb/generated/users_pb2.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: users.proto -# Protobuf Python Version: 4.25.0 +# Protobuf Python Version: 4.25.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool diff --git a/esdb/generated/users_pb2.pyi b/esdb/generated/users_pb2.pyi index 5a7ec95..dc379dc 100644 --- a/esdb/generated/users_pb2.pyi +++ b/esdb/generated/users_pb2.pyi @@ -2,25 +2,21 @@ @generated by mypy-protobuf. Do not edit manually! isort:skip_file """ + import builtins import collections.abc import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.message -import sys - -if sys.version_info >= (3, 8): - import typing as typing_extensions -else: - import typing_extensions +import typing DESCRIPTOR: google.protobuf.descriptor.FileDescriptor -@typing_extensions.final +@typing.final class CreateReq(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor - @typing_extensions.final + @typing.final class Options(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -41,7 +37,7 @@ class CreateReq(google.protobuf.message.Message): full_name: builtins.str = ..., groups: collections.abc.Iterable[builtins.str] | None = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["full_name", b"full_name", "groups", b"groups", "login_name", b"login_name", "password", b"password"]) -> None: ... + def ClearField(self, field_name: typing.Literal["full_name", b"full_name", "groups", b"groups", "login_name", b"login_name", "password", b"password"]) -> None: ... OPTIONS_FIELD_NUMBER: builtins.int @property @@ -51,12 +47,12 @@ class CreateReq(google.protobuf.message.Message): *, options: global___CreateReq.Options | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["options", b"options"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["options", b"options"]) -> None: ... + def HasField(self, field_name: typing.Literal["options", b"options"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["options", b"options"]) -> None: ... global___CreateReq = CreateReq -@typing_extensions.final +@typing.final class CreateResp(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -66,11 +62,11 @@ class CreateResp(google.protobuf.message.Message): global___CreateResp = CreateResp -@typing_extensions.final +@typing.final class UpdateReq(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor - @typing_extensions.final + @typing.final class Options(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -91,7 +87,7 @@ class UpdateReq(google.protobuf.message.Message): full_name: builtins.str = ..., groups: collections.abc.Iterable[builtins.str] | None = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["full_name", b"full_name", "groups", b"groups", "login_name", b"login_name", "password", b"password"]) -> None: ... + def ClearField(self, field_name: typing.Literal["full_name", b"full_name", "groups", b"groups", "login_name", b"login_name", "password", b"password"]) -> None: ... OPTIONS_FIELD_NUMBER: builtins.int @property @@ -101,12 +97,12 @@ class UpdateReq(google.protobuf.message.Message): *, options: global___UpdateReq.Options | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["options", b"options"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["options", b"options"]) -> None: ... + def HasField(self, field_name: typing.Literal["options", b"options"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["options", b"options"]) -> None: ... global___UpdateReq = UpdateReq -@typing_extensions.final +@typing.final class UpdateResp(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -116,11 +112,11 @@ class UpdateResp(google.protobuf.message.Message): global___UpdateResp = UpdateResp -@typing_extensions.final +@typing.final class DeleteReq(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor - @typing_extensions.final + @typing.final class Options(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -131,7 +127,7 @@ class DeleteReq(google.protobuf.message.Message): *, login_name: builtins.str = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["login_name", b"login_name"]) -> None: ... + def ClearField(self, field_name: typing.Literal["login_name", b"login_name"]) -> None: ... OPTIONS_FIELD_NUMBER: builtins.int @property @@ -141,12 +137,12 @@ class DeleteReq(google.protobuf.message.Message): *, options: global___DeleteReq.Options | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["options", b"options"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["options", b"options"]) -> None: ... + def HasField(self, field_name: typing.Literal["options", b"options"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["options", b"options"]) -> None: ... global___DeleteReq = DeleteReq -@typing_extensions.final +@typing.final class DeleteResp(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -156,11 +152,11 @@ class DeleteResp(google.protobuf.message.Message): global___DeleteResp = DeleteResp -@typing_extensions.final +@typing.final class EnableReq(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor - @typing_extensions.final + @typing.final class Options(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -171,7 +167,7 @@ class EnableReq(google.protobuf.message.Message): *, login_name: builtins.str = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["login_name", b"login_name"]) -> None: ... + def ClearField(self, field_name: typing.Literal["login_name", b"login_name"]) -> None: ... OPTIONS_FIELD_NUMBER: builtins.int @property @@ -181,12 +177,12 @@ class EnableReq(google.protobuf.message.Message): *, options: global___EnableReq.Options | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["options", b"options"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["options", b"options"]) -> None: ... + def HasField(self, field_name: typing.Literal["options", b"options"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["options", b"options"]) -> None: ... global___EnableReq = EnableReq -@typing_extensions.final +@typing.final class EnableResp(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -196,11 +192,11 @@ class EnableResp(google.protobuf.message.Message): global___EnableResp = EnableResp -@typing_extensions.final +@typing.final class DisableReq(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor - @typing_extensions.final + @typing.final class Options(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -211,7 +207,7 @@ class DisableReq(google.protobuf.message.Message): *, login_name: builtins.str = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["login_name", b"login_name"]) -> None: ... + def ClearField(self, field_name: typing.Literal["login_name", b"login_name"]) -> None: ... OPTIONS_FIELD_NUMBER: builtins.int @property @@ -221,12 +217,12 @@ class DisableReq(google.protobuf.message.Message): *, options: global___DisableReq.Options | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["options", b"options"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["options", b"options"]) -> None: ... + def HasField(self, field_name: typing.Literal["options", b"options"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["options", b"options"]) -> None: ... global___DisableReq = DisableReq -@typing_extensions.final +@typing.final class DisableResp(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -236,11 +232,11 @@ class DisableResp(google.protobuf.message.Message): global___DisableResp = DisableResp -@typing_extensions.final +@typing.final class DetailsReq(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor - @typing_extensions.final + @typing.final class Options(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -251,7 +247,7 @@ class DetailsReq(google.protobuf.message.Message): *, login_name: builtins.str = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["login_name", b"login_name"]) -> None: ... + def ClearField(self, field_name: typing.Literal["login_name", b"login_name"]) -> None: ... OPTIONS_FIELD_NUMBER: builtins.int @property @@ -261,20 +257,20 @@ class DetailsReq(google.protobuf.message.Message): *, options: global___DetailsReq.Options | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["options", b"options"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["options", b"options"]) -> None: ... + def HasField(self, field_name: typing.Literal["options", b"options"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["options", b"options"]) -> None: ... global___DetailsReq = DetailsReq -@typing_extensions.final +@typing.final class DetailsResp(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor - @typing_extensions.final + @typing.final class UserDetails(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor - @typing_extensions.final + @typing.final class DateTime(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -285,7 +281,7 @@ class DetailsResp(google.protobuf.message.Message): *, ticks_since_epoch: builtins.int = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["ticks_since_epoch", b"ticks_since_epoch"]) -> None: ... + def ClearField(self, field_name: typing.Literal["ticks_since_epoch", b"ticks_since_epoch"]) -> None: ... LOGIN_NAME_FIELD_NUMBER: builtins.int FULL_NAME_FIELD_NUMBER: builtins.int @@ -294,11 +290,11 @@ class DetailsResp(google.protobuf.message.Message): DISABLED_FIELD_NUMBER: builtins.int login_name: builtins.str full_name: builtins.str + disabled: builtins.bool @property def groups(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ... @property def last_updated(self) -> global___DetailsResp.UserDetails.DateTime: ... - disabled: builtins.bool def __init__( self, *, @@ -308,8 +304,8 @@ class DetailsResp(google.protobuf.message.Message): last_updated: global___DetailsResp.UserDetails.DateTime | None = ..., disabled: builtins.bool = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["last_updated", b"last_updated"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["disabled", b"disabled", "full_name", b"full_name", "groups", b"groups", "last_updated", b"last_updated", "login_name", b"login_name"]) -> None: ... + def HasField(self, field_name: typing.Literal["last_updated", b"last_updated"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["disabled", b"disabled", "full_name", b"full_name", "groups", b"groups", "last_updated", b"last_updated", "login_name", b"login_name"]) -> None: ... USER_DETAILS_FIELD_NUMBER: builtins.int @property @@ -319,16 +315,16 @@ class DetailsResp(google.protobuf.message.Message): *, user_details: global___DetailsResp.UserDetails | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["user_details", b"user_details"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["user_details", b"user_details"]) -> None: ... + def HasField(self, field_name: typing.Literal["user_details", b"user_details"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["user_details", b"user_details"]) -> None: ... global___DetailsResp = DetailsResp -@typing_extensions.final +@typing.final class ChangePasswordReq(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor - @typing_extensions.final + @typing.final class Options(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -345,7 +341,7 @@ class ChangePasswordReq(google.protobuf.message.Message): current_password: builtins.str = ..., new_password: builtins.str = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["current_password", b"current_password", "login_name", b"login_name", "new_password", b"new_password"]) -> None: ... + def ClearField(self, field_name: typing.Literal["current_password", b"current_password", "login_name", b"login_name", "new_password", b"new_password"]) -> None: ... OPTIONS_FIELD_NUMBER: builtins.int @property @@ -355,12 +351,12 @@ class ChangePasswordReq(google.protobuf.message.Message): *, options: global___ChangePasswordReq.Options | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["options", b"options"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["options", b"options"]) -> None: ... + def HasField(self, field_name: typing.Literal["options", b"options"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["options", b"options"]) -> None: ... global___ChangePasswordReq = ChangePasswordReq -@typing_extensions.final +@typing.final class ChangePasswordResp(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -370,11 +366,11 @@ class ChangePasswordResp(google.protobuf.message.Message): global___ChangePasswordResp = ChangePasswordResp -@typing_extensions.final +@typing.final class ResetPasswordReq(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor - @typing_extensions.final + @typing.final class Options(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -388,7 +384,7 @@ class ResetPasswordReq(google.protobuf.message.Message): login_name: builtins.str = ..., new_password: builtins.str = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["login_name", b"login_name", "new_password", b"new_password"]) -> None: ... + def ClearField(self, field_name: typing.Literal["login_name", b"login_name", "new_password", b"new_password"]) -> None: ... OPTIONS_FIELD_NUMBER: builtins.int @property @@ -398,12 +394,12 @@ class ResetPasswordReq(google.protobuf.message.Message): *, options: global___ResetPasswordReq.Options | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["options", b"options"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["options", b"options"]) -> None: ... + def HasField(self, field_name: typing.Literal["options", b"options"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["options", b"options"]) -> None: ... global___ResetPasswordReq = ResetPasswordReq -@typing_extensions.final +@typing.final class ResetPasswordResp(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor diff --git a/poetry.lock b/poetry.lock index 078144c..c6a6194 100644 --- a/poetry.lock +++ b/poetry.lock @@ -73,63 +73,63 @@ files = [ [[package]] name = "coverage" -version = "7.4.1" +version = "7.4.4" description = "Code coverage measurement for Python" optional = false python-versions = ">=3.8" files = [ - {file = "coverage-7.4.1-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:077d366e724f24fc02dbfe9d946534357fda71af9764ff99d73c3c596001bbd7"}, - {file = "coverage-7.4.1-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:0193657651f5399d433c92f8ae264aff31fc1d066deee4b831549526433f3f61"}, - {file = "coverage-7.4.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:d17bbc946f52ca67adf72a5ee783cd7cd3477f8f8796f59b4974a9b59cacc9ee"}, - {file = "coverage-7.4.1-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:a3277f5fa7483c927fe3a7b017b39351610265308f5267ac6d4c2b64cc1d8d25"}, - {file = "coverage-7.4.1-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:6dceb61d40cbfcf45f51e59933c784a50846dc03211054bd76b421a713dcdf19"}, - {file = "coverage-7.4.1-cp310-cp310-musllinux_1_1_aarch64.whl", hash = "sha256:6008adeca04a445ea6ef31b2cbaf1d01d02986047606f7da266629afee982630"}, - {file = "coverage-7.4.1-cp310-cp310-musllinux_1_1_i686.whl", hash = "sha256:c61f66d93d712f6e03369b6a7769233bfda880b12f417eefdd4f16d1deb2fc4c"}, - {file = "coverage-7.4.1-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:b9bb62fac84d5f2ff523304e59e5c439955fb3b7f44e3d7b2085184db74d733b"}, - {file = "coverage-7.4.1-cp310-cp310-win32.whl", hash = "sha256:f86f368e1c7ce897bf2457b9eb61169a44e2ef797099fb5728482b8d69f3f016"}, - {file = "coverage-7.4.1-cp310-cp310-win_amd64.whl", hash = "sha256:869b5046d41abfea3e381dd143407b0d29b8282a904a19cb908fa24d090cc018"}, - {file = "coverage-7.4.1-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:b8ffb498a83d7e0305968289441914154fb0ef5d8b3157df02a90c6695978295"}, - {file = "coverage-7.4.1-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:3cacfaefe6089d477264001f90f55b7881ba615953414999c46cc9713ff93c8c"}, - {file = "coverage-7.4.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:5d6850e6e36e332d5511a48a251790ddc545e16e8beaf046c03985c69ccb2676"}, - {file = "coverage-7.4.1-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:18e961aa13b6d47f758cc5879383d27b5b3f3dcd9ce8cdbfdc2571fe86feb4dd"}, - {file = "coverage-7.4.1-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:dfd1e1b9f0898817babf840b77ce9fe655ecbe8b1b327983df485b30df8cc011"}, - {file = "coverage-7.4.1-cp311-cp311-musllinux_1_1_aarch64.whl", hash = "sha256:6b00e21f86598b6330f0019b40fb397e705135040dbedc2ca9a93c7441178e74"}, - {file = "coverage-7.4.1-cp311-cp311-musllinux_1_1_i686.whl", hash = "sha256:536d609c6963c50055bab766d9951b6c394759190d03311f3e9fcf194ca909e1"}, - {file = "coverage-7.4.1-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:7ac8f8eb153724f84885a1374999b7e45734bf93a87d8df1e7ce2146860edef6"}, - {file = "coverage-7.4.1-cp311-cp311-win32.whl", hash = "sha256:f3771b23bb3675a06f5d885c3630b1d01ea6cac9e84a01aaf5508706dba546c5"}, - {file = "coverage-7.4.1-cp311-cp311-win_amd64.whl", hash = "sha256:9d2f9d4cc2a53b38cabc2d6d80f7f9b7e3da26b2f53d48f05876fef7956b6968"}, - {file = "coverage-7.4.1-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:f68ef3660677e6624c8cace943e4765545f8191313a07288a53d3da188bd8581"}, - {file = "coverage-7.4.1-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:23b27b8a698e749b61809fb637eb98ebf0e505710ec46a8aa6f1be7dc0dc43a6"}, - {file = "coverage-7.4.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:3e3424c554391dc9ef4a92ad28665756566a28fecf47308f91841f6c49288e66"}, - {file = "coverage-7.4.1-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:e0860a348bf7004c812c8368d1fc7f77fe8e4c095d661a579196a9533778e156"}, - {file = "coverage-7.4.1-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:fe558371c1bdf3b8fa03e097c523fb9645b8730399c14fe7721ee9c9e2a545d3"}, - {file = "coverage-7.4.1-cp312-cp312-musllinux_1_1_aarch64.whl", hash = "sha256:3468cc8720402af37b6c6e7e2a9cdb9f6c16c728638a2ebc768ba1ef6f26c3a1"}, - {file = "coverage-7.4.1-cp312-cp312-musllinux_1_1_i686.whl", hash = "sha256:02f2edb575d62172aa28fe00efe821ae31f25dc3d589055b3fb64d51e52e4ab1"}, - {file = "coverage-7.4.1-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:ca6e61dc52f601d1d224526360cdeab0d0712ec104a2ce6cc5ccef6ed9a233bc"}, - {file = "coverage-7.4.1-cp312-cp312-win32.whl", hash = "sha256:ca7b26a5e456a843b9b6683eada193fc1f65c761b3a473941efe5a291f604c74"}, - {file = "coverage-7.4.1-cp312-cp312-win_amd64.whl", hash = "sha256:85ccc5fa54c2ed64bd91ed3b4a627b9cce04646a659512a051fa82a92c04a448"}, - {file = "coverage-7.4.1-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:8bdb0285a0202888d19ec6b6d23d5990410decb932b709f2b0dfe216d031d218"}, - {file = "coverage-7.4.1-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:918440dea04521f499721c039863ef95433314b1db00ff826a02580c1f503e45"}, - {file = "coverage-7.4.1-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:379d4c7abad5afbe9d88cc31ea8ca262296480a86af945b08214eb1a556a3e4d"}, - {file = "coverage-7.4.1-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:b094116f0b6155e36a304ff912f89bbb5067157aff5f94060ff20bbabdc8da06"}, - {file = "coverage-7.4.1-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:f2f5968608b1fe2a1d00d01ad1017ee27efd99b3437e08b83ded9b7af3f6f766"}, - {file = "coverage-7.4.1-cp38-cp38-musllinux_1_1_aarch64.whl", hash = "sha256:10e88e7f41e6197ea0429ae18f21ff521d4f4490aa33048f6c6f94c6045a6a75"}, - {file = "coverage-7.4.1-cp38-cp38-musllinux_1_1_i686.whl", hash = "sha256:a4a3907011d39dbc3e37bdc5df0a8c93853c369039b59efa33a7b6669de04c60"}, - {file = "coverage-7.4.1-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:6d224f0c4c9c98290a6990259073f496fcec1b5cc613eecbd22786d398ded3ad"}, - {file = "coverage-7.4.1-cp38-cp38-win32.whl", hash = "sha256:23f5881362dcb0e1a92b84b3c2809bdc90db892332daab81ad8f642d8ed55042"}, - {file = "coverage-7.4.1-cp38-cp38-win_amd64.whl", hash = "sha256:a07f61fc452c43cd5328b392e52555f7d1952400a1ad09086c4a8addccbd138d"}, - {file = "coverage-7.4.1-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:8e738a492b6221f8dcf281b67129510835461132b03024830ac0e554311a5c54"}, - {file = "coverage-7.4.1-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:46342fed0fff72efcda77040b14728049200cbba1279e0bf1188f1f2078c1d70"}, - {file = "coverage-7.4.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:9641e21670c68c7e57d2053ddf6c443e4f0a6e18e547e86af3fad0795414a628"}, - {file = "coverage-7.4.1-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:aeb2c2688ed93b027eb0d26aa188ada34acb22dceea256d76390eea135083950"}, - {file = "coverage-7.4.1-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:d12c923757de24e4e2110cf8832d83a886a4cf215c6e61ed506006872b43a6d1"}, - {file = "coverage-7.4.1-cp39-cp39-musllinux_1_1_aarch64.whl", hash = "sha256:0491275c3b9971cdbd28a4595c2cb5838f08036bca31765bad5e17edf900b2c7"}, - {file = "coverage-7.4.1-cp39-cp39-musllinux_1_1_i686.whl", hash = "sha256:8dfc5e195bbef80aabd81596ef52a1277ee7143fe419efc3c4d8ba2754671756"}, - {file = "coverage-7.4.1-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:1a78b656a4d12b0490ca72651fe4d9f5e07e3c6461063a9b6265ee45eb2bdd35"}, - {file = "coverage-7.4.1-cp39-cp39-win32.whl", hash = "sha256:f90515974b39f4dea2f27c0959688621b46d96d5a626cf9c53dbc653a895c05c"}, - {file = "coverage-7.4.1-cp39-cp39-win_amd64.whl", hash = "sha256:64e723ca82a84053dd7bfcc986bdb34af8d9da83c521c19d6b472bc6880e191a"}, - {file = "coverage-7.4.1-pp38.pp39.pp310-none-any.whl", hash = "sha256:32a8d985462e37cfdab611a6f95b09d7c091d07668fdc26e47a725ee575fe166"}, - {file = "coverage-7.4.1.tar.gz", hash = "sha256:1ed4b95480952b1a26d863e546fa5094564aa0065e1e5f0d4d0041f293251d04"}, + {file = "coverage-7.4.4-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:e0be5efd5127542ef31f165de269f77560d6cdef525fffa446de6f7e9186cfb2"}, + {file = "coverage-7.4.4-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:ccd341521be3d1b3daeb41960ae94a5e87abe2f46f17224ba5d6f2b8398016cf"}, + {file = "coverage-7.4.4-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:09fa497a8ab37784fbb20ab699c246053ac294d13fc7eb40ec007a5043ec91f8"}, + {file = "coverage-7.4.4-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:b1a93009cb80730c9bca5d6d4665494b725b6e8e157c1cb7f2db5b4b122ea562"}, + {file = "coverage-7.4.4-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:690db6517f09336559dc0b5f55342df62370a48f5469fabf502db2c6d1cffcd2"}, + {file = "coverage-7.4.4-cp310-cp310-musllinux_1_1_aarch64.whl", hash = "sha256:09c3255458533cb76ef55da8cc49ffab9e33f083739c8bd4f58e79fecfe288f7"}, + {file = "coverage-7.4.4-cp310-cp310-musllinux_1_1_i686.whl", hash = "sha256:8ce1415194b4a6bd0cdcc3a1dfbf58b63f910dcb7330fe15bdff542c56949f87"}, + {file = "coverage-7.4.4-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:b91cbc4b195444e7e258ba27ac33769c41b94967919f10037e6355e998af255c"}, + {file = "coverage-7.4.4-cp310-cp310-win32.whl", hash = "sha256:598825b51b81c808cb6f078dcb972f96af96b078faa47af7dfcdf282835baa8d"}, + {file = "coverage-7.4.4-cp310-cp310-win_amd64.whl", hash = "sha256:09ef9199ed6653989ebbcaacc9b62b514bb63ea2f90256e71fea3ed74bd8ff6f"}, + {file = "coverage-7.4.4-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:0f9f50e7ef2a71e2fae92774c99170eb8304e3fdf9c8c3c7ae9bab3e7229c5cf"}, + {file = "coverage-7.4.4-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:623512f8ba53c422fcfb2ce68362c97945095b864cda94a92edbaf5994201083"}, + {file = "coverage-7.4.4-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:0513b9508b93da4e1716744ef6ebc507aff016ba115ffe8ecff744d1322a7b63"}, + {file = "coverage-7.4.4-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:40209e141059b9370a2657c9b15607815359ab3ef9918f0196b6fccce8d3230f"}, + {file = "coverage-7.4.4-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:8a2b2b78c78293782fd3767d53e6474582f62443d0504b1554370bde86cc8227"}, + {file = "coverage-7.4.4-cp311-cp311-musllinux_1_1_aarch64.whl", hash = "sha256:73bfb9c09951125d06ee473bed216e2c3742f530fc5acc1383883125de76d9cd"}, + {file = "coverage-7.4.4-cp311-cp311-musllinux_1_1_i686.whl", hash = "sha256:1f384c3cc76aeedce208643697fb3e8437604b512255de6d18dae3f27655a384"}, + {file = "coverage-7.4.4-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:54eb8d1bf7cacfbf2a3186019bcf01d11c666bd495ed18717162f7eb1e9dd00b"}, + {file = "coverage-7.4.4-cp311-cp311-win32.whl", hash = "sha256:cac99918c7bba15302a2d81f0312c08054a3359eaa1929c7e4b26ebe41e9b286"}, + {file = "coverage-7.4.4-cp311-cp311-win_amd64.whl", hash = "sha256:b14706df8b2de49869ae03a5ccbc211f4041750cd4a66f698df89d44f4bd30ec"}, + {file = "coverage-7.4.4-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:201bef2eea65e0e9c56343115ba3814e896afe6d36ffd37bab783261db430f76"}, + {file = "coverage-7.4.4-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:41c9c5f3de16b903b610d09650e5e27adbfa7f500302718c9ffd1c12cf9d6818"}, + {file = "coverage-7.4.4-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:d898fe162d26929b5960e4e138651f7427048e72c853607f2b200909794ed978"}, + {file = "coverage-7.4.4-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:3ea79bb50e805cd6ac058dfa3b5c8f6c040cb87fe83de10845857f5535d1db70"}, + {file = "coverage-7.4.4-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:ce4b94265ca988c3f8e479e741693d143026632672e3ff924f25fab50518dd51"}, + {file = "coverage-7.4.4-cp312-cp312-musllinux_1_1_aarch64.whl", hash = "sha256:00838a35b882694afda09f85e469c96367daa3f3f2b097d846a7216993d37f4c"}, + {file = "coverage-7.4.4-cp312-cp312-musllinux_1_1_i686.whl", hash = "sha256:fdfafb32984684eb03c2d83e1e51f64f0906b11e64482df3c5db936ce3839d48"}, + {file = "coverage-7.4.4-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:69eb372f7e2ece89f14751fbcbe470295d73ed41ecd37ca36ed2eb47512a6ab9"}, + {file = "coverage-7.4.4-cp312-cp312-win32.whl", hash = "sha256:137eb07173141545e07403cca94ab625cc1cc6bc4c1e97b6e3846270e7e1fea0"}, + {file = "coverage-7.4.4-cp312-cp312-win_amd64.whl", hash = "sha256:d71eec7d83298f1af3326ce0ff1d0ea83c7cb98f72b577097f9083b20bdaf05e"}, + {file = "coverage-7.4.4-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:d5ae728ff3b5401cc320d792866987e7e7e880e6ebd24433b70a33b643bb0384"}, + {file = "coverage-7.4.4-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:cc4f1358cb0c78edef3ed237ef2c86056206bb8d9140e73b6b89fbcfcbdd40e1"}, + {file = "coverage-7.4.4-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:8130a2aa2acb8788e0b56938786c33c7c98562697bf9f4c7d6e8e5e3a0501e4a"}, + {file = "coverage-7.4.4-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:cf271892d13e43bc2b51e6908ec9a6a5094a4df1d8af0bfc360088ee6c684409"}, + {file = "coverage-7.4.4-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:a4cdc86d54b5da0df6d3d3a2f0b710949286094c3a6700c21e9015932b81447e"}, + {file = "coverage-7.4.4-cp38-cp38-musllinux_1_1_aarch64.whl", hash = "sha256:ae71e7ddb7a413dd60052e90528f2f65270aad4b509563af6d03d53e979feafd"}, + {file = "coverage-7.4.4-cp38-cp38-musllinux_1_1_i686.whl", hash = "sha256:38dd60d7bf242c4ed5b38e094baf6401faa114fc09e9e6632374388a404f98e7"}, + {file = "coverage-7.4.4-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:aa5b1c1bfc28384f1f53b69a023d789f72b2e0ab1b3787aae16992a7ca21056c"}, + {file = "coverage-7.4.4-cp38-cp38-win32.whl", hash = "sha256:dfa8fe35a0bb90382837b238fff375de15f0dcdb9ae68ff85f7a63649c98527e"}, + {file = "coverage-7.4.4-cp38-cp38-win_amd64.whl", hash = "sha256:b2991665420a803495e0b90a79233c1433d6ed77ef282e8e152a324bbbc5e0c8"}, + {file = "coverage-7.4.4-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:3b799445b9f7ee8bf299cfaed6f5b226c0037b74886a4e11515e569b36fe310d"}, + {file = "coverage-7.4.4-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:b4d33f418f46362995f1e9d4f3a35a1b6322cb959c31d88ae56b0298e1c22357"}, + {file = "coverage-7.4.4-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:aadacf9a2f407a4688d700e4ebab33a7e2e408f2ca04dbf4aef17585389eff3e"}, + {file = "coverage-7.4.4-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:7c95949560050d04d46b919301826525597f07b33beba6187d04fa64d47ac82e"}, + {file = "coverage-7.4.4-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:ff7687ca3d7028d8a5f0ebae95a6e4827c5616b31a4ee1192bdfde697db110d4"}, + {file = "coverage-7.4.4-cp39-cp39-musllinux_1_1_aarch64.whl", hash = "sha256:5fc1de20b2d4a061b3df27ab9b7c7111e9a710f10dc2b84d33a4ab25065994ec"}, + {file = "coverage-7.4.4-cp39-cp39-musllinux_1_1_i686.whl", hash = "sha256:c74880fc64d4958159fbd537a091d2a585448a8f8508bf248d72112723974cbd"}, + {file = "coverage-7.4.4-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:742a76a12aa45b44d236815d282b03cfb1de3b4323f3e4ec933acfae08e54ade"}, + {file = "coverage-7.4.4-cp39-cp39-win32.whl", hash = "sha256:d89d7b2974cae412400e88f35d86af72208e1ede1a541954af5d944a8ba46c57"}, + {file = "coverage-7.4.4-cp39-cp39-win_amd64.whl", hash = "sha256:9ca28a302acb19b6af89e90f33ee3e1906961f94b54ea37de6737b7ca9d8827c"}, + {file = "coverage-7.4.4-pp38.pp39.pp310-none-any.whl", hash = "sha256:b2c5edc4ac10a7ef6605a966c58929ec6c1bd0917fb8c15cb3363f65aa40e677"}, + {file = "coverage-7.4.4.tar.gz", hash = "sha256:c901df83d097649e257e803be22592aedfd5182f07b3cc87d640bbb9afd50f49"}, ] [package.dependencies] @@ -400,13 +400,13 @@ types-protobuf = ">=4.24" [[package]] name = "packaging" -version = "23.2" +version = "24.0" description = "Core utilities for Python packages" optional = false python-versions = ">=3.7" files = [ - {file = "packaging-23.2-py3-none-any.whl", hash = "sha256:8c491190033a9af7e1d931d0b5dacc2ef47509b34dd0de67ed209b5203fc88c7"}, - {file = "packaging-23.2.tar.gz", hash = "sha256:048fb0e9405036518eaaf48a55953c750c11e1a1b68e0dd1a9d62ed0c092cfc5"}, + {file = "packaging-24.0-py3-none-any.whl", hash = "sha256:2ddfb553fdf02fb784c234c7ba6ccc288296ceabec964ad2eae3777778130bc5"}, + {file = "packaging-24.0.tar.gz", hash = "sha256:eb82c5e3e56209074766e6885bb04b8c38a0c015d0a30036ebe7ece34c9989e9"}, ] [[package]] @@ -556,19 +556,19 @@ files = [ [[package]] name = "setuptools" -version = "69.0.3" +version = "69.5.1" description = "Easily download, build, install, upgrade, and uninstall Python packages" optional = false python-versions = ">=3.8" files = [ - {file = "setuptools-69.0.3-py3-none-any.whl", hash = "sha256:385eb4edd9c9d5c17540511303e39a147ce2fc04bc55289c322b9e5904fe2c05"}, - {file = "setuptools-69.0.3.tar.gz", hash = "sha256:be1af57fc409f93647f2e8e4573a142ed38724b8cdd389706a867bb4efcf1e78"}, + {file = "setuptools-69.5.1-py3-none-any.whl", hash = "sha256:c636ac361bc47580504644275c9ad802c50415c7522212252c033bd15f301f32"}, + {file = "setuptools-69.5.1.tar.gz", hash = "sha256:6c1fccdac05a97e598fb0ae3bbed5904ccb317337a51139dcd51453611bbb987"}, ] [package.extras] -docs = ["furo", "jaraco.packaging (>=9.3)", "jaraco.tidelift (>=1.4)", "pygments-github-lexers (==0.0.5)", "rst.linker (>=1.9)", "sphinx (<7.2.5)", "sphinx (>=3.5)", "sphinx-favicon", "sphinx-inline-tabs", "sphinx-lint", "sphinx-notfound-page (>=1,<2)", "sphinx-reredirects", "sphinxcontrib-towncrier"] -testing = ["build[virtualenv]", "filelock (>=3.4.0)", "flake8-2020", "ini2toml[lite] (>=0.9)", "jaraco.develop (>=7.21)", "jaraco.envs (>=2.2)", "jaraco.path (>=3.2.0)", "pip (>=19.1)", "pytest (>=6)", "pytest-black (>=0.3.7)", "pytest-checkdocs (>=2.4)", "pytest-cov", "pytest-enabler (>=2.2)", "pytest-mypy (>=0.9.1)", "pytest-perf", "pytest-ruff", "pytest-timeout", "pytest-xdist", "tomli-w (>=1.0.0)", "virtualenv (>=13.0.0)", "wheel"] -testing-integration = ["build[virtualenv] (>=1.0.3)", "filelock (>=3.4.0)", "jaraco.envs (>=2.2)", "jaraco.path (>=3.2.0)", "packaging (>=23.1)", "pytest", "pytest-enabler", "pytest-xdist", "tomli", "virtualenv (>=13.0.0)", "wheel"] +docs = ["furo", "jaraco.packaging (>=9.3)", "jaraco.tidelift (>=1.4)", "pygments-github-lexers (==0.0.5)", "rst.linker (>=1.9)", "sphinx (>=3.5)", "sphinx-favicon", "sphinx-inline-tabs", "sphinx-lint", "sphinx-notfound-page (>=1,<2)", "sphinx-reredirects", "sphinxcontrib-towncrier"] +testing = ["build[virtualenv]", "filelock (>=3.4.0)", "importlib-metadata", "ini2toml[lite] (>=0.9)", "jaraco.develop (>=7.21)", "jaraco.envs (>=2.2)", "jaraco.path (>=3.2.0)", "mypy (==1.9)", "packaging (>=23.2)", "pip (>=19.1)", "pytest (>=6,!=8.1.1)", "pytest-checkdocs (>=2.4)", "pytest-cov", "pytest-enabler (>=2.2)", "pytest-home (>=0.5)", "pytest-mypy", "pytest-perf", "pytest-ruff (>=0.2.1)", "pytest-timeout", "pytest-xdist (>=3)", "tomli", "tomli-w (>=1.0.0)", "virtualenv (>=13.0.0)", "wheel"] +testing-integration = ["build[virtualenv] (>=1.0.3)", "filelock (>=3.4.0)", "jaraco.envs (>=2.2)", "jaraco.path (>=3.2.0)", "packaging (>=23.2)", "pytest", "pytest-enabler", "pytest-xdist", "tomli", "virtualenv (>=13.0.0)", "wheel"] [[package]] name = "tomli" @@ -583,24 +583,24 @@ files = [ [[package]] name = "types-protobuf" -version = "4.24.0.20240129" +version = "4.25.0.20240417" description = "Typing stubs for protobuf" optional = false python-versions = ">=3.8" files = [ - {file = "types-protobuf-4.24.0.20240129.tar.gz", hash = "sha256:8a83dd3b9b76a33e08d8636c5daa212ace1396418ed91837635fcd564a624891"}, - {file = "types_protobuf-4.24.0.20240129-py3-none-any.whl", hash = "sha256:23be68cc29f3f5213b5c5878ac0151706182874040e220cfb11336f9ee642ead"}, + {file = "types-protobuf-4.25.0.20240417.tar.gz", hash = "sha256:c34eff17b9b3a0adb6830622f0f302484e4c089f533a46e3f147568313544352"}, + {file = "types_protobuf-4.25.0.20240417-py3-none-any.whl", hash = "sha256:e9b613227c2127e3d4881d75d93c93b4d6fd97b5f6a099a0b654a05351c8685d"}, ] [[package]] name = "typing-extensions" -version = "4.9.0" +version = "4.11.0" description = "Backported and Experimental Type Hints for Python 3.8+" optional = false python-versions = ">=3.8" files = [ - {file = "typing_extensions-4.9.0-py3-none-any.whl", hash = "sha256:af72aea155e91adfc61c3ae9e0e342dbc0cba726d6cba4b6c72c1f34e47291cd"}, - {file = "typing_extensions-4.9.0.tar.gz", hash = "sha256:23478f88c37f27d76ac8aee6c905017a143b0b1b886c3c9f66bc2fd94f9f5783"}, + {file = "typing_extensions-4.11.0-py3-none-any.whl", hash = "sha256:c1f94d72897edaf4ce775bb7558d5b79d8126906a14ea5ed1635921406c0387a"}, + {file = "typing_extensions-4.11.0.tar.gz", hash = "sha256:83f085bd5ca59c80295fc2a82ab5dac679cbe02b9f33f7d83af68e241bea51b0"}, ] [metadata] diff --git a/protos/cluster.proto b/protos/cluster.proto index c16ef36..a49dd80 100644 --- a/protos/cluster.proto +++ b/protos/cluster.proto @@ -145,6 +145,7 @@ message MemberInfo { string advertise_host_to_client_as = 18; uint32 advertise_http_port_to_client_as = 19; uint32 advertise_tcp_port_to_client_as = 20; + string es_version = 21; } message ReplicaLogWrite{ diff --git a/protos/redaction.proto b/protos/redaction.proto new file mode 100644 index 0000000..b242198 --- /dev/null +++ b/protos/redaction.proto @@ -0,0 +1,47 @@ +syntax = "proto3"; +package event_store.client.redaction; +option java_package = "com.eventstore.dbclient.proto.redaction"; + +import "shared.proto"; + +// The intended usage is as follows: +// 1. Initiate the SwitchChunks() call in order to lock the database for chunk switching. +// This ensures that chunks / event positions will not change while the lock is acquired. +// 2. The GetEventPositions() call is then initiated to obtain the required event positions. +// 3. The relevant chunks are copied to files with a .tmp extension and modified as necessary. +// 4. SwitchChunk requests are then sent to replace the relevant chunks with the modified chunks. +// 5. Finally, the lock is released by ending the SwitchChunks() call. + +service Redaction { + rpc GetEventPositions (stream GetEventPositionReq) returns (stream GetEventPositionResp); + rpc SwitchChunks (stream SwitchChunkReq) returns (stream SwitchChunkResp); +} + +message GetEventPositionReq { + event_store.client.StreamIdentifier stream_identifier = 1; + uint64 stream_revision = 2; +} + +message GetEventPositionResp { + repeated EventPosition event_positions = 1; +} + +message EventPosition { + uint64 log_position = 1; + ChunkInfo chunk_info = 2; +} + +message ChunkInfo { + string file_name = 1; + uint32 version = 2; + bool is_complete = 3; + uint32 event_offset = 4; +} + +message SwitchChunkReq { + string target_chunk_file = 1; + string new_chunk_file = 2; +} + +message SwitchChunkResp { +} diff --git a/protos/streams.proto b/protos/streams.proto index aafa368..67d3c39 100644 --- a/protos/streams.proto +++ b/protos/streams.proto @@ -99,7 +99,13 @@ message ReadResp { uint64 first_stream_position = 5; uint64 last_stream_position = 6; AllStreamPosition last_all_stream_position = 7; + CaughtUp caught_up = 8; + FellBehind fell_behind = 9; } + + message CaughtUp {} + + message FellBehind {} message ReadEvent { RecordedEvent event = 1;