From 0ca08e735872103b065d57f76277ec580b2327b7 Mon Sep 17 00:00:00 2001 From: Andrii Kohut Date: Tue, 2 Aug 2022 19:43:31 +0300 Subject: [PATCH 01/18] this actually works --- .gitignore | 3 + Makefile | 26 +- README.rst | 27 + docker-compose.yml | 106 + messages_pb2.py | 547 ++ messages_pb2.pyi | 1260 ++++ messages_pb2_grpc.py | 4 + photonpump/connection.py | 51 +- photonpump/conversations.py | 44 +- photonpump/discovery.py | 103 +- photonpump/exceptions.py | 4 +- photonpump/messages.py | 6 +- photonpump/messages_pb2.py | 5603 ++--------------- photonpump/messages_pb2.pyi | 1226 ++++ photonpump/messages_pb2_grpc.py | 4 + proto/messages.proto | 145 +- setup.py | 2 +- test/conftest.py | 15 + test/connection_test.py | 18 +- test/conversations/test_catchup.py | 2 +- test/conversations/test_catchup_all.py | 2 +- .../test_create_persistent_subscription.py | 17 +- test/conversations/test_error_handling.py | 4 +- .../test_iterate_all_conversation.py | 4 +- .../test_iterate_stream_conversation.py | 6 +- ...est_read_all_events_stream_conversation.py | 4 +- .../test_read_event_conversation.py | 2 +- .../test_read_stream_conversation.py | 4 +- .../test_write_events_conversation.py | 2 +- test/data/__init__.py | 4 +- test/data/gossip.json | 6 +- test/discovery_test.py | 35 +- test/read_test.py | 31 +- test/write_test.py | 18 +- vars.env | 7 + 35 files changed, 3955 insertions(+), 5387 deletions(-) create mode 100644 docker-compose.yml create mode 100644 messages_pb2.py create mode 100644 messages_pb2.pyi create mode 100644 messages_pb2_grpc.py create mode 100644 photonpump/messages_pb2.pyi create mode 100644 photonpump/messages_pb2_grpc.py create mode 100644 vars.env diff --git a/.gitignore b/.gitignore index 84f93d9..adb0e6f 100644 --- a/.gitignore +++ b/.gitignore @@ -92,3 +92,6 @@ ENV/ .mypy_cache *.orig .venv + +# docker compose volumes +certs diff --git a/Makefile b/Makefile index 9642f49..50dc850 100644 --- a/Makefile +++ b/Makefile @@ -29,16 +29,18 @@ cleanup: - docker rm -f eventstore_local - docker rm -f eventstore_local_noauth -eventstore_docker: - docker run -d --name eventstore_local -p 2113:2113 -p 1113:1113 eventstore/eventstore:release-5.0.8 - docker run -d --name eventstore_local_noauth -p 22113:2113 -p 11113:1113 eventstore/eventstore:release-5.0.8 - for i in {1..10}; do curl -f -i "http://127.0.0.1:2113/users" --user admin:changeit && break || sleep 1; done - for i in {1..10}; do curl -f -i "http://127.0.0.1:22113/users" --user admin:changeit && break || sleep 1; done - curl -f -i "http://127.0.0.1:2113/streams/%24settings" \ - --user admin:changeit \ - -H "Content-Type: application/vnd.eventstore.events+json" \ - -d @default-acl.json - curl -f -i "http://127.0.0.1:2113/users" \ +run_compose: + docker-compose up -d + + +create_users: + curl -k -f -i "https://127.0.0.1:2111/streams/%24settings" \ --user admin:changeit \ - -H "Content-Type: application/json" \ - -d @test-user.json + -H "Content-Type: application/vnd.eventstore.events+json" \ + -d @default-acl.json + curl -k -f -i "https://127.0.0.1:2111/users" \ + --user admin:changeit \ + -H "Content-Type: application/json" \ + -d @test-user.json + +eventstore_docker: run_compose create_users diff --git a/README.rst b/README.rst index ef372b1..f7a1509 100644 --- a/README.rst +++ b/README.rst @@ -39,6 +39,33 @@ The `photonpump.connect` function returns an async context manager so that the c >>> await client.ping() >>> await client.close() +Secure connection +~~~~~~~~~~~~~~~~~ + +Pass `~ssl.SSLContext` class to `~photonpump.Client`. + + >>> import ssl + >>> import asyncio + >>> + >>> from photonpump import connect + >>> + >>> context = ssl.SSLContext() + >>> context.load_verify_locations("certs/ca/ca.crt") + >>> context.verify_mode = ssl.CERT_REQUIRED + >>> + >>> async def main(): + >>> async with connect( + >>> port=1111, + >>> host="localhost", + >>> username="admin", + >>> password="changeit", + >>> sslcontext=context, # or sslcontext=True if self-signed cert is not used + >>> ) as conn: + >>> await conn.ping() + >>> + >>> + >>> asyncio.run(main()) + Reading and Writing single events ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..02d49bb --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,106 @@ +version: '3.5' + +services: + volumes-provisioner: + image: "hasnat/volumes-provisioner" + environment: + PROVISION_DIRECTORIES: "1000:1000:0755:/tmp/certs" + volumes: + - "./certs:/tmp/certs" + network_mode: "none" + + setup-certs: + image: eventstore/es-gencert-cli:1.0.2 + entrypoint: bash + user: "1000:1000" + command: > + -c "mkdir -p ./certs && cd /certs + && es-gencert-cli create-ca + && es-gencert-cli create-node -out ./node1 --dns-names node1.eventstore,localhost + && es-gencert-cli create-node -out ./node2 --dns-names node2.eventstore,localhost + && es-gencert-cli create-node -out ./node3 --dns-names node3.eventstore,localhost + && find . -type f -print0 | xargs -0 chmod 666" + container_name: setup-certs + volumes: + - ./certs:/certs + depends_on: + - volumes-provisioner + + node1.eventstore: &template + image: ghcr.io/eventstore/eventstore:20.10.5-buster-slim + container_name: node1.eventstore + env_file: + - vars.env + environment: + - EVENTSTORE_EXT_HOST_ADVERTISE_AS=node1.eventstore + - EVENTSTORE_INT_HOST_ADVERTISE_AS=node1.eventstore + - EVENTSTORE_GOSSIP_SEED=node2.eventstore:2113,node3.eventstore:2113 + - EVENTSTORE_CERTIFICATE_FILE=/certs/node1/node.crt + - EVENTSTORE_CERTIFICATE_PRIVATE_KEY_FILE=/certs/node1/node.key + - EVENTSTORE_ADVERTISE_HTTP_PORT_TO_CLIENT_AS=2111 + - EVENTSTORE_ADVERTISE_TCP_PORT_TO_CLIENT_AS=1111 + healthcheck: + test: + [ + 'CMD-SHELL', + 'curl --fail --insecure https://node1.eventstore:2113/health/live || exit 1', + ] + interval: 5s + timeout: 5s + retries: 24 + ports: + - 1111:1113 + - 2111:2113 + volumes: + - ./certs:/certs + depends_on: + - setup-certs + restart: always + + node2.eventstore: + <<: *template + container_name: node2.eventstore + environment: + - EVENTSTORE_EXT_HOST_ADVERTISE_AS=node2.eventstore + - EVENTSTORE_INT_HOST_ADVERTISE_AS=node2.eventstore + - EVENTSTORE_GOSSIP_SEED=node1.eventstore:2113,node3.eventstore:2113 + - EVENTSTORE_CERTIFICATE_FILE=/certs/node2/node.crt + - EVENTSTORE_CERTIFICATE_PRIVATE_KEY_FILE=/certs/node2/node.key + - EVENTSTORE_ADVERTISE_HTTP_PORT_TO_CLIENT_AS=2112 + - EVENTSTORE_ADVERTISE_TCP_PORT_TO_CLIENT_AS=1112 + healthcheck: + test: + [ + 'CMD-SHELL', + 'curl --fail --insecure https://node2.eventstore:2113/health/live || exit 1', + ] + interval: 5s + timeout: 5s + retries: 24 + ports: + - 1112:1113 + - 2112:2113 + + node3.eventstore: + <<: *template + container_name: node3.eventstore + environment: + - EVENTSTORE_EXT_HOST_ADVERTISE_AS=node3.eventstore + - EVENTSTORE_INT_HOST_ADVERTISE_AS=node3.eventstore + - EVENTSTORE_GOSSIP_SEED=node1.eventstore:2113,node2.eventstore:2113 + - EVENTSTORE_CERTIFICATE_FILE=/certs/node3/node.crt + - EVENTSTORE_CERTIFICATE_PRIVATE_KEY_FILE=/certs/node3/node.key + - EVENTSTORE_ADVERTISE_HTTP_PORT_TO_CLIENT_AS=2113 + - EVENTSTORE_ADVERTISE_TCP_PORT_TO_CLIENT_AS=1113 + healthcheck: + test: + [ + 'CMD-SHELL', + 'curl --fail --insecure https://node3.eventstore:2113/health/live || exit 1', + ] + interval: 5s + timeout: 5s + retries: 24 + ports: + - 1113:1113 + - 2113:2113 diff --git a/messages_pb2.py b/messages_pb2.py new file mode 100644 index 0000000..283e21d --- /dev/null +++ b/messages_pb2.py @@ -0,0 +1,547 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: messages.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import enum_type_wrapper +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x0emessages.proto\x12\x1a\x45ventStore.Client.Messages\"\x8a\x01\n\x08NewEvent\x12\x10\n\x08\x65vent_id\x18\x01 \x02(\x0c\x12\x12\n\nevent_type\x18\x02 \x02(\t\x12\x19\n\x11\x64\x61ta_content_type\x18\x03 \x02(\x05\x12\x1d\n\x15metadata_content_type\x18\x04 \x02(\x05\x12\x0c\n\x04\x64\x61ta\x18\x05 \x02(\x0c\x12\x10\n\x08metadata\x18\x06 \x01(\x0c\"\xe4\x01\n\x0b\x45ventRecord\x12\x17\n\x0f\x65vent_stream_id\x18\x01 \x02(\t\x12\x14\n\x0c\x65vent_number\x18\x02 \x02(\x03\x12\x10\n\x08\x65vent_id\x18\x03 \x02(\x0c\x12\x12\n\nevent_type\x18\x04 \x02(\t\x12\x19\n\x11\x64\x61ta_content_type\x18\x05 \x02(\x05\x12\x1d\n\x15metadata_content_type\x18\x06 \x02(\x05\x12\x0c\n\x04\x64\x61ta\x18\x07 \x02(\x0c\x12\x10\n\x08metadata\x18\x08 \x01(\x0c\x12\x0f\n\x07\x63reated\x18\t \x01(\x03\x12\x15\n\rcreated_epoch\x18\n \x01(\x03\"\x85\x01\n\x14ResolvedIndexedEvent\x12\x36\n\x05\x65vent\x18\x01 \x02(\x0b\x32\'.EventStore.Client.Messages.EventRecord\x12\x35\n\x04link\x18\x02 \x01(\x0b\x32\'.EventStore.Client.Messages.EventRecord\"\xb1\x01\n\rResolvedEvent\x12\x36\n\x05\x65vent\x18\x01 \x02(\x0b\x32\'.EventStore.Client.Messages.EventRecord\x12\x35\n\x04link\x18\x02 \x01(\x0b\x32\'.EventStore.Client.Messages.EventRecord\x12\x17\n\x0f\x63ommit_position\x18\x03 \x02(\x03\x12\x18\n\x10prepare_position\x18\x04 \x02(\x03\"\x8e\x01\n\x0bWriteEvents\x12\x17\n\x0f\x65vent_stream_id\x18\x01 \x02(\t\x12\x18\n\x10\x65xpected_version\x18\x02 \x02(\x03\x12\x34\n\x06\x65vents\x18\x03 \x03(\x0b\x32$.EventStore.Client.Messages.NewEvent\x12\x16\n\x0erequire_leader\x18\x04 \x02(\x08\"\xe7\x01\n\x14WriteEventsCompleted\x12;\n\x06result\x18\x01 \x02(\x0e\x32+.EventStore.Client.Messages.OperationResult\x12\x0f\n\x07message\x18\x02 \x01(\t\x12\x1a\n\x12\x66irst_event_number\x18\x03 \x02(\x03\x12\x19\n\x11last_event_number\x18\x04 \x02(\x03\x12\x18\n\x10prepare_position\x18\x05 \x01(\x03\x12\x17\n\x0f\x63ommit_position\x18\x06 \x01(\x03\x12\x17\n\x0f\x63urrent_version\x18\x07 \x01(\x03\"n\n\x0c\x44\x65leteStream\x12\x17\n\x0f\x65vent_stream_id\x18\x01 \x02(\t\x12\x18\n\x10\x65xpected_version\x18\x02 \x02(\x03\x12\x16\n\x0erequire_leader\x18\x03 \x02(\x08\x12\x13\n\x0bhard_delete\x18\x04 \x01(\x08\"\x98\x01\n\x15\x44\x65leteStreamCompleted\x12;\n\x06result\x18\x01 \x02(\x0e\x32+.EventStore.Client.Messages.OperationResult\x12\x0f\n\x07message\x18\x02 \x01(\t\x12\x18\n\x10prepare_position\x18\x03 \x01(\x03\x12\x17\n\x0f\x63ommit_position\x18\x04 \x01(\x03\"]\n\x10TransactionStart\x12\x17\n\x0f\x65vent_stream_id\x18\x01 \x02(\t\x12\x18\n\x10\x65xpected_version\x18\x02 \x02(\x03\x12\x16\n\x0erequire_leader\x18\x03 \x02(\x08\"\x81\x01\n\x19TransactionStartCompleted\x12\x16\n\x0etransaction_id\x18\x01 \x02(\x03\x12;\n\x06result\x18\x02 \x02(\x0e\x32+.EventStore.Client.Messages.OperationResult\x12\x0f\n\x07message\x18\x03 \x01(\t\"x\n\x10TransactionWrite\x12\x16\n\x0etransaction_id\x18\x01 \x02(\x03\x12\x34\n\x06\x65vents\x18\x02 \x03(\x0b\x32$.EventStore.Client.Messages.NewEvent\x12\x16\n\x0erequire_leader\x18\x03 \x02(\x08\"\x81\x01\n\x19TransactionWriteCompleted\x12\x16\n\x0etransaction_id\x18\x01 \x02(\x03\x12;\n\x06result\x18\x02 \x02(\x0e\x32+.EventStore.Client.Messages.OperationResult\x12\x0f\n\x07message\x18\x03 \x01(\t\"C\n\x11TransactionCommit\x12\x16\n\x0etransaction_id\x18\x01 \x02(\x03\x12\x16\n\x0erequire_leader\x18\x02 \x02(\x08\"\xec\x01\n\x1aTransactionCommitCompleted\x12\x16\n\x0etransaction_id\x18\x01 \x02(\x03\x12;\n\x06result\x18\x02 \x02(\x0e\x32+.EventStore.Client.Messages.OperationResult\x12\x0f\n\x07message\x18\x03 \x01(\t\x12\x1a\n\x12\x66irst_event_number\x18\x04 \x02(\x03\x12\x19\n\x11last_event_number\x18\x05 \x02(\x03\x12\x18\n\x10prepare_position\x18\x06 \x01(\x03\x12\x17\n\x0f\x63ommit_position\x18\x07 \x01(\x03\"l\n\tReadEvent\x12\x17\n\x0f\x65vent_stream_id\x18\x01 \x02(\t\x12\x14\n\x0c\x65vent_number\x18\x02 \x02(\x03\x12\x18\n\x10resolve_link_tos\x18\x03 \x02(\x08\x12\x16\n\x0erequire_leader\x18\x04 \x02(\x08\"\xa0\x02\n\x12ReadEventCompleted\x12N\n\x06result\x18\x01 \x02(\x0e\x32>.EventStore.Client.Messages.ReadEventCompleted.ReadEventResult\x12?\n\x05\x65vent\x18\x02 \x02(\x0b\x32\x30.EventStore.Client.Messages.ResolvedIndexedEvent\x12\r\n\x05\x65rror\x18\x03 \x01(\t\"j\n\x0fReadEventResult\x12\x0b\n\x07Success\x10\x00\x12\x0c\n\x08NotFound\x10\x01\x12\x0c\n\x08NoStream\x10\x02\x12\x11\n\rStreamDeleted\x10\x03\x12\t\n\x05\x45rror\x10\x04\x12\x10\n\x0c\x41\x63\x63\x65ssDenied\x10\x05\"\x8b\x01\n\x10ReadStreamEvents\x12\x17\n\x0f\x65vent_stream_id\x18\x01 \x02(\t\x12\x19\n\x11\x66rom_event_number\x18\x02 \x02(\x03\x12\x11\n\tmax_count\x18\x03 \x02(\x05\x12\x18\n\x10resolve_link_tos\x18\x04 \x02(\x08\x12\x16\n\x0erequire_leader\x18\x05 \x02(\x08\"\xa2\x03\n\x19ReadStreamEventsCompleted\x12@\n\x06\x65vents\x18\x01 \x03(\x0b\x32\x30.EventStore.Client.Messages.ResolvedIndexedEvent\x12V\n\x06result\x18\x02 \x02(\x0e\x32\x46.EventStore.Client.Messages.ReadStreamEventsCompleted.ReadStreamResult\x12\x19\n\x11next_event_number\x18\x03 \x02(\x03\x12\x19\n\x11last_event_number\x18\x04 \x02(\x03\x12\x18\n\x10is_end_of_stream\x18\x05 \x02(\x08\x12\x1c\n\x14last_commit_position\x18\x06 \x02(\x03\x12\r\n\x05\x65rror\x18\x07 \x01(\t\"n\n\x10ReadStreamResult\x12\x0b\n\x07Success\x10\x00\x12\x0c\n\x08NoStream\x10\x01\x12\x11\n\rStreamDeleted\x10\x02\x12\x0f\n\x0bNotModified\x10\x03\x12\t\n\x05\x45rror\x10\x04\x12\x10\n\x0c\x41\x63\x63\x65ssDenied\x10\x05\"\x87\x01\n\rReadAllEvents\x12\x17\n\x0f\x63ommit_position\x18\x01 \x02(\x03\x12\x18\n\x10prepare_position\x18\x02 \x02(\x03\x12\x11\n\tmax_count\x18\x03 \x02(\x05\x12\x18\n\x10resolve_link_tos\x18\x04 \x02(\x08\x12\x16\n\x0erequire_leader\x18\x05 \x02(\x08\"\xf9\x02\n\x16ReadAllEventsCompleted\x12\x17\n\x0f\x63ommit_position\x18\x01 \x02(\x03\x12\x18\n\x10prepare_position\x18\x02 \x02(\x03\x12\x39\n\x06\x65vents\x18\x03 \x03(\x0b\x32).EventStore.Client.Messages.ResolvedEvent\x12\x1c\n\x14next_commit_position\x18\x04 \x02(\x03\x12\x1d\n\x15next_prepare_position\x18\x05 \x02(\x03\x12Y\n\x06result\x18\x06 \x01(\x0e\x32@.EventStore.Client.Messages.ReadAllEventsCompleted.ReadAllResult:\x07Success\x12\r\n\x05\x65rror\x18\x07 \x01(\t\"J\n\rReadAllResult\x12\x0b\n\x07Success\x10\x00\x12\x0f\n\x0bNotModified\x10\x01\x12\t\n\x05\x45rror\x10\x02\x12\x10\n\x0c\x41\x63\x63\x65ssDenied\x10\x03\"\xe9\x01\n\x06\x46ilter\x12\x41\n\x07\x63ontext\x18\x01 \x02(\x0e\x32\x30.EventStore.Client.Messages.Filter.FilterContext\x12;\n\x04type\x18\x02 \x02(\x0e\x32-.EventStore.Client.Messages.Filter.FilterType\x12\x0c\n\x04\x64\x61ta\x18\x03 \x03(\t\",\n\rFilterContext\x12\x0c\n\x08StreamId\x10\x00\x12\r\n\tEventType\x10\x01\"#\n\nFilterType\x12\t\n\x05Regex\x10\x00\x12\n\n\x06Prefix\x10\x01\"\xde\x01\n\x15\x46ilteredReadAllEvents\x12\x17\n\x0f\x63ommit_position\x18\x01 \x02(\x03\x12\x18\n\x10prepare_position\x18\x02 \x02(\x03\x12\x11\n\tmax_count\x18\x03 \x02(\x05\x12\x19\n\x11max_search_window\x18\x04 \x01(\x05\x12\x18\n\x10resolve_link_tos\x18\x05 \x02(\x08\x12\x16\n\x0erequire_leader\x18\x06 \x02(\x08\x12\x32\n\x06\x66ilter\x18\x07 \x02(\x0b\x32\".EventStore.Client.Messages.Filter\"\xb3\x03\n\x1e\x46ilteredReadAllEventsCompleted\x12\x17\n\x0f\x63ommit_position\x18\x01 \x02(\x03\x12\x18\n\x10prepare_position\x18\x02 \x02(\x03\x12\x39\n\x06\x65vents\x18\x03 \x03(\x0b\x32).EventStore.Client.Messages.ResolvedEvent\x12\x1c\n\x14next_commit_position\x18\x04 \x02(\x03\x12\x1d\n\x15next_prepare_position\x18\x05 \x02(\x03\x12\x18\n\x10is_end_of_stream\x18\x06 \x02(\x08\x12i\n\x06result\x18\x07 \x01(\x0e\x32P.EventStore.Client.Messages.FilteredReadAllEventsCompleted.FilteredReadAllResult:\x07Success\x12\r\n\x05\x65rror\x18\x08 \x01(\t\"R\n\x15\x46ilteredReadAllResult\x12\x0b\n\x07Success\x10\x00\x12\x0f\n\x0bNotModified\x10\x01\x12\t\n\x05\x45rror\x10\x02\x12\x10\n\x0c\x41\x63\x63\x65ssDenied\x10\x03\"\xde\x03\n\x1c\x43reatePersistentSubscription\x12\x1f\n\x17subscription_group_name\x18\x01 \x02(\t\x12\x17\n\x0f\x65vent_stream_id\x18\x02 \x02(\t\x12\x18\n\x10resolve_link_tos\x18\x03 \x02(\x08\x12\x12\n\nstart_from\x18\x04 \x02(\x03\x12$\n\x1cmessage_timeout_milliseconds\x18\x05 \x02(\x05\x12\x19\n\x11record_statistics\x18\x06 \x02(\x08\x12\x18\n\x10live_buffer_size\x18\x07 \x02(\x05\x12\x17\n\x0fread_batch_size\x18\x08 \x02(\x05\x12\x13\n\x0b\x62uffer_size\x18\t \x02(\x05\x12\x17\n\x0fmax_retry_count\x18\n \x02(\x05\x12\x1a\n\x12prefer_round_robin\x18\x0b \x02(\x08\x12\x1d\n\x15\x63heckpoint_after_time\x18\x0c \x02(\x05\x12\x1c\n\x14\x63heckpoint_max_count\x18\r \x02(\x05\x12\x1c\n\x14\x63heckpoint_min_count\x18\x0e \x02(\x05\x12\x1c\n\x14subscriber_max_count\x18\x0f \x02(\x05\x12\x1f\n\x17named_consumer_strategy\x18\x10 \x01(\t\"X\n\x1c\x44\x65letePersistentSubscription\x12\x1f\n\x17subscription_group_name\x18\x01 \x02(\t\x12\x17\n\x0f\x65vent_stream_id\x18\x02 \x02(\t\"\xde\x03\n\x1cUpdatePersistentSubscription\x12\x1f\n\x17subscription_group_name\x18\x01 \x02(\t\x12\x17\n\x0f\x65vent_stream_id\x18\x02 \x02(\t\x12\x18\n\x10resolve_link_tos\x18\x03 \x02(\x08\x12\x12\n\nstart_from\x18\x04 \x02(\x03\x12$\n\x1cmessage_timeout_milliseconds\x18\x05 \x02(\x05\x12\x19\n\x11record_statistics\x18\x06 \x02(\x08\x12\x18\n\x10live_buffer_size\x18\x07 \x02(\x05\x12\x17\n\x0fread_batch_size\x18\x08 \x02(\x05\x12\x13\n\x0b\x62uffer_size\x18\t \x02(\x05\x12\x17\n\x0fmax_retry_count\x18\n \x02(\x05\x12\x1a\n\x12prefer_round_robin\x18\x0b \x02(\x08\x12\x1d\n\x15\x63heckpoint_after_time\x18\x0c \x02(\x05\x12\x1c\n\x14\x63heckpoint_max_count\x18\r \x02(\x05\x12\x1c\n\x14\x63heckpoint_min_count\x18\x0e \x02(\x05\x12\x1c\n\x14subscriber_max_count\x18\x0f \x02(\x05\x12\x1f\n\x17named_consumer_strategy\x18\x10 \x01(\t\"\x97\x02\n%UpdatePersistentSubscriptionCompleted\x12}\n\x06result\x18\x01 \x02(\x0e\x32\x64.EventStore.Client.Messages.UpdatePersistentSubscriptionCompleted.UpdatePersistentSubscriptionResult:\x07Success\x12\x0e\n\x06reason\x18\x02 \x01(\t\"_\n\"UpdatePersistentSubscriptionResult\x12\x0b\n\x07Success\x10\x00\x12\x10\n\x0c\x44oesNotExist\x10\x01\x12\x08\n\x04\x46\x61il\x10\x02\x12\x10\n\x0c\x41\x63\x63\x65ssDenied\x10\x03\"\x98\x02\n%CreatePersistentSubscriptionCompleted\x12}\n\x06result\x18\x01 \x02(\x0e\x32\x64.EventStore.Client.Messages.CreatePersistentSubscriptionCompleted.CreatePersistentSubscriptionResult:\x07Success\x12\x0e\n\x06reason\x18\x02 \x01(\t\"`\n\"CreatePersistentSubscriptionResult\x12\x0b\n\x07Success\x10\x00\x12\x11\n\rAlreadyExists\x10\x01\x12\x08\n\x04\x46\x61il\x10\x02\x12\x10\n\x0c\x41\x63\x63\x65ssDenied\x10\x03\"\x97\x02\n%DeletePersistentSubscriptionCompleted\x12}\n\x06result\x18\x01 \x02(\x0e\x32\x64.EventStore.Client.Messages.DeletePersistentSubscriptionCompleted.DeletePersistentSubscriptionResult:\x07Success\x12\x0e\n\x06reason\x18\x02 \x01(\t\"_\n\"DeletePersistentSubscriptionResult\x12\x0b\n\x07Success\x10\x00\x12\x10\n\x0c\x44oesNotExist\x10\x01\x12\x08\n\x04\x46\x61il\x10\x02\x12\x10\n\x0c\x41\x63\x63\x65ssDenied\x10\x03\"w\n\x1f\x43onnectToPersistentSubscription\x12\x17\n\x0fsubscription_id\x18\x01 \x02(\t\x12\x17\n\x0f\x65vent_stream_id\x18\x02 \x02(\t\x12\"\n\x1a\x61llowed_in_flight_messages\x18\x03 \x02(\x05\"W\n\x1fPersistentSubscriptionAckEvents\x12\x17\n\x0fsubscription_id\x18\x01 \x02(\t\x12\x1b\n\x13processed_event_ids\x18\x02 \x03(\x0c\"\x8b\x02\n\x1fPersistentSubscriptionNakEvents\x12\x17\n\x0fsubscription_id\x18\x01 \x02(\t\x12\x1b\n\x13processed_event_ids\x18\x02 \x03(\x0c\x12\x0f\n\x07message\x18\x03 \x01(\t\x12^\n\x06\x61\x63tion\x18\x04 \x02(\x0e\x32\x45.EventStore.Client.Messages.PersistentSubscriptionNakEvents.NakAction:\x07Unknown\"A\n\tNakAction\x12\x0b\n\x07Unknown\x10\x00\x12\x08\n\x04Park\x10\x01\x12\t\n\x05Retry\x10\x02\x12\x08\n\x04Skip\x10\x03\x12\x08\n\x04Stop\x10\x04\"v\n\"PersistentSubscriptionConfirmation\x12\x1c\n\x14last_commit_position\x18\x01 \x02(\x03\x12\x17\n\x0fsubscription_id\x18\x02 \x02(\t\x12\x19\n\x11last_event_number\x18\x03 \x01(\x03\"\x80\x01\n)PersistentSubscriptionStreamEventAppeared\x12?\n\x05\x65vent\x18\x01 \x02(\x0b\x32\x30.EventStore.Client.Messages.ResolvedIndexedEvent\x12\x12\n\nretryCount\x18\x02 \x01(\x05\"F\n\x11SubscribeToStream\x12\x17\n\x0f\x65vent_stream_id\x18\x01 \x02(\t\x12\x18\n\x10resolve_link_tos\x18\x02 \x02(\x08\"\x9f\x01\n\x19\x46ilteredSubscribeToStream\x12\x17\n\x0f\x65vent_stream_id\x18\x01 \x02(\t\x12\x18\n\x10resolve_link_tos\x18\x02 \x02(\x08\x12\x32\n\x06\x66ilter\x18\x03 \x02(\x0b\x32\".EventStore.Client.Messages.Filter\x12\x1b\n\x13\x63heckpoint_interval\x18\x04 \x02(\x05\"F\n\x11\x43heckpointReached\x12\x17\n\x0f\x63ommit_position\x18\x01 \x02(\x03\x12\x18\n\x10prepare_position\x18\x02 \x02(\x03\"S\n\x18SubscriptionConfirmation\x12\x1c\n\x14last_commit_position\x18\x01 \x02(\x03\x12\x19\n\x11last_event_number\x18\x02 \x01(\x03\"O\n\x13StreamEventAppeared\x12\x38\n\x05\x65vent\x18\x01 \x02(\x0b\x32).EventStore.Client.Messages.ResolvedEvent\"\x17\n\x15UnsubscribeFromStream\"\x8a\x02\n\x13SubscriptionDropped\x12\x64\n\x06reason\x18\x01 \x01(\x0e\x32\x46.EventStore.Client.Messages.SubscriptionDropped.SubscriptionDropReason:\x0cUnsubscribed\"\x8c\x01\n\x16SubscriptionDropReason\x12\x10\n\x0cUnsubscribed\x10\x00\x12\x10\n\x0c\x41\x63\x63\x65ssDenied\x10\x01\x12\x0c\n\x08NotFound\x10\x02\x12!\n\x1dPersistentSubscriptionDeleted\x10\x03\x12\x1d\n\x19SubscriberMaxCountReached\x10\x04\"\xf4\x02\n\nNotHandled\x12G\n\x06reason\x18\x01 \x02(\x0e\x32\x37.EventStore.Client.Messages.NotHandled.NotHandledReason\x12\x17\n\x0f\x61\x64\x64itional_info\x18\x02 \x01(\x0c\x1a\xb5\x01\n\nLeaderInfo\x12\x1c\n\x14\x65xternal_tcp_address\x18\x01 \x02(\t\x12\x19\n\x11\x65xternal_tcp_port\x18\x02 \x02(\x05\x12\x14\n\x0chttp_address\x18\x03 \x02(\t\x12\x11\n\thttp_port\x18\x04 \x02(\x05\x12#\n\x1b\x65xternal_secure_tcp_address\x18\x05 \x01(\t\x12 \n\x18\x65xternal_secure_tcp_port\x18\x06 \x01(\x05\"L\n\x10NotHandledReason\x12\x0c\n\x08NotReady\x10\x00\x12\x0b\n\x07TooBusy\x10\x01\x12\r\n\tNotLeader\x10\x02\x12\x0e\n\nIsReadOnly\x10\x03\"\x12\n\x10ScavengeDatabase\"\xc4\x01\n\x18ScavengeDatabaseResponse\x12S\n\x06result\x18\x01 \x02(\x0e\x32\x43.EventStore.Client.Messages.ScavengeDatabaseResponse.ScavengeResult\x12\x12\n\nscavengeId\x18\x02 \x01(\t\"?\n\x0eScavengeResult\x12\x0b\n\x07Started\x10\x00\x12\x0e\n\nInProgress\x10\x01\x12\x10\n\x0cUnauthorized\x10\x02\":\n\x0eIdentifyClient\x12\x0f\n\x07version\x18\x01 \x02(\x05\x12\x17\n\x0f\x63onnection_name\x18\x02 \x01(\t\"\x12\n\x10\x43lientIdentified*\xb0\x01\n\x0fOperationResult\x12\x0b\n\x07Success\x10\x00\x12\x12\n\x0ePrepareTimeout\x10\x01\x12\x11\n\rCommitTimeout\x10\x02\x12\x12\n\x0e\x46orwardTimeout\x10\x03\x12\x18\n\x14WrongExpectedVersion\x10\x04\x12\x11\n\rStreamDeleted\x10\x05\x12\x16\n\x12InvalidTransaction\x10\x06\x12\x10\n\x0c\x41\x63\x63\x65ssDenied\x10\x07') + +_OPERATIONRESULT = DESCRIPTOR.enum_types_by_name['OperationResult'] +OperationResult = enum_type_wrapper.EnumTypeWrapper(_OPERATIONRESULT) +Success = 0 +PrepareTimeout = 1 +CommitTimeout = 2 +ForwardTimeout = 3 +WrongExpectedVersion = 4 +StreamDeleted = 5 +InvalidTransaction = 6 +AccessDenied = 7 + + +_NEWEVENT = DESCRIPTOR.message_types_by_name['NewEvent'] +_EVENTRECORD = DESCRIPTOR.message_types_by_name['EventRecord'] +_RESOLVEDINDEXEDEVENT = DESCRIPTOR.message_types_by_name['ResolvedIndexedEvent'] +_RESOLVEDEVENT = DESCRIPTOR.message_types_by_name['ResolvedEvent'] +_WRITEEVENTS = DESCRIPTOR.message_types_by_name['WriteEvents'] +_WRITEEVENTSCOMPLETED = DESCRIPTOR.message_types_by_name['WriteEventsCompleted'] +_DELETESTREAM = DESCRIPTOR.message_types_by_name['DeleteStream'] +_DELETESTREAMCOMPLETED = DESCRIPTOR.message_types_by_name['DeleteStreamCompleted'] +_TRANSACTIONSTART = DESCRIPTOR.message_types_by_name['TransactionStart'] +_TRANSACTIONSTARTCOMPLETED = DESCRIPTOR.message_types_by_name['TransactionStartCompleted'] +_TRANSACTIONWRITE = DESCRIPTOR.message_types_by_name['TransactionWrite'] +_TRANSACTIONWRITECOMPLETED = DESCRIPTOR.message_types_by_name['TransactionWriteCompleted'] +_TRANSACTIONCOMMIT = DESCRIPTOR.message_types_by_name['TransactionCommit'] +_TRANSACTIONCOMMITCOMPLETED = DESCRIPTOR.message_types_by_name['TransactionCommitCompleted'] +_READEVENT = DESCRIPTOR.message_types_by_name['ReadEvent'] +_READEVENTCOMPLETED = DESCRIPTOR.message_types_by_name['ReadEventCompleted'] +_READSTREAMEVENTS = DESCRIPTOR.message_types_by_name['ReadStreamEvents'] +_READSTREAMEVENTSCOMPLETED = DESCRIPTOR.message_types_by_name['ReadStreamEventsCompleted'] +_READALLEVENTS = DESCRIPTOR.message_types_by_name['ReadAllEvents'] +_READALLEVENTSCOMPLETED = DESCRIPTOR.message_types_by_name['ReadAllEventsCompleted'] +_FILTER = DESCRIPTOR.message_types_by_name['Filter'] +_FILTEREDREADALLEVENTS = DESCRIPTOR.message_types_by_name['FilteredReadAllEvents'] +_FILTEREDREADALLEVENTSCOMPLETED = DESCRIPTOR.message_types_by_name['FilteredReadAllEventsCompleted'] +_CREATEPERSISTENTSUBSCRIPTION = DESCRIPTOR.message_types_by_name['CreatePersistentSubscription'] +_DELETEPERSISTENTSUBSCRIPTION = DESCRIPTOR.message_types_by_name['DeletePersistentSubscription'] +_UPDATEPERSISTENTSUBSCRIPTION = DESCRIPTOR.message_types_by_name['UpdatePersistentSubscription'] +_UPDATEPERSISTENTSUBSCRIPTIONCOMPLETED = DESCRIPTOR.message_types_by_name['UpdatePersistentSubscriptionCompleted'] +_CREATEPERSISTENTSUBSCRIPTIONCOMPLETED = DESCRIPTOR.message_types_by_name['CreatePersistentSubscriptionCompleted'] +_DELETEPERSISTENTSUBSCRIPTIONCOMPLETED = DESCRIPTOR.message_types_by_name['DeletePersistentSubscriptionCompleted'] +_CONNECTTOPERSISTENTSUBSCRIPTION = DESCRIPTOR.message_types_by_name['ConnectToPersistentSubscription'] +_PERSISTENTSUBSCRIPTIONACKEVENTS = DESCRIPTOR.message_types_by_name['PersistentSubscriptionAckEvents'] +_PERSISTENTSUBSCRIPTIONNAKEVENTS = DESCRIPTOR.message_types_by_name['PersistentSubscriptionNakEvents'] +_PERSISTENTSUBSCRIPTIONCONFIRMATION = DESCRIPTOR.message_types_by_name['PersistentSubscriptionConfirmation'] +_PERSISTENTSUBSCRIPTIONSTREAMEVENTAPPEARED = DESCRIPTOR.message_types_by_name['PersistentSubscriptionStreamEventAppeared'] +_SUBSCRIBETOSTREAM = DESCRIPTOR.message_types_by_name['SubscribeToStream'] +_FILTEREDSUBSCRIBETOSTREAM = DESCRIPTOR.message_types_by_name['FilteredSubscribeToStream'] +_CHECKPOINTREACHED = DESCRIPTOR.message_types_by_name['CheckpointReached'] +_SUBSCRIPTIONCONFIRMATION = DESCRIPTOR.message_types_by_name['SubscriptionConfirmation'] +_STREAMEVENTAPPEARED = DESCRIPTOR.message_types_by_name['StreamEventAppeared'] +_UNSUBSCRIBEFROMSTREAM = DESCRIPTOR.message_types_by_name['UnsubscribeFromStream'] +_SUBSCRIPTIONDROPPED = DESCRIPTOR.message_types_by_name['SubscriptionDropped'] +_NOTHANDLED = DESCRIPTOR.message_types_by_name['NotHandled'] +_NOTHANDLED_LEADERINFO = _NOTHANDLED.nested_types_by_name['LeaderInfo'] +_SCAVENGEDATABASE = DESCRIPTOR.message_types_by_name['ScavengeDatabase'] +_SCAVENGEDATABASERESPONSE = DESCRIPTOR.message_types_by_name['ScavengeDatabaseResponse'] +_IDENTIFYCLIENT = DESCRIPTOR.message_types_by_name['IdentifyClient'] +_CLIENTIDENTIFIED = DESCRIPTOR.message_types_by_name['ClientIdentified'] +_READEVENTCOMPLETED_READEVENTRESULT = _READEVENTCOMPLETED.enum_types_by_name['ReadEventResult'] +_READSTREAMEVENTSCOMPLETED_READSTREAMRESULT = _READSTREAMEVENTSCOMPLETED.enum_types_by_name['ReadStreamResult'] +_READALLEVENTSCOMPLETED_READALLRESULT = _READALLEVENTSCOMPLETED.enum_types_by_name['ReadAllResult'] +_FILTER_FILTERCONTEXT = _FILTER.enum_types_by_name['FilterContext'] +_FILTER_FILTERTYPE = _FILTER.enum_types_by_name['FilterType'] +_FILTEREDREADALLEVENTSCOMPLETED_FILTEREDREADALLRESULT = _FILTEREDREADALLEVENTSCOMPLETED.enum_types_by_name['FilteredReadAllResult'] +_UPDATEPERSISTENTSUBSCRIPTIONCOMPLETED_UPDATEPERSISTENTSUBSCRIPTIONRESULT = _UPDATEPERSISTENTSUBSCRIPTIONCOMPLETED.enum_types_by_name['UpdatePersistentSubscriptionResult'] +_CREATEPERSISTENTSUBSCRIPTIONCOMPLETED_CREATEPERSISTENTSUBSCRIPTIONRESULT = _CREATEPERSISTENTSUBSCRIPTIONCOMPLETED.enum_types_by_name['CreatePersistentSubscriptionResult'] +_DELETEPERSISTENTSUBSCRIPTIONCOMPLETED_DELETEPERSISTENTSUBSCRIPTIONRESULT = _DELETEPERSISTENTSUBSCRIPTIONCOMPLETED.enum_types_by_name['DeletePersistentSubscriptionResult'] +_PERSISTENTSUBSCRIPTIONNAKEVENTS_NAKACTION = _PERSISTENTSUBSCRIPTIONNAKEVENTS.enum_types_by_name['NakAction'] +_SUBSCRIPTIONDROPPED_SUBSCRIPTIONDROPREASON = _SUBSCRIPTIONDROPPED.enum_types_by_name['SubscriptionDropReason'] +_NOTHANDLED_NOTHANDLEDREASON = _NOTHANDLED.enum_types_by_name['NotHandledReason'] +_SCAVENGEDATABASERESPONSE_SCAVENGERESULT = _SCAVENGEDATABASERESPONSE.enum_types_by_name['ScavengeResult'] +NewEvent = _reflection.GeneratedProtocolMessageType('NewEvent', (_message.Message,), { + 'DESCRIPTOR' : _NEWEVENT, + '__module__' : 'messages_pb2' + # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.NewEvent) + }) +_sym_db.RegisterMessage(NewEvent) + +EventRecord = _reflection.GeneratedProtocolMessageType('EventRecord', (_message.Message,), { + 'DESCRIPTOR' : _EVENTRECORD, + '__module__' : 'messages_pb2' + # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.EventRecord) + }) +_sym_db.RegisterMessage(EventRecord) + +ResolvedIndexedEvent = _reflection.GeneratedProtocolMessageType('ResolvedIndexedEvent', (_message.Message,), { + 'DESCRIPTOR' : _RESOLVEDINDEXEDEVENT, + '__module__' : 'messages_pb2' + # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.ResolvedIndexedEvent) + }) +_sym_db.RegisterMessage(ResolvedIndexedEvent) + +ResolvedEvent = _reflection.GeneratedProtocolMessageType('ResolvedEvent', (_message.Message,), { + 'DESCRIPTOR' : _RESOLVEDEVENT, + '__module__' : 'messages_pb2' + # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.ResolvedEvent) + }) +_sym_db.RegisterMessage(ResolvedEvent) + +WriteEvents = _reflection.GeneratedProtocolMessageType('WriteEvents', (_message.Message,), { + 'DESCRIPTOR' : _WRITEEVENTS, + '__module__' : 'messages_pb2' + # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.WriteEvents) + }) +_sym_db.RegisterMessage(WriteEvents) + +WriteEventsCompleted = _reflection.GeneratedProtocolMessageType('WriteEventsCompleted', (_message.Message,), { + 'DESCRIPTOR' : _WRITEEVENTSCOMPLETED, + '__module__' : 'messages_pb2' + # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.WriteEventsCompleted) + }) +_sym_db.RegisterMessage(WriteEventsCompleted) + +DeleteStream = _reflection.GeneratedProtocolMessageType('DeleteStream', (_message.Message,), { + 'DESCRIPTOR' : _DELETESTREAM, + '__module__' : 'messages_pb2' + # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.DeleteStream) + }) +_sym_db.RegisterMessage(DeleteStream) + +DeleteStreamCompleted = _reflection.GeneratedProtocolMessageType('DeleteStreamCompleted', (_message.Message,), { + 'DESCRIPTOR' : _DELETESTREAMCOMPLETED, + '__module__' : 'messages_pb2' + # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.DeleteStreamCompleted) + }) +_sym_db.RegisterMessage(DeleteStreamCompleted) + +TransactionStart = _reflection.GeneratedProtocolMessageType('TransactionStart', (_message.Message,), { + 'DESCRIPTOR' : _TRANSACTIONSTART, + '__module__' : 'messages_pb2' + # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.TransactionStart) + }) +_sym_db.RegisterMessage(TransactionStart) + +TransactionStartCompleted = _reflection.GeneratedProtocolMessageType('TransactionStartCompleted', (_message.Message,), { + 'DESCRIPTOR' : _TRANSACTIONSTARTCOMPLETED, + '__module__' : 'messages_pb2' + # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.TransactionStartCompleted) + }) +_sym_db.RegisterMessage(TransactionStartCompleted) + +TransactionWrite = _reflection.GeneratedProtocolMessageType('TransactionWrite', (_message.Message,), { + 'DESCRIPTOR' : _TRANSACTIONWRITE, + '__module__' : 'messages_pb2' + # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.TransactionWrite) + }) +_sym_db.RegisterMessage(TransactionWrite) + +TransactionWriteCompleted = _reflection.GeneratedProtocolMessageType('TransactionWriteCompleted', (_message.Message,), { + 'DESCRIPTOR' : _TRANSACTIONWRITECOMPLETED, + '__module__' : 'messages_pb2' + # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.TransactionWriteCompleted) + }) +_sym_db.RegisterMessage(TransactionWriteCompleted) + +TransactionCommit = _reflection.GeneratedProtocolMessageType('TransactionCommit', (_message.Message,), { + 'DESCRIPTOR' : _TRANSACTIONCOMMIT, + '__module__' : 'messages_pb2' + # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.TransactionCommit) + }) +_sym_db.RegisterMessage(TransactionCommit) + +TransactionCommitCompleted = _reflection.GeneratedProtocolMessageType('TransactionCommitCompleted', (_message.Message,), { + 'DESCRIPTOR' : _TRANSACTIONCOMMITCOMPLETED, + '__module__' : 'messages_pb2' + # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.TransactionCommitCompleted) + }) +_sym_db.RegisterMessage(TransactionCommitCompleted) + +ReadEvent = _reflection.GeneratedProtocolMessageType('ReadEvent', (_message.Message,), { + 'DESCRIPTOR' : _READEVENT, + '__module__' : 'messages_pb2' + # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.ReadEvent) + }) +_sym_db.RegisterMessage(ReadEvent) + +ReadEventCompleted = _reflection.GeneratedProtocolMessageType('ReadEventCompleted', (_message.Message,), { + 'DESCRIPTOR' : _READEVENTCOMPLETED, + '__module__' : 'messages_pb2' + # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.ReadEventCompleted) + }) +_sym_db.RegisterMessage(ReadEventCompleted) + +ReadStreamEvents = _reflection.GeneratedProtocolMessageType('ReadStreamEvents', (_message.Message,), { + 'DESCRIPTOR' : _READSTREAMEVENTS, + '__module__' : 'messages_pb2' + # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.ReadStreamEvents) + }) +_sym_db.RegisterMessage(ReadStreamEvents) + +ReadStreamEventsCompleted = _reflection.GeneratedProtocolMessageType('ReadStreamEventsCompleted', (_message.Message,), { + 'DESCRIPTOR' : _READSTREAMEVENTSCOMPLETED, + '__module__' : 'messages_pb2' + # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.ReadStreamEventsCompleted) + }) +_sym_db.RegisterMessage(ReadStreamEventsCompleted) + +ReadAllEvents = _reflection.GeneratedProtocolMessageType('ReadAllEvents', (_message.Message,), { + 'DESCRIPTOR' : _READALLEVENTS, + '__module__' : 'messages_pb2' + # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.ReadAllEvents) + }) +_sym_db.RegisterMessage(ReadAllEvents) + +ReadAllEventsCompleted = _reflection.GeneratedProtocolMessageType('ReadAllEventsCompleted', (_message.Message,), { + 'DESCRIPTOR' : _READALLEVENTSCOMPLETED, + '__module__' : 'messages_pb2' + # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.ReadAllEventsCompleted) + }) +_sym_db.RegisterMessage(ReadAllEventsCompleted) + +Filter = _reflection.GeneratedProtocolMessageType('Filter', (_message.Message,), { + 'DESCRIPTOR' : _FILTER, + '__module__' : 'messages_pb2' + # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.Filter) + }) +_sym_db.RegisterMessage(Filter) + +FilteredReadAllEvents = _reflection.GeneratedProtocolMessageType('FilteredReadAllEvents', (_message.Message,), { + 'DESCRIPTOR' : _FILTEREDREADALLEVENTS, + '__module__' : 'messages_pb2' + # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.FilteredReadAllEvents) + }) +_sym_db.RegisterMessage(FilteredReadAllEvents) + +FilteredReadAllEventsCompleted = _reflection.GeneratedProtocolMessageType('FilteredReadAllEventsCompleted', (_message.Message,), { + 'DESCRIPTOR' : _FILTEREDREADALLEVENTSCOMPLETED, + '__module__' : 'messages_pb2' + # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.FilteredReadAllEventsCompleted) + }) +_sym_db.RegisterMessage(FilteredReadAllEventsCompleted) + +CreatePersistentSubscription = _reflection.GeneratedProtocolMessageType('CreatePersistentSubscription', (_message.Message,), { + 'DESCRIPTOR' : _CREATEPERSISTENTSUBSCRIPTION, + '__module__' : 'messages_pb2' + # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.CreatePersistentSubscription) + }) +_sym_db.RegisterMessage(CreatePersistentSubscription) + +DeletePersistentSubscription = _reflection.GeneratedProtocolMessageType('DeletePersistentSubscription', (_message.Message,), { + 'DESCRIPTOR' : _DELETEPERSISTENTSUBSCRIPTION, + '__module__' : 'messages_pb2' + # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.DeletePersistentSubscription) + }) +_sym_db.RegisterMessage(DeletePersistentSubscription) + +UpdatePersistentSubscription = _reflection.GeneratedProtocolMessageType('UpdatePersistentSubscription', (_message.Message,), { + 'DESCRIPTOR' : _UPDATEPERSISTENTSUBSCRIPTION, + '__module__' : 'messages_pb2' + # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.UpdatePersistentSubscription) + }) +_sym_db.RegisterMessage(UpdatePersistentSubscription) + +UpdatePersistentSubscriptionCompleted = _reflection.GeneratedProtocolMessageType('UpdatePersistentSubscriptionCompleted', (_message.Message,), { + 'DESCRIPTOR' : _UPDATEPERSISTENTSUBSCRIPTIONCOMPLETED, + '__module__' : 'messages_pb2' + # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.UpdatePersistentSubscriptionCompleted) + }) +_sym_db.RegisterMessage(UpdatePersistentSubscriptionCompleted) + +CreatePersistentSubscriptionCompleted = _reflection.GeneratedProtocolMessageType('CreatePersistentSubscriptionCompleted', (_message.Message,), { + 'DESCRIPTOR' : _CREATEPERSISTENTSUBSCRIPTIONCOMPLETED, + '__module__' : 'messages_pb2' + # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.CreatePersistentSubscriptionCompleted) + }) +_sym_db.RegisterMessage(CreatePersistentSubscriptionCompleted) + +DeletePersistentSubscriptionCompleted = _reflection.GeneratedProtocolMessageType('DeletePersistentSubscriptionCompleted', (_message.Message,), { + 'DESCRIPTOR' : _DELETEPERSISTENTSUBSCRIPTIONCOMPLETED, + '__module__' : 'messages_pb2' + # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.DeletePersistentSubscriptionCompleted) + }) +_sym_db.RegisterMessage(DeletePersistentSubscriptionCompleted) + +ConnectToPersistentSubscription = _reflection.GeneratedProtocolMessageType('ConnectToPersistentSubscription', (_message.Message,), { + 'DESCRIPTOR' : _CONNECTTOPERSISTENTSUBSCRIPTION, + '__module__' : 'messages_pb2' + # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.ConnectToPersistentSubscription) + }) +_sym_db.RegisterMessage(ConnectToPersistentSubscription) + +PersistentSubscriptionAckEvents = _reflection.GeneratedProtocolMessageType('PersistentSubscriptionAckEvents', (_message.Message,), { + 'DESCRIPTOR' : _PERSISTENTSUBSCRIPTIONACKEVENTS, + '__module__' : 'messages_pb2' + # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.PersistentSubscriptionAckEvents) + }) +_sym_db.RegisterMessage(PersistentSubscriptionAckEvents) + +PersistentSubscriptionNakEvents = _reflection.GeneratedProtocolMessageType('PersistentSubscriptionNakEvents', (_message.Message,), { + 'DESCRIPTOR' : _PERSISTENTSUBSCRIPTIONNAKEVENTS, + '__module__' : 'messages_pb2' + # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.PersistentSubscriptionNakEvents) + }) +_sym_db.RegisterMessage(PersistentSubscriptionNakEvents) + +PersistentSubscriptionConfirmation = _reflection.GeneratedProtocolMessageType('PersistentSubscriptionConfirmation', (_message.Message,), { + 'DESCRIPTOR' : _PERSISTENTSUBSCRIPTIONCONFIRMATION, + '__module__' : 'messages_pb2' + # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.PersistentSubscriptionConfirmation) + }) +_sym_db.RegisterMessage(PersistentSubscriptionConfirmation) + +PersistentSubscriptionStreamEventAppeared = _reflection.GeneratedProtocolMessageType('PersistentSubscriptionStreamEventAppeared', (_message.Message,), { + 'DESCRIPTOR' : _PERSISTENTSUBSCRIPTIONSTREAMEVENTAPPEARED, + '__module__' : 'messages_pb2' + # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.PersistentSubscriptionStreamEventAppeared) + }) +_sym_db.RegisterMessage(PersistentSubscriptionStreamEventAppeared) + +SubscribeToStream = _reflection.GeneratedProtocolMessageType('SubscribeToStream', (_message.Message,), { + 'DESCRIPTOR' : _SUBSCRIBETOSTREAM, + '__module__' : 'messages_pb2' + # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.SubscribeToStream) + }) +_sym_db.RegisterMessage(SubscribeToStream) + +FilteredSubscribeToStream = _reflection.GeneratedProtocolMessageType('FilteredSubscribeToStream', (_message.Message,), { + 'DESCRIPTOR' : _FILTEREDSUBSCRIBETOSTREAM, + '__module__' : 'messages_pb2' + # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.FilteredSubscribeToStream) + }) +_sym_db.RegisterMessage(FilteredSubscribeToStream) + +CheckpointReached = _reflection.GeneratedProtocolMessageType('CheckpointReached', (_message.Message,), { + 'DESCRIPTOR' : _CHECKPOINTREACHED, + '__module__' : 'messages_pb2' + # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.CheckpointReached) + }) +_sym_db.RegisterMessage(CheckpointReached) + +SubscriptionConfirmation = _reflection.GeneratedProtocolMessageType('SubscriptionConfirmation', (_message.Message,), { + 'DESCRIPTOR' : _SUBSCRIPTIONCONFIRMATION, + '__module__' : 'messages_pb2' + # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.SubscriptionConfirmation) + }) +_sym_db.RegisterMessage(SubscriptionConfirmation) + +StreamEventAppeared = _reflection.GeneratedProtocolMessageType('StreamEventAppeared', (_message.Message,), { + 'DESCRIPTOR' : _STREAMEVENTAPPEARED, + '__module__' : 'messages_pb2' + # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.StreamEventAppeared) + }) +_sym_db.RegisterMessage(StreamEventAppeared) + +UnsubscribeFromStream = _reflection.GeneratedProtocolMessageType('UnsubscribeFromStream', (_message.Message,), { + 'DESCRIPTOR' : _UNSUBSCRIBEFROMSTREAM, + '__module__' : 'messages_pb2' + # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.UnsubscribeFromStream) + }) +_sym_db.RegisterMessage(UnsubscribeFromStream) + +SubscriptionDropped = _reflection.GeneratedProtocolMessageType('SubscriptionDropped', (_message.Message,), { + 'DESCRIPTOR' : _SUBSCRIPTIONDROPPED, + '__module__' : 'messages_pb2' + # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.SubscriptionDropped) + }) +_sym_db.RegisterMessage(SubscriptionDropped) + +NotHandled = _reflection.GeneratedProtocolMessageType('NotHandled', (_message.Message,), { + + 'LeaderInfo' : _reflection.GeneratedProtocolMessageType('LeaderInfo', (_message.Message,), { + 'DESCRIPTOR' : _NOTHANDLED_LEADERINFO, + '__module__' : 'messages_pb2' + # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.NotHandled.LeaderInfo) + }) + , + 'DESCRIPTOR' : _NOTHANDLED, + '__module__' : 'messages_pb2' + # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.NotHandled) + }) +_sym_db.RegisterMessage(NotHandled) +_sym_db.RegisterMessage(NotHandled.LeaderInfo) + +ScavengeDatabase = _reflection.GeneratedProtocolMessageType('ScavengeDatabase', (_message.Message,), { + 'DESCRIPTOR' : _SCAVENGEDATABASE, + '__module__' : 'messages_pb2' + # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.ScavengeDatabase) + }) +_sym_db.RegisterMessage(ScavengeDatabase) + +ScavengeDatabaseResponse = _reflection.GeneratedProtocolMessageType('ScavengeDatabaseResponse', (_message.Message,), { + 'DESCRIPTOR' : _SCAVENGEDATABASERESPONSE, + '__module__' : 'messages_pb2' + # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.ScavengeDatabaseResponse) + }) +_sym_db.RegisterMessage(ScavengeDatabaseResponse) + +IdentifyClient = _reflection.GeneratedProtocolMessageType('IdentifyClient', (_message.Message,), { + 'DESCRIPTOR' : _IDENTIFYCLIENT, + '__module__' : 'messages_pb2' + # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.IdentifyClient) + }) +_sym_db.RegisterMessage(IdentifyClient) + +ClientIdentified = _reflection.GeneratedProtocolMessageType('ClientIdentified', (_message.Message,), { + 'DESCRIPTOR' : _CLIENTIDENTIFIED, + '__module__' : 'messages_pb2' + # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.ClientIdentified) + }) +_sym_db.RegisterMessage(ClientIdentified) + +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + _OPERATIONRESULT._serialized_start=8621 + _OPERATIONRESULT._serialized_end=8797 + _NEWEVENT._serialized_start=47 + _NEWEVENT._serialized_end=185 + _EVENTRECORD._serialized_start=188 + _EVENTRECORD._serialized_end=416 + _RESOLVEDINDEXEDEVENT._serialized_start=419 + _RESOLVEDINDEXEDEVENT._serialized_end=552 + _RESOLVEDEVENT._serialized_start=555 + _RESOLVEDEVENT._serialized_end=732 + _WRITEEVENTS._serialized_start=735 + _WRITEEVENTS._serialized_end=877 + _WRITEEVENTSCOMPLETED._serialized_start=880 + _WRITEEVENTSCOMPLETED._serialized_end=1111 + _DELETESTREAM._serialized_start=1113 + _DELETESTREAM._serialized_end=1223 + _DELETESTREAMCOMPLETED._serialized_start=1226 + _DELETESTREAMCOMPLETED._serialized_end=1378 + _TRANSACTIONSTART._serialized_start=1380 + _TRANSACTIONSTART._serialized_end=1473 + _TRANSACTIONSTARTCOMPLETED._serialized_start=1476 + _TRANSACTIONSTARTCOMPLETED._serialized_end=1605 + _TRANSACTIONWRITE._serialized_start=1607 + _TRANSACTIONWRITE._serialized_end=1727 + _TRANSACTIONWRITECOMPLETED._serialized_start=1730 + _TRANSACTIONWRITECOMPLETED._serialized_end=1859 + _TRANSACTIONCOMMIT._serialized_start=1861 + _TRANSACTIONCOMMIT._serialized_end=1928 + _TRANSACTIONCOMMITCOMPLETED._serialized_start=1931 + _TRANSACTIONCOMMITCOMPLETED._serialized_end=2167 + _READEVENT._serialized_start=2169 + _READEVENT._serialized_end=2277 + _READEVENTCOMPLETED._serialized_start=2280 + _READEVENTCOMPLETED._serialized_end=2568 + _READEVENTCOMPLETED_READEVENTRESULT._serialized_start=2462 + _READEVENTCOMPLETED_READEVENTRESULT._serialized_end=2568 + _READSTREAMEVENTS._serialized_start=2571 + _READSTREAMEVENTS._serialized_end=2710 + _READSTREAMEVENTSCOMPLETED._serialized_start=2713 + _READSTREAMEVENTSCOMPLETED._serialized_end=3131 + _READSTREAMEVENTSCOMPLETED_READSTREAMRESULT._serialized_start=3021 + _READSTREAMEVENTSCOMPLETED_READSTREAMRESULT._serialized_end=3131 + _READALLEVENTS._serialized_start=3134 + _READALLEVENTS._serialized_end=3269 + _READALLEVENTSCOMPLETED._serialized_start=3272 + _READALLEVENTSCOMPLETED._serialized_end=3649 + _READALLEVENTSCOMPLETED_READALLRESULT._serialized_start=3575 + _READALLEVENTSCOMPLETED_READALLRESULT._serialized_end=3649 + _FILTER._serialized_start=3652 + _FILTER._serialized_end=3885 + _FILTER_FILTERCONTEXT._serialized_start=3804 + _FILTER_FILTERCONTEXT._serialized_end=3848 + _FILTER_FILTERTYPE._serialized_start=3850 + _FILTER_FILTERTYPE._serialized_end=3885 + _FILTEREDREADALLEVENTS._serialized_start=3888 + _FILTEREDREADALLEVENTS._serialized_end=4110 + _FILTEREDREADALLEVENTSCOMPLETED._serialized_start=4113 + _FILTEREDREADALLEVENTSCOMPLETED._serialized_end=4548 + _FILTEREDREADALLEVENTSCOMPLETED_FILTEREDREADALLRESULT._serialized_start=4466 + _FILTEREDREADALLEVENTSCOMPLETED_FILTEREDREADALLRESULT._serialized_end=4548 + _CREATEPERSISTENTSUBSCRIPTION._serialized_start=4551 + _CREATEPERSISTENTSUBSCRIPTION._serialized_end=5029 + _DELETEPERSISTENTSUBSCRIPTION._serialized_start=5031 + _DELETEPERSISTENTSUBSCRIPTION._serialized_end=5119 + _UPDATEPERSISTENTSUBSCRIPTION._serialized_start=5122 + _UPDATEPERSISTENTSUBSCRIPTION._serialized_end=5600 + _UPDATEPERSISTENTSUBSCRIPTIONCOMPLETED._serialized_start=5603 + _UPDATEPERSISTENTSUBSCRIPTIONCOMPLETED._serialized_end=5882 + _UPDATEPERSISTENTSUBSCRIPTIONCOMPLETED_UPDATEPERSISTENTSUBSCRIPTIONRESULT._serialized_start=5787 + _UPDATEPERSISTENTSUBSCRIPTIONCOMPLETED_UPDATEPERSISTENTSUBSCRIPTIONRESULT._serialized_end=5882 + _CREATEPERSISTENTSUBSCRIPTIONCOMPLETED._serialized_start=5885 + _CREATEPERSISTENTSUBSCRIPTIONCOMPLETED._serialized_end=6165 + _CREATEPERSISTENTSUBSCRIPTIONCOMPLETED_CREATEPERSISTENTSUBSCRIPTIONRESULT._serialized_start=6069 + _CREATEPERSISTENTSUBSCRIPTIONCOMPLETED_CREATEPERSISTENTSUBSCRIPTIONRESULT._serialized_end=6165 + _DELETEPERSISTENTSUBSCRIPTIONCOMPLETED._serialized_start=6168 + _DELETEPERSISTENTSUBSCRIPTIONCOMPLETED._serialized_end=6447 + _DELETEPERSISTENTSUBSCRIPTIONCOMPLETED_DELETEPERSISTENTSUBSCRIPTIONRESULT._serialized_start=6352 + _DELETEPERSISTENTSUBSCRIPTIONCOMPLETED_DELETEPERSISTENTSUBSCRIPTIONRESULT._serialized_end=6447 + _CONNECTTOPERSISTENTSUBSCRIPTION._serialized_start=6449 + _CONNECTTOPERSISTENTSUBSCRIPTION._serialized_end=6568 + _PERSISTENTSUBSCRIPTIONACKEVENTS._serialized_start=6570 + _PERSISTENTSUBSCRIPTIONACKEVENTS._serialized_end=6657 + _PERSISTENTSUBSCRIPTIONNAKEVENTS._serialized_start=6660 + _PERSISTENTSUBSCRIPTIONNAKEVENTS._serialized_end=6927 + _PERSISTENTSUBSCRIPTIONNAKEVENTS_NAKACTION._serialized_start=6862 + _PERSISTENTSUBSCRIPTIONNAKEVENTS_NAKACTION._serialized_end=6927 + _PERSISTENTSUBSCRIPTIONCONFIRMATION._serialized_start=6929 + _PERSISTENTSUBSCRIPTIONCONFIRMATION._serialized_end=7047 + _PERSISTENTSUBSCRIPTIONSTREAMEVENTAPPEARED._serialized_start=7050 + _PERSISTENTSUBSCRIPTIONSTREAMEVENTAPPEARED._serialized_end=7178 + _SUBSCRIBETOSTREAM._serialized_start=7180 + _SUBSCRIBETOSTREAM._serialized_end=7250 + _FILTEREDSUBSCRIBETOSTREAM._serialized_start=7253 + _FILTEREDSUBSCRIBETOSTREAM._serialized_end=7412 + _CHECKPOINTREACHED._serialized_start=7414 + _CHECKPOINTREACHED._serialized_end=7484 + _SUBSCRIPTIONCONFIRMATION._serialized_start=7486 + _SUBSCRIPTIONCONFIRMATION._serialized_end=7569 + _STREAMEVENTAPPEARED._serialized_start=7571 + _STREAMEVENTAPPEARED._serialized_end=7650 + _UNSUBSCRIBEFROMSTREAM._serialized_start=7652 + _UNSUBSCRIBEFROMSTREAM._serialized_end=7675 + _SUBSCRIPTIONDROPPED._serialized_start=7678 + _SUBSCRIPTIONDROPPED._serialized_end=7944 + _SUBSCRIPTIONDROPPED_SUBSCRIPTIONDROPREASON._serialized_start=7804 + _SUBSCRIPTIONDROPPED_SUBSCRIPTIONDROPREASON._serialized_end=7944 + _NOTHANDLED._serialized_start=7947 + _NOTHANDLED._serialized_end=8319 + _NOTHANDLED_LEADERINFO._serialized_start=8060 + _NOTHANDLED_LEADERINFO._serialized_end=8241 + _NOTHANDLED_NOTHANDLEDREASON._serialized_start=8243 + _NOTHANDLED_NOTHANDLEDREASON._serialized_end=8319 + _SCAVENGEDATABASE._serialized_start=8321 + _SCAVENGEDATABASE._serialized_end=8339 + _SCAVENGEDATABASERESPONSE._serialized_start=8342 + _SCAVENGEDATABASERESPONSE._serialized_end=8538 + _SCAVENGEDATABASERESPONSE_SCAVENGERESULT._serialized_start=8475 + _SCAVENGEDATABASERESPONSE_SCAVENGERESULT._serialized_end=8538 + _IDENTIFYCLIENT._serialized_start=8540 + _IDENTIFYCLIENT._serialized_end=8598 + _CLIENTIDENTIFIED._serialized_start=8600 + _CLIENTIDENTIFIED._serialized_end=8618 +# @@protoc_insertion_point(module_scope) diff --git a/messages_pb2.pyi b/messages_pb2.pyi new file mode 100644 index 0000000..f87ac11 --- /dev/null +++ b/messages_pb2.pyi @@ -0,0 +1,1260 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.internal.enum_type_wrapper +import google.protobuf.message +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor + +class _OperationResult: + ValueType = typing.NewType('ValueType', builtins.int) + V: typing_extensions.TypeAlias = ValueType +class _OperationResultEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_OperationResult.ValueType], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor + Success: _OperationResult.ValueType # 0 + PrepareTimeout: _OperationResult.ValueType # 1 + CommitTimeout: _OperationResult.ValueType # 2 + ForwardTimeout: _OperationResult.ValueType # 3 + WrongExpectedVersion: _OperationResult.ValueType # 4 + StreamDeleted: _OperationResult.ValueType # 5 + InvalidTransaction: _OperationResult.ValueType # 6 + AccessDenied: _OperationResult.ValueType # 7 +class OperationResult(_OperationResult, metaclass=_OperationResultEnumTypeWrapper): + pass + +Success: OperationResult.ValueType # 0 +PrepareTimeout: OperationResult.ValueType # 1 +CommitTimeout: OperationResult.ValueType # 2 +ForwardTimeout: OperationResult.ValueType # 3 +WrongExpectedVersion: OperationResult.ValueType # 4 +StreamDeleted: OperationResult.ValueType # 5 +InvalidTransaction: OperationResult.ValueType # 6 +AccessDenied: OperationResult.ValueType # 7 +global___OperationResult = OperationResult + + +class NewEvent(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + EVENT_ID_FIELD_NUMBER: builtins.int + EVENT_TYPE_FIELD_NUMBER: builtins.int + DATA_CONTENT_TYPE_FIELD_NUMBER: builtins.int + METADATA_CONTENT_TYPE_FIELD_NUMBER: builtins.int + DATA_FIELD_NUMBER: builtins.int + METADATA_FIELD_NUMBER: builtins.int + event_id: builtins.bytes + event_type: typing.Text + data_content_type: builtins.int + metadata_content_type: builtins.int + data: builtins.bytes + metadata: builtins.bytes + def __init__(self, + *, + event_id: typing.Optional[builtins.bytes] = ..., + event_type: typing.Optional[typing.Text] = ..., + data_content_type: typing.Optional[builtins.int] = ..., + metadata_content_type: typing.Optional[builtins.int] = ..., + data: typing.Optional[builtins.bytes] = ..., + metadata: typing.Optional[builtins.bytes] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["data",b"data","data_content_type",b"data_content_type","event_id",b"event_id","event_type",b"event_type","metadata",b"metadata","metadata_content_type",b"metadata_content_type"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["data",b"data","data_content_type",b"data_content_type","event_id",b"event_id","event_type",b"event_type","metadata",b"metadata","metadata_content_type",b"metadata_content_type"]) -> None: ... +global___NewEvent = NewEvent + +class EventRecord(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + EVENT_STREAM_ID_FIELD_NUMBER: builtins.int + EVENT_NUMBER_FIELD_NUMBER: builtins.int + EVENT_ID_FIELD_NUMBER: builtins.int + EVENT_TYPE_FIELD_NUMBER: builtins.int + DATA_CONTENT_TYPE_FIELD_NUMBER: builtins.int + METADATA_CONTENT_TYPE_FIELD_NUMBER: builtins.int + DATA_FIELD_NUMBER: builtins.int + METADATA_FIELD_NUMBER: builtins.int + CREATED_FIELD_NUMBER: builtins.int + CREATED_EPOCH_FIELD_NUMBER: builtins.int + event_stream_id: typing.Text + event_number: builtins.int + event_id: builtins.bytes + event_type: typing.Text + data_content_type: builtins.int + metadata_content_type: builtins.int + data: builtins.bytes + metadata: builtins.bytes + created: builtins.int + created_epoch: builtins.int + def __init__(self, + *, + event_stream_id: typing.Optional[typing.Text] = ..., + event_number: typing.Optional[builtins.int] = ..., + event_id: typing.Optional[builtins.bytes] = ..., + event_type: typing.Optional[typing.Text] = ..., + data_content_type: typing.Optional[builtins.int] = ..., + metadata_content_type: typing.Optional[builtins.int] = ..., + data: typing.Optional[builtins.bytes] = ..., + metadata: typing.Optional[builtins.bytes] = ..., + created: typing.Optional[builtins.int] = ..., + created_epoch: typing.Optional[builtins.int] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["created",b"created","created_epoch",b"created_epoch","data",b"data","data_content_type",b"data_content_type","event_id",b"event_id","event_number",b"event_number","event_stream_id",b"event_stream_id","event_type",b"event_type","metadata",b"metadata","metadata_content_type",b"metadata_content_type"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["created",b"created","created_epoch",b"created_epoch","data",b"data","data_content_type",b"data_content_type","event_id",b"event_id","event_number",b"event_number","event_stream_id",b"event_stream_id","event_type",b"event_type","metadata",b"metadata","metadata_content_type",b"metadata_content_type"]) -> None: ... +global___EventRecord = EventRecord + +class ResolvedIndexedEvent(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + EVENT_FIELD_NUMBER: builtins.int + LINK_FIELD_NUMBER: builtins.int + @property + def event(self) -> global___EventRecord: ... + @property + def link(self) -> global___EventRecord: ... + def __init__(self, + *, + event: typing.Optional[global___EventRecord] = ..., + link: typing.Optional[global___EventRecord] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["event",b"event","link",b"link"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["event",b"event","link",b"link"]) -> None: ... +global___ResolvedIndexedEvent = ResolvedIndexedEvent + +class ResolvedEvent(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + EVENT_FIELD_NUMBER: builtins.int + LINK_FIELD_NUMBER: builtins.int + COMMIT_POSITION_FIELD_NUMBER: builtins.int + PREPARE_POSITION_FIELD_NUMBER: builtins.int + @property + def event(self) -> global___EventRecord: ... + @property + def link(self) -> global___EventRecord: ... + commit_position: builtins.int + prepare_position: builtins.int + def __init__(self, + *, + event: typing.Optional[global___EventRecord] = ..., + link: typing.Optional[global___EventRecord] = ..., + commit_position: typing.Optional[builtins.int] = ..., + prepare_position: typing.Optional[builtins.int] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["commit_position",b"commit_position","event",b"event","link",b"link","prepare_position",b"prepare_position"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["commit_position",b"commit_position","event",b"event","link",b"link","prepare_position",b"prepare_position"]) -> None: ... +global___ResolvedEvent = ResolvedEvent + +class WriteEvents(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + EVENT_STREAM_ID_FIELD_NUMBER: builtins.int + EXPECTED_VERSION_FIELD_NUMBER: builtins.int + EVENTS_FIELD_NUMBER: builtins.int + REQUIRE_LEADER_FIELD_NUMBER: builtins.int + event_stream_id: typing.Text + expected_version: builtins.int + @property + def events(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___NewEvent]: ... + require_leader: builtins.bool + def __init__(self, + *, + event_stream_id: typing.Optional[typing.Text] = ..., + expected_version: typing.Optional[builtins.int] = ..., + events: typing.Optional[typing.Iterable[global___NewEvent]] = ..., + require_leader: typing.Optional[builtins.bool] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["event_stream_id",b"event_stream_id","expected_version",b"expected_version","require_leader",b"require_leader"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["event_stream_id",b"event_stream_id","events",b"events","expected_version",b"expected_version","require_leader",b"require_leader"]) -> None: ... +global___WriteEvents = WriteEvents + +class WriteEventsCompleted(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + RESULT_FIELD_NUMBER: builtins.int + MESSAGE_FIELD_NUMBER: builtins.int + FIRST_EVENT_NUMBER_FIELD_NUMBER: builtins.int + LAST_EVENT_NUMBER_FIELD_NUMBER: builtins.int + PREPARE_POSITION_FIELD_NUMBER: builtins.int + COMMIT_POSITION_FIELD_NUMBER: builtins.int + CURRENT_VERSION_FIELD_NUMBER: builtins.int + result: global___OperationResult.ValueType + message: typing.Text + first_event_number: builtins.int + last_event_number: builtins.int + prepare_position: builtins.int + commit_position: builtins.int + current_version: builtins.int + def __init__(self, + *, + result: typing.Optional[global___OperationResult.ValueType] = ..., + message: typing.Optional[typing.Text] = ..., + first_event_number: typing.Optional[builtins.int] = ..., + last_event_number: typing.Optional[builtins.int] = ..., + prepare_position: typing.Optional[builtins.int] = ..., + commit_position: typing.Optional[builtins.int] = ..., + current_version: typing.Optional[builtins.int] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["commit_position",b"commit_position","current_version",b"current_version","first_event_number",b"first_event_number","last_event_number",b"last_event_number","message",b"message","prepare_position",b"prepare_position","result",b"result"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["commit_position",b"commit_position","current_version",b"current_version","first_event_number",b"first_event_number","last_event_number",b"last_event_number","message",b"message","prepare_position",b"prepare_position","result",b"result"]) -> None: ... +global___WriteEventsCompleted = WriteEventsCompleted + +class DeleteStream(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + EVENT_STREAM_ID_FIELD_NUMBER: builtins.int + EXPECTED_VERSION_FIELD_NUMBER: builtins.int + REQUIRE_LEADER_FIELD_NUMBER: builtins.int + HARD_DELETE_FIELD_NUMBER: builtins.int + event_stream_id: typing.Text + expected_version: builtins.int + require_leader: builtins.bool + hard_delete: builtins.bool + def __init__(self, + *, + event_stream_id: typing.Optional[typing.Text] = ..., + expected_version: typing.Optional[builtins.int] = ..., + require_leader: typing.Optional[builtins.bool] = ..., + hard_delete: typing.Optional[builtins.bool] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["event_stream_id",b"event_stream_id","expected_version",b"expected_version","hard_delete",b"hard_delete","require_leader",b"require_leader"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["event_stream_id",b"event_stream_id","expected_version",b"expected_version","hard_delete",b"hard_delete","require_leader",b"require_leader"]) -> None: ... +global___DeleteStream = DeleteStream + +class DeleteStreamCompleted(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + RESULT_FIELD_NUMBER: builtins.int + MESSAGE_FIELD_NUMBER: builtins.int + PREPARE_POSITION_FIELD_NUMBER: builtins.int + COMMIT_POSITION_FIELD_NUMBER: builtins.int + result: global___OperationResult.ValueType + message: typing.Text + prepare_position: builtins.int + commit_position: builtins.int + def __init__(self, + *, + result: typing.Optional[global___OperationResult.ValueType] = ..., + message: typing.Optional[typing.Text] = ..., + prepare_position: typing.Optional[builtins.int] = ..., + commit_position: typing.Optional[builtins.int] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["commit_position",b"commit_position","message",b"message","prepare_position",b"prepare_position","result",b"result"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["commit_position",b"commit_position","message",b"message","prepare_position",b"prepare_position","result",b"result"]) -> None: ... +global___DeleteStreamCompleted = DeleteStreamCompleted + +class TransactionStart(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + EVENT_STREAM_ID_FIELD_NUMBER: builtins.int + EXPECTED_VERSION_FIELD_NUMBER: builtins.int + REQUIRE_LEADER_FIELD_NUMBER: builtins.int + event_stream_id: typing.Text + expected_version: builtins.int + require_leader: builtins.bool + def __init__(self, + *, + event_stream_id: typing.Optional[typing.Text] = ..., + expected_version: typing.Optional[builtins.int] = ..., + require_leader: typing.Optional[builtins.bool] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["event_stream_id",b"event_stream_id","expected_version",b"expected_version","require_leader",b"require_leader"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["event_stream_id",b"event_stream_id","expected_version",b"expected_version","require_leader",b"require_leader"]) -> None: ... +global___TransactionStart = TransactionStart + +class TransactionStartCompleted(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + TRANSACTION_ID_FIELD_NUMBER: builtins.int + RESULT_FIELD_NUMBER: builtins.int + MESSAGE_FIELD_NUMBER: builtins.int + transaction_id: builtins.int + result: global___OperationResult.ValueType + message: typing.Text + def __init__(self, + *, + transaction_id: typing.Optional[builtins.int] = ..., + result: typing.Optional[global___OperationResult.ValueType] = ..., + message: typing.Optional[typing.Text] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["message",b"message","result",b"result","transaction_id",b"transaction_id"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["message",b"message","result",b"result","transaction_id",b"transaction_id"]) -> None: ... +global___TransactionStartCompleted = TransactionStartCompleted + +class TransactionWrite(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + TRANSACTION_ID_FIELD_NUMBER: builtins.int + EVENTS_FIELD_NUMBER: builtins.int + REQUIRE_LEADER_FIELD_NUMBER: builtins.int + transaction_id: builtins.int + @property + def events(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___NewEvent]: ... + require_leader: builtins.bool + def __init__(self, + *, + transaction_id: typing.Optional[builtins.int] = ..., + events: typing.Optional[typing.Iterable[global___NewEvent]] = ..., + require_leader: typing.Optional[builtins.bool] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["require_leader",b"require_leader","transaction_id",b"transaction_id"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["events",b"events","require_leader",b"require_leader","transaction_id",b"transaction_id"]) -> None: ... +global___TransactionWrite = TransactionWrite + +class TransactionWriteCompleted(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + TRANSACTION_ID_FIELD_NUMBER: builtins.int + RESULT_FIELD_NUMBER: builtins.int + MESSAGE_FIELD_NUMBER: builtins.int + transaction_id: builtins.int + result: global___OperationResult.ValueType + message: typing.Text + def __init__(self, + *, + transaction_id: typing.Optional[builtins.int] = ..., + result: typing.Optional[global___OperationResult.ValueType] = ..., + message: typing.Optional[typing.Text] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["message",b"message","result",b"result","transaction_id",b"transaction_id"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["message",b"message","result",b"result","transaction_id",b"transaction_id"]) -> None: ... +global___TransactionWriteCompleted = TransactionWriteCompleted + +class TransactionCommit(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + TRANSACTION_ID_FIELD_NUMBER: builtins.int + REQUIRE_LEADER_FIELD_NUMBER: builtins.int + transaction_id: builtins.int + require_leader: builtins.bool + def __init__(self, + *, + transaction_id: typing.Optional[builtins.int] = ..., + require_leader: typing.Optional[builtins.bool] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["require_leader",b"require_leader","transaction_id",b"transaction_id"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["require_leader",b"require_leader","transaction_id",b"transaction_id"]) -> None: ... +global___TransactionCommit = TransactionCommit + +class TransactionCommitCompleted(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + TRANSACTION_ID_FIELD_NUMBER: builtins.int + RESULT_FIELD_NUMBER: builtins.int + MESSAGE_FIELD_NUMBER: builtins.int + FIRST_EVENT_NUMBER_FIELD_NUMBER: builtins.int + LAST_EVENT_NUMBER_FIELD_NUMBER: builtins.int + PREPARE_POSITION_FIELD_NUMBER: builtins.int + COMMIT_POSITION_FIELD_NUMBER: builtins.int + transaction_id: builtins.int + result: global___OperationResult.ValueType + message: typing.Text + first_event_number: builtins.int + last_event_number: builtins.int + prepare_position: builtins.int + commit_position: builtins.int + def __init__(self, + *, + transaction_id: typing.Optional[builtins.int] = ..., + result: typing.Optional[global___OperationResult.ValueType] = ..., + message: typing.Optional[typing.Text] = ..., + first_event_number: typing.Optional[builtins.int] = ..., + last_event_number: typing.Optional[builtins.int] = ..., + prepare_position: typing.Optional[builtins.int] = ..., + commit_position: typing.Optional[builtins.int] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["commit_position",b"commit_position","first_event_number",b"first_event_number","last_event_number",b"last_event_number","message",b"message","prepare_position",b"prepare_position","result",b"result","transaction_id",b"transaction_id"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["commit_position",b"commit_position","first_event_number",b"first_event_number","last_event_number",b"last_event_number","message",b"message","prepare_position",b"prepare_position","result",b"result","transaction_id",b"transaction_id"]) -> None: ... +global___TransactionCommitCompleted = TransactionCommitCompleted + +class ReadEvent(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + EVENT_STREAM_ID_FIELD_NUMBER: builtins.int + EVENT_NUMBER_FIELD_NUMBER: builtins.int + RESOLVE_LINK_TOS_FIELD_NUMBER: builtins.int + REQUIRE_LEADER_FIELD_NUMBER: builtins.int + event_stream_id: typing.Text + event_number: builtins.int + resolve_link_tos: builtins.bool + require_leader: builtins.bool + def __init__(self, + *, + event_stream_id: typing.Optional[typing.Text] = ..., + event_number: typing.Optional[builtins.int] = ..., + resolve_link_tos: typing.Optional[builtins.bool] = ..., + require_leader: typing.Optional[builtins.bool] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["event_number",b"event_number","event_stream_id",b"event_stream_id","require_leader",b"require_leader","resolve_link_tos",b"resolve_link_tos"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["event_number",b"event_number","event_stream_id",b"event_stream_id","require_leader",b"require_leader","resolve_link_tos",b"resolve_link_tos"]) -> None: ... +global___ReadEvent = ReadEvent + +class ReadEventCompleted(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + class _ReadEventResult: + ValueType = typing.NewType('ValueType', builtins.int) + V: typing_extensions.TypeAlias = ValueType + class _ReadEventResultEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[ReadEventCompleted._ReadEventResult.ValueType], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor + Success: ReadEventCompleted._ReadEventResult.ValueType # 0 + NotFound: ReadEventCompleted._ReadEventResult.ValueType # 1 + NoStream: ReadEventCompleted._ReadEventResult.ValueType # 2 + StreamDeleted: ReadEventCompleted._ReadEventResult.ValueType # 3 + Error: ReadEventCompleted._ReadEventResult.ValueType # 4 + AccessDenied: ReadEventCompleted._ReadEventResult.ValueType # 5 + class ReadEventResult(_ReadEventResult, metaclass=_ReadEventResultEnumTypeWrapper): + pass + + Success: ReadEventCompleted.ReadEventResult.ValueType # 0 + NotFound: ReadEventCompleted.ReadEventResult.ValueType # 1 + NoStream: ReadEventCompleted.ReadEventResult.ValueType # 2 + StreamDeleted: ReadEventCompleted.ReadEventResult.ValueType # 3 + Error: ReadEventCompleted.ReadEventResult.ValueType # 4 + AccessDenied: ReadEventCompleted.ReadEventResult.ValueType # 5 + + RESULT_FIELD_NUMBER: builtins.int + EVENT_FIELD_NUMBER: builtins.int + ERROR_FIELD_NUMBER: builtins.int + result: global___ReadEventCompleted.ReadEventResult.ValueType + @property + def event(self) -> global___ResolvedIndexedEvent: ... + error: typing.Text + def __init__(self, + *, + result: typing.Optional[global___ReadEventCompleted.ReadEventResult.ValueType] = ..., + event: typing.Optional[global___ResolvedIndexedEvent] = ..., + error: typing.Optional[typing.Text] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["error",b"error","event",b"event","result",b"result"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["error",b"error","event",b"event","result",b"result"]) -> None: ... +global___ReadEventCompleted = ReadEventCompleted + +class ReadStreamEvents(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + EVENT_STREAM_ID_FIELD_NUMBER: builtins.int + FROM_EVENT_NUMBER_FIELD_NUMBER: builtins.int + MAX_COUNT_FIELD_NUMBER: builtins.int + RESOLVE_LINK_TOS_FIELD_NUMBER: builtins.int + REQUIRE_LEADER_FIELD_NUMBER: builtins.int + event_stream_id: typing.Text + from_event_number: builtins.int + max_count: builtins.int + resolve_link_tos: builtins.bool + require_leader: builtins.bool + def __init__(self, + *, + event_stream_id: typing.Optional[typing.Text] = ..., + from_event_number: typing.Optional[builtins.int] = ..., + max_count: typing.Optional[builtins.int] = ..., + resolve_link_tos: typing.Optional[builtins.bool] = ..., + require_leader: typing.Optional[builtins.bool] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["event_stream_id",b"event_stream_id","from_event_number",b"from_event_number","max_count",b"max_count","require_leader",b"require_leader","resolve_link_tos",b"resolve_link_tos"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["event_stream_id",b"event_stream_id","from_event_number",b"from_event_number","max_count",b"max_count","require_leader",b"require_leader","resolve_link_tos",b"resolve_link_tos"]) -> None: ... +global___ReadStreamEvents = ReadStreamEvents + +class ReadStreamEventsCompleted(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + class _ReadStreamResult: + ValueType = typing.NewType('ValueType', builtins.int) + V: typing_extensions.TypeAlias = ValueType + class _ReadStreamResultEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[ReadStreamEventsCompleted._ReadStreamResult.ValueType], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor + Success: ReadStreamEventsCompleted._ReadStreamResult.ValueType # 0 + NoStream: ReadStreamEventsCompleted._ReadStreamResult.ValueType # 1 + StreamDeleted: ReadStreamEventsCompleted._ReadStreamResult.ValueType # 2 + NotModified: ReadStreamEventsCompleted._ReadStreamResult.ValueType # 3 + Error: ReadStreamEventsCompleted._ReadStreamResult.ValueType # 4 + AccessDenied: ReadStreamEventsCompleted._ReadStreamResult.ValueType # 5 + class ReadStreamResult(_ReadStreamResult, metaclass=_ReadStreamResultEnumTypeWrapper): + pass + + Success: ReadStreamEventsCompleted.ReadStreamResult.ValueType # 0 + NoStream: ReadStreamEventsCompleted.ReadStreamResult.ValueType # 1 + StreamDeleted: ReadStreamEventsCompleted.ReadStreamResult.ValueType # 2 + NotModified: ReadStreamEventsCompleted.ReadStreamResult.ValueType # 3 + Error: ReadStreamEventsCompleted.ReadStreamResult.ValueType # 4 + AccessDenied: ReadStreamEventsCompleted.ReadStreamResult.ValueType # 5 + + EVENTS_FIELD_NUMBER: builtins.int + RESULT_FIELD_NUMBER: builtins.int + NEXT_EVENT_NUMBER_FIELD_NUMBER: builtins.int + LAST_EVENT_NUMBER_FIELD_NUMBER: builtins.int + IS_END_OF_STREAM_FIELD_NUMBER: builtins.int + LAST_COMMIT_POSITION_FIELD_NUMBER: builtins.int + ERROR_FIELD_NUMBER: builtins.int + @property + def events(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ResolvedIndexedEvent]: ... + result: global___ReadStreamEventsCompleted.ReadStreamResult.ValueType + next_event_number: builtins.int + last_event_number: builtins.int + is_end_of_stream: builtins.bool + last_commit_position: builtins.int + error: typing.Text + def __init__(self, + *, + events: typing.Optional[typing.Iterable[global___ResolvedIndexedEvent]] = ..., + result: typing.Optional[global___ReadStreamEventsCompleted.ReadStreamResult.ValueType] = ..., + next_event_number: typing.Optional[builtins.int] = ..., + last_event_number: typing.Optional[builtins.int] = ..., + is_end_of_stream: typing.Optional[builtins.bool] = ..., + last_commit_position: typing.Optional[builtins.int] = ..., + error: typing.Optional[typing.Text] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["error",b"error","is_end_of_stream",b"is_end_of_stream","last_commit_position",b"last_commit_position","last_event_number",b"last_event_number","next_event_number",b"next_event_number","result",b"result"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["error",b"error","events",b"events","is_end_of_stream",b"is_end_of_stream","last_commit_position",b"last_commit_position","last_event_number",b"last_event_number","next_event_number",b"next_event_number","result",b"result"]) -> None: ... +global___ReadStreamEventsCompleted = ReadStreamEventsCompleted + +class ReadAllEvents(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + COMMIT_POSITION_FIELD_NUMBER: builtins.int + PREPARE_POSITION_FIELD_NUMBER: builtins.int + MAX_COUNT_FIELD_NUMBER: builtins.int + RESOLVE_LINK_TOS_FIELD_NUMBER: builtins.int + REQUIRE_LEADER_FIELD_NUMBER: builtins.int + commit_position: builtins.int + prepare_position: builtins.int + max_count: builtins.int + resolve_link_tos: builtins.bool + require_leader: builtins.bool + def __init__(self, + *, + commit_position: typing.Optional[builtins.int] = ..., + prepare_position: typing.Optional[builtins.int] = ..., + max_count: typing.Optional[builtins.int] = ..., + resolve_link_tos: typing.Optional[builtins.bool] = ..., + require_leader: typing.Optional[builtins.bool] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["commit_position",b"commit_position","max_count",b"max_count","prepare_position",b"prepare_position","require_leader",b"require_leader","resolve_link_tos",b"resolve_link_tos"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["commit_position",b"commit_position","max_count",b"max_count","prepare_position",b"prepare_position","require_leader",b"require_leader","resolve_link_tos",b"resolve_link_tos"]) -> None: ... +global___ReadAllEvents = ReadAllEvents + +class ReadAllEventsCompleted(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + class _ReadAllResult: + ValueType = typing.NewType('ValueType', builtins.int) + V: typing_extensions.TypeAlias = ValueType + class _ReadAllResultEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[ReadAllEventsCompleted._ReadAllResult.ValueType], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor + Success: ReadAllEventsCompleted._ReadAllResult.ValueType # 0 + NotModified: ReadAllEventsCompleted._ReadAllResult.ValueType # 1 + Error: ReadAllEventsCompleted._ReadAllResult.ValueType # 2 + AccessDenied: ReadAllEventsCompleted._ReadAllResult.ValueType # 3 + class ReadAllResult(_ReadAllResult, metaclass=_ReadAllResultEnumTypeWrapper): + pass + + Success: ReadAllEventsCompleted.ReadAllResult.ValueType # 0 + NotModified: ReadAllEventsCompleted.ReadAllResult.ValueType # 1 + Error: ReadAllEventsCompleted.ReadAllResult.ValueType # 2 + AccessDenied: ReadAllEventsCompleted.ReadAllResult.ValueType # 3 + + COMMIT_POSITION_FIELD_NUMBER: builtins.int + PREPARE_POSITION_FIELD_NUMBER: builtins.int + EVENTS_FIELD_NUMBER: builtins.int + NEXT_COMMIT_POSITION_FIELD_NUMBER: builtins.int + NEXT_PREPARE_POSITION_FIELD_NUMBER: builtins.int + RESULT_FIELD_NUMBER: builtins.int + ERROR_FIELD_NUMBER: builtins.int + commit_position: builtins.int + prepare_position: builtins.int + @property + def events(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ResolvedEvent]: ... + next_commit_position: builtins.int + next_prepare_position: builtins.int + result: global___ReadAllEventsCompleted.ReadAllResult.ValueType + error: typing.Text + def __init__(self, + *, + commit_position: typing.Optional[builtins.int] = ..., + prepare_position: typing.Optional[builtins.int] = ..., + events: typing.Optional[typing.Iterable[global___ResolvedEvent]] = ..., + next_commit_position: typing.Optional[builtins.int] = ..., + next_prepare_position: typing.Optional[builtins.int] = ..., + result: typing.Optional[global___ReadAllEventsCompleted.ReadAllResult.ValueType] = ..., + error: typing.Optional[typing.Text] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["commit_position",b"commit_position","error",b"error","next_commit_position",b"next_commit_position","next_prepare_position",b"next_prepare_position","prepare_position",b"prepare_position","result",b"result"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["commit_position",b"commit_position","error",b"error","events",b"events","next_commit_position",b"next_commit_position","next_prepare_position",b"next_prepare_position","prepare_position",b"prepare_position","result",b"result"]) -> None: ... +global___ReadAllEventsCompleted = ReadAllEventsCompleted + +class Filter(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + class _FilterContext: + ValueType = typing.NewType('ValueType', builtins.int) + V: typing_extensions.TypeAlias = ValueType + class _FilterContextEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[Filter._FilterContext.ValueType], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor + StreamId: Filter._FilterContext.ValueType # 0 + EventType: Filter._FilterContext.ValueType # 1 + class FilterContext(_FilterContext, metaclass=_FilterContextEnumTypeWrapper): + pass + + StreamId: Filter.FilterContext.ValueType # 0 + EventType: Filter.FilterContext.ValueType # 1 + + class _FilterType: + ValueType = typing.NewType('ValueType', builtins.int) + V: typing_extensions.TypeAlias = ValueType + class _FilterTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[Filter._FilterType.ValueType], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor + Regex: Filter._FilterType.ValueType # 0 + Prefix: Filter._FilterType.ValueType # 1 + class FilterType(_FilterType, metaclass=_FilterTypeEnumTypeWrapper): + pass + + Regex: Filter.FilterType.ValueType # 0 + Prefix: Filter.FilterType.ValueType # 1 + + CONTEXT_FIELD_NUMBER: builtins.int + TYPE_FIELD_NUMBER: builtins.int + DATA_FIELD_NUMBER: builtins.int + context: global___Filter.FilterContext.ValueType + type: global___Filter.FilterType.ValueType + @property + def data(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[typing.Text]: ... + def __init__(self, + *, + context: typing.Optional[global___Filter.FilterContext.ValueType] = ..., + type: typing.Optional[global___Filter.FilterType.ValueType] = ..., + data: typing.Optional[typing.Iterable[typing.Text]] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["context",b"context","type",b"type"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["context",b"context","data",b"data","type",b"type"]) -> None: ... +global___Filter = Filter + +class FilteredReadAllEvents(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + COMMIT_POSITION_FIELD_NUMBER: builtins.int + PREPARE_POSITION_FIELD_NUMBER: builtins.int + MAX_COUNT_FIELD_NUMBER: builtins.int + MAX_SEARCH_WINDOW_FIELD_NUMBER: builtins.int + RESOLVE_LINK_TOS_FIELD_NUMBER: builtins.int + REQUIRE_LEADER_FIELD_NUMBER: builtins.int + FILTER_FIELD_NUMBER: builtins.int + commit_position: builtins.int + prepare_position: builtins.int + max_count: builtins.int + max_search_window: builtins.int + resolve_link_tos: builtins.bool + require_leader: builtins.bool + @property + def filter(self) -> global___Filter: ... + def __init__(self, + *, + commit_position: typing.Optional[builtins.int] = ..., + prepare_position: typing.Optional[builtins.int] = ..., + max_count: typing.Optional[builtins.int] = ..., + max_search_window: typing.Optional[builtins.int] = ..., + resolve_link_tos: typing.Optional[builtins.bool] = ..., + require_leader: typing.Optional[builtins.bool] = ..., + filter: typing.Optional[global___Filter] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["commit_position",b"commit_position","filter",b"filter","max_count",b"max_count","max_search_window",b"max_search_window","prepare_position",b"prepare_position","require_leader",b"require_leader","resolve_link_tos",b"resolve_link_tos"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["commit_position",b"commit_position","filter",b"filter","max_count",b"max_count","max_search_window",b"max_search_window","prepare_position",b"prepare_position","require_leader",b"require_leader","resolve_link_tos",b"resolve_link_tos"]) -> None: ... +global___FilteredReadAllEvents = FilteredReadAllEvents + +class FilteredReadAllEventsCompleted(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + class _FilteredReadAllResult: + ValueType = typing.NewType('ValueType', builtins.int) + V: typing_extensions.TypeAlias = ValueType + class _FilteredReadAllResultEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[FilteredReadAllEventsCompleted._FilteredReadAllResult.ValueType], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor + Success: FilteredReadAllEventsCompleted._FilteredReadAllResult.ValueType # 0 + NotModified: FilteredReadAllEventsCompleted._FilteredReadAllResult.ValueType # 1 + Error: FilteredReadAllEventsCompleted._FilteredReadAllResult.ValueType # 2 + AccessDenied: FilteredReadAllEventsCompleted._FilteredReadAllResult.ValueType # 3 + class FilteredReadAllResult(_FilteredReadAllResult, metaclass=_FilteredReadAllResultEnumTypeWrapper): + pass + + Success: FilteredReadAllEventsCompleted.FilteredReadAllResult.ValueType # 0 + NotModified: FilteredReadAllEventsCompleted.FilteredReadAllResult.ValueType # 1 + Error: FilteredReadAllEventsCompleted.FilteredReadAllResult.ValueType # 2 + AccessDenied: FilteredReadAllEventsCompleted.FilteredReadAllResult.ValueType # 3 + + COMMIT_POSITION_FIELD_NUMBER: builtins.int + PREPARE_POSITION_FIELD_NUMBER: builtins.int + EVENTS_FIELD_NUMBER: builtins.int + NEXT_COMMIT_POSITION_FIELD_NUMBER: builtins.int + NEXT_PREPARE_POSITION_FIELD_NUMBER: builtins.int + IS_END_OF_STREAM_FIELD_NUMBER: builtins.int + RESULT_FIELD_NUMBER: builtins.int + ERROR_FIELD_NUMBER: builtins.int + commit_position: builtins.int + prepare_position: builtins.int + @property + def events(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ResolvedEvent]: ... + next_commit_position: builtins.int + next_prepare_position: builtins.int + is_end_of_stream: builtins.bool + result: global___FilteredReadAllEventsCompleted.FilteredReadAllResult.ValueType + error: typing.Text + def __init__(self, + *, + commit_position: typing.Optional[builtins.int] = ..., + prepare_position: typing.Optional[builtins.int] = ..., + events: typing.Optional[typing.Iterable[global___ResolvedEvent]] = ..., + next_commit_position: typing.Optional[builtins.int] = ..., + next_prepare_position: typing.Optional[builtins.int] = ..., + is_end_of_stream: typing.Optional[builtins.bool] = ..., + result: typing.Optional[global___FilteredReadAllEventsCompleted.FilteredReadAllResult.ValueType] = ..., + error: typing.Optional[typing.Text] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["commit_position",b"commit_position","error",b"error","is_end_of_stream",b"is_end_of_stream","next_commit_position",b"next_commit_position","next_prepare_position",b"next_prepare_position","prepare_position",b"prepare_position","result",b"result"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["commit_position",b"commit_position","error",b"error","events",b"events","is_end_of_stream",b"is_end_of_stream","next_commit_position",b"next_commit_position","next_prepare_position",b"next_prepare_position","prepare_position",b"prepare_position","result",b"result"]) -> None: ... +global___FilteredReadAllEventsCompleted = FilteredReadAllEventsCompleted + +class CreatePersistentSubscription(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + SUBSCRIPTION_GROUP_NAME_FIELD_NUMBER: builtins.int + EVENT_STREAM_ID_FIELD_NUMBER: builtins.int + RESOLVE_LINK_TOS_FIELD_NUMBER: builtins.int + START_FROM_FIELD_NUMBER: builtins.int + MESSAGE_TIMEOUT_MILLISECONDS_FIELD_NUMBER: builtins.int + RECORD_STATISTICS_FIELD_NUMBER: builtins.int + LIVE_BUFFER_SIZE_FIELD_NUMBER: builtins.int + READ_BATCH_SIZE_FIELD_NUMBER: builtins.int + BUFFER_SIZE_FIELD_NUMBER: builtins.int + MAX_RETRY_COUNT_FIELD_NUMBER: builtins.int + PREFER_ROUND_ROBIN_FIELD_NUMBER: builtins.int + CHECKPOINT_AFTER_TIME_FIELD_NUMBER: builtins.int + CHECKPOINT_MAX_COUNT_FIELD_NUMBER: builtins.int + CHECKPOINT_MIN_COUNT_FIELD_NUMBER: builtins.int + SUBSCRIBER_MAX_COUNT_FIELD_NUMBER: builtins.int + NAMED_CONSUMER_STRATEGY_FIELD_NUMBER: builtins.int + subscription_group_name: typing.Text + event_stream_id: typing.Text + resolve_link_tos: builtins.bool + start_from: builtins.int + message_timeout_milliseconds: builtins.int + record_statistics: builtins.bool + live_buffer_size: builtins.int + read_batch_size: builtins.int + buffer_size: builtins.int + max_retry_count: builtins.int + prefer_round_robin: builtins.bool + checkpoint_after_time: builtins.int + checkpoint_max_count: builtins.int + checkpoint_min_count: builtins.int + subscriber_max_count: builtins.int + named_consumer_strategy: typing.Text + def __init__(self, + *, + subscription_group_name: typing.Optional[typing.Text] = ..., + event_stream_id: typing.Optional[typing.Text] = ..., + resolve_link_tos: typing.Optional[builtins.bool] = ..., + start_from: typing.Optional[builtins.int] = ..., + message_timeout_milliseconds: typing.Optional[builtins.int] = ..., + record_statistics: typing.Optional[builtins.bool] = ..., + live_buffer_size: typing.Optional[builtins.int] = ..., + read_batch_size: typing.Optional[builtins.int] = ..., + buffer_size: typing.Optional[builtins.int] = ..., + max_retry_count: typing.Optional[builtins.int] = ..., + prefer_round_robin: typing.Optional[builtins.bool] = ..., + checkpoint_after_time: typing.Optional[builtins.int] = ..., + checkpoint_max_count: typing.Optional[builtins.int] = ..., + checkpoint_min_count: typing.Optional[builtins.int] = ..., + subscriber_max_count: typing.Optional[builtins.int] = ..., + named_consumer_strategy: typing.Optional[typing.Text] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["buffer_size",b"buffer_size","checkpoint_after_time",b"checkpoint_after_time","checkpoint_max_count",b"checkpoint_max_count","checkpoint_min_count",b"checkpoint_min_count","event_stream_id",b"event_stream_id","live_buffer_size",b"live_buffer_size","max_retry_count",b"max_retry_count","message_timeout_milliseconds",b"message_timeout_milliseconds","named_consumer_strategy",b"named_consumer_strategy","prefer_round_robin",b"prefer_round_robin","read_batch_size",b"read_batch_size","record_statistics",b"record_statistics","resolve_link_tos",b"resolve_link_tos","start_from",b"start_from","subscriber_max_count",b"subscriber_max_count","subscription_group_name",b"subscription_group_name"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["buffer_size",b"buffer_size","checkpoint_after_time",b"checkpoint_after_time","checkpoint_max_count",b"checkpoint_max_count","checkpoint_min_count",b"checkpoint_min_count","event_stream_id",b"event_stream_id","live_buffer_size",b"live_buffer_size","max_retry_count",b"max_retry_count","message_timeout_milliseconds",b"message_timeout_milliseconds","named_consumer_strategy",b"named_consumer_strategy","prefer_round_robin",b"prefer_round_robin","read_batch_size",b"read_batch_size","record_statistics",b"record_statistics","resolve_link_tos",b"resolve_link_tos","start_from",b"start_from","subscriber_max_count",b"subscriber_max_count","subscription_group_name",b"subscription_group_name"]) -> None: ... +global___CreatePersistentSubscription = CreatePersistentSubscription + +class DeletePersistentSubscription(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + SUBSCRIPTION_GROUP_NAME_FIELD_NUMBER: builtins.int + EVENT_STREAM_ID_FIELD_NUMBER: builtins.int + subscription_group_name: typing.Text + event_stream_id: typing.Text + def __init__(self, + *, + subscription_group_name: typing.Optional[typing.Text] = ..., + event_stream_id: typing.Optional[typing.Text] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["event_stream_id",b"event_stream_id","subscription_group_name",b"subscription_group_name"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["event_stream_id",b"event_stream_id","subscription_group_name",b"subscription_group_name"]) -> None: ... +global___DeletePersistentSubscription = DeletePersistentSubscription + +class UpdatePersistentSubscription(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + SUBSCRIPTION_GROUP_NAME_FIELD_NUMBER: builtins.int + EVENT_STREAM_ID_FIELD_NUMBER: builtins.int + RESOLVE_LINK_TOS_FIELD_NUMBER: builtins.int + START_FROM_FIELD_NUMBER: builtins.int + MESSAGE_TIMEOUT_MILLISECONDS_FIELD_NUMBER: builtins.int + RECORD_STATISTICS_FIELD_NUMBER: builtins.int + LIVE_BUFFER_SIZE_FIELD_NUMBER: builtins.int + READ_BATCH_SIZE_FIELD_NUMBER: builtins.int + BUFFER_SIZE_FIELD_NUMBER: builtins.int + MAX_RETRY_COUNT_FIELD_NUMBER: builtins.int + PREFER_ROUND_ROBIN_FIELD_NUMBER: builtins.int + CHECKPOINT_AFTER_TIME_FIELD_NUMBER: builtins.int + CHECKPOINT_MAX_COUNT_FIELD_NUMBER: builtins.int + CHECKPOINT_MIN_COUNT_FIELD_NUMBER: builtins.int + SUBSCRIBER_MAX_COUNT_FIELD_NUMBER: builtins.int + NAMED_CONSUMER_STRATEGY_FIELD_NUMBER: builtins.int + subscription_group_name: typing.Text + event_stream_id: typing.Text + resolve_link_tos: builtins.bool + start_from: builtins.int + message_timeout_milliseconds: builtins.int + record_statistics: builtins.bool + live_buffer_size: builtins.int + read_batch_size: builtins.int + buffer_size: builtins.int + max_retry_count: builtins.int + prefer_round_robin: builtins.bool + checkpoint_after_time: builtins.int + checkpoint_max_count: builtins.int + checkpoint_min_count: builtins.int + subscriber_max_count: builtins.int + named_consumer_strategy: typing.Text + def __init__(self, + *, + subscription_group_name: typing.Optional[typing.Text] = ..., + event_stream_id: typing.Optional[typing.Text] = ..., + resolve_link_tos: typing.Optional[builtins.bool] = ..., + start_from: typing.Optional[builtins.int] = ..., + message_timeout_milliseconds: typing.Optional[builtins.int] = ..., + record_statistics: typing.Optional[builtins.bool] = ..., + live_buffer_size: typing.Optional[builtins.int] = ..., + read_batch_size: typing.Optional[builtins.int] = ..., + buffer_size: typing.Optional[builtins.int] = ..., + max_retry_count: typing.Optional[builtins.int] = ..., + prefer_round_robin: typing.Optional[builtins.bool] = ..., + checkpoint_after_time: typing.Optional[builtins.int] = ..., + checkpoint_max_count: typing.Optional[builtins.int] = ..., + checkpoint_min_count: typing.Optional[builtins.int] = ..., + subscriber_max_count: typing.Optional[builtins.int] = ..., + named_consumer_strategy: typing.Optional[typing.Text] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["buffer_size",b"buffer_size","checkpoint_after_time",b"checkpoint_after_time","checkpoint_max_count",b"checkpoint_max_count","checkpoint_min_count",b"checkpoint_min_count","event_stream_id",b"event_stream_id","live_buffer_size",b"live_buffer_size","max_retry_count",b"max_retry_count","message_timeout_milliseconds",b"message_timeout_milliseconds","named_consumer_strategy",b"named_consumer_strategy","prefer_round_robin",b"prefer_round_robin","read_batch_size",b"read_batch_size","record_statistics",b"record_statistics","resolve_link_tos",b"resolve_link_tos","start_from",b"start_from","subscriber_max_count",b"subscriber_max_count","subscription_group_name",b"subscription_group_name"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["buffer_size",b"buffer_size","checkpoint_after_time",b"checkpoint_after_time","checkpoint_max_count",b"checkpoint_max_count","checkpoint_min_count",b"checkpoint_min_count","event_stream_id",b"event_stream_id","live_buffer_size",b"live_buffer_size","max_retry_count",b"max_retry_count","message_timeout_milliseconds",b"message_timeout_milliseconds","named_consumer_strategy",b"named_consumer_strategy","prefer_round_robin",b"prefer_round_robin","read_batch_size",b"read_batch_size","record_statistics",b"record_statistics","resolve_link_tos",b"resolve_link_tos","start_from",b"start_from","subscriber_max_count",b"subscriber_max_count","subscription_group_name",b"subscription_group_name"]) -> None: ... +global___UpdatePersistentSubscription = UpdatePersistentSubscription + +class UpdatePersistentSubscriptionCompleted(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + class _UpdatePersistentSubscriptionResult: + ValueType = typing.NewType('ValueType', builtins.int) + V: typing_extensions.TypeAlias = ValueType + class _UpdatePersistentSubscriptionResultEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[UpdatePersistentSubscriptionCompleted._UpdatePersistentSubscriptionResult.ValueType], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor + Success: UpdatePersistentSubscriptionCompleted._UpdatePersistentSubscriptionResult.ValueType # 0 + DoesNotExist: UpdatePersistentSubscriptionCompleted._UpdatePersistentSubscriptionResult.ValueType # 1 + Fail: UpdatePersistentSubscriptionCompleted._UpdatePersistentSubscriptionResult.ValueType # 2 + AccessDenied: UpdatePersistentSubscriptionCompleted._UpdatePersistentSubscriptionResult.ValueType # 3 + class UpdatePersistentSubscriptionResult(_UpdatePersistentSubscriptionResult, metaclass=_UpdatePersistentSubscriptionResultEnumTypeWrapper): + pass + + Success: UpdatePersistentSubscriptionCompleted.UpdatePersistentSubscriptionResult.ValueType # 0 + DoesNotExist: UpdatePersistentSubscriptionCompleted.UpdatePersistentSubscriptionResult.ValueType # 1 + Fail: UpdatePersistentSubscriptionCompleted.UpdatePersistentSubscriptionResult.ValueType # 2 + AccessDenied: UpdatePersistentSubscriptionCompleted.UpdatePersistentSubscriptionResult.ValueType # 3 + + RESULT_FIELD_NUMBER: builtins.int + REASON_FIELD_NUMBER: builtins.int + result: global___UpdatePersistentSubscriptionCompleted.UpdatePersistentSubscriptionResult.ValueType + reason: typing.Text + def __init__(self, + *, + result: typing.Optional[global___UpdatePersistentSubscriptionCompleted.UpdatePersistentSubscriptionResult.ValueType] = ..., + reason: typing.Optional[typing.Text] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["reason",b"reason","result",b"result"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["reason",b"reason","result",b"result"]) -> None: ... +global___UpdatePersistentSubscriptionCompleted = UpdatePersistentSubscriptionCompleted + +class CreatePersistentSubscriptionCompleted(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + class _CreatePersistentSubscriptionResult: + ValueType = typing.NewType('ValueType', builtins.int) + V: typing_extensions.TypeAlias = ValueType + class _CreatePersistentSubscriptionResultEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[CreatePersistentSubscriptionCompleted._CreatePersistentSubscriptionResult.ValueType], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor + Success: CreatePersistentSubscriptionCompleted._CreatePersistentSubscriptionResult.ValueType # 0 + AlreadyExists: CreatePersistentSubscriptionCompleted._CreatePersistentSubscriptionResult.ValueType # 1 + Fail: CreatePersistentSubscriptionCompleted._CreatePersistentSubscriptionResult.ValueType # 2 + AccessDenied: CreatePersistentSubscriptionCompleted._CreatePersistentSubscriptionResult.ValueType # 3 + class CreatePersistentSubscriptionResult(_CreatePersistentSubscriptionResult, metaclass=_CreatePersistentSubscriptionResultEnumTypeWrapper): + pass + + Success: CreatePersistentSubscriptionCompleted.CreatePersistentSubscriptionResult.ValueType # 0 + AlreadyExists: CreatePersistentSubscriptionCompleted.CreatePersistentSubscriptionResult.ValueType # 1 + Fail: CreatePersistentSubscriptionCompleted.CreatePersistentSubscriptionResult.ValueType # 2 + AccessDenied: CreatePersistentSubscriptionCompleted.CreatePersistentSubscriptionResult.ValueType # 3 + + RESULT_FIELD_NUMBER: builtins.int + REASON_FIELD_NUMBER: builtins.int + result: global___CreatePersistentSubscriptionCompleted.CreatePersistentSubscriptionResult.ValueType + reason: typing.Text + def __init__(self, + *, + result: typing.Optional[global___CreatePersistentSubscriptionCompleted.CreatePersistentSubscriptionResult.ValueType] = ..., + reason: typing.Optional[typing.Text] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["reason",b"reason","result",b"result"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["reason",b"reason","result",b"result"]) -> None: ... +global___CreatePersistentSubscriptionCompleted = CreatePersistentSubscriptionCompleted + +class DeletePersistentSubscriptionCompleted(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + class _DeletePersistentSubscriptionResult: + ValueType = typing.NewType('ValueType', builtins.int) + V: typing_extensions.TypeAlias = ValueType + class _DeletePersistentSubscriptionResultEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[DeletePersistentSubscriptionCompleted._DeletePersistentSubscriptionResult.ValueType], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor + Success: DeletePersistentSubscriptionCompleted._DeletePersistentSubscriptionResult.ValueType # 0 + DoesNotExist: DeletePersistentSubscriptionCompleted._DeletePersistentSubscriptionResult.ValueType # 1 + Fail: DeletePersistentSubscriptionCompleted._DeletePersistentSubscriptionResult.ValueType # 2 + AccessDenied: DeletePersistentSubscriptionCompleted._DeletePersistentSubscriptionResult.ValueType # 3 + class DeletePersistentSubscriptionResult(_DeletePersistentSubscriptionResult, metaclass=_DeletePersistentSubscriptionResultEnumTypeWrapper): + pass + + Success: DeletePersistentSubscriptionCompleted.DeletePersistentSubscriptionResult.ValueType # 0 + DoesNotExist: DeletePersistentSubscriptionCompleted.DeletePersistentSubscriptionResult.ValueType # 1 + Fail: DeletePersistentSubscriptionCompleted.DeletePersistentSubscriptionResult.ValueType # 2 + AccessDenied: DeletePersistentSubscriptionCompleted.DeletePersistentSubscriptionResult.ValueType # 3 + + RESULT_FIELD_NUMBER: builtins.int + REASON_FIELD_NUMBER: builtins.int + result: global___DeletePersistentSubscriptionCompleted.DeletePersistentSubscriptionResult.ValueType + reason: typing.Text + def __init__(self, + *, + result: typing.Optional[global___DeletePersistentSubscriptionCompleted.DeletePersistentSubscriptionResult.ValueType] = ..., + reason: typing.Optional[typing.Text] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["reason",b"reason","result",b"result"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["reason",b"reason","result",b"result"]) -> None: ... +global___DeletePersistentSubscriptionCompleted = DeletePersistentSubscriptionCompleted + +class ConnectToPersistentSubscription(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + SUBSCRIPTION_ID_FIELD_NUMBER: builtins.int + EVENT_STREAM_ID_FIELD_NUMBER: builtins.int + ALLOWED_IN_FLIGHT_MESSAGES_FIELD_NUMBER: builtins.int + subscription_id: typing.Text + event_stream_id: typing.Text + allowed_in_flight_messages: builtins.int + def __init__(self, + *, + subscription_id: typing.Optional[typing.Text] = ..., + event_stream_id: typing.Optional[typing.Text] = ..., + allowed_in_flight_messages: typing.Optional[builtins.int] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["allowed_in_flight_messages",b"allowed_in_flight_messages","event_stream_id",b"event_stream_id","subscription_id",b"subscription_id"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["allowed_in_flight_messages",b"allowed_in_flight_messages","event_stream_id",b"event_stream_id","subscription_id",b"subscription_id"]) -> None: ... +global___ConnectToPersistentSubscription = ConnectToPersistentSubscription + +class PersistentSubscriptionAckEvents(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + SUBSCRIPTION_ID_FIELD_NUMBER: builtins.int + PROCESSED_EVENT_IDS_FIELD_NUMBER: builtins.int + subscription_id: typing.Text + @property + def processed_event_ids(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.bytes]: ... + def __init__(self, + *, + subscription_id: typing.Optional[typing.Text] = ..., + processed_event_ids: typing.Optional[typing.Iterable[builtins.bytes]] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["subscription_id",b"subscription_id"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["processed_event_ids",b"processed_event_ids","subscription_id",b"subscription_id"]) -> None: ... +global___PersistentSubscriptionAckEvents = PersistentSubscriptionAckEvents + +class PersistentSubscriptionNakEvents(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + class _NakAction: + ValueType = typing.NewType('ValueType', builtins.int) + V: typing_extensions.TypeAlias = ValueType + class _NakActionEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[PersistentSubscriptionNakEvents._NakAction.ValueType], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor + Unknown: PersistentSubscriptionNakEvents._NakAction.ValueType # 0 + Park: PersistentSubscriptionNakEvents._NakAction.ValueType # 1 + Retry: PersistentSubscriptionNakEvents._NakAction.ValueType # 2 + Skip: PersistentSubscriptionNakEvents._NakAction.ValueType # 3 + Stop: PersistentSubscriptionNakEvents._NakAction.ValueType # 4 + class NakAction(_NakAction, metaclass=_NakActionEnumTypeWrapper): + pass + + Unknown: PersistentSubscriptionNakEvents.NakAction.ValueType # 0 + Park: PersistentSubscriptionNakEvents.NakAction.ValueType # 1 + Retry: PersistentSubscriptionNakEvents.NakAction.ValueType # 2 + Skip: PersistentSubscriptionNakEvents.NakAction.ValueType # 3 + Stop: PersistentSubscriptionNakEvents.NakAction.ValueType # 4 + + SUBSCRIPTION_ID_FIELD_NUMBER: builtins.int + PROCESSED_EVENT_IDS_FIELD_NUMBER: builtins.int + MESSAGE_FIELD_NUMBER: builtins.int + ACTION_FIELD_NUMBER: builtins.int + subscription_id: typing.Text + @property + def processed_event_ids(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.bytes]: ... + message: typing.Text + action: global___PersistentSubscriptionNakEvents.NakAction.ValueType + def __init__(self, + *, + subscription_id: typing.Optional[typing.Text] = ..., + processed_event_ids: typing.Optional[typing.Iterable[builtins.bytes]] = ..., + message: typing.Optional[typing.Text] = ..., + action: typing.Optional[global___PersistentSubscriptionNakEvents.NakAction.ValueType] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["action",b"action","message",b"message","subscription_id",b"subscription_id"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["action",b"action","message",b"message","processed_event_ids",b"processed_event_ids","subscription_id",b"subscription_id"]) -> None: ... +global___PersistentSubscriptionNakEvents = PersistentSubscriptionNakEvents + +class PersistentSubscriptionConfirmation(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + LAST_COMMIT_POSITION_FIELD_NUMBER: builtins.int + SUBSCRIPTION_ID_FIELD_NUMBER: builtins.int + LAST_EVENT_NUMBER_FIELD_NUMBER: builtins.int + last_commit_position: builtins.int + subscription_id: typing.Text + last_event_number: builtins.int + def __init__(self, + *, + last_commit_position: typing.Optional[builtins.int] = ..., + subscription_id: typing.Optional[typing.Text] = ..., + last_event_number: typing.Optional[builtins.int] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["last_commit_position",b"last_commit_position","last_event_number",b"last_event_number","subscription_id",b"subscription_id"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["last_commit_position",b"last_commit_position","last_event_number",b"last_event_number","subscription_id",b"subscription_id"]) -> None: ... +global___PersistentSubscriptionConfirmation = PersistentSubscriptionConfirmation + +class PersistentSubscriptionStreamEventAppeared(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + EVENT_FIELD_NUMBER: builtins.int + RETRYCOUNT_FIELD_NUMBER: builtins.int + @property + def event(self) -> global___ResolvedIndexedEvent: ... + retryCount: builtins.int + def __init__(self, + *, + event: typing.Optional[global___ResolvedIndexedEvent] = ..., + retryCount: typing.Optional[builtins.int] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["event",b"event","retryCount",b"retryCount"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["event",b"event","retryCount",b"retryCount"]) -> None: ... +global___PersistentSubscriptionStreamEventAppeared = PersistentSubscriptionStreamEventAppeared + +class SubscribeToStream(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + EVENT_STREAM_ID_FIELD_NUMBER: builtins.int + RESOLVE_LINK_TOS_FIELD_NUMBER: builtins.int + event_stream_id: typing.Text + resolve_link_tos: builtins.bool + def __init__(self, + *, + event_stream_id: typing.Optional[typing.Text] = ..., + resolve_link_tos: typing.Optional[builtins.bool] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["event_stream_id",b"event_stream_id","resolve_link_tos",b"resolve_link_tos"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["event_stream_id",b"event_stream_id","resolve_link_tos",b"resolve_link_tos"]) -> None: ... +global___SubscribeToStream = SubscribeToStream + +class FilteredSubscribeToStream(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + EVENT_STREAM_ID_FIELD_NUMBER: builtins.int + RESOLVE_LINK_TOS_FIELD_NUMBER: builtins.int + FILTER_FIELD_NUMBER: builtins.int + CHECKPOINT_INTERVAL_FIELD_NUMBER: builtins.int + event_stream_id: typing.Text + resolve_link_tos: builtins.bool + @property + def filter(self) -> global___Filter: ... + checkpoint_interval: builtins.int + def __init__(self, + *, + event_stream_id: typing.Optional[typing.Text] = ..., + resolve_link_tos: typing.Optional[builtins.bool] = ..., + filter: typing.Optional[global___Filter] = ..., + checkpoint_interval: typing.Optional[builtins.int] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["checkpoint_interval",b"checkpoint_interval","event_stream_id",b"event_stream_id","filter",b"filter","resolve_link_tos",b"resolve_link_tos"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["checkpoint_interval",b"checkpoint_interval","event_stream_id",b"event_stream_id","filter",b"filter","resolve_link_tos",b"resolve_link_tos"]) -> None: ... +global___FilteredSubscribeToStream = FilteredSubscribeToStream + +class CheckpointReached(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + COMMIT_POSITION_FIELD_NUMBER: builtins.int + PREPARE_POSITION_FIELD_NUMBER: builtins.int + commit_position: builtins.int + prepare_position: builtins.int + def __init__(self, + *, + commit_position: typing.Optional[builtins.int] = ..., + prepare_position: typing.Optional[builtins.int] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["commit_position",b"commit_position","prepare_position",b"prepare_position"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["commit_position",b"commit_position","prepare_position",b"prepare_position"]) -> None: ... +global___CheckpointReached = CheckpointReached + +class SubscriptionConfirmation(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + LAST_COMMIT_POSITION_FIELD_NUMBER: builtins.int + LAST_EVENT_NUMBER_FIELD_NUMBER: builtins.int + last_commit_position: builtins.int + last_event_number: builtins.int + def __init__(self, + *, + last_commit_position: typing.Optional[builtins.int] = ..., + last_event_number: typing.Optional[builtins.int] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["last_commit_position",b"last_commit_position","last_event_number",b"last_event_number"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["last_commit_position",b"last_commit_position","last_event_number",b"last_event_number"]) -> None: ... +global___SubscriptionConfirmation = SubscriptionConfirmation + +class StreamEventAppeared(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + EVENT_FIELD_NUMBER: builtins.int + @property + def event(self) -> global___ResolvedEvent: ... + def __init__(self, + *, + event: typing.Optional[global___ResolvedEvent] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["event",b"event"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["event",b"event"]) -> None: ... +global___StreamEventAppeared = StreamEventAppeared + +class UnsubscribeFromStream(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + def __init__(self, + ) -> None: ... +global___UnsubscribeFromStream = UnsubscribeFromStream + +class SubscriptionDropped(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + class _SubscriptionDropReason: + ValueType = typing.NewType('ValueType', builtins.int) + V: typing_extensions.TypeAlias = ValueType + class _SubscriptionDropReasonEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[SubscriptionDropped._SubscriptionDropReason.ValueType], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor + Unsubscribed: SubscriptionDropped._SubscriptionDropReason.ValueType # 0 + AccessDenied: SubscriptionDropped._SubscriptionDropReason.ValueType # 1 + NotFound: SubscriptionDropped._SubscriptionDropReason.ValueType # 2 + PersistentSubscriptionDeleted: SubscriptionDropped._SubscriptionDropReason.ValueType # 3 + SubscriberMaxCountReached: SubscriptionDropped._SubscriptionDropReason.ValueType # 4 + class SubscriptionDropReason(_SubscriptionDropReason, metaclass=_SubscriptionDropReasonEnumTypeWrapper): + pass + + Unsubscribed: SubscriptionDropped.SubscriptionDropReason.ValueType # 0 + AccessDenied: SubscriptionDropped.SubscriptionDropReason.ValueType # 1 + NotFound: SubscriptionDropped.SubscriptionDropReason.ValueType # 2 + PersistentSubscriptionDeleted: SubscriptionDropped.SubscriptionDropReason.ValueType # 3 + SubscriberMaxCountReached: SubscriptionDropped.SubscriptionDropReason.ValueType # 4 + + REASON_FIELD_NUMBER: builtins.int + reason: global___SubscriptionDropped.SubscriptionDropReason.ValueType + def __init__(self, + *, + reason: typing.Optional[global___SubscriptionDropped.SubscriptionDropReason.ValueType] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["reason",b"reason"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["reason",b"reason"]) -> None: ... +global___SubscriptionDropped = SubscriptionDropped + +class NotHandled(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + class _NotHandledReason: + ValueType = typing.NewType('ValueType', builtins.int) + V: typing_extensions.TypeAlias = ValueType + class _NotHandledReasonEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[NotHandled._NotHandledReason.ValueType], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor + NotReady: NotHandled._NotHandledReason.ValueType # 0 + TooBusy: NotHandled._NotHandledReason.ValueType # 1 + NotLeader: NotHandled._NotHandledReason.ValueType # 2 + IsReadOnly: NotHandled._NotHandledReason.ValueType # 3 + class NotHandledReason(_NotHandledReason, metaclass=_NotHandledReasonEnumTypeWrapper): + pass + + NotReady: NotHandled.NotHandledReason.ValueType # 0 + TooBusy: NotHandled.NotHandledReason.ValueType # 1 + NotLeader: NotHandled.NotHandledReason.ValueType # 2 + IsReadOnly: NotHandled.NotHandledReason.ValueType # 3 + + class LeaderInfo(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + EXTERNAL_TCP_ADDRESS_FIELD_NUMBER: builtins.int + EXTERNAL_TCP_PORT_FIELD_NUMBER: builtins.int + HTTP_ADDRESS_FIELD_NUMBER: builtins.int + HTTP_PORT_FIELD_NUMBER: builtins.int + EXTERNAL_SECURE_TCP_ADDRESS_FIELD_NUMBER: builtins.int + EXTERNAL_SECURE_TCP_PORT_FIELD_NUMBER: builtins.int + external_tcp_address: typing.Text + external_tcp_port: builtins.int + http_address: typing.Text + http_port: builtins.int + external_secure_tcp_address: typing.Text + external_secure_tcp_port: builtins.int + def __init__(self, + *, + external_tcp_address: typing.Optional[typing.Text] = ..., + external_tcp_port: typing.Optional[builtins.int] = ..., + http_address: typing.Optional[typing.Text] = ..., + http_port: typing.Optional[builtins.int] = ..., + external_secure_tcp_address: typing.Optional[typing.Text] = ..., + external_secure_tcp_port: typing.Optional[builtins.int] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["external_secure_tcp_address",b"external_secure_tcp_address","external_secure_tcp_port",b"external_secure_tcp_port","external_tcp_address",b"external_tcp_address","external_tcp_port",b"external_tcp_port","http_address",b"http_address","http_port",b"http_port"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["external_secure_tcp_address",b"external_secure_tcp_address","external_secure_tcp_port",b"external_secure_tcp_port","external_tcp_address",b"external_tcp_address","external_tcp_port",b"external_tcp_port","http_address",b"http_address","http_port",b"http_port"]) -> None: ... + + REASON_FIELD_NUMBER: builtins.int + ADDITIONAL_INFO_FIELD_NUMBER: builtins.int + reason: global___NotHandled.NotHandledReason.ValueType + additional_info: builtins.bytes + def __init__(self, + *, + reason: typing.Optional[global___NotHandled.NotHandledReason.ValueType] = ..., + additional_info: typing.Optional[builtins.bytes] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["additional_info",b"additional_info","reason",b"reason"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["additional_info",b"additional_info","reason",b"reason"]) -> None: ... +global___NotHandled = NotHandled + +class ScavengeDatabase(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + def __init__(self, + ) -> None: ... +global___ScavengeDatabase = ScavengeDatabase + +class ScavengeDatabaseResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + class _ScavengeResult: + ValueType = typing.NewType('ValueType', builtins.int) + V: typing_extensions.TypeAlias = ValueType + class _ScavengeResultEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[ScavengeDatabaseResponse._ScavengeResult.ValueType], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor + Started: ScavengeDatabaseResponse._ScavengeResult.ValueType # 0 + InProgress: ScavengeDatabaseResponse._ScavengeResult.ValueType # 1 + Unauthorized: ScavengeDatabaseResponse._ScavengeResult.ValueType # 2 + class ScavengeResult(_ScavengeResult, metaclass=_ScavengeResultEnumTypeWrapper): + pass + + Started: ScavengeDatabaseResponse.ScavengeResult.ValueType # 0 + InProgress: ScavengeDatabaseResponse.ScavengeResult.ValueType # 1 + Unauthorized: ScavengeDatabaseResponse.ScavengeResult.ValueType # 2 + + RESULT_FIELD_NUMBER: builtins.int + SCAVENGEID_FIELD_NUMBER: builtins.int + result: global___ScavengeDatabaseResponse.ScavengeResult.ValueType + scavengeId: typing.Text + def __init__(self, + *, + result: typing.Optional[global___ScavengeDatabaseResponse.ScavengeResult.ValueType] = ..., + scavengeId: typing.Optional[typing.Text] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["result",b"result","scavengeId",b"scavengeId"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["result",b"result","scavengeId",b"scavengeId"]) -> None: ... +global___ScavengeDatabaseResponse = ScavengeDatabaseResponse + +class IdentifyClient(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + VERSION_FIELD_NUMBER: builtins.int + CONNECTION_NAME_FIELD_NUMBER: builtins.int + version: builtins.int + connection_name: typing.Text + def __init__(self, + *, + version: typing.Optional[builtins.int] = ..., + connection_name: typing.Optional[typing.Text] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["connection_name",b"connection_name","version",b"version"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["connection_name",b"connection_name","version",b"version"]) -> None: ... +global___IdentifyClient = IdentifyClient + +class ClientIdentified(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + def __init__(self, + ) -> None: ... +global___ClientIdentified = ClientIdentified diff --git a/messages_pb2_grpc.py b/messages_pb2_grpc.py new file mode 100644 index 0000000..2daafff --- /dev/null +++ b/messages_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/photonpump/connection.py b/photonpump/connection.py index 04cf9ce..cca4cef 100644 --- a/photonpump/connection.py +++ b/photonpump/connection.py @@ -6,8 +6,8 @@ import struct import uuid import warnings +import ssl from typing import Any, NamedTuple, Optional, Sequence, Union -from webbrowser import get from . import conversations as convo from . import messages as msg @@ -61,6 +61,7 @@ def __init__( ctrl_queue=None, connect_timeout=5, name=None, + sslcontext: Union[bool, None, ssl.SSLContext] = None, ): self.name = name self.connection_counter = 0 @@ -75,6 +76,7 @@ def __init__( self.heartbeat_failures = 0 self.connect_timeout = connect_timeout self.active_protocol = None + self.sslcontext = sslcontext def _put_msg(self, msg): asyncio.ensure_future(self.ctrl_queue.put(msg)) @@ -160,10 +162,13 @@ async def _attempt_connect(self, node): self.name, ) await asyncio.wait_for( - loop.create_connection(lambda: protocol, node.address, node.port), + loop.create_connection( + lambda: protocol, node.address, node.port, ssl=self.sslcontext + ), self.connect_timeout, ) except Exception as e: + self.log.error("Failed to connect to %s:%s, %s", node.address, node.port, e) await self.ctrl_queue.put( ConnectorInstruction(ConnectorCommand.HandleConnectFailure, None, e) ) @@ -609,7 +614,7 @@ async def publish_event( id: Optional[uuid.UUID] = None, metadata: Optional[Any] = None, expected_version: int = -2, - require_master: bool = False, + require_leader: bool = False, ) -> None: """ Publish a single event to the EventStore. @@ -635,7 +640,7 @@ async def publish_event( -1: NoStream. Checks that the stream does not yet exist. 0: EmptyStream. Checks that the stream has been explicitly created but does not yet contain any events. - require_master: If true, slave nodes will reject this message. + require_leader: If true, follower nodes will reject this message. Examples: @@ -659,7 +664,7 @@ async def publish_event( stream, [event], expected_version=expected_version, - require_master=require_master, + require_leader=require_leader, credential=self.credential, ) result = await self.dispatcher.start_conversation(conversation) @@ -671,13 +676,13 @@ async def publish( stream: str, events: Sequence[msg.NewEventData], expected_version=msg.ExpectedVersion.Any, - require_master=False, + require_leader=False, ): cmd = convo.WriteEvents( stream, events, expected_version=expected_version, - require_master=require_master, + require_leader=require_leader, credential=self.credential, ) result = await self.dispatcher.start_conversation(cmd) @@ -688,7 +693,7 @@ async def get_event( stream: str, event_number: int, resolve_links=True, - require_master=False, + require_leader=False, correlation_id: uuid.UUID = None, ) -> msg.Event: """ @@ -719,7 +724,7 @@ async def get_event( stream, event_number, resolve_links, - require_master, + require_leader, conversation_id=correlation_id, credential=self.credential, ) @@ -735,7 +740,7 @@ async def get( from_event: int = 0, max_count: int = 100, resolve_links: bool = True, - require_master: bool = False, + require_leader: bool = False, correlation_id: uuid.UUID = None, ): """ @@ -783,7 +788,7 @@ async def get( from_event, max_count, resolve_links, - require_master, + require_leader, direction=direction, credential=self.credential, ) @@ -797,7 +802,7 @@ async def get_all( from_position: Optional[Union[msg.Position, msg._PositionSentinel]] = None, max_count: int = 100, resolve_links: bool = True, - require_master: bool = False, + require_leader: bool = False, correlation_id: uuid.UUID = None, ): """ @@ -837,7 +842,7 @@ async def get_all( msg.Position.for_direction(direction, from_position), max_count, resolve_links, - require_master, + require_leader, direction=direction, credential=self.credential, ) @@ -852,7 +857,7 @@ async def iter( from_event: int = None, batch_size: int = 100, resolve_links: bool = True, - require_master: bool = False, + require_leader: bool = False, correlation_id: uuid.UUID = None, ): """ @@ -867,8 +872,8 @@ async def iter( batch_size: The maximum number of events to read at a time. resolve_links (optional): True if eventstore should automatically resolve Link Events, otherwise False. - required_master (optional): True if this command must be - sent direct to the master node, otherwise False. + require_leader (optional): True if this command must be + sent direct to the leader node, otherwise False. correlation_id (optional): A unique identifer for this command. @@ -913,7 +918,7 @@ async def iter_all( from_position: Optional[Union[msg.Position, msg._PositionSentinel]] = None, batch_size: int = 100, resolve_links: bool = True, - require_master: bool = False, + require_leader: bool = False, correlation_id: Optional[uuid.UUID] = None, ): """ @@ -960,7 +965,7 @@ async def iter_all( msg.Position.for_direction(direction, from_position), batch_size, resolve_links, - require_master, + require_leader, direction, self.credential, correlation_id, @@ -1203,6 +1208,7 @@ def connect( name=None, selector=select_random, retry_policy=None, + sslcontext: Union[bool, None, ssl.SSLContext] = None, ) -> Client: """Create a new client. @@ -1238,14 +1244,14 @@ def connect( the gossip result. To select the master node, use the :func:`photonpump.discovery.prefer_master` function. This function will return the master node if there is a live master, and a random replica otherwise. - All requests to the server can be made with the require_master flag which + All requests to the server can be made with the require_leader flag which will raise an error if the current node is not a master. >>> async with connect( >>> discovery_host="eventstore.test", >>> selector=discovery.prefer_master, >>> ) as c: - >>> await c.ping(require_master=True) + >>> await c.ping(require_leader=True) Conversely, you might want to avoid connecting to the master node for reasons of scalability. For this you can use the @@ -1283,6 +1289,7 @@ def connect( username: The username to use when communicating with eventstore. password: The password to use when communicating with eventstore. loop:An Asyncio event loop. + sslcontext: An optional ssl context (`bool`, or `ssl.Context`) selector: An optional function that selects one element from a list of :class:`photonpump.disovery.DiscoveredNode` elements. @@ -1294,10 +1301,10 @@ def connect( stacklevel=2, ) discovery = get_discoverer( - host, port, discovery_host, discovery_port, selector, retry_policy + host, port, discovery_host, discovery_port, selector, retry_policy, sslcontext=sslcontext ) dispatcher = MessageDispatcher(name=name) - connector = Connector(discovery, dispatcher, name=name) + connector = Connector(discovery, dispatcher, name=name, sslcontext=sslcontext) credential = msg.Credential(username, password) if username and password else None diff --git a/photonpump/conversations.py b/photonpump/conversations.py index 78ca675..5e3ab2a 100644 --- a/photonpump/conversations.py +++ b/photonpump/conversations.py @@ -149,8 +149,8 @@ async def unhandled_message(self, response) -> None: exn = exceptions.NotReady(self.conversation_id) elif body.reason == NotHandledReason.TooBusy: exn = exceptions.TooBusy(self.conversation_id) - elif body.reason == NotHandledReason.NotMaster: - exn = exceptions.NotMaster(self.conversation_id) + elif body.reason == NotHandledReason.NotLeader: + exn = exceptions.NotLeader(self.conversation_id) else: exn = exceptions.NotHandled(self.conversation_id, body.reason) @@ -257,21 +257,21 @@ def __init__( stream: str, events: Sequence[NewEvent], expected_version: Union[ExpectedVersion, int] = ExpectedVersion.Any, - require_master: bool = False, + require_leader: bool = False, conversation_id: UUID = None, credential=None, ): super().__init__(conversation_id, credential) self._logger = logging.get_named_logger(WriteEvents) self.stream = stream - self.require_master = require_master + self.require_leader = require_leader self.events = events self.expected_version = expected_version async def start(self, output: Queue) -> None: msg = proto.WriteEvents() msg.event_stream_id = self.stream - msg.require_master = self.require_master + msg.require_leader = self.require_leader msg.expected_version = self.expected_version for event in self.events: @@ -454,7 +454,7 @@ def __init__( stream: str, event_number: int, resolve_links: bool = True, - require_master: bool = False, + require_leader: bool = False, conversation_id: Optional[UUID] = None, credential=None, ) -> None: @@ -462,7 +462,7 @@ def __init__( super().__init__(conversation_id, credential=credential) self.stream = stream self.event_number = event_number - self.require_master = require_master + self.require_leader = require_leader self.resolve_link_tos = resolve_links self.name = stream @@ -470,7 +470,7 @@ async def start(self, output: Queue) -> None: msg = proto.ReadEvent() msg.event_number = self.event_number msg.event_stream_id = self.stream - msg.require_master = self.require_master + msg.require_leader = self.require_leader msg.resolve_link_tos = self.resolve_link_tos data = msg.SerializeToString() @@ -504,7 +504,7 @@ def page_stream_message(conversation, from_event): msg.event_stream_id = conversation.stream msg.from_event_number = from_event msg.max_count = conversation.batch_size - msg.require_master = conversation.require_master + msg.require_leader = conversation.require_leader msg.resolve_link_tos = conversation.resolve_link_tos data = msg.SerializeToString() @@ -524,7 +524,7 @@ def page_all_message(conversation, from_position: Position): msg.commit_position = from_position.commit msg.prepare_position = from_position.prepare msg.max_count = conversation.batch_size - msg.require_master = conversation.require_master + msg.require_leader = conversation.require_leader msg.resolve_link_tos = conversation.resolve_link_tos data = msg.SerializeToString() @@ -553,7 +553,7 @@ def __init__( from_position: Optional[Position] = None, max_count: int = 100, resolve_links: bool = True, - require_master: bool = False, + require_leader: bool = False, direction: StreamDirection = StreamDirection.Forward, credential=None, conversation_id: UUID = None, @@ -564,7 +564,7 @@ def __init__( self.direction = direction self.from_position = from_position self.batch_size = max_count - self.require_master = require_master + self.require_leader = require_leader self.resolve_link_tos = resolve_links async def reply(self, message: InboundMessage, output: Queue) -> None: @@ -607,7 +607,7 @@ def __init__( from_event: int = 0, max_count: int = 100, resolve_links: bool = True, - require_master: bool = False, + require_leader: bool = False, direction: StreamDirection = StreamDirection.Forward, credential=None, conversation_id: UUID = None, @@ -619,7 +619,7 @@ def __init__( self.direction = direction self.from_event = from_event self.batch_size = max_count - self.require_master = require_master + self.require_leader = require_leader self.resolve_link_tos = resolve_links async def reply(self, message: InboundMessage, output: Queue): @@ -663,7 +663,7 @@ class IterAllEvents(Conversation): batch_size (optional): The maximum number of events to read at a time. resolve_links (optional): True if eventstore should automatically resolve Link Events, otherwise False. - require_master (optional): True if this command must be + require_leader (optional): True if this command must be sent direct to the master node, otherwise False. direction (optional): Controls whether to read forward or backward through the events. Defaults to StreamDirection.Forward @@ -676,7 +676,7 @@ def __init__( from_position: Position = None, batch_size: int = 100, resolve_links: bool = True, - require_master: bool = False, + require_leader: bool = False, direction: StreamDirection = StreamDirection.Forward, credential=None, conversation_id: UUID = None, @@ -686,7 +686,7 @@ def __init__( self.batch_size = batch_size self.has_first_page = False self.resolve_link_tos = resolve_links - self.require_master = require_master + self.require_leader = require_leader self.from_position = from_position or Position(0, 0) self.direction = direction self._logger = logging.get_named_logger(IterAllEvents) @@ -757,7 +757,7 @@ def __init__( from_event: int = None, batch_size: int = 100, resolve_links: bool = True, - require_master: bool = False, + require_leader: bool = False, direction: StreamDirection = StreamDirection.Forward, credential=None, conversation_id: UUID = None, @@ -768,7 +768,7 @@ def __init__( self.has_first_page = False self.stream = stream self.resolve_link_tos = resolve_links - self.require_master = require_master + self.require_leader = require_leader self.direction = direction self._logger = logging.get_named_logger(IterStreamEvents) self.iterator = StreamingIterator(self.batch_size) @@ -1323,7 +1323,7 @@ def __init__( self.direction = StreamDirection.Forward self.batch_size = batch_size self.has_first_page = False - self.require_master = False + self.require_leader = False self.resolve_link_tos = True self.credential = credential self.result = Future() @@ -1438,7 +1438,7 @@ def __init__( self.direction = StreamDirection.Forward self.batch_size = batch_size self.has_first_page = False - self.require_master = False + self.require_leader = False self.resolve_link_tos = True self.credential = credential self.result = Future() @@ -1477,7 +1477,7 @@ async def start(self, output): msg.prepare_position = self.from_position.prepare msg.max_count = self.batch_size msg.resolve_link_tos = self.resolve_link_tos - msg.require_master = self.require_master + msg.require_leader = self.require_leader data = msg.SerializeToString() diff --git a/photonpump/discovery.py b/photonpump/discovery.py index 2f3b6a1..21436dc 100644 --- a/photonpump/discovery.py +++ b/photonpump/discovery.py @@ -1,10 +1,12 @@ import asyncio +import enum import logging import random import socket +import ssl from enum import IntEnum from operator import attrgetter -from typing import Callable, Iterable, List, NamedTuple, Optional +from typing import Callable, Iterable, List, NamedTuple, Optional, Union import aiodns import aiohttp @@ -13,20 +15,20 @@ class NodeState(IntEnum): - Initializing = 0 - Unknown = 1 - PreReplica = 2 - CatchingUp = 3 - Clone = 4 - Slave = 5 - PreMaster = 6 - Master = 7 - Manager = 8 - ShuttingDown = 9 - Shutdown = 10 - - -ELIGIBLE_STATE = [NodeState.Clone, NodeState.Slave, NodeState.Master] + Initializing = enum.auto() + Unknown = enum.auto() + PreReplica = enum.auto() + CatchingUp = enum.auto() + Clone = enum.auto() + Follower = enum.auto() + PreMaster = enum.auto() + Leader = enum.auto() + Manager = enum.auto() + ShuttingDown = enum.auto() + Shutdown = enum.auto() + + +ELIGIBLE_STATE = [NodeState.Clone, NodeState.Follower, NodeState.Leader] KEEP_RETRYING = -1 @@ -58,7 +60,7 @@ def first(elems: Iterable): return elem -def prefer_master(nodes: List[DiscoveredNode]) -> Optional[DiscoveredNode]: +def prefer_leader(nodes: List[DiscoveredNode]) -> Optional[DiscoveredNode]: """ Select the master if available, otherwise fall back to a replica. """ @@ -69,15 +71,15 @@ def prefer_replica(nodes: List[DiscoveredNode]) -> Optional[DiscoveredNode]: """ Select a random replica if any are available or fall back to the master. """ - masters = [node for node in nodes if node.state == NodeState.Master] - replicas = [node for node in nodes if node.state != NodeState.Master] + leaders = [node for node in nodes if node.state == NodeState.Leader] + replicas = [node for node in nodes if node.state != NodeState.Leader] if replicas: return random.choice(replicas) else: # if you have more than one master then you're on your own, bud. - return masters[0] + return leaders[0] def select_random(nodes: List[DiscoveredNode]) -> Optional[DiscoveredNode]: @@ -94,7 +96,7 @@ def select( node for node in gossip if node.is_alive and node.state in ELIGIBLE_STATE ] - selector = selector or prefer_master + selector = selector or prefer_leader LOG.debug( "Selecting node using '%s' from gossip members: %r", selector, eligible_nodes ) @@ -105,7 +107,7 @@ def select( return selector(eligible_nodes) -def read_gossip(data): +def read_gossip(data, secure: bool): if not data: LOG.debug("No gossip returned") @@ -113,17 +115,30 @@ def read_gossip(data): LOG.debug("Received gossip for {%s} nodes", len(data["members"])) - return [ - DiscoveredNode( + + nodes = [] + for m in data["members"]: + internal_tcp_port = m['internalSecureTcpPort'] if secure else m['internalTcpPort'] + external_tcp_port = m['externalSecureTcpPort'] if secure else m['externalTcpPort'] + internal_http_ip = m.get('httpEndPointIp', m.get('internalHttpIp')) + assert internal_http_ip + external_http_ip = m.get('httpEndPointIp', m.get('externalHttpIp')) + assert external_http_ip + internal_http_port = m.get('httpEndPointPort', m.get('internalHttpPort')) + assert internal_http_port + external_http_port = m.get('httpEndPointPort', m.get('externalHttpPort')) + assert external_http_port + node = DiscoveredNode( state=NodeState[m["state"]], is_alive=m["isAlive"], - internal_tcp=NodeService(m["internalTcpIp"], m["internalTcpPort"], None), - external_tcp=NodeService(m["externalTcpIp"], m["externalTcpPort"], None), - internal_http=NodeService(m["internalHttpIp"], m["internalHttpPort"], None), - external_http=NodeService(m["externalHttpIp"], m["externalHttpPort"], None), + internal_tcp=NodeService(m["internalTcpIp"], internal_tcp_port, None), + external_tcp=NodeService(m["externalTcpIp"], external_tcp_port, None), + internal_http=NodeService(internal_http_ip, internal_http_port, None), + external_http=NodeService(external_http_ip, external_http_port, None), ) - for m in data["members"] - ] + + nodes.append(node) + return nodes class DiscoveryFailed(Exception): @@ -216,26 +231,28 @@ def add_node(self, node): self.seeds.append(node) -async def fetch_new_gossip(session, seed): +async def fetch_new_gossip(session, seed, sslcontext): if not seed: return [] - LOG.debug("Fetching gossip from http://%s:%s/gossip", seed.address, seed.port) + url = f"{'https' if sslcontext else 'http'}://{seed.address}:{seed.port}/gossip" + + LOG.debug("Fetching gossip from %s", url) try: - resp = await session.get(f"http://{seed.address}:{seed.port}/gossip") + resp = await session.get(url, ssl=sslcontext) data = await resp.json() - return read_gossip(data) + return read_gossip(data, bool(sslcontext)) except aiohttp.ClientError: LOG.exception( - "Failed loading gossip from http://%s:%s/gossip", seed.address, seed.port + "Failed loading gossip from %s", url ) return None class SingleNodeDiscovery: - def __init__(self, node, retry_policy): + def __init__(self, node: NodeService, retry_policy): self.node = node self.failed = False self.retry_policy = retry_policy @@ -286,12 +303,13 @@ def record_failure(self, node): class ClusterDiscovery: - def __init__(self, seed_finder, retry_policy, selector): + def __init__(self, seed_finder, retry_policy, selector, sslcontext): self.seeds = seed_finder self.last_gossip = [] self.best_node = None self.retry_policy = retry_policy self.selector = selector + self.sslcontext = sslcontext def mark_failed(self, node): self.seeds.mark_failed(node) @@ -315,7 +333,7 @@ async def get_gossip(self): await self.retry_policy.wait(seed) async with aiohttp.ClientSession() as session: - gossip = await fetch_new_gossip(session, seed) + gossip = await fetch_new_gossip(session, seed, self.sslcontext) if gossip: self.record_gossip(seed, gossip) @@ -391,12 +409,13 @@ def record_failure(self, node): def get_discoverer( - host, - port, - discovery_host, - discovery_port, + host: str, + port: int, + discovery_host: Optional[str], + discovery_port: Optional[int], selector: Optional[Selector] = None, retry_policy: Optional[DiscoveryRetryPolicy] = None, + sslcontext: Union[bool, None, ssl.SSLContext] = None, ): if discovery_host is None: LOG.info("Using single-node discoverer") @@ -416,6 +435,7 @@ def get_discoverer( StaticSeedFinder([NodeService(discovery_host, discovery_port, None)]), retry_policy or DiscoveryRetryPolicy(), selector, + sslcontext=sslcontext, ) except socket.error: LOG.info("Using cluster node discovery with DNS") @@ -425,4 +445,5 @@ def get_discoverer( DnsSeedFinder(discovery_host, resolver, discovery_port), retry_policy or DiscoveryRetryPolicy(), selector, + sslcontext=sslcontext, ) diff --git a/photonpump/exceptions.py b/photonpump/exceptions.py index bce950a..23d769c 100644 --- a/photonpump/exceptions.py +++ b/photonpump/exceptions.py @@ -88,9 +88,9 @@ def __init__(self, conversation_id): super().__init__(conversation_id, "Message not handled: Server too busy") -class NotMaster(ConversationException): +class NotLeader(ConversationException): def __init__(self, conversation_id): - super().__init__(conversation_id, "Message not handled: Must be sent to master") + super().__init__(conversation_id, "Message not handled: Must be sent to leader") class NotHandled(ConversationException): diff --git a/photonpump/messages.py b/photonpump/messages.py index e151a03..f8b381f 100644 --- a/photonpump/messages.py +++ b/photonpump/messages.py @@ -208,13 +208,13 @@ def __init__( payload: Any, creds: Credential = None, one_way: bool = False, - require_master=False, + require_leader=False, ) -> None: self.conversation_id = conversation_id self.command = command self.payload = payload self.creds = creds - self.require_master = require_master + self.require_leader = require_leader self.data_length = len(payload) self.length = HEADER_LENGTH + self.data_length @@ -229,7 +229,7 @@ def header_bytes(self): struct.pack_into( ".EventStore.Client.Messages.ReadEventCompleted.ReadEventResult\x12?\n\x05\x65vent\x18\x02 \x02(\x0b\x32\x30.EventStore.Client.Messages.ResolvedIndexedEvent\x12\r\n\x05\x65rror\x18\x03 \x01(\t"j\n\x0fReadEventResult\x12\x0b\n\x07Success\x10\x00\x12\x0c\n\x08NotFound\x10\x01\x12\x0c\n\x08NoStream\x10\x02\x12\x11\n\rStreamDeleted\x10\x03\x12\t\n\x05\x45rror\x10\x04\x12\x10\n\x0c\x41\x63\x63\x65ssDenied\x10\x05"\x8b\x01\n\x10ReadStreamEvents\x12\x17\n\x0f\x65vent_stream_id\x18\x01 \x02(\t\x12\x19\n\x11\x66rom_event_number\x18\x02 \x02(\x05\x12\x11\n\tmax_count\x18\x03 \x02(\x05\x12\x18\n\x10resolve_link_tos\x18\x04 \x02(\x08\x12\x16\n\x0erequire_master\x18\x05 \x02(\x08"\xa2\x03\n\x19ReadStreamEventsCompleted\x12@\n\x06\x65vents\x18\x01 \x03(\x0b\x32\x30.EventStore.Client.Messages.ResolvedIndexedEvent\x12V\n\x06result\x18\x02 \x02(\x0e\x32\x46.EventStore.Client.Messages.ReadStreamEventsCompleted.ReadStreamResult\x12\x19\n\x11next_event_number\x18\x03 \x02(\x05\x12\x19\n\x11last_event_number\x18\x04 \x02(\x05\x12\x18\n\x10is_end_of_stream\x18\x05 \x02(\x08\x12\x1c\n\x14last_commit_position\x18\x06 \x02(\x03\x12\r\n\x05\x65rror\x18\x07 \x01(\t"n\n\x10ReadStreamResult\x12\x0b\n\x07Success\x10\x00\x12\x0c\n\x08NoStream\x10\x01\x12\x11\n\rStreamDeleted\x10\x02\x12\x0f\n\x0bNotModified\x10\x03\x12\t\n\x05\x45rror\x10\x04\x12\x10\n\x0c\x41\x63\x63\x65ssDenied\x10\x05"\x87\x01\n\rReadAllEvents\x12\x17\n\x0f\x63ommit_position\x18\x01 \x02(\x03\x12\x18\n\x10prepare_position\x18\x02 \x02(\x03\x12\x11\n\tmax_count\x18\x03 \x02(\x05\x12\x18\n\x10resolve_link_tos\x18\x04 \x02(\x08\x12\x16\n\x0erequire_master\x18\x05 \x02(\x08"\xf9\x02\n\x16ReadAllEventsCompleted\x12\x17\n\x0f\x63ommit_position\x18\x01 \x02(\x03\x12\x18\n\x10prepare_position\x18\x02 \x02(\x03\x12\x39\n\x06\x65vents\x18\x03 \x03(\x0b\x32).EventStore.Client.Messages.ResolvedEvent\x12\x1c\n\x14next_commit_position\x18\x04 \x02(\x03\x12\x1d\n\x15next_prepare_position\x18\x05 \x02(\x03\x12Y\n\x06result\x18\x06 \x01(\x0e\x32@.EventStore.Client.Messages.ReadAllEventsCompleted.ReadAllResult:\x07Success\x12\r\n\x05\x65rror\x18\x07 \x01(\t"J\n\rReadAllResult\x12\x0b\n\x07Success\x10\x00\x12\x0f\n\x0bNotModified\x10\x01\x12\t\n\x05\x45rror\x10\x02\x12\x10\n\x0c\x41\x63\x63\x65ssDenied\x10\x03"\xde\x03\n\x1c\x43reatePersistentSubscription\x12\x1f\n\x17subscription_group_name\x18\x01 \x02(\t\x12\x17\n\x0f\x65vent_stream_id\x18\x02 \x02(\t\x12\x18\n\x10resolve_link_tos\x18\x03 \x02(\x08\x12\x12\n\nstart_from\x18\x04 \x02(\x05\x12$\n\x1cmessage_timeout_milliseconds\x18\x05 \x02(\x05\x12\x19\n\x11record_statistics\x18\x06 \x02(\x08\x12\x18\n\x10live_buffer_size\x18\x07 \x02(\x05\x12\x17\n\x0fread_batch_size\x18\x08 \x02(\x05\x12\x13\n\x0b\x62uffer_size\x18\t \x02(\x05\x12\x17\n\x0fmax_retry_count\x18\n \x02(\x05\x12\x1a\n\x12prefer_round_robin\x18\x0b \x02(\x08\x12\x1d\n\x15\x63heckpoint_after_time\x18\x0c \x02(\x05\x12\x1c\n\x14\x63heckpoint_max_count\x18\r \x02(\x05\x12\x1c\n\x14\x63heckpoint_min_count\x18\x0e \x02(\x05\x12\x1c\n\x14subscriber_max_count\x18\x0f \x02(\x05\x12\x1f\n\x17named_consumer_strategy\x18\x10 \x01(\t"X\n\x1c\x44\x65letePersistentSubscription\x12\x1f\n\x17subscription_group_name\x18\x01 \x02(\t\x12\x17\n\x0f\x65vent_stream_id\x18\x02 \x02(\t"\xde\x03\n\x1cUpdatePersistentSubscription\x12\x1f\n\x17subscription_group_name\x18\x01 \x02(\t\x12\x17\n\x0f\x65vent_stream_id\x18\x02 \x02(\t\x12\x18\n\x10resolve_link_tos\x18\x03 \x02(\x08\x12\x12\n\nstart_from\x18\x04 \x02(\x05\x12$\n\x1cmessage_timeout_milliseconds\x18\x05 \x02(\x05\x12\x19\n\x11record_statistics\x18\x06 \x02(\x08\x12\x18\n\x10live_buffer_size\x18\x07 \x02(\x05\x12\x17\n\x0fread_batch_size\x18\x08 \x02(\x05\x12\x13\n\x0b\x62uffer_size\x18\t \x02(\x05\x12\x17\n\x0fmax_retry_count\x18\n \x02(\x05\x12\x1a\n\x12prefer_round_robin\x18\x0b \x02(\x08\x12\x1d\n\x15\x63heckpoint_after_time\x18\x0c \x02(\x05\x12\x1c\n\x14\x63heckpoint_max_count\x18\r \x02(\x05\x12\x1c\n\x14\x63heckpoint_min_count\x18\x0e \x02(\x05\x12\x1c\n\x14subscriber_max_count\x18\x0f \x02(\x05\x12\x1f\n\x17named_consumer_strategy\x18\x10 \x01(\t"\x97\x02\n%UpdatePersistentSubscriptionCompleted\x12}\n\x06result\x18\x01 \x02(\x0e\x32\x64.EventStore.Client.Messages.UpdatePersistentSubscriptionCompleted.UpdatePersistentSubscriptionResult:\x07Success\x12\x0e\n\x06reason\x18\x02 \x01(\t"_\n"UpdatePersistentSubscriptionResult\x12\x0b\n\x07Success\x10\x00\x12\x10\n\x0c\x44oesNotExist\x10\x01\x12\x08\n\x04\x46\x61il\x10\x02\x12\x10\n\x0c\x41\x63\x63\x65ssDenied\x10\x03"\x98\x02\n%CreatePersistentSubscriptionCompleted\x12}\n\x06result\x18\x01 \x02(\x0e\x32\x64.EventStore.Client.Messages.CreatePersistentSubscriptionCompleted.CreatePersistentSubscriptionResult:\x07Success\x12\x0e\n\x06reason\x18\x02 \x01(\t"`\n"CreatePersistentSubscriptionResult\x12\x0b\n\x07Success\x10\x00\x12\x11\n\rAlreadyExists\x10\x01\x12\x08\n\x04\x46\x61il\x10\x02\x12\x10\n\x0c\x41\x63\x63\x65ssDenied\x10\x03"\x97\x02\n%DeletePersistentSubscriptionCompleted\x12}\n\x06result\x18\x01 \x02(\x0e\x32\x64.EventStore.Client.Messages.DeletePersistentSubscriptionCompleted.DeletePersistentSubscriptionResult:\x07Success\x12\x0e\n\x06reason\x18\x02 \x01(\t"_\n"DeletePersistentSubscriptionResult\x12\x0b\n\x07Success\x10\x00\x12\x10\n\x0c\x44oesNotExist\x10\x01\x12\x08\n\x04\x46\x61il\x10\x02\x12\x10\n\x0c\x41\x63\x63\x65ssDenied\x10\x03"w\n\x1f\x43onnectToPersistentSubscription\x12\x17\n\x0fsubscription_id\x18\x01 \x02(\t\x12\x17\n\x0f\x65vent_stream_id\x18\x02 \x02(\t\x12"\n\x1a\x61llowed_in_flight_messages\x18\x03 \x02(\x05"W\n\x1fPersistentSubscriptionAckEvents\x12\x17\n\x0fsubscription_id\x18\x01 \x02(\t\x12\x1b\n\x13processed_event_ids\x18\x02 \x03(\x0c"\x8b\x02\n\x1fPersistentSubscriptionNakEvents\x12\x17\n\x0fsubscription_id\x18\x01 \x02(\t\x12\x1b\n\x13processed_event_ids\x18\x02 \x03(\x0c\x12\x0f\n\x07message\x18\x03 \x01(\t\x12^\n\x06\x61\x63tion\x18\x04 \x02(\x0e\x32\x45.EventStore.Client.Messages.PersistentSubscriptionNakEvents.NakAction:\x07Unknown"A\n\tNakAction\x12\x0b\n\x07Unknown\x10\x00\x12\x08\n\x04Park\x10\x01\x12\t\n\x05Retry\x10\x02\x12\x08\n\x04Skip\x10\x03\x12\x08\n\x04Stop\x10\x04"v\n"PersistentSubscriptionConfirmation\x12\x1c\n\x14last_commit_position\x18\x01 \x02(\x03\x12\x17\n\x0fsubscription_id\x18\x02 \x02(\t\x12\x19\n\x11last_event_number\x18\x03 \x01(\x05"l\n)PersistentSubscriptionStreamEventAppeared\x12?\n\x05\x65vent\x18\x01 \x02(\x0b\x32\x30.EventStore.Client.Messages.ResolvedIndexedEvent"F\n\x11SubscribeToStream\x12\x17\n\x0f\x65vent_stream_id\x18\x01 \x02(\t\x12\x18\n\x10resolve_link_tos\x18\x02 \x02(\x08"S\n\x18SubscriptionConfirmation\x12\x1c\n\x14last_commit_position\x18\x01 \x02(\x03\x12\x19\n\x11last_event_number\x18\x02 \x01(\x05"O\n\x13StreamEventAppeared\x12\x38\n\x05\x65vent\x18\x01 \x02(\x0b\x32).EventStore.Client.Messages.ResolvedEvent"\x17\n\x15UnsubscribeFromStream"\x06\n\x04Ping"\x06\n\x04Pong"\x8a\x02\n\x13SubscriptionDropped\x12\x64\n\x06reason\x18\x01 \x01(\x0e\x32\x46.EventStore.Client.Messages.SubscriptionDropped.SubscriptionDropReason:\x0cUnsubscribed"\x8c\x01\n\x16SubscriptionDropReason\x12\x10\n\x0cUnsubscribed\x10\x00\x12\x10\n\x0c\x41\x63\x63\x65ssDenied\x10\x01\x12\x0c\n\x08NotFound\x10\x02\x12!\n\x1dPersistentSubscriptionDeleted\x10\x03\x12\x1d\n\x19SubscriberMaxCountReached\x10\x04"\xf6\x02\n\nNotHandled\x12G\n\x06reason\x18\x01 \x02(\x0e\x32\x37.EventStore.Client.Messages.NotHandled.NotHandledReason\x12\x17\n\x0f\x61\x64\x64itional_info\x18\x02 \x01(\x0c\x1a\xc7\x01\n\nMasterInfo\x12\x1c\n\x14\x65xternal_tcp_address\x18\x01 \x02(\t\x12\x19\n\x11\x65xternal_tcp_port\x18\x02 \x02(\x05\x12\x1d\n\x15\x65xternal_http_address\x18\x03 \x02(\t\x12\x1a\n\x12\x65xternal_http_port\x18\x04 \x02(\x05\x12#\n\x1b\x65xternal_secure_tcp_address\x18\x05 \x01(\t\x12 \n\x18\x65xternal_secure_tcp_port\x18\x06 \x01(\x05"<\n\x10NotHandledReason\x12\x0c\n\x08NotReady\x10\x00\x12\x0b\n\x07TooBusy\x10\x01\x12\r\n\tNotMaster\x10\x02"\x12\n\x10ScavengeDatabase"\xed\x01\n\x19ScavengeDatabaseCompleted\x12T\n\x06result\x18\x01 \x02(\x0e\x32\x44.EventStore.Client.Messages.ScavengeDatabaseCompleted.ScavengeResult\x12\r\n\x05\x65rror\x18\x02 \x01(\t\x12\x15\n\rtotal_time_ms\x18\x03 \x02(\x05\x12\x19\n\x11total_space_saved\x18\x04 \x02(\x03"9\n\x0eScavengeResult\x12\x0b\n\x07Success\x10\x00\x12\x0e\n\nInProgress\x10\x01\x12\n\n\x06\x46\x61iled\x10\x02*\xb0\x01\n\x0fOperationResult\x12\x0b\n\x07Success\x10\x00\x12\x12\n\x0ePrepareTimeout\x10\x01\x12\x11\n\rCommitTimeout\x10\x02\x12\x12\n\x0e\x46orwardTimeout\x10\x03\x12\x18\n\x14WrongExpectedVersion\x10\x04\x12\x11\n\rStreamDeleted\x10\x05\x12\x16\n\x12InvalidTransaction\x10\x06\x12\x10\n\x0c\x41\x63\x63\x65ssDenied\x10\x07', -) -_OPERATIONRESULT = _descriptor.EnumDescriptor( - name="OperationResult", - full_name="EventStore.Client.Messages.OperationResult", - filename=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - values=[ - _descriptor.EnumValueDescriptor( - name="Success", - index=0, - number=0, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.EnumValueDescriptor( - name="PrepareTimeout", - index=1, - number=1, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.EnumValueDescriptor( - name="CommitTimeout", - index=2, - number=2, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.EnumValueDescriptor( - name="ForwardTimeout", - index=3, - number=3, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.EnumValueDescriptor( - name="WrongExpectedVersion", - index=4, - number=4, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.EnumValueDescriptor( - name="StreamDeleted", - index=5, - number=5, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.EnumValueDescriptor( - name="InvalidTransaction", - index=6, - number=6, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.EnumValueDescriptor( - name="AccessDenied", - index=7, - number=7, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key, - ), - ], - containing_type=None, - serialized_options=None, - serialized_start=7421, - serialized_end=7597, -) -_sym_db.RegisterEnumDescriptor(_OPERATIONRESULT) +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x0emessages.proto\x12\x1a\x45ventStore.Client.Messages\"\x8a\x01\n\x08NewEvent\x12\x10\n\x08\x65vent_id\x18\x01 \x01(\x0c\x12\x12\n\nevent_type\x18\x02 \x01(\t\x12\x19\n\x11\x64\x61ta_content_type\x18\x03 \x01(\x05\x12\x1d\n\x15metadata_content_type\x18\x04 \x01(\x05\x12\x0c\n\x04\x64\x61ta\x18\x05 \x01(\x0c\x12\x10\n\x08metadata\x18\x06 \x01(\x0c\"\xe4\x01\n\x0b\x45ventRecord\x12\x17\n\x0f\x65vent_stream_id\x18\x01 \x01(\t\x12\x14\n\x0c\x65vent_number\x18\x02 \x01(\x03\x12\x10\n\x08\x65vent_id\x18\x03 \x01(\x0c\x12\x12\n\nevent_type\x18\x04 \x01(\t\x12\x19\n\x11\x64\x61ta_content_type\x18\x05 \x01(\x05\x12\x1d\n\x15metadata_content_type\x18\x06 \x01(\x05\x12\x0c\n\x04\x64\x61ta\x18\x07 \x01(\x0c\x12\x10\n\x08metadata\x18\x08 \x01(\x0c\x12\x0f\n\x07\x63reated\x18\t \x01(\x03\x12\x15\n\rcreated_epoch\x18\n \x01(\x03\"\x85\x01\n\x14ResolvedIndexedEvent\x12\x36\n\x05\x65vent\x18\x01 \x01(\x0b\x32\'.EventStore.Client.Messages.EventRecord\x12\x35\n\x04link\x18\x02 \x01(\x0b\x32\'.EventStore.Client.Messages.EventRecord\"\xb1\x01\n\rResolvedEvent\x12\x36\n\x05\x65vent\x18\x01 \x01(\x0b\x32\'.EventStore.Client.Messages.EventRecord\x12\x35\n\x04link\x18\x02 \x01(\x0b\x32\'.EventStore.Client.Messages.EventRecord\x12\x17\n\x0f\x63ommit_position\x18\x03 \x01(\x03\x12\x18\n\x10prepare_position\x18\x04 \x01(\x03\"\x8e\x01\n\x0bWriteEvents\x12\x17\n\x0f\x65vent_stream_id\x18\x01 \x01(\t\x12\x18\n\x10\x65xpected_version\x18\x02 \x01(\x03\x12\x34\n\x06\x65vents\x18\x03 \x03(\x0b\x32$.EventStore.Client.Messages.NewEvent\x12\x16\n\x0erequire_leader\x18\x04 \x01(\x08\"\xe7\x01\n\x14WriteEventsCompleted\x12;\n\x06result\x18\x01 \x01(\x0e\x32+.EventStore.Client.Messages.OperationResult\x12\x0f\n\x07message\x18\x02 \x01(\t\x12\x1a\n\x12\x66irst_event_number\x18\x03 \x01(\x03\x12\x19\n\x11last_event_number\x18\x04 \x01(\x03\x12\x18\n\x10prepare_position\x18\x05 \x01(\x03\x12\x17\n\x0f\x63ommit_position\x18\x06 \x01(\x03\x12\x17\n\x0f\x63urrent_version\x18\x07 \x01(\x03\"n\n\x0c\x44\x65leteStream\x12\x17\n\x0f\x65vent_stream_id\x18\x01 \x01(\t\x12\x18\n\x10\x65xpected_version\x18\x02 \x01(\x03\x12\x16\n\x0erequire_leader\x18\x03 \x01(\x08\x12\x13\n\x0bhard_delete\x18\x04 \x01(\x08\"\xb1\x01\n\x15\x44\x65leteStreamCompleted\x12;\n\x06result\x18\x01 \x01(\x0e\x32+.EventStore.Client.Messages.OperationResult\x12\x0f\n\x07message\x18\x02 \x01(\t\x12\x18\n\x10prepare_position\x18\x03 \x01(\x03\x12\x17\n\x0f\x63ommit_position\x18\x04 \x01(\x03\x12\x17\n\x0f\x63urrent_version\x18\x05 \x01(\x03\"]\n\x10TransactionStart\x12\x17\n\x0f\x65vent_stream_id\x18\x01 \x01(\t\x12\x18\n\x10\x65xpected_version\x18\x02 \x01(\x03\x12\x16\n\x0erequire_leader\x18\x03 \x01(\x08\"\x81\x01\n\x19TransactionStartCompleted\x12\x16\n\x0etransaction_id\x18\x01 \x01(\x03\x12;\n\x06result\x18\x02 \x01(\x0e\x32+.EventStore.Client.Messages.OperationResult\x12\x0f\n\x07message\x18\x03 \x01(\t\"x\n\x10TransactionWrite\x12\x16\n\x0etransaction_id\x18\x01 \x01(\x03\x12\x34\n\x06\x65vents\x18\x02 \x03(\x0b\x32$.EventStore.Client.Messages.NewEvent\x12\x16\n\x0erequire_leader\x18\x03 \x01(\x08\"\x81\x01\n\x19TransactionWriteCompleted\x12\x16\n\x0etransaction_id\x18\x01 \x01(\x03\x12;\n\x06result\x18\x02 \x01(\x0e\x32+.EventStore.Client.Messages.OperationResult\x12\x0f\n\x07message\x18\x03 \x01(\t\"C\n\x11TransactionCommit\x12\x16\n\x0etransaction_id\x18\x01 \x01(\x03\x12\x16\n\x0erequire_leader\x18\x02 \x01(\x08\"\xec\x01\n\x1aTransactionCommitCompleted\x12\x16\n\x0etransaction_id\x18\x01 \x01(\x03\x12;\n\x06result\x18\x02 \x01(\x0e\x32+.EventStore.Client.Messages.OperationResult\x12\x0f\n\x07message\x18\x03 \x01(\t\x12\x1a\n\x12\x66irst_event_number\x18\x04 \x01(\x03\x12\x19\n\x11last_event_number\x18\x05 \x01(\x03\x12\x18\n\x10prepare_position\x18\x06 \x01(\x03\x12\x17\n\x0f\x63ommit_position\x18\x07 \x01(\x03\"l\n\tReadEvent\x12\x17\n\x0f\x65vent_stream_id\x18\x01 \x01(\t\x12\x14\n\x0c\x65vent_number\x18\x02 \x01(\x03\x12\x18\n\x10resolve_link_tos\x18\x03 \x01(\x08\x12\x16\n\x0erequire_leader\x18\x04 \x01(\x08\"\xa0\x02\n\x12ReadEventCompleted\x12N\n\x06result\x18\x01 \x01(\x0e\x32>.EventStore.Client.Messages.ReadEventCompleted.ReadEventResult\x12?\n\x05\x65vent\x18\x02 \x01(\x0b\x32\x30.EventStore.Client.Messages.ResolvedIndexedEvent\x12\r\n\x05\x65rror\x18\x03 \x01(\t\"j\n\x0fReadEventResult\x12\x0b\n\x07Success\x10\x00\x12\x0c\n\x08NotFound\x10\x01\x12\x0c\n\x08NoStream\x10\x02\x12\x11\n\rStreamDeleted\x10\x03\x12\t\n\x05\x45rror\x10\x04\x12\x10\n\x0c\x41\x63\x63\x65ssDenied\x10\x05\"\x8b\x01\n\x10ReadStreamEvents\x12\x17\n\x0f\x65vent_stream_id\x18\x01 \x01(\t\x12\x19\n\x11\x66rom_event_number\x18\x02 \x01(\x03\x12\x11\n\tmax_count\x18\x03 \x01(\x05\x12\x18\n\x10resolve_link_tos\x18\x04 \x01(\x08\x12\x16\n\x0erequire_leader\x18\x05 \x01(\x08\"\xa2\x03\n\x19ReadStreamEventsCompleted\x12@\n\x06\x65vents\x18\x01 \x03(\x0b\x32\x30.EventStore.Client.Messages.ResolvedIndexedEvent\x12V\n\x06result\x18\x02 \x01(\x0e\x32\x46.EventStore.Client.Messages.ReadStreamEventsCompleted.ReadStreamResult\x12\x19\n\x11next_event_number\x18\x03 \x01(\x03\x12\x19\n\x11last_event_number\x18\x04 \x01(\x03\x12\x18\n\x10is_end_of_stream\x18\x05 \x01(\x08\x12\x1c\n\x14last_commit_position\x18\x06 \x01(\x03\x12\r\n\x05\x65rror\x18\x07 \x01(\t\"n\n\x10ReadStreamResult\x12\x0b\n\x07Success\x10\x00\x12\x0c\n\x08NoStream\x10\x01\x12\x11\n\rStreamDeleted\x10\x02\x12\x0f\n\x0bNotModified\x10\x03\x12\t\n\x05\x45rror\x10\x04\x12\x10\n\x0c\x41\x63\x63\x65ssDenied\x10\x05\"\x87\x01\n\rReadAllEvents\x12\x17\n\x0f\x63ommit_position\x18\x01 \x01(\x03\x12\x18\n\x10prepare_position\x18\x02 \x01(\x03\x12\x11\n\tmax_count\x18\x03 \x01(\x05\x12\x18\n\x10resolve_link_tos\x18\x04 \x01(\x08\x12\x16\n\x0erequire_leader\x18\x05 \x01(\x08\"\xf0\x02\n\x16ReadAllEventsCompleted\x12\x17\n\x0f\x63ommit_position\x18\x01 \x01(\x03\x12\x18\n\x10prepare_position\x18\x02 \x01(\x03\x12\x39\n\x06\x65vents\x18\x03 \x03(\x0b\x32).EventStore.Client.Messages.ResolvedEvent\x12\x1c\n\x14next_commit_position\x18\x04 \x01(\x03\x12\x1d\n\x15next_prepare_position\x18\x05 \x01(\x03\x12P\n\x06result\x18\x06 \x01(\x0e\x32@.EventStore.Client.Messages.ReadAllEventsCompleted.ReadAllResult\x12\r\n\x05\x65rror\x18\x07 \x01(\t\"J\n\rReadAllResult\x12\x0b\n\x07Success\x10\x00\x12\x0f\n\x0bNotModified\x10\x01\x12\t\n\x05\x45rror\x10\x02\x12\x10\n\x0c\x41\x63\x63\x65ssDenied\x10\x03\"\xe9\x01\n\x06\x46ilter\x12\x41\n\x07\x63ontext\x18\x01 \x01(\x0e\x32\x30.EventStore.Client.Messages.Filter.FilterContext\x12;\n\x04type\x18\x02 \x01(\x0e\x32-.EventStore.Client.Messages.Filter.FilterType\x12\x0c\n\x04\x64\x61ta\x18\x03 \x03(\t\",\n\rFilterContext\x12\x0c\n\x08StreamId\x10\x00\x12\r\n\tEventType\x10\x01\"#\n\nFilterType\x12\t\n\x05Regex\x10\x00\x12\n\n\x06Prefix\x10\x01\"\xde\x01\n\x15\x46ilteredReadAllEvents\x12\x17\n\x0f\x63ommit_position\x18\x01 \x01(\x03\x12\x18\n\x10prepare_position\x18\x02 \x01(\x03\x12\x11\n\tmax_count\x18\x03 \x01(\x05\x12\x19\n\x11max_search_window\x18\x04 \x01(\x05\x12\x18\n\x10resolve_link_tos\x18\x05 \x01(\x08\x12\x16\n\x0erequire_leader\x18\x06 \x01(\x08\x12\x32\n\x06\x66ilter\x18\x07 \x01(\x0b\x32\".EventStore.Client.Messages.Filter\"\xaa\x03\n\x1e\x46ilteredReadAllEventsCompleted\x12\x17\n\x0f\x63ommit_position\x18\x01 \x01(\x03\x12\x18\n\x10prepare_position\x18\x02 \x01(\x03\x12\x39\n\x06\x65vents\x18\x03 \x03(\x0b\x32).EventStore.Client.Messages.ResolvedEvent\x12\x1c\n\x14next_commit_position\x18\x04 \x01(\x03\x12\x1d\n\x15next_prepare_position\x18\x05 \x01(\x03\x12\x18\n\x10is_end_of_stream\x18\x06 \x01(\x08\x12`\n\x06result\x18\x07 \x01(\x0e\x32P.EventStore.Client.Messages.FilteredReadAllEventsCompleted.FilteredReadAllResult\x12\r\n\x05\x65rror\x18\x08 \x01(\t\"R\n\x15\x46ilteredReadAllResult\x12\x0b\n\x07Success\x10\x00\x12\x0f\n\x0bNotModified\x10\x01\x12\t\n\x05\x45rror\x10\x02\x12\x10\n\x0c\x41\x63\x63\x65ssDenied\x10\x03\"\xde\x03\n\x1c\x43reatePersistentSubscription\x12\x1f\n\x17subscription_group_name\x18\x01 \x01(\t\x12\x17\n\x0f\x65vent_stream_id\x18\x02 \x01(\t\x12\x18\n\x10resolve_link_tos\x18\x03 \x01(\x08\x12\x12\n\nstart_from\x18\x04 \x01(\x03\x12$\n\x1cmessage_timeout_milliseconds\x18\x05 \x01(\x05\x12\x19\n\x11record_statistics\x18\x06 \x01(\x08\x12\x18\n\x10live_buffer_size\x18\x07 \x01(\x05\x12\x17\n\x0fread_batch_size\x18\x08 \x01(\x05\x12\x13\n\x0b\x62uffer_size\x18\t \x01(\x05\x12\x17\n\x0fmax_retry_count\x18\n \x01(\x05\x12\x1a\n\x12prefer_round_robin\x18\x0b \x01(\x08\x12\x1d\n\x15\x63heckpoint_after_time\x18\x0c \x01(\x05\x12\x1c\n\x14\x63heckpoint_max_count\x18\r \x01(\x05\x12\x1c\n\x14\x63heckpoint_min_count\x18\x0e \x01(\x05\x12\x1c\n\x14subscriber_max_count\x18\x0f \x01(\x05\x12\x1f\n\x17named_consumer_strategy\x18\x10 \x01(\t\"X\n\x1c\x44\x65letePersistentSubscription\x12\x1f\n\x17subscription_group_name\x18\x01 \x01(\t\x12\x17\n\x0f\x65vent_stream_id\x18\x02 \x01(\t\"\xde\x03\n\x1cUpdatePersistentSubscription\x12\x1f\n\x17subscription_group_name\x18\x01 \x01(\t\x12\x17\n\x0f\x65vent_stream_id\x18\x02 \x01(\t\x12\x18\n\x10resolve_link_tos\x18\x03 \x01(\x08\x12\x12\n\nstart_from\x18\x04 \x01(\x03\x12$\n\x1cmessage_timeout_milliseconds\x18\x05 \x01(\x05\x12\x19\n\x11record_statistics\x18\x06 \x01(\x08\x12\x18\n\x10live_buffer_size\x18\x07 \x01(\x05\x12\x17\n\x0fread_batch_size\x18\x08 \x01(\x05\x12\x13\n\x0b\x62uffer_size\x18\t \x01(\x05\x12\x17\n\x0fmax_retry_count\x18\n \x01(\x05\x12\x1a\n\x12prefer_round_robin\x18\x0b \x01(\x08\x12\x1d\n\x15\x63heckpoint_after_time\x18\x0c \x01(\x05\x12\x1c\n\x14\x63heckpoint_max_count\x18\r \x01(\x05\x12\x1c\n\x14\x63heckpoint_min_count\x18\x0e \x01(\x05\x12\x1c\n\x14subscriber_max_count\x18\x0f \x01(\x05\x12\x1f\n\x17named_consumer_strategy\x18\x10 \x01(\t\"\x8e\x02\n%UpdatePersistentSubscriptionCompleted\x12t\n\x06result\x18\x01 \x01(\x0e\x32\x64.EventStore.Client.Messages.UpdatePersistentSubscriptionCompleted.UpdatePersistentSubscriptionResult\x12\x0e\n\x06reason\x18\x02 \x01(\t\"_\n\"UpdatePersistentSubscriptionResult\x12\x0b\n\x07Success\x10\x00\x12\x10\n\x0c\x44oesNotExist\x10\x01\x12\x08\n\x04\x46\x61il\x10\x02\x12\x10\n\x0c\x41\x63\x63\x65ssDenied\x10\x03\"\x8f\x02\n%CreatePersistentSubscriptionCompleted\x12t\n\x06result\x18\x01 \x01(\x0e\x32\x64.EventStore.Client.Messages.CreatePersistentSubscriptionCompleted.CreatePersistentSubscriptionResult\x12\x0e\n\x06reason\x18\x02 \x01(\t\"`\n\"CreatePersistentSubscriptionResult\x12\x0b\n\x07Success\x10\x00\x12\x11\n\rAlreadyExists\x10\x01\x12\x08\n\x04\x46\x61il\x10\x02\x12\x10\n\x0c\x41\x63\x63\x65ssDenied\x10\x03\"\x8e\x02\n%DeletePersistentSubscriptionCompleted\x12t\n\x06result\x18\x01 \x01(\x0e\x32\x64.EventStore.Client.Messages.DeletePersistentSubscriptionCompleted.DeletePersistentSubscriptionResult\x12\x0e\n\x06reason\x18\x02 \x01(\t\"_\n\"DeletePersistentSubscriptionResult\x12\x0b\n\x07Success\x10\x00\x12\x10\n\x0c\x44oesNotExist\x10\x01\x12\x08\n\x04\x46\x61il\x10\x02\x12\x10\n\x0c\x41\x63\x63\x65ssDenied\x10\x03\"w\n\x1f\x43onnectToPersistentSubscription\x12\x17\n\x0fsubscription_id\x18\x01 \x01(\t\x12\x17\n\x0f\x65vent_stream_id\x18\x02 \x01(\t\x12\"\n\x1a\x61llowed_in_flight_messages\x18\x03 \x01(\x05\"W\n\x1fPersistentSubscriptionAckEvents\x12\x17\n\x0fsubscription_id\x18\x01 \x01(\t\x12\x1b\n\x13processed_event_ids\x18\x02 \x03(\x0c\"\x82\x02\n\x1fPersistentSubscriptionNakEvents\x12\x17\n\x0fsubscription_id\x18\x01 \x01(\t\x12\x1b\n\x13processed_event_ids\x18\x02 \x03(\x0c\x12\x0f\n\x07message\x18\x03 \x01(\t\x12U\n\x06\x61\x63tion\x18\x04 \x01(\x0e\x32\x45.EventStore.Client.Messages.PersistentSubscriptionNakEvents.NakAction\"A\n\tNakAction\x12\x0b\n\x07Unknown\x10\x00\x12\x08\n\x04Park\x10\x01\x12\t\n\x05Retry\x10\x02\x12\x08\n\x04Skip\x10\x03\x12\x08\n\x04Stop\x10\x04\"v\n\"PersistentSubscriptionConfirmation\x12\x1c\n\x14last_commit_position\x18\x01 \x01(\x03\x12\x17\n\x0fsubscription_id\x18\x02 \x01(\t\x12\x19\n\x11last_event_number\x18\x03 \x01(\x03\"\x80\x01\n)PersistentSubscriptionStreamEventAppeared\x12?\n\x05\x65vent\x18\x01 \x01(\x0b\x32\x30.EventStore.Client.Messages.ResolvedIndexedEvent\x12\x12\n\nretryCount\x18\x02 \x01(\x05\"F\n\x11SubscribeToStream\x12\x17\n\x0f\x65vent_stream_id\x18\x01 \x01(\t\x12\x18\n\x10resolve_link_tos\x18\x02 \x01(\x08\"\x9f\x01\n\x19\x46ilteredSubscribeToStream\x12\x17\n\x0f\x65vent_stream_id\x18\x01 \x01(\t\x12\x18\n\x10resolve_link_tos\x18\x02 \x01(\x08\x12\x32\n\x06\x66ilter\x18\x03 \x01(\x0b\x32\".EventStore.Client.Messages.Filter\x12\x1b\n\x13\x63heckpoint_interval\x18\x04 \x01(\x05\"F\n\x11\x43heckpointReached\x12\x17\n\x0f\x63ommit_position\x18\x01 \x01(\x03\x12\x18\n\x10prepare_position\x18\x02 \x01(\x03\"S\n\x18SubscriptionConfirmation\x12\x1c\n\x14last_commit_position\x18\x01 \x01(\x03\x12\x19\n\x11last_event_number\x18\x02 \x01(\x03\"O\n\x13StreamEventAppeared\x12\x38\n\x05\x65vent\x18\x01 \x01(\x0b\x32).EventStore.Client.Messages.ResolvedEvent\"\x17\n\x15UnsubscribeFromStream\"\xfc\x01\n\x13SubscriptionDropped\x12V\n\x06reason\x18\x01 \x01(\x0e\x32\x46.EventStore.Client.Messages.SubscriptionDropped.SubscriptionDropReason\"\x8c\x01\n\x16SubscriptionDropReason\x12\x10\n\x0cUnsubscribed\x10\x00\x12\x10\n\x0c\x41\x63\x63\x65ssDenied\x10\x01\x12\x0c\n\x08NotFound\x10\x02\x12!\n\x1dPersistentSubscriptionDeleted\x10\x03\x12\x1d\n\x19SubscriberMaxCountReached\x10\x04\"\xf4\x02\n\nNotHandled\x12G\n\x06reason\x18\x01 \x01(\x0e\x32\x37.EventStore.Client.Messages.NotHandled.NotHandledReason\x12\x17\n\x0f\x61\x64\x64itional_info\x18\x02 \x01(\x0c\x1a\xb5\x01\n\nLeaderInfo\x12\x1c\n\x14\x65xternal_tcp_address\x18\x01 \x01(\t\x12\x19\n\x11\x65xternal_tcp_port\x18\x02 \x01(\x05\x12\x14\n\x0chttp_address\x18\x03 \x01(\t\x12\x11\n\thttp_port\x18\x04 \x01(\x05\x12#\n\x1b\x65xternal_secure_tcp_address\x18\x05 \x01(\t\x12 \n\x18\x65xternal_secure_tcp_port\x18\x06 \x01(\x05\"L\n\x10NotHandledReason\x12\x0c\n\x08NotReady\x10\x00\x12\x0b\n\x07TooBusy\x10\x01\x12\r\n\tNotLeader\x10\x02\x12\x0e\n\nIsReadOnly\x10\x03\"\x12\n\x10ScavengeDatabase\"\xc4\x01\n\x18ScavengeDatabaseResponse\x12S\n\x06result\x18\x01 \x01(\x0e\x32\x43.EventStore.Client.Messages.ScavengeDatabaseResponse.ScavengeResult\x12\x12\n\nscavengeId\x18\x02 \x01(\t\"?\n\x0eScavengeResult\x12\x0b\n\x07Started\x10\x00\x12\x0e\n\nInProgress\x10\x01\x12\x10\n\x0cUnauthorized\x10\x02\":\n\x0eIdentifyClient\x12\x0f\n\x07version\x18\x01 \x01(\x05\x12\x17\n\x0f\x63onnection_name\x18\x02 \x01(\t\"\x12\n\x10\x43lientIdentified*\xb0\x01\n\x0fOperationResult\x12\x0b\n\x07Success\x10\x00\x12\x12\n\x0ePrepareTimeout\x10\x01\x12\x11\n\rCommitTimeout\x10\x02\x12\x12\n\x0e\x46orwardTimeout\x10\x03\x12\x18\n\x14WrongExpectedVersion\x10\x04\x12\x11\n\rStreamDeleted\x10\x05\x12\x16\n\x12InvalidTransaction\x10\x06\x12\x10\n\x0c\x41\x63\x63\x65ssDenied\x10\x07\x62\x06proto3') + +_OPERATIONRESULT = DESCRIPTOR.enum_types_by_name['OperationResult'] OperationResult = enum_type_wrapper.EnumTypeWrapper(_OPERATIONRESULT) Success = 0 PrepareTimeout = 1 @@ -112,5153 +29,519 @@ AccessDenied = 7 -_READEVENTCOMPLETED_READEVENTRESULT = _descriptor.EnumDescriptor( - name="ReadEventResult", - full_name="EventStore.Client.Messages.ReadEventCompleted.ReadEventResult", - filename=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - values=[ - _descriptor.EnumValueDescriptor( - name="Success", - index=0, - number=0, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.EnumValueDescriptor( - name="NotFound", - index=1, - number=1, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.EnumValueDescriptor( - name="NoStream", - index=2, - number=2, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.EnumValueDescriptor( - name="StreamDeleted", - index=3, - number=3, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.EnumValueDescriptor( - name="Error", - index=4, - number=4, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.EnumValueDescriptor( - name="AccessDenied", - index=5, - number=5, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key, - ), - ], - containing_type=None, - serialized_options=None, - serialized_start=2437, - serialized_end=2543, -) -_sym_db.RegisterEnumDescriptor(_READEVENTCOMPLETED_READEVENTRESULT) - -_READSTREAMEVENTSCOMPLETED_READSTREAMRESULT = _descriptor.EnumDescriptor( - name="ReadStreamResult", - full_name="EventStore.Client.Messages.ReadStreamEventsCompleted.ReadStreamResult", - filename=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - values=[ - _descriptor.EnumValueDescriptor( - name="Success", - index=0, - number=0, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.EnumValueDescriptor( - name="NoStream", - index=1, - number=1, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.EnumValueDescriptor( - name="StreamDeleted", - index=2, - number=2, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.EnumValueDescriptor( - name="NotModified", - index=3, - number=3, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.EnumValueDescriptor( - name="Error", - index=4, - number=4, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.EnumValueDescriptor( - name="AccessDenied", - index=5, - number=5, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key, - ), - ], - containing_type=None, - serialized_options=None, - serialized_start=2996, - serialized_end=3106, -) -_sym_db.RegisterEnumDescriptor(_READSTREAMEVENTSCOMPLETED_READSTREAMRESULT) - -_READALLEVENTSCOMPLETED_READALLRESULT = _descriptor.EnumDescriptor( - name="ReadAllResult", - full_name="EventStore.Client.Messages.ReadAllEventsCompleted.ReadAllResult", - filename=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - values=[ - _descriptor.EnumValueDescriptor( - name="Success", - index=0, - number=0, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.EnumValueDescriptor( - name="NotModified", - index=1, - number=1, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.EnumValueDescriptor( - name="Error", - index=2, - number=2, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.EnumValueDescriptor( - name="AccessDenied", - index=3, - number=3, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key, - ), - ], - containing_type=None, - serialized_options=None, - serialized_start=3550, - serialized_end=3624, -) -_sym_db.RegisterEnumDescriptor(_READALLEVENTSCOMPLETED_READALLRESULT) - -_UPDATEPERSISTENTSUBSCRIPTIONCOMPLETED_UPDATEPERSISTENTSUBSCRIPTIONRESULT = _descriptor.EnumDescriptor( - name="UpdatePersistentSubscriptionResult", - full_name="EventStore.Client.Messages.UpdatePersistentSubscriptionCompleted.UpdatePersistentSubscriptionResult", - filename=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - values=[ - _descriptor.EnumValueDescriptor( - name="Success", - index=0, - number=0, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.EnumValueDescriptor( - name="DoesNotExist", - index=1, - number=1, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.EnumValueDescriptor( - name="Fail", - index=2, - number=2, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.EnumValueDescriptor( - name="AccessDenied", - index=3, - number=3, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key, - ), - ], - containing_type=None, - serialized_options=None, - serialized_start=4863, - serialized_end=4958, -) -_sym_db.RegisterEnumDescriptor( - _UPDATEPERSISTENTSUBSCRIPTIONCOMPLETED_UPDATEPERSISTENTSUBSCRIPTIONRESULT -) - -_CREATEPERSISTENTSUBSCRIPTIONCOMPLETED_CREATEPERSISTENTSUBSCRIPTIONRESULT = _descriptor.EnumDescriptor( - name="CreatePersistentSubscriptionResult", - full_name="EventStore.Client.Messages.CreatePersistentSubscriptionCompleted.CreatePersistentSubscriptionResult", - filename=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - values=[ - _descriptor.EnumValueDescriptor( - name="Success", - index=0, - number=0, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.EnumValueDescriptor( - name="AlreadyExists", - index=1, - number=1, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.EnumValueDescriptor( - name="Fail", - index=2, - number=2, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.EnumValueDescriptor( - name="AccessDenied", - index=3, - number=3, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key, - ), - ], - containing_type=None, - serialized_options=None, - serialized_start=5145, - serialized_end=5241, -) -_sym_db.RegisterEnumDescriptor( - _CREATEPERSISTENTSUBSCRIPTIONCOMPLETED_CREATEPERSISTENTSUBSCRIPTIONRESULT -) - -_DELETEPERSISTENTSUBSCRIPTIONCOMPLETED_DELETEPERSISTENTSUBSCRIPTIONRESULT = _descriptor.EnumDescriptor( - name="DeletePersistentSubscriptionResult", - full_name="EventStore.Client.Messages.DeletePersistentSubscriptionCompleted.DeletePersistentSubscriptionResult", - filename=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - values=[ - _descriptor.EnumValueDescriptor( - name="Success", - index=0, - number=0, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.EnumValueDescriptor( - name="DoesNotExist", - index=1, - number=1, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.EnumValueDescriptor( - name="Fail", - index=2, - number=2, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.EnumValueDescriptor( - name="AccessDenied", - index=3, - number=3, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key, - ), - ], - containing_type=None, - serialized_options=None, - serialized_start=5428, - serialized_end=5523, -) -_sym_db.RegisterEnumDescriptor( - _DELETEPERSISTENTSUBSCRIPTIONCOMPLETED_DELETEPERSISTENTSUBSCRIPTIONRESULT -) - -_PERSISTENTSUBSCRIPTIONNAKEVENTS_NAKACTION = _descriptor.EnumDescriptor( - name="NakAction", - full_name="EventStore.Client.Messages.PersistentSubscriptionNakEvents.NakAction", - filename=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - values=[ - _descriptor.EnumValueDescriptor( - name="Unknown", - index=0, - number=0, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.EnumValueDescriptor( - name="Park", - index=1, - number=1, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.EnumValueDescriptor( - name="Retry", - index=2, - number=2, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.EnumValueDescriptor( - name="Skip", - index=3, - number=3, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.EnumValueDescriptor( - name="Stop", - index=4, - number=4, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key, - ), - ], - containing_type=None, - serialized_options=None, - serialized_start=5938, - serialized_end=6003, -) -_sym_db.RegisterEnumDescriptor(_PERSISTENTSUBSCRIPTIONNAKEVENTS_NAKACTION) - -_SUBSCRIPTIONDROPPED_SUBSCRIPTIONDROPREASON = _descriptor.EnumDescriptor( - name="SubscriptionDropReason", - full_name="EventStore.Client.Messages.SubscriptionDropped.SubscriptionDropReason", - filename=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - values=[ - _descriptor.EnumValueDescriptor( - name="Unsubscribed", - index=0, - number=0, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.EnumValueDescriptor( - name="AccessDenied", - index=1, - number=1, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.EnumValueDescriptor( - name="NotFound", - index=2, - number=2, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.EnumValueDescriptor( - name="PersistentSubscriptionDeleted", - index=3, - number=3, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.EnumValueDescriptor( - name="SubscriberMaxCountReached", - index=4, - number=4, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key, - ), - ], - containing_type=None, - serialized_options=None, - serialized_start=6641, - serialized_end=6781, -) -_sym_db.RegisterEnumDescriptor(_SUBSCRIPTIONDROPPED_SUBSCRIPTIONDROPREASON) - -_NOTHANDLED_NOTHANDLEDREASON = _descriptor.EnumDescriptor( - name="NotHandledReason", - full_name="EventStore.Client.Messages.NotHandled.NotHandledReason", - filename=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - values=[ - _descriptor.EnumValueDescriptor( - name="NotReady", - index=0, - number=0, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.EnumValueDescriptor( - name="TooBusy", - index=1, - number=1, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.EnumValueDescriptor( - name="NotMaster", - index=2, - number=2, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key, - ), - ], - containing_type=None, - serialized_options=None, - serialized_start=7098, - serialized_end=7158, -) -_sym_db.RegisterEnumDescriptor(_NOTHANDLED_NOTHANDLEDREASON) - -_SCAVENGEDATABASECOMPLETED_SCAVENGERESULT = _descriptor.EnumDescriptor( - name="ScavengeResult", - full_name="EventStore.Client.Messages.ScavengeDatabaseCompleted.ScavengeResult", - filename=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - values=[ - _descriptor.EnumValueDescriptor( - name="Success", - index=0, - number=0, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.EnumValueDescriptor( - name="InProgress", - index=1, - number=1, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.EnumValueDescriptor( - name="Failed", - index=2, - number=2, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key, - ), - ], - containing_type=None, - serialized_options=None, - serialized_start=7361, - serialized_end=7418, -) -_sym_db.RegisterEnumDescriptor(_SCAVENGEDATABASECOMPLETED_SCAVENGERESULT) - - -_NEWEVENT = _descriptor.Descriptor( - name="NewEvent", - full_name="EventStore.Client.Messages.NewEvent", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name="event_id", - full_name="EventStore.Client.Messages.NewEvent.event_id", - index=0, - number=1, - type=12, - cpp_type=9, - label=2, - has_default_value=False, - default_value=b"", - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="event_type", - full_name="EventStore.Client.Messages.NewEvent.event_type", - index=1, - number=2, - type=9, - cpp_type=9, - label=2, - has_default_value=False, - default_value=b"".decode("utf-8"), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="data_content_type", - full_name="EventStore.Client.Messages.NewEvent.data_content_type", - index=2, - number=3, - type=5, - cpp_type=1, - label=2, - has_default_value=False, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="metadata_content_type", - full_name="EventStore.Client.Messages.NewEvent.metadata_content_type", - index=3, - number=4, - type=5, - cpp_type=1, - label=2, - has_default_value=False, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="data", - full_name="EventStore.Client.Messages.NewEvent.data", - index=4, - number=5, - type=12, - cpp_type=9, - label=2, - has_default_value=False, - default_value=b"", - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="metadata", - full_name="EventStore.Client.Messages.NewEvent.metadata", - index=5, - number=6, - type=12, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"", - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax="proto2", - extension_ranges=[], - oneofs=[], - serialized_start=47, - serialized_end=185, -) - - -_EVENTRECORD = _descriptor.Descriptor( - name="EventRecord", - full_name="EventStore.Client.Messages.EventRecord", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name="event_stream_id", - full_name="EventStore.Client.Messages.EventRecord.event_stream_id", - index=0, - number=1, - type=9, - cpp_type=9, - label=2, - has_default_value=False, - default_value=b"".decode("utf-8"), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="event_number", - full_name="EventStore.Client.Messages.EventRecord.event_number", - index=1, - number=2, - type=5, - cpp_type=1, - label=2, - has_default_value=False, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="event_id", - full_name="EventStore.Client.Messages.EventRecord.event_id", - index=2, - number=3, - type=12, - cpp_type=9, - label=2, - has_default_value=False, - default_value=b"", - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="event_type", - full_name="EventStore.Client.Messages.EventRecord.event_type", - index=3, - number=4, - type=9, - cpp_type=9, - label=2, - has_default_value=False, - default_value=b"".decode("utf-8"), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="data_content_type", - full_name="EventStore.Client.Messages.EventRecord.data_content_type", - index=4, - number=5, - type=5, - cpp_type=1, - label=2, - has_default_value=False, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="metadata_content_type", - full_name="EventStore.Client.Messages.EventRecord.metadata_content_type", - index=5, - number=6, - type=5, - cpp_type=1, - label=2, - has_default_value=False, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="data", - full_name="EventStore.Client.Messages.EventRecord.data", - index=6, - number=7, - type=12, - cpp_type=9, - label=2, - has_default_value=False, - default_value=b"", - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="metadata", - full_name="EventStore.Client.Messages.EventRecord.metadata", - index=7, - number=8, - type=12, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"", - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="created", - full_name="EventStore.Client.Messages.EventRecord.created", - index=8, - number=9, - type=3, - cpp_type=2, - label=1, - has_default_value=False, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="created_epoch", - full_name="EventStore.Client.Messages.EventRecord.created_epoch", - index=9, - number=10, - type=3, - cpp_type=2, - label=1, - has_default_value=False, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax="proto2", - extension_ranges=[], - oneofs=[], - serialized_start=188, - serialized_end=416, -) - - -_RESOLVEDINDEXEDEVENT = _descriptor.Descriptor( - name="ResolvedIndexedEvent", - full_name="EventStore.Client.Messages.ResolvedIndexedEvent", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name="event", - full_name="EventStore.Client.Messages.ResolvedIndexedEvent.event", - index=0, - number=1, - type=11, - cpp_type=10, - label=2, - has_default_value=False, - default_value=None, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="link", - full_name="EventStore.Client.Messages.ResolvedIndexedEvent.link", - index=1, - number=2, - type=11, - cpp_type=10, - label=1, - has_default_value=False, - default_value=None, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax="proto2", - extension_ranges=[], - oneofs=[], - serialized_start=419, - serialized_end=552, -) - - -_RESOLVEDEVENT = _descriptor.Descriptor( - name="ResolvedEvent", - full_name="EventStore.Client.Messages.ResolvedEvent", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name="event", - full_name="EventStore.Client.Messages.ResolvedEvent.event", - index=0, - number=1, - type=11, - cpp_type=10, - label=2, - has_default_value=False, - default_value=None, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="link", - full_name="EventStore.Client.Messages.ResolvedEvent.link", - index=1, - number=2, - type=11, - cpp_type=10, - label=1, - has_default_value=False, - default_value=None, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="commit_position", - full_name="EventStore.Client.Messages.ResolvedEvent.commit_position", - index=2, - number=3, - type=3, - cpp_type=2, - label=2, - has_default_value=False, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="prepare_position", - full_name="EventStore.Client.Messages.ResolvedEvent.prepare_position", - index=3, - number=4, - type=3, - cpp_type=2, - label=2, - has_default_value=False, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax="proto2", - extension_ranges=[], - oneofs=[], - serialized_start=555, - serialized_end=732, -) - - -_WRITEEVENTS = _descriptor.Descriptor( - name="WriteEvents", - full_name="EventStore.Client.Messages.WriteEvents", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name="event_stream_id", - full_name="EventStore.Client.Messages.WriteEvents.event_stream_id", - index=0, - number=1, - type=9, - cpp_type=9, - label=2, - has_default_value=False, - default_value=b"".decode("utf-8"), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="expected_version", - full_name="EventStore.Client.Messages.WriteEvents.expected_version", - index=1, - number=2, - type=5, - cpp_type=1, - label=2, - has_default_value=False, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="events", - full_name="EventStore.Client.Messages.WriteEvents.events", - index=2, - number=3, - type=11, - cpp_type=10, - label=3, - has_default_value=False, - default_value=[], - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="require_master", - full_name="EventStore.Client.Messages.WriteEvents.require_master", - index=3, - number=4, - type=8, - cpp_type=7, - label=2, - has_default_value=False, - default_value=False, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax="proto2", - extension_ranges=[], - oneofs=[], - serialized_start=735, - serialized_end=877, -) - - -_WRITEEVENTSCOMPLETED = _descriptor.Descriptor( - name="WriteEventsCompleted", - full_name="EventStore.Client.Messages.WriteEventsCompleted", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name="result", - full_name="EventStore.Client.Messages.WriteEventsCompleted.result", - index=0, - number=1, - type=14, - cpp_type=8, - label=2, - has_default_value=False, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="message", - full_name="EventStore.Client.Messages.WriteEventsCompleted.message", - index=1, - number=2, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"".decode("utf-8"), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="first_event_number", - full_name="EventStore.Client.Messages.WriteEventsCompleted.first_event_number", - index=2, - number=3, - type=5, - cpp_type=1, - label=2, - has_default_value=False, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="last_event_number", - full_name="EventStore.Client.Messages.WriteEventsCompleted.last_event_number", - index=3, - number=4, - type=5, - cpp_type=1, - label=2, - has_default_value=False, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="prepare_position", - full_name="EventStore.Client.Messages.WriteEventsCompleted.prepare_position", - index=4, - number=5, - type=3, - cpp_type=2, - label=1, - has_default_value=False, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="commit_position", - full_name="EventStore.Client.Messages.WriteEventsCompleted.commit_position", - index=5, - number=6, - type=3, - cpp_type=2, - label=1, - has_default_value=False, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax="proto2", - extension_ranges=[], - oneofs=[], - serialized_start=880, - serialized_end=1086, -) - - -_DELETESTREAM = _descriptor.Descriptor( - name="DeleteStream", - full_name="EventStore.Client.Messages.DeleteStream", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name="event_stream_id", - full_name="EventStore.Client.Messages.DeleteStream.event_stream_id", - index=0, - number=1, - type=9, - cpp_type=9, - label=2, - has_default_value=False, - default_value=b"".decode("utf-8"), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="expected_version", - full_name="EventStore.Client.Messages.DeleteStream.expected_version", - index=1, - number=2, - type=5, - cpp_type=1, - label=2, - has_default_value=False, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="require_master", - full_name="EventStore.Client.Messages.DeleteStream.require_master", - index=2, - number=3, - type=8, - cpp_type=7, - label=2, - has_default_value=False, - default_value=False, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="hard_delete", - full_name="EventStore.Client.Messages.DeleteStream.hard_delete", - index=3, - number=4, - type=8, - cpp_type=7, - label=1, - has_default_value=False, - default_value=False, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax="proto2", - extension_ranges=[], - oneofs=[], - serialized_start=1088, - serialized_end=1198, -) - - -_DELETESTREAMCOMPLETED = _descriptor.Descriptor( - name="DeleteStreamCompleted", - full_name="EventStore.Client.Messages.DeleteStreamCompleted", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name="result", - full_name="EventStore.Client.Messages.DeleteStreamCompleted.result", - index=0, - number=1, - type=14, - cpp_type=8, - label=2, - has_default_value=False, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="message", - full_name="EventStore.Client.Messages.DeleteStreamCompleted.message", - index=1, - number=2, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"".decode("utf-8"), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="prepare_position", - full_name="EventStore.Client.Messages.DeleteStreamCompleted.prepare_position", - index=2, - number=3, - type=3, - cpp_type=2, - label=1, - has_default_value=False, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="commit_position", - full_name="EventStore.Client.Messages.DeleteStreamCompleted.commit_position", - index=3, - number=4, - type=3, - cpp_type=2, - label=1, - has_default_value=False, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax="proto2", - extension_ranges=[], - oneofs=[], - serialized_start=1201, - serialized_end=1353, -) - - -_TRANSACTIONSTART = _descriptor.Descriptor( - name="TransactionStart", - full_name="EventStore.Client.Messages.TransactionStart", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name="event_stream_id", - full_name="EventStore.Client.Messages.TransactionStart.event_stream_id", - index=0, - number=1, - type=9, - cpp_type=9, - label=2, - has_default_value=False, - default_value=b"".decode("utf-8"), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="expected_version", - full_name="EventStore.Client.Messages.TransactionStart.expected_version", - index=1, - number=2, - type=5, - cpp_type=1, - label=2, - has_default_value=False, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="require_master", - full_name="EventStore.Client.Messages.TransactionStart.require_master", - index=2, - number=3, - type=8, - cpp_type=7, - label=2, - has_default_value=False, - default_value=False, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax="proto2", - extension_ranges=[], - oneofs=[], - serialized_start=1355, - serialized_end=1448, -) - - -_TRANSACTIONSTARTCOMPLETED = _descriptor.Descriptor( - name="TransactionStartCompleted", - full_name="EventStore.Client.Messages.TransactionStartCompleted", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name="transaction_id", - full_name="EventStore.Client.Messages.TransactionStartCompleted.transaction_id", - index=0, - number=1, - type=3, - cpp_type=2, - label=2, - has_default_value=False, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="result", - full_name="EventStore.Client.Messages.TransactionStartCompleted.result", - index=1, - number=2, - type=14, - cpp_type=8, - label=2, - has_default_value=False, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="message", - full_name="EventStore.Client.Messages.TransactionStartCompleted.message", - index=2, - number=3, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"".decode("utf-8"), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax="proto2", - extension_ranges=[], - oneofs=[], - serialized_start=1451, - serialized_end=1580, -) - - -_TRANSACTIONWRITE = _descriptor.Descriptor( - name="TransactionWrite", - full_name="EventStore.Client.Messages.TransactionWrite", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name="transaction_id", - full_name="EventStore.Client.Messages.TransactionWrite.transaction_id", - index=0, - number=1, - type=3, - cpp_type=2, - label=2, - has_default_value=False, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="events", - full_name="EventStore.Client.Messages.TransactionWrite.events", - index=1, - number=2, - type=11, - cpp_type=10, - label=3, - has_default_value=False, - default_value=[], - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="require_master", - full_name="EventStore.Client.Messages.TransactionWrite.require_master", - index=2, - number=3, - type=8, - cpp_type=7, - label=2, - has_default_value=False, - default_value=False, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax="proto2", - extension_ranges=[], - oneofs=[], - serialized_start=1582, - serialized_end=1702, -) - - -_TRANSACTIONWRITECOMPLETED = _descriptor.Descriptor( - name="TransactionWriteCompleted", - full_name="EventStore.Client.Messages.TransactionWriteCompleted", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name="transaction_id", - full_name="EventStore.Client.Messages.TransactionWriteCompleted.transaction_id", - index=0, - number=1, - type=3, - cpp_type=2, - label=2, - has_default_value=False, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="result", - full_name="EventStore.Client.Messages.TransactionWriteCompleted.result", - index=1, - number=2, - type=14, - cpp_type=8, - label=2, - has_default_value=False, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="message", - full_name="EventStore.Client.Messages.TransactionWriteCompleted.message", - index=2, - number=3, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"".decode("utf-8"), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax="proto2", - extension_ranges=[], - oneofs=[], - serialized_start=1705, - serialized_end=1834, -) - - -_TRANSACTIONCOMMIT = _descriptor.Descriptor( - name="TransactionCommit", - full_name="EventStore.Client.Messages.TransactionCommit", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name="transaction_id", - full_name="EventStore.Client.Messages.TransactionCommit.transaction_id", - index=0, - number=1, - type=3, - cpp_type=2, - label=2, - has_default_value=False, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="require_master", - full_name="EventStore.Client.Messages.TransactionCommit.require_master", - index=1, - number=2, - type=8, - cpp_type=7, - label=2, - has_default_value=False, - default_value=False, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax="proto2", - extension_ranges=[], - oneofs=[], - serialized_start=1836, - serialized_end=1903, -) - - -_TRANSACTIONCOMMITCOMPLETED = _descriptor.Descriptor( - name="TransactionCommitCompleted", - full_name="EventStore.Client.Messages.TransactionCommitCompleted", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name="transaction_id", - full_name="EventStore.Client.Messages.TransactionCommitCompleted.transaction_id", - index=0, - number=1, - type=3, - cpp_type=2, - label=2, - has_default_value=False, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="result", - full_name="EventStore.Client.Messages.TransactionCommitCompleted.result", - index=1, - number=2, - type=14, - cpp_type=8, - label=2, - has_default_value=False, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="message", - full_name="EventStore.Client.Messages.TransactionCommitCompleted.message", - index=2, - number=3, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"".decode("utf-8"), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="first_event_number", - full_name="EventStore.Client.Messages.TransactionCommitCompleted.first_event_number", - index=3, - number=4, - type=5, - cpp_type=1, - label=2, - has_default_value=False, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="last_event_number", - full_name="EventStore.Client.Messages.TransactionCommitCompleted.last_event_number", - index=4, - number=5, - type=5, - cpp_type=1, - label=2, - has_default_value=False, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="prepare_position", - full_name="EventStore.Client.Messages.TransactionCommitCompleted.prepare_position", - index=5, - number=6, - type=3, - cpp_type=2, - label=1, - has_default_value=False, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="commit_position", - full_name="EventStore.Client.Messages.TransactionCommitCompleted.commit_position", - index=6, - number=7, - type=3, - cpp_type=2, - label=1, - has_default_value=False, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax="proto2", - extension_ranges=[], - oneofs=[], - serialized_start=1906, - serialized_end=2142, -) - - -_READEVENT = _descriptor.Descriptor( - name="ReadEvent", - full_name="EventStore.Client.Messages.ReadEvent", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name="event_stream_id", - full_name="EventStore.Client.Messages.ReadEvent.event_stream_id", - index=0, - number=1, - type=9, - cpp_type=9, - label=2, - has_default_value=False, - default_value=b"".decode("utf-8"), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="event_number", - full_name="EventStore.Client.Messages.ReadEvent.event_number", - index=1, - number=2, - type=5, - cpp_type=1, - label=2, - has_default_value=False, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="resolve_link_tos", - full_name="EventStore.Client.Messages.ReadEvent.resolve_link_tos", - index=2, - number=3, - type=8, - cpp_type=7, - label=2, - has_default_value=False, - default_value=False, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="require_master", - full_name="EventStore.Client.Messages.ReadEvent.require_master", - index=3, - number=4, - type=8, - cpp_type=7, - label=2, - has_default_value=False, - default_value=False, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax="proto2", - extension_ranges=[], - oneofs=[], - serialized_start=2144, - serialized_end=2252, -) - - -_READEVENTCOMPLETED = _descriptor.Descriptor( - name="ReadEventCompleted", - full_name="EventStore.Client.Messages.ReadEventCompleted", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name="result", - full_name="EventStore.Client.Messages.ReadEventCompleted.result", - index=0, - number=1, - type=14, - cpp_type=8, - label=2, - has_default_value=False, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="event", - full_name="EventStore.Client.Messages.ReadEventCompleted.event", - index=1, - number=2, - type=11, - cpp_type=10, - label=2, - has_default_value=False, - default_value=None, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="error", - full_name="EventStore.Client.Messages.ReadEventCompleted.error", - index=2, - number=3, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"".decode("utf-8"), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - ], - extensions=[], - nested_types=[], - enum_types=[ - _READEVENTCOMPLETED_READEVENTRESULT, - ], - serialized_options=None, - is_extendable=False, - syntax="proto2", - extension_ranges=[], - oneofs=[], - serialized_start=2255, - serialized_end=2543, -) - - -_READSTREAMEVENTS = _descriptor.Descriptor( - name="ReadStreamEvents", - full_name="EventStore.Client.Messages.ReadStreamEvents", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name="event_stream_id", - full_name="EventStore.Client.Messages.ReadStreamEvents.event_stream_id", - index=0, - number=1, - type=9, - cpp_type=9, - label=2, - has_default_value=False, - default_value=b"".decode("utf-8"), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="from_event_number", - full_name="EventStore.Client.Messages.ReadStreamEvents.from_event_number", - index=1, - number=2, - type=5, - cpp_type=1, - label=2, - has_default_value=False, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="max_count", - full_name="EventStore.Client.Messages.ReadStreamEvents.max_count", - index=2, - number=3, - type=5, - cpp_type=1, - label=2, - has_default_value=False, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="resolve_link_tos", - full_name="EventStore.Client.Messages.ReadStreamEvents.resolve_link_tos", - index=3, - number=4, - type=8, - cpp_type=7, - label=2, - has_default_value=False, - default_value=False, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="require_master", - full_name="EventStore.Client.Messages.ReadStreamEvents.require_master", - index=4, - number=5, - type=8, - cpp_type=7, - label=2, - has_default_value=False, - default_value=False, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax="proto2", - extension_ranges=[], - oneofs=[], - serialized_start=2546, - serialized_end=2685, -) - - -_READSTREAMEVENTSCOMPLETED = _descriptor.Descriptor( - name="ReadStreamEventsCompleted", - full_name="EventStore.Client.Messages.ReadStreamEventsCompleted", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name="events", - full_name="EventStore.Client.Messages.ReadStreamEventsCompleted.events", - index=0, - number=1, - type=11, - cpp_type=10, - label=3, - has_default_value=False, - default_value=[], - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="result", - full_name="EventStore.Client.Messages.ReadStreamEventsCompleted.result", - index=1, - number=2, - type=14, - cpp_type=8, - label=2, - has_default_value=False, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="next_event_number", - full_name="EventStore.Client.Messages.ReadStreamEventsCompleted.next_event_number", - index=2, - number=3, - type=5, - cpp_type=1, - label=2, - has_default_value=False, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="last_event_number", - full_name="EventStore.Client.Messages.ReadStreamEventsCompleted.last_event_number", - index=3, - number=4, - type=5, - cpp_type=1, - label=2, - has_default_value=False, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="is_end_of_stream", - full_name="EventStore.Client.Messages.ReadStreamEventsCompleted.is_end_of_stream", - index=4, - number=5, - type=8, - cpp_type=7, - label=2, - has_default_value=False, - default_value=False, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="last_commit_position", - full_name="EventStore.Client.Messages.ReadStreamEventsCompleted.last_commit_position", - index=5, - number=6, - type=3, - cpp_type=2, - label=2, - has_default_value=False, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="error", - full_name="EventStore.Client.Messages.ReadStreamEventsCompleted.error", - index=6, - number=7, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"".decode("utf-8"), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - ], - extensions=[], - nested_types=[], - enum_types=[ - _READSTREAMEVENTSCOMPLETED_READSTREAMRESULT, - ], - serialized_options=None, - is_extendable=False, - syntax="proto2", - extension_ranges=[], - oneofs=[], - serialized_start=2688, - serialized_end=3106, -) - - -_READALLEVENTS = _descriptor.Descriptor( - name="ReadAllEvents", - full_name="EventStore.Client.Messages.ReadAllEvents", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name="commit_position", - full_name="EventStore.Client.Messages.ReadAllEvents.commit_position", - index=0, - number=1, - type=3, - cpp_type=2, - label=2, - has_default_value=False, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="prepare_position", - full_name="EventStore.Client.Messages.ReadAllEvents.prepare_position", - index=1, - number=2, - type=3, - cpp_type=2, - label=2, - has_default_value=False, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="max_count", - full_name="EventStore.Client.Messages.ReadAllEvents.max_count", - index=2, - number=3, - type=5, - cpp_type=1, - label=2, - has_default_value=False, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="resolve_link_tos", - full_name="EventStore.Client.Messages.ReadAllEvents.resolve_link_tos", - index=3, - number=4, - type=8, - cpp_type=7, - label=2, - has_default_value=False, - default_value=False, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="require_master", - full_name="EventStore.Client.Messages.ReadAllEvents.require_master", - index=4, - number=5, - type=8, - cpp_type=7, - label=2, - has_default_value=False, - default_value=False, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax="proto2", - extension_ranges=[], - oneofs=[], - serialized_start=3109, - serialized_end=3244, -) - - -_READALLEVENTSCOMPLETED = _descriptor.Descriptor( - name="ReadAllEventsCompleted", - full_name="EventStore.Client.Messages.ReadAllEventsCompleted", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name="commit_position", - full_name="EventStore.Client.Messages.ReadAllEventsCompleted.commit_position", - index=0, - number=1, - type=3, - cpp_type=2, - label=2, - has_default_value=False, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="prepare_position", - full_name="EventStore.Client.Messages.ReadAllEventsCompleted.prepare_position", - index=1, - number=2, - type=3, - cpp_type=2, - label=2, - has_default_value=False, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="events", - full_name="EventStore.Client.Messages.ReadAllEventsCompleted.events", - index=2, - number=3, - type=11, - cpp_type=10, - label=3, - has_default_value=False, - default_value=[], - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="next_commit_position", - full_name="EventStore.Client.Messages.ReadAllEventsCompleted.next_commit_position", - index=3, - number=4, - type=3, - cpp_type=2, - label=2, - has_default_value=False, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="next_prepare_position", - full_name="EventStore.Client.Messages.ReadAllEventsCompleted.next_prepare_position", - index=4, - number=5, - type=3, - cpp_type=2, - label=2, - has_default_value=False, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="result", - full_name="EventStore.Client.Messages.ReadAllEventsCompleted.result", - index=5, - number=6, - type=14, - cpp_type=8, - label=1, - has_default_value=True, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="error", - full_name="EventStore.Client.Messages.ReadAllEventsCompleted.error", - index=6, - number=7, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"".decode("utf-8"), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - ], - extensions=[], - nested_types=[], - enum_types=[ - _READALLEVENTSCOMPLETED_READALLRESULT, - ], - serialized_options=None, - is_extendable=False, - syntax="proto2", - extension_ranges=[], - oneofs=[], - serialized_start=3247, - serialized_end=3624, -) - - -_CREATEPERSISTENTSUBSCRIPTION = _descriptor.Descriptor( - name="CreatePersistentSubscription", - full_name="EventStore.Client.Messages.CreatePersistentSubscription", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name="subscription_group_name", - full_name="EventStore.Client.Messages.CreatePersistentSubscription.subscription_group_name", - index=0, - number=1, - type=9, - cpp_type=9, - label=2, - has_default_value=False, - default_value=b"".decode("utf-8"), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="event_stream_id", - full_name="EventStore.Client.Messages.CreatePersistentSubscription.event_stream_id", - index=1, - number=2, - type=9, - cpp_type=9, - label=2, - has_default_value=False, - default_value=b"".decode("utf-8"), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="resolve_link_tos", - full_name="EventStore.Client.Messages.CreatePersistentSubscription.resolve_link_tos", - index=2, - number=3, - type=8, - cpp_type=7, - label=2, - has_default_value=False, - default_value=False, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="start_from", - full_name="EventStore.Client.Messages.CreatePersistentSubscription.start_from", - index=3, - number=4, - type=5, - cpp_type=1, - label=2, - has_default_value=False, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="message_timeout_milliseconds", - full_name="EventStore.Client.Messages.CreatePersistentSubscription.message_timeout_milliseconds", - index=4, - number=5, - type=5, - cpp_type=1, - label=2, - has_default_value=False, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="record_statistics", - full_name="EventStore.Client.Messages.CreatePersistentSubscription.record_statistics", - index=5, - number=6, - type=8, - cpp_type=7, - label=2, - has_default_value=False, - default_value=False, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="live_buffer_size", - full_name="EventStore.Client.Messages.CreatePersistentSubscription.live_buffer_size", - index=6, - number=7, - type=5, - cpp_type=1, - label=2, - has_default_value=False, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="read_batch_size", - full_name="EventStore.Client.Messages.CreatePersistentSubscription.read_batch_size", - index=7, - number=8, - type=5, - cpp_type=1, - label=2, - has_default_value=False, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="buffer_size", - full_name="EventStore.Client.Messages.CreatePersistentSubscription.buffer_size", - index=8, - number=9, - type=5, - cpp_type=1, - label=2, - has_default_value=False, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="max_retry_count", - full_name="EventStore.Client.Messages.CreatePersistentSubscription.max_retry_count", - index=9, - number=10, - type=5, - cpp_type=1, - label=2, - has_default_value=False, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="prefer_round_robin", - full_name="EventStore.Client.Messages.CreatePersistentSubscription.prefer_round_robin", - index=10, - number=11, - type=8, - cpp_type=7, - label=2, - has_default_value=False, - default_value=False, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="checkpoint_after_time", - full_name="EventStore.Client.Messages.CreatePersistentSubscription.checkpoint_after_time", - index=11, - number=12, - type=5, - cpp_type=1, - label=2, - has_default_value=False, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="checkpoint_max_count", - full_name="EventStore.Client.Messages.CreatePersistentSubscription.checkpoint_max_count", - index=12, - number=13, - type=5, - cpp_type=1, - label=2, - has_default_value=False, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="checkpoint_min_count", - full_name="EventStore.Client.Messages.CreatePersistentSubscription.checkpoint_min_count", - index=13, - number=14, - type=5, - cpp_type=1, - label=2, - has_default_value=False, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="subscriber_max_count", - full_name="EventStore.Client.Messages.CreatePersistentSubscription.subscriber_max_count", - index=14, - number=15, - type=5, - cpp_type=1, - label=2, - has_default_value=False, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="named_consumer_strategy", - full_name="EventStore.Client.Messages.CreatePersistentSubscription.named_consumer_strategy", - index=15, - number=16, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"".decode("utf-8"), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax="proto2", - extension_ranges=[], - oneofs=[], - serialized_start=3627, - serialized_end=4105, -) - - -_DELETEPERSISTENTSUBSCRIPTION = _descriptor.Descriptor( - name="DeletePersistentSubscription", - full_name="EventStore.Client.Messages.DeletePersistentSubscription", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name="subscription_group_name", - full_name="EventStore.Client.Messages.DeletePersistentSubscription.subscription_group_name", - index=0, - number=1, - type=9, - cpp_type=9, - label=2, - has_default_value=False, - default_value=b"".decode("utf-8"), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="event_stream_id", - full_name="EventStore.Client.Messages.DeletePersistentSubscription.event_stream_id", - index=1, - number=2, - type=9, - cpp_type=9, - label=2, - has_default_value=False, - default_value=b"".decode("utf-8"), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax="proto2", - extension_ranges=[], - oneofs=[], - serialized_start=4107, - serialized_end=4195, -) - - -_UPDATEPERSISTENTSUBSCRIPTION = _descriptor.Descriptor( - name="UpdatePersistentSubscription", - full_name="EventStore.Client.Messages.UpdatePersistentSubscription", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name="subscription_group_name", - full_name="EventStore.Client.Messages.UpdatePersistentSubscription.subscription_group_name", - index=0, - number=1, - type=9, - cpp_type=9, - label=2, - has_default_value=False, - default_value=b"".decode("utf-8"), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="event_stream_id", - full_name="EventStore.Client.Messages.UpdatePersistentSubscription.event_stream_id", - index=1, - number=2, - type=9, - cpp_type=9, - label=2, - has_default_value=False, - default_value=b"".decode("utf-8"), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="resolve_link_tos", - full_name="EventStore.Client.Messages.UpdatePersistentSubscription.resolve_link_tos", - index=2, - number=3, - type=8, - cpp_type=7, - label=2, - has_default_value=False, - default_value=False, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="start_from", - full_name="EventStore.Client.Messages.UpdatePersistentSubscription.start_from", - index=3, - number=4, - type=5, - cpp_type=1, - label=2, - has_default_value=False, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="message_timeout_milliseconds", - full_name="EventStore.Client.Messages.UpdatePersistentSubscription.message_timeout_milliseconds", - index=4, - number=5, - type=5, - cpp_type=1, - label=2, - has_default_value=False, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="record_statistics", - full_name="EventStore.Client.Messages.UpdatePersistentSubscription.record_statistics", - index=5, - number=6, - type=8, - cpp_type=7, - label=2, - has_default_value=False, - default_value=False, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="live_buffer_size", - full_name="EventStore.Client.Messages.UpdatePersistentSubscription.live_buffer_size", - index=6, - number=7, - type=5, - cpp_type=1, - label=2, - has_default_value=False, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="read_batch_size", - full_name="EventStore.Client.Messages.UpdatePersistentSubscription.read_batch_size", - index=7, - number=8, - type=5, - cpp_type=1, - label=2, - has_default_value=False, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="buffer_size", - full_name="EventStore.Client.Messages.UpdatePersistentSubscription.buffer_size", - index=8, - number=9, - type=5, - cpp_type=1, - label=2, - has_default_value=False, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="max_retry_count", - full_name="EventStore.Client.Messages.UpdatePersistentSubscription.max_retry_count", - index=9, - number=10, - type=5, - cpp_type=1, - label=2, - has_default_value=False, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="prefer_round_robin", - full_name="EventStore.Client.Messages.UpdatePersistentSubscription.prefer_round_robin", - index=10, - number=11, - type=8, - cpp_type=7, - label=2, - has_default_value=False, - default_value=False, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="checkpoint_after_time", - full_name="EventStore.Client.Messages.UpdatePersistentSubscription.checkpoint_after_time", - index=11, - number=12, - type=5, - cpp_type=1, - label=2, - has_default_value=False, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="checkpoint_max_count", - full_name="EventStore.Client.Messages.UpdatePersistentSubscription.checkpoint_max_count", - index=12, - number=13, - type=5, - cpp_type=1, - label=2, - has_default_value=False, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="checkpoint_min_count", - full_name="EventStore.Client.Messages.UpdatePersistentSubscription.checkpoint_min_count", - index=13, - number=14, - type=5, - cpp_type=1, - label=2, - has_default_value=False, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="subscriber_max_count", - full_name="EventStore.Client.Messages.UpdatePersistentSubscription.subscriber_max_count", - index=14, - number=15, - type=5, - cpp_type=1, - label=2, - has_default_value=False, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="named_consumer_strategy", - full_name="EventStore.Client.Messages.UpdatePersistentSubscription.named_consumer_strategy", - index=15, - number=16, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"".decode("utf-8"), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax="proto2", - extension_ranges=[], - oneofs=[], - serialized_start=4198, - serialized_end=4676, -) - - -_UPDATEPERSISTENTSUBSCRIPTIONCOMPLETED = _descriptor.Descriptor( - name="UpdatePersistentSubscriptionCompleted", - full_name="EventStore.Client.Messages.UpdatePersistentSubscriptionCompleted", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name="result", - full_name="EventStore.Client.Messages.UpdatePersistentSubscriptionCompleted.result", - index=0, - number=1, - type=14, - cpp_type=8, - label=2, - has_default_value=True, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="reason", - full_name="EventStore.Client.Messages.UpdatePersistentSubscriptionCompleted.reason", - index=1, - number=2, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"".decode("utf-8"), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - ], - extensions=[], - nested_types=[], - enum_types=[ - _UPDATEPERSISTENTSUBSCRIPTIONCOMPLETED_UPDATEPERSISTENTSUBSCRIPTIONRESULT, - ], - serialized_options=None, - is_extendable=False, - syntax="proto2", - extension_ranges=[], - oneofs=[], - serialized_start=4679, - serialized_end=4958, -) - - -_CREATEPERSISTENTSUBSCRIPTIONCOMPLETED = _descriptor.Descriptor( - name="CreatePersistentSubscriptionCompleted", - full_name="EventStore.Client.Messages.CreatePersistentSubscriptionCompleted", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name="result", - full_name="EventStore.Client.Messages.CreatePersistentSubscriptionCompleted.result", - index=0, - number=1, - type=14, - cpp_type=8, - label=2, - has_default_value=True, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="reason", - full_name="EventStore.Client.Messages.CreatePersistentSubscriptionCompleted.reason", - index=1, - number=2, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"".decode("utf-8"), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - ], - extensions=[], - nested_types=[], - enum_types=[ - _CREATEPERSISTENTSUBSCRIPTIONCOMPLETED_CREATEPERSISTENTSUBSCRIPTIONRESULT, - ], - serialized_options=None, - is_extendable=False, - syntax="proto2", - extension_ranges=[], - oneofs=[], - serialized_start=4961, - serialized_end=5241, -) - - -_DELETEPERSISTENTSUBSCRIPTIONCOMPLETED = _descriptor.Descriptor( - name="DeletePersistentSubscriptionCompleted", - full_name="EventStore.Client.Messages.DeletePersistentSubscriptionCompleted", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name="result", - full_name="EventStore.Client.Messages.DeletePersistentSubscriptionCompleted.result", - index=0, - number=1, - type=14, - cpp_type=8, - label=2, - has_default_value=True, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="reason", - full_name="EventStore.Client.Messages.DeletePersistentSubscriptionCompleted.reason", - index=1, - number=2, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"".decode("utf-8"), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - ], - extensions=[], - nested_types=[], - enum_types=[ - _DELETEPERSISTENTSUBSCRIPTIONCOMPLETED_DELETEPERSISTENTSUBSCRIPTIONRESULT, - ], - serialized_options=None, - is_extendable=False, - syntax="proto2", - extension_ranges=[], - oneofs=[], - serialized_start=5244, - serialized_end=5523, -) - - -_CONNECTTOPERSISTENTSUBSCRIPTION = _descriptor.Descriptor( - name="ConnectToPersistentSubscription", - full_name="EventStore.Client.Messages.ConnectToPersistentSubscription", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name="subscription_id", - full_name="EventStore.Client.Messages.ConnectToPersistentSubscription.subscription_id", - index=0, - number=1, - type=9, - cpp_type=9, - label=2, - has_default_value=False, - default_value=b"".decode("utf-8"), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="event_stream_id", - full_name="EventStore.Client.Messages.ConnectToPersistentSubscription.event_stream_id", - index=1, - number=2, - type=9, - cpp_type=9, - label=2, - has_default_value=False, - default_value=b"".decode("utf-8"), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="allowed_in_flight_messages", - full_name="EventStore.Client.Messages.ConnectToPersistentSubscription.allowed_in_flight_messages", - index=2, - number=3, - type=5, - cpp_type=1, - label=2, - has_default_value=False, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax="proto2", - extension_ranges=[], - oneofs=[], - serialized_start=5525, - serialized_end=5644, -) - - -_PERSISTENTSUBSCRIPTIONACKEVENTS = _descriptor.Descriptor( - name="PersistentSubscriptionAckEvents", - full_name="EventStore.Client.Messages.PersistentSubscriptionAckEvents", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name="subscription_id", - full_name="EventStore.Client.Messages.PersistentSubscriptionAckEvents.subscription_id", - index=0, - number=1, - type=9, - cpp_type=9, - label=2, - has_default_value=False, - default_value=b"".decode("utf-8"), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="processed_event_ids", - full_name="EventStore.Client.Messages.PersistentSubscriptionAckEvents.processed_event_ids", - index=1, - number=2, - type=12, - cpp_type=9, - label=3, - has_default_value=False, - default_value=[], - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax="proto2", - extension_ranges=[], - oneofs=[], - serialized_start=5646, - serialized_end=5733, -) - - -_PERSISTENTSUBSCRIPTIONNAKEVENTS = _descriptor.Descriptor( - name="PersistentSubscriptionNakEvents", - full_name="EventStore.Client.Messages.PersistentSubscriptionNakEvents", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name="subscription_id", - full_name="EventStore.Client.Messages.PersistentSubscriptionNakEvents.subscription_id", - index=0, - number=1, - type=9, - cpp_type=9, - label=2, - has_default_value=False, - default_value=b"".decode("utf-8"), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="processed_event_ids", - full_name="EventStore.Client.Messages.PersistentSubscriptionNakEvents.processed_event_ids", - index=1, - number=2, - type=12, - cpp_type=9, - label=3, - has_default_value=False, - default_value=[], - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="message", - full_name="EventStore.Client.Messages.PersistentSubscriptionNakEvents.message", - index=2, - number=3, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"".decode("utf-8"), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="action", - full_name="EventStore.Client.Messages.PersistentSubscriptionNakEvents.action", - index=3, - number=4, - type=14, - cpp_type=8, - label=2, - has_default_value=True, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - ], - extensions=[], - nested_types=[], - enum_types=[ - _PERSISTENTSUBSCRIPTIONNAKEVENTS_NAKACTION, - ], - serialized_options=None, - is_extendable=False, - syntax="proto2", - extension_ranges=[], - oneofs=[], - serialized_start=5736, - serialized_end=6003, -) - - -_PERSISTENTSUBSCRIPTIONCONFIRMATION = _descriptor.Descriptor( - name="PersistentSubscriptionConfirmation", - full_name="EventStore.Client.Messages.PersistentSubscriptionConfirmation", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name="last_commit_position", - full_name="EventStore.Client.Messages.PersistentSubscriptionConfirmation.last_commit_position", - index=0, - number=1, - type=3, - cpp_type=2, - label=2, - has_default_value=False, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="subscription_id", - full_name="EventStore.Client.Messages.PersistentSubscriptionConfirmation.subscription_id", - index=1, - number=2, - type=9, - cpp_type=9, - label=2, - has_default_value=False, - default_value=b"".decode("utf-8"), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="last_event_number", - full_name="EventStore.Client.Messages.PersistentSubscriptionConfirmation.last_event_number", - index=2, - number=3, - type=5, - cpp_type=1, - label=1, - has_default_value=False, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax="proto2", - extension_ranges=[], - oneofs=[], - serialized_start=6005, - serialized_end=6123, -) - - -_PERSISTENTSUBSCRIPTIONSTREAMEVENTAPPEARED = _descriptor.Descriptor( - name="PersistentSubscriptionStreamEventAppeared", - full_name="EventStore.Client.Messages.PersistentSubscriptionStreamEventAppeared", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name="event", - full_name="EventStore.Client.Messages.PersistentSubscriptionStreamEventAppeared.event", - index=0, - number=1, - type=11, - cpp_type=10, - label=2, - has_default_value=False, - default_value=None, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax="proto2", - extension_ranges=[], - oneofs=[], - serialized_start=6125, - serialized_end=6233, -) - - -_SUBSCRIBETOSTREAM = _descriptor.Descriptor( - name="SubscribeToStream", - full_name="EventStore.Client.Messages.SubscribeToStream", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name="event_stream_id", - full_name="EventStore.Client.Messages.SubscribeToStream.event_stream_id", - index=0, - number=1, - type=9, - cpp_type=9, - label=2, - has_default_value=False, - default_value=b"".decode("utf-8"), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="resolve_link_tos", - full_name="EventStore.Client.Messages.SubscribeToStream.resolve_link_tos", - index=1, - number=2, - type=8, - cpp_type=7, - label=2, - has_default_value=False, - default_value=False, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax="proto2", - extension_ranges=[], - oneofs=[], - serialized_start=6235, - serialized_end=6305, -) - - -_SUBSCRIPTIONCONFIRMATION = _descriptor.Descriptor( - name="SubscriptionConfirmation", - full_name="EventStore.Client.Messages.SubscriptionConfirmation", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name="last_commit_position", - full_name="EventStore.Client.Messages.SubscriptionConfirmation.last_commit_position", - index=0, - number=1, - type=3, - cpp_type=2, - label=2, - has_default_value=False, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="last_event_number", - full_name="EventStore.Client.Messages.SubscriptionConfirmation.last_event_number", - index=1, - number=2, - type=5, - cpp_type=1, - label=1, - has_default_value=False, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax="proto2", - extension_ranges=[], - oneofs=[], - serialized_start=6307, - serialized_end=6390, -) - - -_STREAMEVENTAPPEARED = _descriptor.Descriptor( - name="StreamEventAppeared", - full_name="EventStore.Client.Messages.StreamEventAppeared", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name="event", - full_name="EventStore.Client.Messages.StreamEventAppeared.event", - index=0, - number=1, - type=11, - cpp_type=10, - label=2, - has_default_value=False, - default_value=None, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax="proto2", - extension_ranges=[], - oneofs=[], - serialized_start=6392, - serialized_end=6471, -) - - -_UNSUBSCRIBEFROMSTREAM = _descriptor.Descriptor( - name="UnsubscribeFromStream", - full_name="EventStore.Client.Messages.UnsubscribeFromStream", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax="proto2", - extension_ranges=[], - oneofs=[], - serialized_start=6473, - serialized_end=6496, -) - - -_PING = _descriptor.Descriptor( - name="Ping", - full_name="EventStore.Client.Messages.Ping", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax="proto2", - extension_ranges=[], - oneofs=[], - serialized_start=6498, - serialized_end=6504, -) - - -_PONG = _descriptor.Descriptor( - name="Pong", - full_name="EventStore.Client.Messages.Pong", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax="proto2", - extension_ranges=[], - oneofs=[], - serialized_start=6506, - serialized_end=6512, -) - - -_SUBSCRIPTIONDROPPED = _descriptor.Descriptor( - name="SubscriptionDropped", - full_name="EventStore.Client.Messages.SubscriptionDropped", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name="reason", - full_name="EventStore.Client.Messages.SubscriptionDropped.reason", - index=0, - number=1, - type=14, - cpp_type=8, - label=1, - has_default_value=True, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - ], - extensions=[], - nested_types=[], - enum_types=[ - _SUBSCRIPTIONDROPPED_SUBSCRIPTIONDROPREASON, - ], - serialized_options=None, - is_extendable=False, - syntax="proto2", - extension_ranges=[], - oneofs=[], - serialized_start=6515, - serialized_end=6781, -) - - -_NOTHANDLED_MASTERINFO = _descriptor.Descriptor( - name="MasterInfo", - full_name="EventStore.Client.Messages.NotHandled.MasterInfo", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name="external_tcp_address", - full_name="EventStore.Client.Messages.NotHandled.MasterInfo.external_tcp_address", - index=0, - number=1, - type=9, - cpp_type=9, - label=2, - has_default_value=False, - default_value=b"".decode("utf-8"), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="external_tcp_port", - full_name="EventStore.Client.Messages.NotHandled.MasterInfo.external_tcp_port", - index=1, - number=2, - type=5, - cpp_type=1, - label=2, - has_default_value=False, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="external_http_address", - full_name="EventStore.Client.Messages.NotHandled.MasterInfo.external_http_address", - index=2, - number=3, - type=9, - cpp_type=9, - label=2, - has_default_value=False, - default_value=b"".decode("utf-8"), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="external_http_port", - full_name="EventStore.Client.Messages.NotHandled.MasterInfo.external_http_port", - index=3, - number=4, - type=5, - cpp_type=1, - label=2, - has_default_value=False, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="external_secure_tcp_address", - full_name="EventStore.Client.Messages.NotHandled.MasterInfo.external_secure_tcp_address", - index=4, - number=5, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"".decode("utf-8"), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="external_secure_tcp_port", - full_name="EventStore.Client.Messages.NotHandled.MasterInfo.external_secure_tcp_port", - index=5, - number=6, - type=5, - cpp_type=1, - label=1, - has_default_value=False, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax="proto2", - extension_ranges=[], - oneofs=[], - serialized_start=6897, - serialized_end=7096, -) - -_NOTHANDLED = _descriptor.Descriptor( - name="NotHandled", - full_name="EventStore.Client.Messages.NotHandled", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name="reason", - full_name="EventStore.Client.Messages.NotHandled.reason", - index=0, - number=1, - type=14, - cpp_type=8, - label=2, - has_default_value=False, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="additional_info", - full_name="EventStore.Client.Messages.NotHandled.additional_info", - index=1, - number=2, - type=12, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"", - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - ], - extensions=[], - nested_types=[ - _NOTHANDLED_MASTERINFO, - ], - enum_types=[ - _NOTHANDLED_NOTHANDLEDREASON, - ], - serialized_options=None, - is_extendable=False, - syntax="proto2", - extension_ranges=[], - oneofs=[], - serialized_start=6784, - serialized_end=7158, -) - - -_SCAVENGEDATABASE = _descriptor.Descriptor( - name="ScavengeDatabase", - full_name="EventStore.Client.Messages.ScavengeDatabase", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax="proto2", - extension_ranges=[], - oneofs=[], - serialized_start=7160, - serialized_end=7178, -) - - -_SCAVENGEDATABASECOMPLETED = _descriptor.Descriptor( - name="ScavengeDatabaseCompleted", - full_name="EventStore.Client.Messages.ScavengeDatabaseCompleted", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name="result", - full_name="EventStore.Client.Messages.ScavengeDatabaseCompleted.result", - index=0, - number=1, - type=14, - cpp_type=8, - label=2, - has_default_value=False, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="error", - full_name="EventStore.Client.Messages.ScavengeDatabaseCompleted.error", - index=1, - number=2, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"".decode("utf-8"), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="total_time_ms", - full_name="EventStore.Client.Messages.ScavengeDatabaseCompleted.total_time_ms", - index=2, - number=3, - type=5, - cpp_type=1, - label=2, - has_default_value=False, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="total_space_saved", - full_name="EventStore.Client.Messages.ScavengeDatabaseCompleted.total_space_saved", - index=3, - number=4, - type=3, - cpp_type=2, - label=2, - has_default_value=False, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - ], - extensions=[], - nested_types=[], - enum_types=[ - _SCAVENGEDATABASECOMPLETED_SCAVENGERESULT, - ], - serialized_options=None, - is_extendable=False, - syntax="proto2", - extension_ranges=[], - oneofs=[], - serialized_start=7181, - serialized_end=7418, -) - -_RESOLVEDINDEXEDEVENT.fields_by_name["event"].message_type = _EVENTRECORD -_RESOLVEDINDEXEDEVENT.fields_by_name["link"].message_type = _EVENTRECORD -_RESOLVEDEVENT.fields_by_name["event"].message_type = _EVENTRECORD -_RESOLVEDEVENT.fields_by_name["link"].message_type = _EVENTRECORD -_WRITEEVENTS.fields_by_name["events"].message_type = _NEWEVENT -_WRITEEVENTSCOMPLETED.fields_by_name["result"].enum_type = _OPERATIONRESULT -_DELETESTREAMCOMPLETED.fields_by_name["result"].enum_type = _OPERATIONRESULT -_TRANSACTIONSTARTCOMPLETED.fields_by_name["result"].enum_type = _OPERATIONRESULT -_TRANSACTIONWRITE.fields_by_name["events"].message_type = _NEWEVENT -_TRANSACTIONWRITECOMPLETED.fields_by_name["result"].enum_type = _OPERATIONRESULT -_TRANSACTIONCOMMITCOMPLETED.fields_by_name["result"].enum_type = _OPERATIONRESULT -_READEVENTCOMPLETED.fields_by_name[ - "result" -].enum_type = _READEVENTCOMPLETED_READEVENTRESULT -_READEVENTCOMPLETED.fields_by_name["event"].message_type = _RESOLVEDINDEXEDEVENT -_READEVENTCOMPLETED_READEVENTRESULT.containing_type = _READEVENTCOMPLETED -_READSTREAMEVENTSCOMPLETED.fields_by_name["events"].message_type = _RESOLVEDINDEXEDEVENT -_READSTREAMEVENTSCOMPLETED.fields_by_name[ - "result" -].enum_type = _READSTREAMEVENTSCOMPLETED_READSTREAMRESULT -_READSTREAMEVENTSCOMPLETED_READSTREAMRESULT.containing_type = _READSTREAMEVENTSCOMPLETED -_READALLEVENTSCOMPLETED.fields_by_name["events"].message_type = _RESOLVEDEVENT -_READALLEVENTSCOMPLETED.fields_by_name[ - "result" -].enum_type = _READALLEVENTSCOMPLETED_READALLRESULT -_READALLEVENTSCOMPLETED_READALLRESULT.containing_type = _READALLEVENTSCOMPLETED -_UPDATEPERSISTENTSUBSCRIPTIONCOMPLETED.fields_by_name[ - "result" -].enum_type = _UPDATEPERSISTENTSUBSCRIPTIONCOMPLETED_UPDATEPERSISTENTSUBSCRIPTIONRESULT -_UPDATEPERSISTENTSUBSCRIPTIONCOMPLETED_UPDATEPERSISTENTSUBSCRIPTIONRESULT.containing_type = ( - _UPDATEPERSISTENTSUBSCRIPTIONCOMPLETED -) -_CREATEPERSISTENTSUBSCRIPTIONCOMPLETED.fields_by_name[ - "result" -].enum_type = _CREATEPERSISTENTSUBSCRIPTIONCOMPLETED_CREATEPERSISTENTSUBSCRIPTIONRESULT -_CREATEPERSISTENTSUBSCRIPTIONCOMPLETED_CREATEPERSISTENTSUBSCRIPTIONRESULT.containing_type = ( - _CREATEPERSISTENTSUBSCRIPTIONCOMPLETED -) -_DELETEPERSISTENTSUBSCRIPTIONCOMPLETED.fields_by_name[ - "result" -].enum_type = _DELETEPERSISTENTSUBSCRIPTIONCOMPLETED_DELETEPERSISTENTSUBSCRIPTIONRESULT -_DELETEPERSISTENTSUBSCRIPTIONCOMPLETED_DELETEPERSISTENTSUBSCRIPTIONRESULT.containing_type = ( - _DELETEPERSISTENTSUBSCRIPTIONCOMPLETED -) -_PERSISTENTSUBSCRIPTIONNAKEVENTS.fields_by_name[ - "action" -].enum_type = _PERSISTENTSUBSCRIPTIONNAKEVENTS_NAKACTION -_PERSISTENTSUBSCRIPTIONNAKEVENTS_NAKACTION.containing_type = ( - _PERSISTENTSUBSCRIPTIONNAKEVENTS -) -_PERSISTENTSUBSCRIPTIONSTREAMEVENTAPPEARED.fields_by_name[ - "event" -].message_type = _RESOLVEDINDEXEDEVENT -_STREAMEVENTAPPEARED.fields_by_name["event"].message_type = _RESOLVEDEVENT -_SUBSCRIPTIONDROPPED.fields_by_name[ - "reason" -].enum_type = _SUBSCRIPTIONDROPPED_SUBSCRIPTIONDROPREASON -_SUBSCRIPTIONDROPPED_SUBSCRIPTIONDROPREASON.containing_type = _SUBSCRIPTIONDROPPED -_NOTHANDLED_MASTERINFO.containing_type = _NOTHANDLED -_NOTHANDLED.fields_by_name["reason"].enum_type = _NOTHANDLED_NOTHANDLEDREASON -_NOTHANDLED_NOTHANDLEDREASON.containing_type = _NOTHANDLED -_SCAVENGEDATABASECOMPLETED.fields_by_name[ - "result" -].enum_type = _SCAVENGEDATABASECOMPLETED_SCAVENGERESULT -_SCAVENGEDATABASECOMPLETED_SCAVENGERESULT.containing_type = _SCAVENGEDATABASECOMPLETED -DESCRIPTOR.message_types_by_name["NewEvent"] = _NEWEVENT -DESCRIPTOR.message_types_by_name["EventRecord"] = _EVENTRECORD -DESCRIPTOR.message_types_by_name["ResolvedIndexedEvent"] = _RESOLVEDINDEXEDEVENT -DESCRIPTOR.message_types_by_name["ResolvedEvent"] = _RESOLVEDEVENT -DESCRIPTOR.message_types_by_name["WriteEvents"] = _WRITEEVENTS -DESCRIPTOR.message_types_by_name["WriteEventsCompleted"] = _WRITEEVENTSCOMPLETED -DESCRIPTOR.message_types_by_name["DeleteStream"] = _DELETESTREAM -DESCRIPTOR.message_types_by_name["DeleteStreamCompleted"] = _DELETESTREAMCOMPLETED -DESCRIPTOR.message_types_by_name["TransactionStart"] = _TRANSACTIONSTART -DESCRIPTOR.message_types_by_name[ - "TransactionStartCompleted" -] = _TRANSACTIONSTARTCOMPLETED -DESCRIPTOR.message_types_by_name["TransactionWrite"] = _TRANSACTIONWRITE -DESCRIPTOR.message_types_by_name[ - "TransactionWriteCompleted" -] = _TRANSACTIONWRITECOMPLETED -DESCRIPTOR.message_types_by_name["TransactionCommit"] = _TRANSACTIONCOMMIT -DESCRIPTOR.message_types_by_name[ - "TransactionCommitCompleted" -] = _TRANSACTIONCOMMITCOMPLETED -DESCRIPTOR.message_types_by_name["ReadEvent"] = _READEVENT -DESCRIPTOR.message_types_by_name["ReadEventCompleted"] = _READEVENTCOMPLETED -DESCRIPTOR.message_types_by_name["ReadStreamEvents"] = _READSTREAMEVENTS -DESCRIPTOR.message_types_by_name[ - "ReadStreamEventsCompleted" -] = _READSTREAMEVENTSCOMPLETED -DESCRIPTOR.message_types_by_name["ReadAllEvents"] = _READALLEVENTS -DESCRIPTOR.message_types_by_name["ReadAllEventsCompleted"] = _READALLEVENTSCOMPLETED -DESCRIPTOR.message_types_by_name[ - "CreatePersistentSubscription" -] = _CREATEPERSISTENTSUBSCRIPTION -DESCRIPTOR.message_types_by_name[ - "DeletePersistentSubscription" -] = _DELETEPERSISTENTSUBSCRIPTION -DESCRIPTOR.message_types_by_name[ - "UpdatePersistentSubscription" -] = _UPDATEPERSISTENTSUBSCRIPTION -DESCRIPTOR.message_types_by_name[ - "UpdatePersistentSubscriptionCompleted" -] = _UPDATEPERSISTENTSUBSCRIPTIONCOMPLETED -DESCRIPTOR.message_types_by_name[ - "CreatePersistentSubscriptionCompleted" -] = _CREATEPERSISTENTSUBSCRIPTIONCOMPLETED -DESCRIPTOR.message_types_by_name[ - "DeletePersistentSubscriptionCompleted" -] = _DELETEPERSISTENTSUBSCRIPTIONCOMPLETED -DESCRIPTOR.message_types_by_name[ - "ConnectToPersistentSubscription" -] = _CONNECTTOPERSISTENTSUBSCRIPTION -DESCRIPTOR.message_types_by_name[ - "PersistentSubscriptionAckEvents" -] = _PERSISTENTSUBSCRIPTIONACKEVENTS -DESCRIPTOR.message_types_by_name[ - "PersistentSubscriptionNakEvents" -] = _PERSISTENTSUBSCRIPTIONNAKEVENTS -DESCRIPTOR.message_types_by_name[ - "PersistentSubscriptionConfirmation" -] = _PERSISTENTSUBSCRIPTIONCONFIRMATION -DESCRIPTOR.message_types_by_name[ - "PersistentSubscriptionStreamEventAppeared" -] = _PERSISTENTSUBSCRIPTIONSTREAMEVENTAPPEARED -DESCRIPTOR.message_types_by_name["SubscribeToStream"] = _SUBSCRIBETOSTREAM -DESCRIPTOR.message_types_by_name["SubscriptionConfirmation"] = _SUBSCRIPTIONCONFIRMATION -DESCRIPTOR.message_types_by_name["StreamEventAppeared"] = _STREAMEVENTAPPEARED -DESCRIPTOR.message_types_by_name["UnsubscribeFromStream"] = _UNSUBSCRIBEFROMSTREAM -DESCRIPTOR.message_types_by_name["Ping"] = _PING -DESCRIPTOR.message_types_by_name["Pong"] = _PONG -DESCRIPTOR.message_types_by_name["SubscriptionDropped"] = _SUBSCRIPTIONDROPPED -DESCRIPTOR.message_types_by_name["NotHandled"] = _NOTHANDLED -DESCRIPTOR.message_types_by_name["ScavengeDatabase"] = _SCAVENGEDATABASE -DESCRIPTOR.message_types_by_name[ - "ScavengeDatabaseCompleted" -] = _SCAVENGEDATABASECOMPLETED -DESCRIPTOR.enum_types_by_name["OperationResult"] = _OPERATIONRESULT -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -NewEvent = _reflection.GeneratedProtocolMessageType( - "NewEvent", - (_message.Message,), - { - "DESCRIPTOR": _NEWEVENT, - "__module__": "messages_pb2" - # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.NewEvent) - }, -) +_NEWEVENT = DESCRIPTOR.message_types_by_name['NewEvent'] +_EVENTRECORD = DESCRIPTOR.message_types_by_name['EventRecord'] +_RESOLVEDINDEXEDEVENT = DESCRIPTOR.message_types_by_name['ResolvedIndexedEvent'] +_RESOLVEDEVENT = DESCRIPTOR.message_types_by_name['ResolvedEvent'] +_WRITEEVENTS = DESCRIPTOR.message_types_by_name['WriteEvents'] +_WRITEEVENTSCOMPLETED = DESCRIPTOR.message_types_by_name['WriteEventsCompleted'] +_DELETESTREAM = DESCRIPTOR.message_types_by_name['DeleteStream'] +_DELETESTREAMCOMPLETED = DESCRIPTOR.message_types_by_name['DeleteStreamCompleted'] +_TRANSACTIONSTART = DESCRIPTOR.message_types_by_name['TransactionStart'] +_TRANSACTIONSTARTCOMPLETED = DESCRIPTOR.message_types_by_name['TransactionStartCompleted'] +_TRANSACTIONWRITE = DESCRIPTOR.message_types_by_name['TransactionWrite'] +_TRANSACTIONWRITECOMPLETED = DESCRIPTOR.message_types_by_name['TransactionWriteCompleted'] +_TRANSACTIONCOMMIT = DESCRIPTOR.message_types_by_name['TransactionCommit'] +_TRANSACTIONCOMMITCOMPLETED = DESCRIPTOR.message_types_by_name['TransactionCommitCompleted'] +_READEVENT = DESCRIPTOR.message_types_by_name['ReadEvent'] +_READEVENTCOMPLETED = DESCRIPTOR.message_types_by_name['ReadEventCompleted'] +_READSTREAMEVENTS = DESCRIPTOR.message_types_by_name['ReadStreamEvents'] +_READSTREAMEVENTSCOMPLETED = DESCRIPTOR.message_types_by_name['ReadStreamEventsCompleted'] +_READALLEVENTS = DESCRIPTOR.message_types_by_name['ReadAllEvents'] +_READALLEVENTSCOMPLETED = DESCRIPTOR.message_types_by_name['ReadAllEventsCompleted'] +_FILTER = DESCRIPTOR.message_types_by_name['Filter'] +_FILTEREDREADALLEVENTS = DESCRIPTOR.message_types_by_name['FilteredReadAllEvents'] +_FILTEREDREADALLEVENTSCOMPLETED = DESCRIPTOR.message_types_by_name['FilteredReadAllEventsCompleted'] +_CREATEPERSISTENTSUBSCRIPTION = DESCRIPTOR.message_types_by_name['CreatePersistentSubscription'] +_DELETEPERSISTENTSUBSCRIPTION = DESCRIPTOR.message_types_by_name['DeletePersistentSubscription'] +_UPDATEPERSISTENTSUBSCRIPTION = DESCRIPTOR.message_types_by_name['UpdatePersistentSubscription'] +_UPDATEPERSISTENTSUBSCRIPTIONCOMPLETED = DESCRIPTOR.message_types_by_name['UpdatePersistentSubscriptionCompleted'] +_CREATEPERSISTENTSUBSCRIPTIONCOMPLETED = DESCRIPTOR.message_types_by_name['CreatePersistentSubscriptionCompleted'] +_DELETEPERSISTENTSUBSCRIPTIONCOMPLETED = DESCRIPTOR.message_types_by_name['DeletePersistentSubscriptionCompleted'] +_CONNECTTOPERSISTENTSUBSCRIPTION = DESCRIPTOR.message_types_by_name['ConnectToPersistentSubscription'] +_PERSISTENTSUBSCRIPTIONACKEVENTS = DESCRIPTOR.message_types_by_name['PersistentSubscriptionAckEvents'] +_PERSISTENTSUBSCRIPTIONNAKEVENTS = DESCRIPTOR.message_types_by_name['PersistentSubscriptionNakEvents'] +_PERSISTENTSUBSCRIPTIONCONFIRMATION = DESCRIPTOR.message_types_by_name['PersistentSubscriptionConfirmation'] +_PERSISTENTSUBSCRIPTIONSTREAMEVENTAPPEARED = DESCRIPTOR.message_types_by_name['PersistentSubscriptionStreamEventAppeared'] +_SUBSCRIBETOSTREAM = DESCRIPTOR.message_types_by_name['SubscribeToStream'] +_FILTEREDSUBSCRIBETOSTREAM = DESCRIPTOR.message_types_by_name['FilteredSubscribeToStream'] +_CHECKPOINTREACHED = DESCRIPTOR.message_types_by_name['CheckpointReached'] +_SUBSCRIPTIONCONFIRMATION = DESCRIPTOR.message_types_by_name['SubscriptionConfirmation'] +_STREAMEVENTAPPEARED = DESCRIPTOR.message_types_by_name['StreamEventAppeared'] +_UNSUBSCRIBEFROMSTREAM = DESCRIPTOR.message_types_by_name['UnsubscribeFromStream'] +_SUBSCRIPTIONDROPPED = DESCRIPTOR.message_types_by_name['SubscriptionDropped'] +_NOTHANDLED = DESCRIPTOR.message_types_by_name['NotHandled'] +_NOTHANDLED_LEADERINFO = _NOTHANDLED.nested_types_by_name['LeaderInfo'] +_SCAVENGEDATABASE = DESCRIPTOR.message_types_by_name['ScavengeDatabase'] +_SCAVENGEDATABASERESPONSE = DESCRIPTOR.message_types_by_name['ScavengeDatabaseResponse'] +_IDENTIFYCLIENT = DESCRIPTOR.message_types_by_name['IdentifyClient'] +_CLIENTIDENTIFIED = DESCRIPTOR.message_types_by_name['ClientIdentified'] +_READEVENTCOMPLETED_READEVENTRESULT = _READEVENTCOMPLETED.enum_types_by_name['ReadEventResult'] +_READSTREAMEVENTSCOMPLETED_READSTREAMRESULT = _READSTREAMEVENTSCOMPLETED.enum_types_by_name['ReadStreamResult'] +_READALLEVENTSCOMPLETED_READALLRESULT = _READALLEVENTSCOMPLETED.enum_types_by_name['ReadAllResult'] +_FILTER_FILTERCONTEXT = _FILTER.enum_types_by_name['FilterContext'] +_FILTER_FILTERTYPE = _FILTER.enum_types_by_name['FilterType'] +_FILTEREDREADALLEVENTSCOMPLETED_FILTEREDREADALLRESULT = _FILTEREDREADALLEVENTSCOMPLETED.enum_types_by_name['FilteredReadAllResult'] +_UPDATEPERSISTENTSUBSCRIPTIONCOMPLETED_UPDATEPERSISTENTSUBSCRIPTIONRESULT = _UPDATEPERSISTENTSUBSCRIPTIONCOMPLETED.enum_types_by_name['UpdatePersistentSubscriptionResult'] +_CREATEPERSISTENTSUBSCRIPTIONCOMPLETED_CREATEPERSISTENTSUBSCRIPTIONRESULT = _CREATEPERSISTENTSUBSCRIPTIONCOMPLETED.enum_types_by_name['CreatePersistentSubscriptionResult'] +_DELETEPERSISTENTSUBSCRIPTIONCOMPLETED_DELETEPERSISTENTSUBSCRIPTIONRESULT = _DELETEPERSISTENTSUBSCRIPTIONCOMPLETED.enum_types_by_name['DeletePersistentSubscriptionResult'] +_PERSISTENTSUBSCRIPTIONNAKEVENTS_NAKACTION = _PERSISTENTSUBSCRIPTIONNAKEVENTS.enum_types_by_name['NakAction'] +_SUBSCRIPTIONDROPPED_SUBSCRIPTIONDROPREASON = _SUBSCRIPTIONDROPPED.enum_types_by_name['SubscriptionDropReason'] +_NOTHANDLED_NOTHANDLEDREASON = _NOTHANDLED.enum_types_by_name['NotHandledReason'] +_SCAVENGEDATABASERESPONSE_SCAVENGERESULT = _SCAVENGEDATABASERESPONSE.enum_types_by_name['ScavengeResult'] +NewEvent = _reflection.GeneratedProtocolMessageType('NewEvent', (_message.Message,), { + 'DESCRIPTOR' : _NEWEVENT, + '__module__' : 'messages_pb2' + # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.NewEvent) + }) _sym_db.RegisterMessage(NewEvent) -EventRecord = _reflection.GeneratedProtocolMessageType( - "EventRecord", - (_message.Message,), - { - "DESCRIPTOR": _EVENTRECORD, - "__module__": "messages_pb2" - # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.EventRecord) - }, -) +EventRecord = _reflection.GeneratedProtocolMessageType('EventRecord', (_message.Message,), { + 'DESCRIPTOR' : _EVENTRECORD, + '__module__' : 'messages_pb2' + # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.EventRecord) + }) _sym_db.RegisterMessage(EventRecord) -ResolvedIndexedEvent = _reflection.GeneratedProtocolMessageType( - "ResolvedIndexedEvent", - (_message.Message,), - { - "DESCRIPTOR": _RESOLVEDINDEXEDEVENT, - "__module__": "messages_pb2" - # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.ResolvedIndexedEvent) - }, -) +ResolvedIndexedEvent = _reflection.GeneratedProtocolMessageType('ResolvedIndexedEvent', (_message.Message,), { + 'DESCRIPTOR' : _RESOLVEDINDEXEDEVENT, + '__module__' : 'messages_pb2' + # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.ResolvedIndexedEvent) + }) _sym_db.RegisterMessage(ResolvedIndexedEvent) -ResolvedEvent = _reflection.GeneratedProtocolMessageType( - "ResolvedEvent", - (_message.Message,), - { - "DESCRIPTOR": _RESOLVEDEVENT, - "__module__": "messages_pb2" - # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.ResolvedEvent) - }, -) +ResolvedEvent = _reflection.GeneratedProtocolMessageType('ResolvedEvent', (_message.Message,), { + 'DESCRIPTOR' : _RESOLVEDEVENT, + '__module__' : 'messages_pb2' + # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.ResolvedEvent) + }) _sym_db.RegisterMessage(ResolvedEvent) -WriteEvents = _reflection.GeneratedProtocolMessageType( - "WriteEvents", - (_message.Message,), - { - "DESCRIPTOR": _WRITEEVENTS, - "__module__": "messages_pb2" - # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.WriteEvents) - }, -) +WriteEvents = _reflection.GeneratedProtocolMessageType('WriteEvents', (_message.Message,), { + 'DESCRIPTOR' : _WRITEEVENTS, + '__module__' : 'messages_pb2' + # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.WriteEvents) + }) _sym_db.RegisterMessage(WriteEvents) -WriteEventsCompleted = _reflection.GeneratedProtocolMessageType( - "WriteEventsCompleted", - (_message.Message,), - { - "DESCRIPTOR": _WRITEEVENTSCOMPLETED, - "__module__": "messages_pb2" - # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.WriteEventsCompleted) - }, -) +WriteEventsCompleted = _reflection.GeneratedProtocolMessageType('WriteEventsCompleted', (_message.Message,), { + 'DESCRIPTOR' : _WRITEEVENTSCOMPLETED, + '__module__' : 'messages_pb2' + # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.WriteEventsCompleted) + }) _sym_db.RegisterMessage(WriteEventsCompleted) -DeleteStream = _reflection.GeneratedProtocolMessageType( - "DeleteStream", - (_message.Message,), - { - "DESCRIPTOR": _DELETESTREAM, - "__module__": "messages_pb2" - # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.DeleteStream) - }, -) +DeleteStream = _reflection.GeneratedProtocolMessageType('DeleteStream', (_message.Message,), { + 'DESCRIPTOR' : _DELETESTREAM, + '__module__' : 'messages_pb2' + # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.DeleteStream) + }) _sym_db.RegisterMessage(DeleteStream) -DeleteStreamCompleted = _reflection.GeneratedProtocolMessageType( - "DeleteStreamCompleted", - (_message.Message,), - { - "DESCRIPTOR": _DELETESTREAMCOMPLETED, - "__module__": "messages_pb2" - # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.DeleteStreamCompleted) - }, -) +DeleteStreamCompleted = _reflection.GeneratedProtocolMessageType('DeleteStreamCompleted', (_message.Message,), { + 'DESCRIPTOR' : _DELETESTREAMCOMPLETED, + '__module__' : 'messages_pb2' + # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.DeleteStreamCompleted) + }) _sym_db.RegisterMessage(DeleteStreamCompleted) -TransactionStart = _reflection.GeneratedProtocolMessageType( - "TransactionStart", - (_message.Message,), - { - "DESCRIPTOR": _TRANSACTIONSTART, - "__module__": "messages_pb2" - # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.TransactionStart) - }, -) +TransactionStart = _reflection.GeneratedProtocolMessageType('TransactionStart', (_message.Message,), { + 'DESCRIPTOR' : _TRANSACTIONSTART, + '__module__' : 'messages_pb2' + # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.TransactionStart) + }) _sym_db.RegisterMessage(TransactionStart) -TransactionStartCompleted = _reflection.GeneratedProtocolMessageType( - "TransactionStartCompleted", - (_message.Message,), - { - "DESCRIPTOR": _TRANSACTIONSTARTCOMPLETED, - "__module__": "messages_pb2" - # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.TransactionStartCompleted) - }, -) +TransactionStartCompleted = _reflection.GeneratedProtocolMessageType('TransactionStartCompleted', (_message.Message,), { + 'DESCRIPTOR' : _TRANSACTIONSTARTCOMPLETED, + '__module__' : 'messages_pb2' + # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.TransactionStartCompleted) + }) _sym_db.RegisterMessage(TransactionStartCompleted) -TransactionWrite = _reflection.GeneratedProtocolMessageType( - "TransactionWrite", - (_message.Message,), - { - "DESCRIPTOR": _TRANSACTIONWRITE, - "__module__": "messages_pb2" - # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.TransactionWrite) - }, -) +TransactionWrite = _reflection.GeneratedProtocolMessageType('TransactionWrite', (_message.Message,), { + 'DESCRIPTOR' : _TRANSACTIONWRITE, + '__module__' : 'messages_pb2' + # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.TransactionWrite) + }) _sym_db.RegisterMessage(TransactionWrite) -TransactionWriteCompleted = _reflection.GeneratedProtocolMessageType( - "TransactionWriteCompleted", - (_message.Message,), - { - "DESCRIPTOR": _TRANSACTIONWRITECOMPLETED, - "__module__": "messages_pb2" - # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.TransactionWriteCompleted) - }, -) +TransactionWriteCompleted = _reflection.GeneratedProtocolMessageType('TransactionWriteCompleted', (_message.Message,), { + 'DESCRIPTOR' : _TRANSACTIONWRITECOMPLETED, + '__module__' : 'messages_pb2' + # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.TransactionWriteCompleted) + }) _sym_db.RegisterMessage(TransactionWriteCompleted) -TransactionCommit = _reflection.GeneratedProtocolMessageType( - "TransactionCommit", - (_message.Message,), - { - "DESCRIPTOR": _TRANSACTIONCOMMIT, - "__module__": "messages_pb2" - # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.TransactionCommit) - }, -) +TransactionCommit = _reflection.GeneratedProtocolMessageType('TransactionCommit', (_message.Message,), { + 'DESCRIPTOR' : _TRANSACTIONCOMMIT, + '__module__' : 'messages_pb2' + # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.TransactionCommit) + }) _sym_db.RegisterMessage(TransactionCommit) -TransactionCommitCompleted = _reflection.GeneratedProtocolMessageType( - "TransactionCommitCompleted", - (_message.Message,), - { - "DESCRIPTOR": _TRANSACTIONCOMMITCOMPLETED, - "__module__": "messages_pb2" - # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.TransactionCommitCompleted) - }, -) +TransactionCommitCompleted = _reflection.GeneratedProtocolMessageType('TransactionCommitCompleted', (_message.Message,), { + 'DESCRIPTOR' : _TRANSACTIONCOMMITCOMPLETED, + '__module__' : 'messages_pb2' + # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.TransactionCommitCompleted) + }) _sym_db.RegisterMessage(TransactionCommitCompleted) -ReadEvent = _reflection.GeneratedProtocolMessageType( - "ReadEvent", - (_message.Message,), - { - "DESCRIPTOR": _READEVENT, - "__module__": "messages_pb2" - # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.ReadEvent) - }, -) +ReadEvent = _reflection.GeneratedProtocolMessageType('ReadEvent', (_message.Message,), { + 'DESCRIPTOR' : _READEVENT, + '__module__' : 'messages_pb2' + # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.ReadEvent) + }) _sym_db.RegisterMessage(ReadEvent) -ReadEventCompleted = _reflection.GeneratedProtocolMessageType( - "ReadEventCompleted", - (_message.Message,), - { - "DESCRIPTOR": _READEVENTCOMPLETED, - "__module__": "messages_pb2" - # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.ReadEventCompleted) - }, -) +ReadEventCompleted = _reflection.GeneratedProtocolMessageType('ReadEventCompleted', (_message.Message,), { + 'DESCRIPTOR' : _READEVENTCOMPLETED, + '__module__' : 'messages_pb2' + # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.ReadEventCompleted) + }) _sym_db.RegisterMessage(ReadEventCompleted) -ReadStreamEvents = _reflection.GeneratedProtocolMessageType( - "ReadStreamEvents", - (_message.Message,), - { - "DESCRIPTOR": _READSTREAMEVENTS, - "__module__": "messages_pb2" - # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.ReadStreamEvents) - }, -) +ReadStreamEvents = _reflection.GeneratedProtocolMessageType('ReadStreamEvents', (_message.Message,), { + 'DESCRIPTOR' : _READSTREAMEVENTS, + '__module__' : 'messages_pb2' + # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.ReadStreamEvents) + }) _sym_db.RegisterMessage(ReadStreamEvents) -ReadStreamEventsCompleted = _reflection.GeneratedProtocolMessageType( - "ReadStreamEventsCompleted", - (_message.Message,), - { - "DESCRIPTOR": _READSTREAMEVENTSCOMPLETED, - "__module__": "messages_pb2" - # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.ReadStreamEventsCompleted) - }, -) +ReadStreamEventsCompleted = _reflection.GeneratedProtocolMessageType('ReadStreamEventsCompleted', (_message.Message,), { + 'DESCRIPTOR' : _READSTREAMEVENTSCOMPLETED, + '__module__' : 'messages_pb2' + # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.ReadStreamEventsCompleted) + }) _sym_db.RegisterMessage(ReadStreamEventsCompleted) -ReadAllEvents = _reflection.GeneratedProtocolMessageType( - "ReadAllEvents", - (_message.Message,), - { - "DESCRIPTOR": _READALLEVENTS, - "__module__": "messages_pb2" - # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.ReadAllEvents) - }, -) +ReadAllEvents = _reflection.GeneratedProtocolMessageType('ReadAllEvents', (_message.Message,), { + 'DESCRIPTOR' : _READALLEVENTS, + '__module__' : 'messages_pb2' + # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.ReadAllEvents) + }) _sym_db.RegisterMessage(ReadAllEvents) -ReadAllEventsCompleted = _reflection.GeneratedProtocolMessageType( - "ReadAllEventsCompleted", - (_message.Message,), - { - "DESCRIPTOR": _READALLEVENTSCOMPLETED, - "__module__": "messages_pb2" - # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.ReadAllEventsCompleted) - }, -) +ReadAllEventsCompleted = _reflection.GeneratedProtocolMessageType('ReadAllEventsCompleted', (_message.Message,), { + 'DESCRIPTOR' : _READALLEVENTSCOMPLETED, + '__module__' : 'messages_pb2' + # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.ReadAllEventsCompleted) + }) _sym_db.RegisterMessage(ReadAllEventsCompleted) -CreatePersistentSubscription = _reflection.GeneratedProtocolMessageType( - "CreatePersistentSubscription", - (_message.Message,), - { - "DESCRIPTOR": _CREATEPERSISTENTSUBSCRIPTION, - "__module__": "messages_pb2" - # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.CreatePersistentSubscription) - }, -) +Filter = _reflection.GeneratedProtocolMessageType('Filter', (_message.Message,), { + 'DESCRIPTOR' : _FILTER, + '__module__' : 'messages_pb2' + # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.Filter) + }) +_sym_db.RegisterMessage(Filter) + +FilteredReadAllEvents = _reflection.GeneratedProtocolMessageType('FilteredReadAllEvents', (_message.Message,), { + 'DESCRIPTOR' : _FILTEREDREADALLEVENTS, + '__module__' : 'messages_pb2' + # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.FilteredReadAllEvents) + }) +_sym_db.RegisterMessage(FilteredReadAllEvents) + +FilteredReadAllEventsCompleted = _reflection.GeneratedProtocolMessageType('FilteredReadAllEventsCompleted', (_message.Message,), { + 'DESCRIPTOR' : _FILTEREDREADALLEVENTSCOMPLETED, + '__module__' : 'messages_pb2' + # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.FilteredReadAllEventsCompleted) + }) +_sym_db.RegisterMessage(FilteredReadAllEventsCompleted) + +CreatePersistentSubscription = _reflection.GeneratedProtocolMessageType('CreatePersistentSubscription', (_message.Message,), { + 'DESCRIPTOR' : _CREATEPERSISTENTSUBSCRIPTION, + '__module__' : 'messages_pb2' + # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.CreatePersistentSubscription) + }) _sym_db.RegisterMessage(CreatePersistentSubscription) -DeletePersistentSubscription = _reflection.GeneratedProtocolMessageType( - "DeletePersistentSubscription", - (_message.Message,), - { - "DESCRIPTOR": _DELETEPERSISTENTSUBSCRIPTION, - "__module__": "messages_pb2" - # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.DeletePersistentSubscription) - }, -) +DeletePersistentSubscription = _reflection.GeneratedProtocolMessageType('DeletePersistentSubscription', (_message.Message,), { + 'DESCRIPTOR' : _DELETEPERSISTENTSUBSCRIPTION, + '__module__' : 'messages_pb2' + # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.DeletePersistentSubscription) + }) _sym_db.RegisterMessage(DeletePersistentSubscription) -UpdatePersistentSubscription = _reflection.GeneratedProtocolMessageType( - "UpdatePersistentSubscription", - (_message.Message,), - { - "DESCRIPTOR": _UPDATEPERSISTENTSUBSCRIPTION, - "__module__": "messages_pb2" - # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.UpdatePersistentSubscription) - }, -) +UpdatePersistentSubscription = _reflection.GeneratedProtocolMessageType('UpdatePersistentSubscription', (_message.Message,), { + 'DESCRIPTOR' : _UPDATEPERSISTENTSUBSCRIPTION, + '__module__' : 'messages_pb2' + # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.UpdatePersistentSubscription) + }) _sym_db.RegisterMessage(UpdatePersistentSubscription) -UpdatePersistentSubscriptionCompleted = _reflection.GeneratedProtocolMessageType( - "UpdatePersistentSubscriptionCompleted", - (_message.Message,), - { - "DESCRIPTOR": _UPDATEPERSISTENTSUBSCRIPTIONCOMPLETED, - "__module__": "messages_pb2" - # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.UpdatePersistentSubscriptionCompleted) - }, -) +UpdatePersistentSubscriptionCompleted = _reflection.GeneratedProtocolMessageType('UpdatePersistentSubscriptionCompleted', (_message.Message,), { + 'DESCRIPTOR' : _UPDATEPERSISTENTSUBSCRIPTIONCOMPLETED, + '__module__' : 'messages_pb2' + # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.UpdatePersistentSubscriptionCompleted) + }) _sym_db.RegisterMessage(UpdatePersistentSubscriptionCompleted) -CreatePersistentSubscriptionCompleted = _reflection.GeneratedProtocolMessageType( - "CreatePersistentSubscriptionCompleted", - (_message.Message,), - { - "DESCRIPTOR": _CREATEPERSISTENTSUBSCRIPTIONCOMPLETED, - "__module__": "messages_pb2" - # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.CreatePersistentSubscriptionCompleted) - }, -) +CreatePersistentSubscriptionCompleted = _reflection.GeneratedProtocolMessageType('CreatePersistentSubscriptionCompleted', (_message.Message,), { + 'DESCRIPTOR' : _CREATEPERSISTENTSUBSCRIPTIONCOMPLETED, + '__module__' : 'messages_pb2' + # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.CreatePersistentSubscriptionCompleted) + }) _sym_db.RegisterMessage(CreatePersistentSubscriptionCompleted) -DeletePersistentSubscriptionCompleted = _reflection.GeneratedProtocolMessageType( - "DeletePersistentSubscriptionCompleted", - (_message.Message,), - { - "DESCRIPTOR": _DELETEPERSISTENTSUBSCRIPTIONCOMPLETED, - "__module__": "messages_pb2" - # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.DeletePersistentSubscriptionCompleted) - }, -) +DeletePersistentSubscriptionCompleted = _reflection.GeneratedProtocolMessageType('DeletePersistentSubscriptionCompleted', (_message.Message,), { + 'DESCRIPTOR' : _DELETEPERSISTENTSUBSCRIPTIONCOMPLETED, + '__module__' : 'messages_pb2' + # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.DeletePersistentSubscriptionCompleted) + }) _sym_db.RegisterMessage(DeletePersistentSubscriptionCompleted) -ConnectToPersistentSubscription = _reflection.GeneratedProtocolMessageType( - "ConnectToPersistentSubscription", - (_message.Message,), - { - "DESCRIPTOR": _CONNECTTOPERSISTENTSUBSCRIPTION, - "__module__": "messages_pb2" - # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.ConnectToPersistentSubscription) - }, -) +ConnectToPersistentSubscription = _reflection.GeneratedProtocolMessageType('ConnectToPersistentSubscription', (_message.Message,), { + 'DESCRIPTOR' : _CONNECTTOPERSISTENTSUBSCRIPTION, + '__module__' : 'messages_pb2' + # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.ConnectToPersistentSubscription) + }) _sym_db.RegisterMessage(ConnectToPersistentSubscription) -PersistentSubscriptionAckEvents = _reflection.GeneratedProtocolMessageType( - "PersistentSubscriptionAckEvents", - (_message.Message,), - { - "DESCRIPTOR": _PERSISTENTSUBSCRIPTIONACKEVENTS, - "__module__": "messages_pb2" - # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.PersistentSubscriptionAckEvents) - }, -) +PersistentSubscriptionAckEvents = _reflection.GeneratedProtocolMessageType('PersistentSubscriptionAckEvents', (_message.Message,), { + 'DESCRIPTOR' : _PERSISTENTSUBSCRIPTIONACKEVENTS, + '__module__' : 'messages_pb2' + # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.PersistentSubscriptionAckEvents) + }) _sym_db.RegisterMessage(PersistentSubscriptionAckEvents) -PersistentSubscriptionNakEvents = _reflection.GeneratedProtocolMessageType( - "PersistentSubscriptionNakEvents", - (_message.Message,), - { - "DESCRIPTOR": _PERSISTENTSUBSCRIPTIONNAKEVENTS, - "__module__": "messages_pb2" - # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.PersistentSubscriptionNakEvents) - }, -) +PersistentSubscriptionNakEvents = _reflection.GeneratedProtocolMessageType('PersistentSubscriptionNakEvents', (_message.Message,), { + 'DESCRIPTOR' : _PERSISTENTSUBSCRIPTIONNAKEVENTS, + '__module__' : 'messages_pb2' + # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.PersistentSubscriptionNakEvents) + }) _sym_db.RegisterMessage(PersistentSubscriptionNakEvents) -PersistentSubscriptionConfirmation = _reflection.GeneratedProtocolMessageType( - "PersistentSubscriptionConfirmation", - (_message.Message,), - { - "DESCRIPTOR": _PERSISTENTSUBSCRIPTIONCONFIRMATION, - "__module__": "messages_pb2" - # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.PersistentSubscriptionConfirmation) - }, -) +PersistentSubscriptionConfirmation = _reflection.GeneratedProtocolMessageType('PersistentSubscriptionConfirmation', (_message.Message,), { + 'DESCRIPTOR' : _PERSISTENTSUBSCRIPTIONCONFIRMATION, + '__module__' : 'messages_pb2' + # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.PersistentSubscriptionConfirmation) + }) _sym_db.RegisterMessage(PersistentSubscriptionConfirmation) -PersistentSubscriptionStreamEventAppeared = _reflection.GeneratedProtocolMessageType( - "PersistentSubscriptionStreamEventAppeared", - (_message.Message,), - { - "DESCRIPTOR": _PERSISTENTSUBSCRIPTIONSTREAMEVENTAPPEARED, - "__module__": "messages_pb2" - # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.PersistentSubscriptionStreamEventAppeared) - }, -) +PersistentSubscriptionStreamEventAppeared = _reflection.GeneratedProtocolMessageType('PersistentSubscriptionStreamEventAppeared', (_message.Message,), { + 'DESCRIPTOR' : _PERSISTENTSUBSCRIPTIONSTREAMEVENTAPPEARED, + '__module__' : 'messages_pb2' + # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.PersistentSubscriptionStreamEventAppeared) + }) _sym_db.RegisterMessage(PersistentSubscriptionStreamEventAppeared) -SubscribeToStream = _reflection.GeneratedProtocolMessageType( - "SubscribeToStream", - (_message.Message,), - { - "DESCRIPTOR": _SUBSCRIBETOSTREAM, - "__module__": "messages_pb2" - # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.SubscribeToStream) - }, -) +SubscribeToStream = _reflection.GeneratedProtocolMessageType('SubscribeToStream', (_message.Message,), { + 'DESCRIPTOR' : _SUBSCRIBETOSTREAM, + '__module__' : 'messages_pb2' + # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.SubscribeToStream) + }) _sym_db.RegisterMessage(SubscribeToStream) -SubscriptionConfirmation = _reflection.GeneratedProtocolMessageType( - "SubscriptionConfirmation", - (_message.Message,), - { - "DESCRIPTOR": _SUBSCRIPTIONCONFIRMATION, - "__module__": "messages_pb2" - # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.SubscriptionConfirmation) - }, -) +FilteredSubscribeToStream = _reflection.GeneratedProtocolMessageType('FilteredSubscribeToStream', (_message.Message,), { + 'DESCRIPTOR' : _FILTEREDSUBSCRIBETOSTREAM, + '__module__' : 'messages_pb2' + # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.FilteredSubscribeToStream) + }) +_sym_db.RegisterMessage(FilteredSubscribeToStream) + +CheckpointReached = _reflection.GeneratedProtocolMessageType('CheckpointReached', (_message.Message,), { + 'DESCRIPTOR' : _CHECKPOINTREACHED, + '__module__' : 'messages_pb2' + # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.CheckpointReached) + }) +_sym_db.RegisterMessage(CheckpointReached) + +SubscriptionConfirmation = _reflection.GeneratedProtocolMessageType('SubscriptionConfirmation', (_message.Message,), { + 'DESCRIPTOR' : _SUBSCRIPTIONCONFIRMATION, + '__module__' : 'messages_pb2' + # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.SubscriptionConfirmation) + }) _sym_db.RegisterMessage(SubscriptionConfirmation) -StreamEventAppeared = _reflection.GeneratedProtocolMessageType( - "StreamEventAppeared", - (_message.Message,), - { - "DESCRIPTOR": _STREAMEVENTAPPEARED, - "__module__": "messages_pb2" - # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.StreamEventAppeared) - }, -) +StreamEventAppeared = _reflection.GeneratedProtocolMessageType('StreamEventAppeared', (_message.Message,), { + 'DESCRIPTOR' : _STREAMEVENTAPPEARED, + '__module__' : 'messages_pb2' + # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.StreamEventAppeared) + }) _sym_db.RegisterMessage(StreamEventAppeared) -UnsubscribeFromStream = _reflection.GeneratedProtocolMessageType( - "UnsubscribeFromStream", - (_message.Message,), - { - "DESCRIPTOR": _UNSUBSCRIBEFROMSTREAM, - "__module__": "messages_pb2" - # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.UnsubscribeFromStream) - }, -) +UnsubscribeFromStream = _reflection.GeneratedProtocolMessageType('UnsubscribeFromStream', (_message.Message,), { + 'DESCRIPTOR' : _UNSUBSCRIBEFROMSTREAM, + '__module__' : 'messages_pb2' + # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.UnsubscribeFromStream) + }) _sym_db.RegisterMessage(UnsubscribeFromStream) -Ping = _reflection.GeneratedProtocolMessageType( - "Ping", - (_message.Message,), - { - "DESCRIPTOR": _PING, - "__module__": "messages_pb2" - # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.Ping) - }, -) -_sym_db.RegisterMessage(Ping) - -Pong = _reflection.GeneratedProtocolMessageType( - "Pong", - (_message.Message,), - { - "DESCRIPTOR": _PONG, - "__module__": "messages_pb2" - # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.Pong) - }, -) -_sym_db.RegisterMessage(Pong) - -SubscriptionDropped = _reflection.GeneratedProtocolMessageType( - "SubscriptionDropped", - (_message.Message,), - { - "DESCRIPTOR": _SUBSCRIPTIONDROPPED, - "__module__": "messages_pb2" - # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.SubscriptionDropped) - }, -) +SubscriptionDropped = _reflection.GeneratedProtocolMessageType('SubscriptionDropped', (_message.Message,), { + 'DESCRIPTOR' : _SUBSCRIPTIONDROPPED, + '__module__' : 'messages_pb2' + # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.SubscriptionDropped) + }) _sym_db.RegisterMessage(SubscriptionDropped) -NotHandled = _reflection.GeneratedProtocolMessageType( - "NotHandled", - (_message.Message,), - { - "MasterInfo": _reflection.GeneratedProtocolMessageType( - "MasterInfo", - (_message.Message,), - { - "DESCRIPTOR": _NOTHANDLED_MASTERINFO, - "__module__": "messages_pb2" - # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.NotHandled.MasterInfo) - }, - ), - "DESCRIPTOR": _NOTHANDLED, - "__module__": "messages_pb2" - # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.NotHandled) - }, -) +NotHandled = _reflection.GeneratedProtocolMessageType('NotHandled', (_message.Message,), { + + 'LeaderInfo' : _reflection.GeneratedProtocolMessageType('LeaderInfo', (_message.Message,), { + 'DESCRIPTOR' : _NOTHANDLED_LEADERINFO, + '__module__' : 'messages_pb2' + # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.NotHandled.LeaderInfo) + }) + , + 'DESCRIPTOR' : _NOTHANDLED, + '__module__' : 'messages_pb2' + # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.NotHandled) + }) _sym_db.RegisterMessage(NotHandled) -_sym_db.RegisterMessage(NotHandled.MasterInfo) +_sym_db.RegisterMessage(NotHandled.LeaderInfo) -ScavengeDatabase = _reflection.GeneratedProtocolMessageType( - "ScavengeDatabase", - (_message.Message,), - { - "DESCRIPTOR": _SCAVENGEDATABASE, - "__module__": "messages_pb2" - # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.ScavengeDatabase) - }, -) +ScavengeDatabase = _reflection.GeneratedProtocolMessageType('ScavengeDatabase', (_message.Message,), { + 'DESCRIPTOR' : _SCAVENGEDATABASE, + '__module__' : 'messages_pb2' + # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.ScavengeDatabase) + }) _sym_db.RegisterMessage(ScavengeDatabase) -ScavengeDatabaseCompleted = _reflection.GeneratedProtocolMessageType( - "ScavengeDatabaseCompleted", - (_message.Message,), - { - "DESCRIPTOR": _SCAVENGEDATABASECOMPLETED, - "__module__": "messages_pb2" - # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.ScavengeDatabaseCompleted) - }, -) -_sym_db.RegisterMessage(ScavengeDatabaseCompleted) - - +ScavengeDatabaseResponse = _reflection.GeneratedProtocolMessageType('ScavengeDatabaseResponse', (_message.Message,), { + 'DESCRIPTOR' : _SCAVENGEDATABASERESPONSE, + '__module__' : 'messages_pb2' + # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.ScavengeDatabaseResponse) + }) +_sym_db.RegisterMessage(ScavengeDatabaseResponse) + +IdentifyClient = _reflection.GeneratedProtocolMessageType('IdentifyClient', (_message.Message,), { + 'DESCRIPTOR' : _IDENTIFYCLIENT, + '__module__' : 'messages_pb2' + # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.IdentifyClient) + }) +_sym_db.RegisterMessage(IdentifyClient) + +ClientIdentified = _reflection.GeneratedProtocolMessageType('ClientIdentified', (_message.Message,), { + 'DESCRIPTOR' : _CLIENTIDENTIFIED, + '__module__' : 'messages_pb2' + # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.ClientIdentified) + }) +_sym_db.RegisterMessage(ClientIdentified) + +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + _OPERATIONRESULT._serialized_start=8578 + _OPERATIONRESULT._serialized_end=8754 + _NEWEVENT._serialized_start=47 + _NEWEVENT._serialized_end=185 + _EVENTRECORD._serialized_start=188 + _EVENTRECORD._serialized_end=416 + _RESOLVEDINDEXEDEVENT._serialized_start=419 + _RESOLVEDINDEXEDEVENT._serialized_end=552 + _RESOLVEDEVENT._serialized_start=555 + _RESOLVEDEVENT._serialized_end=732 + _WRITEEVENTS._serialized_start=735 + _WRITEEVENTS._serialized_end=877 + _WRITEEVENTSCOMPLETED._serialized_start=880 + _WRITEEVENTSCOMPLETED._serialized_end=1111 + _DELETESTREAM._serialized_start=1113 + _DELETESTREAM._serialized_end=1223 + _DELETESTREAMCOMPLETED._serialized_start=1226 + _DELETESTREAMCOMPLETED._serialized_end=1403 + _TRANSACTIONSTART._serialized_start=1405 + _TRANSACTIONSTART._serialized_end=1498 + _TRANSACTIONSTARTCOMPLETED._serialized_start=1501 + _TRANSACTIONSTARTCOMPLETED._serialized_end=1630 + _TRANSACTIONWRITE._serialized_start=1632 + _TRANSACTIONWRITE._serialized_end=1752 + _TRANSACTIONWRITECOMPLETED._serialized_start=1755 + _TRANSACTIONWRITECOMPLETED._serialized_end=1884 + _TRANSACTIONCOMMIT._serialized_start=1886 + _TRANSACTIONCOMMIT._serialized_end=1953 + _TRANSACTIONCOMMITCOMPLETED._serialized_start=1956 + _TRANSACTIONCOMMITCOMPLETED._serialized_end=2192 + _READEVENT._serialized_start=2194 + _READEVENT._serialized_end=2302 + _READEVENTCOMPLETED._serialized_start=2305 + _READEVENTCOMPLETED._serialized_end=2593 + _READEVENTCOMPLETED_READEVENTRESULT._serialized_start=2487 + _READEVENTCOMPLETED_READEVENTRESULT._serialized_end=2593 + _READSTREAMEVENTS._serialized_start=2596 + _READSTREAMEVENTS._serialized_end=2735 + _READSTREAMEVENTSCOMPLETED._serialized_start=2738 + _READSTREAMEVENTSCOMPLETED._serialized_end=3156 + _READSTREAMEVENTSCOMPLETED_READSTREAMRESULT._serialized_start=3046 + _READSTREAMEVENTSCOMPLETED_READSTREAMRESULT._serialized_end=3156 + _READALLEVENTS._serialized_start=3159 + _READALLEVENTS._serialized_end=3294 + _READALLEVENTSCOMPLETED._serialized_start=3297 + _READALLEVENTSCOMPLETED._serialized_end=3665 + _READALLEVENTSCOMPLETED_READALLRESULT._serialized_start=3591 + _READALLEVENTSCOMPLETED_READALLRESULT._serialized_end=3665 + _FILTER._serialized_start=3668 + _FILTER._serialized_end=3901 + _FILTER_FILTERCONTEXT._serialized_start=3820 + _FILTER_FILTERCONTEXT._serialized_end=3864 + _FILTER_FILTERTYPE._serialized_start=3866 + _FILTER_FILTERTYPE._serialized_end=3901 + _FILTEREDREADALLEVENTS._serialized_start=3904 + _FILTEREDREADALLEVENTS._serialized_end=4126 + _FILTEREDREADALLEVENTSCOMPLETED._serialized_start=4129 + _FILTEREDREADALLEVENTSCOMPLETED._serialized_end=4555 + _FILTEREDREADALLEVENTSCOMPLETED_FILTEREDREADALLRESULT._serialized_start=4473 + _FILTEREDREADALLEVENTSCOMPLETED_FILTEREDREADALLRESULT._serialized_end=4555 + _CREATEPERSISTENTSUBSCRIPTION._serialized_start=4558 + _CREATEPERSISTENTSUBSCRIPTION._serialized_end=5036 + _DELETEPERSISTENTSUBSCRIPTION._serialized_start=5038 + _DELETEPERSISTENTSUBSCRIPTION._serialized_end=5126 + _UPDATEPERSISTENTSUBSCRIPTION._serialized_start=5129 + _UPDATEPERSISTENTSUBSCRIPTION._serialized_end=5607 + _UPDATEPERSISTENTSUBSCRIPTIONCOMPLETED._serialized_start=5610 + _UPDATEPERSISTENTSUBSCRIPTIONCOMPLETED._serialized_end=5880 + _UPDATEPERSISTENTSUBSCRIPTIONCOMPLETED_UPDATEPERSISTENTSUBSCRIPTIONRESULT._serialized_start=5785 + _UPDATEPERSISTENTSUBSCRIPTIONCOMPLETED_UPDATEPERSISTENTSUBSCRIPTIONRESULT._serialized_end=5880 + _CREATEPERSISTENTSUBSCRIPTIONCOMPLETED._serialized_start=5883 + _CREATEPERSISTENTSUBSCRIPTIONCOMPLETED._serialized_end=6154 + _CREATEPERSISTENTSUBSCRIPTIONCOMPLETED_CREATEPERSISTENTSUBSCRIPTIONRESULT._serialized_start=6058 + _CREATEPERSISTENTSUBSCRIPTIONCOMPLETED_CREATEPERSISTENTSUBSCRIPTIONRESULT._serialized_end=6154 + _DELETEPERSISTENTSUBSCRIPTIONCOMPLETED._serialized_start=6157 + _DELETEPERSISTENTSUBSCRIPTIONCOMPLETED._serialized_end=6427 + _DELETEPERSISTENTSUBSCRIPTIONCOMPLETED_DELETEPERSISTENTSUBSCRIPTIONRESULT._serialized_start=6332 + _DELETEPERSISTENTSUBSCRIPTIONCOMPLETED_DELETEPERSISTENTSUBSCRIPTIONRESULT._serialized_end=6427 + _CONNECTTOPERSISTENTSUBSCRIPTION._serialized_start=6429 + _CONNECTTOPERSISTENTSUBSCRIPTION._serialized_end=6548 + _PERSISTENTSUBSCRIPTIONACKEVENTS._serialized_start=6550 + _PERSISTENTSUBSCRIPTIONACKEVENTS._serialized_end=6637 + _PERSISTENTSUBSCRIPTIONNAKEVENTS._serialized_start=6640 + _PERSISTENTSUBSCRIPTIONNAKEVENTS._serialized_end=6898 + _PERSISTENTSUBSCRIPTIONNAKEVENTS_NAKACTION._serialized_start=6833 + _PERSISTENTSUBSCRIPTIONNAKEVENTS_NAKACTION._serialized_end=6898 + _PERSISTENTSUBSCRIPTIONCONFIRMATION._serialized_start=6900 + _PERSISTENTSUBSCRIPTIONCONFIRMATION._serialized_end=7018 + _PERSISTENTSUBSCRIPTIONSTREAMEVENTAPPEARED._serialized_start=7021 + _PERSISTENTSUBSCRIPTIONSTREAMEVENTAPPEARED._serialized_end=7149 + _SUBSCRIBETOSTREAM._serialized_start=7151 + _SUBSCRIBETOSTREAM._serialized_end=7221 + _FILTEREDSUBSCRIBETOSTREAM._serialized_start=7224 + _FILTEREDSUBSCRIBETOSTREAM._serialized_end=7383 + _CHECKPOINTREACHED._serialized_start=7385 + _CHECKPOINTREACHED._serialized_end=7455 + _SUBSCRIPTIONCONFIRMATION._serialized_start=7457 + _SUBSCRIPTIONCONFIRMATION._serialized_end=7540 + _STREAMEVENTAPPEARED._serialized_start=7542 + _STREAMEVENTAPPEARED._serialized_end=7621 + _UNSUBSCRIBEFROMSTREAM._serialized_start=7623 + _UNSUBSCRIBEFROMSTREAM._serialized_end=7646 + _SUBSCRIPTIONDROPPED._serialized_start=7649 + _SUBSCRIPTIONDROPPED._serialized_end=7901 + _SUBSCRIPTIONDROPPED_SUBSCRIPTIONDROPREASON._serialized_start=7761 + _SUBSCRIPTIONDROPPED_SUBSCRIPTIONDROPREASON._serialized_end=7901 + _NOTHANDLED._serialized_start=7904 + _NOTHANDLED._serialized_end=8276 + _NOTHANDLED_LEADERINFO._serialized_start=8017 + _NOTHANDLED_LEADERINFO._serialized_end=8198 + _NOTHANDLED_NOTHANDLEDREASON._serialized_start=8200 + _NOTHANDLED_NOTHANDLEDREASON._serialized_end=8276 + _SCAVENGEDATABASE._serialized_start=8278 + _SCAVENGEDATABASE._serialized_end=8296 + _SCAVENGEDATABASERESPONSE._serialized_start=8299 + _SCAVENGEDATABASERESPONSE._serialized_end=8495 + _SCAVENGEDATABASERESPONSE_SCAVENGERESULT._serialized_start=8432 + _SCAVENGEDATABASERESPONSE_SCAVENGERESULT._serialized_end=8495 + _IDENTIFYCLIENT._serialized_start=8497 + _IDENTIFYCLIENT._serialized_end=8555 + _CLIENTIDENTIFIED._serialized_start=8557 + _CLIENTIDENTIFIED._serialized_end=8575 # @@protoc_insertion_point(module_scope) diff --git a/photonpump/messages_pb2.pyi b/photonpump/messages_pb2.pyi new file mode 100644 index 0000000..ef340c9 --- /dev/null +++ b/photonpump/messages_pb2.pyi @@ -0,0 +1,1226 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.internal.enum_type_wrapper +import google.protobuf.message +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor + +class _OperationResult: + ValueType = typing.NewType('ValueType', builtins.int) + V: typing_extensions.TypeAlias = ValueType +class _OperationResultEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_OperationResult.ValueType], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor + Success: _OperationResult.ValueType # 0 + PrepareTimeout: _OperationResult.ValueType # 1 + CommitTimeout: _OperationResult.ValueType # 2 + ForwardTimeout: _OperationResult.ValueType # 3 + WrongExpectedVersion: _OperationResult.ValueType # 4 + StreamDeleted: _OperationResult.ValueType # 5 + InvalidTransaction: _OperationResult.ValueType # 6 + AccessDenied: _OperationResult.ValueType # 7 +class OperationResult(_OperationResult, metaclass=_OperationResultEnumTypeWrapper): + pass + +Success: OperationResult.ValueType # 0 +PrepareTimeout: OperationResult.ValueType # 1 +CommitTimeout: OperationResult.ValueType # 2 +ForwardTimeout: OperationResult.ValueType # 3 +WrongExpectedVersion: OperationResult.ValueType # 4 +StreamDeleted: OperationResult.ValueType # 5 +InvalidTransaction: OperationResult.ValueType # 6 +AccessDenied: OperationResult.ValueType # 7 +global___OperationResult = OperationResult + + +class NewEvent(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + EVENT_ID_FIELD_NUMBER: builtins.int + EVENT_TYPE_FIELD_NUMBER: builtins.int + DATA_CONTENT_TYPE_FIELD_NUMBER: builtins.int + METADATA_CONTENT_TYPE_FIELD_NUMBER: builtins.int + DATA_FIELD_NUMBER: builtins.int + METADATA_FIELD_NUMBER: builtins.int + event_id: builtins.bytes + event_type: typing.Text + data_content_type: builtins.int + metadata_content_type: builtins.int + data: builtins.bytes + metadata: builtins.bytes + def __init__(self, + *, + event_id: builtins.bytes = ..., + event_type: typing.Text = ..., + data_content_type: builtins.int = ..., + metadata_content_type: builtins.int = ..., + data: builtins.bytes = ..., + metadata: builtins.bytes = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["data",b"data","data_content_type",b"data_content_type","event_id",b"event_id","event_type",b"event_type","metadata",b"metadata","metadata_content_type",b"metadata_content_type"]) -> None: ... +global___NewEvent = NewEvent + +class EventRecord(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + EVENT_STREAM_ID_FIELD_NUMBER: builtins.int + EVENT_NUMBER_FIELD_NUMBER: builtins.int + EVENT_ID_FIELD_NUMBER: builtins.int + EVENT_TYPE_FIELD_NUMBER: builtins.int + DATA_CONTENT_TYPE_FIELD_NUMBER: builtins.int + METADATA_CONTENT_TYPE_FIELD_NUMBER: builtins.int + DATA_FIELD_NUMBER: builtins.int + METADATA_FIELD_NUMBER: builtins.int + CREATED_FIELD_NUMBER: builtins.int + CREATED_EPOCH_FIELD_NUMBER: builtins.int + event_stream_id: typing.Text + event_number: builtins.int + event_id: builtins.bytes + event_type: typing.Text + data_content_type: builtins.int + metadata_content_type: builtins.int + data: builtins.bytes + metadata: builtins.bytes + created: builtins.int + created_epoch: builtins.int + def __init__(self, + *, + event_stream_id: typing.Text = ..., + event_number: builtins.int = ..., + event_id: builtins.bytes = ..., + event_type: typing.Text = ..., + data_content_type: builtins.int = ..., + metadata_content_type: builtins.int = ..., + data: builtins.bytes = ..., + metadata: builtins.bytes = ..., + created: builtins.int = ..., + created_epoch: builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["created",b"created","created_epoch",b"created_epoch","data",b"data","data_content_type",b"data_content_type","event_id",b"event_id","event_number",b"event_number","event_stream_id",b"event_stream_id","event_type",b"event_type","metadata",b"metadata","metadata_content_type",b"metadata_content_type"]) -> None: ... +global___EventRecord = EventRecord + +class ResolvedIndexedEvent(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + EVENT_FIELD_NUMBER: builtins.int + LINK_FIELD_NUMBER: builtins.int + @property + def event(self) -> global___EventRecord: ... + @property + def link(self) -> global___EventRecord: ... + def __init__(self, + *, + event: typing.Optional[global___EventRecord] = ..., + link: typing.Optional[global___EventRecord] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["event",b"event","link",b"link"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["event",b"event","link",b"link"]) -> None: ... +global___ResolvedIndexedEvent = ResolvedIndexedEvent + +class ResolvedEvent(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + EVENT_FIELD_NUMBER: builtins.int + LINK_FIELD_NUMBER: builtins.int + COMMIT_POSITION_FIELD_NUMBER: builtins.int + PREPARE_POSITION_FIELD_NUMBER: builtins.int + @property + def event(self) -> global___EventRecord: ... + @property + def link(self) -> global___EventRecord: ... + commit_position: builtins.int + prepare_position: builtins.int + def __init__(self, + *, + event: typing.Optional[global___EventRecord] = ..., + link: typing.Optional[global___EventRecord] = ..., + commit_position: builtins.int = ..., + prepare_position: builtins.int = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["event",b"event","link",b"link"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["commit_position",b"commit_position","event",b"event","link",b"link","prepare_position",b"prepare_position"]) -> None: ... +global___ResolvedEvent = ResolvedEvent + +class WriteEvents(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + EVENT_STREAM_ID_FIELD_NUMBER: builtins.int + EXPECTED_VERSION_FIELD_NUMBER: builtins.int + EVENTS_FIELD_NUMBER: builtins.int + REQUIRE_LEADER_FIELD_NUMBER: builtins.int + event_stream_id: typing.Text + expected_version: builtins.int + @property + def events(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___NewEvent]: ... + require_leader: builtins.bool + def __init__(self, + *, + event_stream_id: typing.Text = ..., + expected_version: builtins.int = ..., + events: typing.Optional[typing.Iterable[global___NewEvent]] = ..., + require_leader: builtins.bool = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["event_stream_id",b"event_stream_id","events",b"events","expected_version",b"expected_version","require_leader",b"require_leader"]) -> None: ... +global___WriteEvents = WriteEvents + +class WriteEventsCompleted(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + RESULT_FIELD_NUMBER: builtins.int + MESSAGE_FIELD_NUMBER: builtins.int + FIRST_EVENT_NUMBER_FIELD_NUMBER: builtins.int + LAST_EVENT_NUMBER_FIELD_NUMBER: builtins.int + PREPARE_POSITION_FIELD_NUMBER: builtins.int + COMMIT_POSITION_FIELD_NUMBER: builtins.int + CURRENT_VERSION_FIELD_NUMBER: builtins.int + result: global___OperationResult.ValueType + message: typing.Text + first_event_number: builtins.int + last_event_number: builtins.int + prepare_position: builtins.int + commit_position: builtins.int + current_version: builtins.int + def __init__(self, + *, + result: global___OperationResult.ValueType = ..., + message: typing.Text = ..., + first_event_number: builtins.int = ..., + last_event_number: builtins.int = ..., + prepare_position: builtins.int = ..., + commit_position: builtins.int = ..., + current_version: builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["commit_position",b"commit_position","current_version",b"current_version","first_event_number",b"first_event_number","last_event_number",b"last_event_number","message",b"message","prepare_position",b"prepare_position","result",b"result"]) -> None: ... +global___WriteEventsCompleted = WriteEventsCompleted + +class DeleteStream(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + EVENT_STREAM_ID_FIELD_NUMBER: builtins.int + EXPECTED_VERSION_FIELD_NUMBER: builtins.int + REQUIRE_LEADER_FIELD_NUMBER: builtins.int + HARD_DELETE_FIELD_NUMBER: builtins.int + event_stream_id: typing.Text + expected_version: builtins.int + require_leader: builtins.bool + hard_delete: builtins.bool + def __init__(self, + *, + event_stream_id: typing.Text = ..., + expected_version: builtins.int = ..., + require_leader: builtins.bool = ..., + hard_delete: builtins.bool = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["event_stream_id",b"event_stream_id","expected_version",b"expected_version","hard_delete",b"hard_delete","require_leader",b"require_leader"]) -> None: ... +global___DeleteStream = DeleteStream + +class DeleteStreamCompleted(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + RESULT_FIELD_NUMBER: builtins.int + MESSAGE_FIELD_NUMBER: builtins.int + PREPARE_POSITION_FIELD_NUMBER: builtins.int + COMMIT_POSITION_FIELD_NUMBER: builtins.int + CURRENT_VERSION_FIELD_NUMBER: builtins.int + result: global___OperationResult.ValueType + message: typing.Text + prepare_position: builtins.int + commit_position: builtins.int + current_version: builtins.int + def __init__(self, + *, + result: global___OperationResult.ValueType = ..., + message: typing.Text = ..., + prepare_position: builtins.int = ..., + commit_position: builtins.int = ..., + current_version: builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["commit_position",b"commit_position","current_version",b"current_version","message",b"message","prepare_position",b"prepare_position","result",b"result"]) -> None: ... +global___DeleteStreamCompleted = DeleteStreamCompleted + +class TransactionStart(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + EVENT_STREAM_ID_FIELD_NUMBER: builtins.int + EXPECTED_VERSION_FIELD_NUMBER: builtins.int + REQUIRE_LEADER_FIELD_NUMBER: builtins.int + event_stream_id: typing.Text + expected_version: builtins.int + require_leader: builtins.bool + def __init__(self, + *, + event_stream_id: typing.Text = ..., + expected_version: builtins.int = ..., + require_leader: builtins.bool = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["event_stream_id",b"event_stream_id","expected_version",b"expected_version","require_leader",b"require_leader"]) -> None: ... +global___TransactionStart = TransactionStart + +class TransactionStartCompleted(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + TRANSACTION_ID_FIELD_NUMBER: builtins.int + RESULT_FIELD_NUMBER: builtins.int + MESSAGE_FIELD_NUMBER: builtins.int + transaction_id: builtins.int + result: global___OperationResult.ValueType + message: typing.Text + def __init__(self, + *, + transaction_id: builtins.int = ..., + result: global___OperationResult.ValueType = ..., + message: typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["message",b"message","result",b"result","transaction_id",b"transaction_id"]) -> None: ... +global___TransactionStartCompleted = TransactionStartCompleted + +class TransactionWrite(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + TRANSACTION_ID_FIELD_NUMBER: builtins.int + EVENTS_FIELD_NUMBER: builtins.int + REQUIRE_LEADER_FIELD_NUMBER: builtins.int + transaction_id: builtins.int + @property + def events(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___NewEvent]: ... + require_leader: builtins.bool + def __init__(self, + *, + transaction_id: builtins.int = ..., + events: typing.Optional[typing.Iterable[global___NewEvent]] = ..., + require_leader: builtins.bool = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["events",b"events","require_leader",b"require_leader","transaction_id",b"transaction_id"]) -> None: ... +global___TransactionWrite = TransactionWrite + +class TransactionWriteCompleted(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + TRANSACTION_ID_FIELD_NUMBER: builtins.int + RESULT_FIELD_NUMBER: builtins.int + MESSAGE_FIELD_NUMBER: builtins.int + transaction_id: builtins.int + result: global___OperationResult.ValueType + message: typing.Text + def __init__(self, + *, + transaction_id: builtins.int = ..., + result: global___OperationResult.ValueType = ..., + message: typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["message",b"message","result",b"result","transaction_id",b"transaction_id"]) -> None: ... +global___TransactionWriteCompleted = TransactionWriteCompleted + +class TransactionCommit(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + TRANSACTION_ID_FIELD_NUMBER: builtins.int + REQUIRE_LEADER_FIELD_NUMBER: builtins.int + transaction_id: builtins.int + require_leader: builtins.bool + def __init__(self, + *, + transaction_id: builtins.int = ..., + require_leader: builtins.bool = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["require_leader",b"require_leader","transaction_id",b"transaction_id"]) -> None: ... +global___TransactionCommit = TransactionCommit + +class TransactionCommitCompleted(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + TRANSACTION_ID_FIELD_NUMBER: builtins.int + RESULT_FIELD_NUMBER: builtins.int + MESSAGE_FIELD_NUMBER: builtins.int + FIRST_EVENT_NUMBER_FIELD_NUMBER: builtins.int + LAST_EVENT_NUMBER_FIELD_NUMBER: builtins.int + PREPARE_POSITION_FIELD_NUMBER: builtins.int + COMMIT_POSITION_FIELD_NUMBER: builtins.int + transaction_id: builtins.int + result: global___OperationResult.ValueType + message: typing.Text + first_event_number: builtins.int + last_event_number: builtins.int + prepare_position: builtins.int + commit_position: builtins.int + def __init__(self, + *, + transaction_id: builtins.int = ..., + result: global___OperationResult.ValueType = ..., + message: typing.Text = ..., + first_event_number: builtins.int = ..., + last_event_number: builtins.int = ..., + prepare_position: builtins.int = ..., + commit_position: builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["commit_position",b"commit_position","first_event_number",b"first_event_number","last_event_number",b"last_event_number","message",b"message","prepare_position",b"prepare_position","result",b"result","transaction_id",b"transaction_id"]) -> None: ... +global___TransactionCommitCompleted = TransactionCommitCompleted + +class ReadEvent(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + EVENT_STREAM_ID_FIELD_NUMBER: builtins.int + EVENT_NUMBER_FIELD_NUMBER: builtins.int + RESOLVE_LINK_TOS_FIELD_NUMBER: builtins.int + REQUIRE_LEADER_FIELD_NUMBER: builtins.int + event_stream_id: typing.Text + event_number: builtins.int + resolve_link_tos: builtins.bool + require_leader: builtins.bool + def __init__(self, + *, + event_stream_id: typing.Text = ..., + event_number: builtins.int = ..., + resolve_link_tos: builtins.bool = ..., + require_leader: builtins.bool = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["event_number",b"event_number","event_stream_id",b"event_stream_id","require_leader",b"require_leader","resolve_link_tos",b"resolve_link_tos"]) -> None: ... +global___ReadEvent = ReadEvent + +class ReadEventCompleted(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + class _ReadEventResult: + ValueType = typing.NewType('ValueType', builtins.int) + V: typing_extensions.TypeAlias = ValueType + class _ReadEventResultEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[ReadEventCompleted._ReadEventResult.ValueType], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor + Success: ReadEventCompleted._ReadEventResult.ValueType # 0 + NotFound: ReadEventCompleted._ReadEventResult.ValueType # 1 + NoStream: ReadEventCompleted._ReadEventResult.ValueType # 2 + StreamDeleted: ReadEventCompleted._ReadEventResult.ValueType # 3 + Error: ReadEventCompleted._ReadEventResult.ValueType # 4 + AccessDenied: ReadEventCompleted._ReadEventResult.ValueType # 5 + class ReadEventResult(_ReadEventResult, metaclass=_ReadEventResultEnumTypeWrapper): + pass + + Success: ReadEventCompleted.ReadEventResult.ValueType # 0 + NotFound: ReadEventCompleted.ReadEventResult.ValueType # 1 + NoStream: ReadEventCompleted.ReadEventResult.ValueType # 2 + StreamDeleted: ReadEventCompleted.ReadEventResult.ValueType # 3 + Error: ReadEventCompleted.ReadEventResult.ValueType # 4 + AccessDenied: ReadEventCompleted.ReadEventResult.ValueType # 5 + + RESULT_FIELD_NUMBER: builtins.int + EVENT_FIELD_NUMBER: builtins.int + ERROR_FIELD_NUMBER: builtins.int + result: global___ReadEventCompleted.ReadEventResult.ValueType + @property + def event(self) -> global___ResolvedIndexedEvent: ... + error: typing.Text + def __init__(self, + *, + result: global___ReadEventCompleted.ReadEventResult.ValueType = ..., + event: typing.Optional[global___ResolvedIndexedEvent] = ..., + error: typing.Text = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["event",b"event"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["error",b"error","event",b"event","result",b"result"]) -> None: ... +global___ReadEventCompleted = ReadEventCompleted + +class ReadStreamEvents(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + EVENT_STREAM_ID_FIELD_NUMBER: builtins.int + FROM_EVENT_NUMBER_FIELD_NUMBER: builtins.int + MAX_COUNT_FIELD_NUMBER: builtins.int + RESOLVE_LINK_TOS_FIELD_NUMBER: builtins.int + REQUIRE_LEADER_FIELD_NUMBER: builtins.int + event_stream_id: typing.Text + from_event_number: builtins.int + max_count: builtins.int + resolve_link_tos: builtins.bool + require_leader: builtins.bool + def __init__(self, + *, + event_stream_id: typing.Text = ..., + from_event_number: builtins.int = ..., + max_count: builtins.int = ..., + resolve_link_tos: builtins.bool = ..., + require_leader: builtins.bool = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["event_stream_id",b"event_stream_id","from_event_number",b"from_event_number","max_count",b"max_count","require_leader",b"require_leader","resolve_link_tos",b"resolve_link_tos"]) -> None: ... +global___ReadStreamEvents = ReadStreamEvents + +class ReadStreamEventsCompleted(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + class _ReadStreamResult: + ValueType = typing.NewType('ValueType', builtins.int) + V: typing_extensions.TypeAlias = ValueType + class _ReadStreamResultEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[ReadStreamEventsCompleted._ReadStreamResult.ValueType], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor + Success: ReadStreamEventsCompleted._ReadStreamResult.ValueType # 0 + NoStream: ReadStreamEventsCompleted._ReadStreamResult.ValueType # 1 + StreamDeleted: ReadStreamEventsCompleted._ReadStreamResult.ValueType # 2 + NotModified: ReadStreamEventsCompleted._ReadStreamResult.ValueType # 3 + Error: ReadStreamEventsCompleted._ReadStreamResult.ValueType # 4 + AccessDenied: ReadStreamEventsCompleted._ReadStreamResult.ValueType # 5 + class ReadStreamResult(_ReadStreamResult, metaclass=_ReadStreamResultEnumTypeWrapper): + pass + + Success: ReadStreamEventsCompleted.ReadStreamResult.ValueType # 0 + NoStream: ReadStreamEventsCompleted.ReadStreamResult.ValueType # 1 + StreamDeleted: ReadStreamEventsCompleted.ReadStreamResult.ValueType # 2 + NotModified: ReadStreamEventsCompleted.ReadStreamResult.ValueType # 3 + Error: ReadStreamEventsCompleted.ReadStreamResult.ValueType # 4 + AccessDenied: ReadStreamEventsCompleted.ReadStreamResult.ValueType # 5 + + EVENTS_FIELD_NUMBER: builtins.int + RESULT_FIELD_NUMBER: builtins.int + NEXT_EVENT_NUMBER_FIELD_NUMBER: builtins.int + LAST_EVENT_NUMBER_FIELD_NUMBER: builtins.int + IS_END_OF_STREAM_FIELD_NUMBER: builtins.int + LAST_COMMIT_POSITION_FIELD_NUMBER: builtins.int + ERROR_FIELD_NUMBER: builtins.int + @property + def events(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ResolvedIndexedEvent]: ... + result: global___ReadStreamEventsCompleted.ReadStreamResult.ValueType + next_event_number: builtins.int + last_event_number: builtins.int + is_end_of_stream: builtins.bool + last_commit_position: builtins.int + error: typing.Text + def __init__(self, + *, + events: typing.Optional[typing.Iterable[global___ResolvedIndexedEvent]] = ..., + result: global___ReadStreamEventsCompleted.ReadStreamResult.ValueType = ..., + next_event_number: builtins.int = ..., + last_event_number: builtins.int = ..., + is_end_of_stream: builtins.bool = ..., + last_commit_position: builtins.int = ..., + error: typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["error",b"error","events",b"events","is_end_of_stream",b"is_end_of_stream","last_commit_position",b"last_commit_position","last_event_number",b"last_event_number","next_event_number",b"next_event_number","result",b"result"]) -> None: ... +global___ReadStreamEventsCompleted = ReadStreamEventsCompleted + +class ReadAllEvents(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + COMMIT_POSITION_FIELD_NUMBER: builtins.int + PREPARE_POSITION_FIELD_NUMBER: builtins.int + MAX_COUNT_FIELD_NUMBER: builtins.int + RESOLVE_LINK_TOS_FIELD_NUMBER: builtins.int + REQUIRE_LEADER_FIELD_NUMBER: builtins.int + commit_position: builtins.int + prepare_position: builtins.int + max_count: builtins.int + resolve_link_tos: builtins.bool + require_leader: builtins.bool + def __init__(self, + *, + commit_position: builtins.int = ..., + prepare_position: builtins.int = ..., + max_count: builtins.int = ..., + resolve_link_tos: builtins.bool = ..., + require_leader: builtins.bool = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["commit_position",b"commit_position","max_count",b"max_count","prepare_position",b"prepare_position","require_leader",b"require_leader","resolve_link_tos",b"resolve_link_tos"]) -> None: ... +global___ReadAllEvents = ReadAllEvents + +class ReadAllEventsCompleted(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + class _ReadAllResult: + ValueType = typing.NewType('ValueType', builtins.int) + V: typing_extensions.TypeAlias = ValueType + class _ReadAllResultEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[ReadAllEventsCompleted._ReadAllResult.ValueType], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor + Success: ReadAllEventsCompleted._ReadAllResult.ValueType # 0 + NotModified: ReadAllEventsCompleted._ReadAllResult.ValueType # 1 + Error: ReadAllEventsCompleted._ReadAllResult.ValueType # 2 + AccessDenied: ReadAllEventsCompleted._ReadAllResult.ValueType # 3 + class ReadAllResult(_ReadAllResult, metaclass=_ReadAllResultEnumTypeWrapper): + pass + + Success: ReadAllEventsCompleted.ReadAllResult.ValueType # 0 + NotModified: ReadAllEventsCompleted.ReadAllResult.ValueType # 1 + Error: ReadAllEventsCompleted.ReadAllResult.ValueType # 2 + AccessDenied: ReadAllEventsCompleted.ReadAllResult.ValueType # 3 + + COMMIT_POSITION_FIELD_NUMBER: builtins.int + PREPARE_POSITION_FIELD_NUMBER: builtins.int + EVENTS_FIELD_NUMBER: builtins.int + NEXT_COMMIT_POSITION_FIELD_NUMBER: builtins.int + NEXT_PREPARE_POSITION_FIELD_NUMBER: builtins.int + RESULT_FIELD_NUMBER: builtins.int + ERROR_FIELD_NUMBER: builtins.int + commit_position: builtins.int + prepare_position: builtins.int + @property + def events(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ResolvedEvent]: ... + next_commit_position: builtins.int + next_prepare_position: builtins.int + result: global___ReadAllEventsCompleted.ReadAllResult.ValueType + error: typing.Text + def __init__(self, + *, + commit_position: builtins.int = ..., + prepare_position: builtins.int = ..., + events: typing.Optional[typing.Iterable[global___ResolvedEvent]] = ..., + next_commit_position: builtins.int = ..., + next_prepare_position: builtins.int = ..., + result: global___ReadAllEventsCompleted.ReadAllResult.ValueType = ..., + error: typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["commit_position",b"commit_position","error",b"error","events",b"events","next_commit_position",b"next_commit_position","next_prepare_position",b"next_prepare_position","prepare_position",b"prepare_position","result",b"result"]) -> None: ... +global___ReadAllEventsCompleted = ReadAllEventsCompleted + +class Filter(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + class _FilterContext: + ValueType = typing.NewType('ValueType', builtins.int) + V: typing_extensions.TypeAlias = ValueType + class _FilterContextEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[Filter._FilterContext.ValueType], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor + StreamId: Filter._FilterContext.ValueType # 0 + EventType: Filter._FilterContext.ValueType # 1 + class FilterContext(_FilterContext, metaclass=_FilterContextEnumTypeWrapper): + pass + + StreamId: Filter.FilterContext.ValueType # 0 + EventType: Filter.FilterContext.ValueType # 1 + + class _FilterType: + ValueType = typing.NewType('ValueType', builtins.int) + V: typing_extensions.TypeAlias = ValueType + class _FilterTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[Filter._FilterType.ValueType], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor + Regex: Filter._FilterType.ValueType # 0 + Prefix: Filter._FilterType.ValueType # 1 + class FilterType(_FilterType, metaclass=_FilterTypeEnumTypeWrapper): + pass + + Regex: Filter.FilterType.ValueType # 0 + Prefix: Filter.FilterType.ValueType # 1 + + CONTEXT_FIELD_NUMBER: builtins.int + TYPE_FIELD_NUMBER: builtins.int + DATA_FIELD_NUMBER: builtins.int + context: global___Filter.FilterContext.ValueType + type: global___Filter.FilterType.ValueType + @property + def data(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[typing.Text]: ... + def __init__(self, + *, + context: global___Filter.FilterContext.ValueType = ..., + type: global___Filter.FilterType.ValueType = ..., + data: typing.Optional[typing.Iterable[typing.Text]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["context",b"context","data",b"data","type",b"type"]) -> None: ... +global___Filter = Filter + +class FilteredReadAllEvents(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + COMMIT_POSITION_FIELD_NUMBER: builtins.int + PREPARE_POSITION_FIELD_NUMBER: builtins.int + MAX_COUNT_FIELD_NUMBER: builtins.int + MAX_SEARCH_WINDOW_FIELD_NUMBER: builtins.int + RESOLVE_LINK_TOS_FIELD_NUMBER: builtins.int + REQUIRE_LEADER_FIELD_NUMBER: builtins.int + FILTER_FIELD_NUMBER: builtins.int + commit_position: builtins.int + prepare_position: builtins.int + max_count: builtins.int + max_search_window: builtins.int + resolve_link_tos: builtins.bool + require_leader: builtins.bool + @property + def filter(self) -> global___Filter: ... + def __init__(self, + *, + commit_position: builtins.int = ..., + prepare_position: builtins.int = ..., + max_count: builtins.int = ..., + max_search_window: builtins.int = ..., + resolve_link_tos: builtins.bool = ..., + require_leader: builtins.bool = ..., + filter: typing.Optional[global___Filter] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["filter",b"filter"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["commit_position",b"commit_position","filter",b"filter","max_count",b"max_count","max_search_window",b"max_search_window","prepare_position",b"prepare_position","require_leader",b"require_leader","resolve_link_tos",b"resolve_link_tos"]) -> None: ... +global___FilteredReadAllEvents = FilteredReadAllEvents + +class FilteredReadAllEventsCompleted(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + class _FilteredReadAllResult: + ValueType = typing.NewType('ValueType', builtins.int) + V: typing_extensions.TypeAlias = ValueType + class _FilteredReadAllResultEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[FilteredReadAllEventsCompleted._FilteredReadAllResult.ValueType], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor + Success: FilteredReadAllEventsCompleted._FilteredReadAllResult.ValueType # 0 + NotModified: FilteredReadAllEventsCompleted._FilteredReadAllResult.ValueType # 1 + Error: FilteredReadAllEventsCompleted._FilteredReadAllResult.ValueType # 2 + AccessDenied: FilteredReadAllEventsCompleted._FilteredReadAllResult.ValueType # 3 + class FilteredReadAllResult(_FilteredReadAllResult, metaclass=_FilteredReadAllResultEnumTypeWrapper): + pass + + Success: FilteredReadAllEventsCompleted.FilteredReadAllResult.ValueType # 0 + NotModified: FilteredReadAllEventsCompleted.FilteredReadAllResult.ValueType # 1 + Error: FilteredReadAllEventsCompleted.FilteredReadAllResult.ValueType # 2 + AccessDenied: FilteredReadAllEventsCompleted.FilteredReadAllResult.ValueType # 3 + + COMMIT_POSITION_FIELD_NUMBER: builtins.int + PREPARE_POSITION_FIELD_NUMBER: builtins.int + EVENTS_FIELD_NUMBER: builtins.int + NEXT_COMMIT_POSITION_FIELD_NUMBER: builtins.int + NEXT_PREPARE_POSITION_FIELD_NUMBER: builtins.int + IS_END_OF_STREAM_FIELD_NUMBER: builtins.int + RESULT_FIELD_NUMBER: builtins.int + ERROR_FIELD_NUMBER: builtins.int + commit_position: builtins.int + prepare_position: builtins.int + @property + def events(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ResolvedEvent]: ... + next_commit_position: builtins.int + next_prepare_position: builtins.int + is_end_of_stream: builtins.bool + result: global___FilteredReadAllEventsCompleted.FilteredReadAllResult.ValueType + error: typing.Text + def __init__(self, + *, + commit_position: builtins.int = ..., + prepare_position: builtins.int = ..., + events: typing.Optional[typing.Iterable[global___ResolvedEvent]] = ..., + next_commit_position: builtins.int = ..., + next_prepare_position: builtins.int = ..., + is_end_of_stream: builtins.bool = ..., + result: global___FilteredReadAllEventsCompleted.FilteredReadAllResult.ValueType = ..., + error: typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["commit_position",b"commit_position","error",b"error","events",b"events","is_end_of_stream",b"is_end_of_stream","next_commit_position",b"next_commit_position","next_prepare_position",b"next_prepare_position","prepare_position",b"prepare_position","result",b"result"]) -> None: ... +global___FilteredReadAllEventsCompleted = FilteredReadAllEventsCompleted + +class CreatePersistentSubscription(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + SUBSCRIPTION_GROUP_NAME_FIELD_NUMBER: builtins.int + EVENT_STREAM_ID_FIELD_NUMBER: builtins.int + RESOLVE_LINK_TOS_FIELD_NUMBER: builtins.int + START_FROM_FIELD_NUMBER: builtins.int + MESSAGE_TIMEOUT_MILLISECONDS_FIELD_NUMBER: builtins.int + RECORD_STATISTICS_FIELD_NUMBER: builtins.int + LIVE_BUFFER_SIZE_FIELD_NUMBER: builtins.int + READ_BATCH_SIZE_FIELD_NUMBER: builtins.int + BUFFER_SIZE_FIELD_NUMBER: builtins.int + MAX_RETRY_COUNT_FIELD_NUMBER: builtins.int + PREFER_ROUND_ROBIN_FIELD_NUMBER: builtins.int + CHECKPOINT_AFTER_TIME_FIELD_NUMBER: builtins.int + CHECKPOINT_MAX_COUNT_FIELD_NUMBER: builtins.int + CHECKPOINT_MIN_COUNT_FIELD_NUMBER: builtins.int + SUBSCRIBER_MAX_COUNT_FIELD_NUMBER: builtins.int + NAMED_CONSUMER_STRATEGY_FIELD_NUMBER: builtins.int + subscription_group_name: typing.Text + event_stream_id: typing.Text + resolve_link_tos: builtins.bool + start_from: builtins.int + message_timeout_milliseconds: builtins.int + record_statistics: builtins.bool + live_buffer_size: builtins.int + read_batch_size: builtins.int + buffer_size: builtins.int + max_retry_count: builtins.int + prefer_round_robin: builtins.bool + checkpoint_after_time: builtins.int + checkpoint_max_count: builtins.int + checkpoint_min_count: builtins.int + subscriber_max_count: builtins.int + named_consumer_strategy: typing.Text + def __init__(self, + *, + subscription_group_name: typing.Text = ..., + event_stream_id: typing.Text = ..., + resolve_link_tos: builtins.bool = ..., + start_from: builtins.int = ..., + message_timeout_milliseconds: builtins.int = ..., + record_statistics: builtins.bool = ..., + live_buffer_size: builtins.int = ..., + read_batch_size: builtins.int = ..., + buffer_size: builtins.int = ..., + max_retry_count: builtins.int = ..., + prefer_round_robin: builtins.bool = ..., + checkpoint_after_time: builtins.int = ..., + checkpoint_max_count: builtins.int = ..., + checkpoint_min_count: builtins.int = ..., + subscriber_max_count: builtins.int = ..., + named_consumer_strategy: typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["buffer_size",b"buffer_size","checkpoint_after_time",b"checkpoint_after_time","checkpoint_max_count",b"checkpoint_max_count","checkpoint_min_count",b"checkpoint_min_count","event_stream_id",b"event_stream_id","live_buffer_size",b"live_buffer_size","max_retry_count",b"max_retry_count","message_timeout_milliseconds",b"message_timeout_milliseconds","named_consumer_strategy",b"named_consumer_strategy","prefer_round_robin",b"prefer_round_robin","read_batch_size",b"read_batch_size","record_statistics",b"record_statistics","resolve_link_tos",b"resolve_link_tos","start_from",b"start_from","subscriber_max_count",b"subscriber_max_count","subscription_group_name",b"subscription_group_name"]) -> None: ... +global___CreatePersistentSubscription = CreatePersistentSubscription + +class DeletePersistentSubscription(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + SUBSCRIPTION_GROUP_NAME_FIELD_NUMBER: builtins.int + EVENT_STREAM_ID_FIELD_NUMBER: builtins.int + subscription_group_name: typing.Text + event_stream_id: typing.Text + def __init__(self, + *, + subscription_group_name: typing.Text = ..., + event_stream_id: typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["event_stream_id",b"event_stream_id","subscription_group_name",b"subscription_group_name"]) -> None: ... +global___DeletePersistentSubscription = DeletePersistentSubscription + +class UpdatePersistentSubscription(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + SUBSCRIPTION_GROUP_NAME_FIELD_NUMBER: builtins.int + EVENT_STREAM_ID_FIELD_NUMBER: builtins.int + RESOLVE_LINK_TOS_FIELD_NUMBER: builtins.int + START_FROM_FIELD_NUMBER: builtins.int + MESSAGE_TIMEOUT_MILLISECONDS_FIELD_NUMBER: builtins.int + RECORD_STATISTICS_FIELD_NUMBER: builtins.int + LIVE_BUFFER_SIZE_FIELD_NUMBER: builtins.int + READ_BATCH_SIZE_FIELD_NUMBER: builtins.int + BUFFER_SIZE_FIELD_NUMBER: builtins.int + MAX_RETRY_COUNT_FIELD_NUMBER: builtins.int + PREFER_ROUND_ROBIN_FIELD_NUMBER: builtins.int + CHECKPOINT_AFTER_TIME_FIELD_NUMBER: builtins.int + CHECKPOINT_MAX_COUNT_FIELD_NUMBER: builtins.int + CHECKPOINT_MIN_COUNT_FIELD_NUMBER: builtins.int + SUBSCRIBER_MAX_COUNT_FIELD_NUMBER: builtins.int + NAMED_CONSUMER_STRATEGY_FIELD_NUMBER: builtins.int + subscription_group_name: typing.Text + event_stream_id: typing.Text + resolve_link_tos: builtins.bool + start_from: builtins.int + message_timeout_milliseconds: builtins.int + record_statistics: builtins.bool + live_buffer_size: builtins.int + read_batch_size: builtins.int + buffer_size: builtins.int + max_retry_count: builtins.int + prefer_round_robin: builtins.bool + checkpoint_after_time: builtins.int + checkpoint_max_count: builtins.int + checkpoint_min_count: builtins.int + subscriber_max_count: builtins.int + named_consumer_strategy: typing.Text + def __init__(self, + *, + subscription_group_name: typing.Text = ..., + event_stream_id: typing.Text = ..., + resolve_link_tos: builtins.bool = ..., + start_from: builtins.int = ..., + message_timeout_milliseconds: builtins.int = ..., + record_statistics: builtins.bool = ..., + live_buffer_size: builtins.int = ..., + read_batch_size: builtins.int = ..., + buffer_size: builtins.int = ..., + max_retry_count: builtins.int = ..., + prefer_round_robin: builtins.bool = ..., + checkpoint_after_time: builtins.int = ..., + checkpoint_max_count: builtins.int = ..., + checkpoint_min_count: builtins.int = ..., + subscriber_max_count: builtins.int = ..., + named_consumer_strategy: typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["buffer_size",b"buffer_size","checkpoint_after_time",b"checkpoint_after_time","checkpoint_max_count",b"checkpoint_max_count","checkpoint_min_count",b"checkpoint_min_count","event_stream_id",b"event_stream_id","live_buffer_size",b"live_buffer_size","max_retry_count",b"max_retry_count","message_timeout_milliseconds",b"message_timeout_milliseconds","named_consumer_strategy",b"named_consumer_strategy","prefer_round_robin",b"prefer_round_robin","read_batch_size",b"read_batch_size","record_statistics",b"record_statistics","resolve_link_tos",b"resolve_link_tos","start_from",b"start_from","subscriber_max_count",b"subscriber_max_count","subscription_group_name",b"subscription_group_name"]) -> None: ... +global___UpdatePersistentSubscription = UpdatePersistentSubscription + +class UpdatePersistentSubscriptionCompleted(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + class _UpdatePersistentSubscriptionResult: + ValueType = typing.NewType('ValueType', builtins.int) + V: typing_extensions.TypeAlias = ValueType + class _UpdatePersistentSubscriptionResultEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[UpdatePersistentSubscriptionCompleted._UpdatePersistentSubscriptionResult.ValueType], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor + Success: UpdatePersistentSubscriptionCompleted._UpdatePersistentSubscriptionResult.ValueType # 0 + DoesNotExist: UpdatePersistentSubscriptionCompleted._UpdatePersistentSubscriptionResult.ValueType # 1 + Fail: UpdatePersistentSubscriptionCompleted._UpdatePersistentSubscriptionResult.ValueType # 2 + AccessDenied: UpdatePersistentSubscriptionCompleted._UpdatePersistentSubscriptionResult.ValueType # 3 + class UpdatePersistentSubscriptionResult(_UpdatePersistentSubscriptionResult, metaclass=_UpdatePersistentSubscriptionResultEnumTypeWrapper): + pass + + Success: UpdatePersistentSubscriptionCompleted.UpdatePersistentSubscriptionResult.ValueType # 0 + DoesNotExist: UpdatePersistentSubscriptionCompleted.UpdatePersistentSubscriptionResult.ValueType # 1 + Fail: UpdatePersistentSubscriptionCompleted.UpdatePersistentSubscriptionResult.ValueType # 2 + AccessDenied: UpdatePersistentSubscriptionCompleted.UpdatePersistentSubscriptionResult.ValueType # 3 + + RESULT_FIELD_NUMBER: builtins.int + REASON_FIELD_NUMBER: builtins.int + result: global___UpdatePersistentSubscriptionCompleted.UpdatePersistentSubscriptionResult.ValueType + reason: typing.Text + def __init__(self, + *, + result: global___UpdatePersistentSubscriptionCompleted.UpdatePersistentSubscriptionResult.ValueType = ..., + reason: typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["reason",b"reason","result",b"result"]) -> None: ... +global___UpdatePersistentSubscriptionCompleted = UpdatePersistentSubscriptionCompleted + +class CreatePersistentSubscriptionCompleted(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + class _CreatePersistentSubscriptionResult: + ValueType = typing.NewType('ValueType', builtins.int) + V: typing_extensions.TypeAlias = ValueType + class _CreatePersistentSubscriptionResultEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[CreatePersistentSubscriptionCompleted._CreatePersistentSubscriptionResult.ValueType], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor + Success: CreatePersistentSubscriptionCompleted._CreatePersistentSubscriptionResult.ValueType # 0 + AlreadyExists: CreatePersistentSubscriptionCompleted._CreatePersistentSubscriptionResult.ValueType # 1 + Fail: CreatePersistentSubscriptionCompleted._CreatePersistentSubscriptionResult.ValueType # 2 + AccessDenied: CreatePersistentSubscriptionCompleted._CreatePersistentSubscriptionResult.ValueType # 3 + class CreatePersistentSubscriptionResult(_CreatePersistentSubscriptionResult, metaclass=_CreatePersistentSubscriptionResultEnumTypeWrapper): + pass + + Success: CreatePersistentSubscriptionCompleted.CreatePersistentSubscriptionResult.ValueType # 0 + AlreadyExists: CreatePersistentSubscriptionCompleted.CreatePersistentSubscriptionResult.ValueType # 1 + Fail: CreatePersistentSubscriptionCompleted.CreatePersistentSubscriptionResult.ValueType # 2 + AccessDenied: CreatePersistentSubscriptionCompleted.CreatePersistentSubscriptionResult.ValueType # 3 + + RESULT_FIELD_NUMBER: builtins.int + REASON_FIELD_NUMBER: builtins.int + result: global___CreatePersistentSubscriptionCompleted.CreatePersistentSubscriptionResult.ValueType + reason: typing.Text + def __init__(self, + *, + result: global___CreatePersistentSubscriptionCompleted.CreatePersistentSubscriptionResult.ValueType = ..., + reason: typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["reason",b"reason","result",b"result"]) -> None: ... +global___CreatePersistentSubscriptionCompleted = CreatePersistentSubscriptionCompleted + +class DeletePersistentSubscriptionCompleted(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + class _DeletePersistentSubscriptionResult: + ValueType = typing.NewType('ValueType', builtins.int) + V: typing_extensions.TypeAlias = ValueType + class _DeletePersistentSubscriptionResultEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[DeletePersistentSubscriptionCompleted._DeletePersistentSubscriptionResult.ValueType], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor + Success: DeletePersistentSubscriptionCompleted._DeletePersistentSubscriptionResult.ValueType # 0 + DoesNotExist: DeletePersistentSubscriptionCompleted._DeletePersistentSubscriptionResult.ValueType # 1 + Fail: DeletePersistentSubscriptionCompleted._DeletePersistentSubscriptionResult.ValueType # 2 + AccessDenied: DeletePersistentSubscriptionCompleted._DeletePersistentSubscriptionResult.ValueType # 3 + class DeletePersistentSubscriptionResult(_DeletePersistentSubscriptionResult, metaclass=_DeletePersistentSubscriptionResultEnumTypeWrapper): + pass + + Success: DeletePersistentSubscriptionCompleted.DeletePersistentSubscriptionResult.ValueType # 0 + DoesNotExist: DeletePersistentSubscriptionCompleted.DeletePersistentSubscriptionResult.ValueType # 1 + Fail: DeletePersistentSubscriptionCompleted.DeletePersistentSubscriptionResult.ValueType # 2 + AccessDenied: DeletePersistentSubscriptionCompleted.DeletePersistentSubscriptionResult.ValueType # 3 + + RESULT_FIELD_NUMBER: builtins.int + REASON_FIELD_NUMBER: builtins.int + result: global___DeletePersistentSubscriptionCompleted.DeletePersistentSubscriptionResult.ValueType + reason: typing.Text + def __init__(self, + *, + result: global___DeletePersistentSubscriptionCompleted.DeletePersistentSubscriptionResult.ValueType = ..., + reason: typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["reason",b"reason","result",b"result"]) -> None: ... +global___DeletePersistentSubscriptionCompleted = DeletePersistentSubscriptionCompleted + +class ConnectToPersistentSubscription(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + SUBSCRIPTION_ID_FIELD_NUMBER: builtins.int + EVENT_STREAM_ID_FIELD_NUMBER: builtins.int + ALLOWED_IN_FLIGHT_MESSAGES_FIELD_NUMBER: builtins.int + subscription_id: typing.Text + event_stream_id: typing.Text + allowed_in_flight_messages: builtins.int + def __init__(self, + *, + subscription_id: typing.Text = ..., + event_stream_id: typing.Text = ..., + allowed_in_flight_messages: builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["allowed_in_flight_messages",b"allowed_in_flight_messages","event_stream_id",b"event_stream_id","subscription_id",b"subscription_id"]) -> None: ... +global___ConnectToPersistentSubscription = ConnectToPersistentSubscription + +class PersistentSubscriptionAckEvents(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + SUBSCRIPTION_ID_FIELD_NUMBER: builtins.int + PROCESSED_EVENT_IDS_FIELD_NUMBER: builtins.int + subscription_id: typing.Text + @property + def processed_event_ids(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.bytes]: ... + def __init__(self, + *, + subscription_id: typing.Text = ..., + processed_event_ids: typing.Optional[typing.Iterable[builtins.bytes]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["processed_event_ids",b"processed_event_ids","subscription_id",b"subscription_id"]) -> None: ... +global___PersistentSubscriptionAckEvents = PersistentSubscriptionAckEvents + +class PersistentSubscriptionNakEvents(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + class _NakAction: + ValueType = typing.NewType('ValueType', builtins.int) + V: typing_extensions.TypeAlias = ValueType + class _NakActionEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[PersistentSubscriptionNakEvents._NakAction.ValueType], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor + Unknown: PersistentSubscriptionNakEvents._NakAction.ValueType # 0 + Park: PersistentSubscriptionNakEvents._NakAction.ValueType # 1 + Retry: PersistentSubscriptionNakEvents._NakAction.ValueType # 2 + Skip: PersistentSubscriptionNakEvents._NakAction.ValueType # 3 + Stop: PersistentSubscriptionNakEvents._NakAction.ValueType # 4 + class NakAction(_NakAction, metaclass=_NakActionEnumTypeWrapper): + pass + + Unknown: PersistentSubscriptionNakEvents.NakAction.ValueType # 0 + Park: PersistentSubscriptionNakEvents.NakAction.ValueType # 1 + Retry: PersistentSubscriptionNakEvents.NakAction.ValueType # 2 + Skip: PersistentSubscriptionNakEvents.NakAction.ValueType # 3 + Stop: PersistentSubscriptionNakEvents.NakAction.ValueType # 4 + + SUBSCRIPTION_ID_FIELD_NUMBER: builtins.int + PROCESSED_EVENT_IDS_FIELD_NUMBER: builtins.int + MESSAGE_FIELD_NUMBER: builtins.int + ACTION_FIELD_NUMBER: builtins.int + subscription_id: typing.Text + @property + def processed_event_ids(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.bytes]: ... + message: typing.Text + action: global___PersistentSubscriptionNakEvents.NakAction.ValueType + def __init__(self, + *, + subscription_id: typing.Text = ..., + processed_event_ids: typing.Optional[typing.Iterable[builtins.bytes]] = ..., + message: typing.Text = ..., + action: global___PersistentSubscriptionNakEvents.NakAction.ValueType = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["action",b"action","message",b"message","processed_event_ids",b"processed_event_ids","subscription_id",b"subscription_id"]) -> None: ... +global___PersistentSubscriptionNakEvents = PersistentSubscriptionNakEvents + +class PersistentSubscriptionConfirmation(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + LAST_COMMIT_POSITION_FIELD_NUMBER: builtins.int + SUBSCRIPTION_ID_FIELD_NUMBER: builtins.int + LAST_EVENT_NUMBER_FIELD_NUMBER: builtins.int + last_commit_position: builtins.int + subscription_id: typing.Text + last_event_number: builtins.int + def __init__(self, + *, + last_commit_position: builtins.int = ..., + subscription_id: typing.Text = ..., + last_event_number: builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["last_commit_position",b"last_commit_position","last_event_number",b"last_event_number","subscription_id",b"subscription_id"]) -> None: ... +global___PersistentSubscriptionConfirmation = PersistentSubscriptionConfirmation + +class PersistentSubscriptionStreamEventAppeared(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + EVENT_FIELD_NUMBER: builtins.int + RETRYCOUNT_FIELD_NUMBER: builtins.int + @property + def event(self) -> global___ResolvedIndexedEvent: ... + retryCount: builtins.int + def __init__(self, + *, + event: typing.Optional[global___ResolvedIndexedEvent] = ..., + retryCount: builtins.int = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["event",b"event"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["event",b"event","retryCount",b"retryCount"]) -> None: ... +global___PersistentSubscriptionStreamEventAppeared = PersistentSubscriptionStreamEventAppeared + +class SubscribeToStream(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + EVENT_STREAM_ID_FIELD_NUMBER: builtins.int + RESOLVE_LINK_TOS_FIELD_NUMBER: builtins.int + event_stream_id: typing.Text + resolve_link_tos: builtins.bool + def __init__(self, + *, + event_stream_id: typing.Text = ..., + resolve_link_tos: builtins.bool = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["event_stream_id",b"event_stream_id","resolve_link_tos",b"resolve_link_tos"]) -> None: ... +global___SubscribeToStream = SubscribeToStream + +class FilteredSubscribeToStream(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + EVENT_STREAM_ID_FIELD_NUMBER: builtins.int + RESOLVE_LINK_TOS_FIELD_NUMBER: builtins.int + FILTER_FIELD_NUMBER: builtins.int + CHECKPOINT_INTERVAL_FIELD_NUMBER: builtins.int + event_stream_id: typing.Text + resolve_link_tos: builtins.bool + @property + def filter(self) -> global___Filter: ... + checkpoint_interval: builtins.int + def __init__(self, + *, + event_stream_id: typing.Text = ..., + resolve_link_tos: builtins.bool = ..., + filter: typing.Optional[global___Filter] = ..., + checkpoint_interval: builtins.int = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["filter",b"filter"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["checkpoint_interval",b"checkpoint_interval","event_stream_id",b"event_stream_id","filter",b"filter","resolve_link_tos",b"resolve_link_tos"]) -> None: ... +global___FilteredSubscribeToStream = FilteredSubscribeToStream + +class CheckpointReached(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + COMMIT_POSITION_FIELD_NUMBER: builtins.int + PREPARE_POSITION_FIELD_NUMBER: builtins.int + commit_position: builtins.int + prepare_position: builtins.int + def __init__(self, + *, + 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: ... +global___CheckpointReached = CheckpointReached + +class SubscriptionConfirmation(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + LAST_COMMIT_POSITION_FIELD_NUMBER: builtins.int + LAST_EVENT_NUMBER_FIELD_NUMBER: builtins.int + last_commit_position: builtins.int + last_event_number: builtins.int + def __init__(self, + *, + last_commit_position: builtins.int = ..., + last_event_number: builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["last_commit_position",b"last_commit_position","last_event_number",b"last_event_number"]) -> None: ... +global___SubscriptionConfirmation = SubscriptionConfirmation + +class StreamEventAppeared(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + EVENT_FIELD_NUMBER: builtins.int + @property + def event(self) -> global___ResolvedEvent: ... + def __init__(self, + *, + event: typing.Optional[global___ResolvedEvent] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["event",b"event"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["event",b"event"]) -> None: ... +global___StreamEventAppeared = StreamEventAppeared + +class UnsubscribeFromStream(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + def __init__(self, + ) -> None: ... +global___UnsubscribeFromStream = UnsubscribeFromStream + +class SubscriptionDropped(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + class _SubscriptionDropReason: + ValueType = typing.NewType('ValueType', builtins.int) + V: typing_extensions.TypeAlias = ValueType + class _SubscriptionDropReasonEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[SubscriptionDropped._SubscriptionDropReason.ValueType], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor + Unsubscribed: SubscriptionDropped._SubscriptionDropReason.ValueType # 0 + AccessDenied: SubscriptionDropped._SubscriptionDropReason.ValueType # 1 + NotFound: SubscriptionDropped._SubscriptionDropReason.ValueType # 2 + PersistentSubscriptionDeleted: SubscriptionDropped._SubscriptionDropReason.ValueType # 3 + SubscriberMaxCountReached: SubscriptionDropped._SubscriptionDropReason.ValueType # 4 + class SubscriptionDropReason(_SubscriptionDropReason, metaclass=_SubscriptionDropReasonEnumTypeWrapper): + pass + + Unsubscribed: SubscriptionDropped.SubscriptionDropReason.ValueType # 0 + AccessDenied: SubscriptionDropped.SubscriptionDropReason.ValueType # 1 + NotFound: SubscriptionDropped.SubscriptionDropReason.ValueType # 2 + PersistentSubscriptionDeleted: SubscriptionDropped.SubscriptionDropReason.ValueType # 3 + SubscriberMaxCountReached: SubscriptionDropped.SubscriptionDropReason.ValueType # 4 + + REASON_FIELD_NUMBER: builtins.int + reason: global___SubscriptionDropped.SubscriptionDropReason.ValueType + def __init__(self, + *, + reason: global___SubscriptionDropped.SubscriptionDropReason.ValueType = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["reason",b"reason"]) -> None: ... +global___SubscriptionDropped = SubscriptionDropped + +class NotHandled(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + class _NotHandledReason: + ValueType = typing.NewType('ValueType', builtins.int) + V: typing_extensions.TypeAlias = ValueType + class _NotHandledReasonEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[NotHandled._NotHandledReason.ValueType], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor + NotReady: NotHandled._NotHandledReason.ValueType # 0 + TooBusy: NotHandled._NotHandledReason.ValueType # 1 + NotLeader: NotHandled._NotHandledReason.ValueType # 2 + IsReadOnly: NotHandled._NotHandledReason.ValueType # 3 + class NotHandledReason(_NotHandledReason, metaclass=_NotHandledReasonEnumTypeWrapper): + pass + + NotReady: NotHandled.NotHandledReason.ValueType # 0 + TooBusy: NotHandled.NotHandledReason.ValueType # 1 + NotLeader: NotHandled.NotHandledReason.ValueType # 2 + IsReadOnly: NotHandled.NotHandledReason.ValueType # 3 + + class LeaderInfo(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + EXTERNAL_TCP_ADDRESS_FIELD_NUMBER: builtins.int + EXTERNAL_TCP_PORT_FIELD_NUMBER: builtins.int + HTTP_ADDRESS_FIELD_NUMBER: builtins.int + HTTP_PORT_FIELD_NUMBER: builtins.int + EXTERNAL_SECURE_TCP_ADDRESS_FIELD_NUMBER: builtins.int + EXTERNAL_SECURE_TCP_PORT_FIELD_NUMBER: builtins.int + external_tcp_address: typing.Text + external_tcp_port: builtins.int + http_address: typing.Text + http_port: builtins.int + external_secure_tcp_address: typing.Text + external_secure_tcp_port: builtins.int + def __init__(self, + *, + external_tcp_address: typing.Text = ..., + external_tcp_port: builtins.int = ..., + http_address: typing.Text = ..., + http_port: builtins.int = ..., + external_secure_tcp_address: typing.Text = ..., + external_secure_tcp_port: builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["external_secure_tcp_address",b"external_secure_tcp_address","external_secure_tcp_port",b"external_secure_tcp_port","external_tcp_address",b"external_tcp_address","external_tcp_port",b"external_tcp_port","http_address",b"http_address","http_port",b"http_port"]) -> None: ... + + REASON_FIELD_NUMBER: builtins.int + ADDITIONAL_INFO_FIELD_NUMBER: builtins.int + reason: global___NotHandled.NotHandledReason.ValueType + additional_info: builtins.bytes + def __init__(self, + *, + reason: global___NotHandled.NotHandledReason.ValueType = ..., + additional_info: builtins.bytes = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["additional_info",b"additional_info","reason",b"reason"]) -> None: ... +global___NotHandled = NotHandled + +class ScavengeDatabase(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + def __init__(self, + ) -> None: ... +global___ScavengeDatabase = ScavengeDatabase + +class ScavengeDatabaseResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + class _ScavengeResult: + ValueType = typing.NewType('ValueType', builtins.int) + V: typing_extensions.TypeAlias = ValueType + class _ScavengeResultEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[ScavengeDatabaseResponse._ScavengeResult.ValueType], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor + Started: ScavengeDatabaseResponse._ScavengeResult.ValueType # 0 + InProgress: ScavengeDatabaseResponse._ScavengeResult.ValueType # 1 + Unauthorized: ScavengeDatabaseResponse._ScavengeResult.ValueType # 2 + class ScavengeResult(_ScavengeResult, metaclass=_ScavengeResultEnumTypeWrapper): + pass + + Started: ScavengeDatabaseResponse.ScavengeResult.ValueType # 0 + InProgress: ScavengeDatabaseResponse.ScavengeResult.ValueType # 1 + Unauthorized: ScavengeDatabaseResponse.ScavengeResult.ValueType # 2 + + RESULT_FIELD_NUMBER: builtins.int + SCAVENGEID_FIELD_NUMBER: builtins.int + result: global___ScavengeDatabaseResponse.ScavengeResult.ValueType + scavengeId: typing.Text + def __init__(self, + *, + result: global___ScavengeDatabaseResponse.ScavengeResult.ValueType = ..., + scavengeId: typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["result",b"result","scavengeId",b"scavengeId"]) -> None: ... +global___ScavengeDatabaseResponse = ScavengeDatabaseResponse + +class IdentifyClient(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + VERSION_FIELD_NUMBER: builtins.int + CONNECTION_NAME_FIELD_NUMBER: builtins.int + version: builtins.int + connection_name: typing.Text + def __init__(self, + *, + version: builtins.int = ..., + connection_name: typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["connection_name",b"connection_name","version",b"version"]) -> None: ... +global___IdentifyClient = IdentifyClient + +class ClientIdentified(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + def __init__(self, + ) -> None: ... +global___ClientIdentified = ClientIdentified diff --git a/photonpump/messages_pb2_grpc.py b/photonpump/messages_pb2_grpc.py new file mode 100644 index 0000000..2daafff --- /dev/null +++ b/photonpump/messages_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/proto/messages.proto b/proto/messages.proto index 2ad621f..18c7a1d 100644 --- a/proto/messages.proto +++ b/proto/messages.proto @@ -25,7 +25,7 @@ message NewEvent { message EventRecord { required string event_stream_id = 1; - required int32 event_number = 2; + required int64 event_number = 2; required bytes event_id = 3; required string event_type = 4; required int32 data_content_type = 5; @@ -50,24 +50,25 @@ message ResolvedEvent { message WriteEvents { required string event_stream_id = 1; - required int32 expected_version = 2; + required int64 expected_version = 2; repeated NewEvent events = 3; - required bool require_master = 4; + required bool require_leader = 4; } message WriteEventsCompleted { required OperationResult result = 1; optional string message = 2; - required int32 first_event_number = 3; - required int32 last_event_number = 4; + required int64 first_event_number = 3; + required int64 last_event_number = 4; optional int64 prepare_position = 5; optional int64 commit_position = 6; + optional int64 current_version = 7; } message DeleteStream { required string event_stream_id = 1; - required int32 expected_version = 2; - required bool require_master = 3; + required int64 expected_version = 2; + required bool require_leader = 3; optional bool hard_delete = 4; } @@ -80,8 +81,8 @@ message DeleteStreamCompleted { message TransactionStart { required string event_stream_id = 1; - required int32 expected_version = 2; - required bool require_master = 3; + required int64 expected_version = 2; + required bool require_leader = 3; } message TransactionStartCompleted { @@ -93,7 +94,7 @@ message TransactionStartCompleted { message TransactionWrite { required int64 transaction_id = 1; repeated NewEvent events = 2; - required bool require_master = 3; + required bool require_leader = 3; } message TransactionWriteCompleted { @@ -104,24 +105,24 @@ message TransactionWriteCompleted { message TransactionCommit { required int64 transaction_id = 1; - required bool require_master = 2; + required bool require_leader = 2; } message TransactionCommitCompleted { required int64 transaction_id = 1; required OperationResult result = 2; optional string message = 3; - required int32 first_event_number = 4; - required int32 last_event_number = 5; + required int64 first_event_number = 4; + required int64 last_event_number = 5; optional int64 prepare_position = 6; optional int64 commit_position = 7; } message ReadEvent { required string event_stream_id = 1; - required int32 event_number = 2; + required int64 event_number = 2; required bool resolve_link_tos = 3; - required bool require_master = 4; + required bool require_leader = 4; } message ReadEventCompleted { @@ -143,10 +144,10 @@ message ReadEventCompleted { message ReadStreamEvents { required string event_stream_id = 1; - required int32 from_event_number = 2; + required int64 from_event_number = 2; required int32 max_count = 3; required bool resolve_link_tos = 4; - required bool require_master = 5; + required bool require_leader = 5; } message ReadStreamEventsCompleted { @@ -162,8 +163,8 @@ message ReadStreamEventsCompleted { repeated ResolvedIndexedEvent events = 1; required ReadStreamResult result = 2; - required int32 next_event_number = 3; - required int32 last_event_number = 4; + required int64 next_event_number = 3; + required int64 last_event_number = 4; required bool is_end_of_stream = 5; required int64 last_commit_position = 6; @@ -175,7 +176,7 @@ message ReadAllEvents { required int64 prepare_position = 2; required int32 max_count = 3; required bool resolve_link_tos = 4; - required bool require_master = 5; + required bool require_leader = 5; } message ReadAllEventsCompleted { @@ -197,11 +198,59 @@ message ReadAllEventsCompleted { optional string error = 7; } +message Filter{ + + enum FilterContext { + StreamId = 0; + EventType = 1; + + } + + enum FilterType { + Regex = 0; + Prefix = 1; + } + + required FilterContext context = 1; + required FilterType type = 2; + repeated string data = 3; +} + +message FilteredReadAllEvents { + required int64 commit_position = 1; + required int64 prepare_position = 2; + required int32 max_count = 3; + optional int32 max_search_window = 4; + required bool resolve_link_tos = 5; + required bool require_leader = 6; + required Filter filter = 7; +} + +message FilteredReadAllEventsCompleted { + + enum FilteredReadAllResult { + Success = 0; + NotModified = 1; + Error = 2; + AccessDenied = 3; + } + + required int64 commit_position = 1; + required int64 prepare_position = 2; + repeated ResolvedEvent events = 3; + required int64 next_commit_position = 4; + required int64 next_prepare_position = 5; + required bool is_end_of_stream = 6; + + optional FilteredReadAllResult result = 7 [default = Success]; + optional string error = 8; +} + message CreatePersistentSubscription { required string subscription_group_name = 1; required string event_stream_id = 2; required bool resolve_link_tos = 3; - required int32 start_from = 4; + required int64 start_from = 4; required int32 message_timeout_milliseconds = 5; required bool record_statistics = 6; required int32 live_buffer_size = 7; @@ -225,7 +274,7 @@ message UpdatePersistentSubscription { required string subscription_group_name = 1; required string event_stream_id = 2; required bool resolve_link_tos = 3; - required int32 start_from = 4; + required int64 start_from = 4; required int32 message_timeout_milliseconds = 5; required bool record_statistics = 6; required int32 live_buffer_size = 7; @@ -303,11 +352,12 @@ message PersistentSubscriptionNakEvents { message PersistentSubscriptionConfirmation { required int64 last_commit_position = 1; required string subscription_id = 2; - optional int32 last_event_number = 3; + optional int64 last_event_number = 3; } message PersistentSubscriptionStreamEventAppeared { required ResolvedIndexedEvent event = 1; + optional int32 retryCount = 2; } message SubscribeToStream { @@ -315,9 +365,21 @@ message SubscribeToStream { required bool resolve_link_tos = 2; } +message FilteredSubscribeToStream { + required string event_stream_id = 1; + required bool resolve_link_tos = 2; + required Filter filter = 3; + required int32 checkpoint_interval = 4; +} + +message CheckpointReached { + required int64 commit_position = 1; + required int64 prepare_position = 2; +} + message SubscriptionConfirmation { required int64 last_commit_position = 1; - optional int32 last_event_number = 2; + optional int64 last_event_number = 2; } message StreamEventAppeared { @@ -327,13 +389,6 @@ message StreamEventAppeared { message UnsubscribeFromStream { } -message Ping { -} - -message Pong { -} - - message SubscriptionDropped { enum SubscriptionDropReason { @@ -352,17 +407,18 @@ message NotHandled { enum NotHandledReason { NotReady = 0; TooBusy = 1; - NotMaster = 2; + NotLeader = 2; + IsReadOnly = 3; } required NotHandledReason reason = 1; optional bytes additional_info = 2; - message MasterInfo { + message LeaderInfo { required string external_tcp_address = 1; required int32 external_tcp_port = 2; - required string external_http_address = 3; - required int32 external_http_port = 4; + required string http_address = 3; + required int32 http_port = 4; optional string external_secure_tcp_address = 5; optional int32 external_secure_tcp_port = 6; } @@ -371,16 +427,23 @@ message NotHandled { message ScavengeDatabase { } -message ScavengeDatabaseCompleted { +message ScavengeDatabaseResponse { enum ScavengeResult { - Success = 0; + Started = 0; InProgress = 1; - Failed = 2; + Unauthorized = 2; } required ScavengeResult result = 1; - optional string error = 2; - required int32 total_time_ms = 3; - required int64 total_space_saved = 4; + optional string scavengeId = 2; + } + +message IdentifyClient { + required int32 version = 1; + optional string connection_name = 2; +} + +message ClientIdentified { +} \ No newline at end of file diff --git a/setup.py b/setup.py index 4cc4021..c5066ea 100644 --- a/setup.py +++ b/setup.py @@ -38,7 +38,7 @@ def run_tests(self): url="http://github.com/madedotcom/photon-pump/", license="MIT", author="Bob Gregory", - install_requires=["aiodns>=1.1.1", "aiohttp>=3.1.3", "protobuf>=3.12.0"], + install_requires=["aiodns>=1.1.1", "aiohttp>=3.1.3", "protobuf>=3.12.0,<4"], cmdclass=versioneer.get_cmdclass(), author_email="bob@made.com", description="Fast, easy to use client for EventStore", diff --git a/test/conftest.py b/test/conftest.py index 49355c6..72a003a 100644 --- a/test/conftest.py +++ b/test/conftest.py @@ -1,7 +1,9 @@ import asyncio import logging +import ssl import pytest +from photonpump import connect as _connect logging.basicConfig(level=logging.DEBUG) @@ -13,3 +15,16 @@ def event_loop(): asyncio.set_event_loop(loop) yield loop loop.close() + + +@pytest.fixture +def ssl_context() -> ssl.SSLContext: + context = ssl.SSLContext() + context.load_verify_locations("certs/ca/ca.crt") + context.verify_mode = ssl.CERT_REQUIRED + return context + + +@pytest.fixture +def connect(ssl_context): + return lambda *args, **kwargs: _connect(*args, **{"sslcontext": ssl_context, "port": 1111, **kwargs}) diff --git a/test/connection_test.py b/test/connection_test.py index 684b225..e38339a 100644 --- a/test/connection_test.py +++ b/test/connection_test.py @@ -2,12 +2,11 @@ import pytest -from photonpump import connect -from photonpump.discovery import DiscoveryRetryPolicy +from photonpump.discovery import DiscoveryRetryPolicy, prefer_leader @pytest.mark.asyncio -async def test_ping_context_mgr(event_loop): +async def test_ping_context_mgr(event_loop, connect): async with connect() as conn: id = uuid.uuid4() @@ -15,9 +14,9 @@ async def test_ping_context_mgr(event_loop): @pytest.mark.asyncio -async def test_connect_subscription(event_loop): +async def test_connect_subscription(event_loop, connect): - async with connect(username="admin", password="changeit") as conn: + async with connect(username="admin", password="changeit", discovery_host="localhost", selector=prefer_leader, discovery_port=2111) as conn: subscription_name = str(uuid.uuid4()) stream_name = str(uuid.uuid4()) event_id = uuid.uuid4() @@ -31,7 +30,7 @@ async def test_connect_subscription(event_loop): @pytest.mark.asyncio -async def test_subscribe_to(event_loop): +async def test_subscribe_to(event_loop, connect): async with connect(username="admin", password="changeit") as conn: stream_name = str(uuid.uuid4()) @@ -46,7 +45,7 @@ async def test_subscribe_to(event_loop): @pytest.mark.asyncio -async def test_setting_retry_policy(event_loop): +async def test_setting_retry_policy(event_loop, connect): class silly_retry_policy(DiscoveryRetryPolicy): def __init__(self): super().__init__() @@ -65,11 +64,12 @@ async def wait(self, seed): @pytest.mark.asyncio async def test_connect_logs_deprecation_warning_when_used_with_loop_parameter( - event_loop, + event_loop, connect ): with pytest.warns(DeprecationWarning) as record: async with connect(loop=event_loop) as conn: await conn.ping(conversation_id=uuid.uuid4()) - assert len(record) == 1 + assert len(record) <= 10 + assert "The loop parameter has been deprecated" in record[0].message.args[0] diff --git a/test/conversations/test_catchup.py b/test/conversations/test_catchup.py index d69ead8..8b9af87 100644 --- a/test/conversations/test_catchup.py +++ b/test/conversations/test_catchup.py @@ -199,7 +199,7 @@ async def test_start_read_phase(): assert body.event_stream_id == "my-stream" assert body.from_event_number == 0 assert body.resolve_link_tos is True - assert body.require_master is False + assert body.require_leader is False assert body.max_count == 100 diff --git a/test/conversations/test_catchup_all.py b/test/conversations/test_catchup_all.py index ff76e0f..9419754 100644 --- a/test/conversations/test_catchup_all.py +++ b/test/conversations/test_catchup_all.py @@ -195,7 +195,7 @@ async def test_start_read_phase(): assert body.commit_position == 0 assert body.prepare_position == 0 assert body.resolve_link_tos is True - assert body.require_master is False + assert body.require_leader is False assert body.max_count == 100 diff --git a/test/conversations/test_create_persistent_subscription.py b/test/conversations/test_create_persistent_subscription.py index f573d19..1671b0b 100644 --- a/test/conversations/test_create_persistent_subscription.py +++ b/test/conversations/test_create_persistent_subscription.py @@ -104,17 +104,16 @@ async def test_subscription_configuration(): await convo.start(output) request = await output.get() - expected_bytes = read_hex( + expected_bytes = bytearray(read_hex( """ -C8 00 7B 72 F5 8F A9 58 05 48 82 3A 45 1D 5E B3 -07 F7 0A 11 62 65 73 74 2D 73 75 62 73 63 72 69 -70 74 69 6F 6E 12 10 24 63 65 2D 43 61 6E 63 65 -6C 6C 61 74 69 6F 6E 18 01 20 00 28 B0 EA 01 30 -00 38 20 40 40 48 80 01 50 0A 58 01 60 D0 0F 68 -E8 07 70 0A 78 00 82 01 0A 52 6F 75 6E 64 52 6F -62 69 6E +c8 00 7b 72 f5 8f a9 58 05 48 82 3a 45 1d 5e b3 +07 f7 0a 11 62 65 73 74 2d 73 75 62 73 63 72 69 +70 74 69 6f 6e 12 10 24 63 65 2d 43 61 6e 63 65 +6c 6c 61 74 69 6f 6e 18 01 28 b0 ea 01 38 20 40 +40 48 80 01 50 0a 58 01 60 d0 0f 68 e8 07 70 0a +82 01 0a 52 6f 75 6e 64 52 6f 62 69 6e """ - ) + )) actual_bytes = (request.header_bytes + request.payload)[4:] diff --git a/test/conversations/test_error_handling.py b/test/conversations/test_error_handling.py index d8d6bfd..685539c 100644 --- a/test/conversations/test_error_handling.py +++ b/test/conversations/test_error_handling.py @@ -119,7 +119,7 @@ async def test_not_master(): output = TeeQueue() payload = proto.NotHandled() - payload.reason = msg.NotHandledReason.NotMaster + payload.reason = msg.NotHandledReason.NotLeader conversation = Ping() await conversation.respond_to( @@ -129,7 +129,7 @@ async def test_not_master(): output, ) - with pytest.raises(exn.NotMaster) as exc: + with pytest.raises(exn.NotLeader) as exc: await conversation.result assert exc.conversation_id == conversation.conversation_id diff --git a/test/conversations/test_iterate_all_conversation.py b/test/conversations/test_iterate_all_conversation.py index a2f7b3b..54b04d9 100644 --- a/test/conversations/test_iterate_all_conversation.py +++ b/test/conversations/test_iterate_all_conversation.py @@ -24,7 +24,7 @@ async def test_read_request(): assert body.commit_position == 0 assert body.prepare_position == 0 assert body.resolve_link_tos is True - assert body.require_master is False + assert body.require_leader is False assert body.max_count == 100 @@ -42,7 +42,7 @@ async def test_read_backward(): assert request.command is msg.TcpCommand.ReadAllEventsBackward assert body.commit_position == 0 assert body.resolve_link_tos is True - assert body.require_master is False + assert body.require_leader is False assert body.max_count == 10 diff --git a/test/conversations/test_iterate_stream_conversation.py b/test/conversations/test_iterate_stream_conversation.py index e09f827..b484f4f 100644 --- a/test/conversations/test_iterate_stream_conversation.py +++ b/test/conversations/test_iterate_stream_conversation.py @@ -24,7 +24,7 @@ async def test_read_stream_request(): assert body.event_stream_id == "my-stream" assert body.from_event_number == 0 assert body.resolve_link_tos is True - assert body.require_master is False + assert body.require_leader is False assert body.max_count == 100 @@ -45,7 +45,7 @@ async def test_read_stream_backward(): assert body.event_stream_id == "my-stream" assert body.from_event_number == -1 assert body.resolve_link_tos is True - assert body.require_master is False + assert body.require_leader is False assert body.max_count == 10 @@ -270,5 +270,5 @@ async def test_reconnect_at_last_event_number(): assert body.event_stream_id == "my-stream" assert body.from_event_number == 33 assert body.resolve_link_tos is True - assert body.require_master is False + assert body.require_leader is False assert body.max_count == 100 diff --git a/test/conversations/test_read_all_events_stream_conversation.py b/test/conversations/test_read_all_events_stream_conversation.py index c55f02c..e2390b6 100644 --- a/test/conversations/test_read_all_events_stream_conversation.py +++ b/test/conversations/test_read_all_events_stream_conversation.py @@ -24,7 +24,7 @@ async def test_read_all_request(): assert body.commit_position == 10 assert body.prepare_position == 11 assert body.resolve_link_tos is True - assert body.require_master is False + assert body.require_leader is False assert body.max_count == 100 @@ -47,7 +47,7 @@ async def test_read_all_backward(): assert body.commit_position == 10 assert body.prepare_position == 11 assert body.resolve_link_tos is True - assert body.require_master is False + assert body.require_leader is False assert body.max_count == 20 diff --git a/test/conversations/test_read_event_conversation.py b/test/conversations/test_read_event_conversation.py index 4feac3d..a74e186 100644 --- a/test/conversations/test_read_event_conversation.py +++ b/test/conversations/test_read_event_conversation.py @@ -25,7 +25,7 @@ async def test_read_single_event(): assert body.event_stream_id == "my-stream" assert body.event_number == 23 assert body.resolve_link_tos is True - assert body.require_master is False + assert body.require_leader is False @pytest.mark.asyncio diff --git a/test/conversations/test_read_stream_conversation.py b/test/conversations/test_read_stream_conversation.py index a9a2404..1e2980c 100644 --- a/test/conversations/test_read_stream_conversation.py +++ b/test/conversations/test_read_stream_conversation.py @@ -24,7 +24,7 @@ async def test_read_stream_request(): assert body.event_stream_id == "my-stream" assert body.from_event_number == 23 assert body.resolve_link_tos is True - assert body.require_master is False + assert body.require_leader is False assert body.max_count == 100 @@ -45,7 +45,7 @@ async def test_read_stream_backward(): assert body.event_stream_id == "my-stream" assert body.from_event_number == 50 assert body.resolve_link_tos is True - assert body.require_master is False + assert body.require_leader is False assert body.max_count == 10 diff --git a/test/conversations/test_write_events_conversation.py b/test/conversations/test_write_events_conversation.py index 2be12c6..99fc9d7 100644 --- a/test/conversations/test_write_events_conversation.py +++ b/test/conversations/test_write_events_conversation.py @@ -99,7 +99,7 @@ def _validate_write_request( assert payload.event_stream_id == stream_id assert payload.expected_version == msg.ExpectedVersion.Any assert len(payload.events) == 1 - assert not payload.require_master + assert not payload.require_leader [evt] = payload.events assert evt.event_id == event_id.bytes_le diff --git a/test/data/__init__.py b/test/data/__init__.py index 49cee0c..5533828 100644 --- a/test/data/__init__.py +++ b/test/data/__init__.py @@ -24,10 +24,10 @@ def get_state(idx): if idx == 0: - return "Master" + return "Leader" if idx < 3: - return "Slave" + return "Follower" return "Clone" diff --git a/test/data/gossip.json b/test/data/gossip.json index 0e7f063..a09cfa2 100644 --- a/test/data/gossip.json +++ b/test/data/gossip.json @@ -3,7 +3,7 @@ { "instanceId": "84b8c4bc-db01-4ee7-bcdb-5bc18a068d09", "timeStamp": "2018-01-27T16:12:53.009062Z", - "state": "Slave", + "state": "Follower", "isAlive": true, "internalTcpIp": "172.31.224.200", "internalTcpPort": 1112, @@ -26,7 +26,7 @@ { "instanceId": "16657e53-d440-42c6-81a0-110d76618248", "timeStamp": "2018-01-27T16:12:51.316066Z", - "state": "Slave", + "state": "Follower", "isAlive": true, "internalTcpIp": "172.31.216.176", "internalTcpPort": 1112, @@ -49,7 +49,7 @@ { "instanceId": "fbeef1a9-2ec2-4663-ac5f-f6a19472c038", "timeStamp": "2018-01-27T16:12:52.242831Z", - "state": "Master", + "state": "Leader", "isAlive": true, "internalTcpIp": "172.31.194.207", "internalTcpPort": 1112, diff --git a/test/discovery_test.py b/test/discovery_test.py index 64cdd1c..c7657ea 100644 --- a/test/discovery_test.py +++ b/test/discovery_test.py @@ -11,14 +11,13 @@ DiscoveryRetryPolicy, NodeService, NodeState, - SingleNodeDiscovery, StaticSeedFinder, Stats, fetch_new_gossip, get_discoverer, read_gossip, select, - prefer_master, + prefer_leader, prefer_replica, KEEP_RETRYING, ) @@ -26,7 +25,7 @@ from . import data GOOD_NODE = DiscoveredNode( - state=NodeState.Master, + state=NodeState.Leader, is_alive=True, internal_tcp=None, internal_http=None, @@ -77,29 +76,29 @@ def test_selector_with_nodes_in_all_states(): selected = select(gossip) - assert selected.state == NodeState.Master + assert selected.state == NodeState.Leader def test_selector_with_slave_and_clone(): gossip = [ GOOD_NODE._replace(state=NodeState.Clone), - GOOD_NODE._replace(state=NodeState.Slave), + GOOD_NODE._replace(state=NodeState.Follower), ] selected = select(gossip) - assert selected.state == NodeState.Slave + assert selected.state == NodeState.Follower def test_selector_with_master_and_slave(): gossip = [ - GOOD_NODE._replace(state=NodeState.Master), - GOOD_NODE._replace(state=NodeState.Slave), + GOOD_NODE._replace(state=NodeState.Leader), + GOOD_NODE._replace(state=NodeState.Follower), ] selected = select(gossip) - assert selected.state == NodeState.Master + assert selected.state == NodeState.Leader def gossip_nodes(nodes: List[NodeService]): @@ -112,13 +111,13 @@ async def foo(): @pytest.mark.asyncio async def test_no_gossip_seeds_found(): async with aiohttp.ClientSession() as session: - gossip = await fetch_new_gossip(session, []) + gossip = await fetch_new_gossip(session, [], None) assert gossip == [] def test_gossip_reader(): - gossip = read_gossip(data.GOSSIP) + gossip = read_gossip(data.GOSSIP, False) assert len(gossip) == 3 assert gossip[1].internal_tcp.port == 1112 @@ -133,7 +132,7 @@ async def test_fetch_gossip(): with aioresponses() as mock: mock.get("http://10.10.10.10:2113/gossip", status=200, payload=data.GOSSIP) async with aiohttp.ClientSession() as session: - gossip = await fetch_new_gossip(session, node) + gossip = await fetch_new_gossip(session, node, None) assert len(gossip) == 3 @@ -145,7 +144,7 @@ async def test_aiohttp_failure(): with aioresponses() as mock: mock.get("http://10.10.10.10:2113/gossip", status=502) async with aiohttp.ClientSession() as session: - gossip = await fetch_new_gossip(session, node) + gossip = await fetch_new_gossip(session, node, None) assert not gossip @@ -216,7 +215,7 @@ async def wait(self, seed): gossip = data.make_gossip("2.3.4.5") retry = always_succeed() with aioresponses() as mock: - successful_discoverer = ClusterDiscovery(StaticSeedFinder([seed]), retry, None) + successful_discoverer = ClusterDiscovery(StaticSeedFinder([seed]), retry, None, None) mock.get("http://1.2.3.4:2113/gossip", status=500) mock.get("http://1.2.3.4:2113/gossip", payload=gossip) @@ -253,7 +252,7 @@ async def wait(self, seed): retry = always_fail() gossip = data.make_gossip("2.3.4.5") with aioresponses() as mock: - successful_discoverer = ClusterDiscovery(StaticSeedFinder([seed]), retry, None) + successful_discoverer = ClusterDiscovery(StaticSeedFinder([seed]), retry, None, None) mock.get("http://1.2.3.4:2113/gossip", status=500) mock.get("http://1.2.3.4:2113/gossip", payload=gossip) @@ -286,13 +285,13 @@ async def test_prefer_replica(): @pytest.mark.asyncio -async def test_prefer_master(): +async def test_prefer_leader(): """ - If we ask the discoverer to prefer_master it should return a master node + If we ask the discoverer to prefer_leader it should return a leader node before returning a replica. """ - discoverer = get_discoverer(None, None, "10.0.0.1", 2113, prefer_master) + discoverer = get_discoverer(None, None, "10.0.0.1", 2113, prefer_leader) gossip = data.make_gossip("10.0.0.1", "10.0.0.2") with aioresponses() as mock: mock.get("http://10.0.0.1:2113/gossip", payload=gossip) diff --git a/test/read_test.py b/test/read_test.py index cbed90e..3aea38d 100644 --- a/test/read_test.py +++ b/test/read_test.py @@ -2,7 +2,7 @@ import logging import uuid import pytest -from photonpump import connect, exceptions, messages +from photonpump import exceptions, messages from .fixtures import ( given_two_streams_with_two_events, given_a_stream_with_three_events, @@ -10,7 +10,7 @@ @pytest.mark.asyncio -async def test_single_event_roundtrip(event_loop): +async def test_single_event_roundtrip(event_loop, connect): stream_name = str(uuid.uuid4()) async with connect(username="test-user", password="test-password") as c: await c.publish_event( @@ -28,7 +28,7 @@ async def test_single_event_roundtrip(event_loop): @pytest.mark.asyncio -async def test_missing_stream(event_loop): +async def test_missing_stream(event_loop, connect): stream_name = str(uuid.uuid4()) async with connect(username="test-user", password="test-password") as c: with pytest.raises(exceptions.StreamNotFound) as exc: @@ -37,7 +37,7 @@ async def test_missing_stream(event_loop): @pytest.mark.asyncio -async def test_read_multiple(event_loop): +async def test_read_multiple(event_loop, connect): stream_name = str(uuid.uuid4()) async with connect(username="test-user", password="test-password") as c: await given_a_stream_with_three_events(c, stream_name) @@ -54,7 +54,7 @@ async def test_read_multiple(event_loop): @pytest.mark.asyncio -async def test_read_with_max_count(event_loop): +async def test_read_with_max_count(event_loop, connect): stream_name = str(uuid.uuid4()) async with connect(username="test-user", password="test-password") as c: await given_a_stream_with_three_events(c, stream_name) @@ -70,7 +70,7 @@ async def test_read_with_max_count(event_loop): @pytest.mark.asyncio -async def test_read_with_max_count_and_from_event(event_loop): +async def test_read_with_max_count_and_from_event(event_loop, connect): stream_name = str(uuid.uuid4()) async with connect(username="test-user", password="test-password") as c: await given_a_stream_with_three_events(c, stream_name) @@ -86,7 +86,7 @@ async def test_read_with_max_count_and_from_event(event_loop): @pytest.mark.asyncio -async def test_streaming_read(event_loop): +async def test_streaming_read(event_loop, connect): stream_name = str(uuid.uuid4()) async with connect( username="test-user", @@ -105,7 +105,7 @@ async def test_streaming_read(event_loop): @pytest.mark.asyncio -async def test_async_comprehension(event_loop): +async def test_async_comprehension(event_loop, connect): def embiggen(e): data = e.json() data["Height"] *= 10 @@ -138,14 +138,14 @@ def embiggen(e): @pytest.mark.asyncio -async def test_iter_from_missing_stream(event_loop): +async def test_iter_from_missing_stream(event_loop, connect): async with connect(username="test-user", password="test-password") as c: with pytest.raises(exceptions.StreamNotFound): [e async for e in c.iter("my-stream-that-isnt-a-stream")] @pytest.mark.asyncio -async def test_iterall(event_loop): +async def test_iterall(event_loop, connect): async with connect( username="admin", # iter_all aggregates all streams so it needs systemwide-read perms password="changeit", @@ -163,7 +163,7 @@ async def test_iterall(event_loop): @pytest.mark.asyncio -async def test_readall(event_loop): +async def test_readall(event_loop, connect): async with connect( username="admin", # get_all aggregates all streams so it needs systemwide-read perms password="changeit", @@ -179,12 +179,3 @@ async def test_readall(event_loop): events_read += 1 assert events_read == 4 - - -@pytest.mark.asyncio -async def test_anonymous_access_still_works(event_loop): - stream_name = str(uuid.uuid4()) - async with connect(port=11113, discovery_port=22113) as c: - await c.publish_event(stream_name, "first_event", body={"thing": 1}) - results = await c.get(stream_name) - assert results[0].event.type == "first_event" diff --git a/test/write_test.py b/test/write_test.py index bf97db0..1fb244d 100644 --- a/test/write_test.py +++ b/test/write_test.py @@ -1,14 +1,15 @@ # pylint: disable=invalid-name, bad-continuation +import time import uuid import pytest -from photonpump import connect, messages, messages_pb2, exceptions +from photonpump import messages, messages_pb2, exceptions from . import data @pytest.mark.asyncio -async def test_single_event_publish(event_loop): +async def test_single_event_publish(event_loop, connect): stream_name = str(uuid.uuid4()) async with connect(username="test-user", password="test-password") as conn: result = await conn.publish_event( @@ -22,7 +23,7 @@ async def test_single_event_publish(event_loop): @pytest.mark.asyncio -async def test_three_events_publish(event_loop): +async def test_three_events_publish(event_loop, connect): stream_name = str(uuid.uuid4()) async with connect(username="test-user", password="test-password") as c: result = await c.publish( @@ -47,7 +48,7 @@ async def test_three_events_publish(event_loop): @pytest.mark.asyncio -async def test_a_large_event(event_loop): +async def test_a_large_event(event_loop, connect): stream_name = str(uuid.uuid4()) async with connect(username="test-user", password="test-password") as c: write_result = await c.publish( @@ -59,13 +60,16 @@ async def test_a_large_event(event_loop): ], ) assert write_result.first_event_number == 0 - read_result = await c.get(stream_name, 0) - print(read_result) + for _ in range(10): + time.sleep(0.1) + read_result = await c.get(stream_name, 0) + if read_result: + break assert read_result[0].event.type == "big_json" @pytest.mark.asyncio -async def test_publish_raises_exception_if_not_authenticated(event_loop): +async def test_publish_raises_exception_if_not_authenticated(event_loop, connect): stream_name = str(uuid.uuid4()) async with connect() as conn: diff --git a/vars.env b/vars.env new file mode 100644 index 0000000..ff780c8 --- /dev/null +++ b/vars.env @@ -0,0 +1,7 @@ +EVENTSTORE_CLUSTER_SIZE=3 +EVENTSTORE_RUN_PROJECTIONS=All +EVENTSTORE_TRUSTED_ROOT_CERTIFICATES_PATH=/certs/ca +EVENTSTORE_DISCOVER_VIA_DNS=false +EVENTSTORE_ENABLE_EXTERNAL_TCP=true +EVENTSTORE_ENABLE_ATOM_PUB_OVER_HTTP=true +EVENTSTORE_ADVERTISE_HOST_TO_CLIENT_AS=localhost \ No newline at end of file From 22ea2426e99a50e5fe53e239d8a05b07a3b7c724 Mon Sep 17 00:00:00 2001 From: Andrii Kohut Date: Tue, 2 Aug 2022 20:18:59 +0300 Subject: [PATCH 02/18] run ci on branches --- .travis.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.travis.yml b/.travis.yml index 09cbdc7..5eb9faa 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,6 +1,12 @@ sudo: required dist: focal language: python + +branches: + except: + - legacy + - experimental + matrix: include: - python: "3.10" From e7fc75169f78710b29f2a017cfab775eea9be835 Mon Sep 17 00:00:00 2001 From: Andrii Kohut Date: Tue, 2 Aug 2022 20:44:14 +0300 Subject: [PATCH 03/18] wait for es --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 50dc850..5561767 100644 --- a/Makefile +++ b/Makefile @@ -26,14 +26,14 @@ continous_test: PYASYNCIODEBUG=1 ptw cleanup: - - docker rm -f eventstore_local - - docker rm -f eventstore_local_noauth + docker-compose down -v run_compose: docker-compose up -d create_users: + until curl -f --insecure https://localhost:2111/health/live; do sleep 1; done curl -k -f -i "https://127.0.0.1:2111/streams/%24settings" \ --user admin:changeit \ -H "Content-Type: application/vnd.eventstore.events+json" \ From 53a27bd9a474b24701770b98a7ea4142593151c0 Mon Sep 17 00:00:00 2001 From: Andrii Kohut Date: Tue, 2 Aug 2022 21:00:22 +0300 Subject: [PATCH 04/18] no slaves no masters --- README.rst | 6 +++--- photonpump/connection.py | 38 ++++++++++++++++++------------------- photonpump/conversations.py | 26 ++++++++++++------------- photonpump/discovery.py | 7 ++++++- test/discovery_test.py | 4 ++-- 5 files changed, 43 insertions(+), 38 deletions(-) diff --git a/README.rst b/README.rst index f7a1509..7b34fa3 100644 --- a/README.rst +++ b/README.rst @@ -218,7 +218,7 @@ Persistent Subscriptions Sometimes we want to watch a stream continuously and be notified when a new event occurs. Eventstore supports volatile and persistent subscriptions for this use case. -A persistent subscription stores its state on the server. When your application restarts, you can connect to the subscription again and continue where you left off. Multiple clients can connect to the same persistent subscription to support competing consumer scenarios. To support these features, persistent subscriptions have to run against the master node of an Eventstore cluster. +A persistent subscription stores its state on the server. When your application restarts, you can connect to the subscription again and continue where you left off. Multiple clients can connect to the same persistent subscription to support competing consumer scenarios. To support these features, persistent subscriptions have to run against the leader node of an Eventstore cluster. Firstly, we need to `create the subscription `. @@ -252,9 +252,9 @@ Volatile subsciptions do not support event acknowledgement. High-Availability Scenarios ~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Eventstore supports an HA-cluster deployment topology. In this scenario, Eventstore runs a master node and multiple slaves. Some operations, particularly persistent subscriptions and projections, are handled only by the master node. To connect to an HA-cluster and automatically find the master node, photonpump supports cluster discovery. +Eventstore supports an HA-cluster deployment topology. In this scenario, Eventstore runs a leader node and multiple followers. Some operations, particularly persistent subscriptions and projections, are handled only by the leader node. To connect to an HA-cluster and automatically find the leader node, photonpump supports cluster discovery. -The cluster discovery interrogates eventstore gossip to find the active master. You can provide the IP of a maching in the cluster, or a DNS name that resolves to some members of the cluster, and photonpump will discover the others. +The cluster discovery interrogates eventstore gossip to find the active leader. You can provide the IP of a matching in the cluster, or a DNS name that resolves to some members of the cluster, and photonpump will discover the others. >>> async def connect_to_cluster(hostname_or_ip, port=2113): >>> with connect(discovery_host=hostname_or_ip, discovery_port=2113) as c: diff --git a/photonpump/connection.py b/photonpump/connection.py index cca4cef..c9693f7 100644 --- a/photonpump/connection.py +++ b/photonpump/connection.py @@ -704,8 +704,8 @@ async def get_event( event_number: The sequence number of the event to read. resolve_links (optional): True if eventstore should automatically resolve Link Events, otherwise False. - required_master (optional): True if this command must be - sent direct to the master node, otherwise False. + required_leader (optional): True if this command must be + sent direct to the leader node, otherwise False. correlation_id (optional): A unique identifer for this command. @@ -756,8 +756,8 @@ async def get( max_count (optional): The maximum number of events to return. resolve_links (optional): True if eventstore should automatically resolve Link Events, otherwise False. - required_master (optional): True if this command must be - sent direct to the master node, otherwise False. + required_leader (optional): True if this command must be + sent direct to the leader node, otherwise False. correlation_id (optional): A unique identifer for this command. Examples: @@ -817,9 +817,9 @@ async def get_all( max_count (optional): The maximum number of events to return. resolve_links (optional): True if eventstore should automatically resolve Link Events, otherwise False. - required_master (optional): True if this command must be - sent direct to the master node, otherwise False. - correlation_id (optional): A unique identifer for this command. + required_leader (optional): True if this command must be + sent direct to the leader node, otherwise False. + correlation_id (optional): A unique identifier for this command. Examples: @@ -933,9 +933,9 @@ async def iter_all( batch_size (optional): The maximum number of events to read at a time. resolve_links (optional): True if eventstore should automatically resolve Link Events, otherwise False. - required_master (optional): True if this command must be - sent direct to the master node, otherwise False. - correlation_id (optional): A unique identifer for this + required_leader (optional): True if this command must be + sent direct to the leader node, otherwise False. + correlation_id (optional): A unique identifier for this command. Examples: @@ -1057,8 +1057,8 @@ async def subscribe_to( resolve_links (optional): True if eventstore should automatically resolve Link Events, otherwise False. - required_master (optional): True if this command must be - sent direct to the master node, otherwise False. + required_leader (optional): True if this command must be + sent direct to the leader node, otherwise False. correlation_id (optional): A unique identifer for this command. batch_size (optioal): The number of events to pull down from @@ -1239,21 +1239,21 @@ def connect( If you're using :meth:`persistent subscriptions ` - you will always want to connect to the master node of the cluster. + you will always want to connect to the leader node of the cluster. The selector parameter is a function that chooses an available node from - the gossip result. To select the master node, use the - :func:`photonpump.discovery.prefer_master` function. This function will return - the master node if there is a live master, and a random replica otherwise. + the gossip result. To select the leader node, use the + :func:`photonpump.discovery.prefer_leader` function. This function will return + the leader node if there is a live leader, and a random replica otherwise. All requests to the server can be made with the require_leader flag which - will raise an error if the current node is not a master. + will raise an error if the current node is not a leader. >>> async with connect( >>> discovery_host="eventstore.test", - >>> selector=discovery.prefer_master, + >>> selector=discovery.prefer_leader, >>> ) as c: >>> await c.ping(require_leader=True) - Conversely, you might want to avoid connecting to the master node for reasons + Conversely, you might want to avoid connecting to the leader node for reasons of scalability. For this you can use the :func:`photonpump.discovery.prefer_replica` function. diff --git a/photonpump/conversations.py b/photonpump/conversations.py index 5e3ab2a..d360845 100644 --- a/photonpump/conversations.py +++ b/photonpump/conversations.py @@ -245,8 +245,8 @@ class WriteEvents(Conversation): events: A sequence of events to write. expected_version (optional): The expected version of the target stream used for concurrency control. - required_master (optional): True if this command must be - sent direct to the master node, otherwise False. + required_leader (optional): True if this command must be + sent direct to the leader node, otherwise False. correlation_id (optional): A unique identifer for this command. @@ -442,9 +442,9 @@ class ReadEvent(Conversation): event_number: The sequence number of the event to read. resolve_links (optional): True if eventstore should automatically resolve Link Events, otherwise False. - required_master (optional): True if this command must be - sent direct to the master node, otherwise False. - correlation_id (optional): A unique identifer for this + required_leader (optional): True if this command must be + sent direct to the leader node, otherwise False. + correlation_id (optional): A unique identifier for this command. """ @@ -542,8 +542,8 @@ class ReadAllEvents(Conversation): event_number: The sequence number of the event to read. resolve_links (optional): True if eventstore should automatically resolve Link Events, otherwise False. - required_master (optional): True if this command must be - sent direct to the master node, otherwise False. + required_leader (optional): True if this command must be + sent direct to the leader node, otherwise False. correlation_id (optional): A unique identifer for this command. """ @@ -595,8 +595,8 @@ class ReadStreamEvents(Conversation): event_number: The sequence number of the event to read. resolve_links (optional): True if eventstore should automatically resolve Link Events, otherwise False. - required_master (optional): True if this command must be - sent direct to the master node, otherwise False. + required_leader (optional): True if this command must be + sent direct to the leader node, otherwise False. correlation_id (optional): A unique identifer for this command. """ @@ -664,10 +664,10 @@ class IterAllEvents(Conversation): resolve_links (optional): True if eventstore should automatically resolve Link Events, otherwise False. require_leader (optional): True if this command must be - sent direct to the master node, otherwise False. + sent direct to the leader node, otherwise False. direction (optional): Controls whether to read forward or backward through the events. Defaults to StreamDirection.Forward - correlation_id (optional): A unique identifer for this + correlation_id (optional): A unique identifier for this command. """ @@ -744,8 +744,8 @@ class IterStreamEvents(Conversation): stream: The name of the stream containing the event. resolve_links (optional): True if eventstore should automatically resolve Link Events, otherwise False. - required_master (optional): True if this command must be - sent direct to the master node, otherwise False. + required_leader (optional): True if this command must be + sent direct to the leader node, otherwise False. correlation_id (optional): A unique identifer for this command. diff --git a/photonpump/discovery.py b/photonpump/discovery.py index 21436dc..47460a1 100644 --- a/photonpump/discovery.py +++ b/photonpump/discovery.py @@ -16,16 +16,21 @@ class NodeState(IntEnum): Initializing = enum.auto() + DiscoverLeader = enum.auto() Unknown = enum.auto() PreReplica = enum.auto() CatchingUp = enum.auto() Clone = enum.auto() Follower = enum.auto() - PreMaster = enum.auto() + PreLeader = enum.auto() Leader = enum.auto() Manager = enum.auto() ShuttingDown = enum.auto() Shutdown = enum.auto() + ReadOnlyLeaderless = enum.auto() + PreReadOnlyReplica = enum.auto() + ReadOnlyReplica = enum.auto() + ResigningLeader = enum.auto() ELIGIBLE_STATE = [NodeState.Clone, NodeState.Follower, NodeState.Leader] diff --git a/test/discovery_test.py b/test/discovery_test.py index c7657ea..54c1a6e 100644 --- a/test/discovery_test.py +++ b/test/discovery_test.py @@ -79,7 +79,7 @@ def test_selector_with_nodes_in_all_states(): assert selected.state == NodeState.Leader -def test_selector_with_slave_and_clone(): +def test_selector_with_follower_and_clone(): gossip = [ GOOD_NODE._replace(state=NodeState.Clone), GOOD_NODE._replace(state=NodeState.Follower), @@ -90,7 +90,7 @@ def test_selector_with_slave_and_clone(): assert selected.state == NodeState.Follower -def test_selector_with_master_and_slave(): +def test_selector_with_leader_and_follower(): gossip = [ GOOD_NODE._replace(state=NodeState.Leader), GOOD_NODE._replace(state=NodeState.Follower), From 6f367f00bd50a75314da28bbc4f68509ca120b18 Mon Sep 17 00:00:00 2001 From: Andrii Kohut Date: Tue, 2 Aug 2022 21:07:53 +0300 Subject: [PATCH 05/18] typo --- README.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.rst b/README.rst index 7b34fa3..fe23c54 100644 --- a/README.rst +++ b/README.rst @@ -254,7 +254,7 @@ High-Availability Scenarios Eventstore supports an HA-cluster deployment topology. In this scenario, Eventstore runs a leader node and multiple followers. Some operations, particularly persistent subscriptions and projections, are handled only by the leader node. To connect to an HA-cluster and automatically find the leader node, photonpump supports cluster discovery. -The cluster discovery interrogates eventstore gossip to find the active leader. You can provide the IP of a matching in the cluster, or a DNS name that resolves to some members of the cluster, and photonpump will discover the others. +The cluster discovery interrogates eventstore gossip to find the active leader. You can provide the IP of a machine in the cluster, or a DNS name that resolves to some members of the cluster, and photonpump will discover the others. >>> async def connect_to_cluster(hostname_or_ip, port=2113): >>> with connect(discovery_host=hostname_or_ip, discovery_port=2113) as c: From 35f16ffe87523db56317398e1b9052140632fd01 Mon Sep 17 00:00:00 2001 From: Andrii Kohut Date: Tue, 2 Aug 2022 21:20:13 +0300 Subject: [PATCH 06/18] remove protos --- messages_pb2.py | 547 ------------------ messages_pb2.pyi | 1260 ------------------------------------------ messages_pb2_grpc.py | 4 - 3 files changed, 1811 deletions(-) delete mode 100644 messages_pb2.py delete mode 100644 messages_pb2.pyi delete mode 100644 messages_pb2_grpc.py diff --git a/messages_pb2.py b/messages_pb2.py deleted file mode 100644 index 283e21d..0000000 --- a/messages_pb2.py +++ /dev/null @@ -1,547 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: messages.proto -"""Generated protocol buffer code.""" -from google.protobuf.internal import enum_type_wrapper -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x0emessages.proto\x12\x1a\x45ventStore.Client.Messages\"\x8a\x01\n\x08NewEvent\x12\x10\n\x08\x65vent_id\x18\x01 \x02(\x0c\x12\x12\n\nevent_type\x18\x02 \x02(\t\x12\x19\n\x11\x64\x61ta_content_type\x18\x03 \x02(\x05\x12\x1d\n\x15metadata_content_type\x18\x04 \x02(\x05\x12\x0c\n\x04\x64\x61ta\x18\x05 \x02(\x0c\x12\x10\n\x08metadata\x18\x06 \x01(\x0c\"\xe4\x01\n\x0b\x45ventRecord\x12\x17\n\x0f\x65vent_stream_id\x18\x01 \x02(\t\x12\x14\n\x0c\x65vent_number\x18\x02 \x02(\x03\x12\x10\n\x08\x65vent_id\x18\x03 \x02(\x0c\x12\x12\n\nevent_type\x18\x04 \x02(\t\x12\x19\n\x11\x64\x61ta_content_type\x18\x05 \x02(\x05\x12\x1d\n\x15metadata_content_type\x18\x06 \x02(\x05\x12\x0c\n\x04\x64\x61ta\x18\x07 \x02(\x0c\x12\x10\n\x08metadata\x18\x08 \x01(\x0c\x12\x0f\n\x07\x63reated\x18\t \x01(\x03\x12\x15\n\rcreated_epoch\x18\n \x01(\x03\"\x85\x01\n\x14ResolvedIndexedEvent\x12\x36\n\x05\x65vent\x18\x01 \x02(\x0b\x32\'.EventStore.Client.Messages.EventRecord\x12\x35\n\x04link\x18\x02 \x01(\x0b\x32\'.EventStore.Client.Messages.EventRecord\"\xb1\x01\n\rResolvedEvent\x12\x36\n\x05\x65vent\x18\x01 \x02(\x0b\x32\'.EventStore.Client.Messages.EventRecord\x12\x35\n\x04link\x18\x02 \x01(\x0b\x32\'.EventStore.Client.Messages.EventRecord\x12\x17\n\x0f\x63ommit_position\x18\x03 \x02(\x03\x12\x18\n\x10prepare_position\x18\x04 \x02(\x03\"\x8e\x01\n\x0bWriteEvents\x12\x17\n\x0f\x65vent_stream_id\x18\x01 \x02(\t\x12\x18\n\x10\x65xpected_version\x18\x02 \x02(\x03\x12\x34\n\x06\x65vents\x18\x03 \x03(\x0b\x32$.EventStore.Client.Messages.NewEvent\x12\x16\n\x0erequire_leader\x18\x04 \x02(\x08\"\xe7\x01\n\x14WriteEventsCompleted\x12;\n\x06result\x18\x01 \x02(\x0e\x32+.EventStore.Client.Messages.OperationResult\x12\x0f\n\x07message\x18\x02 \x01(\t\x12\x1a\n\x12\x66irst_event_number\x18\x03 \x02(\x03\x12\x19\n\x11last_event_number\x18\x04 \x02(\x03\x12\x18\n\x10prepare_position\x18\x05 \x01(\x03\x12\x17\n\x0f\x63ommit_position\x18\x06 \x01(\x03\x12\x17\n\x0f\x63urrent_version\x18\x07 \x01(\x03\"n\n\x0c\x44\x65leteStream\x12\x17\n\x0f\x65vent_stream_id\x18\x01 \x02(\t\x12\x18\n\x10\x65xpected_version\x18\x02 \x02(\x03\x12\x16\n\x0erequire_leader\x18\x03 \x02(\x08\x12\x13\n\x0bhard_delete\x18\x04 \x01(\x08\"\x98\x01\n\x15\x44\x65leteStreamCompleted\x12;\n\x06result\x18\x01 \x02(\x0e\x32+.EventStore.Client.Messages.OperationResult\x12\x0f\n\x07message\x18\x02 \x01(\t\x12\x18\n\x10prepare_position\x18\x03 \x01(\x03\x12\x17\n\x0f\x63ommit_position\x18\x04 \x01(\x03\"]\n\x10TransactionStart\x12\x17\n\x0f\x65vent_stream_id\x18\x01 \x02(\t\x12\x18\n\x10\x65xpected_version\x18\x02 \x02(\x03\x12\x16\n\x0erequire_leader\x18\x03 \x02(\x08\"\x81\x01\n\x19TransactionStartCompleted\x12\x16\n\x0etransaction_id\x18\x01 \x02(\x03\x12;\n\x06result\x18\x02 \x02(\x0e\x32+.EventStore.Client.Messages.OperationResult\x12\x0f\n\x07message\x18\x03 \x01(\t\"x\n\x10TransactionWrite\x12\x16\n\x0etransaction_id\x18\x01 \x02(\x03\x12\x34\n\x06\x65vents\x18\x02 \x03(\x0b\x32$.EventStore.Client.Messages.NewEvent\x12\x16\n\x0erequire_leader\x18\x03 \x02(\x08\"\x81\x01\n\x19TransactionWriteCompleted\x12\x16\n\x0etransaction_id\x18\x01 \x02(\x03\x12;\n\x06result\x18\x02 \x02(\x0e\x32+.EventStore.Client.Messages.OperationResult\x12\x0f\n\x07message\x18\x03 \x01(\t\"C\n\x11TransactionCommit\x12\x16\n\x0etransaction_id\x18\x01 \x02(\x03\x12\x16\n\x0erequire_leader\x18\x02 \x02(\x08\"\xec\x01\n\x1aTransactionCommitCompleted\x12\x16\n\x0etransaction_id\x18\x01 \x02(\x03\x12;\n\x06result\x18\x02 \x02(\x0e\x32+.EventStore.Client.Messages.OperationResult\x12\x0f\n\x07message\x18\x03 \x01(\t\x12\x1a\n\x12\x66irst_event_number\x18\x04 \x02(\x03\x12\x19\n\x11last_event_number\x18\x05 \x02(\x03\x12\x18\n\x10prepare_position\x18\x06 \x01(\x03\x12\x17\n\x0f\x63ommit_position\x18\x07 \x01(\x03\"l\n\tReadEvent\x12\x17\n\x0f\x65vent_stream_id\x18\x01 \x02(\t\x12\x14\n\x0c\x65vent_number\x18\x02 \x02(\x03\x12\x18\n\x10resolve_link_tos\x18\x03 \x02(\x08\x12\x16\n\x0erequire_leader\x18\x04 \x02(\x08\"\xa0\x02\n\x12ReadEventCompleted\x12N\n\x06result\x18\x01 \x02(\x0e\x32>.EventStore.Client.Messages.ReadEventCompleted.ReadEventResult\x12?\n\x05\x65vent\x18\x02 \x02(\x0b\x32\x30.EventStore.Client.Messages.ResolvedIndexedEvent\x12\r\n\x05\x65rror\x18\x03 \x01(\t\"j\n\x0fReadEventResult\x12\x0b\n\x07Success\x10\x00\x12\x0c\n\x08NotFound\x10\x01\x12\x0c\n\x08NoStream\x10\x02\x12\x11\n\rStreamDeleted\x10\x03\x12\t\n\x05\x45rror\x10\x04\x12\x10\n\x0c\x41\x63\x63\x65ssDenied\x10\x05\"\x8b\x01\n\x10ReadStreamEvents\x12\x17\n\x0f\x65vent_stream_id\x18\x01 \x02(\t\x12\x19\n\x11\x66rom_event_number\x18\x02 \x02(\x03\x12\x11\n\tmax_count\x18\x03 \x02(\x05\x12\x18\n\x10resolve_link_tos\x18\x04 \x02(\x08\x12\x16\n\x0erequire_leader\x18\x05 \x02(\x08\"\xa2\x03\n\x19ReadStreamEventsCompleted\x12@\n\x06\x65vents\x18\x01 \x03(\x0b\x32\x30.EventStore.Client.Messages.ResolvedIndexedEvent\x12V\n\x06result\x18\x02 \x02(\x0e\x32\x46.EventStore.Client.Messages.ReadStreamEventsCompleted.ReadStreamResult\x12\x19\n\x11next_event_number\x18\x03 \x02(\x03\x12\x19\n\x11last_event_number\x18\x04 \x02(\x03\x12\x18\n\x10is_end_of_stream\x18\x05 \x02(\x08\x12\x1c\n\x14last_commit_position\x18\x06 \x02(\x03\x12\r\n\x05\x65rror\x18\x07 \x01(\t\"n\n\x10ReadStreamResult\x12\x0b\n\x07Success\x10\x00\x12\x0c\n\x08NoStream\x10\x01\x12\x11\n\rStreamDeleted\x10\x02\x12\x0f\n\x0bNotModified\x10\x03\x12\t\n\x05\x45rror\x10\x04\x12\x10\n\x0c\x41\x63\x63\x65ssDenied\x10\x05\"\x87\x01\n\rReadAllEvents\x12\x17\n\x0f\x63ommit_position\x18\x01 \x02(\x03\x12\x18\n\x10prepare_position\x18\x02 \x02(\x03\x12\x11\n\tmax_count\x18\x03 \x02(\x05\x12\x18\n\x10resolve_link_tos\x18\x04 \x02(\x08\x12\x16\n\x0erequire_leader\x18\x05 \x02(\x08\"\xf9\x02\n\x16ReadAllEventsCompleted\x12\x17\n\x0f\x63ommit_position\x18\x01 \x02(\x03\x12\x18\n\x10prepare_position\x18\x02 \x02(\x03\x12\x39\n\x06\x65vents\x18\x03 \x03(\x0b\x32).EventStore.Client.Messages.ResolvedEvent\x12\x1c\n\x14next_commit_position\x18\x04 \x02(\x03\x12\x1d\n\x15next_prepare_position\x18\x05 \x02(\x03\x12Y\n\x06result\x18\x06 \x01(\x0e\x32@.EventStore.Client.Messages.ReadAllEventsCompleted.ReadAllResult:\x07Success\x12\r\n\x05\x65rror\x18\x07 \x01(\t\"J\n\rReadAllResult\x12\x0b\n\x07Success\x10\x00\x12\x0f\n\x0bNotModified\x10\x01\x12\t\n\x05\x45rror\x10\x02\x12\x10\n\x0c\x41\x63\x63\x65ssDenied\x10\x03\"\xe9\x01\n\x06\x46ilter\x12\x41\n\x07\x63ontext\x18\x01 \x02(\x0e\x32\x30.EventStore.Client.Messages.Filter.FilterContext\x12;\n\x04type\x18\x02 \x02(\x0e\x32-.EventStore.Client.Messages.Filter.FilterType\x12\x0c\n\x04\x64\x61ta\x18\x03 \x03(\t\",\n\rFilterContext\x12\x0c\n\x08StreamId\x10\x00\x12\r\n\tEventType\x10\x01\"#\n\nFilterType\x12\t\n\x05Regex\x10\x00\x12\n\n\x06Prefix\x10\x01\"\xde\x01\n\x15\x46ilteredReadAllEvents\x12\x17\n\x0f\x63ommit_position\x18\x01 \x02(\x03\x12\x18\n\x10prepare_position\x18\x02 \x02(\x03\x12\x11\n\tmax_count\x18\x03 \x02(\x05\x12\x19\n\x11max_search_window\x18\x04 \x01(\x05\x12\x18\n\x10resolve_link_tos\x18\x05 \x02(\x08\x12\x16\n\x0erequire_leader\x18\x06 \x02(\x08\x12\x32\n\x06\x66ilter\x18\x07 \x02(\x0b\x32\".EventStore.Client.Messages.Filter\"\xb3\x03\n\x1e\x46ilteredReadAllEventsCompleted\x12\x17\n\x0f\x63ommit_position\x18\x01 \x02(\x03\x12\x18\n\x10prepare_position\x18\x02 \x02(\x03\x12\x39\n\x06\x65vents\x18\x03 \x03(\x0b\x32).EventStore.Client.Messages.ResolvedEvent\x12\x1c\n\x14next_commit_position\x18\x04 \x02(\x03\x12\x1d\n\x15next_prepare_position\x18\x05 \x02(\x03\x12\x18\n\x10is_end_of_stream\x18\x06 \x02(\x08\x12i\n\x06result\x18\x07 \x01(\x0e\x32P.EventStore.Client.Messages.FilteredReadAllEventsCompleted.FilteredReadAllResult:\x07Success\x12\r\n\x05\x65rror\x18\x08 \x01(\t\"R\n\x15\x46ilteredReadAllResult\x12\x0b\n\x07Success\x10\x00\x12\x0f\n\x0bNotModified\x10\x01\x12\t\n\x05\x45rror\x10\x02\x12\x10\n\x0c\x41\x63\x63\x65ssDenied\x10\x03\"\xde\x03\n\x1c\x43reatePersistentSubscription\x12\x1f\n\x17subscription_group_name\x18\x01 \x02(\t\x12\x17\n\x0f\x65vent_stream_id\x18\x02 \x02(\t\x12\x18\n\x10resolve_link_tos\x18\x03 \x02(\x08\x12\x12\n\nstart_from\x18\x04 \x02(\x03\x12$\n\x1cmessage_timeout_milliseconds\x18\x05 \x02(\x05\x12\x19\n\x11record_statistics\x18\x06 \x02(\x08\x12\x18\n\x10live_buffer_size\x18\x07 \x02(\x05\x12\x17\n\x0fread_batch_size\x18\x08 \x02(\x05\x12\x13\n\x0b\x62uffer_size\x18\t \x02(\x05\x12\x17\n\x0fmax_retry_count\x18\n \x02(\x05\x12\x1a\n\x12prefer_round_robin\x18\x0b \x02(\x08\x12\x1d\n\x15\x63heckpoint_after_time\x18\x0c \x02(\x05\x12\x1c\n\x14\x63heckpoint_max_count\x18\r \x02(\x05\x12\x1c\n\x14\x63heckpoint_min_count\x18\x0e \x02(\x05\x12\x1c\n\x14subscriber_max_count\x18\x0f \x02(\x05\x12\x1f\n\x17named_consumer_strategy\x18\x10 \x01(\t\"X\n\x1c\x44\x65letePersistentSubscription\x12\x1f\n\x17subscription_group_name\x18\x01 \x02(\t\x12\x17\n\x0f\x65vent_stream_id\x18\x02 \x02(\t\"\xde\x03\n\x1cUpdatePersistentSubscription\x12\x1f\n\x17subscription_group_name\x18\x01 \x02(\t\x12\x17\n\x0f\x65vent_stream_id\x18\x02 \x02(\t\x12\x18\n\x10resolve_link_tos\x18\x03 \x02(\x08\x12\x12\n\nstart_from\x18\x04 \x02(\x03\x12$\n\x1cmessage_timeout_milliseconds\x18\x05 \x02(\x05\x12\x19\n\x11record_statistics\x18\x06 \x02(\x08\x12\x18\n\x10live_buffer_size\x18\x07 \x02(\x05\x12\x17\n\x0fread_batch_size\x18\x08 \x02(\x05\x12\x13\n\x0b\x62uffer_size\x18\t \x02(\x05\x12\x17\n\x0fmax_retry_count\x18\n \x02(\x05\x12\x1a\n\x12prefer_round_robin\x18\x0b \x02(\x08\x12\x1d\n\x15\x63heckpoint_after_time\x18\x0c \x02(\x05\x12\x1c\n\x14\x63heckpoint_max_count\x18\r \x02(\x05\x12\x1c\n\x14\x63heckpoint_min_count\x18\x0e \x02(\x05\x12\x1c\n\x14subscriber_max_count\x18\x0f \x02(\x05\x12\x1f\n\x17named_consumer_strategy\x18\x10 \x01(\t\"\x97\x02\n%UpdatePersistentSubscriptionCompleted\x12}\n\x06result\x18\x01 \x02(\x0e\x32\x64.EventStore.Client.Messages.UpdatePersistentSubscriptionCompleted.UpdatePersistentSubscriptionResult:\x07Success\x12\x0e\n\x06reason\x18\x02 \x01(\t\"_\n\"UpdatePersistentSubscriptionResult\x12\x0b\n\x07Success\x10\x00\x12\x10\n\x0c\x44oesNotExist\x10\x01\x12\x08\n\x04\x46\x61il\x10\x02\x12\x10\n\x0c\x41\x63\x63\x65ssDenied\x10\x03\"\x98\x02\n%CreatePersistentSubscriptionCompleted\x12}\n\x06result\x18\x01 \x02(\x0e\x32\x64.EventStore.Client.Messages.CreatePersistentSubscriptionCompleted.CreatePersistentSubscriptionResult:\x07Success\x12\x0e\n\x06reason\x18\x02 \x01(\t\"`\n\"CreatePersistentSubscriptionResult\x12\x0b\n\x07Success\x10\x00\x12\x11\n\rAlreadyExists\x10\x01\x12\x08\n\x04\x46\x61il\x10\x02\x12\x10\n\x0c\x41\x63\x63\x65ssDenied\x10\x03\"\x97\x02\n%DeletePersistentSubscriptionCompleted\x12}\n\x06result\x18\x01 \x02(\x0e\x32\x64.EventStore.Client.Messages.DeletePersistentSubscriptionCompleted.DeletePersistentSubscriptionResult:\x07Success\x12\x0e\n\x06reason\x18\x02 \x01(\t\"_\n\"DeletePersistentSubscriptionResult\x12\x0b\n\x07Success\x10\x00\x12\x10\n\x0c\x44oesNotExist\x10\x01\x12\x08\n\x04\x46\x61il\x10\x02\x12\x10\n\x0c\x41\x63\x63\x65ssDenied\x10\x03\"w\n\x1f\x43onnectToPersistentSubscription\x12\x17\n\x0fsubscription_id\x18\x01 \x02(\t\x12\x17\n\x0f\x65vent_stream_id\x18\x02 \x02(\t\x12\"\n\x1a\x61llowed_in_flight_messages\x18\x03 \x02(\x05\"W\n\x1fPersistentSubscriptionAckEvents\x12\x17\n\x0fsubscription_id\x18\x01 \x02(\t\x12\x1b\n\x13processed_event_ids\x18\x02 \x03(\x0c\"\x8b\x02\n\x1fPersistentSubscriptionNakEvents\x12\x17\n\x0fsubscription_id\x18\x01 \x02(\t\x12\x1b\n\x13processed_event_ids\x18\x02 \x03(\x0c\x12\x0f\n\x07message\x18\x03 \x01(\t\x12^\n\x06\x61\x63tion\x18\x04 \x02(\x0e\x32\x45.EventStore.Client.Messages.PersistentSubscriptionNakEvents.NakAction:\x07Unknown\"A\n\tNakAction\x12\x0b\n\x07Unknown\x10\x00\x12\x08\n\x04Park\x10\x01\x12\t\n\x05Retry\x10\x02\x12\x08\n\x04Skip\x10\x03\x12\x08\n\x04Stop\x10\x04\"v\n\"PersistentSubscriptionConfirmation\x12\x1c\n\x14last_commit_position\x18\x01 \x02(\x03\x12\x17\n\x0fsubscription_id\x18\x02 \x02(\t\x12\x19\n\x11last_event_number\x18\x03 \x01(\x03\"\x80\x01\n)PersistentSubscriptionStreamEventAppeared\x12?\n\x05\x65vent\x18\x01 \x02(\x0b\x32\x30.EventStore.Client.Messages.ResolvedIndexedEvent\x12\x12\n\nretryCount\x18\x02 \x01(\x05\"F\n\x11SubscribeToStream\x12\x17\n\x0f\x65vent_stream_id\x18\x01 \x02(\t\x12\x18\n\x10resolve_link_tos\x18\x02 \x02(\x08\"\x9f\x01\n\x19\x46ilteredSubscribeToStream\x12\x17\n\x0f\x65vent_stream_id\x18\x01 \x02(\t\x12\x18\n\x10resolve_link_tos\x18\x02 \x02(\x08\x12\x32\n\x06\x66ilter\x18\x03 \x02(\x0b\x32\".EventStore.Client.Messages.Filter\x12\x1b\n\x13\x63heckpoint_interval\x18\x04 \x02(\x05\"F\n\x11\x43heckpointReached\x12\x17\n\x0f\x63ommit_position\x18\x01 \x02(\x03\x12\x18\n\x10prepare_position\x18\x02 \x02(\x03\"S\n\x18SubscriptionConfirmation\x12\x1c\n\x14last_commit_position\x18\x01 \x02(\x03\x12\x19\n\x11last_event_number\x18\x02 \x01(\x03\"O\n\x13StreamEventAppeared\x12\x38\n\x05\x65vent\x18\x01 \x02(\x0b\x32).EventStore.Client.Messages.ResolvedEvent\"\x17\n\x15UnsubscribeFromStream\"\x8a\x02\n\x13SubscriptionDropped\x12\x64\n\x06reason\x18\x01 \x01(\x0e\x32\x46.EventStore.Client.Messages.SubscriptionDropped.SubscriptionDropReason:\x0cUnsubscribed\"\x8c\x01\n\x16SubscriptionDropReason\x12\x10\n\x0cUnsubscribed\x10\x00\x12\x10\n\x0c\x41\x63\x63\x65ssDenied\x10\x01\x12\x0c\n\x08NotFound\x10\x02\x12!\n\x1dPersistentSubscriptionDeleted\x10\x03\x12\x1d\n\x19SubscriberMaxCountReached\x10\x04\"\xf4\x02\n\nNotHandled\x12G\n\x06reason\x18\x01 \x02(\x0e\x32\x37.EventStore.Client.Messages.NotHandled.NotHandledReason\x12\x17\n\x0f\x61\x64\x64itional_info\x18\x02 \x01(\x0c\x1a\xb5\x01\n\nLeaderInfo\x12\x1c\n\x14\x65xternal_tcp_address\x18\x01 \x02(\t\x12\x19\n\x11\x65xternal_tcp_port\x18\x02 \x02(\x05\x12\x14\n\x0chttp_address\x18\x03 \x02(\t\x12\x11\n\thttp_port\x18\x04 \x02(\x05\x12#\n\x1b\x65xternal_secure_tcp_address\x18\x05 \x01(\t\x12 \n\x18\x65xternal_secure_tcp_port\x18\x06 \x01(\x05\"L\n\x10NotHandledReason\x12\x0c\n\x08NotReady\x10\x00\x12\x0b\n\x07TooBusy\x10\x01\x12\r\n\tNotLeader\x10\x02\x12\x0e\n\nIsReadOnly\x10\x03\"\x12\n\x10ScavengeDatabase\"\xc4\x01\n\x18ScavengeDatabaseResponse\x12S\n\x06result\x18\x01 \x02(\x0e\x32\x43.EventStore.Client.Messages.ScavengeDatabaseResponse.ScavengeResult\x12\x12\n\nscavengeId\x18\x02 \x01(\t\"?\n\x0eScavengeResult\x12\x0b\n\x07Started\x10\x00\x12\x0e\n\nInProgress\x10\x01\x12\x10\n\x0cUnauthorized\x10\x02\":\n\x0eIdentifyClient\x12\x0f\n\x07version\x18\x01 \x02(\x05\x12\x17\n\x0f\x63onnection_name\x18\x02 \x01(\t\"\x12\n\x10\x43lientIdentified*\xb0\x01\n\x0fOperationResult\x12\x0b\n\x07Success\x10\x00\x12\x12\n\x0ePrepareTimeout\x10\x01\x12\x11\n\rCommitTimeout\x10\x02\x12\x12\n\x0e\x46orwardTimeout\x10\x03\x12\x18\n\x14WrongExpectedVersion\x10\x04\x12\x11\n\rStreamDeleted\x10\x05\x12\x16\n\x12InvalidTransaction\x10\x06\x12\x10\n\x0c\x41\x63\x63\x65ssDenied\x10\x07') - -_OPERATIONRESULT = DESCRIPTOR.enum_types_by_name['OperationResult'] -OperationResult = enum_type_wrapper.EnumTypeWrapper(_OPERATIONRESULT) -Success = 0 -PrepareTimeout = 1 -CommitTimeout = 2 -ForwardTimeout = 3 -WrongExpectedVersion = 4 -StreamDeleted = 5 -InvalidTransaction = 6 -AccessDenied = 7 - - -_NEWEVENT = DESCRIPTOR.message_types_by_name['NewEvent'] -_EVENTRECORD = DESCRIPTOR.message_types_by_name['EventRecord'] -_RESOLVEDINDEXEDEVENT = DESCRIPTOR.message_types_by_name['ResolvedIndexedEvent'] -_RESOLVEDEVENT = DESCRIPTOR.message_types_by_name['ResolvedEvent'] -_WRITEEVENTS = DESCRIPTOR.message_types_by_name['WriteEvents'] -_WRITEEVENTSCOMPLETED = DESCRIPTOR.message_types_by_name['WriteEventsCompleted'] -_DELETESTREAM = DESCRIPTOR.message_types_by_name['DeleteStream'] -_DELETESTREAMCOMPLETED = DESCRIPTOR.message_types_by_name['DeleteStreamCompleted'] -_TRANSACTIONSTART = DESCRIPTOR.message_types_by_name['TransactionStart'] -_TRANSACTIONSTARTCOMPLETED = DESCRIPTOR.message_types_by_name['TransactionStartCompleted'] -_TRANSACTIONWRITE = DESCRIPTOR.message_types_by_name['TransactionWrite'] -_TRANSACTIONWRITECOMPLETED = DESCRIPTOR.message_types_by_name['TransactionWriteCompleted'] -_TRANSACTIONCOMMIT = DESCRIPTOR.message_types_by_name['TransactionCommit'] -_TRANSACTIONCOMMITCOMPLETED = DESCRIPTOR.message_types_by_name['TransactionCommitCompleted'] -_READEVENT = DESCRIPTOR.message_types_by_name['ReadEvent'] -_READEVENTCOMPLETED = DESCRIPTOR.message_types_by_name['ReadEventCompleted'] -_READSTREAMEVENTS = DESCRIPTOR.message_types_by_name['ReadStreamEvents'] -_READSTREAMEVENTSCOMPLETED = DESCRIPTOR.message_types_by_name['ReadStreamEventsCompleted'] -_READALLEVENTS = DESCRIPTOR.message_types_by_name['ReadAllEvents'] -_READALLEVENTSCOMPLETED = DESCRIPTOR.message_types_by_name['ReadAllEventsCompleted'] -_FILTER = DESCRIPTOR.message_types_by_name['Filter'] -_FILTEREDREADALLEVENTS = DESCRIPTOR.message_types_by_name['FilteredReadAllEvents'] -_FILTEREDREADALLEVENTSCOMPLETED = DESCRIPTOR.message_types_by_name['FilteredReadAllEventsCompleted'] -_CREATEPERSISTENTSUBSCRIPTION = DESCRIPTOR.message_types_by_name['CreatePersistentSubscription'] -_DELETEPERSISTENTSUBSCRIPTION = DESCRIPTOR.message_types_by_name['DeletePersistentSubscription'] -_UPDATEPERSISTENTSUBSCRIPTION = DESCRIPTOR.message_types_by_name['UpdatePersistentSubscription'] -_UPDATEPERSISTENTSUBSCRIPTIONCOMPLETED = DESCRIPTOR.message_types_by_name['UpdatePersistentSubscriptionCompleted'] -_CREATEPERSISTENTSUBSCRIPTIONCOMPLETED = DESCRIPTOR.message_types_by_name['CreatePersistentSubscriptionCompleted'] -_DELETEPERSISTENTSUBSCRIPTIONCOMPLETED = DESCRIPTOR.message_types_by_name['DeletePersistentSubscriptionCompleted'] -_CONNECTTOPERSISTENTSUBSCRIPTION = DESCRIPTOR.message_types_by_name['ConnectToPersistentSubscription'] -_PERSISTENTSUBSCRIPTIONACKEVENTS = DESCRIPTOR.message_types_by_name['PersistentSubscriptionAckEvents'] -_PERSISTENTSUBSCRIPTIONNAKEVENTS = DESCRIPTOR.message_types_by_name['PersistentSubscriptionNakEvents'] -_PERSISTENTSUBSCRIPTIONCONFIRMATION = DESCRIPTOR.message_types_by_name['PersistentSubscriptionConfirmation'] -_PERSISTENTSUBSCRIPTIONSTREAMEVENTAPPEARED = DESCRIPTOR.message_types_by_name['PersistentSubscriptionStreamEventAppeared'] -_SUBSCRIBETOSTREAM = DESCRIPTOR.message_types_by_name['SubscribeToStream'] -_FILTEREDSUBSCRIBETOSTREAM = DESCRIPTOR.message_types_by_name['FilteredSubscribeToStream'] -_CHECKPOINTREACHED = DESCRIPTOR.message_types_by_name['CheckpointReached'] -_SUBSCRIPTIONCONFIRMATION = DESCRIPTOR.message_types_by_name['SubscriptionConfirmation'] -_STREAMEVENTAPPEARED = DESCRIPTOR.message_types_by_name['StreamEventAppeared'] -_UNSUBSCRIBEFROMSTREAM = DESCRIPTOR.message_types_by_name['UnsubscribeFromStream'] -_SUBSCRIPTIONDROPPED = DESCRIPTOR.message_types_by_name['SubscriptionDropped'] -_NOTHANDLED = DESCRIPTOR.message_types_by_name['NotHandled'] -_NOTHANDLED_LEADERINFO = _NOTHANDLED.nested_types_by_name['LeaderInfo'] -_SCAVENGEDATABASE = DESCRIPTOR.message_types_by_name['ScavengeDatabase'] -_SCAVENGEDATABASERESPONSE = DESCRIPTOR.message_types_by_name['ScavengeDatabaseResponse'] -_IDENTIFYCLIENT = DESCRIPTOR.message_types_by_name['IdentifyClient'] -_CLIENTIDENTIFIED = DESCRIPTOR.message_types_by_name['ClientIdentified'] -_READEVENTCOMPLETED_READEVENTRESULT = _READEVENTCOMPLETED.enum_types_by_name['ReadEventResult'] -_READSTREAMEVENTSCOMPLETED_READSTREAMRESULT = _READSTREAMEVENTSCOMPLETED.enum_types_by_name['ReadStreamResult'] -_READALLEVENTSCOMPLETED_READALLRESULT = _READALLEVENTSCOMPLETED.enum_types_by_name['ReadAllResult'] -_FILTER_FILTERCONTEXT = _FILTER.enum_types_by_name['FilterContext'] -_FILTER_FILTERTYPE = _FILTER.enum_types_by_name['FilterType'] -_FILTEREDREADALLEVENTSCOMPLETED_FILTEREDREADALLRESULT = _FILTEREDREADALLEVENTSCOMPLETED.enum_types_by_name['FilteredReadAllResult'] -_UPDATEPERSISTENTSUBSCRIPTIONCOMPLETED_UPDATEPERSISTENTSUBSCRIPTIONRESULT = _UPDATEPERSISTENTSUBSCRIPTIONCOMPLETED.enum_types_by_name['UpdatePersistentSubscriptionResult'] -_CREATEPERSISTENTSUBSCRIPTIONCOMPLETED_CREATEPERSISTENTSUBSCRIPTIONRESULT = _CREATEPERSISTENTSUBSCRIPTIONCOMPLETED.enum_types_by_name['CreatePersistentSubscriptionResult'] -_DELETEPERSISTENTSUBSCRIPTIONCOMPLETED_DELETEPERSISTENTSUBSCRIPTIONRESULT = _DELETEPERSISTENTSUBSCRIPTIONCOMPLETED.enum_types_by_name['DeletePersistentSubscriptionResult'] -_PERSISTENTSUBSCRIPTIONNAKEVENTS_NAKACTION = _PERSISTENTSUBSCRIPTIONNAKEVENTS.enum_types_by_name['NakAction'] -_SUBSCRIPTIONDROPPED_SUBSCRIPTIONDROPREASON = _SUBSCRIPTIONDROPPED.enum_types_by_name['SubscriptionDropReason'] -_NOTHANDLED_NOTHANDLEDREASON = _NOTHANDLED.enum_types_by_name['NotHandledReason'] -_SCAVENGEDATABASERESPONSE_SCAVENGERESULT = _SCAVENGEDATABASERESPONSE.enum_types_by_name['ScavengeResult'] -NewEvent = _reflection.GeneratedProtocolMessageType('NewEvent', (_message.Message,), { - 'DESCRIPTOR' : _NEWEVENT, - '__module__' : 'messages_pb2' - # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.NewEvent) - }) -_sym_db.RegisterMessage(NewEvent) - -EventRecord = _reflection.GeneratedProtocolMessageType('EventRecord', (_message.Message,), { - 'DESCRIPTOR' : _EVENTRECORD, - '__module__' : 'messages_pb2' - # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.EventRecord) - }) -_sym_db.RegisterMessage(EventRecord) - -ResolvedIndexedEvent = _reflection.GeneratedProtocolMessageType('ResolvedIndexedEvent', (_message.Message,), { - 'DESCRIPTOR' : _RESOLVEDINDEXEDEVENT, - '__module__' : 'messages_pb2' - # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.ResolvedIndexedEvent) - }) -_sym_db.RegisterMessage(ResolvedIndexedEvent) - -ResolvedEvent = _reflection.GeneratedProtocolMessageType('ResolvedEvent', (_message.Message,), { - 'DESCRIPTOR' : _RESOLVEDEVENT, - '__module__' : 'messages_pb2' - # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.ResolvedEvent) - }) -_sym_db.RegisterMessage(ResolvedEvent) - -WriteEvents = _reflection.GeneratedProtocolMessageType('WriteEvents', (_message.Message,), { - 'DESCRIPTOR' : _WRITEEVENTS, - '__module__' : 'messages_pb2' - # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.WriteEvents) - }) -_sym_db.RegisterMessage(WriteEvents) - -WriteEventsCompleted = _reflection.GeneratedProtocolMessageType('WriteEventsCompleted', (_message.Message,), { - 'DESCRIPTOR' : _WRITEEVENTSCOMPLETED, - '__module__' : 'messages_pb2' - # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.WriteEventsCompleted) - }) -_sym_db.RegisterMessage(WriteEventsCompleted) - -DeleteStream = _reflection.GeneratedProtocolMessageType('DeleteStream', (_message.Message,), { - 'DESCRIPTOR' : _DELETESTREAM, - '__module__' : 'messages_pb2' - # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.DeleteStream) - }) -_sym_db.RegisterMessage(DeleteStream) - -DeleteStreamCompleted = _reflection.GeneratedProtocolMessageType('DeleteStreamCompleted', (_message.Message,), { - 'DESCRIPTOR' : _DELETESTREAMCOMPLETED, - '__module__' : 'messages_pb2' - # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.DeleteStreamCompleted) - }) -_sym_db.RegisterMessage(DeleteStreamCompleted) - -TransactionStart = _reflection.GeneratedProtocolMessageType('TransactionStart', (_message.Message,), { - 'DESCRIPTOR' : _TRANSACTIONSTART, - '__module__' : 'messages_pb2' - # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.TransactionStart) - }) -_sym_db.RegisterMessage(TransactionStart) - -TransactionStartCompleted = _reflection.GeneratedProtocolMessageType('TransactionStartCompleted', (_message.Message,), { - 'DESCRIPTOR' : _TRANSACTIONSTARTCOMPLETED, - '__module__' : 'messages_pb2' - # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.TransactionStartCompleted) - }) -_sym_db.RegisterMessage(TransactionStartCompleted) - -TransactionWrite = _reflection.GeneratedProtocolMessageType('TransactionWrite', (_message.Message,), { - 'DESCRIPTOR' : _TRANSACTIONWRITE, - '__module__' : 'messages_pb2' - # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.TransactionWrite) - }) -_sym_db.RegisterMessage(TransactionWrite) - -TransactionWriteCompleted = _reflection.GeneratedProtocolMessageType('TransactionWriteCompleted', (_message.Message,), { - 'DESCRIPTOR' : _TRANSACTIONWRITECOMPLETED, - '__module__' : 'messages_pb2' - # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.TransactionWriteCompleted) - }) -_sym_db.RegisterMessage(TransactionWriteCompleted) - -TransactionCommit = _reflection.GeneratedProtocolMessageType('TransactionCommit', (_message.Message,), { - 'DESCRIPTOR' : _TRANSACTIONCOMMIT, - '__module__' : 'messages_pb2' - # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.TransactionCommit) - }) -_sym_db.RegisterMessage(TransactionCommit) - -TransactionCommitCompleted = _reflection.GeneratedProtocolMessageType('TransactionCommitCompleted', (_message.Message,), { - 'DESCRIPTOR' : _TRANSACTIONCOMMITCOMPLETED, - '__module__' : 'messages_pb2' - # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.TransactionCommitCompleted) - }) -_sym_db.RegisterMessage(TransactionCommitCompleted) - -ReadEvent = _reflection.GeneratedProtocolMessageType('ReadEvent', (_message.Message,), { - 'DESCRIPTOR' : _READEVENT, - '__module__' : 'messages_pb2' - # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.ReadEvent) - }) -_sym_db.RegisterMessage(ReadEvent) - -ReadEventCompleted = _reflection.GeneratedProtocolMessageType('ReadEventCompleted', (_message.Message,), { - 'DESCRIPTOR' : _READEVENTCOMPLETED, - '__module__' : 'messages_pb2' - # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.ReadEventCompleted) - }) -_sym_db.RegisterMessage(ReadEventCompleted) - -ReadStreamEvents = _reflection.GeneratedProtocolMessageType('ReadStreamEvents', (_message.Message,), { - 'DESCRIPTOR' : _READSTREAMEVENTS, - '__module__' : 'messages_pb2' - # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.ReadStreamEvents) - }) -_sym_db.RegisterMessage(ReadStreamEvents) - -ReadStreamEventsCompleted = _reflection.GeneratedProtocolMessageType('ReadStreamEventsCompleted', (_message.Message,), { - 'DESCRIPTOR' : _READSTREAMEVENTSCOMPLETED, - '__module__' : 'messages_pb2' - # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.ReadStreamEventsCompleted) - }) -_sym_db.RegisterMessage(ReadStreamEventsCompleted) - -ReadAllEvents = _reflection.GeneratedProtocolMessageType('ReadAllEvents', (_message.Message,), { - 'DESCRIPTOR' : _READALLEVENTS, - '__module__' : 'messages_pb2' - # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.ReadAllEvents) - }) -_sym_db.RegisterMessage(ReadAllEvents) - -ReadAllEventsCompleted = _reflection.GeneratedProtocolMessageType('ReadAllEventsCompleted', (_message.Message,), { - 'DESCRIPTOR' : _READALLEVENTSCOMPLETED, - '__module__' : 'messages_pb2' - # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.ReadAllEventsCompleted) - }) -_sym_db.RegisterMessage(ReadAllEventsCompleted) - -Filter = _reflection.GeneratedProtocolMessageType('Filter', (_message.Message,), { - 'DESCRIPTOR' : _FILTER, - '__module__' : 'messages_pb2' - # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.Filter) - }) -_sym_db.RegisterMessage(Filter) - -FilteredReadAllEvents = _reflection.GeneratedProtocolMessageType('FilteredReadAllEvents', (_message.Message,), { - 'DESCRIPTOR' : _FILTEREDREADALLEVENTS, - '__module__' : 'messages_pb2' - # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.FilteredReadAllEvents) - }) -_sym_db.RegisterMessage(FilteredReadAllEvents) - -FilteredReadAllEventsCompleted = _reflection.GeneratedProtocolMessageType('FilteredReadAllEventsCompleted', (_message.Message,), { - 'DESCRIPTOR' : _FILTEREDREADALLEVENTSCOMPLETED, - '__module__' : 'messages_pb2' - # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.FilteredReadAllEventsCompleted) - }) -_sym_db.RegisterMessage(FilteredReadAllEventsCompleted) - -CreatePersistentSubscription = _reflection.GeneratedProtocolMessageType('CreatePersistentSubscription', (_message.Message,), { - 'DESCRIPTOR' : _CREATEPERSISTENTSUBSCRIPTION, - '__module__' : 'messages_pb2' - # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.CreatePersistentSubscription) - }) -_sym_db.RegisterMessage(CreatePersistentSubscription) - -DeletePersistentSubscription = _reflection.GeneratedProtocolMessageType('DeletePersistentSubscription', (_message.Message,), { - 'DESCRIPTOR' : _DELETEPERSISTENTSUBSCRIPTION, - '__module__' : 'messages_pb2' - # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.DeletePersistentSubscription) - }) -_sym_db.RegisterMessage(DeletePersistentSubscription) - -UpdatePersistentSubscription = _reflection.GeneratedProtocolMessageType('UpdatePersistentSubscription', (_message.Message,), { - 'DESCRIPTOR' : _UPDATEPERSISTENTSUBSCRIPTION, - '__module__' : 'messages_pb2' - # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.UpdatePersistentSubscription) - }) -_sym_db.RegisterMessage(UpdatePersistentSubscription) - -UpdatePersistentSubscriptionCompleted = _reflection.GeneratedProtocolMessageType('UpdatePersistentSubscriptionCompleted', (_message.Message,), { - 'DESCRIPTOR' : _UPDATEPERSISTENTSUBSCRIPTIONCOMPLETED, - '__module__' : 'messages_pb2' - # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.UpdatePersistentSubscriptionCompleted) - }) -_sym_db.RegisterMessage(UpdatePersistentSubscriptionCompleted) - -CreatePersistentSubscriptionCompleted = _reflection.GeneratedProtocolMessageType('CreatePersistentSubscriptionCompleted', (_message.Message,), { - 'DESCRIPTOR' : _CREATEPERSISTENTSUBSCRIPTIONCOMPLETED, - '__module__' : 'messages_pb2' - # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.CreatePersistentSubscriptionCompleted) - }) -_sym_db.RegisterMessage(CreatePersistentSubscriptionCompleted) - -DeletePersistentSubscriptionCompleted = _reflection.GeneratedProtocolMessageType('DeletePersistentSubscriptionCompleted', (_message.Message,), { - 'DESCRIPTOR' : _DELETEPERSISTENTSUBSCRIPTIONCOMPLETED, - '__module__' : 'messages_pb2' - # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.DeletePersistentSubscriptionCompleted) - }) -_sym_db.RegisterMessage(DeletePersistentSubscriptionCompleted) - -ConnectToPersistentSubscription = _reflection.GeneratedProtocolMessageType('ConnectToPersistentSubscription', (_message.Message,), { - 'DESCRIPTOR' : _CONNECTTOPERSISTENTSUBSCRIPTION, - '__module__' : 'messages_pb2' - # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.ConnectToPersistentSubscription) - }) -_sym_db.RegisterMessage(ConnectToPersistentSubscription) - -PersistentSubscriptionAckEvents = _reflection.GeneratedProtocolMessageType('PersistentSubscriptionAckEvents', (_message.Message,), { - 'DESCRIPTOR' : _PERSISTENTSUBSCRIPTIONACKEVENTS, - '__module__' : 'messages_pb2' - # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.PersistentSubscriptionAckEvents) - }) -_sym_db.RegisterMessage(PersistentSubscriptionAckEvents) - -PersistentSubscriptionNakEvents = _reflection.GeneratedProtocolMessageType('PersistentSubscriptionNakEvents', (_message.Message,), { - 'DESCRIPTOR' : _PERSISTENTSUBSCRIPTIONNAKEVENTS, - '__module__' : 'messages_pb2' - # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.PersistentSubscriptionNakEvents) - }) -_sym_db.RegisterMessage(PersistentSubscriptionNakEvents) - -PersistentSubscriptionConfirmation = _reflection.GeneratedProtocolMessageType('PersistentSubscriptionConfirmation', (_message.Message,), { - 'DESCRIPTOR' : _PERSISTENTSUBSCRIPTIONCONFIRMATION, - '__module__' : 'messages_pb2' - # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.PersistentSubscriptionConfirmation) - }) -_sym_db.RegisterMessage(PersistentSubscriptionConfirmation) - -PersistentSubscriptionStreamEventAppeared = _reflection.GeneratedProtocolMessageType('PersistentSubscriptionStreamEventAppeared', (_message.Message,), { - 'DESCRIPTOR' : _PERSISTENTSUBSCRIPTIONSTREAMEVENTAPPEARED, - '__module__' : 'messages_pb2' - # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.PersistentSubscriptionStreamEventAppeared) - }) -_sym_db.RegisterMessage(PersistentSubscriptionStreamEventAppeared) - -SubscribeToStream = _reflection.GeneratedProtocolMessageType('SubscribeToStream', (_message.Message,), { - 'DESCRIPTOR' : _SUBSCRIBETOSTREAM, - '__module__' : 'messages_pb2' - # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.SubscribeToStream) - }) -_sym_db.RegisterMessage(SubscribeToStream) - -FilteredSubscribeToStream = _reflection.GeneratedProtocolMessageType('FilteredSubscribeToStream', (_message.Message,), { - 'DESCRIPTOR' : _FILTEREDSUBSCRIBETOSTREAM, - '__module__' : 'messages_pb2' - # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.FilteredSubscribeToStream) - }) -_sym_db.RegisterMessage(FilteredSubscribeToStream) - -CheckpointReached = _reflection.GeneratedProtocolMessageType('CheckpointReached', (_message.Message,), { - 'DESCRIPTOR' : _CHECKPOINTREACHED, - '__module__' : 'messages_pb2' - # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.CheckpointReached) - }) -_sym_db.RegisterMessage(CheckpointReached) - -SubscriptionConfirmation = _reflection.GeneratedProtocolMessageType('SubscriptionConfirmation', (_message.Message,), { - 'DESCRIPTOR' : _SUBSCRIPTIONCONFIRMATION, - '__module__' : 'messages_pb2' - # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.SubscriptionConfirmation) - }) -_sym_db.RegisterMessage(SubscriptionConfirmation) - -StreamEventAppeared = _reflection.GeneratedProtocolMessageType('StreamEventAppeared', (_message.Message,), { - 'DESCRIPTOR' : _STREAMEVENTAPPEARED, - '__module__' : 'messages_pb2' - # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.StreamEventAppeared) - }) -_sym_db.RegisterMessage(StreamEventAppeared) - -UnsubscribeFromStream = _reflection.GeneratedProtocolMessageType('UnsubscribeFromStream', (_message.Message,), { - 'DESCRIPTOR' : _UNSUBSCRIBEFROMSTREAM, - '__module__' : 'messages_pb2' - # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.UnsubscribeFromStream) - }) -_sym_db.RegisterMessage(UnsubscribeFromStream) - -SubscriptionDropped = _reflection.GeneratedProtocolMessageType('SubscriptionDropped', (_message.Message,), { - 'DESCRIPTOR' : _SUBSCRIPTIONDROPPED, - '__module__' : 'messages_pb2' - # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.SubscriptionDropped) - }) -_sym_db.RegisterMessage(SubscriptionDropped) - -NotHandled = _reflection.GeneratedProtocolMessageType('NotHandled', (_message.Message,), { - - 'LeaderInfo' : _reflection.GeneratedProtocolMessageType('LeaderInfo', (_message.Message,), { - 'DESCRIPTOR' : _NOTHANDLED_LEADERINFO, - '__module__' : 'messages_pb2' - # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.NotHandled.LeaderInfo) - }) - , - 'DESCRIPTOR' : _NOTHANDLED, - '__module__' : 'messages_pb2' - # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.NotHandled) - }) -_sym_db.RegisterMessage(NotHandled) -_sym_db.RegisterMessage(NotHandled.LeaderInfo) - -ScavengeDatabase = _reflection.GeneratedProtocolMessageType('ScavengeDatabase', (_message.Message,), { - 'DESCRIPTOR' : _SCAVENGEDATABASE, - '__module__' : 'messages_pb2' - # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.ScavengeDatabase) - }) -_sym_db.RegisterMessage(ScavengeDatabase) - -ScavengeDatabaseResponse = _reflection.GeneratedProtocolMessageType('ScavengeDatabaseResponse', (_message.Message,), { - 'DESCRIPTOR' : _SCAVENGEDATABASERESPONSE, - '__module__' : 'messages_pb2' - # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.ScavengeDatabaseResponse) - }) -_sym_db.RegisterMessage(ScavengeDatabaseResponse) - -IdentifyClient = _reflection.GeneratedProtocolMessageType('IdentifyClient', (_message.Message,), { - 'DESCRIPTOR' : _IDENTIFYCLIENT, - '__module__' : 'messages_pb2' - # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.IdentifyClient) - }) -_sym_db.RegisterMessage(IdentifyClient) - -ClientIdentified = _reflection.GeneratedProtocolMessageType('ClientIdentified', (_message.Message,), { - 'DESCRIPTOR' : _CLIENTIDENTIFIED, - '__module__' : 'messages_pb2' - # @@protoc_insertion_point(class_scope:EventStore.Client.Messages.ClientIdentified) - }) -_sym_db.RegisterMessage(ClientIdentified) - -if _descriptor._USE_C_DESCRIPTORS == False: - - DESCRIPTOR._options = None - _OPERATIONRESULT._serialized_start=8621 - _OPERATIONRESULT._serialized_end=8797 - _NEWEVENT._serialized_start=47 - _NEWEVENT._serialized_end=185 - _EVENTRECORD._serialized_start=188 - _EVENTRECORD._serialized_end=416 - _RESOLVEDINDEXEDEVENT._serialized_start=419 - _RESOLVEDINDEXEDEVENT._serialized_end=552 - _RESOLVEDEVENT._serialized_start=555 - _RESOLVEDEVENT._serialized_end=732 - _WRITEEVENTS._serialized_start=735 - _WRITEEVENTS._serialized_end=877 - _WRITEEVENTSCOMPLETED._serialized_start=880 - _WRITEEVENTSCOMPLETED._serialized_end=1111 - _DELETESTREAM._serialized_start=1113 - _DELETESTREAM._serialized_end=1223 - _DELETESTREAMCOMPLETED._serialized_start=1226 - _DELETESTREAMCOMPLETED._serialized_end=1378 - _TRANSACTIONSTART._serialized_start=1380 - _TRANSACTIONSTART._serialized_end=1473 - _TRANSACTIONSTARTCOMPLETED._serialized_start=1476 - _TRANSACTIONSTARTCOMPLETED._serialized_end=1605 - _TRANSACTIONWRITE._serialized_start=1607 - _TRANSACTIONWRITE._serialized_end=1727 - _TRANSACTIONWRITECOMPLETED._serialized_start=1730 - _TRANSACTIONWRITECOMPLETED._serialized_end=1859 - _TRANSACTIONCOMMIT._serialized_start=1861 - _TRANSACTIONCOMMIT._serialized_end=1928 - _TRANSACTIONCOMMITCOMPLETED._serialized_start=1931 - _TRANSACTIONCOMMITCOMPLETED._serialized_end=2167 - _READEVENT._serialized_start=2169 - _READEVENT._serialized_end=2277 - _READEVENTCOMPLETED._serialized_start=2280 - _READEVENTCOMPLETED._serialized_end=2568 - _READEVENTCOMPLETED_READEVENTRESULT._serialized_start=2462 - _READEVENTCOMPLETED_READEVENTRESULT._serialized_end=2568 - _READSTREAMEVENTS._serialized_start=2571 - _READSTREAMEVENTS._serialized_end=2710 - _READSTREAMEVENTSCOMPLETED._serialized_start=2713 - _READSTREAMEVENTSCOMPLETED._serialized_end=3131 - _READSTREAMEVENTSCOMPLETED_READSTREAMRESULT._serialized_start=3021 - _READSTREAMEVENTSCOMPLETED_READSTREAMRESULT._serialized_end=3131 - _READALLEVENTS._serialized_start=3134 - _READALLEVENTS._serialized_end=3269 - _READALLEVENTSCOMPLETED._serialized_start=3272 - _READALLEVENTSCOMPLETED._serialized_end=3649 - _READALLEVENTSCOMPLETED_READALLRESULT._serialized_start=3575 - _READALLEVENTSCOMPLETED_READALLRESULT._serialized_end=3649 - _FILTER._serialized_start=3652 - _FILTER._serialized_end=3885 - _FILTER_FILTERCONTEXT._serialized_start=3804 - _FILTER_FILTERCONTEXT._serialized_end=3848 - _FILTER_FILTERTYPE._serialized_start=3850 - _FILTER_FILTERTYPE._serialized_end=3885 - _FILTEREDREADALLEVENTS._serialized_start=3888 - _FILTEREDREADALLEVENTS._serialized_end=4110 - _FILTEREDREADALLEVENTSCOMPLETED._serialized_start=4113 - _FILTEREDREADALLEVENTSCOMPLETED._serialized_end=4548 - _FILTEREDREADALLEVENTSCOMPLETED_FILTEREDREADALLRESULT._serialized_start=4466 - _FILTEREDREADALLEVENTSCOMPLETED_FILTEREDREADALLRESULT._serialized_end=4548 - _CREATEPERSISTENTSUBSCRIPTION._serialized_start=4551 - _CREATEPERSISTENTSUBSCRIPTION._serialized_end=5029 - _DELETEPERSISTENTSUBSCRIPTION._serialized_start=5031 - _DELETEPERSISTENTSUBSCRIPTION._serialized_end=5119 - _UPDATEPERSISTENTSUBSCRIPTION._serialized_start=5122 - _UPDATEPERSISTENTSUBSCRIPTION._serialized_end=5600 - _UPDATEPERSISTENTSUBSCRIPTIONCOMPLETED._serialized_start=5603 - _UPDATEPERSISTENTSUBSCRIPTIONCOMPLETED._serialized_end=5882 - _UPDATEPERSISTENTSUBSCRIPTIONCOMPLETED_UPDATEPERSISTENTSUBSCRIPTIONRESULT._serialized_start=5787 - _UPDATEPERSISTENTSUBSCRIPTIONCOMPLETED_UPDATEPERSISTENTSUBSCRIPTIONRESULT._serialized_end=5882 - _CREATEPERSISTENTSUBSCRIPTIONCOMPLETED._serialized_start=5885 - _CREATEPERSISTENTSUBSCRIPTIONCOMPLETED._serialized_end=6165 - _CREATEPERSISTENTSUBSCRIPTIONCOMPLETED_CREATEPERSISTENTSUBSCRIPTIONRESULT._serialized_start=6069 - _CREATEPERSISTENTSUBSCRIPTIONCOMPLETED_CREATEPERSISTENTSUBSCRIPTIONRESULT._serialized_end=6165 - _DELETEPERSISTENTSUBSCRIPTIONCOMPLETED._serialized_start=6168 - _DELETEPERSISTENTSUBSCRIPTIONCOMPLETED._serialized_end=6447 - _DELETEPERSISTENTSUBSCRIPTIONCOMPLETED_DELETEPERSISTENTSUBSCRIPTIONRESULT._serialized_start=6352 - _DELETEPERSISTENTSUBSCRIPTIONCOMPLETED_DELETEPERSISTENTSUBSCRIPTIONRESULT._serialized_end=6447 - _CONNECTTOPERSISTENTSUBSCRIPTION._serialized_start=6449 - _CONNECTTOPERSISTENTSUBSCRIPTION._serialized_end=6568 - _PERSISTENTSUBSCRIPTIONACKEVENTS._serialized_start=6570 - _PERSISTENTSUBSCRIPTIONACKEVENTS._serialized_end=6657 - _PERSISTENTSUBSCRIPTIONNAKEVENTS._serialized_start=6660 - _PERSISTENTSUBSCRIPTIONNAKEVENTS._serialized_end=6927 - _PERSISTENTSUBSCRIPTIONNAKEVENTS_NAKACTION._serialized_start=6862 - _PERSISTENTSUBSCRIPTIONNAKEVENTS_NAKACTION._serialized_end=6927 - _PERSISTENTSUBSCRIPTIONCONFIRMATION._serialized_start=6929 - _PERSISTENTSUBSCRIPTIONCONFIRMATION._serialized_end=7047 - _PERSISTENTSUBSCRIPTIONSTREAMEVENTAPPEARED._serialized_start=7050 - _PERSISTENTSUBSCRIPTIONSTREAMEVENTAPPEARED._serialized_end=7178 - _SUBSCRIBETOSTREAM._serialized_start=7180 - _SUBSCRIBETOSTREAM._serialized_end=7250 - _FILTEREDSUBSCRIBETOSTREAM._serialized_start=7253 - _FILTEREDSUBSCRIBETOSTREAM._serialized_end=7412 - _CHECKPOINTREACHED._serialized_start=7414 - _CHECKPOINTREACHED._serialized_end=7484 - _SUBSCRIPTIONCONFIRMATION._serialized_start=7486 - _SUBSCRIPTIONCONFIRMATION._serialized_end=7569 - _STREAMEVENTAPPEARED._serialized_start=7571 - _STREAMEVENTAPPEARED._serialized_end=7650 - _UNSUBSCRIBEFROMSTREAM._serialized_start=7652 - _UNSUBSCRIBEFROMSTREAM._serialized_end=7675 - _SUBSCRIPTIONDROPPED._serialized_start=7678 - _SUBSCRIPTIONDROPPED._serialized_end=7944 - _SUBSCRIPTIONDROPPED_SUBSCRIPTIONDROPREASON._serialized_start=7804 - _SUBSCRIPTIONDROPPED_SUBSCRIPTIONDROPREASON._serialized_end=7944 - _NOTHANDLED._serialized_start=7947 - _NOTHANDLED._serialized_end=8319 - _NOTHANDLED_LEADERINFO._serialized_start=8060 - _NOTHANDLED_LEADERINFO._serialized_end=8241 - _NOTHANDLED_NOTHANDLEDREASON._serialized_start=8243 - _NOTHANDLED_NOTHANDLEDREASON._serialized_end=8319 - _SCAVENGEDATABASE._serialized_start=8321 - _SCAVENGEDATABASE._serialized_end=8339 - _SCAVENGEDATABASERESPONSE._serialized_start=8342 - _SCAVENGEDATABASERESPONSE._serialized_end=8538 - _SCAVENGEDATABASERESPONSE_SCAVENGERESULT._serialized_start=8475 - _SCAVENGEDATABASERESPONSE_SCAVENGERESULT._serialized_end=8538 - _IDENTIFYCLIENT._serialized_start=8540 - _IDENTIFYCLIENT._serialized_end=8598 - _CLIENTIDENTIFIED._serialized_start=8600 - _CLIENTIDENTIFIED._serialized_end=8618 -# @@protoc_insertion_point(module_scope) diff --git a/messages_pb2.pyi b/messages_pb2.pyi deleted file mode 100644 index f87ac11..0000000 --- a/messages_pb2.pyi +++ /dev/null @@ -1,1260 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" -import builtins -import google.protobuf.descriptor -import google.protobuf.internal.containers -import google.protobuf.internal.enum_type_wrapper -import google.protobuf.message -import typing -import typing_extensions - -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor - -class _OperationResult: - ValueType = typing.NewType('ValueType', builtins.int) - V: typing_extensions.TypeAlias = ValueType -class _OperationResultEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_OperationResult.ValueType], builtins.type): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor - Success: _OperationResult.ValueType # 0 - PrepareTimeout: _OperationResult.ValueType # 1 - CommitTimeout: _OperationResult.ValueType # 2 - ForwardTimeout: _OperationResult.ValueType # 3 - WrongExpectedVersion: _OperationResult.ValueType # 4 - StreamDeleted: _OperationResult.ValueType # 5 - InvalidTransaction: _OperationResult.ValueType # 6 - AccessDenied: _OperationResult.ValueType # 7 -class OperationResult(_OperationResult, metaclass=_OperationResultEnumTypeWrapper): - pass - -Success: OperationResult.ValueType # 0 -PrepareTimeout: OperationResult.ValueType # 1 -CommitTimeout: OperationResult.ValueType # 2 -ForwardTimeout: OperationResult.ValueType # 3 -WrongExpectedVersion: OperationResult.ValueType # 4 -StreamDeleted: OperationResult.ValueType # 5 -InvalidTransaction: OperationResult.ValueType # 6 -AccessDenied: OperationResult.ValueType # 7 -global___OperationResult = OperationResult - - -class NewEvent(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - EVENT_ID_FIELD_NUMBER: builtins.int - EVENT_TYPE_FIELD_NUMBER: builtins.int - DATA_CONTENT_TYPE_FIELD_NUMBER: builtins.int - METADATA_CONTENT_TYPE_FIELD_NUMBER: builtins.int - DATA_FIELD_NUMBER: builtins.int - METADATA_FIELD_NUMBER: builtins.int - event_id: builtins.bytes - event_type: typing.Text - data_content_type: builtins.int - metadata_content_type: builtins.int - data: builtins.bytes - metadata: builtins.bytes - def __init__(self, - *, - event_id: typing.Optional[builtins.bytes] = ..., - event_type: typing.Optional[typing.Text] = ..., - data_content_type: typing.Optional[builtins.int] = ..., - metadata_content_type: typing.Optional[builtins.int] = ..., - data: typing.Optional[builtins.bytes] = ..., - metadata: typing.Optional[builtins.bytes] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["data",b"data","data_content_type",b"data_content_type","event_id",b"event_id","event_type",b"event_type","metadata",b"metadata","metadata_content_type",b"metadata_content_type"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["data",b"data","data_content_type",b"data_content_type","event_id",b"event_id","event_type",b"event_type","metadata",b"metadata","metadata_content_type",b"metadata_content_type"]) -> None: ... -global___NewEvent = NewEvent - -class EventRecord(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - EVENT_STREAM_ID_FIELD_NUMBER: builtins.int - EVENT_NUMBER_FIELD_NUMBER: builtins.int - EVENT_ID_FIELD_NUMBER: builtins.int - EVENT_TYPE_FIELD_NUMBER: builtins.int - DATA_CONTENT_TYPE_FIELD_NUMBER: builtins.int - METADATA_CONTENT_TYPE_FIELD_NUMBER: builtins.int - DATA_FIELD_NUMBER: builtins.int - METADATA_FIELD_NUMBER: builtins.int - CREATED_FIELD_NUMBER: builtins.int - CREATED_EPOCH_FIELD_NUMBER: builtins.int - event_stream_id: typing.Text - event_number: builtins.int - event_id: builtins.bytes - event_type: typing.Text - data_content_type: builtins.int - metadata_content_type: builtins.int - data: builtins.bytes - metadata: builtins.bytes - created: builtins.int - created_epoch: builtins.int - def __init__(self, - *, - event_stream_id: typing.Optional[typing.Text] = ..., - event_number: typing.Optional[builtins.int] = ..., - event_id: typing.Optional[builtins.bytes] = ..., - event_type: typing.Optional[typing.Text] = ..., - data_content_type: typing.Optional[builtins.int] = ..., - metadata_content_type: typing.Optional[builtins.int] = ..., - data: typing.Optional[builtins.bytes] = ..., - metadata: typing.Optional[builtins.bytes] = ..., - created: typing.Optional[builtins.int] = ..., - created_epoch: typing.Optional[builtins.int] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["created",b"created","created_epoch",b"created_epoch","data",b"data","data_content_type",b"data_content_type","event_id",b"event_id","event_number",b"event_number","event_stream_id",b"event_stream_id","event_type",b"event_type","metadata",b"metadata","metadata_content_type",b"metadata_content_type"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["created",b"created","created_epoch",b"created_epoch","data",b"data","data_content_type",b"data_content_type","event_id",b"event_id","event_number",b"event_number","event_stream_id",b"event_stream_id","event_type",b"event_type","metadata",b"metadata","metadata_content_type",b"metadata_content_type"]) -> None: ... -global___EventRecord = EventRecord - -class ResolvedIndexedEvent(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - EVENT_FIELD_NUMBER: builtins.int - LINK_FIELD_NUMBER: builtins.int - @property - def event(self) -> global___EventRecord: ... - @property - def link(self) -> global___EventRecord: ... - def __init__(self, - *, - event: typing.Optional[global___EventRecord] = ..., - link: typing.Optional[global___EventRecord] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["event",b"event","link",b"link"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["event",b"event","link",b"link"]) -> None: ... -global___ResolvedIndexedEvent = ResolvedIndexedEvent - -class ResolvedEvent(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - EVENT_FIELD_NUMBER: builtins.int - LINK_FIELD_NUMBER: builtins.int - COMMIT_POSITION_FIELD_NUMBER: builtins.int - PREPARE_POSITION_FIELD_NUMBER: builtins.int - @property - def event(self) -> global___EventRecord: ... - @property - def link(self) -> global___EventRecord: ... - commit_position: builtins.int - prepare_position: builtins.int - def __init__(self, - *, - event: typing.Optional[global___EventRecord] = ..., - link: typing.Optional[global___EventRecord] = ..., - commit_position: typing.Optional[builtins.int] = ..., - prepare_position: typing.Optional[builtins.int] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["commit_position",b"commit_position","event",b"event","link",b"link","prepare_position",b"prepare_position"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["commit_position",b"commit_position","event",b"event","link",b"link","prepare_position",b"prepare_position"]) -> None: ... -global___ResolvedEvent = ResolvedEvent - -class WriteEvents(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - EVENT_STREAM_ID_FIELD_NUMBER: builtins.int - EXPECTED_VERSION_FIELD_NUMBER: builtins.int - EVENTS_FIELD_NUMBER: builtins.int - REQUIRE_LEADER_FIELD_NUMBER: builtins.int - event_stream_id: typing.Text - expected_version: builtins.int - @property - def events(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___NewEvent]: ... - require_leader: builtins.bool - def __init__(self, - *, - event_stream_id: typing.Optional[typing.Text] = ..., - expected_version: typing.Optional[builtins.int] = ..., - events: typing.Optional[typing.Iterable[global___NewEvent]] = ..., - require_leader: typing.Optional[builtins.bool] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["event_stream_id",b"event_stream_id","expected_version",b"expected_version","require_leader",b"require_leader"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["event_stream_id",b"event_stream_id","events",b"events","expected_version",b"expected_version","require_leader",b"require_leader"]) -> None: ... -global___WriteEvents = WriteEvents - -class WriteEventsCompleted(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - RESULT_FIELD_NUMBER: builtins.int - MESSAGE_FIELD_NUMBER: builtins.int - FIRST_EVENT_NUMBER_FIELD_NUMBER: builtins.int - LAST_EVENT_NUMBER_FIELD_NUMBER: builtins.int - PREPARE_POSITION_FIELD_NUMBER: builtins.int - COMMIT_POSITION_FIELD_NUMBER: builtins.int - CURRENT_VERSION_FIELD_NUMBER: builtins.int - result: global___OperationResult.ValueType - message: typing.Text - first_event_number: builtins.int - last_event_number: builtins.int - prepare_position: builtins.int - commit_position: builtins.int - current_version: builtins.int - def __init__(self, - *, - result: typing.Optional[global___OperationResult.ValueType] = ..., - message: typing.Optional[typing.Text] = ..., - first_event_number: typing.Optional[builtins.int] = ..., - last_event_number: typing.Optional[builtins.int] = ..., - prepare_position: typing.Optional[builtins.int] = ..., - commit_position: typing.Optional[builtins.int] = ..., - current_version: typing.Optional[builtins.int] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["commit_position",b"commit_position","current_version",b"current_version","first_event_number",b"first_event_number","last_event_number",b"last_event_number","message",b"message","prepare_position",b"prepare_position","result",b"result"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["commit_position",b"commit_position","current_version",b"current_version","first_event_number",b"first_event_number","last_event_number",b"last_event_number","message",b"message","prepare_position",b"prepare_position","result",b"result"]) -> None: ... -global___WriteEventsCompleted = WriteEventsCompleted - -class DeleteStream(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - EVENT_STREAM_ID_FIELD_NUMBER: builtins.int - EXPECTED_VERSION_FIELD_NUMBER: builtins.int - REQUIRE_LEADER_FIELD_NUMBER: builtins.int - HARD_DELETE_FIELD_NUMBER: builtins.int - event_stream_id: typing.Text - expected_version: builtins.int - require_leader: builtins.bool - hard_delete: builtins.bool - def __init__(self, - *, - event_stream_id: typing.Optional[typing.Text] = ..., - expected_version: typing.Optional[builtins.int] = ..., - require_leader: typing.Optional[builtins.bool] = ..., - hard_delete: typing.Optional[builtins.bool] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["event_stream_id",b"event_stream_id","expected_version",b"expected_version","hard_delete",b"hard_delete","require_leader",b"require_leader"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["event_stream_id",b"event_stream_id","expected_version",b"expected_version","hard_delete",b"hard_delete","require_leader",b"require_leader"]) -> None: ... -global___DeleteStream = DeleteStream - -class DeleteStreamCompleted(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - RESULT_FIELD_NUMBER: builtins.int - MESSAGE_FIELD_NUMBER: builtins.int - PREPARE_POSITION_FIELD_NUMBER: builtins.int - COMMIT_POSITION_FIELD_NUMBER: builtins.int - result: global___OperationResult.ValueType - message: typing.Text - prepare_position: builtins.int - commit_position: builtins.int - def __init__(self, - *, - result: typing.Optional[global___OperationResult.ValueType] = ..., - message: typing.Optional[typing.Text] = ..., - prepare_position: typing.Optional[builtins.int] = ..., - commit_position: typing.Optional[builtins.int] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["commit_position",b"commit_position","message",b"message","prepare_position",b"prepare_position","result",b"result"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["commit_position",b"commit_position","message",b"message","prepare_position",b"prepare_position","result",b"result"]) -> None: ... -global___DeleteStreamCompleted = DeleteStreamCompleted - -class TransactionStart(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - EVENT_STREAM_ID_FIELD_NUMBER: builtins.int - EXPECTED_VERSION_FIELD_NUMBER: builtins.int - REQUIRE_LEADER_FIELD_NUMBER: builtins.int - event_stream_id: typing.Text - expected_version: builtins.int - require_leader: builtins.bool - def __init__(self, - *, - event_stream_id: typing.Optional[typing.Text] = ..., - expected_version: typing.Optional[builtins.int] = ..., - require_leader: typing.Optional[builtins.bool] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["event_stream_id",b"event_stream_id","expected_version",b"expected_version","require_leader",b"require_leader"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["event_stream_id",b"event_stream_id","expected_version",b"expected_version","require_leader",b"require_leader"]) -> None: ... -global___TransactionStart = TransactionStart - -class TransactionStartCompleted(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - TRANSACTION_ID_FIELD_NUMBER: builtins.int - RESULT_FIELD_NUMBER: builtins.int - MESSAGE_FIELD_NUMBER: builtins.int - transaction_id: builtins.int - result: global___OperationResult.ValueType - message: typing.Text - def __init__(self, - *, - transaction_id: typing.Optional[builtins.int] = ..., - result: typing.Optional[global___OperationResult.ValueType] = ..., - message: typing.Optional[typing.Text] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["message",b"message","result",b"result","transaction_id",b"transaction_id"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["message",b"message","result",b"result","transaction_id",b"transaction_id"]) -> None: ... -global___TransactionStartCompleted = TransactionStartCompleted - -class TransactionWrite(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - TRANSACTION_ID_FIELD_NUMBER: builtins.int - EVENTS_FIELD_NUMBER: builtins.int - REQUIRE_LEADER_FIELD_NUMBER: builtins.int - transaction_id: builtins.int - @property - def events(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___NewEvent]: ... - require_leader: builtins.bool - def __init__(self, - *, - transaction_id: typing.Optional[builtins.int] = ..., - events: typing.Optional[typing.Iterable[global___NewEvent]] = ..., - require_leader: typing.Optional[builtins.bool] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["require_leader",b"require_leader","transaction_id",b"transaction_id"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["events",b"events","require_leader",b"require_leader","transaction_id",b"transaction_id"]) -> None: ... -global___TransactionWrite = TransactionWrite - -class TransactionWriteCompleted(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - TRANSACTION_ID_FIELD_NUMBER: builtins.int - RESULT_FIELD_NUMBER: builtins.int - MESSAGE_FIELD_NUMBER: builtins.int - transaction_id: builtins.int - result: global___OperationResult.ValueType - message: typing.Text - def __init__(self, - *, - transaction_id: typing.Optional[builtins.int] = ..., - result: typing.Optional[global___OperationResult.ValueType] = ..., - message: typing.Optional[typing.Text] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["message",b"message","result",b"result","transaction_id",b"transaction_id"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["message",b"message","result",b"result","transaction_id",b"transaction_id"]) -> None: ... -global___TransactionWriteCompleted = TransactionWriteCompleted - -class TransactionCommit(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - TRANSACTION_ID_FIELD_NUMBER: builtins.int - REQUIRE_LEADER_FIELD_NUMBER: builtins.int - transaction_id: builtins.int - require_leader: builtins.bool - def __init__(self, - *, - transaction_id: typing.Optional[builtins.int] = ..., - require_leader: typing.Optional[builtins.bool] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["require_leader",b"require_leader","transaction_id",b"transaction_id"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["require_leader",b"require_leader","transaction_id",b"transaction_id"]) -> None: ... -global___TransactionCommit = TransactionCommit - -class TransactionCommitCompleted(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - TRANSACTION_ID_FIELD_NUMBER: builtins.int - RESULT_FIELD_NUMBER: builtins.int - MESSAGE_FIELD_NUMBER: builtins.int - FIRST_EVENT_NUMBER_FIELD_NUMBER: builtins.int - LAST_EVENT_NUMBER_FIELD_NUMBER: builtins.int - PREPARE_POSITION_FIELD_NUMBER: builtins.int - COMMIT_POSITION_FIELD_NUMBER: builtins.int - transaction_id: builtins.int - result: global___OperationResult.ValueType - message: typing.Text - first_event_number: builtins.int - last_event_number: builtins.int - prepare_position: builtins.int - commit_position: builtins.int - def __init__(self, - *, - transaction_id: typing.Optional[builtins.int] = ..., - result: typing.Optional[global___OperationResult.ValueType] = ..., - message: typing.Optional[typing.Text] = ..., - first_event_number: typing.Optional[builtins.int] = ..., - last_event_number: typing.Optional[builtins.int] = ..., - prepare_position: typing.Optional[builtins.int] = ..., - commit_position: typing.Optional[builtins.int] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["commit_position",b"commit_position","first_event_number",b"first_event_number","last_event_number",b"last_event_number","message",b"message","prepare_position",b"prepare_position","result",b"result","transaction_id",b"transaction_id"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["commit_position",b"commit_position","first_event_number",b"first_event_number","last_event_number",b"last_event_number","message",b"message","prepare_position",b"prepare_position","result",b"result","transaction_id",b"transaction_id"]) -> None: ... -global___TransactionCommitCompleted = TransactionCommitCompleted - -class ReadEvent(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - EVENT_STREAM_ID_FIELD_NUMBER: builtins.int - EVENT_NUMBER_FIELD_NUMBER: builtins.int - RESOLVE_LINK_TOS_FIELD_NUMBER: builtins.int - REQUIRE_LEADER_FIELD_NUMBER: builtins.int - event_stream_id: typing.Text - event_number: builtins.int - resolve_link_tos: builtins.bool - require_leader: builtins.bool - def __init__(self, - *, - event_stream_id: typing.Optional[typing.Text] = ..., - event_number: typing.Optional[builtins.int] = ..., - resolve_link_tos: typing.Optional[builtins.bool] = ..., - require_leader: typing.Optional[builtins.bool] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["event_number",b"event_number","event_stream_id",b"event_stream_id","require_leader",b"require_leader","resolve_link_tos",b"resolve_link_tos"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["event_number",b"event_number","event_stream_id",b"event_stream_id","require_leader",b"require_leader","resolve_link_tos",b"resolve_link_tos"]) -> None: ... -global___ReadEvent = ReadEvent - -class ReadEventCompleted(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - class _ReadEventResult: - ValueType = typing.NewType('ValueType', builtins.int) - V: typing_extensions.TypeAlias = ValueType - class _ReadEventResultEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[ReadEventCompleted._ReadEventResult.ValueType], builtins.type): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor - Success: ReadEventCompleted._ReadEventResult.ValueType # 0 - NotFound: ReadEventCompleted._ReadEventResult.ValueType # 1 - NoStream: ReadEventCompleted._ReadEventResult.ValueType # 2 - StreamDeleted: ReadEventCompleted._ReadEventResult.ValueType # 3 - Error: ReadEventCompleted._ReadEventResult.ValueType # 4 - AccessDenied: ReadEventCompleted._ReadEventResult.ValueType # 5 - class ReadEventResult(_ReadEventResult, metaclass=_ReadEventResultEnumTypeWrapper): - pass - - Success: ReadEventCompleted.ReadEventResult.ValueType # 0 - NotFound: ReadEventCompleted.ReadEventResult.ValueType # 1 - NoStream: ReadEventCompleted.ReadEventResult.ValueType # 2 - StreamDeleted: ReadEventCompleted.ReadEventResult.ValueType # 3 - Error: ReadEventCompleted.ReadEventResult.ValueType # 4 - AccessDenied: ReadEventCompleted.ReadEventResult.ValueType # 5 - - RESULT_FIELD_NUMBER: builtins.int - EVENT_FIELD_NUMBER: builtins.int - ERROR_FIELD_NUMBER: builtins.int - result: global___ReadEventCompleted.ReadEventResult.ValueType - @property - def event(self) -> global___ResolvedIndexedEvent: ... - error: typing.Text - def __init__(self, - *, - result: typing.Optional[global___ReadEventCompleted.ReadEventResult.ValueType] = ..., - event: typing.Optional[global___ResolvedIndexedEvent] = ..., - error: typing.Optional[typing.Text] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["error",b"error","event",b"event","result",b"result"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["error",b"error","event",b"event","result",b"result"]) -> None: ... -global___ReadEventCompleted = ReadEventCompleted - -class ReadStreamEvents(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - EVENT_STREAM_ID_FIELD_NUMBER: builtins.int - FROM_EVENT_NUMBER_FIELD_NUMBER: builtins.int - MAX_COUNT_FIELD_NUMBER: builtins.int - RESOLVE_LINK_TOS_FIELD_NUMBER: builtins.int - REQUIRE_LEADER_FIELD_NUMBER: builtins.int - event_stream_id: typing.Text - from_event_number: builtins.int - max_count: builtins.int - resolve_link_tos: builtins.bool - require_leader: builtins.bool - def __init__(self, - *, - event_stream_id: typing.Optional[typing.Text] = ..., - from_event_number: typing.Optional[builtins.int] = ..., - max_count: typing.Optional[builtins.int] = ..., - resolve_link_tos: typing.Optional[builtins.bool] = ..., - require_leader: typing.Optional[builtins.bool] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["event_stream_id",b"event_stream_id","from_event_number",b"from_event_number","max_count",b"max_count","require_leader",b"require_leader","resolve_link_tos",b"resolve_link_tos"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["event_stream_id",b"event_stream_id","from_event_number",b"from_event_number","max_count",b"max_count","require_leader",b"require_leader","resolve_link_tos",b"resolve_link_tos"]) -> None: ... -global___ReadStreamEvents = ReadStreamEvents - -class ReadStreamEventsCompleted(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - class _ReadStreamResult: - ValueType = typing.NewType('ValueType', builtins.int) - V: typing_extensions.TypeAlias = ValueType - class _ReadStreamResultEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[ReadStreamEventsCompleted._ReadStreamResult.ValueType], builtins.type): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor - Success: ReadStreamEventsCompleted._ReadStreamResult.ValueType # 0 - NoStream: ReadStreamEventsCompleted._ReadStreamResult.ValueType # 1 - StreamDeleted: ReadStreamEventsCompleted._ReadStreamResult.ValueType # 2 - NotModified: ReadStreamEventsCompleted._ReadStreamResult.ValueType # 3 - Error: ReadStreamEventsCompleted._ReadStreamResult.ValueType # 4 - AccessDenied: ReadStreamEventsCompleted._ReadStreamResult.ValueType # 5 - class ReadStreamResult(_ReadStreamResult, metaclass=_ReadStreamResultEnumTypeWrapper): - pass - - Success: ReadStreamEventsCompleted.ReadStreamResult.ValueType # 0 - NoStream: ReadStreamEventsCompleted.ReadStreamResult.ValueType # 1 - StreamDeleted: ReadStreamEventsCompleted.ReadStreamResult.ValueType # 2 - NotModified: ReadStreamEventsCompleted.ReadStreamResult.ValueType # 3 - Error: ReadStreamEventsCompleted.ReadStreamResult.ValueType # 4 - AccessDenied: ReadStreamEventsCompleted.ReadStreamResult.ValueType # 5 - - EVENTS_FIELD_NUMBER: builtins.int - RESULT_FIELD_NUMBER: builtins.int - NEXT_EVENT_NUMBER_FIELD_NUMBER: builtins.int - LAST_EVENT_NUMBER_FIELD_NUMBER: builtins.int - IS_END_OF_STREAM_FIELD_NUMBER: builtins.int - LAST_COMMIT_POSITION_FIELD_NUMBER: builtins.int - ERROR_FIELD_NUMBER: builtins.int - @property - def events(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ResolvedIndexedEvent]: ... - result: global___ReadStreamEventsCompleted.ReadStreamResult.ValueType - next_event_number: builtins.int - last_event_number: builtins.int - is_end_of_stream: builtins.bool - last_commit_position: builtins.int - error: typing.Text - def __init__(self, - *, - events: typing.Optional[typing.Iterable[global___ResolvedIndexedEvent]] = ..., - result: typing.Optional[global___ReadStreamEventsCompleted.ReadStreamResult.ValueType] = ..., - next_event_number: typing.Optional[builtins.int] = ..., - last_event_number: typing.Optional[builtins.int] = ..., - is_end_of_stream: typing.Optional[builtins.bool] = ..., - last_commit_position: typing.Optional[builtins.int] = ..., - error: typing.Optional[typing.Text] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["error",b"error","is_end_of_stream",b"is_end_of_stream","last_commit_position",b"last_commit_position","last_event_number",b"last_event_number","next_event_number",b"next_event_number","result",b"result"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["error",b"error","events",b"events","is_end_of_stream",b"is_end_of_stream","last_commit_position",b"last_commit_position","last_event_number",b"last_event_number","next_event_number",b"next_event_number","result",b"result"]) -> None: ... -global___ReadStreamEventsCompleted = ReadStreamEventsCompleted - -class ReadAllEvents(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - COMMIT_POSITION_FIELD_NUMBER: builtins.int - PREPARE_POSITION_FIELD_NUMBER: builtins.int - MAX_COUNT_FIELD_NUMBER: builtins.int - RESOLVE_LINK_TOS_FIELD_NUMBER: builtins.int - REQUIRE_LEADER_FIELD_NUMBER: builtins.int - commit_position: builtins.int - prepare_position: builtins.int - max_count: builtins.int - resolve_link_tos: builtins.bool - require_leader: builtins.bool - def __init__(self, - *, - commit_position: typing.Optional[builtins.int] = ..., - prepare_position: typing.Optional[builtins.int] = ..., - max_count: typing.Optional[builtins.int] = ..., - resolve_link_tos: typing.Optional[builtins.bool] = ..., - require_leader: typing.Optional[builtins.bool] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["commit_position",b"commit_position","max_count",b"max_count","prepare_position",b"prepare_position","require_leader",b"require_leader","resolve_link_tos",b"resolve_link_tos"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["commit_position",b"commit_position","max_count",b"max_count","prepare_position",b"prepare_position","require_leader",b"require_leader","resolve_link_tos",b"resolve_link_tos"]) -> None: ... -global___ReadAllEvents = ReadAllEvents - -class ReadAllEventsCompleted(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - class _ReadAllResult: - ValueType = typing.NewType('ValueType', builtins.int) - V: typing_extensions.TypeAlias = ValueType - class _ReadAllResultEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[ReadAllEventsCompleted._ReadAllResult.ValueType], builtins.type): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor - Success: ReadAllEventsCompleted._ReadAllResult.ValueType # 0 - NotModified: ReadAllEventsCompleted._ReadAllResult.ValueType # 1 - Error: ReadAllEventsCompleted._ReadAllResult.ValueType # 2 - AccessDenied: ReadAllEventsCompleted._ReadAllResult.ValueType # 3 - class ReadAllResult(_ReadAllResult, metaclass=_ReadAllResultEnumTypeWrapper): - pass - - Success: ReadAllEventsCompleted.ReadAllResult.ValueType # 0 - NotModified: ReadAllEventsCompleted.ReadAllResult.ValueType # 1 - Error: ReadAllEventsCompleted.ReadAllResult.ValueType # 2 - AccessDenied: ReadAllEventsCompleted.ReadAllResult.ValueType # 3 - - COMMIT_POSITION_FIELD_NUMBER: builtins.int - PREPARE_POSITION_FIELD_NUMBER: builtins.int - EVENTS_FIELD_NUMBER: builtins.int - NEXT_COMMIT_POSITION_FIELD_NUMBER: builtins.int - NEXT_PREPARE_POSITION_FIELD_NUMBER: builtins.int - RESULT_FIELD_NUMBER: builtins.int - ERROR_FIELD_NUMBER: builtins.int - commit_position: builtins.int - prepare_position: builtins.int - @property - def events(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ResolvedEvent]: ... - next_commit_position: builtins.int - next_prepare_position: builtins.int - result: global___ReadAllEventsCompleted.ReadAllResult.ValueType - error: typing.Text - def __init__(self, - *, - commit_position: typing.Optional[builtins.int] = ..., - prepare_position: typing.Optional[builtins.int] = ..., - events: typing.Optional[typing.Iterable[global___ResolvedEvent]] = ..., - next_commit_position: typing.Optional[builtins.int] = ..., - next_prepare_position: typing.Optional[builtins.int] = ..., - result: typing.Optional[global___ReadAllEventsCompleted.ReadAllResult.ValueType] = ..., - error: typing.Optional[typing.Text] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["commit_position",b"commit_position","error",b"error","next_commit_position",b"next_commit_position","next_prepare_position",b"next_prepare_position","prepare_position",b"prepare_position","result",b"result"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["commit_position",b"commit_position","error",b"error","events",b"events","next_commit_position",b"next_commit_position","next_prepare_position",b"next_prepare_position","prepare_position",b"prepare_position","result",b"result"]) -> None: ... -global___ReadAllEventsCompleted = ReadAllEventsCompleted - -class Filter(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - class _FilterContext: - ValueType = typing.NewType('ValueType', builtins.int) - V: typing_extensions.TypeAlias = ValueType - class _FilterContextEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[Filter._FilterContext.ValueType], builtins.type): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor - StreamId: Filter._FilterContext.ValueType # 0 - EventType: Filter._FilterContext.ValueType # 1 - class FilterContext(_FilterContext, metaclass=_FilterContextEnumTypeWrapper): - pass - - StreamId: Filter.FilterContext.ValueType # 0 - EventType: Filter.FilterContext.ValueType # 1 - - class _FilterType: - ValueType = typing.NewType('ValueType', builtins.int) - V: typing_extensions.TypeAlias = ValueType - class _FilterTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[Filter._FilterType.ValueType], builtins.type): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor - Regex: Filter._FilterType.ValueType # 0 - Prefix: Filter._FilterType.ValueType # 1 - class FilterType(_FilterType, metaclass=_FilterTypeEnumTypeWrapper): - pass - - Regex: Filter.FilterType.ValueType # 0 - Prefix: Filter.FilterType.ValueType # 1 - - CONTEXT_FIELD_NUMBER: builtins.int - TYPE_FIELD_NUMBER: builtins.int - DATA_FIELD_NUMBER: builtins.int - context: global___Filter.FilterContext.ValueType - type: global___Filter.FilterType.ValueType - @property - def data(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[typing.Text]: ... - def __init__(self, - *, - context: typing.Optional[global___Filter.FilterContext.ValueType] = ..., - type: typing.Optional[global___Filter.FilterType.ValueType] = ..., - data: typing.Optional[typing.Iterable[typing.Text]] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["context",b"context","type",b"type"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["context",b"context","data",b"data","type",b"type"]) -> None: ... -global___Filter = Filter - -class FilteredReadAllEvents(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - COMMIT_POSITION_FIELD_NUMBER: builtins.int - PREPARE_POSITION_FIELD_NUMBER: builtins.int - MAX_COUNT_FIELD_NUMBER: builtins.int - MAX_SEARCH_WINDOW_FIELD_NUMBER: builtins.int - RESOLVE_LINK_TOS_FIELD_NUMBER: builtins.int - REQUIRE_LEADER_FIELD_NUMBER: builtins.int - FILTER_FIELD_NUMBER: builtins.int - commit_position: builtins.int - prepare_position: builtins.int - max_count: builtins.int - max_search_window: builtins.int - resolve_link_tos: builtins.bool - require_leader: builtins.bool - @property - def filter(self) -> global___Filter: ... - def __init__(self, - *, - commit_position: typing.Optional[builtins.int] = ..., - prepare_position: typing.Optional[builtins.int] = ..., - max_count: typing.Optional[builtins.int] = ..., - max_search_window: typing.Optional[builtins.int] = ..., - resolve_link_tos: typing.Optional[builtins.bool] = ..., - require_leader: typing.Optional[builtins.bool] = ..., - filter: typing.Optional[global___Filter] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["commit_position",b"commit_position","filter",b"filter","max_count",b"max_count","max_search_window",b"max_search_window","prepare_position",b"prepare_position","require_leader",b"require_leader","resolve_link_tos",b"resolve_link_tos"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["commit_position",b"commit_position","filter",b"filter","max_count",b"max_count","max_search_window",b"max_search_window","prepare_position",b"prepare_position","require_leader",b"require_leader","resolve_link_tos",b"resolve_link_tos"]) -> None: ... -global___FilteredReadAllEvents = FilteredReadAllEvents - -class FilteredReadAllEventsCompleted(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - class _FilteredReadAllResult: - ValueType = typing.NewType('ValueType', builtins.int) - V: typing_extensions.TypeAlias = ValueType - class _FilteredReadAllResultEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[FilteredReadAllEventsCompleted._FilteredReadAllResult.ValueType], builtins.type): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor - Success: FilteredReadAllEventsCompleted._FilteredReadAllResult.ValueType # 0 - NotModified: FilteredReadAllEventsCompleted._FilteredReadAllResult.ValueType # 1 - Error: FilteredReadAllEventsCompleted._FilteredReadAllResult.ValueType # 2 - AccessDenied: FilteredReadAllEventsCompleted._FilteredReadAllResult.ValueType # 3 - class FilteredReadAllResult(_FilteredReadAllResult, metaclass=_FilteredReadAllResultEnumTypeWrapper): - pass - - Success: FilteredReadAllEventsCompleted.FilteredReadAllResult.ValueType # 0 - NotModified: FilteredReadAllEventsCompleted.FilteredReadAllResult.ValueType # 1 - Error: FilteredReadAllEventsCompleted.FilteredReadAllResult.ValueType # 2 - AccessDenied: FilteredReadAllEventsCompleted.FilteredReadAllResult.ValueType # 3 - - COMMIT_POSITION_FIELD_NUMBER: builtins.int - PREPARE_POSITION_FIELD_NUMBER: builtins.int - EVENTS_FIELD_NUMBER: builtins.int - NEXT_COMMIT_POSITION_FIELD_NUMBER: builtins.int - NEXT_PREPARE_POSITION_FIELD_NUMBER: builtins.int - IS_END_OF_STREAM_FIELD_NUMBER: builtins.int - RESULT_FIELD_NUMBER: builtins.int - ERROR_FIELD_NUMBER: builtins.int - commit_position: builtins.int - prepare_position: builtins.int - @property - def events(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ResolvedEvent]: ... - next_commit_position: builtins.int - next_prepare_position: builtins.int - is_end_of_stream: builtins.bool - result: global___FilteredReadAllEventsCompleted.FilteredReadAllResult.ValueType - error: typing.Text - def __init__(self, - *, - commit_position: typing.Optional[builtins.int] = ..., - prepare_position: typing.Optional[builtins.int] = ..., - events: typing.Optional[typing.Iterable[global___ResolvedEvent]] = ..., - next_commit_position: typing.Optional[builtins.int] = ..., - next_prepare_position: typing.Optional[builtins.int] = ..., - is_end_of_stream: typing.Optional[builtins.bool] = ..., - result: typing.Optional[global___FilteredReadAllEventsCompleted.FilteredReadAllResult.ValueType] = ..., - error: typing.Optional[typing.Text] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["commit_position",b"commit_position","error",b"error","is_end_of_stream",b"is_end_of_stream","next_commit_position",b"next_commit_position","next_prepare_position",b"next_prepare_position","prepare_position",b"prepare_position","result",b"result"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["commit_position",b"commit_position","error",b"error","events",b"events","is_end_of_stream",b"is_end_of_stream","next_commit_position",b"next_commit_position","next_prepare_position",b"next_prepare_position","prepare_position",b"prepare_position","result",b"result"]) -> None: ... -global___FilteredReadAllEventsCompleted = FilteredReadAllEventsCompleted - -class CreatePersistentSubscription(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - SUBSCRIPTION_GROUP_NAME_FIELD_NUMBER: builtins.int - EVENT_STREAM_ID_FIELD_NUMBER: builtins.int - RESOLVE_LINK_TOS_FIELD_NUMBER: builtins.int - START_FROM_FIELD_NUMBER: builtins.int - MESSAGE_TIMEOUT_MILLISECONDS_FIELD_NUMBER: builtins.int - RECORD_STATISTICS_FIELD_NUMBER: builtins.int - LIVE_BUFFER_SIZE_FIELD_NUMBER: builtins.int - READ_BATCH_SIZE_FIELD_NUMBER: builtins.int - BUFFER_SIZE_FIELD_NUMBER: builtins.int - MAX_RETRY_COUNT_FIELD_NUMBER: builtins.int - PREFER_ROUND_ROBIN_FIELD_NUMBER: builtins.int - CHECKPOINT_AFTER_TIME_FIELD_NUMBER: builtins.int - CHECKPOINT_MAX_COUNT_FIELD_NUMBER: builtins.int - CHECKPOINT_MIN_COUNT_FIELD_NUMBER: builtins.int - SUBSCRIBER_MAX_COUNT_FIELD_NUMBER: builtins.int - NAMED_CONSUMER_STRATEGY_FIELD_NUMBER: builtins.int - subscription_group_name: typing.Text - event_stream_id: typing.Text - resolve_link_tos: builtins.bool - start_from: builtins.int - message_timeout_milliseconds: builtins.int - record_statistics: builtins.bool - live_buffer_size: builtins.int - read_batch_size: builtins.int - buffer_size: builtins.int - max_retry_count: builtins.int - prefer_round_robin: builtins.bool - checkpoint_after_time: builtins.int - checkpoint_max_count: builtins.int - checkpoint_min_count: builtins.int - subscriber_max_count: builtins.int - named_consumer_strategy: typing.Text - def __init__(self, - *, - subscription_group_name: typing.Optional[typing.Text] = ..., - event_stream_id: typing.Optional[typing.Text] = ..., - resolve_link_tos: typing.Optional[builtins.bool] = ..., - start_from: typing.Optional[builtins.int] = ..., - message_timeout_milliseconds: typing.Optional[builtins.int] = ..., - record_statistics: typing.Optional[builtins.bool] = ..., - live_buffer_size: typing.Optional[builtins.int] = ..., - read_batch_size: typing.Optional[builtins.int] = ..., - buffer_size: typing.Optional[builtins.int] = ..., - max_retry_count: typing.Optional[builtins.int] = ..., - prefer_round_robin: typing.Optional[builtins.bool] = ..., - checkpoint_after_time: typing.Optional[builtins.int] = ..., - checkpoint_max_count: typing.Optional[builtins.int] = ..., - checkpoint_min_count: typing.Optional[builtins.int] = ..., - subscriber_max_count: typing.Optional[builtins.int] = ..., - named_consumer_strategy: typing.Optional[typing.Text] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["buffer_size",b"buffer_size","checkpoint_after_time",b"checkpoint_after_time","checkpoint_max_count",b"checkpoint_max_count","checkpoint_min_count",b"checkpoint_min_count","event_stream_id",b"event_stream_id","live_buffer_size",b"live_buffer_size","max_retry_count",b"max_retry_count","message_timeout_milliseconds",b"message_timeout_milliseconds","named_consumer_strategy",b"named_consumer_strategy","prefer_round_robin",b"prefer_round_robin","read_batch_size",b"read_batch_size","record_statistics",b"record_statistics","resolve_link_tos",b"resolve_link_tos","start_from",b"start_from","subscriber_max_count",b"subscriber_max_count","subscription_group_name",b"subscription_group_name"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["buffer_size",b"buffer_size","checkpoint_after_time",b"checkpoint_after_time","checkpoint_max_count",b"checkpoint_max_count","checkpoint_min_count",b"checkpoint_min_count","event_stream_id",b"event_stream_id","live_buffer_size",b"live_buffer_size","max_retry_count",b"max_retry_count","message_timeout_milliseconds",b"message_timeout_milliseconds","named_consumer_strategy",b"named_consumer_strategy","prefer_round_robin",b"prefer_round_robin","read_batch_size",b"read_batch_size","record_statistics",b"record_statistics","resolve_link_tos",b"resolve_link_tos","start_from",b"start_from","subscriber_max_count",b"subscriber_max_count","subscription_group_name",b"subscription_group_name"]) -> None: ... -global___CreatePersistentSubscription = CreatePersistentSubscription - -class DeletePersistentSubscription(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - SUBSCRIPTION_GROUP_NAME_FIELD_NUMBER: builtins.int - EVENT_STREAM_ID_FIELD_NUMBER: builtins.int - subscription_group_name: typing.Text - event_stream_id: typing.Text - def __init__(self, - *, - subscription_group_name: typing.Optional[typing.Text] = ..., - event_stream_id: typing.Optional[typing.Text] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["event_stream_id",b"event_stream_id","subscription_group_name",b"subscription_group_name"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["event_stream_id",b"event_stream_id","subscription_group_name",b"subscription_group_name"]) -> None: ... -global___DeletePersistentSubscription = DeletePersistentSubscription - -class UpdatePersistentSubscription(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - SUBSCRIPTION_GROUP_NAME_FIELD_NUMBER: builtins.int - EVENT_STREAM_ID_FIELD_NUMBER: builtins.int - RESOLVE_LINK_TOS_FIELD_NUMBER: builtins.int - START_FROM_FIELD_NUMBER: builtins.int - MESSAGE_TIMEOUT_MILLISECONDS_FIELD_NUMBER: builtins.int - RECORD_STATISTICS_FIELD_NUMBER: builtins.int - LIVE_BUFFER_SIZE_FIELD_NUMBER: builtins.int - READ_BATCH_SIZE_FIELD_NUMBER: builtins.int - BUFFER_SIZE_FIELD_NUMBER: builtins.int - MAX_RETRY_COUNT_FIELD_NUMBER: builtins.int - PREFER_ROUND_ROBIN_FIELD_NUMBER: builtins.int - CHECKPOINT_AFTER_TIME_FIELD_NUMBER: builtins.int - CHECKPOINT_MAX_COUNT_FIELD_NUMBER: builtins.int - CHECKPOINT_MIN_COUNT_FIELD_NUMBER: builtins.int - SUBSCRIBER_MAX_COUNT_FIELD_NUMBER: builtins.int - NAMED_CONSUMER_STRATEGY_FIELD_NUMBER: builtins.int - subscription_group_name: typing.Text - event_stream_id: typing.Text - resolve_link_tos: builtins.bool - start_from: builtins.int - message_timeout_milliseconds: builtins.int - record_statistics: builtins.bool - live_buffer_size: builtins.int - read_batch_size: builtins.int - buffer_size: builtins.int - max_retry_count: builtins.int - prefer_round_robin: builtins.bool - checkpoint_after_time: builtins.int - checkpoint_max_count: builtins.int - checkpoint_min_count: builtins.int - subscriber_max_count: builtins.int - named_consumer_strategy: typing.Text - def __init__(self, - *, - subscription_group_name: typing.Optional[typing.Text] = ..., - event_stream_id: typing.Optional[typing.Text] = ..., - resolve_link_tos: typing.Optional[builtins.bool] = ..., - start_from: typing.Optional[builtins.int] = ..., - message_timeout_milliseconds: typing.Optional[builtins.int] = ..., - record_statistics: typing.Optional[builtins.bool] = ..., - live_buffer_size: typing.Optional[builtins.int] = ..., - read_batch_size: typing.Optional[builtins.int] = ..., - buffer_size: typing.Optional[builtins.int] = ..., - max_retry_count: typing.Optional[builtins.int] = ..., - prefer_round_robin: typing.Optional[builtins.bool] = ..., - checkpoint_after_time: typing.Optional[builtins.int] = ..., - checkpoint_max_count: typing.Optional[builtins.int] = ..., - checkpoint_min_count: typing.Optional[builtins.int] = ..., - subscriber_max_count: typing.Optional[builtins.int] = ..., - named_consumer_strategy: typing.Optional[typing.Text] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["buffer_size",b"buffer_size","checkpoint_after_time",b"checkpoint_after_time","checkpoint_max_count",b"checkpoint_max_count","checkpoint_min_count",b"checkpoint_min_count","event_stream_id",b"event_stream_id","live_buffer_size",b"live_buffer_size","max_retry_count",b"max_retry_count","message_timeout_milliseconds",b"message_timeout_milliseconds","named_consumer_strategy",b"named_consumer_strategy","prefer_round_robin",b"prefer_round_robin","read_batch_size",b"read_batch_size","record_statistics",b"record_statistics","resolve_link_tos",b"resolve_link_tos","start_from",b"start_from","subscriber_max_count",b"subscriber_max_count","subscription_group_name",b"subscription_group_name"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["buffer_size",b"buffer_size","checkpoint_after_time",b"checkpoint_after_time","checkpoint_max_count",b"checkpoint_max_count","checkpoint_min_count",b"checkpoint_min_count","event_stream_id",b"event_stream_id","live_buffer_size",b"live_buffer_size","max_retry_count",b"max_retry_count","message_timeout_milliseconds",b"message_timeout_milliseconds","named_consumer_strategy",b"named_consumer_strategy","prefer_round_robin",b"prefer_round_robin","read_batch_size",b"read_batch_size","record_statistics",b"record_statistics","resolve_link_tos",b"resolve_link_tos","start_from",b"start_from","subscriber_max_count",b"subscriber_max_count","subscription_group_name",b"subscription_group_name"]) -> None: ... -global___UpdatePersistentSubscription = UpdatePersistentSubscription - -class UpdatePersistentSubscriptionCompleted(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - class _UpdatePersistentSubscriptionResult: - ValueType = typing.NewType('ValueType', builtins.int) - V: typing_extensions.TypeAlias = ValueType - class _UpdatePersistentSubscriptionResultEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[UpdatePersistentSubscriptionCompleted._UpdatePersistentSubscriptionResult.ValueType], builtins.type): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor - Success: UpdatePersistentSubscriptionCompleted._UpdatePersistentSubscriptionResult.ValueType # 0 - DoesNotExist: UpdatePersistentSubscriptionCompleted._UpdatePersistentSubscriptionResult.ValueType # 1 - Fail: UpdatePersistentSubscriptionCompleted._UpdatePersistentSubscriptionResult.ValueType # 2 - AccessDenied: UpdatePersistentSubscriptionCompleted._UpdatePersistentSubscriptionResult.ValueType # 3 - class UpdatePersistentSubscriptionResult(_UpdatePersistentSubscriptionResult, metaclass=_UpdatePersistentSubscriptionResultEnumTypeWrapper): - pass - - Success: UpdatePersistentSubscriptionCompleted.UpdatePersistentSubscriptionResult.ValueType # 0 - DoesNotExist: UpdatePersistentSubscriptionCompleted.UpdatePersistentSubscriptionResult.ValueType # 1 - Fail: UpdatePersistentSubscriptionCompleted.UpdatePersistentSubscriptionResult.ValueType # 2 - AccessDenied: UpdatePersistentSubscriptionCompleted.UpdatePersistentSubscriptionResult.ValueType # 3 - - RESULT_FIELD_NUMBER: builtins.int - REASON_FIELD_NUMBER: builtins.int - result: global___UpdatePersistentSubscriptionCompleted.UpdatePersistentSubscriptionResult.ValueType - reason: typing.Text - def __init__(self, - *, - result: typing.Optional[global___UpdatePersistentSubscriptionCompleted.UpdatePersistentSubscriptionResult.ValueType] = ..., - reason: typing.Optional[typing.Text] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["reason",b"reason","result",b"result"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["reason",b"reason","result",b"result"]) -> None: ... -global___UpdatePersistentSubscriptionCompleted = UpdatePersistentSubscriptionCompleted - -class CreatePersistentSubscriptionCompleted(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - class _CreatePersistentSubscriptionResult: - ValueType = typing.NewType('ValueType', builtins.int) - V: typing_extensions.TypeAlias = ValueType - class _CreatePersistentSubscriptionResultEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[CreatePersistentSubscriptionCompleted._CreatePersistentSubscriptionResult.ValueType], builtins.type): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor - Success: CreatePersistentSubscriptionCompleted._CreatePersistentSubscriptionResult.ValueType # 0 - AlreadyExists: CreatePersistentSubscriptionCompleted._CreatePersistentSubscriptionResult.ValueType # 1 - Fail: CreatePersistentSubscriptionCompleted._CreatePersistentSubscriptionResult.ValueType # 2 - AccessDenied: CreatePersistentSubscriptionCompleted._CreatePersistentSubscriptionResult.ValueType # 3 - class CreatePersistentSubscriptionResult(_CreatePersistentSubscriptionResult, metaclass=_CreatePersistentSubscriptionResultEnumTypeWrapper): - pass - - Success: CreatePersistentSubscriptionCompleted.CreatePersistentSubscriptionResult.ValueType # 0 - AlreadyExists: CreatePersistentSubscriptionCompleted.CreatePersistentSubscriptionResult.ValueType # 1 - Fail: CreatePersistentSubscriptionCompleted.CreatePersistentSubscriptionResult.ValueType # 2 - AccessDenied: CreatePersistentSubscriptionCompleted.CreatePersistentSubscriptionResult.ValueType # 3 - - RESULT_FIELD_NUMBER: builtins.int - REASON_FIELD_NUMBER: builtins.int - result: global___CreatePersistentSubscriptionCompleted.CreatePersistentSubscriptionResult.ValueType - reason: typing.Text - def __init__(self, - *, - result: typing.Optional[global___CreatePersistentSubscriptionCompleted.CreatePersistentSubscriptionResult.ValueType] = ..., - reason: typing.Optional[typing.Text] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["reason",b"reason","result",b"result"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["reason",b"reason","result",b"result"]) -> None: ... -global___CreatePersistentSubscriptionCompleted = CreatePersistentSubscriptionCompleted - -class DeletePersistentSubscriptionCompleted(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - class _DeletePersistentSubscriptionResult: - ValueType = typing.NewType('ValueType', builtins.int) - V: typing_extensions.TypeAlias = ValueType - class _DeletePersistentSubscriptionResultEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[DeletePersistentSubscriptionCompleted._DeletePersistentSubscriptionResult.ValueType], builtins.type): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor - Success: DeletePersistentSubscriptionCompleted._DeletePersistentSubscriptionResult.ValueType # 0 - DoesNotExist: DeletePersistentSubscriptionCompleted._DeletePersistentSubscriptionResult.ValueType # 1 - Fail: DeletePersistentSubscriptionCompleted._DeletePersistentSubscriptionResult.ValueType # 2 - AccessDenied: DeletePersistentSubscriptionCompleted._DeletePersistentSubscriptionResult.ValueType # 3 - class DeletePersistentSubscriptionResult(_DeletePersistentSubscriptionResult, metaclass=_DeletePersistentSubscriptionResultEnumTypeWrapper): - pass - - Success: DeletePersistentSubscriptionCompleted.DeletePersistentSubscriptionResult.ValueType # 0 - DoesNotExist: DeletePersistentSubscriptionCompleted.DeletePersistentSubscriptionResult.ValueType # 1 - Fail: DeletePersistentSubscriptionCompleted.DeletePersistentSubscriptionResult.ValueType # 2 - AccessDenied: DeletePersistentSubscriptionCompleted.DeletePersistentSubscriptionResult.ValueType # 3 - - RESULT_FIELD_NUMBER: builtins.int - REASON_FIELD_NUMBER: builtins.int - result: global___DeletePersistentSubscriptionCompleted.DeletePersistentSubscriptionResult.ValueType - reason: typing.Text - def __init__(self, - *, - result: typing.Optional[global___DeletePersistentSubscriptionCompleted.DeletePersistentSubscriptionResult.ValueType] = ..., - reason: typing.Optional[typing.Text] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["reason",b"reason","result",b"result"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["reason",b"reason","result",b"result"]) -> None: ... -global___DeletePersistentSubscriptionCompleted = DeletePersistentSubscriptionCompleted - -class ConnectToPersistentSubscription(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - SUBSCRIPTION_ID_FIELD_NUMBER: builtins.int - EVENT_STREAM_ID_FIELD_NUMBER: builtins.int - ALLOWED_IN_FLIGHT_MESSAGES_FIELD_NUMBER: builtins.int - subscription_id: typing.Text - event_stream_id: typing.Text - allowed_in_flight_messages: builtins.int - def __init__(self, - *, - subscription_id: typing.Optional[typing.Text] = ..., - event_stream_id: typing.Optional[typing.Text] = ..., - allowed_in_flight_messages: typing.Optional[builtins.int] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["allowed_in_flight_messages",b"allowed_in_flight_messages","event_stream_id",b"event_stream_id","subscription_id",b"subscription_id"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["allowed_in_flight_messages",b"allowed_in_flight_messages","event_stream_id",b"event_stream_id","subscription_id",b"subscription_id"]) -> None: ... -global___ConnectToPersistentSubscription = ConnectToPersistentSubscription - -class PersistentSubscriptionAckEvents(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - SUBSCRIPTION_ID_FIELD_NUMBER: builtins.int - PROCESSED_EVENT_IDS_FIELD_NUMBER: builtins.int - subscription_id: typing.Text - @property - def processed_event_ids(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.bytes]: ... - def __init__(self, - *, - subscription_id: typing.Optional[typing.Text] = ..., - processed_event_ids: typing.Optional[typing.Iterable[builtins.bytes]] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["subscription_id",b"subscription_id"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["processed_event_ids",b"processed_event_ids","subscription_id",b"subscription_id"]) -> None: ... -global___PersistentSubscriptionAckEvents = PersistentSubscriptionAckEvents - -class PersistentSubscriptionNakEvents(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - class _NakAction: - ValueType = typing.NewType('ValueType', builtins.int) - V: typing_extensions.TypeAlias = ValueType - class _NakActionEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[PersistentSubscriptionNakEvents._NakAction.ValueType], builtins.type): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor - Unknown: PersistentSubscriptionNakEvents._NakAction.ValueType # 0 - Park: PersistentSubscriptionNakEvents._NakAction.ValueType # 1 - Retry: PersistentSubscriptionNakEvents._NakAction.ValueType # 2 - Skip: PersistentSubscriptionNakEvents._NakAction.ValueType # 3 - Stop: PersistentSubscriptionNakEvents._NakAction.ValueType # 4 - class NakAction(_NakAction, metaclass=_NakActionEnumTypeWrapper): - pass - - Unknown: PersistentSubscriptionNakEvents.NakAction.ValueType # 0 - Park: PersistentSubscriptionNakEvents.NakAction.ValueType # 1 - Retry: PersistentSubscriptionNakEvents.NakAction.ValueType # 2 - Skip: PersistentSubscriptionNakEvents.NakAction.ValueType # 3 - Stop: PersistentSubscriptionNakEvents.NakAction.ValueType # 4 - - SUBSCRIPTION_ID_FIELD_NUMBER: builtins.int - PROCESSED_EVENT_IDS_FIELD_NUMBER: builtins.int - MESSAGE_FIELD_NUMBER: builtins.int - ACTION_FIELD_NUMBER: builtins.int - subscription_id: typing.Text - @property - def processed_event_ids(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.bytes]: ... - message: typing.Text - action: global___PersistentSubscriptionNakEvents.NakAction.ValueType - def __init__(self, - *, - subscription_id: typing.Optional[typing.Text] = ..., - processed_event_ids: typing.Optional[typing.Iterable[builtins.bytes]] = ..., - message: typing.Optional[typing.Text] = ..., - action: typing.Optional[global___PersistentSubscriptionNakEvents.NakAction.ValueType] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["action",b"action","message",b"message","subscription_id",b"subscription_id"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["action",b"action","message",b"message","processed_event_ids",b"processed_event_ids","subscription_id",b"subscription_id"]) -> None: ... -global___PersistentSubscriptionNakEvents = PersistentSubscriptionNakEvents - -class PersistentSubscriptionConfirmation(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - LAST_COMMIT_POSITION_FIELD_NUMBER: builtins.int - SUBSCRIPTION_ID_FIELD_NUMBER: builtins.int - LAST_EVENT_NUMBER_FIELD_NUMBER: builtins.int - last_commit_position: builtins.int - subscription_id: typing.Text - last_event_number: builtins.int - def __init__(self, - *, - last_commit_position: typing.Optional[builtins.int] = ..., - subscription_id: typing.Optional[typing.Text] = ..., - last_event_number: typing.Optional[builtins.int] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["last_commit_position",b"last_commit_position","last_event_number",b"last_event_number","subscription_id",b"subscription_id"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["last_commit_position",b"last_commit_position","last_event_number",b"last_event_number","subscription_id",b"subscription_id"]) -> None: ... -global___PersistentSubscriptionConfirmation = PersistentSubscriptionConfirmation - -class PersistentSubscriptionStreamEventAppeared(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - EVENT_FIELD_NUMBER: builtins.int - RETRYCOUNT_FIELD_NUMBER: builtins.int - @property - def event(self) -> global___ResolvedIndexedEvent: ... - retryCount: builtins.int - def __init__(self, - *, - event: typing.Optional[global___ResolvedIndexedEvent] = ..., - retryCount: typing.Optional[builtins.int] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["event",b"event","retryCount",b"retryCount"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["event",b"event","retryCount",b"retryCount"]) -> None: ... -global___PersistentSubscriptionStreamEventAppeared = PersistentSubscriptionStreamEventAppeared - -class SubscribeToStream(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - EVENT_STREAM_ID_FIELD_NUMBER: builtins.int - RESOLVE_LINK_TOS_FIELD_NUMBER: builtins.int - event_stream_id: typing.Text - resolve_link_tos: builtins.bool - def __init__(self, - *, - event_stream_id: typing.Optional[typing.Text] = ..., - resolve_link_tos: typing.Optional[builtins.bool] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["event_stream_id",b"event_stream_id","resolve_link_tos",b"resolve_link_tos"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["event_stream_id",b"event_stream_id","resolve_link_tos",b"resolve_link_tos"]) -> None: ... -global___SubscribeToStream = SubscribeToStream - -class FilteredSubscribeToStream(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - EVENT_STREAM_ID_FIELD_NUMBER: builtins.int - RESOLVE_LINK_TOS_FIELD_NUMBER: builtins.int - FILTER_FIELD_NUMBER: builtins.int - CHECKPOINT_INTERVAL_FIELD_NUMBER: builtins.int - event_stream_id: typing.Text - resolve_link_tos: builtins.bool - @property - def filter(self) -> global___Filter: ... - checkpoint_interval: builtins.int - def __init__(self, - *, - event_stream_id: typing.Optional[typing.Text] = ..., - resolve_link_tos: typing.Optional[builtins.bool] = ..., - filter: typing.Optional[global___Filter] = ..., - checkpoint_interval: typing.Optional[builtins.int] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["checkpoint_interval",b"checkpoint_interval","event_stream_id",b"event_stream_id","filter",b"filter","resolve_link_tos",b"resolve_link_tos"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["checkpoint_interval",b"checkpoint_interval","event_stream_id",b"event_stream_id","filter",b"filter","resolve_link_tos",b"resolve_link_tos"]) -> None: ... -global___FilteredSubscribeToStream = FilteredSubscribeToStream - -class CheckpointReached(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - COMMIT_POSITION_FIELD_NUMBER: builtins.int - PREPARE_POSITION_FIELD_NUMBER: builtins.int - commit_position: builtins.int - prepare_position: builtins.int - def __init__(self, - *, - commit_position: typing.Optional[builtins.int] = ..., - prepare_position: typing.Optional[builtins.int] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["commit_position",b"commit_position","prepare_position",b"prepare_position"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["commit_position",b"commit_position","prepare_position",b"prepare_position"]) -> None: ... -global___CheckpointReached = CheckpointReached - -class SubscriptionConfirmation(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - LAST_COMMIT_POSITION_FIELD_NUMBER: builtins.int - LAST_EVENT_NUMBER_FIELD_NUMBER: builtins.int - last_commit_position: builtins.int - last_event_number: builtins.int - def __init__(self, - *, - last_commit_position: typing.Optional[builtins.int] = ..., - last_event_number: typing.Optional[builtins.int] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["last_commit_position",b"last_commit_position","last_event_number",b"last_event_number"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["last_commit_position",b"last_commit_position","last_event_number",b"last_event_number"]) -> None: ... -global___SubscriptionConfirmation = SubscriptionConfirmation - -class StreamEventAppeared(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - EVENT_FIELD_NUMBER: builtins.int - @property - def event(self) -> global___ResolvedEvent: ... - def __init__(self, - *, - event: typing.Optional[global___ResolvedEvent] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["event",b"event"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["event",b"event"]) -> None: ... -global___StreamEventAppeared = StreamEventAppeared - -class UnsubscribeFromStream(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - def __init__(self, - ) -> None: ... -global___UnsubscribeFromStream = UnsubscribeFromStream - -class SubscriptionDropped(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - class _SubscriptionDropReason: - ValueType = typing.NewType('ValueType', builtins.int) - V: typing_extensions.TypeAlias = ValueType - class _SubscriptionDropReasonEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[SubscriptionDropped._SubscriptionDropReason.ValueType], builtins.type): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor - Unsubscribed: SubscriptionDropped._SubscriptionDropReason.ValueType # 0 - AccessDenied: SubscriptionDropped._SubscriptionDropReason.ValueType # 1 - NotFound: SubscriptionDropped._SubscriptionDropReason.ValueType # 2 - PersistentSubscriptionDeleted: SubscriptionDropped._SubscriptionDropReason.ValueType # 3 - SubscriberMaxCountReached: SubscriptionDropped._SubscriptionDropReason.ValueType # 4 - class SubscriptionDropReason(_SubscriptionDropReason, metaclass=_SubscriptionDropReasonEnumTypeWrapper): - pass - - Unsubscribed: SubscriptionDropped.SubscriptionDropReason.ValueType # 0 - AccessDenied: SubscriptionDropped.SubscriptionDropReason.ValueType # 1 - NotFound: SubscriptionDropped.SubscriptionDropReason.ValueType # 2 - PersistentSubscriptionDeleted: SubscriptionDropped.SubscriptionDropReason.ValueType # 3 - SubscriberMaxCountReached: SubscriptionDropped.SubscriptionDropReason.ValueType # 4 - - REASON_FIELD_NUMBER: builtins.int - reason: global___SubscriptionDropped.SubscriptionDropReason.ValueType - def __init__(self, - *, - reason: typing.Optional[global___SubscriptionDropped.SubscriptionDropReason.ValueType] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["reason",b"reason"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["reason",b"reason"]) -> None: ... -global___SubscriptionDropped = SubscriptionDropped - -class NotHandled(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - class _NotHandledReason: - ValueType = typing.NewType('ValueType', builtins.int) - V: typing_extensions.TypeAlias = ValueType - class _NotHandledReasonEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[NotHandled._NotHandledReason.ValueType], builtins.type): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor - NotReady: NotHandled._NotHandledReason.ValueType # 0 - TooBusy: NotHandled._NotHandledReason.ValueType # 1 - NotLeader: NotHandled._NotHandledReason.ValueType # 2 - IsReadOnly: NotHandled._NotHandledReason.ValueType # 3 - class NotHandledReason(_NotHandledReason, metaclass=_NotHandledReasonEnumTypeWrapper): - pass - - NotReady: NotHandled.NotHandledReason.ValueType # 0 - TooBusy: NotHandled.NotHandledReason.ValueType # 1 - NotLeader: NotHandled.NotHandledReason.ValueType # 2 - IsReadOnly: NotHandled.NotHandledReason.ValueType # 3 - - class LeaderInfo(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - EXTERNAL_TCP_ADDRESS_FIELD_NUMBER: builtins.int - EXTERNAL_TCP_PORT_FIELD_NUMBER: builtins.int - HTTP_ADDRESS_FIELD_NUMBER: builtins.int - HTTP_PORT_FIELD_NUMBER: builtins.int - EXTERNAL_SECURE_TCP_ADDRESS_FIELD_NUMBER: builtins.int - EXTERNAL_SECURE_TCP_PORT_FIELD_NUMBER: builtins.int - external_tcp_address: typing.Text - external_tcp_port: builtins.int - http_address: typing.Text - http_port: builtins.int - external_secure_tcp_address: typing.Text - external_secure_tcp_port: builtins.int - def __init__(self, - *, - external_tcp_address: typing.Optional[typing.Text] = ..., - external_tcp_port: typing.Optional[builtins.int] = ..., - http_address: typing.Optional[typing.Text] = ..., - http_port: typing.Optional[builtins.int] = ..., - external_secure_tcp_address: typing.Optional[typing.Text] = ..., - external_secure_tcp_port: typing.Optional[builtins.int] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["external_secure_tcp_address",b"external_secure_tcp_address","external_secure_tcp_port",b"external_secure_tcp_port","external_tcp_address",b"external_tcp_address","external_tcp_port",b"external_tcp_port","http_address",b"http_address","http_port",b"http_port"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["external_secure_tcp_address",b"external_secure_tcp_address","external_secure_tcp_port",b"external_secure_tcp_port","external_tcp_address",b"external_tcp_address","external_tcp_port",b"external_tcp_port","http_address",b"http_address","http_port",b"http_port"]) -> None: ... - - REASON_FIELD_NUMBER: builtins.int - ADDITIONAL_INFO_FIELD_NUMBER: builtins.int - reason: global___NotHandled.NotHandledReason.ValueType - additional_info: builtins.bytes - def __init__(self, - *, - reason: typing.Optional[global___NotHandled.NotHandledReason.ValueType] = ..., - additional_info: typing.Optional[builtins.bytes] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["additional_info",b"additional_info","reason",b"reason"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["additional_info",b"additional_info","reason",b"reason"]) -> None: ... -global___NotHandled = NotHandled - -class ScavengeDatabase(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - def __init__(self, - ) -> None: ... -global___ScavengeDatabase = ScavengeDatabase - -class ScavengeDatabaseResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - class _ScavengeResult: - ValueType = typing.NewType('ValueType', builtins.int) - V: typing_extensions.TypeAlias = ValueType - class _ScavengeResultEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[ScavengeDatabaseResponse._ScavengeResult.ValueType], builtins.type): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor - Started: ScavengeDatabaseResponse._ScavengeResult.ValueType # 0 - InProgress: ScavengeDatabaseResponse._ScavengeResult.ValueType # 1 - Unauthorized: ScavengeDatabaseResponse._ScavengeResult.ValueType # 2 - class ScavengeResult(_ScavengeResult, metaclass=_ScavengeResultEnumTypeWrapper): - pass - - Started: ScavengeDatabaseResponse.ScavengeResult.ValueType # 0 - InProgress: ScavengeDatabaseResponse.ScavengeResult.ValueType # 1 - Unauthorized: ScavengeDatabaseResponse.ScavengeResult.ValueType # 2 - - RESULT_FIELD_NUMBER: builtins.int - SCAVENGEID_FIELD_NUMBER: builtins.int - result: global___ScavengeDatabaseResponse.ScavengeResult.ValueType - scavengeId: typing.Text - def __init__(self, - *, - result: typing.Optional[global___ScavengeDatabaseResponse.ScavengeResult.ValueType] = ..., - scavengeId: typing.Optional[typing.Text] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["result",b"result","scavengeId",b"scavengeId"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["result",b"result","scavengeId",b"scavengeId"]) -> None: ... -global___ScavengeDatabaseResponse = ScavengeDatabaseResponse - -class IdentifyClient(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - VERSION_FIELD_NUMBER: builtins.int - CONNECTION_NAME_FIELD_NUMBER: builtins.int - version: builtins.int - connection_name: typing.Text - def __init__(self, - *, - version: typing.Optional[builtins.int] = ..., - connection_name: typing.Optional[typing.Text] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["connection_name",b"connection_name","version",b"version"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["connection_name",b"connection_name","version",b"version"]) -> None: ... -global___IdentifyClient = IdentifyClient - -class ClientIdentified(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - def __init__(self, - ) -> None: ... -global___ClientIdentified = ClientIdentified diff --git a/messages_pb2_grpc.py b/messages_pb2_grpc.py deleted file mode 100644 index 2daafff..0000000 --- a/messages_pb2_grpc.py +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - From ccab5d608fbfc2f29deaaa9cf679e4cd15df354b Mon Sep 17 00:00:00 2001 From: Andrii Kohut Date: Tue, 2 Aug 2022 21:32:55 +0300 Subject: [PATCH 07/18] lint --- Makefile | 7 +- photonpump/connection.py | 8 +- photonpump/discovery.py | 21 +- photonpump/messages_pb2.py | 216 +++++----- photonpump/messages_pb2.pyi | 396 ++++++++++-------- photonpump/messages_pb2_grpc.py | 4 - test/conftest.py | 4 +- test/connection_test.py | 10 +- .../test_create_persistent_subscription.py | 15 +- test/discovery_test.py | 8 +- 10 files changed, 373 insertions(+), 316 deletions(-) delete mode 100644 photonpump/messages_pb2_grpc.py diff --git a/Makefile b/Makefile index 5561767..2c25dbc 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -BLACK_EXCLUSION=photonpump/__init__.py|photonpump/_version.py|versioneer.py|.tox|.venv +BLACK_EXCLUSION=photonpump/__init__.py|photonpump/_version.py|versioneer.py|.tox|.venv|.pb2 SHELL = /bin/bash default: fast_tests travis: check_lint tox @@ -44,3 +44,8 @@ create_users: -d @test-user.json eventstore_docker: run_compose create_users + + +generate: + python -m grpc_tools.protoc -I=proto --python_out=photonpump --mypy_out=photonpump proto/* + \ No newline at end of file diff --git a/photonpump/connection.py b/photonpump/connection.py index c9693f7..56d8d49 100644 --- a/photonpump/connection.py +++ b/photonpump/connection.py @@ -1301,7 +1301,13 @@ def connect( stacklevel=2, ) discovery = get_discoverer( - host, port, discovery_host, discovery_port, selector, retry_policy, sslcontext=sslcontext + host, + port, + discovery_host, + discovery_port, + selector, + retry_policy, + sslcontext=sslcontext, ) dispatcher = MessageDispatcher(name=name) connector = Connector(discovery, dispatcher, name=name, sslcontext=sslcontext) diff --git a/photonpump/discovery.py b/photonpump/discovery.py index 47460a1..03a6d7e 100644 --- a/photonpump/discovery.py +++ b/photonpump/discovery.py @@ -120,18 +120,21 @@ def read_gossip(data, secure: bool): LOG.debug("Received gossip for {%s} nodes", len(data["members"])) - nodes = [] for m in data["members"]: - internal_tcp_port = m['internalSecureTcpPort'] if secure else m['internalTcpPort'] - external_tcp_port = m['externalSecureTcpPort'] if secure else m['externalTcpPort'] - internal_http_ip = m.get('httpEndPointIp', m.get('internalHttpIp')) + internal_tcp_port = ( + m["internalSecureTcpPort"] if secure else m["internalTcpPort"] + ) + external_tcp_port = ( + m["externalSecureTcpPort"] if secure else m["externalTcpPort"] + ) + internal_http_ip = m.get("httpEndPointIp", m.get("internalHttpIp")) assert internal_http_ip - external_http_ip = m.get('httpEndPointIp', m.get('externalHttpIp')) + external_http_ip = m.get("httpEndPointIp", m.get("externalHttpIp")) assert external_http_ip - internal_http_port = m.get('httpEndPointPort', m.get('internalHttpPort')) + internal_http_port = m.get("httpEndPointPort", m.get("internalHttpPort")) assert internal_http_port - external_http_port = m.get('httpEndPointPort', m.get('externalHttpPort')) + external_http_port = m.get("httpEndPointPort", m.get("externalHttpPort")) assert external_http_port node = DiscoveredNode( state=NodeState[m["state"]], @@ -249,9 +252,7 @@ async def fetch_new_gossip(session, seed, sslcontext): return read_gossip(data, bool(sslcontext)) except aiohttp.ClientError: - LOG.exception( - "Failed loading gossip from %s", url - ) + LOG.exception("Failed loading gossip from %s", url) return None diff --git a/photonpump/messages_pb2.py b/photonpump/messages_pb2.py index d527f5e..283e21d 100644 --- a/photonpump/messages_pb2.py +++ b/photonpump/messages_pb2.py @@ -15,7 +15,7 @@ -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x0emessages.proto\x12\x1a\x45ventStore.Client.Messages\"\x8a\x01\n\x08NewEvent\x12\x10\n\x08\x65vent_id\x18\x01 \x01(\x0c\x12\x12\n\nevent_type\x18\x02 \x01(\t\x12\x19\n\x11\x64\x61ta_content_type\x18\x03 \x01(\x05\x12\x1d\n\x15metadata_content_type\x18\x04 \x01(\x05\x12\x0c\n\x04\x64\x61ta\x18\x05 \x01(\x0c\x12\x10\n\x08metadata\x18\x06 \x01(\x0c\"\xe4\x01\n\x0b\x45ventRecord\x12\x17\n\x0f\x65vent_stream_id\x18\x01 \x01(\t\x12\x14\n\x0c\x65vent_number\x18\x02 \x01(\x03\x12\x10\n\x08\x65vent_id\x18\x03 \x01(\x0c\x12\x12\n\nevent_type\x18\x04 \x01(\t\x12\x19\n\x11\x64\x61ta_content_type\x18\x05 \x01(\x05\x12\x1d\n\x15metadata_content_type\x18\x06 \x01(\x05\x12\x0c\n\x04\x64\x61ta\x18\x07 \x01(\x0c\x12\x10\n\x08metadata\x18\x08 \x01(\x0c\x12\x0f\n\x07\x63reated\x18\t \x01(\x03\x12\x15\n\rcreated_epoch\x18\n \x01(\x03\"\x85\x01\n\x14ResolvedIndexedEvent\x12\x36\n\x05\x65vent\x18\x01 \x01(\x0b\x32\'.EventStore.Client.Messages.EventRecord\x12\x35\n\x04link\x18\x02 \x01(\x0b\x32\'.EventStore.Client.Messages.EventRecord\"\xb1\x01\n\rResolvedEvent\x12\x36\n\x05\x65vent\x18\x01 \x01(\x0b\x32\'.EventStore.Client.Messages.EventRecord\x12\x35\n\x04link\x18\x02 \x01(\x0b\x32\'.EventStore.Client.Messages.EventRecord\x12\x17\n\x0f\x63ommit_position\x18\x03 \x01(\x03\x12\x18\n\x10prepare_position\x18\x04 \x01(\x03\"\x8e\x01\n\x0bWriteEvents\x12\x17\n\x0f\x65vent_stream_id\x18\x01 \x01(\t\x12\x18\n\x10\x65xpected_version\x18\x02 \x01(\x03\x12\x34\n\x06\x65vents\x18\x03 \x03(\x0b\x32$.EventStore.Client.Messages.NewEvent\x12\x16\n\x0erequire_leader\x18\x04 \x01(\x08\"\xe7\x01\n\x14WriteEventsCompleted\x12;\n\x06result\x18\x01 \x01(\x0e\x32+.EventStore.Client.Messages.OperationResult\x12\x0f\n\x07message\x18\x02 \x01(\t\x12\x1a\n\x12\x66irst_event_number\x18\x03 \x01(\x03\x12\x19\n\x11last_event_number\x18\x04 \x01(\x03\x12\x18\n\x10prepare_position\x18\x05 \x01(\x03\x12\x17\n\x0f\x63ommit_position\x18\x06 \x01(\x03\x12\x17\n\x0f\x63urrent_version\x18\x07 \x01(\x03\"n\n\x0c\x44\x65leteStream\x12\x17\n\x0f\x65vent_stream_id\x18\x01 \x01(\t\x12\x18\n\x10\x65xpected_version\x18\x02 \x01(\x03\x12\x16\n\x0erequire_leader\x18\x03 \x01(\x08\x12\x13\n\x0bhard_delete\x18\x04 \x01(\x08\"\xb1\x01\n\x15\x44\x65leteStreamCompleted\x12;\n\x06result\x18\x01 \x01(\x0e\x32+.EventStore.Client.Messages.OperationResult\x12\x0f\n\x07message\x18\x02 \x01(\t\x12\x18\n\x10prepare_position\x18\x03 \x01(\x03\x12\x17\n\x0f\x63ommit_position\x18\x04 \x01(\x03\x12\x17\n\x0f\x63urrent_version\x18\x05 \x01(\x03\"]\n\x10TransactionStart\x12\x17\n\x0f\x65vent_stream_id\x18\x01 \x01(\t\x12\x18\n\x10\x65xpected_version\x18\x02 \x01(\x03\x12\x16\n\x0erequire_leader\x18\x03 \x01(\x08\"\x81\x01\n\x19TransactionStartCompleted\x12\x16\n\x0etransaction_id\x18\x01 \x01(\x03\x12;\n\x06result\x18\x02 \x01(\x0e\x32+.EventStore.Client.Messages.OperationResult\x12\x0f\n\x07message\x18\x03 \x01(\t\"x\n\x10TransactionWrite\x12\x16\n\x0etransaction_id\x18\x01 \x01(\x03\x12\x34\n\x06\x65vents\x18\x02 \x03(\x0b\x32$.EventStore.Client.Messages.NewEvent\x12\x16\n\x0erequire_leader\x18\x03 \x01(\x08\"\x81\x01\n\x19TransactionWriteCompleted\x12\x16\n\x0etransaction_id\x18\x01 \x01(\x03\x12;\n\x06result\x18\x02 \x01(\x0e\x32+.EventStore.Client.Messages.OperationResult\x12\x0f\n\x07message\x18\x03 \x01(\t\"C\n\x11TransactionCommit\x12\x16\n\x0etransaction_id\x18\x01 \x01(\x03\x12\x16\n\x0erequire_leader\x18\x02 \x01(\x08\"\xec\x01\n\x1aTransactionCommitCompleted\x12\x16\n\x0etransaction_id\x18\x01 \x01(\x03\x12;\n\x06result\x18\x02 \x01(\x0e\x32+.EventStore.Client.Messages.OperationResult\x12\x0f\n\x07message\x18\x03 \x01(\t\x12\x1a\n\x12\x66irst_event_number\x18\x04 \x01(\x03\x12\x19\n\x11last_event_number\x18\x05 \x01(\x03\x12\x18\n\x10prepare_position\x18\x06 \x01(\x03\x12\x17\n\x0f\x63ommit_position\x18\x07 \x01(\x03\"l\n\tReadEvent\x12\x17\n\x0f\x65vent_stream_id\x18\x01 \x01(\t\x12\x14\n\x0c\x65vent_number\x18\x02 \x01(\x03\x12\x18\n\x10resolve_link_tos\x18\x03 \x01(\x08\x12\x16\n\x0erequire_leader\x18\x04 \x01(\x08\"\xa0\x02\n\x12ReadEventCompleted\x12N\n\x06result\x18\x01 \x01(\x0e\x32>.EventStore.Client.Messages.ReadEventCompleted.ReadEventResult\x12?\n\x05\x65vent\x18\x02 \x01(\x0b\x32\x30.EventStore.Client.Messages.ResolvedIndexedEvent\x12\r\n\x05\x65rror\x18\x03 \x01(\t\"j\n\x0fReadEventResult\x12\x0b\n\x07Success\x10\x00\x12\x0c\n\x08NotFound\x10\x01\x12\x0c\n\x08NoStream\x10\x02\x12\x11\n\rStreamDeleted\x10\x03\x12\t\n\x05\x45rror\x10\x04\x12\x10\n\x0c\x41\x63\x63\x65ssDenied\x10\x05\"\x8b\x01\n\x10ReadStreamEvents\x12\x17\n\x0f\x65vent_stream_id\x18\x01 \x01(\t\x12\x19\n\x11\x66rom_event_number\x18\x02 \x01(\x03\x12\x11\n\tmax_count\x18\x03 \x01(\x05\x12\x18\n\x10resolve_link_tos\x18\x04 \x01(\x08\x12\x16\n\x0erequire_leader\x18\x05 \x01(\x08\"\xa2\x03\n\x19ReadStreamEventsCompleted\x12@\n\x06\x65vents\x18\x01 \x03(\x0b\x32\x30.EventStore.Client.Messages.ResolvedIndexedEvent\x12V\n\x06result\x18\x02 \x01(\x0e\x32\x46.EventStore.Client.Messages.ReadStreamEventsCompleted.ReadStreamResult\x12\x19\n\x11next_event_number\x18\x03 \x01(\x03\x12\x19\n\x11last_event_number\x18\x04 \x01(\x03\x12\x18\n\x10is_end_of_stream\x18\x05 \x01(\x08\x12\x1c\n\x14last_commit_position\x18\x06 \x01(\x03\x12\r\n\x05\x65rror\x18\x07 \x01(\t\"n\n\x10ReadStreamResult\x12\x0b\n\x07Success\x10\x00\x12\x0c\n\x08NoStream\x10\x01\x12\x11\n\rStreamDeleted\x10\x02\x12\x0f\n\x0bNotModified\x10\x03\x12\t\n\x05\x45rror\x10\x04\x12\x10\n\x0c\x41\x63\x63\x65ssDenied\x10\x05\"\x87\x01\n\rReadAllEvents\x12\x17\n\x0f\x63ommit_position\x18\x01 \x01(\x03\x12\x18\n\x10prepare_position\x18\x02 \x01(\x03\x12\x11\n\tmax_count\x18\x03 \x01(\x05\x12\x18\n\x10resolve_link_tos\x18\x04 \x01(\x08\x12\x16\n\x0erequire_leader\x18\x05 \x01(\x08\"\xf0\x02\n\x16ReadAllEventsCompleted\x12\x17\n\x0f\x63ommit_position\x18\x01 \x01(\x03\x12\x18\n\x10prepare_position\x18\x02 \x01(\x03\x12\x39\n\x06\x65vents\x18\x03 \x03(\x0b\x32).EventStore.Client.Messages.ResolvedEvent\x12\x1c\n\x14next_commit_position\x18\x04 \x01(\x03\x12\x1d\n\x15next_prepare_position\x18\x05 \x01(\x03\x12P\n\x06result\x18\x06 \x01(\x0e\x32@.EventStore.Client.Messages.ReadAllEventsCompleted.ReadAllResult\x12\r\n\x05\x65rror\x18\x07 \x01(\t\"J\n\rReadAllResult\x12\x0b\n\x07Success\x10\x00\x12\x0f\n\x0bNotModified\x10\x01\x12\t\n\x05\x45rror\x10\x02\x12\x10\n\x0c\x41\x63\x63\x65ssDenied\x10\x03\"\xe9\x01\n\x06\x46ilter\x12\x41\n\x07\x63ontext\x18\x01 \x01(\x0e\x32\x30.EventStore.Client.Messages.Filter.FilterContext\x12;\n\x04type\x18\x02 \x01(\x0e\x32-.EventStore.Client.Messages.Filter.FilterType\x12\x0c\n\x04\x64\x61ta\x18\x03 \x03(\t\",\n\rFilterContext\x12\x0c\n\x08StreamId\x10\x00\x12\r\n\tEventType\x10\x01\"#\n\nFilterType\x12\t\n\x05Regex\x10\x00\x12\n\n\x06Prefix\x10\x01\"\xde\x01\n\x15\x46ilteredReadAllEvents\x12\x17\n\x0f\x63ommit_position\x18\x01 \x01(\x03\x12\x18\n\x10prepare_position\x18\x02 \x01(\x03\x12\x11\n\tmax_count\x18\x03 \x01(\x05\x12\x19\n\x11max_search_window\x18\x04 \x01(\x05\x12\x18\n\x10resolve_link_tos\x18\x05 \x01(\x08\x12\x16\n\x0erequire_leader\x18\x06 \x01(\x08\x12\x32\n\x06\x66ilter\x18\x07 \x01(\x0b\x32\".EventStore.Client.Messages.Filter\"\xaa\x03\n\x1e\x46ilteredReadAllEventsCompleted\x12\x17\n\x0f\x63ommit_position\x18\x01 \x01(\x03\x12\x18\n\x10prepare_position\x18\x02 \x01(\x03\x12\x39\n\x06\x65vents\x18\x03 \x03(\x0b\x32).EventStore.Client.Messages.ResolvedEvent\x12\x1c\n\x14next_commit_position\x18\x04 \x01(\x03\x12\x1d\n\x15next_prepare_position\x18\x05 \x01(\x03\x12\x18\n\x10is_end_of_stream\x18\x06 \x01(\x08\x12`\n\x06result\x18\x07 \x01(\x0e\x32P.EventStore.Client.Messages.FilteredReadAllEventsCompleted.FilteredReadAllResult\x12\r\n\x05\x65rror\x18\x08 \x01(\t\"R\n\x15\x46ilteredReadAllResult\x12\x0b\n\x07Success\x10\x00\x12\x0f\n\x0bNotModified\x10\x01\x12\t\n\x05\x45rror\x10\x02\x12\x10\n\x0c\x41\x63\x63\x65ssDenied\x10\x03\"\xde\x03\n\x1c\x43reatePersistentSubscription\x12\x1f\n\x17subscription_group_name\x18\x01 \x01(\t\x12\x17\n\x0f\x65vent_stream_id\x18\x02 \x01(\t\x12\x18\n\x10resolve_link_tos\x18\x03 \x01(\x08\x12\x12\n\nstart_from\x18\x04 \x01(\x03\x12$\n\x1cmessage_timeout_milliseconds\x18\x05 \x01(\x05\x12\x19\n\x11record_statistics\x18\x06 \x01(\x08\x12\x18\n\x10live_buffer_size\x18\x07 \x01(\x05\x12\x17\n\x0fread_batch_size\x18\x08 \x01(\x05\x12\x13\n\x0b\x62uffer_size\x18\t \x01(\x05\x12\x17\n\x0fmax_retry_count\x18\n \x01(\x05\x12\x1a\n\x12prefer_round_robin\x18\x0b \x01(\x08\x12\x1d\n\x15\x63heckpoint_after_time\x18\x0c \x01(\x05\x12\x1c\n\x14\x63heckpoint_max_count\x18\r \x01(\x05\x12\x1c\n\x14\x63heckpoint_min_count\x18\x0e \x01(\x05\x12\x1c\n\x14subscriber_max_count\x18\x0f \x01(\x05\x12\x1f\n\x17named_consumer_strategy\x18\x10 \x01(\t\"X\n\x1c\x44\x65letePersistentSubscription\x12\x1f\n\x17subscription_group_name\x18\x01 \x01(\t\x12\x17\n\x0f\x65vent_stream_id\x18\x02 \x01(\t\"\xde\x03\n\x1cUpdatePersistentSubscription\x12\x1f\n\x17subscription_group_name\x18\x01 \x01(\t\x12\x17\n\x0f\x65vent_stream_id\x18\x02 \x01(\t\x12\x18\n\x10resolve_link_tos\x18\x03 \x01(\x08\x12\x12\n\nstart_from\x18\x04 \x01(\x03\x12$\n\x1cmessage_timeout_milliseconds\x18\x05 \x01(\x05\x12\x19\n\x11record_statistics\x18\x06 \x01(\x08\x12\x18\n\x10live_buffer_size\x18\x07 \x01(\x05\x12\x17\n\x0fread_batch_size\x18\x08 \x01(\x05\x12\x13\n\x0b\x62uffer_size\x18\t \x01(\x05\x12\x17\n\x0fmax_retry_count\x18\n \x01(\x05\x12\x1a\n\x12prefer_round_robin\x18\x0b \x01(\x08\x12\x1d\n\x15\x63heckpoint_after_time\x18\x0c \x01(\x05\x12\x1c\n\x14\x63heckpoint_max_count\x18\r \x01(\x05\x12\x1c\n\x14\x63heckpoint_min_count\x18\x0e \x01(\x05\x12\x1c\n\x14subscriber_max_count\x18\x0f \x01(\x05\x12\x1f\n\x17named_consumer_strategy\x18\x10 \x01(\t\"\x8e\x02\n%UpdatePersistentSubscriptionCompleted\x12t\n\x06result\x18\x01 \x01(\x0e\x32\x64.EventStore.Client.Messages.UpdatePersistentSubscriptionCompleted.UpdatePersistentSubscriptionResult\x12\x0e\n\x06reason\x18\x02 \x01(\t\"_\n\"UpdatePersistentSubscriptionResult\x12\x0b\n\x07Success\x10\x00\x12\x10\n\x0c\x44oesNotExist\x10\x01\x12\x08\n\x04\x46\x61il\x10\x02\x12\x10\n\x0c\x41\x63\x63\x65ssDenied\x10\x03\"\x8f\x02\n%CreatePersistentSubscriptionCompleted\x12t\n\x06result\x18\x01 \x01(\x0e\x32\x64.EventStore.Client.Messages.CreatePersistentSubscriptionCompleted.CreatePersistentSubscriptionResult\x12\x0e\n\x06reason\x18\x02 \x01(\t\"`\n\"CreatePersistentSubscriptionResult\x12\x0b\n\x07Success\x10\x00\x12\x11\n\rAlreadyExists\x10\x01\x12\x08\n\x04\x46\x61il\x10\x02\x12\x10\n\x0c\x41\x63\x63\x65ssDenied\x10\x03\"\x8e\x02\n%DeletePersistentSubscriptionCompleted\x12t\n\x06result\x18\x01 \x01(\x0e\x32\x64.EventStore.Client.Messages.DeletePersistentSubscriptionCompleted.DeletePersistentSubscriptionResult\x12\x0e\n\x06reason\x18\x02 \x01(\t\"_\n\"DeletePersistentSubscriptionResult\x12\x0b\n\x07Success\x10\x00\x12\x10\n\x0c\x44oesNotExist\x10\x01\x12\x08\n\x04\x46\x61il\x10\x02\x12\x10\n\x0c\x41\x63\x63\x65ssDenied\x10\x03\"w\n\x1f\x43onnectToPersistentSubscription\x12\x17\n\x0fsubscription_id\x18\x01 \x01(\t\x12\x17\n\x0f\x65vent_stream_id\x18\x02 \x01(\t\x12\"\n\x1a\x61llowed_in_flight_messages\x18\x03 \x01(\x05\"W\n\x1fPersistentSubscriptionAckEvents\x12\x17\n\x0fsubscription_id\x18\x01 \x01(\t\x12\x1b\n\x13processed_event_ids\x18\x02 \x03(\x0c\"\x82\x02\n\x1fPersistentSubscriptionNakEvents\x12\x17\n\x0fsubscription_id\x18\x01 \x01(\t\x12\x1b\n\x13processed_event_ids\x18\x02 \x03(\x0c\x12\x0f\n\x07message\x18\x03 \x01(\t\x12U\n\x06\x61\x63tion\x18\x04 \x01(\x0e\x32\x45.EventStore.Client.Messages.PersistentSubscriptionNakEvents.NakAction\"A\n\tNakAction\x12\x0b\n\x07Unknown\x10\x00\x12\x08\n\x04Park\x10\x01\x12\t\n\x05Retry\x10\x02\x12\x08\n\x04Skip\x10\x03\x12\x08\n\x04Stop\x10\x04\"v\n\"PersistentSubscriptionConfirmation\x12\x1c\n\x14last_commit_position\x18\x01 \x01(\x03\x12\x17\n\x0fsubscription_id\x18\x02 \x01(\t\x12\x19\n\x11last_event_number\x18\x03 \x01(\x03\"\x80\x01\n)PersistentSubscriptionStreamEventAppeared\x12?\n\x05\x65vent\x18\x01 \x01(\x0b\x32\x30.EventStore.Client.Messages.ResolvedIndexedEvent\x12\x12\n\nretryCount\x18\x02 \x01(\x05\"F\n\x11SubscribeToStream\x12\x17\n\x0f\x65vent_stream_id\x18\x01 \x01(\t\x12\x18\n\x10resolve_link_tos\x18\x02 \x01(\x08\"\x9f\x01\n\x19\x46ilteredSubscribeToStream\x12\x17\n\x0f\x65vent_stream_id\x18\x01 \x01(\t\x12\x18\n\x10resolve_link_tos\x18\x02 \x01(\x08\x12\x32\n\x06\x66ilter\x18\x03 \x01(\x0b\x32\".EventStore.Client.Messages.Filter\x12\x1b\n\x13\x63heckpoint_interval\x18\x04 \x01(\x05\"F\n\x11\x43heckpointReached\x12\x17\n\x0f\x63ommit_position\x18\x01 \x01(\x03\x12\x18\n\x10prepare_position\x18\x02 \x01(\x03\"S\n\x18SubscriptionConfirmation\x12\x1c\n\x14last_commit_position\x18\x01 \x01(\x03\x12\x19\n\x11last_event_number\x18\x02 \x01(\x03\"O\n\x13StreamEventAppeared\x12\x38\n\x05\x65vent\x18\x01 \x01(\x0b\x32).EventStore.Client.Messages.ResolvedEvent\"\x17\n\x15UnsubscribeFromStream\"\xfc\x01\n\x13SubscriptionDropped\x12V\n\x06reason\x18\x01 \x01(\x0e\x32\x46.EventStore.Client.Messages.SubscriptionDropped.SubscriptionDropReason\"\x8c\x01\n\x16SubscriptionDropReason\x12\x10\n\x0cUnsubscribed\x10\x00\x12\x10\n\x0c\x41\x63\x63\x65ssDenied\x10\x01\x12\x0c\n\x08NotFound\x10\x02\x12!\n\x1dPersistentSubscriptionDeleted\x10\x03\x12\x1d\n\x19SubscriberMaxCountReached\x10\x04\"\xf4\x02\n\nNotHandled\x12G\n\x06reason\x18\x01 \x01(\x0e\x32\x37.EventStore.Client.Messages.NotHandled.NotHandledReason\x12\x17\n\x0f\x61\x64\x64itional_info\x18\x02 \x01(\x0c\x1a\xb5\x01\n\nLeaderInfo\x12\x1c\n\x14\x65xternal_tcp_address\x18\x01 \x01(\t\x12\x19\n\x11\x65xternal_tcp_port\x18\x02 \x01(\x05\x12\x14\n\x0chttp_address\x18\x03 \x01(\t\x12\x11\n\thttp_port\x18\x04 \x01(\x05\x12#\n\x1b\x65xternal_secure_tcp_address\x18\x05 \x01(\t\x12 \n\x18\x65xternal_secure_tcp_port\x18\x06 \x01(\x05\"L\n\x10NotHandledReason\x12\x0c\n\x08NotReady\x10\x00\x12\x0b\n\x07TooBusy\x10\x01\x12\r\n\tNotLeader\x10\x02\x12\x0e\n\nIsReadOnly\x10\x03\"\x12\n\x10ScavengeDatabase\"\xc4\x01\n\x18ScavengeDatabaseResponse\x12S\n\x06result\x18\x01 \x01(\x0e\x32\x43.EventStore.Client.Messages.ScavengeDatabaseResponse.ScavengeResult\x12\x12\n\nscavengeId\x18\x02 \x01(\t\"?\n\x0eScavengeResult\x12\x0b\n\x07Started\x10\x00\x12\x0e\n\nInProgress\x10\x01\x12\x10\n\x0cUnauthorized\x10\x02\":\n\x0eIdentifyClient\x12\x0f\n\x07version\x18\x01 \x01(\x05\x12\x17\n\x0f\x63onnection_name\x18\x02 \x01(\t\"\x12\n\x10\x43lientIdentified*\xb0\x01\n\x0fOperationResult\x12\x0b\n\x07Success\x10\x00\x12\x12\n\x0ePrepareTimeout\x10\x01\x12\x11\n\rCommitTimeout\x10\x02\x12\x12\n\x0e\x46orwardTimeout\x10\x03\x12\x18\n\x14WrongExpectedVersion\x10\x04\x12\x11\n\rStreamDeleted\x10\x05\x12\x16\n\x12InvalidTransaction\x10\x06\x12\x10\n\x0c\x41\x63\x63\x65ssDenied\x10\x07\x62\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x0emessages.proto\x12\x1a\x45ventStore.Client.Messages\"\x8a\x01\n\x08NewEvent\x12\x10\n\x08\x65vent_id\x18\x01 \x02(\x0c\x12\x12\n\nevent_type\x18\x02 \x02(\t\x12\x19\n\x11\x64\x61ta_content_type\x18\x03 \x02(\x05\x12\x1d\n\x15metadata_content_type\x18\x04 \x02(\x05\x12\x0c\n\x04\x64\x61ta\x18\x05 \x02(\x0c\x12\x10\n\x08metadata\x18\x06 \x01(\x0c\"\xe4\x01\n\x0b\x45ventRecord\x12\x17\n\x0f\x65vent_stream_id\x18\x01 \x02(\t\x12\x14\n\x0c\x65vent_number\x18\x02 \x02(\x03\x12\x10\n\x08\x65vent_id\x18\x03 \x02(\x0c\x12\x12\n\nevent_type\x18\x04 \x02(\t\x12\x19\n\x11\x64\x61ta_content_type\x18\x05 \x02(\x05\x12\x1d\n\x15metadata_content_type\x18\x06 \x02(\x05\x12\x0c\n\x04\x64\x61ta\x18\x07 \x02(\x0c\x12\x10\n\x08metadata\x18\x08 \x01(\x0c\x12\x0f\n\x07\x63reated\x18\t \x01(\x03\x12\x15\n\rcreated_epoch\x18\n \x01(\x03\"\x85\x01\n\x14ResolvedIndexedEvent\x12\x36\n\x05\x65vent\x18\x01 \x02(\x0b\x32\'.EventStore.Client.Messages.EventRecord\x12\x35\n\x04link\x18\x02 \x01(\x0b\x32\'.EventStore.Client.Messages.EventRecord\"\xb1\x01\n\rResolvedEvent\x12\x36\n\x05\x65vent\x18\x01 \x02(\x0b\x32\'.EventStore.Client.Messages.EventRecord\x12\x35\n\x04link\x18\x02 \x01(\x0b\x32\'.EventStore.Client.Messages.EventRecord\x12\x17\n\x0f\x63ommit_position\x18\x03 \x02(\x03\x12\x18\n\x10prepare_position\x18\x04 \x02(\x03\"\x8e\x01\n\x0bWriteEvents\x12\x17\n\x0f\x65vent_stream_id\x18\x01 \x02(\t\x12\x18\n\x10\x65xpected_version\x18\x02 \x02(\x03\x12\x34\n\x06\x65vents\x18\x03 \x03(\x0b\x32$.EventStore.Client.Messages.NewEvent\x12\x16\n\x0erequire_leader\x18\x04 \x02(\x08\"\xe7\x01\n\x14WriteEventsCompleted\x12;\n\x06result\x18\x01 \x02(\x0e\x32+.EventStore.Client.Messages.OperationResult\x12\x0f\n\x07message\x18\x02 \x01(\t\x12\x1a\n\x12\x66irst_event_number\x18\x03 \x02(\x03\x12\x19\n\x11last_event_number\x18\x04 \x02(\x03\x12\x18\n\x10prepare_position\x18\x05 \x01(\x03\x12\x17\n\x0f\x63ommit_position\x18\x06 \x01(\x03\x12\x17\n\x0f\x63urrent_version\x18\x07 \x01(\x03\"n\n\x0c\x44\x65leteStream\x12\x17\n\x0f\x65vent_stream_id\x18\x01 \x02(\t\x12\x18\n\x10\x65xpected_version\x18\x02 \x02(\x03\x12\x16\n\x0erequire_leader\x18\x03 \x02(\x08\x12\x13\n\x0bhard_delete\x18\x04 \x01(\x08\"\x98\x01\n\x15\x44\x65leteStreamCompleted\x12;\n\x06result\x18\x01 \x02(\x0e\x32+.EventStore.Client.Messages.OperationResult\x12\x0f\n\x07message\x18\x02 \x01(\t\x12\x18\n\x10prepare_position\x18\x03 \x01(\x03\x12\x17\n\x0f\x63ommit_position\x18\x04 \x01(\x03\"]\n\x10TransactionStart\x12\x17\n\x0f\x65vent_stream_id\x18\x01 \x02(\t\x12\x18\n\x10\x65xpected_version\x18\x02 \x02(\x03\x12\x16\n\x0erequire_leader\x18\x03 \x02(\x08\"\x81\x01\n\x19TransactionStartCompleted\x12\x16\n\x0etransaction_id\x18\x01 \x02(\x03\x12;\n\x06result\x18\x02 \x02(\x0e\x32+.EventStore.Client.Messages.OperationResult\x12\x0f\n\x07message\x18\x03 \x01(\t\"x\n\x10TransactionWrite\x12\x16\n\x0etransaction_id\x18\x01 \x02(\x03\x12\x34\n\x06\x65vents\x18\x02 \x03(\x0b\x32$.EventStore.Client.Messages.NewEvent\x12\x16\n\x0erequire_leader\x18\x03 \x02(\x08\"\x81\x01\n\x19TransactionWriteCompleted\x12\x16\n\x0etransaction_id\x18\x01 \x02(\x03\x12;\n\x06result\x18\x02 \x02(\x0e\x32+.EventStore.Client.Messages.OperationResult\x12\x0f\n\x07message\x18\x03 \x01(\t\"C\n\x11TransactionCommit\x12\x16\n\x0etransaction_id\x18\x01 \x02(\x03\x12\x16\n\x0erequire_leader\x18\x02 \x02(\x08\"\xec\x01\n\x1aTransactionCommitCompleted\x12\x16\n\x0etransaction_id\x18\x01 \x02(\x03\x12;\n\x06result\x18\x02 \x02(\x0e\x32+.EventStore.Client.Messages.OperationResult\x12\x0f\n\x07message\x18\x03 \x01(\t\x12\x1a\n\x12\x66irst_event_number\x18\x04 \x02(\x03\x12\x19\n\x11last_event_number\x18\x05 \x02(\x03\x12\x18\n\x10prepare_position\x18\x06 \x01(\x03\x12\x17\n\x0f\x63ommit_position\x18\x07 \x01(\x03\"l\n\tReadEvent\x12\x17\n\x0f\x65vent_stream_id\x18\x01 \x02(\t\x12\x14\n\x0c\x65vent_number\x18\x02 \x02(\x03\x12\x18\n\x10resolve_link_tos\x18\x03 \x02(\x08\x12\x16\n\x0erequire_leader\x18\x04 \x02(\x08\"\xa0\x02\n\x12ReadEventCompleted\x12N\n\x06result\x18\x01 \x02(\x0e\x32>.EventStore.Client.Messages.ReadEventCompleted.ReadEventResult\x12?\n\x05\x65vent\x18\x02 \x02(\x0b\x32\x30.EventStore.Client.Messages.ResolvedIndexedEvent\x12\r\n\x05\x65rror\x18\x03 \x01(\t\"j\n\x0fReadEventResult\x12\x0b\n\x07Success\x10\x00\x12\x0c\n\x08NotFound\x10\x01\x12\x0c\n\x08NoStream\x10\x02\x12\x11\n\rStreamDeleted\x10\x03\x12\t\n\x05\x45rror\x10\x04\x12\x10\n\x0c\x41\x63\x63\x65ssDenied\x10\x05\"\x8b\x01\n\x10ReadStreamEvents\x12\x17\n\x0f\x65vent_stream_id\x18\x01 \x02(\t\x12\x19\n\x11\x66rom_event_number\x18\x02 \x02(\x03\x12\x11\n\tmax_count\x18\x03 \x02(\x05\x12\x18\n\x10resolve_link_tos\x18\x04 \x02(\x08\x12\x16\n\x0erequire_leader\x18\x05 \x02(\x08\"\xa2\x03\n\x19ReadStreamEventsCompleted\x12@\n\x06\x65vents\x18\x01 \x03(\x0b\x32\x30.EventStore.Client.Messages.ResolvedIndexedEvent\x12V\n\x06result\x18\x02 \x02(\x0e\x32\x46.EventStore.Client.Messages.ReadStreamEventsCompleted.ReadStreamResult\x12\x19\n\x11next_event_number\x18\x03 \x02(\x03\x12\x19\n\x11last_event_number\x18\x04 \x02(\x03\x12\x18\n\x10is_end_of_stream\x18\x05 \x02(\x08\x12\x1c\n\x14last_commit_position\x18\x06 \x02(\x03\x12\r\n\x05\x65rror\x18\x07 \x01(\t\"n\n\x10ReadStreamResult\x12\x0b\n\x07Success\x10\x00\x12\x0c\n\x08NoStream\x10\x01\x12\x11\n\rStreamDeleted\x10\x02\x12\x0f\n\x0bNotModified\x10\x03\x12\t\n\x05\x45rror\x10\x04\x12\x10\n\x0c\x41\x63\x63\x65ssDenied\x10\x05\"\x87\x01\n\rReadAllEvents\x12\x17\n\x0f\x63ommit_position\x18\x01 \x02(\x03\x12\x18\n\x10prepare_position\x18\x02 \x02(\x03\x12\x11\n\tmax_count\x18\x03 \x02(\x05\x12\x18\n\x10resolve_link_tos\x18\x04 \x02(\x08\x12\x16\n\x0erequire_leader\x18\x05 \x02(\x08\"\xf9\x02\n\x16ReadAllEventsCompleted\x12\x17\n\x0f\x63ommit_position\x18\x01 \x02(\x03\x12\x18\n\x10prepare_position\x18\x02 \x02(\x03\x12\x39\n\x06\x65vents\x18\x03 \x03(\x0b\x32).EventStore.Client.Messages.ResolvedEvent\x12\x1c\n\x14next_commit_position\x18\x04 \x02(\x03\x12\x1d\n\x15next_prepare_position\x18\x05 \x02(\x03\x12Y\n\x06result\x18\x06 \x01(\x0e\x32@.EventStore.Client.Messages.ReadAllEventsCompleted.ReadAllResult:\x07Success\x12\r\n\x05\x65rror\x18\x07 \x01(\t\"J\n\rReadAllResult\x12\x0b\n\x07Success\x10\x00\x12\x0f\n\x0bNotModified\x10\x01\x12\t\n\x05\x45rror\x10\x02\x12\x10\n\x0c\x41\x63\x63\x65ssDenied\x10\x03\"\xe9\x01\n\x06\x46ilter\x12\x41\n\x07\x63ontext\x18\x01 \x02(\x0e\x32\x30.EventStore.Client.Messages.Filter.FilterContext\x12;\n\x04type\x18\x02 \x02(\x0e\x32-.EventStore.Client.Messages.Filter.FilterType\x12\x0c\n\x04\x64\x61ta\x18\x03 \x03(\t\",\n\rFilterContext\x12\x0c\n\x08StreamId\x10\x00\x12\r\n\tEventType\x10\x01\"#\n\nFilterType\x12\t\n\x05Regex\x10\x00\x12\n\n\x06Prefix\x10\x01\"\xde\x01\n\x15\x46ilteredReadAllEvents\x12\x17\n\x0f\x63ommit_position\x18\x01 \x02(\x03\x12\x18\n\x10prepare_position\x18\x02 \x02(\x03\x12\x11\n\tmax_count\x18\x03 \x02(\x05\x12\x19\n\x11max_search_window\x18\x04 \x01(\x05\x12\x18\n\x10resolve_link_tos\x18\x05 \x02(\x08\x12\x16\n\x0erequire_leader\x18\x06 \x02(\x08\x12\x32\n\x06\x66ilter\x18\x07 \x02(\x0b\x32\".EventStore.Client.Messages.Filter\"\xb3\x03\n\x1e\x46ilteredReadAllEventsCompleted\x12\x17\n\x0f\x63ommit_position\x18\x01 \x02(\x03\x12\x18\n\x10prepare_position\x18\x02 \x02(\x03\x12\x39\n\x06\x65vents\x18\x03 \x03(\x0b\x32).EventStore.Client.Messages.ResolvedEvent\x12\x1c\n\x14next_commit_position\x18\x04 \x02(\x03\x12\x1d\n\x15next_prepare_position\x18\x05 \x02(\x03\x12\x18\n\x10is_end_of_stream\x18\x06 \x02(\x08\x12i\n\x06result\x18\x07 \x01(\x0e\x32P.EventStore.Client.Messages.FilteredReadAllEventsCompleted.FilteredReadAllResult:\x07Success\x12\r\n\x05\x65rror\x18\x08 \x01(\t\"R\n\x15\x46ilteredReadAllResult\x12\x0b\n\x07Success\x10\x00\x12\x0f\n\x0bNotModified\x10\x01\x12\t\n\x05\x45rror\x10\x02\x12\x10\n\x0c\x41\x63\x63\x65ssDenied\x10\x03\"\xde\x03\n\x1c\x43reatePersistentSubscription\x12\x1f\n\x17subscription_group_name\x18\x01 \x02(\t\x12\x17\n\x0f\x65vent_stream_id\x18\x02 \x02(\t\x12\x18\n\x10resolve_link_tos\x18\x03 \x02(\x08\x12\x12\n\nstart_from\x18\x04 \x02(\x03\x12$\n\x1cmessage_timeout_milliseconds\x18\x05 \x02(\x05\x12\x19\n\x11record_statistics\x18\x06 \x02(\x08\x12\x18\n\x10live_buffer_size\x18\x07 \x02(\x05\x12\x17\n\x0fread_batch_size\x18\x08 \x02(\x05\x12\x13\n\x0b\x62uffer_size\x18\t \x02(\x05\x12\x17\n\x0fmax_retry_count\x18\n \x02(\x05\x12\x1a\n\x12prefer_round_robin\x18\x0b \x02(\x08\x12\x1d\n\x15\x63heckpoint_after_time\x18\x0c \x02(\x05\x12\x1c\n\x14\x63heckpoint_max_count\x18\r \x02(\x05\x12\x1c\n\x14\x63heckpoint_min_count\x18\x0e \x02(\x05\x12\x1c\n\x14subscriber_max_count\x18\x0f \x02(\x05\x12\x1f\n\x17named_consumer_strategy\x18\x10 \x01(\t\"X\n\x1c\x44\x65letePersistentSubscription\x12\x1f\n\x17subscription_group_name\x18\x01 \x02(\t\x12\x17\n\x0f\x65vent_stream_id\x18\x02 \x02(\t\"\xde\x03\n\x1cUpdatePersistentSubscription\x12\x1f\n\x17subscription_group_name\x18\x01 \x02(\t\x12\x17\n\x0f\x65vent_stream_id\x18\x02 \x02(\t\x12\x18\n\x10resolve_link_tos\x18\x03 \x02(\x08\x12\x12\n\nstart_from\x18\x04 \x02(\x03\x12$\n\x1cmessage_timeout_milliseconds\x18\x05 \x02(\x05\x12\x19\n\x11record_statistics\x18\x06 \x02(\x08\x12\x18\n\x10live_buffer_size\x18\x07 \x02(\x05\x12\x17\n\x0fread_batch_size\x18\x08 \x02(\x05\x12\x13\n\x0b\x62uffer_size\x18\t \x02(\x05\x12\x17\n\x0fmax_retry_count\x18\n \x02(\x05\x12\x1a\n\x12prefer_round_robin\x18\x0b \x02(\x08\x12\x1d\n\x15\x63heckpoint_after_time\x18\x0c \x02(\x05\x12\x1c\n\x14\x63heckpoint_max_count\x18\r \x02(\x05\x12\x1c\n\x14\x63heckpoint_min_count\x18\x0e \x02(\x05\x12\x1c\n\x14subscriber_max_count\x18\x0f \x02(\x05\x12\x1f\n\x17named_consumer_strategy\x18\x10 \x01(\t\"\x97\x02\n%UpdatePersistentSubscriptionCompleted\x12}\n\x06result\x18\x01 \x02(\x0e\x32\x64.EventStore.Client.Messages.UpdatePersistentSubscriptionCompleted.UpdatePersistentSubscriptionResult:\x07Success\x12\x0e\n\x06reason\x18\x02 \x01(\t\"_\n\"UpdatePersistentSubscriptionResult\x12\x0b\n\x07Success\x10\x00\x12\x10\n\x0c\x44oesNotExist\x10\x01\x12\x08\n\x04\x46\x61il\x10\x02\x12\x10\n\x0c\x41\x63\x63\x65ssDenied\x10\x03\"\x98\x02\n%CreatePersistentSubscriptionCompleted\x12}\n\x06result\x18\x01 \x02(\x0e\x32\x64.EventStore.Client.Messages.CreatePersistentSubscriptionCompleted.CreatePersistentSubscriptionResult:\x07Success\x12\x0e\n\x06reason\x18\x02 \x01(\t\"`\n\"CreatePersistentSubscriptionResult\x12\x0b\n\x07Success\x10\x00\x12\x11\n\rAlreadyExists\x10\x01\x12\x08\n\x04\x46\x61il\x10\x02\x12\x10\n\x0c\x41\x63\x63\x65ssDenied\x10\x03\"\x97\x02\n%DeletePersistentSubscriptionCompleted\x12}\n\x06result\x18\x01 \x02(\x0e\x32\x64.EventStore.Client.Messages.DeletePersistentSubscriptionCompleted.DeletePersistentSubscriptionResult:\x07Success\x12\x0e\n\x06reason\x18\x02 \x01(\t\"_\n\"DeletePersistentSubscriptionResult\x12\x0b\n\x07Success\x10\x00\x12\x10\n\x0c\x44oesNotExist\x10\x01\x12\x08\n\x04\x46\x61il\x10\x02\x12\x10\n\x0c\x41\x63\x63\x65ssDenied\x10\x03\"w\n\x1f\x43onnectToPersistentSubscription\x12\x17\n\x0fsubscription_id\x18\x01 \x02(\t\x12\x17\n\x0f\x65vent_stream_id\x18\x02 \x02(\t\x12\"\n\x1a\x61llowed_in_flight_messages\x18\x03 \x02(\x05\"W\n\x1fPersistentSubscriptionAckEvents\x12\x17\n\x0fsubscription_id\x18\x01 \x02(\t\x12\x1b\n\x13processed_event_ids\x18\x02 \x03(\x0c\"\x8b\x02\n\x1fPersistentSubscriptionNakEvents\x12\x17\n\x0fsubscription_id\x18\x01 \x02(\t\x12\x1b\n\x13processed_event_ids\x18\x02 \x03(\x0c\x12\x0f\n\x07message\x18\x03 \x01(\t\x12^\n\x06\x61\x63tion\x18\x04 \x02(\x0e\x32\x45.EventStore.Client.Messages.PersistentSubscriptionNakEvents.NakAction:\x07Unknown\"A\n\tNakAction\x12\x0b\n\x07Unknown\x10\x00\x12\x08\n\x04Park\x10\x01\x12\t\n\x05Retry\x10\x02\x12\x08\n\x04Skip\x10\x03\x12\x08\n\x04Stop\x10\x04\"v\n\"PersistentSubscriptionConfirmation\x12\x1c\n\x14last_commit_position\x18\x01 \x02(\x03\x12\x17\n\x0fsubscription_id\x18\x02 \x02(\t\x12\x19\n\x11last_event_number\x18\x03 \x01(\x03\"\x80\x01\n)PersistentSubscriptionStreamEventAppeared\x12?\n\x05\x65vent\x18\x01 \x02(\x0b\x32\x30.EventStore.Client.Messages.ResolvedIndexedEvent\x12\x12\n\nretryCount\x18\x02 \x01(\x05\"F\n\x11SubscribeToStream\x12\x17\n\x0f\x65vent_stream_id\x18\x01 \x02(\t\x12\x18\n\x10resolve_link_tos\x18\x02 \x02(\x08\"\x9f\x01\n\x19\x46ilteredSubscribeToStream\x12\x17\n\x0f\x65vent_stream_id\x18\x01 \x02(\t\x12\x18\n\x10resolve_link_tos\x18\x02 \x02(\x08\x12\x32\n\x06\x66ilter\x18\x03 \x02(\x0b\x32\".EventStore.Client.Messages.Filter\x12\x1b\n\x13\x63heckpoint_interval\x18\x04 \x02(\x05\"F\n\x11\x43heckpointReached\x12\x17\n\x0f\x63ommit_position\x18\x01 \x02(\x03\x12\x18\n\x10prepare_position\x18\x02 \x02(\x03\"S\n\x18SubscriptionConfirmation\x12\x1c\n\x14last_commit_position\x18\x01 \x02(\x03\x12\x19\n\x11last_event_number\x18\x02 \x01(\x03\"O\n\x13StreamEventAppeared\x12\x38\n\x05\x65vent\x18\x01 \x02(\x0b\x32).EventStore.Client.Messages.ResolvedEvent\"\x17\n\x15UnsubscribeFromStream\"\x8a\x02\n\x13SubscriptionDropped\x12\x64\n\x06reason\x18\x01 \x01(\x0e\x32\x46.EventStore.Client.Messages.SubscriptionDropped.SubscriptionDropReason:\x0cUnsubscribed\"\x8c\x01\n\x16SubscriptionDropReason\x12\x10\n\x0cUnsubscribed\x10\x00\x12\x10\n\x0c\x41\x63\x63\x65ssDenied\x10\x01\x12\x0c\n\x08NotFound\x10\x02\x12!\n\x1dPersistentSubscriptionDeleted\x10\x03\x12\x1d\n\x19SubscriberMaxCountReached\x10\x04\"\xf4\x02\n\nNotHandled\x12G\n\x06reason\x18\x01 \x02(\x0e\x32\x37.EventStore.Client.Messages.NotHandled.NotHandledReason\x12\x17\n\x0f\x61\x64\x64itional_info\x18\x02 \x01(\x0c\x1a\xb5\x01\n\nLeaderInfo\x12\x1c\n\x14\x65xternal_tcp_address\x18\x01 \x02(\t\x12\x19\n\x11\x65xternal_tcp_port\x18\x02 \x02(\x05\x12\x14\n\x0chttp_address\x18\x03 \x02(\t\x12\x11\n\thttp_port\x18\x04 \x02(\x05\x12#\n\x1b\x65xternal_secure_tcp_address\x18\x05 \x01(\t\x12 \n\x18\x65xternal_secure_tcp_port\x18\x06 \x01(\x05\"L\n\x10NotHandledReason\x12\x0c\n\x08NotReady\x10\x00\x12\x0b\n\x07TooBusy\x10\x01\x12\r\n\tNotLeader\x10\x02\x12\x0e\n\nIsReadOnly\x10\x03\"\x12\n\x10ScavengeDatabase\"\xc4\x01\n\x18ScavengeDatabaseResponse\x12S\n\x06result\x18\x01 \x02(\x0e\x32\x43.EventStore.Client.Messages.ScavengeDatabaseResponse.ScavengeResult\x12\x12\n\nscavengeId\x18\x02 \x01(\t\"?\n\x0eScavengeResult\x12\x0b\n\x07Started\x10\x00\x12\x0e\n\nInProgress\x10\x01\x12\x10\n\x0cUnauthorized\x10\x02\":\n\x0eIdentifyClient\x12\x0f\n\x07version\x18\x01 \x02(\x05\x12\x17\n\x0f\x63onnection_name\x18\x02 \x01(\t\"\x12\n\x10\x43lientIdentified*\xb0\x01\n\x0fOperationResult\x12\x0b\n\x07Success\x10\x00\x12\x12\n\x0ePrepareTimeout\x10\x01\x12\x11\n\rCommitTimeout\x10\x02\x12\x12\n\x0e\x46orwardTimeout\x10\x03\x12\x18\n\x14WrongExpectedVersion\x10\x04\x12\x11\n\rStreamDeleted\x10\x05\x12\x16\n\x12InvalidTransaction\x10\x06\x12\x10\n\x0c\x41\x63\x63\x65ssDenied\x10\x07') _OPERATIONRESULT = DESCRIPTOR.enum_types_by_name['OperationResult'] OperationResult = enum_type_wrapper.EnumTypeWrapper(_OPERATIONRESULT) @@ -422,8 +422,8 @@ if _descriptor._USE_C_DESCRIPTORS == False: DESCRIPTOR._options = None - _OPERATIONRESULT._serialized_start=8578 - _OPERATIONRESULT._serialized_end=8754 + _OPERATIONRESULT._serialized_start=8621 + _OPERATIONRESULT._serialized_end=8797 _NEWEVENT._serialized_start=47 _NEWEVENT._serialized_end=185 _EVENTRECORD._serialized_start=188 @@ -439,109 +439,109 @@ _DELETESTREAM._serialized_start=1113 _DELETESTREAM._serialized_end=1223 _DELETESTREAMCOMPLETED._serialized_start=1226 - _DELETESTREAMCOMPLETED._serialized_end=1403 - _TRANSACTIONSTART._serialized_start=1405 - _TRANSACTIONSTART._serialized_end=1498 - _TRANSACTIONSTARTCOMPLETED._serialized_start=1501 - _TRANSACTIONSTARTCOMPLETED._serialized_end=1630 - _TRANSACTIONWRITE._serialized_start=1632 - _TRANSACTIONWRITE._serialized_end=1752 - _TRANSACTIONWRITECOMPLETED._serialized_start=1755 - _TRANSACTIONWRITECOMPLETED._serialized_end=1884 - _TRANSACTIONCOMMIT._serialized_start=1886 - _TRANSACTIONCOMMIT._serialized_end=1953 - _TRANSACTIONCOMMITCOMPLETED._serialized_start=1956 - _TRANSACTIONCOMMITCOMPLETED._serialized_end=2192 - _READEVENT._serialized_start=2194 - _READEVENT._serialized_end=2302 - _READEVENTCOMPLETED._serialized_start=2305 - _READEVENTCOMPLETED._serialized_end=2593 - _READEVENTCOMPLETED_READEVENTRESULT._serialized_start=2487 - _READEVENTCOMPLETED_READEVENTRESULT._serialized_end=2593 - _READSTREAMEVENTS._serialized_start=2596 - _READSTREAMEVENTS._serialized_end=2735 - _READSTREAMEVENTSCOMPLETED._serialized_start=2738 - _READSTREAMEVENTSCOMPLETED._serialized_end=3156 - _READSTREAMEVENTSCOMPLETED_READSTREAMRESULT._serialized_start=3046 - _READSTREAMEVENTSCOMPLETED_READSTREAMRESULT._serialized_end=3156 - _READALLEVENTS._serialized_start=3159 - _READALLEVENTS._serialized_end=3294 - _READALLEVENTSCOMPLETED._serialized_start=3297 - _READALLEVENTSCOMPLETED._serialized_end=3665 - _READALLEVENTSCOMPLETED_READALLRESULT._serialized_start=3591 - _READALLEVENTSCOMPLETED_READALLRESULT._serialized_end=3665 - _FILTER._serialized_start=3668 - _FILTER._serialized_end=3901 - _FILTER_FILTERCONTEXT._serialized_start=3820 - _FILTER_FILTERCONTEXT._serialized_end=3864 - _FILTER_FILTERTYPE._serialized_start=3866 - _FILTER_FILTERTYPE._serialized_end=3901 - _FILTEREDREADALLEVENTS._serialized_start=3904 - _FILTEREDREADALLEVENTS._serialized_end=4126 - _FILTEREDREADALLEVENTSCOMPLETED._serialized_start=4129 - _FILTEREDREADALLEVENTSCOMPLETED._serialized_end=4555 - _FILTEREDREADALLEVENTSCOMPLETED_FILTEREDREADALLRESULT._serialized_start=4473 - _FILTEREDREADALLEVENTSCOMPLETED_FILTEREDREADALLRESULT._serialized_end=4555 - _CREATEPERSISTENTSUBSCRIPTION._serialized_start=4558 - _CREATEPERSISTENTSUBSCRIPTION._serialized_end=5036 - _DELETEPERSISTENTSUBSCRIPTION._serialized_start=5038 - _DELETEPERSISTENTSUBSCRIPTION._serialized_end=5126 - _UPDATEPERSISTENTSUBSCRIPTION._serialized_start=5129 - _UPDATEPERSISTENTSUBSCRIPTION._serialized_end=5607 - _UPDATEPERSISTENTSUBSCRIPTIONCOMPLETED._serialized_start=5610 - _UPDATEPERSISTENTSUBSCRIPTIONCOMPLETED._serialized_end=5880 - _UPDATEPERSISTENTSUBSCRIPTIONCOMPLETED_UPDATEPERSISTENTSUBSCRIPTIONRESULT._serialized_start=5785 - _UPDATEPERSISTENTSUBSCRIPTIONCOMPLETED_UPDATEPERSISTENTSUBSCRIPTIONRESULT._serialized_end=5880 - _CREATEPERSISTENTSUBSCRIPTIONCOMPLETED._serialized_start=5883 - _CREATEPERSISTENTSUBSCRIPTIONCOMPLETED._serialized_end=6154 - _CREATEPERSISTENTSUBSCRIPTIONCOMPLETED_CREATEPERSISTENTSUBSCRIPTIONRESULT._serialized_start=6058 - _CREATEPERSISTENTSUBSCRIPTIONCOMPLETED_CREATEPERSISTENTSUBSCRIPTIONRESULT._serialized_end=6154 - _DELETEPERSISTENTSUBSCRIPTIONCOMPLETED._serialized_start=6157 - _DELETEPERSISTENTSUBSCRIPTIONCOMPLETED._serialized_end=6427 - _DELETEPERSISTENTSUBSCRIPTIONCOMPLETED_DELETEPERSISTENTSUBSCRIPTIONRESULT._serialized_start=6332 - _DELETEPERSISTENTSUBSCRIPTIONCOMPLETED_DELETEPERSISTENTSUBSCRIPTIONRESULT._serialized_end=6427 - _CONNECTTOPERSISTENTSUBSCRIPTION._serialized_start=6429 - _CONNECTTOPERSISTENTSUBSCRIPTION._serialized_end=6548 - _PERSISTENTSUBSCRIPTIONACKEVENTS._serialized_start=6550 - _PERSISTENTSUBSCRIPTIONACKEVENTS._serialized_end=6637 - _PERSISTENTSUBSCRIPTIONNAKEVENTS._serialized_start=6640 - _PERSISTENTSUBSCRIPTIONNAKEVENTS._serialized_end=6898 - _PERSISTENTSUBSCRIPTIONNAKEVENTS_NAKACTION._serialized_start=6833 - _PERSISTENTSUBSCRIPTIONNAKEVENTS_NAKACTION._serialized_end=6898 - _PERSISTENTSUBSCRIPTIONCONFIRMATION._serialized_start=6900 - _PERSISTENTSUBSCRIPTIONCONFIRMATION._serialized_end=7018 - _PERSISTENTSUBSCRIPTIONSTREAMEVENTAPPEARED._serialized_start=7021 - _PERSISTENTSUBSCRIPTIONSTREAMEVENTAPPEARED._serialized_end=7149 - _SUBSCRIBETOSTREAM._serialized_start=7151 - _SUBSCRIBETOSTREAM._serialized_end=7221 - _FILTEREDSUBSCRIBETOSTREAM._serialized_start=7224 - _FILTEREDSUBSCRIBETOSTREAM._serialized_end=7383 - _CHECKPOINTREACHED._serialized_start=7385 - _CHECKPOINTREACHED._serialized_end=7455 - _SUBSCRIPTIONCONFIRMATION._serialized_start=7457 - _SUBSCRIPTIONCONFIRMATION._serialized_end=7540 - _STREAMEVENTAPPEARED._serialized_start=7542 - _STREAMEVENTAPPEARED._serialized_end=7621 - _UNSUBSCRIBEFROMSTREAM._serialized_start=7623 - _UNSUBSCRIBEFROMSTREAM._serialized_end=7646 - _SUBSCRIPTIONDROPPED._serialized_start=7649 - _SUBSCRIPTIONDROPPED._serialized_end=7901 - _SUBSCRIPTIONDROPPED_SUBSCRIPTIONDROPREASON._serialized_start=7761 - _SUBSCRIPTIONDROPPED_SUBSCRIPTIONDROPREASON._serialized_end=7901 - _NOTHANDLED._serialized_start=7904 - _NOTHANDLED._serialized_end=8276 - _NOTHANDLED_LEADERINFO._serialized_start=8017 - _NOTHANDLED_LEADERINFO._serialized_end=8198 - _NOTHANDLED_NOTHANDLEDREASON._serialized_start=8200 - _NOTHANDLED_NOTHANDLEDREASON._serialized_end=8276 - _SCAVENGEDATABASE._serialized_start=8278 - _SCAVENGEDATABASE._serialized_end=8296 - _SCAVENGEDATABASERESPONSE._serialized_start=8299 - _SCAVENGEDATABASERESPONSE._serialized_end=8495 - _SCAVENGEDATABASERESPONSE_SCAVENGERESULT._serialized_start=8432 - _SCAVENGEDATABASERESPONSE_SCAVENGERESULT._serialized_end=8495 - _IDENTIFYCLIENT._serialized_start=8497 - _IDENTIFYCLIENT._serialized_end=8555 - _CLIENTIDENTIFIED._serialized_start=8557 - _CLIENTIDENTIFIED._serialized_end=8575 + _DELETESTREAMCOMPLETED._serialized_end=1378 + _TRANSACTIONSTART._serialized_start=1380 + _TRANSACTIONSTART._serialized_end=1473 + _TRANSACTIONSTARTCOMPLETED._serialized_start=1476 + _TRANSACTIONSTARTCOMPLETED._serialized_end=1605 + _TRANSACTIONWRITE._serialized_start=1607 + _TRANSACTIONWRITE._serialized_end=1727 + _TRANSACTIONWRITECOMPLETED._serialized_start=1730 + _TRANSACTIONWRITECOMPLETED._serialized_end=1859 + _TRANSACTIONCOMMIT._serialized_start=1861 + _TRANSACTIONCOMMIT._serialized_end=1928 + _TRANSACTIONCOMMITCOMPLETED._serialized_start=1931 + _TRANSACTIONCOMMITCOMPLETED._serialized_end=2167 + _READEVENT._serialized_start=2169 + _READEVENT._serialized_end=2277 + _READEVENTCOMPLETED._serialized_start=2280 + _READEVENTCOMPLETED._serialized_end=2568 + _READEVENTCOMPLETED_READEVENTRESULT._serialized_start=2462 + _READEVENTCOMPLETED_READEVENTRESULT._serialized_end=2568 + _READSTREAMEVENTS._serialized_start=2571 + _READSTREAMEVENTS._serialized_end=2710 + _READSTREAMEVENTSCOMPLETED._serialized_start=2713 + _READSTREAMEVENTSCOMPLETED._serialized_end=3131 + _READSTREAMEVENTSCOMPLETED_READSTREAMRESULT._serialized_start=3021 + _READSTREAMEVENTSCOMPLETED_READSTREAMRESULT._serialized_end=3131 + _READALLEVENTS._serialized_start=3134 + _READALLEVENTS._serialized_end=3269 + _READALLEVENTSCOMPLETED._serialized_start=3272 + _READALLEVENTSCOMPLETED._serialized_end=3649 + _READALLEVENTSCOMPLETED_READALLRESULT._serialized_start=3575 + _READALLEVENTSCOMPLETED_READALLRESULT._serialized_end=3649 + _FILTER._serialized_start=3652 + _FILTER._serialized_end=3885 + _FILTER_FILTERCONTEXT._serialized_start=3804 + _FILTER_FILTERCONTEXT._serialized_end=3848 + _FILTER_FILTERTYPE._serialized_start=3850 + _FILTER_FILTERTYPE._serialized_end=3885 + _FILTEREDREADALLEVENTS._serialized_start=3888 + _FILTEREDREADALLEVENTS._serialized_end=4110 + _FILTEREDREADALLEVENTSCOMPLETED._serialized_start=4113 + _FILTEREDREADALLEVENTSCOMPLETED._serialized_end=4548 + _FILTEREDREADALLEVENTSCOMPLETED_FILTEREDREADALLRESULT._serialized_start=4466 + _FILTEREDREADALLEVENTSCOMPLETED_FILTEREDREADALLRESULT._serialized_end=4548 + _CREATEPERSISTENTSUBSCRIPTION._serialized_start=4551 + _CREATEPERSISTENTSUBSCRIPTION._serialized_end=5029 + _DELETEPERSISTENTSUBSCRIPTION._serialized_start=5031 + _DELETEPERSISTENTSUBSCRIPTION._serialized_end=5119 + _UPDATEPERSISTENTSUBSCRIPTION._serialized_start=5122 + _UPDATEPERSISTENTSUBSCRIPTION._serialized_end=5600 + _UPDATEPERSISTENTSUBSCRIPTIONCOMPLETED._serialized_start=5603 + _UPDATEPERSISTENTSUBSCRIPTIONCOMPLETED._serialized_end=5882 + _UPDATEPERSISTENTSUBSCRIPTIONCOMPLETED_UPDATEPERSISTENTSUBSCRIPTIONRESULT._serialized_start=5787 + _UPDATEPERSISTENTSUBSCRIPTIONCOMPLETED_UPDATEPERSISTENTSUBSCRIPTIONRESULT._serialized_end=5882 + _CREATEPERSISTENTSUBSCRIPTIONCOMPLETED._serialized_start=5885 + _CREATEPERSISTENTSUBSCRIPTIONCOMPLETED._serialized_end=6165 + _CREATEPERSISTENTSUBSCRIPTIONCOMPLETED_CREATEPERSISTENTSUBSCRIPTIONRESULT._serialized_start=6069 + _CREATEPERSISTENTSUBSCRIPTIONCOMPLETED_CREATEPERSISTENTSUBSCRIPTIONRESULT._serialized_end=6165 + _DELETEPERSISTENTSUBSCRIPTIONCOMPLETED._serialized_start=6168 + _DELETEPERSISTENTSUBSCRIPTIONCOMPLETED._serialized_end=6447 + _DELETEPERSISTENTSUBSCRIPTIONCOMPLETED_DELETEPERSISTENTSUBSCRIPTIONRESULT._serialized_start=6352 + _DELETEPERSISTENTSUBSCRIPTIONCOMPLETED_DELETEPERSISTENTSUBSCRIPTIONRESULT._serialized_end=6447 + _CONNECTTOPERSISTENTSUBSCRIPTION._serialized_start=6449 + _CONNECTTOPERSISTENTSUBSCRIPTION._serialized_end=6568 + _PERSISTENTSUBSCRIPTIONACKEVENTS._serialized_start=6570 + _PERSISTENTSUBSCRIPTIONACKEVENTS._serialized_end=6657 + _PERSISTENTSUBSCRIPTIONNAKEVENTS._serialized_start=6660 + _PERSISTENTSUBSCRIPTIONNAKEVENTS._serialized_end=6927 + _PERSISTENTSUBSCRIPTIONNAKEVENTS_NAKACTION._serialized_start=6862 + _PERSISTENTSUBSCRIPTIONNAKEVENTS_NAKACTION._serialized_end=6927 + _PERSISTENTSUBSCRIPTIONCONFIRMATION._serialized_start=6929 + _PERSISTENTSUBSCRIPTIONCONFIRMATION._serialized_end=7047 + _PERSISTENTSUBSCRIPTIONSTREAMEVENTAPPEARED._serialized_start=7050 + _PERSISTENTSUBSCRIPTIONSTREAMEVENTAPPEARED._serialized_end=7178 + _SUBSCRIBETOSTREAM._serialized_start=7180 + _SUBSCRIBETOSTREAM._serialized_end=7250 + _FILTEREDSUBSCRIBETOSTREAM._serialized_start=7253 + _FILTEREDSUBSCRIBETOSTREAM._serialized_end=7412 + _CHECKPOINTREACHED._serialized_start=7414 + _CHECKPOINTREACHED._serialized_end=7484 + _SUBSCRIPTIONCONFIRMATION._serialized_start=7486 + _SUBSCRIPTIONCONFIRMATION._serialized_end=7569 + _STREAMEVENTAPPEARED._serialized_start=7571 + _STREAMEVENTAPPEARED._serialized_end=7650 + _UNSUBSCRIBEFROMSTREAM._serialized_start=7652 + _UNSUBSCRIBEFROMSTREAM._serialized_end=7675 + _SUBSCRIPTIONDROPPED._serialized_start=7678 + _SUBSCRIPTIONDROPPED._serialized_end=7944 + _SUBSCRIPTIONDROPPED_SUBSCRIPTIONDROPREASON._serialized_start=7804 + _SUBSCRIPTIONDROPPED_SUBSCRIPTIONDROPREASON._serialized_end=7944 + _NOTHANDLED._serialized_start=7947 + _NOTHANDLED._serialized_end=8319 + _NOTHANDLED_LEADERINFO._serialized_start=8060 + _NOTHANDLED_LEADERINFO._serialized_end=8241 + _NOTHANDLED_NOTHANDLEDREASON._serialized_start=8243 + _NOTHANDLED_NOTHANDLEDREASON._serialized_end=8319 + _SCAVENGEDATABASE._serialized_start=8321 + _SCAVENGEDATABASE._serialized_end=8339 + _SCAVENGEDATABASERESPONSE._serialized_start=8342 + _SCAVENGEDATABASERESPONSE._serialized_end=8538 + _SCAVENGEDATABASERESPONSE_SCAVENGERESULT._serialized_start=8475 + _SCAVENGEDATABASERESPONSE_SCAVENGERESULT._serialized_end=8538 + _IDENTIFYCLIENT._serialized_start=8540 + _IDENTIFYCLIENT._serialized_end=8598 + _CLIENTIDENTIFIED._serialized_start=8600 + _CLIENTIDENTIFIED._serialized_end=8618 # @@protoc_insertion_point(module_scope) diff --git a/photonpump/messages_pb2.pyi b/photonpump/messages_pb2.pyi index ef340c9..f87ac11 100644 --- a/photonpump/messages_pb2.pyi +++ b/photonpump/messages_pb2.pyi @@ -55,13 +55,14 @@ class NewEvent(google.protobuf.message.Message): metadata: builtins.bytes def __init__(self, *, - event_id: builtins.bytes = ..., - event_type: typing.Text = ..., - data_content_type: builtins.int = ..., - metadata_content_type: builtins.int = ..., - data: builtins.bytes = ..., - metadata: builtins.bytes = ..., + event_id: typing.Optional[builtins.bytes] = ..., + event_type: typing.Optional[typing.Text] = ..., + data_content_type: typing.Optional[builtins.int] = ..., + metadata_content_type: typing.Optional[builtins.int] = ..., + data: typing.Optional[builtins.bytes] = ..., + metadata: typing.Optional[builtins.bytes] = ..., ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["data",b"data","data_content_type",b"data_content_type","event_id",b"event_id","event_type",b"event_type","metadata",b"metadata","metadata_content_type",b"metadata_content_type"]) -> builtins.bool: ... def ClearField(self, field_name: typing_extensions.Literal["data",b"data","data_content_type",b"data_content_type","event_id",b"event_id","event_type",b"event_type","metadata",b"metadata","metadata_content_type",b"metadata_content_type"]) -> None: ... global___NewEvent = NewEvent @@ -89,17 +90,18 @@ class EventRecord(google.protobuf.message.Message): created_epoch: builtins.int def __init__(self, *, - event_stream_id: typing.Text = ..., - event_number: builtins.int = ..., - event_id: builtins.bytes = ..., - event_type: typing.Text = ..., - data_content_type: builtins.int = ..., - metadata_content_type: builtins.int = ..., - data: builtins.bytes = ..., - metadata: builtins.bytes = ..., - created: builtins.int = ..., - created_epoch: builtins.int = ..., + event_stream_id: typing.Optional[typing.Text] = ..., + event_number: typing.Optional[builtins.int] = ..., + event_id: typing.Optional[builtins.bytes] = ..., + event_type: typing.Optional[typing.Text] = ..., + data_content_type: typing.Optional[builtins.int] = ..., + metadata_content_type: typing.Optional[builtins.int] = ..., + data: typing.Optional[builtins.bytes] = ..., + metadata: typing.Optional[builtins.bytes] = ..., + created: typing.Optional[builtins.int] = ..., + created_epoch: typing.Optional[builtins.int] = ..., ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["created",b"created","created_epoch",b"created_epoch","data",b"data","data_content_type",b"data_content_type","event_id",b"event_id","event_number",b"event_number","event_stream_id",b"event_stream_id","event_type",b"event_type","metadata",b"metadata","metadata_content_type",b"metadata_content_type"]) -> builtins.bool: ... def ClearField(self, field_name: typing_extensions.Literal["created",b"created","created_epoch",b"created_epoch","data",b"data","data_content_type",b"data_content_type","event_id",b"event_id","event_number",b"event_number","event_stream_id",b"event_stream_id","event_type",b"event_type","metadata",b"metadata","metadata_content_type",b"metadata_content_type"]) -> None: ... global___EventRecord = EventRecord @@ -136,10 +138,10 @@ class ResolvedEvent(google.protobuf.message.Message): *, event: typing.Optional[global___EventRecord] = ..., link: typing.Optional[global___EventRecord] = ..., - commit_position: builtins.int = ..., - prepare_position: builtins.int = ..., + commit_position: typing.Optional[builtins.int] = ..., + prepare_position: typing.Optional[builtins.int] = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["event",b"event","link",b"link"]) -> builtins.bool: ... + def HasField(self, field_name: typing_extensions.Literal["commit_position",b"commit_position","event",b"event","link",b"link","prepare_position",b"prepare_position"]) -> builtins.bool: ... def ClearField(self, field_name: typing_extensions.Literal["commit_position",b"commit_position","event",b"event","link",b"link","prepare_position",b"prepare_position"]) -> None: ... global___ResolvedEvent = ResolvedEvent @@ -156,11 +158,12 @@ class WriteEvents(google.protobuf.message.Message): require_leader: builtins.bool def __init__(self, *, - event_stream_id: typing.Text = ..., - expected_version: builtins.int = ..., + event_stream_id: typing.Optional[typing.Text] = ..., + expected_version: typing.Optional[builtins.int] = ..., events: typing.Optional[typing.Iterable[global___NewEvent]] = ..., - require_leader: builtins.bool = ..., + require_leader: typing.Optional[builtins.bool] = ..., ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["event_stream_id",b"event_stream_id","expected_version",b"expected_version","require_leader",b"require_leader"]) -> builtins.bool: ... def ClearField(self, field_name: typing_extensions.Literal["event_stream_id",b"event_stream_id","events",b"events","expected_version",b"expected_version","require_leader",b"require_leader"]) -> None: ... global___WriteEvents = WriteEvents @@ -182,14 +185,15 @@ class WriteEventsCompleted(google.protobuf.message.Message): current_version: builtins.int def __init__(self, *, - result: global___OperationResult.ValueType = ..., - message: typing.Text = ..., - first_event_number: builtins.int = ..., - last_event_number: builtins.int = ..., - prepare_position: builtins.int = ..., - commit_position: builtins.int = ..., - current_version: builtins.int = ..., + result: typing.Optional[global___OperationResult.ValueType] = ..., + message: typing.Optional[typing.Text] = ..., + first_event_number: typing.Optional[builtins.int] = ..., + last_event_number: typing.Optional[builtins.int] = ..., + prepare_position: typing.Optional[builtins.int] = ..., + commit_position: typing.Optional[builtins.int] = ..., + current_version: typing.Optional[builtins.int] = ..., ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["commit_position",b"commit_position","current_version",b"current_version","first_event_number",b"first_event_number","last_event_number",b"last_event_number","message",b"message","prepare_position",b"prepare_position","result",b"result"]) -> builtins.bool: ... def ClearField(self, field_name: typing_extensions.Literal["commit_position",b"commit_position","current_version",b"current_version","first_event_number",b"first_event_number","last_event_number",b"last_event_number","message",b"message","prepare_position",b"prepare_position","result",b"result"]) -> None: ... global___WriteEventsCompleted = WriteEventsCompleted @@ -205,11 +209,12 @@ class DeleteStream(google.protobuf.message.Message): hard_delete: builtins.bool def __init__(self, *, - event_stream_id: typing.Text = ..., - expected_version: builtins.int = ..., - require_leader: builtins.bool = ..., - hard_delete: builtins.bool = ..., + event_stream_id: typing.Optional[typing.Text] = ..., + expected_version: typing.Optional[builtins.int] = ..., + require_leader: typing.Optional[builtins.bool] = ..., + hard_delete: typing.Optional[builtins.bool] = ..., ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["event_stream_id",b"event_stream_id","expected_version",b"expected_version","hard_delete",b"hard_delete","require_leader",b"require_leader"]) -> builtins.bool: ... def ClearField(self, field_name: typing_extensions.Literal["event_stream_id",b"event_stream_id","expected_version",b"expected_version","hard_delete",b"hard_delete","require_leader",b"require_leader"]) -> None: ... global___DeleteStream = DeleteStream @@ -219,21 +224,19 @@ class DeleteStreamCompleted(google.protobuf.message.Message): MESSAGE_FIELD_NUMBER: builtins.int PREPARE_POSITION_FIELD_NUMBER: builtins.int COMMIT_POSITION_FIELD_NUMBER: builtins.int - CURRENT_VERSION_FIELD_NUMBER: builtins.int result: global___OperationResult.ValueType message: typing.Text prepare_position: builtins.int commit_position: builtins.int - current_version: builtins.int def __init__(self, *, - result: global___OperationResult.ValueType = ..., - message: typing.Text = ..., - prepare_position: builtins.int = ..., - commit_position: builtins.int = ..., - current_version: builtins.int = ..., + result: typing.Optional[global___OperationResult.ValueType] = ..., + message: typing.Optional[typing.Text] = ..., + prepare_position: typing.Optional[builtins.int] = ..., + commit_position: typing.Optional[builtins.int] = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["commit_position",b"commit_position","current_version",b"current_version","message",b"message","prepare_position",b"prepare_position","result",b"result"]) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["commit_position",b"commit_position","message",b"message","prepare_position",b"prepare_position","result",b"result"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["commit_position",b"commit_position","message",b"message","prepare_position",b"prepare_position","result",b"result"]) -> None: ... global___DeleteStreamCompleted = DeleteStreamCompleted class TransactionStart(google.protobuf.message.Message): @@ -246,10 +249,11 @@ class TransactionStart(google.protobuf.message.Message): require_leader: builtins.bool def __init__(self, *, - event_stream_id: typing.Text = ..., - expected_version: builtins.int = ..., - require_leader: builtins.bool = ..., + event_stream_id: typing.Optional[typing.Text] = ..., + expected_version: typing.Optional[builtins.int] = ..., + require_leader: typing.Optional[builtins.bool] = ..., ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["event_stream_id",b"event_stream_id","expected_version",b"expected_version","require_leader",b"require_leader"]) -> builtins.bool: ... def ClearField(self, field_name: typing_extensions.Literal["event_stream_id",b"event_stream_id","expected_version",b"expected_version","require_leader",b"require_leader"]) -> None: ... global___TransactionStart = TransactionStart @@ -263,10 +267,11 @@ class TransactionStartCompleted(google.protobuf.message.Message): message: typing.Text def __init__(self, *, - transaction_id: builtins.int = ..., - result: global___OperationResult.ValueType = ..., - message: typing.Text = ..., + transaction_id: typing.Optional[builtins.int] = ..., + result: typing.Optional[global___OperationResult.ValueType] = ..., + message: typing.Optional[typing.Text] = ..., ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["message",b"message","result",b"result","transaction_id",b"transaction_id"]) -> builtins.bool: ... def ClearField(self, field_name: typing_extensions.Literal["message",b"message","result",b"result","transaction_id",b"transaction_id"]) -> None: ... global___TransactionStartCompleted = TransactionStartCompleted @@ -281,10 +286,11 @@ class TransactionWrite(google.protobuf.message.Message): require_leader: builtins.bool def __init__(self, *, - transaction_id: builtins.int = ..., + transaction_id: typing.Optional[builtins.int] = ..., events: typing.Optional[typing.Iterable[global___NewEvent]] = ..., - require_leader: builtins.bool = ..., + require_leader: typing.Optional[builtins.bool] = ..., ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["require_leader",b"require_leader","transaction_id",b"transaction_id"]) -> builtins.bool: ... def ClearField(self, field_name: typing_extensions.Literal["events",b"events","require_leader",b"require_leader","transaction_id",b"transaction_id"]) -> None: ... global___TransactionWrite = TransactionWrite @@ -298,10 +304,11 @@ class TransactionWriteCompleted(google.protobuf.message.Message): message: typing.Text def __init__(self, *, - transaction_id: builtins.int = ..., - result: global___OperationResult.ValueType = ..., - message: typing.Text = ..., + transaction_id: typing.Optional[builtins.int] = ..., + result: typing.Optional[global___OperationResult.ValueType] = ..., + message: typing.Optional[typing.Text] = ..., ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["message",b"message","result",b"result","transaction_id",b"transaction_id"]) -> builtins.bool: ... def ClearField(self, field_name: typing_extensions.Literal["message",b"message","result",b"result","transaction_id",b"transaction_id"]) -> None: ... global___TransactionWriteCompleted = TransactionWriteCompleted @@ -313,9 +320,10 @@ class TransactionCommit(google.protobuf.message.Message): require_leader: builtins.bool def __init__(self, *, - transaction_id: builtins.int = ..., - require_leader: builtins.bool = ..., + transaction_id: typing.Optional[builtins.int] = ..., + require_leader: typing.Optional[builtins.bool] = ..., ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["require_leader",b"require_leader","transaction_id",b"transaction_id"]) -> builtins.bool: ... def ClearField(self, field_name: typing_extensions.Literal["require_leader",b"require_leader","transaction_id",b"transaction_id"]) -> None: ... global___TransactionCommit = TransactionCommit @@ -337,14 +345,15 @@ class TransactionCommitCompleted(google.protobuf.message.Message): commit_position: builtins.int def __init__(self, *, - transaction_id: builtins.int = ..., - result: global___OperationResult.ValueType = ..., - message: typing.Text = ..., - first_event_number: builtins.int = ..., - last_event_number: builtins.int = ..., - prepare_position: builtins.int = ..., - commit_position: builtins.int = ..., + transaction_id: typing.Optional[builtins.int] = ..., + result: typing.Optional[global___OperationResult.ValueType] = ..., + message: typing.Optional[typing.Text] = ..., + first_event_number: typing.Optional[builtins.int] = ..., + last_event_number: typing.Optional[builtins.int] = ..., + prepare_position: typing.Optional[builtins.int] = ..., + commit_position: typing.Optional[builtins.int] = ..., ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["commit_position",b"commit_position","first_event_number",b"first_event_number","last_event_number",b"last_event_number","message",b"message","prepare_position",b"prepare_position","result",b"result","transaction_id",b"transaction_id"]) -> builtins.bool: ... def ClearField(self, field_name: typing_extensions.Literal["commit_position",b"commit_position","first_event_number",b"first_event_number","last_event_number",b"last_event_number","message",b"message","prepare_position",b"prepare_position","result",b"result","transaction_id",b"transaction_id"]) -> None: ... global___TransactionCommitCompleted = TransactionCommitCompleted @@ -360,11 +369,12 @@ class ReadEvent(google.protobuf.message.Message): require_leader: builtins.bool def __init__(self, *, - event_stream_id: typing.Text = ..., - event_number: builtins.int = ..., - resolve_link_tos: builtins.bool = ..., - require_leader: builtins.bool = ..., + event_stream_id: typing.Optional[typing.Text] = ..., + event_number: typing.Optional[builtins.int] = ..., + resolve_link_tos: typing.Optional[builtins.bool] = ..., + require_leader: typing.Optional[builtins.bool] = ..., ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["event_number",b"event_number","event_stream_id",b"event_stream_id","require_leader",b"require_leader","resolve_link_tos",b"resolve_link_tos"]) -> builtins.bool: ... def ClearField(self, field_name: typing_extensions.Literal["event_number",b"event_number","event_stream_id",b"event_stream_id","require_leader",b"require_leader","resolve_link_tos",b"resolve_link_tos"]) -> None: ... global___ReadEvent = ReadEvent @@ -400,11 +410,11 @@ class ReadEventCompleted(google.protobuf.message.Message): error: typing.Text def __init__(self, *, - result: global___ReadEventCompleted.ReadEventResult.ValueType = ..., + result: typing.Optional[global___ReadEventCompleted.ReadEventResult.ValueType] = ..., event: typing.Optional[global___ResolvedIndexedEvent] = ..., - error: typing.Text = ..., + error: typing.Optional[typing.Text] = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["event",b"event"]) -> builtins.bool: ... + def HasField(self, field_name: typing_extensions.Literal["error",b"error","event",b"event","result",b"result"]) -> builtins.bool: ... def ClearField(self, field_name: typing_extensions.Literal["error",b"error","event",b"event","result",b"result"]) -> None: ... global___ReadEventCompleted = ReadEventCompleted @@ -422,12 +432,13 @@ class ReadStreamEvents(google.protobuf.message.Message): require_leader: builtins.bool def __init__(self, *, - event_stream_id: typing.Text = ..., - from_event_number: builtins.int = ..., - max_count: builtins.int = ..., - resolve_link_tos: builtins.bool = ..., - require_leader: builtins.bool = ..., + event_stream_id: typing.Optional[typing.Text] = ..., + from_event_number: typing.Optional[builtins.int] = ..., + max_count: typing.Optional[builtins.int] = ..., + resolve_link_tos: typing.Optional[builtins.bool] = ..., + require_leader: typing.Optional[builtins.bool] = ..., ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["event_stream_id",b"event_stream_id","from_event_number",b"from_event_number","max_count",b"max_count","require_leader",b"require_leader","resolve_link_tos",b"resolve_link_tos"]) -> builtins.bool: ... def ClearField(self, field_name: typing_extensions.Literal["event_stream_id",b"event_stream_id","from_event_number",b"from_event_number","max_count",b"max_count","require_leader",b"require_leader","resolve_link_tos",b"resolve_link_tos"]) -> None: ... global___ReadStreamEvents = ReadStreamEvents @@ -472,13 +483,14 @@ class ReadStreamEventsCompleted(google.protobuf.message.Message): def __init__(self, *, events: typing.Optional[typing.Iterable[global___ResolvedIndexedEvent]] = ..., - result: global___ReadStreamEventsCompleted.ReadStreamResult.ValueType = ..., - next_event_number: builtins.int = ..., - last_event_number: builtins.int = ..., - is_end_of_stream: builtins.bool = ..., - last_commit_position: builtins.int = ..., - error: typing.Text = ..., + result: typing.Optional[global___ReadStreamEventsCompleted.ReadStreamResult.ValueType] = ..., + next_event_number: typing.Optional[builtins.int] = ..., + last_event_number: typing.Optional[builtins.int] = ..., + is_end_of_stream: typing.Optional[builtins.bool] = ..., + last_commit_position: typing.Optional[builtins.int] = ..., + error: typing.Optional[typing.Text] = ..., ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["error",b"error","is_end_of_stream",b"is_end_of_stream","last_commit_position",b"last_commit_position","last_event_number",b"last_event_number","next_event_number",b"next_event_number","result",b"result"]) -> builtins.bool: ... def ClearField(self, field_name: typing_extensions.Literal["error",b"error","events",b"events","is_end_of_stream",b"is_end_of_stream","last_commit_position",b"last_commit_position","last_event_number",b"last_event_number","next_event_number",b"next_event_number","result",b"result"]) -> None: ... global___ReadStreamEventsCompleted = ReadStreamEventsCompleted @@ -496,12 +508,13 @@ class ReadAllEvents(google.protobuf.message.Message): require_leader: builtins.bool def __init__(self, *, - commit_position: builtins.int = ..., - prepare_position: builtins.int = ..., - max_count: builtins.int = ..., - resolve_link_tos: builtins.bool = ..., - require_leader: builtins.bool = ..., + commit_position: typing.Optional[builtins.int] = ..., + prepare_position: typing.Optional[builtins.int] = ..., + max_count: typing.Optional[builtins.int] = ..., + resolve_link_tos: typing.Optional[builtins.bool] = ..., + require_leader: typing.Optional[builtins.bool] = ..., ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["commit_position",b"commit_position","max_count",b"max_count","prepare_position",b"prepare_position","require_leader",b"require_leader","resolve_link_tos",b"resolve_link_tos"]) -> builtins.bool: ... def ClearField(self, field_name: typing_extensions.Literal["commit_position",b"commit_position","max_count",b"max_count","prepare_position",b"prepare_position","require_leader",b"require_leader","resolve_link_tos",b"resolve_link_tos"]) -> None: ... global___ReadAllEvents = ReadAllEvents @@ -541,14 +554,15 @@ class ReadAllEventsCompleted(google.protobuf.message.Message): error: typing.Text def __init__(self, *, - commit_position: builtins.int = ..., - prepare_position: builtins.int = ..., + commit_position: typing.Optional[builtins.int] = ..., + prepare_position: typing.Optional[builtins.int] = ..., events: typing.Optional[typing.Iterable[global___ResolvedEvent]] = ..., - next_commit_position: builtins.int = ..., - next_prepare_position: builtins.int = ..., - result: global___ReadAllEventsCompleted.ReadAllResult.ValueType = ..., - error: typing.Text = ..., + next_commit_position: typing.Optional[builtins.int] = ..., + next_prepare_position: typing.Optional[builtins.int] = ..., + result: typing.Optional[global___ReadAllEventsCompleted.ReadAllResult.ValueType] = ..., + error: typing.Optional[typing.Text] = ..., ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["commit_position",b"commit_position","error",b"error","next_commit_position",b"next_commit_position","next_prepare_position",b"next_prepare_position","prepare_position",b"prepare_position","result",b"result"]) -> builtins.bool: ... def ClearField(self, field_name: typing_extensions.Literal["commit_position",b"commit_position","error",b"error","events",b"events","next_commit_position",b"next_commit_position","next_prepare_position",b"next_prepare_position","prepare_position",b"prepare_position","result",b"result"]) -> None: ... global___ReadAllEventsCompleted = ReadAllEventsCompleted @@ -589,10 +603,11 @@ class Filter(google.protobuf.message.Message): def data(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[typing.Text]: ... def __init__(self, *, - context: global___Filter.FilterContext.ValueType = ..., - type: global___Filter.FilterType.ValueType = ..., + context: typing.Optional[global___Filter.FilterContext.ValueType] = ..., + type: typing.Optional[global___Filter.FilterType.ValueType] = ..., data: typing.Optional[typing.Iterable[typing.Text]] = ..., ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["context",b"context","type",b"type"]) -> builtins.bool: ... def ClearField(self, field_name: typing_extensions.Literal["context",b"context","data",b"data","type",b"type"]) -> None: ... global___Filter = Filter @@ -615,15 +630,15 @@ class FilteredReadAllEvents(google.protobuf.message.Message): def filter(self) -> global___Filter: ... def __init__(self, *, - commit_position: builtins.int = ..., - prepare_position: builtins.int = ..., - max_count: builtins.int = ..., - max_search_window: builtins.int = ..., - resolve_link_tos: builtins.bool = ..., - require_leader: builtins.bool = ..., + commit_position: typing.Optional[builtins.int] = ..., + prepare_position: typing.Optional[builtins.int] = ..., + max_count: typing.Optional[builtins.int] = ..., + max_search_window: typing.Optional[builtins.int] = ..., + resolve_link_tos: typing.Optional[builtins.bool] = ..., + require_leader: typing.Optional[builtins.bool] = ..., filter: typing.Optional[global___Filter] = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["filter",b"filter"]) -> builtins.bool: ... + def HasField(self, field_name: typing_extensions.Literal["commit_position",b"commit_position","filter",b"filter","max_count",b"max_count","max_search_window",b"max_search_window","prepare_position",b"prepare_position","require_leader",b"require_leader","resolve_link_tos",b"resolve_link_tos"]) -> builtins.bool: ... def ClearField(self, field_name: typing_extensions.Literal["commit_position",b"commit_position","filter",b"filter","max_count",b"max_count","max_search_window",b"max_search_window","prepare_position",b"prepare_position","require_leader",b"require_leader","resolve_link_tos",b"resolve_link_tos"]) -> None: ... global___FilteredReadAllEvents = FilteredReadAllEvents @@ -665,15 +680,16 @@ class FilteredReadAllEventsCompleted(google.protobuf.message.Message): error: typing.Text def __init__(self, *, - commit_position: builtins.int = ..., - prepare_position: builtins.int = ..., + commit_position: typing.Optional[builtins.int] = ..., + prepare_position: typing.Optional[builtins.int] = ..., events: typing.Optional[typing.Iterable[global___ResolvedEvent]] = ..., - next_commit_position: builtins.int = ..., - next_prepare_position: builtins.int = ..., - is_end_of_stream: builtins.bool = ..., - result: global___FilteredReadAllEventsCompleted.FilteredReadAllResult.ValueType = ..., - error: typing.Text = ..., + next_commit_position: typing.Optional[builtins.int] = ..., + next_prepare_position: typing.Optional[builtins.int] = ..., + is_end_of_stream: typing.Optional[builtins.bool] = ..., + result: typing.Optional[global___FilteredReadAllEventsCompleted.FilteredReadAllResult.ValueType] = ..., + error: typing.Optional[typing.Text] = ..., ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["commit_position",b"commit_position","error",b"error","is_end_of_stream",b"is_end_of_stream","next_commit_position",b"next_commit_position","next_prepare_position",b"next_prepare_position","prepare_position",b"prepare_position","result",b"result"]) -> builtins.bool: ... def ClearField(self, field_name: typing_extensions.Literal["commit_position",b"commit_position","error",b"error","events",b"events","is_end_of_stream",b"is_end_of_stream","next_commit_position",b"next_commit_position","next_prepare_position",b"next_prepare_position","prepare_position",b"prepare_position","result",b"result"]) -> None: ... global___FilteredReadAllEventsCompleted = FilteredReadAllEventsCompleted @@ -713,23 +729,24 @@ class CreatePersistentSubscription(google.protobuf.message.Message): named_consumer_strategy: typing.Text def __init__(self, *, - subscription_group_name: typing.Text = ..., - event_stream_id: typing.Text = ..., - resolve_link_tos: builtins.bool = ..., - start_from: builtins.int = ..., - message_timeout_milliseconds: builtins.int = ..., - record_statistics: builtins.bool = ..., - live_buffer_size: builtins.int = ..., - read_batch_size: builtins.int = ..., - buffer_size: builtins.int = ..., - max_retry_count: builtins.int = ..., - prefer_round_robin: builtins.bool = ..., - checkpoint_after_time: builtins.int = ..., - checkpoint_max_count: builtins.int = ..., - checkpoint_min_count: builtins.int = ..., - subscriber_max_count: builtins.int = ..., - named_consumer_strategy: typing.Text = ..., + subscription_group_name: typing.Optional[typing.Text] = ..., + event_stream_id: typing.Optional[typing.Text] = ..., + resolve_link_tos: typing.Optional[builtins.bool] = ..., + start_from: typing.Optional[builtins.int] = ..., + message_timeout_milliseconds: typing.Optional[builtins.int] = ..., + record_statistics: typing.Optional[builtins.bool] = ..., + live_buffer_size: typing.Optional[builtins.int] = ..., + read_batch_size: typing.Optional[builtins.int] = ..., + buffer_size: typing.Optional[builtins.int] = ..., + max_retry_count: typing.Optional[builtins.int] = ..., + prefer_round_robin: typing.Optional[builtins.bool] = ..., + checkpoint_after_time: typing.Optional[builtins.int] = ..., + checkpoint_max_count: typing.Optional[builtins.int] = ..., + checkpoint_min_count: typing.Optional[builtins.int] = ..., + subscriber_max_count: typing.Optional[builtins.int] = ..., + named_consumer_strategy: typing.Optional[typing.Text] = ..., ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["buffer_size",b"buffer_size","checkpoint_after_time",b"checkpoint_after_time","checkpoint_max_count",b"checkpoint_max_count","checkpoint_min_count",b"checkpoint_min_count","event_stream_id",b"event_stream_id","live_buffer_size",b"live_buffer_size","max_retry_count",b"max_retry_count","message_timeout_milliseconds",b"message_timeout_milliseconds","named_consumer_strategy",b"named_consumer_strategy","prefer_round_robin",b"prefer_round_robin","read_batch_size",b"read_batch_size","record_statistics",b"record_statistics","resolve_link_tos",b"resolve_link_tos","start_from",b"start_from","subscriber_max_count",b"subscriber_max_count","subscription_group_name",b"subscription_group_name"]) -> builtins.bool: ... def ClearField(self, field_name: typing_extensions.Literal["buffer_size",b"buffer_size","checkpoint_after_time",b"checkpoint_after_time","checkpoint_max_count",b"checkpoint_max_count","checkpoint_min_count",b"checkpoint_min_count","event_stream_id",b"event_stream_id","live_buffer_size",b"live_buffer_size","max_retry_count",b"max_retry_count","message_timeout_milliseconds",b"message_timeout_milliseconds","named_consumer_strategy",b"named_consumer_strategy","prefer_round_robin",b"prefer_round_robin","read_batch_size",b"read_batch_size","record_statistics",b"record_statistics","resolve_link_tos",b"resolve_link_tos","start_from",b"start_from","subscriber_max_count",b"subscriber_max_count","subscription_group_name",b"subscription_group_name"]) -> None: ... global___CreatePersistentSubscription = CreatePersistentSubscription @@ -741,9 +758,10 @@ class DeletePersistentSubscription(google.protobuf.message.Message): event_stream_id: typing.Text def __init__(self, *, - subscription_group_name: typing.Text = ..., - event_stream_id: typing.Text = ..., + subscription_group_name: typing.Optional[typing.Text] = ..., + event_stream_id: typing.Optional[typing.Text] = ..., ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["event_stream_id",b"event_stream_id","subscription_group_name",b"subscription_group_name"]) -> builtins.bool: ... def ClearField(self, field_name: typing_extensions.Literal["event_stream_id",b"event_stream_id","subscription_group_name",b"subscription_group_name"]) -> None: ... global___DeletePersistentSubscription = DeletePersistentSubscription @@ -783,23 +801,24 @@ class UpdatePersistentSubscription(google.protobuf.message.Message): named_consumer_strategy: typing.Text def __init__(self, *, - subscription_group_name: typing.Text = ..., - event_stream_id: typing.Text = ..., - resolve_link_tos: builtins.bool = ..., - start_from: builtins.int = ..., - message_timeout_milliseconds: builtins.int = ..., - record_statistics: builtins.bool = ..., - live_buffer_size: builtins.int = ..., - read_batch_size: builtins.int = ..., - buffer_size: builtins.int = ..., - max_retry_count: builtins.int = ..., - prefer_round_robin: builtins.bool = ..., - checkpoint_after_time: builtins.int = ..., - checkpoint_max_count: builtins.int = ..., - checkpoint_min_count: builtins.int = ..., - subscriber_max_count: builtins.int = ..., - named_consumer_strategy: typing.Text = ..., + subscription_group_name: typing.Optional[typing.Text] = ..., + event_stream_id: typing.Optional[typing.Text] = ..., + resolve_link_tos: typing.Optional[builtins.bool] = ..., + start_from: typing.Optional[builtins.int] = ..., + message_timeout_milliseconds: typing.Optional[builtins.int] = ..., + record_statistics: typing.Optional[builtins.bool] = ..., + live_buffer_size: typing.Optional[builtins.int] = ..., + read_batch_size: typing.Optional[builtins.int] = ..., + buffer_size: typing.Optional[builtins.int] = ..., + max_retry_count: typing.Optional[builtins.int] = ..., + prefer_round_robin: typing.Optional[builtins.bool] = ..., + checkpoint_after_time: typing.Optional[builtins.int] = ..., + checkpoint_max_count: typing.Optional[builtins.int] = ..., + checkpoint_min_count: typing.Optional[builtins.int] = ..., + subscriber_max_count: typing.Optional[builtins.int] = ..., + named_consumer_strategy: typing.Optional[typing.Text] = ..., ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["buffer_size",b"buffer_size","checkpoint_after_time",b"checkpoint_after_time","checkpoint_max_count",b"checkpoint_max_count","checkpoint_min_count",b"checkpoint_min_count","event_stream_id",b"event_stream_id","live_buffer_size",b"live_buffer_size","max_retry_count",b"max_retry_count","message_timeout_milliseconds",b"message_timeout_milliseconds","named_consumer_strategy",b"named_consumer_strategy","prefer_round_robin",b"prefer_round_robin","read_batch_size",b"read_batch_size","record_statistics",b"record_statistics","resolve_link_tos",b"resolve_link_tos","start_from",b"start_from","subscriber_max_count",b"subscriber_max_count","subscription_group_name",b"subscription_group_name"]) -> builtins.bool: ... def ClearField(self, field_name: typing_extensions.Literal["buffer_size",b"buffer_size","checkpoint_after_time",b"checkpoint_after_time","checkpoint_max_count",b"checkpoint_max_count","checkpoint_min_count",b"checkpoint_min_count","event_stream_id",b"event_stream_id","live_buffer_size",b"live_buffer_size","max_retry_count",b"max_retry_count","message_timeout_milliseconds",b"message_timeout_milliseconds","named_consumer_strategy",b"named_consumer_strategy","prefer_round_robin",b"prefer_round_robin","read_batch_size",b"read_batch_size","record_statistics",b"record_statistics","resolve_link_tos",b"resolve_link_tos","start_from",b"start_from","subscriber_max_count",b"subscriber_max_count","subscription_group_name",b"subscription_group_name"]) -> None: ... global___UpdatePersistentSubscription = UpdatePersistentSubscription @@ -828,9 +847,10 @@ class UpdatePersistentSubscriptionCompleted(google.protobuf.message.Message): reason: typing.Text def __init__(self, *, - result: global___UpdatePersistentSubscriptionCompleted.UpdatePersistentSubscriptionResult.ValueType = ..., - reason: typing.Text = ..., + result: typing.Optional[global___UpdatePersistentSubscriptionCompleted.UpdatePersistentSubscriptionResult.ValueType] = ..., + reason: typing.Optional[typing.Text] = ..., ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["reason",b"reason","result",b"result"]) -> builtins.bool: ... def ClearField(self, field_name: typing_extensions.Literal["reason",b"reason","result",b"result"]) -> None: ... global___UpdatePersistentSubscriptionCompleted = UpdatePersistentSubscriptionCompleted @@ -859,9 +879,10 @@ class CreatePersistentSubscriptionCompleted(google.protobuf.message.Message): reason: typing.Text def __init__(self, *, - result: global___CreatePersistentSubscriptionCompleted.CreatePersistentSubscriptionResult.ValueType = ..., - reason: typing.Text = ..., + result: typing.Optional[global___CreatePersistentSubscriptionCompleted.CreatePersistentSubscriptionResult.ValueType] = ..., + reason: typing.Optional[typing.Text] = ..., ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["reason",b"reason","result",b"result"]) -> builtins.bool: ... def ClearField(self, field_name: typing_extensions.Literal["reason",b"reason","result",b"result"]) -> None: ... global___CreatePersistentSubscriptionCompleted = CreatePersistentSubscriptionCompleted @@ -890,9 +911,10 @@ class DeletePersistentSubscriptionCompleted(google.protobuf.message.Message): reason: typing.Text def __init__(self, *, - result: global___DeletePersistentSubscriptionCompleted.DeletePersistentSubscriptionResult.ValueType = ..., - reason: typing.Text = ..., + result: typing.Optional[global___DeletePersistentSubscriptionCompleted.DeletePersistentSubscriptionResult.ValueType] = ..., + reason: typing.Optional[typing.Text] = ..., ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["reason",b"reason","result",b"result"]) -> builtins.bool: ... def ClearField(self, field_name: typing_extensions.Literal["reason",b"reason","result",b"result"]) -> None: ... global___DeletePersistentSubscriptionCompleted = DeletePersistentSubscriptionCompleted @@ -906,10 +928,11 @@ class ConnectToPersistentSubscription(google.protobuf.message.Message): allowed_in_flight_messages: builtins.int def __init__(self, *, - subscription_id: typing.Text = ..., - event_stream_id: typing.Text = ..., - allowed_in_flight_messages: builtins.int = ..., + subscription_id: typing.Optional[typing.Text] = ..., + event_stream_id: typing.Optional[typing.Text] = ..., + allowed_in_flight_messages: typing.Optional[builtins.int] = ..., ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["allowed_in_flight_messages",b"allowed_in_flight_messages","event_stream_id",b"event_stream_id","subscription_id",b"subscription_id"]) -> builtins.bool: ... def ClearField(self, field_name: typing_extensions.Literal["allowed_in_flight_messages",b"allowed_in_flight_messages","event_stream_id",b"event_stream_id","subscription_id",b"subscription_id"]) -> None: ... global___ConnectToPersistentSubscription = ConnectToPersistentSubscription @@ -922,9 +945,10 @@ class PersistentSubscriptionAckEvents(google.protobuf.message.Message): def processed_event_ids(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.bytes]: ... def __init__(self, *, - subscription_id: typing.Text = ..., + subscription_id: typing.Optional[typing.Text] = ..., processed_event_ids: typing.Optional[typing.Iterable[builtins.bytes]] = ..., ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["subscription_id",b"subscription_id"]) -> builtins.bool: ... def ClearField(self, field_name: typing_extensions.Literal["processed_event_ids",b"processed_event_ids","subscription_id",b"subscription_id"]) -> None: ... global___PersistentSubscriptionAckEvents = PersistentSubscriptionAckEvents @@ -960,11 +984,12 @@ class PersistentSubscriptionNakEvents(google.protobuf.message.Message): action: global___PersistentSubscriptionNakEvents.NakAction.ValueType def __init__(self, *, - subscription_id: typing.Text = ..., + subscription_id: typing.Optional[typing.Text] = ..., processed_event_ids: typing.Optional[typing.Iterable[builtins.bytes]] = ..., - message: typing.Text = ..., - action: global___PersistentSubscriptionNakEvents.NakAction.ValueType = ..., + message: typing.Optional[typing.Text] = ..., + action: typing.Optional[global___PersistentSubscriptionNakEvents.NakAction.ValueType] = ..., ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["action",b"action","message",b"message","subscription_id",b"subscription_id"]) -> builtins.bool: ... def ClearField(self, field_name: typing_extensions.Literal["action",b"action","message",b"message","processed_event_ids",b"processed_event_ids","subscription_id",b"subscription_id"]) -> None: ... global___PersistentSubscriptionNakEvents = PersistentSubscriptionNakEvents @@ -978,10 +1003,11 @@ class PersistentSubscriptionConfirmation(google.protobuf.message.Message): last_event_number: builtins.int def __init__(self, *, - last_commit_position: builtins.int = ..., - subscription_id: typing.Text = ..., - last_event_number: builtins.int = ..., + last_commit_position: typing.Optional[builtins.int] = ..., + subscription_id: typing.Optional[typing.Text] = ..., + last_event_number: typing.Optional[builtins.int] = ..., ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["last_commit_position",b"last_commit_position","last_event_number",b"last_event_number","subscription_id",b"subscription_id"]) -> builtins.bool: ... def ClearField(self, field_name: typing_extensions.Literal["last_commit_position",b"last_commit_position","last_event_number",b"last_event_number","subscription_id",b"subscription_id"]) -> None: ... global___PersistentSubscriptionConfirmation = PersistentSubscriptionConfirmation @@ -995,9 +1021,9 @@ class PersistentSubscriptionStreamEventAppeared(google.protobuf.message.Message) def __init__(self, *, event: typing.Optional[global___ResolvedIndexedEvent] = ..., - retryCount: builtins.int = ..., + retryCount: typing.Optional[builtins.int] = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["event",b"event"]) -> builtins.bool: ... + def HasField(self, field_name: typing_extensions.Literal["event",b"event","retryCount",b"retryCount"]) -> builtins.bool: ... def ClearField(self, field_name: typing_extensions.Literal["event",b"event","retryCount",b"retryCount"]) -> None: ... global___PersistentSubscriptionStreamEventAppeared = PersistentSubscriptionStreamEventAppeared @@ -1009,9 +1035,10 @@ class SubscribeToStream(google.protobuf.message.Message): resolve_link_tos: builtins.bool def __init__(self, *, - event_stream_id: typing.Text = ..., - resolve_link_tos: builtins.bool = ..., + event_stream_id: typing.Optional[typing.Text] = ..., + resolve_link_tos: typing.Optional[builtins.bool] = ..., ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["event_stream_id",b"event_stream_id","resolve_link_tos",b"resolve_link_tos"]) -> builtins.bool: ... def ClearField(self, field_name: typing_extensions.Literal["event_stream_id",b"event_stream_id","resolve_link_tos",b"resolve_link_tos"]) -> None: ... global___SubscribeToStream = SubscribeToStream @@ -1028,12 +1055,12 @@ class FilteredSubscribeToStream(google.protobuf.message.Message): checkpoint_interval: builtins.int def __init__(self, *, - event_stream_id: typing.Text = ..., - resolve_link_tos: builtins.bool = ..., + event_stream_id: typing.Optional[typing.Text] = ..., + resolve_link_tos: typing.Optional[builtins.bool] = ..., filter: typing.Optional[global___Filter] = ..., - checkpoint_interval: builtins.int = ..., + checkpoint_interval: typing.Optional[builtins.int] = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["filter",b"filter"]) -> builtins.bool: ... + def HasField(self, field_name: typing_extensions.Literal["checkpoint_interval",b"checkpoint_interval","event_stream_id",b"event_stream_id","filter",b"filter","resolve_link_tos",b"resolve_link_tos"]) -> builtins.bool: ... def ClearField(self, field_name: typing_extensions.Literal["checkpoint_interval",b"checkpoint_interval","event_stream_id",b"event_stream_id","filter",b"filter","resolve_link_tos",b"resolve_link_tos"]) -> None: ... global___FilteredSubscribeToStream = FilteredSubscribeToStream @@ -1045,9 +1072,10 @@ class CheckpointReached(google.protobuf.message.Message): prepare_position: builtins.int def __init__(self, *, - commit_position: builtins.int = ..., - prepare_position: builtins.int = ..., + commit_position: typing.Optional[builtins.int] = ..., + prepare_position: typing.Optional[builtins.int] = ..., ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["commit_position",b"commit_position","prepare_position",b"prepare_position"]) -> builtins.bool: ... def ClearField(self, field_name: typing_extensions.Literal["commit_position",b"commit_position","prepare_position",b"prepare_position"]) -> None: ... global___CheckpointReached = CheckpointReached @@ -1059,9 +1087,10 @@ class SubscriptionConfirmation(google.protobuf.message.Message): last_event_number: builtins.int def __init__(self, *, - last_commit_position: builtins.int = ..., - last_event_number: builtins.int = ..., + last_commit_position: typing.Optional[builtins.int] = ..., + last_event_number: typing.Optional[builtins.int] = ..., ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["last_commit_position",b"last_commit_position","last_event_number",b"last_event_number"]) -> builtins.bool: ... def ClearField(self, field_name: typing_extensions.Literal["last_commit_position",b"last_commit_position","last_event_number",b"last_event_number"]) -> None: ... global___SubscriptionConfirmation = SubscriptionConfirmation @@ -1109,8 +1138,9 @@ class SubscriptionDropped(google.protobuf.message.Message): reason: global___SubscriptionDropped.SubscriptionDropReason.ValueType def __init__(self, *, - reason: global___SubscriptionDropped.SubscriptionDropReason.ValueType = ..., + reason: typing.Optional[global___SubscriptionDropped.SubscriptionDropReason.ValueType] = ..., ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["reason",b"reason"]) -> builtins.bool: ... def ClearField(self, field_name: typing_extensions.Literal["reason",b"reason"]) -> None: ... global___SubscriptionDropped = SubscriptionDropped @@ -1149,13 +1179,14 @@ class NotHandled(google.protobuf.message.Message): external_secure_tcp_port: builtins.int def __init__(self, *, - external_tcp_address: typing.Text = ..., - external_tcp_port: builtins.int = ..., - http_address: typing.Text = ..., - http_port: builtins.int = ..., - external_secure_tcp_address: typing.Text = ..., - external_secure_tcp_port: builtins.int = ..., + external_tcp_address: typing.Optional[typing.Text] = ..., + external_tcp_port: typing.Optional[builtins.int] = ..., + http_address: typing.Optional[typing.Text] = ..., + http_port: typing.Optional[builtins.int] = ..., + external_secure_tcp_address: typing.Optional[typing.Text] = ..., + external_secure_tcp_port: typing.Optional[builtins.int] = ..., ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["external_secure_tcp_address",b"external_secure_tcp_address","external_secure_tcp_port",b"external_secure_tcp_port","external_tcp_address",b"external_tcp_address","external_tcp_port",b"external_tcp_port","http_address",b"http_address","http_port",b"http_port"]) -> builtins.bool: ... def ClearField(self, field_name: typing_extensions.Literal["external_secure_tcp_address",b"external_secure_tcp_address","external_secure_tcp_port",b"external_secure_tcp_port","external_tcp_address",b"external_tcp_address","external_tcp_port",b"external_tcp_port","http_address",b"http_address","http_port",b"http_port"]) -> None: ... REASON_FIELD_NUMBER: builtins.int @@ -1164,9 +1195,10 @@ class NotHandled(google.protobuf.message.Message): additional_info: builtins.bytes def __init__(self, *, - reason: global___NotHandled.NotHandledReason.ValueType = ..., - additional_info: builtins.bytes = ..., + reason: typing.Optional[global___NotHandled.NotHandledReason.ValueType] = ..., + additional_info: typing.Optional[builtins.bytes] = ..., ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["additional_info",b"additional_info","reason",b"reason"]) -> builtins.bool: ... def ClearField(self, field_name: typing_extensions.Literal["additional_info",b"additional_info","reason",b"reason"]) -> None: ... global___NotHandled = NotHandled @@ -1199,9 +1231,10 @@ class ScavengeDatabaseResponse(google.protobuf.message.Message): scavengeId: typing.Text def __init__(self, *, - result: global___ScavengeDatabaseResponse.ScavengeResult.ValueType = ..., - scavengeId: typing.Text = ..., + result: typing.Optional[global___ScavengeDatabaseResponse.ScavengeResult.ValueType] = ..., + scavengeId: typing.Optional[typing.Text] = ..., ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["result",b"result","scavengeId",b"scavengeId"]) -> builtins.bool: ... def ClearField(self, field_name: typing_extensions.Literal["result",b"result","scavengeId",b"scavengeId"]) -> None: ... global___ScavengeDatabaseResponse = ScavengeDatabaseResponse @@ -1213,9 +1246,10 @@ class IdentifyClient(google.protobuf.message.Message): connection_name: typing.Text def __init__(self, *, - version: builtins.int = ..., - connection_name: typing.Text = ..., + version: typing.Optional[builtins.int] = ..., + connection_name: typing.Optional[typing.Text] = ..., ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["connection_name",b"connection_name","version",b"version"]) -> builtins.bool: ... def ClearField(self, field_name: typing_extensions.Literal["connection_name",b"connection_name","version",b"version"]) -> None: ... global___IdentifyClient = IdentifyClient diff --git a/photonpump/messages_pb2_grpc.py b/photonpump/messages_pb2_grpc.py deleted file mode 100644 index 2daafff..0000000 --- a/photonpump/messages_pb2_grpc.py +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - diff --git a/test/conftest.py b/test/conftest.py index 72a003a..bf9e302 100644 --- a/test/conftest.py +++ b/test/conftest.py @@ -27,4 +27,6 @@ def ssl_context() -> ssl.SSLContext: @pytest.fixture def connect(ssl_context): - return lambda *args, **kwargs: _connect(*args, **{"sslcontext": ssl_context, "port": 1111, **kwargs}) + return lambda *args, **kwargs: _connect( + *args, **{"sslcontext": ssl_context, "port": 1111, **kwargs} + ) diff --git a/test/connection_test.py b/test/connection_test.py index e38339a..33f46be 100644 --- a/test/connection_test.py +++ b/test/connection_test.py @@ -16,7 +16,13 @@ async def test_ping_context_mgr(event_loop, connect): @pytest.mark.asyncio async def test_connect_subscription(event_loop, connect): - async with connect(username="admin", password="changeit", discovery_host="localhost", selector=prefer_leader, discovery_port=2111) as conn: + async with connect( + username="admin", + password="changeit", + discovery_host="localhost", + selector=prefer_leader, + discovery_port=2111, + ) as conn: subscription_name = str(uuid.uuid4()) stream_name = str(uuid.uuid4()) event_id = uuid.uuid4() @@ -71,5 +77,5 @@ async def test_connect_logs_deprecation_warning_when_used_with_loop_parameter( await conn.ping(conversation_id=uuid.uuid4()) assert len(record) <= 10 - + assert "The loop parameter has been deprecated" in record[0].message.args[0] diff --git a/test/conversations/test_create_persistent_subscription.py b/test/conversations/test_create_persistent_subscription.py index 1671b0b..db8221a 100644 --- a/test/conversations/test_create_persistent_subscription.py +++ b/test/conversations/test_create_persistent_subscription.py @@ -104,16 +104,19 @@ async def test_subscription_configuration(): await convo.start(output) request = await output.get() - expected_bytes = bytearray(read_hex( - """ + expected_bytes = bytearray( + read_hex( + """ c8 00 7b 72 f5 8f a9 58 05 48 82 3a 45 1d 5e b3 07 f7 0a 11 62 65 73 74 2d 73 75 62 73 63 72 69 70 74 69 6f 6e 12 10 24 63 65 2d 43 61 6e 63 65 -6c 6c 61 74 69 6f 6e 18 01 28 b0 ea 01 38 20 40 -40 48 80 01 50 0a 58 01 60 d0 0f 68 e8 07 70 0a -82 01 0a 52 6f 75 6e 64 52 6f 62 69 6e +6c 6c 61 74 69 6f 6e 18 01 20 00 28 b0 ea 01 30 +00 38 20 40 40 48 80 01 50 0a 58 01 60 d0 0f 68 +e8 07 70 0a 78 00 82 01 0a 52 6f 75 6e 64 52 6f +62 69 6e """ - )) + ) + ) actual_bytes = (request.header_bytes + request.payload)[4:] diff --git a/test/discovery_test.py b/test/discovery_test.py index 54c1a6e..9397515 100644 --- a/test/discovery_test.py +++ b/test/discovery_test.py @@ -215,7 +215,9 @@ async def wait(self, seed): gossip = data.make_gossip("2.3.4.5") retry = always_succeed() with aioresponses() as mock: - successful_discoverer = ClusterDiscovery(StaticSeedFinder([seed]), retry, None, None) + successful_discoverer = ClusterDiscovery( + StaticSeedFinder([seed]), retry, None, None + ) mock.get("http://1.2.3.4:2113/gossip", status=500) mock.get("http://1.2.3.4:2113/gossip", payload=gossip) @@ -252,7 +254,9 @@ async def wait(self, seed): retry = always_fail() gossip = data.make_gossip("2.3.4.5") with aioresponses() as mock: - successful_discoverer = ClusterDiscovery(StaticSeedFinder([seed]), retry, None, None) + successful_discoverer = ClusterDiscovery( + StaticSeedFinder([seed]), retry, None, None + ) mock.get("http://1.2.3.4:2113/gossip", status=500) mock.get("http://1.2.3.4:2113/gossip", payload=gossip) From 743cf79224820d3e773a732cd4a8d1ac6500f09d Mon Sep 17 00:00:00 2001 From: Andrii Kohut Date: Wed, 3 Aug 2022 00:49:04 +0300 Subject: [PATCH 08/18] remove unnecesary travic ci step --- .travis.yml | 5 ----- 1 file changed, 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index 5eb9faa..f97a1bd 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,11 +2,6 @@ sudo: required dist: focal language: python -branches: - except: - - legacy - - experimental - matrix: include: - python: "3.10" From 680f406441cc05da248b8d90ec03fd081c7477d8 Mon Sep 17 00:00:00 2001 From: Andrii Kohut Date: Wed, 3 Aug 2022 09:50:39 +0300 Subject: [PATCH 09/18] update compile command --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 2c25dbc..addf91f 100644 --- a/Makefile +++ b/Makefile @@ -46,6 +46,6 @@ create_users: eventstore_docker: run_compose create_users -generate: - python -m grpc_tools.protoc -I=proto --python_out=photonpump --mypy_out=photonpump proto/* +proto-compile: + protoc -I=proto --python_out=photonpump --mypy_out=photonpump proto/* \ No newline at end of file From 4cedb20e22fc68bcf378b31b0540750a16668d21 Mon Sep 17 00:00:00 2001 From: Andrii Kohut Date: Wed, 3 Aug 2022 10:02:04 +0300 Subject: [PATCH 10/18] more naming fixes --- photonpump/discovery.py | 6 +++--- test/conversations/test_error_handling.py | 2 +- test/discovery_test.py | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/photonpump/discovery.py b/photonpump/discovery.py index 03a6d7e..68ff2bb 100644 --- a/photonpump/discovery.py +++ b/photonpump/discovery.py @@ -67,14 +67,14 @@ def first(elems: Iterable): def prefer_leader(nodes: List[DiscoveredNode]) -> Optional[DiscoveredNode]: """ - Select the master if available, otherwise fall back to a replica. + Select the leader if available, otherwise fall back to a replica. """ return max(nodes, key=attrgetter("state")) def prefer_replica(nodes: List[DiscoveredNode]) -> Optional[DiscoveredNode]: """ - Select a random replica if any are available or fall back to the master. + Select a random replica if any are available or fall back to the leader. """ leaders = [node for node in nodes if node.state == NodeState.Leader] replicas = [node for node in nodes if node.state != NodeState.Leader] @@ -82,7 +82,7 @@ def prefer_replica(nodes: List[DiscoveredNode]) -> Optional[DiscoveredNode]: if replicas: return random.choice(replicas) else: - # if you have more than one master then you're on your own, bud. + # if you have more than one leader then you're on your own, bud. return leaders[0] diff --git a/test/conversations/test_error_handling.py b/test/conversations/test_error_handling.py index 685539c..a87754a 100644 --- a/test/conversations/test_error_handling.py +++ b/test/conversations/test_error_handling.py @@ -115,7 +115,7 @@ async def test_too_busy_message(): @pytest.mark.asyncio -async def test_not_master(): +async def test_not_leader(): output = TeeQueue() payload = proto.NotHandled() diff --git a/test/discovery_test.py b/test/discovery_test.py index 9397515..f13bf30 100644 --- a/test/discovery_test.py +++ b/test/discovery_test.py @@ -277,7 +277,7 @@ async def wait(self, seed): async def test_prefer_replica(): """ If we ask the discoverer to prefer_replica it should return a replica node - before returning a master. + before returning a leader. """ discoverer = get_discoverer(None, None, "10.0.0.1", 2113, prefer_replica) From b84193626244616edfbba23a334ec455e586ad0b Mon Sep 17 00:00:00 2001 From: Edgar Poplavskis Date: Wed, 3 Aug 2022 11:40:20 +0300 Subject: [PATCH 11/18] Added new line to tigger a build --- vars.env | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vars.env b/vars.env index ff780c8..8f9694f 100644 --- a/vars.env +++ b/vars.env @@ -4,4 +4,4 @@ EVENTSTORE_TRUSTED_ROOT_CERTIFICATES_PATH=/certs/ca EVENTSTORE_DISCOVER_VIA_DNS=false EVENTSTORE_ENABLE_EXTERNAL_TCP=true EVENTSTORE_ENABLE_ATOM_PUB_OVER_HTTP=true -EVENTSTORE_ADVERTISE_HOST_TO_CLIENT_AS=localhost \ No newline at end of file +EVENTSTORE_ADVERTISE_HOST_TO_CLIENT_AS=localhost From c54745bc032d3bcf73ff00c2b78ebea9a5eb71fe Mon Sep 17 00:00:00 2001 From: Andrii Kohut Date: Wed, 3 Aug 2022 11:52:17 +0300 Subject: [PATCH 12/18] also verify the key --- README.rst | 3 ++- test/conftest.py | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/README.rst b/README.rst index fe23c54..66ef543 100644 --- a/README.rst +++ b/README.rst @@ -49,8 +49,9 @@ Pass `~ssl.SSLContext` class to `~photonpump.Client`. >>> >>> from photonpump import connect >>> - >>> context = ssl.SSLContext() + >>> context = ssl.SSLContext(ssl.PROTOCOL_TLS) >>> context.load_verify_locations("certs/ca/ca.crt") + >>> context.load_cert_chain(certfile="certs/ca/ca.crt", keyfile="certs/ca/ca.key") >>> context.verify_mode = ssl.CERT_REQUIRED >>> >>> async def main(): diff --git a/test/conftest.py b/test/conftest.py index bf9e302..2e6d56f 100644 --- a/test/conftest.py +++ b/test/conftest.py @@ -19,8 +19,9 @@ def event_loop(): @pytest.fixture def ssl_context() -> ssl.SSLContext: - context = ssl.SSLContext() + context = ssl.SSLContext(ssl.PROTOCOL_TLS) context.load_verify_locations("certs/ca/ca.crt") + context.load_cert_chain(certfile="certs/ca/ca.crt", keyfile="certs/ca/ca.key") context.verify_mode = ssl.CERT_REQUIRED return context From bfc3e22ffb7359990e7bbc1b146b2cfaf046aff0 Mon Sep 17 00:00:00 2001 From: Andrii Kohut Date: Wed, 3 Aug 2022 12:09:02 +0300 Subject: [PATCH 13/18] trailing newline --- Makefile | 1 - 1 file changed, 1 deletion(-) diff --git a/Makefile b/Makefile index addf91f..466ef4d 100644 --- a/Makefile +++ b/Makefile @@ -48,4 +48,3 @@ eventstore_docker: run_compose create_users proto-compile: protoc -I=proto --python_out=photonpump --mypy_out=photonpump proto/* - \ No newline at end of file From 2d2fb1fc908b16273830dcdd06d37247939533cf Mon Sep 17 00:00:00 2001 From: Andrii Kohut Date: Wed, 3 Aug 2022 12:49:13 +0300 Subject: [PATCH 14/18] wait for stream --- test/read_test.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/test/read_test.py b/test/read_test.py index 3aea38d..1e65e4c 100644 --- a/test/read_test.py +++ b/test/read_test.py @@ -1,8 +1,9 @@ # pylint: disable=invalid-name, bad-continuation, expression-not-assigned import logging +import time import uuid import pytest -from photonpump import exceptions, messages +from photonpump import exceptions, messages, StreamNotFound from .fixtures import ( given_two_streams_with_two_events, given_a_stream_with_three_events, @@ -75,7 +76,12 @@ async def test_read_with_max_count_and_from_event(event_loop, connect): async with connect(username="test-user", password="test-password") as c: await given_a_stream_with_three_events(c, stream_name) - result = await c.get(stream_name, max_count=1, from_event=2) + for _ in range(10): + try: + result = await c.get(stream_name, max_count=1, from_event=2) + break + except StreamNotFound: + time.sleep(0.1) assert isinstance(result, list) assert len(result) == 1 From 20d9f1ec799dfc17009b9a4b5fdd88fd9b89e93a Mon Sep 17 00:00:00 2001 From: Andrii Kohut Date: Wed, 3 Aug 2022 13:18:34 +0300 Subject: [PATCH 15/18] wait for q --- test/fixtures.py | 20 +++++++++++++++++++- test/read_test.py | 8 +------- test/write_test.py | 8 +++----- 3 files changed, 23 insertions(+), 13 deletions(-) diff --git a/test/fixtures.py b/test/fixtures.py index b6811bf..9e26928 100644 --- a/test/fixtures.py +++ b/test/fixtures.py @@ -1,4 +1,6 @@ -from photonpump import messages +import time + +from photonpump import messages, StreamNotFound, Client async def given_a_stream_with_three_events(c, stream_name): @@ -20,6 +22,7 @@ async def given_a_stream_with_three_events(c, stream_name): ], ) assert "denied" not in str(result).lower() # this should now never happen + await wait_for_stream(c, stream_name) async def given_two_streams_with_two_events(c, unique_id): @@ -49,3 +52,18 @@ async def given_two_streams_with_two_events(c, unique_id): ), ], ) + await wait_for_stream(c, f"stream_one_{unique_id}") + await wait_for_stream(c, f"stream_two_{unique_id}") + + +async def wait_for_stream( + c: Client, stream: str, timeout: int = 0.1, attempts: int = 10 +) -> None: + for attempt in range(attempts): + try: + await c.get(stream=stream, max_count=1) + return + except StreamNotFound: + if attempt + 1 == attempts: + raise + time.sleep(timeout) diff --git a/test/read_test.py b/test/read_test.py index 1e65e4c..e3f5d85 100644 --- a/test/read_test.py +++ b/test/read_test.py @@ -75,13 +75,7 @@ async def test_read_with_max_count_and_from_event(event_loop, connect): stream_name = str(uuid.uuid4()) async with connect(username="test-user", password="test-password") as c: await given_a_stream_with_three_events(c, stream_name) - - for _ in range(10): - try: - result = await c.get(stream_name, max_count=1, from_event=2) - break - except StreamNotFound: - time.sleep(0.1) + result = await c.get(stream_name, max_count=1, from_event=2) assert isinstance(result, list) assert len(result) == 1 diff --git a/test/write_test.py b/test/write_test.py index 1fb244d..8e13ab7 100644 --- a/test/write_test.py +++ b/test/write_test.py @@ -6,6 +6,7 @@ from photonpump import messages, messages_pb2, exceptions from . import data +from .fixtures import wait_for_stream @pytest.mark.asyncio @@ -60,11 +61,8 @@ async def test_a_large_event(event_loop, connect): ], ) assert write_result.first_event_number == 0 - for _ in range(10): - time.sleep(0.1) - read_result = await c.get(stream_name, 0) - if read_result: - break + await wait_for_stream(c, stream_name) + read_result = await c.get(stream_name, 0) assert read_result[0].event.type == "big_json" From 91e7d85a2e922e4f632466d846f19d274fed8f6e Mon Sep 17 00:00:00 2001 From: Andrii Kohut Date: Wed, 3 Aug 2022 13:25:10 +0300 Subject: [PATCH 16/18] wait for acls too --- Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 466ef4d..46150f3 100644 --- a/Makefile +++ b/Makefile @@ -34,14 +34,14 @@ run_compose: create_users: until curl -f --insecure https://localhost:2111/health/live; do sleep 1; done - curl -k -f -i "https://127.0.0.1:2111/streams/%24settings" \ + until curl -k -f -i "https://127.0.0.1:2111/streams/%24settings" \ --user admin:changeit \ -H "Content-Type: application/vnd.eventstore.events+json" \ - -d @default-acl.json - curl -k -f -i "https://127.0.0.1:2111/users" \ + -d @default-acl.json; do sleep 1; done + until curl -k -f -i "https://127.0.0.1:2111/users" \ --user admin:changeit \ -H "Content-Type: application/json" \ - -d @test-user.json + -d @test-user.json; do sleep 1; done eventstore_docker: run_compose create_users From 27a51734a4ab37bf0101145c29130b082a52daa6 Mon Sep 17 00:00:00 2001 From: Andrii Kohut Date: Fri, 5 Aug 2022 01:05:08 +0300 Subject: [PATCH 17/18] get node state by name --- photonpump/discovery.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/photonpump/discovery.py b/photonpump/discovery.py index 68ff2bb..25b4319 100644 --- a/photonpump/discovery.py +++ b/photonpump/discovery.py @@ -137,7 +137,7 @@ def read_gossip(data, secure: bool): external_http_port = m.get("httpEndPointPort", m.get("externalHttpPort")) assert external_http_port node = DiscoveredNode( - state=NodeState[m["state"]], + state=getattr(NodeState, m["state"]), is_alive=m["isAlive"], internal_tcp=NodeService(m["internalTcpIp"], internal_tcp_port, None), external_tcp=NodeService(m["externalTcpIp"], external_tcp_port, None), From 73149a6880119dc01290285c6848cb24a44fdf11 Mon Sep 17 00:00:00 2001 From: Andrii Kohut Date: Fri, 26 Aug 2022 10:02:45 +0300 Subject: [PATCH 18/18] log the gossip error --- photonpump/discovery.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/photonpump/discovery.py b/photonpump/discovery.py index 25b4319..2fd90ce 100644 --- a/photonpump/discovery.py +++ b/photonpump/discovery.py @@ -251,8 +251,8 @@ async def fetch_new_gossip(session, seed, sslcontext): data = await resp.json() return read_gossip(data, bool(sslcontext)) - except aiohttp.ClientError: - LOG.exception("Failed loading gossip from %s", url) + except aiohttp.ClientError as err: + LOG.exception("Failed loading gossip from %s: %s", url, err) return None