diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 3b477b3c..cbc0bc67 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -17,14 +17,22 @@ jobs: strategy: fail-fast: false matrix: - python-version: [3.8] - environment: [py, py-tls, py-proto3, py-tls-proto3] - folder: [ydb, tests] + python-version: [3.8, 3.9] + environment: [py-proto5, py-tls-proto5, py-proto4, py-tls-proto4, py-proto3, py-tls-proto3] + folder: [ydb, tests --ignore=tests/topics, tests/topics] exclude: - - environment: py-tls + - environment: py-tls-proto5 + folder: ydb + - environment: py-tls-proto4 folder: ydb - environment: py-tls-proto3 folder: ydb + - environment: py-tls-proto5 + folder: tests/topics + - environment: py-tls-proto4 + folder: tests/topics + - environment: py-tls-proto3 + folder: tests/topics steps: - uses: actions/checkout@v1 diff --git a/Makefile b/Makefile index acc46bd6..af5780d9 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -protobuf: protobuf-3 protobuf-4 +protobuf: protobuf-3 protobuf-4 protobuf-5 protobuf-3: docker build -f generate-protobuf.Dockerfile . -t ydb-python-sdk-proto-generator-env-3 --build-arg GRPCIO_VER=1.39.0 --build-arg PY_PROTOBUF_VER=3.20.3 @@ -6,4 +6,8 @@ protobuf-3: protobuf-4: docker build -f generate-protobuf.Dockerfile . -t ydb-python-sdk-proto-generator-env-4 - docker run --rm -it -v $${PWD}:$${PWD} -w $${PWD} ydb-python-sdk-proto-generator-env-4 python generate_protoc.py + docker run --rm -it -v $${PWD}:$${PWD} -w $${PWD} ydb-python-sdk-proto-generator-env-4 python generate_protoc.py --target-version=v4 + +protobuf-5: + docker build -f generate-protobuf.Dockerfile . -t ydb-python-sdk-proto-generator-env-5 --build-arg PY_PROTOBUF_VER=5.26.1 --build-arg PROTOC_VER=26.1 + docker run --rm -it -v $${PWD}:$${PWD} -w $${PWD} ydb-python-sdk-proto-generator-env-5 python generate_protoc.py --target-version=v5 \ No newline at end of file diff --git a/generate-protobuf.Dockerfile b/generate-protobuf.Dockerfile index 6c31d460..87938271 100644 --- a/generate-protobuf.Dockerfile +++ b/generate-protobuf.Dockerfile @@ -9,7 +9,7 @@ RUN \ python -m pip install grpcio-tools==${GRPCIO_VER} && \ python -m pip install protobuf==${PY_PROTOBUF_VER} -ENV PROTOC_VER=21.8 +ARG PROTOC_VER=21.8 RUN wget https://github.com/protocolbuffers/protobuf/releases/download/v${PROTOC_VER}/protoc-${PROTOC_VER}-linux-x86_64.zip && \ unzip protoc-*.zip && \ rm -f protoc-*.zip && \ diff --git a/requirements.txt b/requirements.txt index 3b962207..d66b4d10 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,4 @@ grpcio>=1.42.0 packaging -protobuf>=3.13.0,<5.0.0 +protobuf>=3.13.0,<6.0.0 aiohttp<4 diff --git a/test-requirements.txt b/test-requirements.txt index 787bcf34..c88c5ca0 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -11,7 +11,7 @@ docker==5.0.0 docker-compose==1.29.2 dockerpty==0.4.1 docopt==0.6.2 -grpcio==1.42.0 +grpcio>=1.42.0 idna==3.2 importlib-metadata==4.6.1 iniconfig==1.1.1 @@ -19,7 +19,7 @@ jsonschema==3.2.0 packaging==21.0 paramiko==2.10.1 pluggy==0.13.1 -protobuf>=3.13.0,<5.0.0 +protobuf>=3.13.0,<6.0.0 py==1.10.0 pycparser==2.20 PyNaCl==1.4.0 diff --git a/tox.ini b/tox.ini index 8b5c06ae..b7d712f9 100644 --- a/tox.ini +++ b/tox.ini @@ -1,5 +1,5 @@ [tox] -envlist = py,py-proto3,py-tls,py-tls-proto3,style,pylint,black,protoc,py-cov +envlist = py-proto5,py-proto4,py-proto3,py-tls-proto5,py-tls-proto4,py-tls-proto3,style,pylint,black,protoc,py-cov-proto4 minversion = 4.2.6 skipsdist = True ignore_basepython_conflict = true @@ -12,8 +12,17 @@ setenv = deps = -r{toxinidir}/test-requirements.txt -[testenv:dev] +[testenv:dev-proto5] commands = +deps = + -r{toxinidir}/test-requirements.txt + protobuf<6.0.0 + +[testenv:dev-proto4] +commands = +deps = + -r{toxinidir}/test-requirements.txt + protobuf<5.0.0 [testenv:dev-proto3] commands = @@ -21,26 +30,49 @@ deps = -r{toxinidir}/test-requirements.txt protobuf<4.0.0 -[testenv:py] +[testenv:py-proto5] commands = - pytest -v -m "not tls" --docker-compose-remove-volumes --docker-compose=docker-compose.yml {posargs} + pytest -v -m "not tls" --docker-compose-remove-volumes --docker-compose=docker-compose.yml {posargs} --ignore=tests/topics +deps = + -r{toxinidir}/test-requirements.txt + protobuf<6.0.0 -[testenv:py-cov] +[testenv:py-proto4] +commands = + pytest -v -m "not tls" --docker-compose-remove-volumes --docker-compose=docker-compose.yml {posargs} --ignore=tests/topics +deps = + -r{toxinidir}/test-requirements.txt + protobuf<5.0.0 + +[testenv:py-cov-proto4] commands = pytest -v -m "not tls" \ --cov-report html:cov_html --cov=ydb \ --docker-compose-remove-volumes --docker-compose=docker-compose.yml {posargs} +deps = + -r{toxinidir}/test-requirements.txt + protobuf<5.0.0 [testenv:py-proto3] commands = - pytest -v -m "not tls" --docker-compose-remove-volumes --docker-compose=docker-compose.yml {posargs} + pytest -v -m "not tls" --docker-compose-remove-volumes --docker-compose=docker-compose.yml {posargs} --ignore=tests/topics deps = -r{toxinidir}/test-requirements.txt protobuf<4.0.0 -[testenv:py-tls] +[testenv:py-tls-proto5] +commands = + pytest -v -m tls --docker-compose-remove-volumes --docker-compose=docker-compose-tls.yml {posargs} +deps = + -r{toxinidir}/test-requirements.txt + protobuf<6.0.0 + +[testenv:py-tls-proto4] commands = pytest -v -m tls --docker-compose-remove-volumes --docker-compose=docker-compose-tls.yml {posargs} +deps = + -r{toxinidir}/test-requirements.txt + protobuf<5.0.0 [testenv:py-tls-proto3] commands = @@ -52,12 +84,12 @@ deps = [testenv:black-format] skip_install = true commands = - black ydb examples tests --extend-exclude "ydb/_grpc/v3|ydb/_grpc/v4" + black ydb examples tests --extend-exclude "ydb/_grpc/v3|ydb/_grpc/v4|ydb/_grpc/v5" [testenv:black] skip_install = true commands = - black --diff --check ydb examples tests --extend-exclude "ydb/_grpc/v3|ydb/_grpc/v4" + black --diff --check ydb examples tests --extend-exclude "ydb/_grpc/v3|ydb/_grpc/v4|ydb/_grpc/v5" [testenv:pylint] deps = pylint diff --git a/ydb/_grpc/common/__init__.py b/ydb/_grpc/common/__init__.py index bab864e0..4c06d83a 100644 --- a/ydb/_grpc/common/__init__.py +++ b/ydb/_grpc/common/__init__.py @@ -36,7 +36,7 @@ from ydb._grpc.v3 import protos # noqa sys.modules["ydb._grpc.common.protos"] = sys.modules["ydb._grpc.v3.protos"] - else: + elif protobuf_version < Version("5.0"): from ydb._grpc.v4 import * # noqa sys.modules["ydb._grpc.common"] = sys.modules["ydb._grpc.v4"] @@ -44,3 +44,12 @@ from ydb._grpc.v4 import protos # noqa sys.modules["ydb._grpc.common.protos"] = sys.modules["ydb._grpc.v4.protos"] + + else: + from ydb._grpc.v5 import * # noqa + + sys.modules["ydb._grpc.common"] = sys.modules["ydb._grpc.v5"] + + from ydb._grpc.v5 import protos # noqa + + sys.modules["ydb._grpc.common.protos"] = sys.modules["ydb._grpc.v5.protos"] diff --git a/ydb/_grpc/v5/__init__.py b/ydb/_grpc/v5/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/ydb/_grpc/v5/draft/__init__.py b/ydb/_grpc/v5/draft/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/ydb/_grpc/v5/draft/protos/__init__.py b/ydb/_grpc/v5/draft/protos/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/ydb/_grpc/v5/draft/protos/ydb_dynamic_config_pb2.py b/ydb/_grpc/v5/draft/protos/ydb_dynamic_config_pb2.py new file mode 100644 index 00000000..511a3f42 --- /dev/null +++ b/ydb/_grpc/v5/draft/protos/ydb_dynamic_config_pb2.py @@ -0,0 +1,94 @@ +# -*- coding: utf-8 -*- +# flake8: noqa +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: draft/protos/ydb_dynamic_config.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from ydb._grpc.v5.protos import ydb_operation_pb2 as protos_dot_ydb__operation__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n%draft/protos/ydb_dynamic_config.proto\x12\x11Ydb.DynamicConfig\x1a\x1aprotos/ydb_operation.proto\"2\n\x0e\x43onfigIdentity\x12\x0f\n\x07version\x18\x01 \x01(\x04\x12\x0f\n\x07\x63luster\x18\x02 \x01(\t\"\x8c\x01\n\x10SetConfigRequest\x12\x39\n\x10operation_params\x18\x01 \x01(\x0b\x32\x1f.Ydb.Operations.OperationParams\x12\x0e\n\x06\x63onfig\x18\x02 \x01(\t\x12\x0f\n\x07\x64ry_run\x18\x03 \x01(\x08\x12\x1c\n\x14\x61llow_unknown_fields\x18\x04 \x01(\x08\"A\n\x11SetConfigResponse\x12,\n\toperation\x18\x01 \x01(\x0b\x32\x19.Ydb.Operations.Operation\"\x90\x01\n\x14ReplaceConfigRequest\x12\x39\n\x10operation_params\x18\x01 \x01(\x0b\x32\x1f.Ydb.Operations.OperationParams\x12\x0e\n\x06\x63onfig\x18\x02 \x01(\t\x12\x0f\n\x07\x64ry_run\x18\x03 \x01(\x08\x12\x1c\n\x14\x61llow_unknown_fields\x18\x04 \x01(\x08\"E\n\x15ReplaceConfigResponse\x12,\n\toperation\x18\x01 \x01(\x0b\x32\x19.Ydb.Operations.Operation\"\x83\x01\n\x11\x44ropConfigRequest\x12\x39\n\x10operation_params\x18\x01 \x01(\x0b\x32\x1f.Ydb.Operations.OperationParams\x12\x33\n\x08identity\x18\x02 \x01(\x0b\x32!.Ydb.DynamicConfig.ConfigIdentity\"B\n\x12\x44ropConfigResponse\x12,\n\toperation\x18\x01 \x01(\x0b\x32\x19.Ydb.Operations.Operation\"e\n\x18\x41\x64\x64VolatileConfigRequest\x12\x39\n\x10operation_params\x18\x01 \x01(\x0b\x32\x1f.Ydb.Operations.OperationParams\x12\x0e\n\x06\x63onfig\x18\x02 \x01(\t\"I\n\x19\x41\x64\x64VolatileConfigResponse\x12,\n\toperation\x18\x01 \x01(\x0b\x32\x19.Ydb.Operations.Operation\",\n\x0eVolatileConfig\x12\n\n\x02id\x18\x01 \x01(\x04\x12\x0e\n\x06\x63onfig\x18\x02 \x01(\t\"M\n\x10GetConfigRequest\x12\x39\n\x10operation_params\x18\x01 \x01(\x0b\x32\x1f.Ydb.Operations.OperationParams\"A\n\x11GetConfigResponse\x12,\n\toperation\x18\x01 \x01(\x0b\x32\x19.Ydb.Operations.Operation\"\x93\x01\n\x0fGetConfigResult\x12\x0e\n\x06\x63onfig\x18\x01 \x01(\t\x12;\n\x10volatile_configs\x18\x02 \x03(\x0b\x32!.Ydb.DynamicConfig.VolatileConfig\x12\x33\n\x08identity\x18\x03 \x01(\x0b\x32!.Ydb.DynamicConfig.ConfigIdentity\"6\n\x16VolatileConfigMetadata\x12\n\n\x02id\x18\x01 \x01(\x04\x12\x10\n\x08metadata\x18\x02 \x01(\t\"O\n\x12GetMetadataRequest\x12\x39\n\x10operation_params\x18\x01 \x01(\x0b\x32\x1f.Ydb.Operations.OperationParams\"C\n\x13GetMetadataResponse\x12,\n\toperation\x18\x01 \x01(\x0b\x32\x19.Ydb.Operations.Operation\"j\n\x11GetMetadataResult\x12\x10\n\x08metadata\x18\x01 \x01(\t\x12\x43\n\x10volatile_configs\x18\x02 \x03(\x0b\x32).Ydb.DynamicConfig.VolatileConfigMetadata\"\xb7\x02\n\x1bRemoveVolatileConfigRequest\x12\x39\n\x10operation_params\x18\x01 \x01(\x0b\x32\x1f.Ydb.Operations.OperationParams\x12\x35\n\x08identity\x18\x02 \x01(\x0b\x32!.Ydb.DynamicConfig.ConfigIdentityH\x00\x12\x0f\n\x05\x66orce\x18\x03 \x01(\x08H\x00\x12I\n\x03ids\x18\x04 \x01(\x0b\x32:.Ydb.DynamicConfig.RemoveVolatileConfigRequest.IdsToDeleteH\x01\x12\r\n\x03\x61ll\x18\x05 \x01(\x08H\x01\x1a\x1a\n\x0bIdsToDelete\x12\x0b\n\x03ids\x18\x01 \x03(\x04\x42\x13\n\x11\x63onsistency_checkB\n\n\x08selector\"L\n\x1cRemoveVolatileConfigResponse\x12,\n\toperation\x18\x01 \x01(\x0b\x32\x19.Ydb.Operations.Operation\"b\n\x14GetNodeLabelsRequest\x12\x39\n\x10operation_params\x18\x01 \x01(\x0b\x32\x1f.Ydb.Operations.OperationParams\x12\x0f\n\x07node_id\x18\x02 \x01(\r\")\n\tYamlLabel\x12\r\n\x05label\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t\"E\n\x15GetNodeLabelsResponse\x12,\n\toperation\x18\x01 \x01(\x0b\x32\x19.Ydb.Operations.Operation\"C\n\x13GetNodeLabelsResult\x12,\n\x06labels\x18\x01 \x03(\x0b\x32\x1c.Ydb.DynamicConfig.YamlLabel\"\xcc\x01\n\x14ResolveConfigRequest\x12\x39\n\x10operation_params\x18\x01 \x01(\x0b\x32\x1f.Ydb.Operations.OperationParams\x12\x0e\n\x06\x63onfig\x18\x02 \x01(\t\x12;\n\x10volatile_configs\x18\x03 \x03(\x0b\x32!.Ydb.DynamicConfig.VolatileConfig\x12,\n\x06labels\x18\x04 \x03(\x0b\x32\x1c.Ydb.DynamicConfig.YamlLabel\"E\n\x15ResolveConfigResponse\x12,\n\toperation\x18\x01 \x01(\x0b\x32\x19.Ydb.Operations.Operation\"%\n\x13ResolveConfigResult\x12\x0e\n\x06\x63onfig\x18\x01 \x01(\t\"\xbb\x01\n\x17ResolveAllConfigRequest\x12\x39\n\x10operation_params\x18\x01 \x01(\x0b\x32\x1f.Ydb.Operations.OperationParams\x12\x0e\n\x06\x63onfig\x18\x02 \x01(\t\x12;\n\x10volatile_configs\x18\x03 \x03(\x0b\x32!.Ydb.DynamicConfig.VolatileConfig\x12\x18\n\x10verbose_response\x18\x04 \x01(\x08\"\xb6\x01\n\x0cYamlLabelExt\x12\r\n\x05label\x18\x01 \x01(\t\x12\x37\n\x04type\x18\x02 \x01(\x0e\x32).Ydb.DynamicConfig.YamlLabelExt.LabelType\x12\x12\n\x05value\x18\x03 \x01(\tH\x00\x88\x01\x01\"@\n\tLabelType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\n\n\x06\x43OMMON\x10\x01\x12\x0b\n\x07NOT_SET\x10\x02\x12\t\n\x05\x45MPTY\x10\x03\x42\x08\n\x06_value\";\n\x08LabelSet\x12/\n\x06labels\x18\x01 \x03(\x0b\x32\x1f.Ydb.DynamicConfig.YamlLabelExt\"Q\n\x0eResolvedConfig\x12/\n\nlabel_sets\x18\x01 \x03(\x0b\x32\x1b.Ydb.DynamicConfig.LabelSet\x12\x0e\n\x06\x63onfig\x18\x02 \x01(\t\"H\n\x18ResolveAllConfigResponse\x12,\n\toperation\x18\x01 \x01(\x0b\x32\x19.Ydb.Operations.Operation\"\\\n\x16ResolveAllConfigResult\x12\x0e\n\x06\x63onfig\x18\x01 \x01(\t\x12\x32\n\x07\x63onfigs\x18\x02 \x03(\x0b\x32!.Ydb.DynamicConfig.ResolvedConfigBo\n\"tech.ydb.proto.draft.dynamicconfigZFgithub.com/ydb-platform/ydb-go-genproto/draft/protos/Ydb_DynamicConfig\xf8\x01\x01\x62\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'draft.protos.ydb_dynamic_config_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\"tech.ydb.proto.draft.dynamicconfigZFgithub.com/ydb-platform/ydb-go-genproto/draft/protos/Ydb_DynamicConfig\370\001\001' + _CONFIGIDENTITY._serialized_start=88 + _CONFIGIDENTITY._serialized_end=138 + _SETCONFIGREQUEST._serialized_start=141 + _SETCONFIGREQUEST._serialized_end=281 + _SETCONFIGRESPONSE._serialized_start=283 + _SETCONFIGRESPONSE._serialized_end=348 + _REPLACECONFIGREQUEST._serialized_start=351 + _REPLACECONFIGREQUEST._serialized_end=495 + _REPLACECONFIGRESPONSE._serialized_start=497 + _REPLACECONFIGRESPONSE._serialized_end=566 + _DROPCONFIGREQUEST._serialized_start=569 + _DROPCONFIGREQUEST._serialized_end=700 + _DROPCONFIGRESPONSE._serialized_start=702 + _DROPCONFIGRESPONSE._serialized_end=768 + _ADDVOLATILECONFIGREQUEST._serialized_start=770 + _ADDVOLATILECONFIGREQUEST._serialized_end=871 + _ADDVOLATILECONFIGRESPONSE._serialized_start=873 + _ADDVOLATILECONFIGRESPONSE._serialized_end=946 + _VOLATILECONFIG._serialized_start=948 + _VOLATILECONFIG._serialized_end=992 + _GETCONFIGREQUEST._serialized_start=994 + _GETCONFIGREQUEST._serialized_end=1071 + _GETCONFIGRESPONSE._serialized_start=1073 + _GETCONFIGRESPONSE._serialized_end=1138 + _GETCONFIGRESULT._serialized_start=1141 + _GETCONFIGRESULT._serialized_end=1288 + _VOLATILECONFIGMETADATA._serialized_start=1290 + _VOLATILECONFIGMETADATA._serialized_end=1344 + _GETMETADATAREQUEST._serialized_start=1346 + _GETMETADATAREQUEST._serialized_end=1425 + _GETMETADATARESPONSE._serialized_start=1427 + _GETMETADATARESPONSE._serialized_end=1494 + _GETMETADATARESULT._serialized_start=1496 + _GETMETADATARESULT._serialized_end=1602 + _REMOVEVOLATILECONFIGREQUEST._serialized_start=1605 + _REMOVEVOLATILECONFIGREQUEST._serialized_end=1916 + _REMOVEVOLATILECONFIGREQUEST_IDSTODELETE._serialized_start=1857 + _REMOVEVOLATILECONFIGREQUEST_IDSTODELETE._serialized_end=1883 + _REMOVEVOLATILECONFIGRESPONSE._serialized_start=1918 + _REMOVEVOLATILECONFIGRESPONSE._serialized_end=1994 + _GETNODELABELSREQUEST._serialized_start=1996 + _GETNODELABELSREQUEST._serialized_end=2094 + _YAMLLABEL._serialized_start=2096 + _YAMLLABEL._serialized_end=2137 + _GETNODELABELSRESPONSE._serialized_start=2139 + _GETNODELABELSRESPONSE._serialized_end=2208 + _GETNODELABELSRESULT._serialized_start=2210 + _GETNODELABELSRESULT._serialized_end=2277 + _RESOLVECONFIGREQUEST._serialized_start=2280 + _RESOLVECONFIGREQUEST._serialized_end=2484 + _RESOLVECONFIGRESPONSE._serialized_start=2486 + _RESOLVECONFIGRESPONSE._serialized_end=2555 + _RESOLVECONFIGRESULT._serialized_start=2557 + _RESOLVECONFIGRESULT._serialized_end=2594 + _RESOLVEALLCONFIGREQUEST._serialized_start=2597 + _RESOLVEALLCONFIGREQUEST._serialized_end=2784 + _YAMLLABELEXT._serialized_start=2787 + _YAMLLABELEXT._serialized_end=2969 + _YAMLLABELEXT_LABELTYPE._serialized_start=2895 + _YAMLLABELEXT_LABELTYPE._serialized_end=2959 + _LABELSET._serialized_start=2971 + _LABELSET._serialized_end=3030 + _RESOLVEDCONFIG._serialized_start=3032 + _RESOLVEDCONFIG._serialized_end=3113 + _RESOLVEALLCONFIGRESPONSE._serialized_start=3115 + _RESOLVEALLCONFIGRESPONSE._serialized_end=3187 + _RESOLVEALLCONFIGRESULT._serialized_start=3189 + _RESOLVEALLCONFIGRESULT._serialized_end=3281 +# @@protoc_insertion_point(module_scope) diff --git a/ydb/_grpc/v5/draft/protos/ydb_dynamic_config_pb2.pyi b/ydb/_grpc/v5/draft/protos/ydb_dynamic_config_pb2.pyi new file mode 100644 index 00000000..0a66d6a6 --- /dev/null +++ b/ydb/_grpc/v5/draft/protos/ydb_dynamic_config_pb2.pyi @@ -0,0 +1,271 @@ +from protos import ydb_operation_pb2 as _ydb_operation_pb2 +from google.protobuf.internal import containers as _containers +from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union + +DESCRIPTOR: _descriptor.FileDescriptor + +class AddVolatileConfigRequest(_message.Message): + __slots__ = ["config", "operation_params"] + CONFIG_FIELD_NUMBER: _ClassVar[int] + OPERATION_PARAMS_FIELD_NUMBER: _ClassVar[int] + config: str + operation_params: _ydb_operation_pb2.OperationParams + def __init__(self, operation_params: _Optional[_Union[_ydb_operation_pb2.OperationParams, _Mapping]] = ..., config: _Optional[str] = ...) -> None: ... + +class AddVolatileConfigResponse(_message.Message): + __slots__ = ["operation"] + OPERATION_FIELD_NUMBER: _ClassVar[int] + operation: _ydb_operation_pb2.Operation + def __init__(self, operation: _Optional[_Union[_ydb_operation_pb2.Operation, _Mapping]] = ...) -> None: ... + +class ConfigIdentity(_message.Message): + __slots__ = ["cluster", "version"] + CLUSTER_FIELD_NUMBER: _ClassVar[int] + VERSION_FIELD_NUMBER: _ClassVar[int] + cluster: str + version: int + def __init__(self, version: _Optional[int] = ..., cluster: _Optional[str] = ...) -> None: ... + +class DropConfigRequest(_message.Message): + __slots__ = ["identity", "operation_params"] + IDENTITY_FIELD_NUMBER: _ClassVar[int] + OPERATION_PARAMS_FIELD_NUMBER: _ClassVar[int] + identity: ConfigIdentity + operation_params: _ydb_operation_pb2.OperationParams + def __init__(self, operation_params: _Optional[_Union[_ydb_operation_pb2.OperationParams, _Mapping]] = ..., identity: _Optional[_Union[ConfigIdentity, _Mapping]] = ...) -> None: ... + +class DropConfigResponse(_message.Message): + __slots__ = ["operation"] + OPERATION_FIELD_NUMBER: _ClassVar[int] + operation: _ydb_operation_pb2.Operation + def __init__(self, operation: _Optional[_Union[_ydb_operation_pb2.Operation, _Mapping]] = ...) -> None: ... + +class GetConfigRequest(_message.Message): + __slots__ = ["operation_params"] + OPERATION_PARAMS_FIELD_NUMBER: _ClassVar[int] + operation_params: _ydb_operation_pb2.OperationParams + def __init__(self, operation_params: _Optional[_Union[_ydb_operation_pb2.OperationParams, _Mapping]] = ...) -> None: ... + +class GetConfigResponse(_message.Message): + __slots__ = ["operation"] + OPERATION_FIELD_NUMBER: _ClassVar[int] + operation: _ydb_operation_pb2.Operation + def __init__(self, operation: _Optional[_Union[_ydb_operation_pb2.Operation, _Mapping]] = ...) -> None: ... + +class GetConfigResult(_message.Message): + __slots__ = ["config", "identity", "volatile_configs"] + CONFIG_FIELD_NUMBER: _ClassVar[int] + IDENTITY_FIELD_NUMBER: _ClassVar[int] + VOLATILE_CONFIGS_FIELD_NUMBER: _ClassVar[int] + config: str + identity: ConfigIdentity + volatile_configs: _containers.RepeatedCompositeFieldContainer[VolatileConfig] + def __init__(self, config: _Optional[str] = ..., volatile_configs: _Optional[_Iterable[_Union[VolatileConfig, _Mapping]]] = ..., identity: _Optional[_Union[ConfigIdentity, _Mapping]] = ...) -> None: ... + +class GetMetadataRequest(_message.Message): + __slots__ = ["operation_params"] + OPERATION_PARAMS_FIELD_NUMBER: _ClassVar[int] + operation_params: _ydb_operation_pb2.OperationParams + def __init__(self, operation_params: _Optional[_Union[_ydb_operation_pb2.OperationParams, _Mapping]] = ...) -> None: ... + +class GetMetadataResponse(_message.Message): + __slots__ = ["operation"] + OPERATION_FIELD_NUMBER: _ClassVar[int] + operation: _ydb_operation_pb2.Operation + def __init__(self, operation: _Optional[_Union[_ydb_operation_pb2.Operation, _Mapping]] = ...) -> None: ... + +class GetMetadataResult(_message.Message): + __slots__ = ["metadata", "volatile_configs"] + METADATA_FIELD_NUMBER: _ClassVar[int] + VOLATILE_CONFIGS_FIELD_NUMBER: _ClassVar[int] + metadata: str + volatile_configs: _containers.RepeatedCompositeFieldContainer[VolatileConfigMetadata] + def __init__(self, metadata: _Optional[str] = ..., volatile_configs: _Optional[_Iterable[_Union[VolatileConfigMetadata, _Mapping]]] = ...) -> None: ... + +class GetNodeLabelsRequest(_message.Message): + __slots__ = ["node_id", "operation_params"] + NODE_ID_FIELD_NUMBER: _ClassVar[int] + OPERATION_PARAMS_FIELD_NUMBER: _ClassVar[int] + node_id: int + operation_params: _ydb_operation_pb2.OperationParams + def __init__(self, operation_params: _Optional[_Union[_ydb_operation_pb2.OperationParams, _Mapping]] = ..., node_id: _Optional[int] = ...) -> None: ... + +class GetNodeLabelsResponse(_message.Message): + __slots__ = ["operation"] + OPERATION_FIELD_NUMBER: _ClassVar[int] + operation: _ydb_operation_pb2.Operation + def __init__(self, operation: _Optional[_Union[_ydb_operation_pb2.Operation, _Mapping]] = ...) -> None: ... + +class GetNodeLabelsResult(_message.Message): + __slots__ = ["labels"] + LABELS_FIELD_NUMBER: _ClassVar[int] + labels: _containers.RepeatedCompositeFieldContainer[YamlLabel] + def __init__(self, labels: _Optional[_Iterable[_Union[YamlLabel, _Mapping]]] = ...) -> None: ... + +class LabelSet(_message.Message): + __slots__ = ["labels"] + LABELS_FIELD_NUMBER: _ClassVar[int] + labels: _containers.RepeatedCompositeFieldContainer[YamlLabelExt] + def __init__(self, labels: _Optional[_Iterable[_Union[YamlLabelExt, _Mapping]]] = ...) -> None: ... + +class RemoveVolatileConfigRequest(_message.Message): + __slots__ = ["all", "force", "identity", "ids", "operation_params"] + class IdsToDelete(_message.Message): + __slots__ = ["ids"] + IDS_FIELD_NUMBER: _ClassVar[int] + ids: _containers.RepeatedScalarFieldContainer[int] + def __init__(self, ids: _Optional[_Iterable[int]] = ...) -> None: ... + ALL_FIELD_NUMBER: _ClassVar[int] + FORCE_FIELD_NUMBER: _ClassVar[int] + IDENTITY_FIELD_NUMBER: _ClassVar[int] + IDS_FIELD_NUMBER: _ClassVar[int] + OPERATION_PARAMS_FIELD_NUMBER: _ClassVar[int] + all: bool + force: bool + identity: ConfigIdentity + ids: RemoveVolatileConfigRequest.IdsToDelete + operation_params: _ydb_operation_pb2.OperationParams + def __init__(self, operation_params: _Optional[_Union[_ydb_operation_pb2.OperationParams, _Mapping]] = ..., identity: _Optional[_Union[ConfigIdentity, _Mapping]] = ..., force: bool = ..., ids: _Optional[_Union[RemoveVolatileConfigRequest.IdsToDelete, _Mapping]] = ..., all: bool = ...) -> None: ... + +class RemoveVolatileConfigResponse(_message.Message): + __slots__ = ["operation"] + OPERATION_FIELD_NUMBER: _ClassVar[int] + operation: _ydb_operation_pb2.Operation + def __init__(self, operation: _Optional[_Union[_ydb_operation_pb2.Operation, _Mapping]] = ...) -> None: ... + +class ReplaceConfigRequest(_message.Message): + __slots__ = ["allow_unknown_fields", "config", "dry_run", "operation_params"] + ALLOW_UNKNOWN_FIELDS_FIELD_NUMBER: _ClassVar[int] + CONFIG_FIELD_NUMBER: _ClassVar[int] + DRY_RUN_FIELD_NUMBER: _ClassVar[int] + OPERATION_PARAMS_FIELD_NUMBER: _ClassVar[int] + allow_unknown_fields: bool + config: str + dry_run: bool + operation_params: _ydb_operation_pb2.OperationParams + def __init__(self, operation_params: _Optional[_Union[_ydb_operation_pb2.OperationParams, _Mapping]] = ..., config: _Optional[str] = ..., dry_run: bool = ..., allow_unknown_fields: bool = ...) -> None: ... + +class ReplaceConfigResponse(_message.Message): + __slots__ = ["operation"] + OPERATION_FIELD_NUMBER: _ClassVar[int] + operation: _ydb_operation_pb2.Operation + def __init__(self, operation: _Optional[_Union[_ydb_operation_pb2.Operation, _Mapping]] = ...) -> None: ... + +class ResolveAllConfigRequest(_message.Message): + __slots__ = ["config", "operation_params", "verbose_response", "volatile_configs"] + CONFIG_FIELD_NUMBER: _ClassVar[int] + OPERATION_PARAMS_FIELD_NUMBER: _ClassVar[int] + VERBOSE_RESPONSE_FIELD_NUMBER: _ClassVar[int] + VOLATILE_CONFIGS_FIELD_NUMBER: _ClassVar[int] + config: str + operation_params: _ydb_operation_pb2.OperationParams + verbose_response: bool + volatile_configs: _containers.RepeatedCompositeFieldContainer[VolatileConfig] + def __init__(self, operation_params: _Optional[_Union[_ydb_operation_pb2.OperationParams, _Mapping]] = ..., config: _Optional[str] = ..., volatile_configs: _Optional[_Iterable[_Union[VolatileConfig, _Mapping]]] = ..., verbose_response: bool = ...) -> None: ... + +class ResolveAllConfigResponse(_message.Message): + __slots__ = ["operation"] + OPERATION_FIELD_NUMBER: _ClassVar[int] + operation: _ydb_operation_pb2.Operation + def __init__(self, operation: _Optional[_Union[_ydb_operation_pb2.Operation, _Mapping]] = ...) -> None: ... + +class ResolveAllConfigResult(_message.Message): + __slots__ = ["config", "configs"] + CONFIGS_FIELD_NUMBER: _ClassVar[int] + CONFIG_FIELD_NUMBER: _ClassVar[int] + config: str + configs: _containers.RepeatedCompositeFieldContainer[ResolvedConfig] + def __init__(self, config: _Optional[str] = ..., configs: _Optional[_Iterable[_Union[ResolvedConfig, _Mapping]]] = ...) -> None: ... + +class ResolveConfigRequest(_message.Message): + __slots__ = ["config", "labels", "operation_params", "volatile_configs"] + CONFIG_FIELD_NUMBER: _ClassVar[int] + LABELS_FIELD_NUMBER: _ClassVar[int] + OPERATION_PARAMS_FIELD_NUMBER: _ClassVar[int] + VOLATILE_CONFIGS_FIELD_NUMBER: _ClassVar[int] + config: str + labels: _containers.RepeatedCompositeFieldContainer[YamlLabel] + operation_params: _ydb_operation_pb2.OperationParams + volatile_configs: _containers.RepeatedCompositeFieldContainer[VolatileConfig] + def __init__(self, operation_params: _Optional[_Union[_ydb_operation_pb2.OperationParams, _Mapping]] = ..., config: _Optional[str] = ..., volatile_configs: _Optional[_Iterable[_Union[VolatileConfig, _Mapping]]] = ..., labels: _Optional[_Iterable[_Union[YamlLabel, _Mapping]]] = ...) -> None: ... + +class ResolveConfigResponse(_message.Message): + __slots__ = ["operation"] + OPERATION_FIELD_NUMBER: _ClassVar[int] + operation: _ydb_operation_pb2.Operation + def __init__(self, operation: _Optional[_Union[_ydb_operation_pb2.Operation, _Mapping]] = ...) -> None: ... + +class ResolveConfigResult(_message.Message): + __slots__ = ["config"] + CONFIG_FIELD_NUMBER: _ClassVar[int] + config: str + def __init__(self, config: _Optional[str] = ...) -> None: ... + +class ResolvedConfig(_message.Message): + __slots__ = ["config", "label_sets"] + CONFIG_FIELD_NUMBER: _ClassVar[int] + LABEL_SETS_FIELD_NUMBER: _ClassVar[int] + config: str + label_sets: _containers.RepeatedCompositeFieldContainer[LabelSet] + def __init__(self, label_sets: _Optional[_Iterable[_Union[LabelSet, _Mapping]]] = ..., config: _Optional[str] = ...) -> None: ... + +class SetConfigRequest(_message.Message): + __slots__ = ["allow_unknown_fields", "config", "dry_run", "operation_params"] + ALLOW_UNKNOWN_FIELDS_FIELD_NUMBER: _ClassVar[int] + CONFIG_FIELD_NUMBER: _ClassVar[int] + DRY_RUN_FIELD_NUMBER: _ClassVar[int] + OPERATION_PARAMS_FIELD_NUMBER: _ClassVar[int] + allow_unknown_fields: bool + config: str + dry_run: bool + operation_params: _ydb_operation_pb2.OperationParams + def __init__(self, operation_params: _Optional[_Union[_ydb_operation_pb2.OperationParams, _Mapping]] = ..., config: _Optional[str] = ..., dry_run: bool = ..., allow_unknown_fields: bool = ...) -> None: ... + +class SetConfigResponse(_message.Message): + __slots__ = ["operation"] + OPERATION_FIELD_NUMBER: _ClassVar[int] + operation: _ydb_operation_pb2.Operation + def __init__(self, operation: _Optional[_Union[_ydb_operation_pb2.Operation, _Mapping]] = ...) -> None: ... + +class VolatileConfig(_message.Message): + __slots__ = ["config", "id"] + CONFIG_FIELD_NUMBER: _ClassVar[int] + ID_FIELD_NUMBER: _ClassVar[int] + config: str + id: int + def __init__(self, id: _Optional[int] = ..., config: _Optional[str] = ...) -> None: ... + +class VolatileConfigMetadata(_message.Message): + __slots__ = ["id", "metadata"] + ID_FIELD_NUMBER: _ClassVar[int] + METADATA_FIELD_NUMBER: _ClassVar[int] + id: int + metadata: str + def __init__(self, id: _Optional[int] = ..., metadata: _Optional[str] = ...) -> None: ... + +class YamlLabel(_message.Message): + __slots__ = ["label", "value"] + LABEL_FIELD_NUMBER: _ClassVar[int] + VALUE_FIELD_NUMBER: _ClassVar[int] + label: str + value: str + def __init__(self, label: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ... + +class YamlLabelExt(_message.Message): + __slots__ = ["label", "type", "value"] + class LabelType(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + COMMON: YamlLabelExt.LabelType + EMPTY: YamlLabelExt.LabelType + LABEL_FIELD_NUMBER: _ClassVar[int] + NOT_SET: YamlLabelExt.LabelType + TYPE_FIELD_NUMBER: _ClassVar[int] + UNSPECIFIED: YamlLabelExt.LabelType + VALUE_FIELD_NUMBER: _ClassVar[int] + label: str + type: YamlLabelExt.LabelType + value: str + def __init__(self, label: _Optional[str] = ..., type: _Optional[_Union[YamlLabelExt.LabelType, str]] = ..., value: _Optional[str] = ...) -> None: ... diff --git a/ydb/_grpc/v5/draft/protos/ydb_dynamic_config_pb2_grpc.py b/ydb/_grpc/v5/draft/protos/ydb_dynamic_config_pb2_grpc.py new file mode 100644 index 00000000..2daafffe --- /dev/null +++ b/ydb/_grpc/v5/draft/protos/ydb_dynamic_config_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/ydb/_grpc/v5/draft/protos/ydb_federated_query_pb2.py b/ydb/_grpc/v5/draft/protos/ydb_federated_query_pb2.py new file mode 100644 index 00000000..bd97faea --- /dev/null +++ b/ydb/_grpc/v5/draft/protos/ydb_federated_query_pb2.py @@ -0,0 +1,499 @@ +# -*- coding: utf-8 -*- +# flake8: noqa +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: draft/protos/ydb_federated_query.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from ydb._grpc.v5.protos.annotations import sensitive_pb2 as protos_dot_annotations_dot_sensitive__pb2 +from ydb._grpc.v5.protos.annotations import validation_pb2 as protos_dot_annotations_dot_validation__pb2 +from ydb._grpc.v5.protos import ydb_operation_pb2 as protos_dot_ydb__operation__pb2 +from ydb._grpc.v5.protos import ydb_value_pb2 as protos_dot_ydb__value__pb2 +from ydb._grpc.v5.protos import ydb_issue_message_pb2 as protos_dot_ydb__issue__message__pb2 +from google.protobuf import duration_pb2 as google_dot_protobuf_dot_duration__pb2 +from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 +from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n&draft/protos/ydb_federated_query.proto\x12\x0e\x46\x65\x64\x65ratedQuery\x1a\"protos/annotations/sensitive.proto\x1a#protos/annotations/validation.proto\x1a\x1aprotos/ydb_operation.proto\x1a\x16protos/ydb_value.proto\x1a\x1eprotos/ydb_issue_message.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1bgoogle/protobuf/empty.proto\"{\n\x03\x41\x63l\x12\x32\n\nvisibility\x18\x01 \x01(\x0e\x32\x1e.FederatedQuery.Acl.Visibility\"@\n\nVisibility\x12\x1a\n\x16VISIBILITY_UNSPECIFIED\x10\x00\x12\x0b\n\x07PRIVATE\x10\x01\x12\t\n\x05SCOPE\x10\x02\"\x83\x03\n\x06Limits\x12!\n\x0fvcpu_rate_limit\x18\x01 \x01(\x03\x42\x08\xb2\xe6*\x04>= 0\x12!\n\x0f\x66low_rate_limit\x18\x02 \x01(\x03\x42\x08\xb2\xe6*\x04>= 0\x12!\n\x0fvcpu_time_limit\x18\x03 \x01(\x03\x42\x08\xb2\xe6*\x04>= 0\x12!\n\x0fmax_result_size\x18\x04 \x01(\x03\x42\x08\xb2\xe6*\x04>= 0\x12!\n\x0fmax_result_rows\x18\x05 \x01(\x03\x42\x08\xb2\xe6*\x04>= 0\x12\x1e\n\x0cmemory_limit\x18\x06 \x01(\x03\x42\x08\xb2\xe6*\x04>= 0\x12-\n\nresult_ttl\x18\x07 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x36\n\x11\x65xecution_timeout\x18\x08 \x01(\x0b\x32\x19.google.protobuf.DurationH\x00\x12\x38\n\x12\x65xecution_deadline\x18\t \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x00\x42\t\n\x07timeout\"\xef\x03\n\x14StreamingDisposition\x12(\n\x06oldest\x18\x01 \x01(\x0b\x32\x16.google.protobuf.EmptyH\x00\x12\'\n\x05\x66resh\x18\x02 \x01(\x0b\x32\x16.google.protobuf.EmptyH\x00\x12\x42\n\tfrom_time\x18\x03 \x01(\x0b\x32-.FederatedQuery.StreamingDisposition.FromTimeH\x00\x12@\n\x08time_ago\x18\x04 \x01(\x0b\x32,.FederatedQuery.StreamingDisposition.TimeAgoH\x00\x12W\n\x14\x66rom_last_checkpoint\x18\x05 \x01(\x0b\x32\x37.FederatedQuery.StreamingDisposition.FromLastCheckpointH\x00\x1a\x39\n\x08\x46romTime\x12-\n\ttimestamp\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x1a\x36\n\x07TimeAgo\x12+\n\x08\x64uration\x18\x01 \x01(\x0b\x32\x19.google.protobuf.Duration\x1a#\n\x12\x46romLastCheckpoint\x12\r\n\x05\x66orce\x18\x01 \x01(\x08\x42\r\n\x0b\x64isposition\"\xd4\x04\n\x0cQueryContent\x12\x34\n\x04type\x18\x01 \x01(\x0e\x32&.FederatedQuery.QueryContent.QueryType\x12\x15\n\x04name\x18\x02 \x01(\tB\x07\xa2\xe6*\x03\x18\x80\x08\x12 \n\x03\x61\x63l\x18\x03 \x01(\x0b\x32\x13.FederatedQuery.Acl\x12&\n\x06limits\x18\x04 \x01(\x0b\x32\x16.FederatedQuery.Limits\x12\x1a\n\x04text\x18\x05 \x01(\tB\x0c\xa2\xe6*\x08\n\x06\x08\x01\x10\x80\xa0\x06\x12\x11\n\tautomatic\x18\x06 \x01(\x08\x12\x1c\n\x0b\x64\x65scription\x18\x07 \x01(\tB\x07\xa2\xe6*\x03\x18\x80P\x12\x64\n\x12\x65xecution_settings\x18\n \x03(\x0b\x32\x33.FederatedQuery.QueryContent.ExecutionSettingsEntryB\x13\xaa\xe6*\x08\n\x06\n\x04\x08\x01\x10\x64\xa2\xe6*\x03\x18\x80 \x12\x38\n\x06syntax\x18\x0b \x01(\x0e\x32(.FederatedQuery.QueryContent.QuerySyntax\x1a\x38\n\x16\x45xecutionSettingsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"E\n\tQueryType\x12\x1a\n\x16QUERY_TYPE_UNSPECIFIED\x10\x00\x12\r\n\tANALYTICS\x10\x01\x12\r\n\tSTREAMING\x10\x02\"?\n\x0bQuerySyntax\x12\x1c\n\x18QUERY_SYNTAX_UNSPECIFIED\x10\x00\x12\n\n\x06YQL_V1\x10\x01\x12\x06\n\x02PG\x10\x02\"\xe5\x01\n\nCommonMeta\x12\x17\n\x02id\x18\x01 \x01(\tB\x0b\xa2\xe6*\x07\n\x05\x08\x01\x10\x80\x08\x12\x1f\n\ncreated_by\x18\x02 \x01(\tB\x0b\xa2\xe6*\x07\n\x05\x08\x01\x10\x80\x08\x12 \n\x0bmodified_by\x18\x03 \x01(\tB\x0b\xa2\xe6*\x07\n\x05\x08\x01\x10\x80\x08\x12.\n\ncreated_at\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0bmodified_at\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x1a\n\x08revision\x18\x06 \x01(\x03\x42\x08\xb2\xe6*\x04>= 0\"\xbf\x06\n\tQueryMeta\x12*\n\x06\x63ommon\x18\x01 \x01(\x0b\x32\x1a.FederatedQuery.CommonMeta\x12\x30\n\x0csubmitted_at\x18\x0e \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12.\n\nstarted_at\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x66inished_at\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x31\n\x0c\x65xecute_mode\x18\x04 \x01(\x0e\x32\x1b.FederatedQuery.ExecuteMode\x12\x37\n\x06status\x18\x05 \x01(\x0e\x32\'.FederatedQuery.QueryMeta.ComputeStatus\x12\x1f\n\x17last_job_query_revision\x18\x06 \x01(\x03\x12\x13\n\x0blast_job_id\x18\x07 \x01(\t\x12-\n\texpire_at\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x34\n\x10result_expire_at\x18\t \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x12\n\nstarted_by\x18\n \x01(\t\x12\x14\n\naborted_by\x18\x0b \x01(\tH\x00\x12\x13\n\tpaused_by\x18\x0c \x01(\tH\x00\x12\x1d\n\x15has_saved_checkpoints\x18\r \x01(\x08\"\x83\x02\n\rComputeStatus\x12\x1e\n\x1a\x43OMPUTE_STATUS_UNSPECIFIED\x10\x00\x12\x0c\n\x08STARTING\x10\x01\x12\x13\n\x0f\x41\x42ORTED_BY_USER\x10\x02\x12\x15\n\x11\x41\x42ORTED_BY_SYSTEM\x10\x03\x12\x14\n\x10\x41\x42ORTING_BY_USER\x10\x04\x12\x16\n\x12\x41\x42ORTING_BY_SYSTEM\x10\x05\x12\x0c\n\x08RESUMING\x10\x06\x12\x0b\n\x07RUNNING\x10\x07\x12\r\n\tCOMPLETED\x10\x08\x12\x0e\n\nCOMPLETING\x10\x0c\x12\n\n\x06\x46\x41ILED\x10\t\x12\x0b\n\x07\x46\x41ILING\x10\r\x12\n\n\x06PAUSED\x10\x0b\x12\x0b\n\x07PAUSING\x10\nB\x08\n\x06\x61\x63tion\"\xc9\x01\n\nBriefQuery\x12\x34\n\x04type\x18\x01 \x01(\x0e\x32&.FederatedQuery.QueryContent.QueryType\x12\x15\n\x04name\x18\x02 \x01(\tB\x07\xa2\xe6*\x03\x18\x80\x08\x12\'\n\x04meta\x18\x03 \x01(\x0b\x32\x19.FederatedQuery.QueryMeta\x12\x32\n\nvisibility\x18\x04 \x01(\x0e\x32\x1e.FederatedQuery.Acl.Visibility\x12\x11\n\tautomatic\x18\x05 \x01(\x08\"\x19\n\tQueryPlan\x12\x0c\n\x04json\x18\x01 \x01(\t\"\x18\n\x08QueryAst\x12\x0c\n\x04\x64\x61ta\x18\x01 \x01(\t\"]\n\rResultSetMeta\x12\x1b\n\x06\x63olumn\x18\x01 \x03(\x0b\x32\x0b.Ydb.Column\x12\x1c\n\nrows_count\x18\x02 \x01(\x03\x42\x08\xb2\xe6*\x04>= 0\x12\x11\n\ttruncated\x18\x03 \x01(\x08\"\xf6\x02\n\x05Query\x12\'\n\x04meta\x18\x01 \x01(\x0b\x32\x19.FederatedQuery.QueryMeta\x12-\n\x07\x63ontent\x18\x02 \x01(\x0b\x32\x1c.FederatedQuery.QueryContent\x12\'\n\x04plan\x18\x03 \x01(\x0b\x32\x19.FederatedQuery.QueryPlan\x12&\n\x05issue\x18\x04 \x03(\x0b\x32\x17.Ydb.Issue.IssueMessage\x12\x30\n\x0ftransient_issue\x18\x05 \x03(\x0b\x32\x17.Ydb.Issue.IssueMessage\x12\x33\n\nstatistics\x18\x06 \x01(\x0b\x32\x1f.FederatedQuery.QueryStatistics\x12\x36\n\x0fresult_set_meta\x18\x07 \x03(\x0b\x32\x1d.FederatedQuery.ResultSetMeta\x12%\n\x03\x61st\x18\x08 \x01(\x0b\x32\x18.FederatedQuery.QueryAst\"\x1f\n\x0fQueryStatistics\x12\x0c\n\x04json\x18\x01 \x01(\t\"\x8e\x02\n\x12\x43reateQueryRequest\x12\x39\n\x10operation_params\x18\x01 \x01(\x0b\x32\x1f.Ydb.Operations.OperationParams\x12-\n\x07\x63ontent\x18\x02 \x01(\x0b\x32\x1c.FederatedQuery.QueryContent\x12\x31\n\x0c\x65xecute_mode\x18\x03 \x01(\x0e\x32\x1b.FederatedQuery.ExecuteMode\x12\x39\n\x0b\x64isposition\x18\x04 \x01(\x0b\x32$.FederatedQuery.StreamingDisposition\x12 \n\x0fidempotency_key\x18\x05 \x01(\tB\x07\xa2\xe6*\x03\x18\x80\x08\"C\n\x13\x43reateQueryResponse\x12,\n\toperation\x18\x01 \x01(\x0b\x32\x19.Ydb.Operations.Operation\".\n\x11\x43reateQueryResult\x12\x19\n\x08query_id\x18\x01 \x01(\tB\x07\xa2\xe6*\x03\x18\x80\x08\"\x93\x04\n\x12ListQueriesRequest\x12\x39\n\x10operation_params\x18\x01 \x01(\x0b\x32\x1f.Ydb.Operations.OperationParams\x12\x1b\n\npage_token\x18\x02 \x01(\tB\x07\xa2\xe6*\x03\x18\x80\x08\x12\x1b\n\x05limit\x18\x03 \x01(\x05\x42\x0c\xb2\xe6*\x08[1; 100]\x12\x39\n\x06\x66ilter\x18\x04 \x01(\x0b\x32).FederatedQuery.ListQueriesRequest.Filter\x1a\xcc\x02\n\x06\x46ilter\x12:\n\nquery_type\x18\x01 \x01(\x0e\x32&.FederatedQuery.QueryContent.QueryType\x12?\n\x06status\x18\x02 \x03(\x0e\x32\'.FederatedQuery.QueryMeta.ComputeStatusB\x06\x9a\xe6*\x02\x18\x14\x12\x31\n\x04mode\x18\x03 \x03(\x0e\x32\x1b.FederatedQuery.ExecuteModeB\x06\x9a\xe6*\x02\x18\x14\x12\x15\n\x04name\x18\x04 \x01(\tB\x07\xa2\xe6*\x03\x18\x80\x08\x12\x15\n\rcreated_by_me\x18\x05 \x01(\x08\x12\x32\n\nvisibility\x18\x06 \x01(\x0e\x32\x1e.FederatedQuery.Acl.Visibility\x12\x30\n\tautomatic\x18\x07 \x01(\x0e\x32\x1d.FederatedQuery.AutomaticType\"C\n\x13ListQueriesResponse\x12,\n\toperation\x18\x01 \x01(\x0b\x32\x19.Ydb.Operations.Operation\"`\n\x11ListQueriesResult\x12)\n\x05query\x18\x01 \x03(\x0b\x32\x1a.FederatedQuery.BriefQuery\x12 \n\x0fnext_page_token\x18\x02 \x01(\tB\x07\xa2\xe6*\x03\x18\x80\x08\"p\n\x14\x44\x65scribeQueryRequest\x12\x39\n\x10operation_params\x18\x01 \x01(\x0b\x32\x1f.Ydb.Operations.OperationParams\x12\x1d\n\x08query_id\x18\x02 \x01(\tB\x0b\xa2\xe6*\x07\n\x05\x08\x01\x10\x80\x08\"E\n\x15\x44\x65scribeQueryResponse\x12,\n\toperation\x18\x01 \x01(\x0b\x32\x19.Ydb.Operations.Operation\";\n\x13\x44\x65scribeQueryResult\x12$\n\x05query\x18\x01 \x01(\x0b\x32\x15.FederatedQuery.Query\"q\n\x15GetQueryStatusRequest\x12\x39\n\x10operation_params\x18\x01 \x01(\x0b\x32\x1f.Ydb.Operations.OperationParams\x12\x1d\n\x08query_id\x18\x02 \x01(\tB\x0b\xa2\xe6*\x07\n\x05\x08\x01\x10\x80\x08\"F\n\x16GetQueryStatusResponse\x12,\n\toperation\x18\x01 \x01(\x0b\x32\x19.Ydb.Operations.Operation\"f\n\x14GetQueryStatusResult\x12\x37\n\x06status\x18\x01 \x01(\x0e\x32\'.FederatedQuery.QueryMeta.ComputeStatus\x12\x15\n\rmeta_revision\x18\x02 \x01(\x03\"\xb5\x01\n\x12\x44\x65leteQueryRequest\x12\x39\n\x10operation_params\x18\x01 \x01(\x0b\x32\x1f.Ydb.Operations.OperationParams\x12\x1d\n\x08query_id\x18\x02 \x01(\tB\x0b\xa2\xe6*\x07\n\x05\x08\x01\x10\x80\x08\x12#\n\x11previous_revision\x18\x03 \x01(\x03\x42\x08\xb2\xe6*\x04>= 0\x12 \n\x0fidempotency_key\x18\x04 \x01(\tB\x07\xa2\xe6*\x03\x18\x80\x08\"C\n\x13\x44\x65leteQueryResponse\x12,\n\toperation\x18\x01 \x01(\x0b\x32\x19.Ydb.Operations.Operation\"\x13\n\x11\x44\x65leteQueryResult\"\x8a\x03\n\x12ModifyQueryRequest\x12\x39\n\x10operation_params\x18\x01 \x01(\x0b\x32\x1f.Ydb.Operations.OperationParams\x12\x1d\n\x08query_id\x18\x02 \x01(\tB\x0b\xa2\xe6*\x07\n\x05\x08\x01\x10\x80\x08\x12-\n\x07\x63ontent\x18\x03 \x01(\x0b\x32\x1c.FederatedQuery.QueryContent\x12\x31\n\x0c\x65xecute_mode\x18\x04 \x01(\x0e\x32\x1b.FederatedQuery.ExecuteMode\x12\x39\n\x0b\x64isposition\x18\x05 \x01(\x0b\x32$.FederatedQuery.StreamingDisposition\x12\x36\n\x0fstate_load_mode\x18\x06 \x01(\x0e\x32\x1d.FederatedQuery.StateLoadMode\x12#\n\x11previous_revision\x18\x07 \x01(\x03\x42\x08\xb2\xe6*\x04>= 0\x12 \n\x0fidempotency_key\x18\x08 \x01(\tB\x07\xa2\xe6*\x03\x18\x80\x08\"C\n\x13ModifyQueryResponse\x12,\n\toperation\x18\x01 \x01(\x0b\x32\x19.Ydb.Operations.Operation\"\x13\n\x11ModifyQueryResult\"\xe3\x01\n\x13\x43ontrolQueryRequest\x12\x39\n\x10operation_params\x18\x01 \x01(\x0b\x32\x1f.Ydb.Operations.OperationParams\x12\x1d\n\x08query_id\x18\x02 \x01(\tB\x0b\xa2\xe6*\x07\n\x05\x08\x01\x10\x80\x08\x12+\n\x06\x61\x63tion\x18\x03 \x01(\x0e\x32\x1b.FederatedQuery.QueryAction\x12#\n\x11previous_revision\x18\x04 \x01(\x03\x42\x08\xb2\xe6*\x04>= 0\x12 \n\x0fidempotency_key\x18\x05 \x01(\tB\x07\xa2\xe6*\x03\x18\x80\x08\"D\n\x14\x43ontrolQueryResponse\x12,\n\toperation\x18\x01 \x01(\x0b\x32\x19.Ydb.Operations.Operation\"\x14\n\x12\x43ontrolQueryResult\"\xed\x01\n\x08\x42riefJob\x12(\n\x04meta\x18\x01 \x01(\x0b\x32\x1a.FederatedQuery.CommonMeta\x12-\n\nquery_meta\x18\x03 \x01(\x0b\x32\x19.FederatedQuery.QueryMeta\x12\x12\n\nquery_name\x18\t \x01(\t\x12\x32\n\nvisibility\x18\n \x01(\x0e\x32\x1e.FederatedQuery.Acl.Visibility\x12\x11\n\tautomatic\x18\x0b \x01(\x08\x12-\n\texpire_at\x18\x0c \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\x83\x04\n\x03Job\x12(\n\x04meta\x18\x01 \x01(\x0b\x32\x1a.FederatedQuery.CommonMeta\x12\x0c\n\x04text\x18\x02 \x01(\t\x12-\n\nquery_meta\x18\x03 \x01(\x0b\x32\x19.FederatedQuery.QueryMeta\x12\'\n\x04plan\x18\x04 \x01(\x0b\x32\x19.FederatedQuery.QueryPlan\x12&\n\x05issue\x18\x05 \x03(\x0b\x32\x17.Ydb.Issue.IssueMessage\x12\x33\n\nstatistics\x18\x06 \x01(\x0b\x32\x1f.FederatedQuery.QueryStatistics\x12\x36\n\x0fresult_set_meta\x18\x07 \x03(\x0b\x32\x1d.FederatedQuery.ResultSetMeta\x12%\n\x03\x61st\x18\x08 \x01(\x0b\x32\x18.FederatedQuery.QueryAst\x12\x12\n\nquery_name\x18\t \x01(\t\x12 \n\x03\x61\x63l\x18\n \x01(\x0b\x32\x13.FederatedQuery.Acl\x12\x11\n\tautomatic\x18\x0b \x01(\x08\x12-\n\texpire_at\x18\x0c \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x38\n\x06syntax\x18\r \x01(\x0e\x32(.FederatedQuery.QueryContent.QuerySyntax\"\x8c\x02\n\x0fListJobsRequest\x12\x39\n\x10operation_params\x18\x01 \x01(\x0b\x32\x1f.Ydb.Operations.OperationParams\x12\x1b\n\npage_token\x18\x02 \x01(\tB\x07\xa2\xe6*\x03\x18\x80\x08\x12\x1b\n\x05limit\x18\x03 \x01(\x05\x42\x0c\xb2\xe6*\x08[1; 100]\x12\x10\n\x08query_id\x18\x05 \x01(\t\x12\x36\n\x06\x66ilter\x18\x04 \x01(\x0b\x32&.FederatedQuery.ListJobsRequest.Filter\x1a:\n\x06\x46ilter\x12\x19\n\x08query_id\x18\x01 \x01(\tB\x07\xa2\xe6*\x03\x18\x80\x08\x12\x15\n\rcreated_by_me\x18\x02 \x01(\x08\"@\n\x10ListJobsResponse\x12,\n\toperation\x18\x01 \x01(\x0b\x32\x19.Ydb.Operations.Operation\"Y\n\x0eListJobsResult\x12%\n\x03job\x18\x01 \x03(\x0b\x32\x18.FederatedQuery.BriefJob\x12 \n\x0fnext_page_token\x18\x02 \x01(\tB\x07\xa2\xe6*\x03\x18\x80\x08\"l\n\x12\x44\x65scribeJobRequest\x12\x39\n\x10operation_params\x18\x01 \x01(\x0b\x32\x1f.Ydb.Operations.OperationParams\x12\x1b\n\x06job_id\x18\x02 \x01(\tB\x0b\xa2\xe6*\x07\n\x05\x08\x01\x10\x80\x08\"C\n\x13\x44\x65scribeJobResponse\x12,\n\toperation\x18\x01 \x01(\x0b\x32\x19.Ydb.Operations.Operation\"5\n\x11\x44\x65scribeJobResult\x12 \n\x03job\x18\x01 \x01(\x0b\x32\x13.FederatedQuery.Job\"\x15\n\x13\x43urrentIAMTokenAuth\"\n\n\x08NoneAuth\")\n\x12ServiceAccountAuth\x12\x13\n\x02id\x18\x01 \x01(\tB\x07\xa2\xe6*\x03\x18\x80\x08\"\xba\x01\n\x07IamAuth\x12:\n\x0b\x63urrent_iam\x18\x01 \x01(\x0b\x32#.FederatedQuery.CurrentIAMTokenAuthH\x00\x12=\n\x0fservice_account\x18\x02 \x01(\x0b\x32\".FederatedQuery.ServiceAccountAuthH\x00\x12(\n\x04none\x18\x03 \x01(\x0b\x32\x18.FederatedQuery.NoneAuthH\x00\x42\n\n\x08identity\"\x98\x01\n\x0b\x44\x61taStreams\x12\x1c\n\x0b\x64\x61tabase_id\x18\x01 \x01(\tB\x07\xa2\xe6*\x03\x18\x80\x08\x12%\n\x04\x61uth\x18\x02 \x01(\x0b\x32\x17.FederatedQuery.IamAuth\x12\x19\n\x08\x65ndpoint\x18\x03 \x01(\tB\x07\xa2\xe6*\x03\x18\x80\x08\x12\x19\n\x08\x64\x61tabase\x18\x04 \x01(\tB\x07\xa2\xe6*\x03\x18\x80\x08\x12\x0e\n\x06secure\x18\x05 \x01(\x08\"g\n\nMonitoring\x12\x18\n\x07project\x18\x01 \x01(\tB\x07\xa2\xe6*\x03\x18\xc8\x01\x12\x18\n\x07\x63luster\x18\x02 \x01(\tB\x07\xa2\xe6*\x03\x18\xc8\x01\x12%\n\x04\x61uth\x18\x03 \x01(\x0b\x32\x17.FederatedQuery.IamAuth\"\x98\x01\n\x0bYdbDatabase\x12\x1c\n\x0b\x64\x61tabase_id\x18\x01 \x01(\tB\x07\xa2\xe6*\x03\x18\x80\x08\x12%\n\x04\x61uth\x18\x02 \x01(\x0b\x32\x17.FederatedQuery.IamAuth\x12\x19\n\x08\x65ndpoint\x18\x03 \x01(\tB\x07\xa2\xe6*\x03\x18\x80\x08\x12\x19\n\x08\x64\x61tabase\x18\x04 \x01(\tB\x07\xa2\xe6*\x03\x18\x80\x08\x12\x0e\n\x06secure\x18\x05 \x01(\x08\"\xf8\x01\n\x11\x43lickHouseCluster\x12\x1c\n\x0b\x64\x61tabase_id\x18\x01 \x01(\tB\x07\xa2\xe6*\x03\x18\x80\x08\x12\x1e\n\rdatabase_name\x18\x08 \x01(\tB\x07\xa2\xe6*\x03\x18\x80\x08\x12\x1a\n\x05login\x18\x02 \x01(\tB\x0b\xa2\xe6*\x03\x18\x80\x08\xb8\xe6*\x01\x12\x1d\n\x08password\x18\x03 \x01(\tB\x0b\xa2\xe6*\x03\x18\x80\x08\xb8\xe6*\x01\x12%\n\x04\x61uth\x18\x04 \x01(\x0b\x32\x17.FederatedQuery.IamAuth\x12\x15\n\x04host\x18\x05 \x01(\tB\x07\xa2\xe6*\x03\x18\x80\x08\x12\x1c\n\x04port\x18\x06 \x01(\x05\x42\x0e\xb2\xe6*\n[0; 65536]\x12\x0e\n\x06secure\x18\x07 \x01(\x08\"Y\n\x17ObjectStorageConnection\x12\x17\n\x06\x62ucket\x18\x01 \x01(\tB\x07\xa2\xe6*\x03\x18\x80\x08\x12%\n\x04\x61uth\x18\x02 \x01(\x0b\x32\x17.FederatedQuery.IamAuth\"\x91\x02\n\x11PostgreSQLCluster\x12\x1c\n\x0b\x64\x61tabase_id\x18\x01 \x01(\tB\x07\xa2\xe6*\x03\x18\x80\x08\x12\x1e\n\rdatabase_name\x18\x08 \x01(\tB\x07\xa2\xe6*\x03\x18\x80\x08\x12\x1a\n\x05login\x18\x02 \x01(\tB\x0b\xa2\xe6*\x03\x18\x80\x08\xb8\xe6*\x01\x12\x1d\n\x08password\x18\x03 \x01(\tB\x0b\xa2\xe6*\x03\x18\x80\x08\xb8\xe6*\x01\x12\x17\n\x06schema\x18\t \x01(\tB\x07\xa2\xe6*\x03\x18\x80\x08\x12%\n\x04\x61uth\x18\x04 \x01(\x0b\x32\x17.FederatedQuery.IamAuth\x12\x15\n\x04host\x18\x05 \x01(\tB\x07\xa2\xe6*\x03\x18\x80\x08\x12\x1c\n\x04port\x18\x06 \x01(\x05\x42\x0e\xb2\xe6*\n[0; 65536]\x12\x0e\n\x06secure\x18\x07 \x01(\x08\"\xae\x04\n\x11\x43onnectionSetting\x12\x33\n\x0cydb_database\x18\x01 \x01(\x0b\x32\x1b.FederatedQuery.YdbDatabaseH\x00\x12?\n\x12\x63lickhouse_cluster\x18\x02 \x01(\x0b\x32!.FederatedQuery.ClickHouseClusterH\x00\x12\x33\n\x0c\x64\x61ta_streams\x18\x03 \x01(\x0b\x32\x1b.FederatedQuery.DataStreamsH\x00\x12\x41\n\x0eobject_storage\x18\x04 \x01(\x0b\x32\'.FederatedQuery.ObjectStorageConnectionH\x00\x12\x30\n\nmonitoring\x18\x05 \x01(\x0b\x32\x1a.FederatedQuery.MonitoringH\x00\x12?\n\x12postgresql_cluster\x18\x06 \x01(\x0b\x32!.FederatedQuery.PostgreSQLClusterH\x00\"\xa9\x01\n\x0e\x43onnectionType\x12\x1f\n\x1b\x43ONNECTION_TYPE_UNSPECIFIED\x10\x00\x12\x10\n\x0cYDB_DATABASE\x10\x01\x12\x16\n\x12\x43LICKHOUSE_CLUSTER\x10\x02\x12\x10\n\x0c\x44\x41TA_STREAMS\x10\x03\x12\x12\n\x0eOBJECT_STORAGE\x10\x04\x12\x0e\n\nMONITORING\x10\x05\x12\x16\n\x12POSTGRESQL_CLUSTER\x10\x06\x42\x0c\n\nconnection\"\xa2\x01\n\x11\x43onnectionContent\x12\x19\n\x04name\x18\x01 \x01(\tB\x0b\xa2\xe6*\x07\n\x05\x08\x01\x10\x80\x08\x12\x32\n\x07setting\x18\x02 \x01(\x0b\x32!.FederatedQuery.ConnectionSetting\x12 \n\x03\x61\x63l\x18\x03 \x01(\x0b\x32\x13.FederatedQuery.Acl\x12\x1c\n\x0b\x64\x65scription\x18\x04 \x01(\tB\x07\xa2\xe6*\x03\x18\x80P\"j\n\nConnection\x12\x32\n\x07\x63ontent\x18\x01 \x01(\x0b\x32!.FederatedQuery.ConnectionContent\x12(\n\x04meta\x18\x02 \x01(\x0b\x32\x1a.FederatedQuery.CommonMeta\"\xaa\x01\n\x17\x43reateConnectionRequest\x12\x39\n\x10operation_params\x18\x01 \x01(\x0b\x32\x1f.Ydb.Operations.OperationParams\x12\x32\n\x07\x63ontent\x18\x02 \x01(\x0b\x32!.FederatedQuery.ConnectionContent\x12 \n\x0fidempotency_key\x18\x03 \x01(\tB\x07\xa2\xe6*\x03\x18\x80\x08\"H\n\x18\x43reateConnectionResponse\x12,\n\toperation\x18\x01 \x01(\x0b\x32\x19.Ydb.Operations.Operation\"<\n\x16\x43reateConnectionResult\x12\"\n\rconnection_id\x18\x01 \x01(\tB\x0b\xa2\xe6*\x07\n\x05\x08\x01\x10\x80\x08\"\x84\x03\n\x16ListConnectionsRequest\x12\x39\n\x10operation_params\x18\x01 \x01(\x0b\x32\x1f.Ydb.Operations.OperationParams\x12\x1b\n\npage_token\x18\x02 \x01(\tB\x07\xa2\xe6*\x03\x18\x80\x08\x12\x1b\n\x05limit\x18\x03 \x01(\x05\x42\x0c\xb2\xe6*\x08[1; 100]\x12=\n\x06\x66ilter\x18\x04 \x01(\x0b\x32-.FederatedQuery.ListConnectionsRequest.Filter\x1a\xb5\x01\n\x06\x46ilter\x12\x15\n\x04name\x18\x01 \x01(\tB\x07\xa2\xe6*\x03\x18\x80\x08\x12\x15\n\rcreated_by_me\x18\x02 \x01(\x08\x12I\n\x0f\x63onnection_type\x18\x03 \x01(\x0e\x32\x30.FederatedQuery.ConnectionSetting.ConnectionType\x12\x32\n\nvisibility\x18\x04 \x01(\x0e\x32\x1e.FederatedQuery.Acl.Visibility\"G\n\x17ListConnectionsResponse\x12,\n\toperation\x18\x01 \x01(\x0b\x32\x19.Ydb.Operations.Operation\"i\n\x15ListConnectionsResult\x12.\n\nconnection\x18\x01 \x03(\x0b\x32\x1a.FederatedQuery.Connection\x12 \n\x0fnext_page_token\x18\x02 \x01(\tB\x07\xa2\xe6*\x03\x18\x80\x08\"z\n\x19\x44\x65scribeConnectionRequest\x12\x39\n\x10operation_params\x18\x01 \x01(\x0b\x32\x1f.Ydb.Operations.OperationParams\x12\"\n\rconnection_id\x18\x02 \x01(\tB\x0b\xa2\xe6*\x07\n\x05\x08\x01\x10\x80\x08\"J\n\x1a\x44\x65scribeConnectionResponse\x12,\n\toperation\x18\x01 \x01(\x0b\x32\x19.Ydb.Operations.Operation\"J\n\x18\x44\x65scribeConnectionResult\x12.\n\nconnection\x18\x01 \x01(\x0b\x32\x1a.FederatedQuery.Connection\"\xf3\x01\n\x17ModifyConnectionRequest\x12\x39\n\x10operation_params\x18\x01 \x01(\x0b\x32\x1f.Ydb.Operations.OperationParams\x12\"\n\rconnection_id\x18\x02 \x01(\tB\x0b\xa2\xe6*\x07\n\x05\x08\x01\x10\x80\x08\x12\x32\n\x07\x63ontent\x18\x03 \x01(\x0b\x32!.FederatedQuery.ConnectionContent\x12#\n\x11previous_revision\x18\x04 \x01(\x03\x42\x08\xb2\xe6*\x04>= 0\x12 \n\x0fidempotency_key\x18\x05 \x01(\tB\x07\xa2\xe6*\x03\x18\x80\x08\"H\n\x18ModifyConnectionResponse\x12,\n\toperation\x18\x01 \x01(\x0b\x32\x19.Ydb.Operations.Operation\"\x18\n\x16ModifyConnectionResult\"\xbf\x01\n\x17\x44\x65leteConnectionRequest\x12\x39\n\x10operation_params\x18\x01 \x01(\x0b\x32\x1f.Ydb.Operations.OperationParams\x12\"\n\rconnection_id\x18\x02 \x01(\tB\x0b\xa2\xe6*\x07\n\x05\x08\x01\x10\x80\x08\x12#\n\x11previous_revision\x18\x03 \x01(\x03\x42\x08\xb2\xe6*\x04>= 0\x12 \n\x0fidempotency_key\x18\x04 \x01(\tB\x07\xa2\xe6*\x03\x18\x80\x08\"H\n\x18\x44\x65leteConnectionResponse\x12,\n\toperation\x18\x01 \x01(\x0b\x32\x19.Ydb.Operations.Operation\"\x18\n\x16\x44\x65leteConnectionResult\"\x86\x01\n\x15TestConnectionRequest\x12\x39\n\x10operation_params\x18\x01 \x01(\x0b\x32\x1f.Ydb.Operations.OperationParams\x12\x32\n\x07setting\x18\x02 \x01(\x0b\x32!.FederatedQuery.ConnectionSetting\"F\n\x16TestConnectionResponse\x12,\n\toperation\x18\x01 \x01(\x0b\x32\x19.Ydb.Operations.Operation\"\x16\n\x14TestConnectionResult\"\xcc\x01\n\x14GetResultDataRequest\x12\x39\n\x10operation_params\x18\x01 \x01(\x0b\x32\x1f.Ydb.Operations.OperationParams\x12\x1d\n\x08query_id\x18\x02 \x01(\tB\x0b\xa2\xe6*\x07\n\x05\x08\x01\x10\x80\x08\x12\"\n\x10result_set_index\x18\x03 \x01(\x05\x42\x08\xb2\xe6*\x04>= 0\x12\x18\n\x06offset\x18\x04 \x01(\x03\x42\x08\xb2\xe6*\x04>= 0\x12\x1c\n\x05limit\x18\x05 \x01(\x03\x42\r\xb2\xe6*\t[1; 1000]\"E\n\x15GetResultDataResponse\x12,\n\toperation\x18\x01 \x01(\x0b\x32\x19.Ydb.Operations.Operation\"9\n\x13GetResultDataResult\x12\"\n\nresult_set\x18\x01 \x01(\x0b\x32\x0e.Ydb.ResultSet\".\n\x06Schema\x12$\n\x06\x63olumn\x18\x01 \x03(\x0b\x32\x0b.Ydb.ColumnB\x07\x9a\xe6*\x03\x18\xe8\x07\"\xa2\x02\n\x12\x44\x61taStreamsBinding\x12 \n\x0bstream_name\x18\x01 \x01(\tB\x0b\xa2\xe6*\x07\n\x05\x08\x01\x10\x80\x08\x12\x17\n\x06\x66ormat\x18\x02 \x01(\tB\x07\xa2\xe6*\x03\x18\x80\x08\x12\x1c\n\x0b\x63ompression\x18\x03 \x01(\tB\x07\xa2\xe6*\x03\x18\x80\x08\x12&\n\x06schema\x18\x04 \x01(\x0b\x32\x16.FederatedQuery.Schema\x12U\n\x0e\x66ormat_setting\x18\x05 \x03(\x0b\x32\x35.FederatedQuery.DataStreamsBinding.FormatSettingEntryB\x06\x9a\xe6*\x02\x18\x64\x1a\x34\n\x12\x46ormatSettingEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x92\x04\n\x14ObjectStorageBinding\x12;\n\x06subset\x18\x01 \x03(\x0b\x32+.FederatedQuery.ObjectStorageBinding.Subset\x1a\xbc\x03\n\x06Subset\x12!\n\x0cpath_pattern\x18\x01 \x01(\tB\x0b\xa2\xe6*\x07\n\x05\x08\x01\x10\x80\x08\x12\x17\n\x06\x66ormat\x18\x02 \x01(\tB\x07\xa2\xe6*\x03\x18\x80\x08\x12^\n\x0e\x66ormat_setting\x18\x03 \x03(\x0b\x32>.FederatedQuery.ObjectStorageBinding.Subset.FormatSettingEntryB\x06\x9a\xe6*\x02\x18\x64\x12\x1c\n\x0b\x63ompression\x18\x04 \x01(\tB\x07\xa2\xe6*\x03\x18\x80\x08\x12&\n\x06schema\x18\x05 \x01(\x0b\x32\x16.FederatedQuery.Schema\x12O\n\nprojection\x18\x06 \x03(\x0b\x32;.FederatedQuery.ObjectStorageBinding.Subset.ProjectionEntry\x12\x16\n\x0epartitioned_by\x18\x07 \x03(\t\x1a\x34\n\x12\x46ormatSettingEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\x31\n\x0fProjectionEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xea\x01\n\x0e\x42indingSetting\x12:\n\x0c\x64\x61ta_streams\x18\x01 \x01(\x0b\x32\".FederatedQuery.DataStreamsBindingH\x00\x12>\n\x0eobject_storage\x18\x02 \x01(\x0b\x32$.FederatedQuery.ObjectStorageBindingH\x00\"Q\n\x0b\x42indingType\x12\x1c\n\x18\x42INDING_TYPE_UNSPECIFIED\x10\x00\x12\x10\n\x0c\x44\x41TA_STREAMS\x10\x01\x12\x12\n\x0eOBJECT_STORAGE\x10\x02\x42\t\n\x07\x62inding\"\xe5\x01\n\x0c\x42riefBinding\x12\x19\n\x04name\x18\x01 \x01(\tB\x0b\xa2\xe6*\x07\n\x05\x08\x01\x10\x80\x08\x12\"\n\rconnection_id\x18\x02 \x01(\tB\x0b\xa2\xe6*\x07\n\x05\x08\x01\x10\x80\x08\x12(\n\x04meta\x18\x03 \x01(\x0b\x32\x1a.FederatedQuery.CommonMeta\x12\x38\n\x04type\x18\x04 \x01(\x0e\x32*.FederatedQuery.BindingSetting.BindingType\x12\x32\n\nvisibility\x18\x05 \x01(\x0e\x32\x1e.FederatedQuery.Acl.Visibility\"\xc0\x01\n\x0e\x42indingContent\x12\x19\n\x04name\x18\x01 \x01(\tB\x0b\xa2\xe6*\x07\n\x05\x08\x01\x10\x80\x08\x12\"\n\rconnection_id\x18\x02 \x01(\tB\x0b\xa2\xe6*\x07\n\x05\x08\x01\x10\x80\x08\x12/\n\x07setting\x18\x03 \x01(\x0b\x32\x1e.FederatedQuery.BindingSetting\x12 \n\x03\x61\x63l\x18\x04 \x01(\x0b\x32\x13.FederatedQuery.Acl\x12\x1c\n\x0b\x64\x65scription\x18\x05 \x01(\tB\x07\xa2\xe6*\x03\x18\x80P\"d\n\x07\x42inding\x12/\n\x07\x63ontent\x18\x01 \x01(\x0b\x32\x1e.FederatedQuery.BindingContent\x12(\n\x04meta\x18\x02 \x01(\x0b\x32\x1a.FederatedQuery.CommonMeta\"\xa4\x01\n\x14\x43reateBindingRequest\x12\x39\n\x10operation_params\x18\x01 \x01(\x0b\x32\x1f.Ydb.Operations.OperationParams\x12/\n\x07\x63ontent\x18\x02 \x01(\x0b\x32\x1e.FederatedQuery.BindingContent\x12 \n\x0fidempotency_key\x18\x03 \x01(\tB\x07\xa2\xe6*\x03\x18\x80\x08\"E\n\x15\x43reateBindingResponse\x12,\n\toperation\x18\x01 \x01(\x0b\x32\x19.Ydb.Operations.Operation\"6\n\x13\x43reateBindingResult\x12\x1f\n\nbinding_id\x18\x01 \x01(\tB\x0b\xa2\xe6*\x07\n\x05\x08\x01\x10\x80\x08\"\xd3\x02\n\x13ListBindingsRequest\x12\x39\n\x10operation_params\x18\x01 \x01(\x0b\x32\x1f.Ydb.Operations.OperationParams\x12\x1b\n\npage_token\x18\x02 \x01(\tB\x07\xa2\xe6*\x03\x18\x80\x08\x12\x1b\n\x05limit\x18\x03 \x01(\x05\x42\x0c\xb2\xe6*\x08[1; 100]\x12:\n\x06\x66ilter\x18\x04 \x01(\x0b\x32*.FederatedQuery.ListBindingsRequest.Filter\x1a\x8a\x01\n\x06\x46ilter\x12\x1e\n\rconnection_id\x18\x01 \x01(\tB\x07\xa2\xe6*\x03\x18\x80\x08\x12\x15\n\x04name\x18\x02 \x01(\tB\x07\xa2\xe6*\x03\x18\x80\x08\x12\x15\n\rcreated_by_me\x18\x03 \x01(\x08\x12\x32\n\nvisibility\x18\x04 \x01(\x0e\x32\x1e.FederatedQuery.Acl.Visibility\"D\n\x14ListBindingsResponse\x12,\n\toperation\x18\x01 \x01(\x0b\x32\x19.Ydb.Operations.Operation\"e\n\x12ListBindingsResult\x12-\n\x07\x62inding\x18\x01 \x03(\x0b\x32\x1c.FederatedQuery.BriefBinding\x12 \n\x0fnext_page_token\x18\x02 \x01(\tB\x07\xa2\xe6*\x03\x18\x80\x08\"t\n\x16\x44\x65scribeBindingRequest\x12\x39\n\x10operation_params\x18\x01 \x01(\x0b\x32\x1f.Ydb.Operations.OperationParams\x12\x1f\n\nbinding_id\x18\x02 \x01(\tB\x0b\xa2\xe6*\x07\n\x05\x08\x01\x10\x80\x08\"G\n\x17\x44\x65scribeBindingResponse\x12,\n\toperation\x18\x01 \x01(\x0b\x32\x19.Ydb.Operations.Operation\"A\n\x15\x44\x65scribeBindingResult\x12(\n\x07\x62inding\x18\x01 \x01(\x0b\x32\x17.FederatedQuery.Binding\"\xea\x01\n\x14ModifyBindingRequest\x12\x39\n\x10operation_params\x18\x01 \x01(\x0b\x32\x1f.Ydb.Operations.OperationParams\x12\x1f\n\nbinding_id\x18\x02 \x01(\tB\x0b\xa2\xe6*\x07\n\x05\x08\x01\x10\x80\x08\x12/\n\x07\x63ontent\x18\x03 \x01(\x0b\x32\x1e.FederatedQuery.BindingContent\x12#\n\x11previous_revision\x18\x04 \x01(\x03\x42\x08\xb2\xe6*\x04>= 0\x12 \n\x0fidempotency_key\x18\x05 \x01(\tB\x07\xa2\xe6*\x03\x18\x80\x08\"E\n\x15ModifyBindingResponse\x12,\n\toperation\x18\x01 \x01(\x0b\x32\x19.Ydb.Operations.Operation\"\x15\n\x13ModifyBindingResult\"\xb9\x01\n\x14\x44\x65leteBindingRequest\x12\x39\n\x10operation_params\x18\x01 \x01(\x0b\x32\x1f.Ydb.Operations.OperationParams\x12\x1f\n\nbinding_id\x18\x02 \x01(\tB\x0b\xa2\xe6*\x07\n\x05\x08\x01\x10\x80\x08\x12#\n\x11previous_revision\x18\x03 \x01(\x03\x42\x08\xb2\xe6*\x04>= 0\x12 \n\x0fidempotency_key\x18\x04 \x01(\tB\x07\xa2\xe6*\x03\x18\x80\x08\"E\n\x15\x44\x65leteBindingResponse\x12,\n\toperation\x18\x01 \x01(\x0b\x32\x19.Ydb.Operations.Operation\"\x15\n\x13\x44\x65leteBindingResult*q\n\x0b\x45xecuteMode\x12\x1c\n\x18\x45XECUTE_MODE_UNSPECIFIED\x10\x00\x12\x08\n\x04SAVE\x10\x01\x12\t\n\x05PARSE\x10\x02\x12\x0b\n\x07\x43OMPILE\x10\x03\x12\x0c\n\x08VALIDATE\x10\x04\x12\x0b\n\x07\x45XPLAIN\x10\x05\x12\x07\n\x03RUN\x10\x06*y\n\x0bQueryAction\x12\x1c\n\x18QUERY_ACTION_UNSPECIFIED\x10\x00\x12\t\n\x05PAUSE\x10\x01\x12\x14\n\x10PAUSE_GRACEFULLY\x10\x02\x12\t\n\x05\x41\x42ORT\x10\x03\x12\x14\n\x10\x41\x42ORT_GRACEFULLY\x10\x04\x12\n\n\x06RESUME\x10\x05*U\n\rStateLoadMode\x12\x1f\n\x1bSTATE_LOAD_MODE_UNSPECIFIED\x10\x00\x12\t\n\x05\x45MPTY\x10\x01\x12\x18\n\x14\x46ROM_LAST_CHECKPOINT\x10\x02*Q\n\rAutomaticType\x12\x1e\n\x1a\x41UTOMATIC_TYPE_UNSPECIFIED\x10\x00\x12\r\n\tAUTOMATIC\x10\x01\x12\x11\n\rNOT_AUTOMATIC\x10\x02\x42r\n$tech.ydb.proto.draft.federated.queryZGgithub.com/ydb-platform/ydb-go-genproto/draft/protos/Ydb_FederatedQuery\xf8\x01\x01\x62\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'draft.protos.ydb_federated_query_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n$tech.ydb.proto.draft.federated.queryZGgithub.com/ydb-platform/ydb-go-genproto/draft/protos/Ydb_FederatedQuery\370\001\001' + _LIMITS.fields_by_name['vcpu_rate_limit']._options = None + _LIMITS.fields_by_name['vcpu_rate_limit']._serialized_options = b'\262\346*\004>= 0' + _LIMITS.fields_by_name['flow_rate_limit']._options = None + _LIMITS.fields_by_name['flow_rate_limit']._serialized_options = b'\262\346*\004>= 0' + _LIMITS.fields_by_name['vcpu_time_limit']._options = None + _LIMITS.fields_by_name['vcpu_time_limit']._serialized_options = b'\262\346*\004>= 0' + _LIMITS.fields_by_name['max_result_size']._options = None + _LIMITS.fields_by_name['max_result_size']._serialized_options = b'\262\346*\004>= 0' + _LIMITS.fields_by_name['max_result_rows']._options = None + _LIMITS.fields_by_name['max_result_rows']._serialized_options = b'\262\346*\004>= 0' + _LIMITS.fields_by_name['memory_limit']._options = None + _LIMITS.fields_by_name['memory_limit']._serialized_options = b'\262\346*\004>= 0' + _QUERYCONTENT_EXECUTIONSETTINGSENTRY._options = None + _QUERYCONTENT_EXECUTIONSETTINGSENTRY._serialized_options = b'8\001' + _QUERYCONTENT.fields_by_name['name']._options = None + _QUERYCONTENT.fields_by_name['name']._serialized_options = b'\242\346*\003\030\200\010' + _QUERYCONTENT.fields_by_name['text']._options = None + _QUERYCONTENT.fields_by_name['text']._serialized_options = b'\242\346*\010\n\006\010\001\020\200\240\006' + _QUERYCONTENT.fields_by_name['description']._options = None + _QUERYCONTENT.fields_by_name['description']._serialized_options = b'\242\346*\003\030\200P' + _QUERYCONTENT.fields_by_name['execution_settings']._options = None + _QUERYCONTENT.fields_by_name['execution_settings']._serialized_options = b'\252\346*\010\n\006\n\004\010\001\020d\242\346*\003\030\200 ' + _COMMONMETA.fields_by_name['id']._options = None + _COMMONMETA.fields_by_name['id']._serialized_options = b'\242\346*\007\n\005\010\001\020\200\010' + _COMMONMETA.fields_by_name['created_by']._options = None + _COMMONMETA.fields_by_name['created_by']._serialized_options = b'\242\346*\007\n\005\010\001\020\200\010' + _COMMONMETA.fields_by_name['modified_by']._options = None + _COMMONMETA.fields_by_name['modified_by']._serialized_options = b'\242\346*\007\n\005\010\001\020\200\010' + _COMMONMETA.fields_by_name['revision']._options = None + _COMMONMETA.fields_by_name['revision']._serialized_options = b'\262\346*\004>= 0' + _BRIEFQUERY.fields_by_name['name']._options = None + _BRIEFQUERY.fields_by_name['name']._serialized_options = b'\242\346*\003\030\200\010' + _RESULTSETMETA.fields_by_name['rows_count']._options = None + _RESULTSETMETA.fields_by_name['rows_count']._serialized_options = b'\262\346*\004>= 0' + _CREATEQUERYREQUEST.fields_by_name['idempotency_key']._options = None + _CREATEQUERYREQUEST.fields_by_name['idempotency_key']._serialized_options = b'\242\346*\003\030\200\010' + _CREATEQUERYRESULT.fields_by_name['query_id']._options = None + _CREATEQUERYRESULT.fields_by_name['query_id']._serialized_options = b'\242\346*\003\030\200\010' + _LISTQUERIESREQUEST_FILTER.fields_by_name['status']._options = None + _LISTQUERIESREQUEST_FILTER.fields_by_name['status']._serialized_options = b'\232\346*\002\030\024' + _LISTQUERIESREQUEST_FILTER.fields_by_name['mode']._options = None + _LISTQUERIESREQUEST_FILTER.fields_by_name['mode']._serialized_options = b'\232\346*\002\030\024' + _LISTQUERIESREQUEST_FILTER.fields_by_name['name']._options = None + _LISTQUERIESREQUEST_FILTER.fields_by_name['name']._serialized_options = b'\242\346*\003\030\200\010' + _LISTQUERIESREQUEST.fields_by_name['page_token']._options = None + _LISTQUERIESREQUEST.fields_by_name['page_token']._serialized_options = b'\242\346*\003\030\200\010' + _LISTQUERIESREQUEST.fields_by_name['limit']._options = None + _LISTQUERIESREQUEST.fields_by_name['limit']._serialized_options = b'\262\346*\010[1; 100]' + _LISTQUERIESRESULT.fields_by_name['next_page_token']._options = None + _LISTQUERIESRESULT.fields_by_name['next_page_token']._serialized_options = b'\242\346*\003\030\200\010' + _DESCRIBEQUERYREQUEST.fields_by_name['query_id']._options = None + _DESCRIBEQUERYREQUEST.fields_by_name['query_id']._serialized_options = b'\242\346*\007\n\005\010\001\020\200\010' + _GETQUERYSTATUSREQUEST.fields_by_name['query_id']._options = None + _GETQUERYSTATUSREQUEST.fields_by_name['query_id']._serialized_options = b'\242\346*\007\n\005\010\001\020\200\010' + _DELETEQUERYREQUEST.fields_by_name['query_id']._options = None + _DELETEQUERYREQUEST.fields_by_name['query_id']._serialized_options = b'\242\346*\007\n\005\010\001\020\200\010' + _DELETEQUERYREQUEST.fields_by_name['previous_revision']._options = None + _DELETEQUERYREQUEST.fields_by_name['previous_revision']._serialized_options = b'\262\346*\004>= 0' + _DELETEQUERYREQUEST.fields_by_name['idempotency_key']._options = None + _DELETEQUERYREQUEST.fields_by_name['idempotency_key']._serialized_options = b'\242\346*\003\030\200\010' + _MODIFYQUERYREQUEST.fields_by_name['query_id']._options = None + _MODIFYQUERYREQUEST.fields_by_name['query_id']._serialized_options = b'\242\346*\007\n\005\010\001\020\200\010' + _MODIFYQUERYREQUEST.fields_by_name['previous_revision']._options = None + _MODIFYQUERYREQUEST.fields_by_name['previous_revision']._serialized_options = b'\262\346*\004>= 0' + _MODIFYQUERYREQUEST.fields_by_name['idempotency_key']._options = None + _MODIFYQUERYREQUEST.fields_by_name['idempotency_key']._serialized_options = b'\242\346*\003\030\200\010' + _CONTROLQUERYREQUEST.fields_by_name['query_id']._options = None + _CONTROLQUERYREQUEST.fields_by_name['query_id']._serialized_options = b'\242\346*\007\n\005\010\001\020\200\010' + _CONTROLQUERYREQUEST.fields_by_name['previous_revision']._options = None + _CONTROLQUERYREQUEST.fields_by_name['previous_revision']._serialized_options = b'\262\346*\004>= 0' + _CONTROLQUERYREQUEST.fields_by_name['idempotency_key']._options = None + _CONTROLQUERYREQUEST.fields_by_name['idempotency_key']._serialized_options = b'\242\346*\003\030\200\010' + _LISTJOBSREQUEST_FILTER.fields_by_name['query_id']._options = None + _LISTJOBSREQUEST_FILTER.fields_by_name['query_id']._serialized_options = b'\242\346*\003\030\200\010' + _LISTJOBSREQUEST.fields_by_name['page_token']._options = None + _LISTJOBSREQUEST.fields_by_name['page_token']._serialized_options = b'\242\346*\003\030\200\010' + _LISTJOBSREQUEST.fields_by_name['limit']._options = None + _LISTJOBSREQUEST.fields_by_name['limit']._serialized_options = b'\262\346*\010[1; 100]' + _LISTJOBSRESULT.fields_by_name['next_page_token']._options = None + _LISTJOBSRESULT.fields_by_name['next_page_token']._serialized_options = b'\242\346*\003\030\200\010' + _DESCRIBEJOBREQUEST.fields_by_name['job_id']._options = None + _DESCRIBEJOBREQUEST.fields_by_name['job_id']._serialized_options = b'\242\346*\007\n\005\010\001\020\200\010' + _SERVICEACCOUNTAUTH.fields_by_name['id']._options = None + _SERVICEACCOUNTAUTH.fields_by_name['id']._serialized_options = b'\242\346*\003\030\200\010' + _DATASTREAMS.fields_by_name['database_id']._options = None + _DATASTREAMS.fields_by_name['database_id']._serialized_options = b'\242\346*\003\030\200\010' + _DATASTREAMS.fields_by_name['endpoint']._options = None + _DATASTREAMS.fields_by_name['endpoint']._serialized_options = b'\242\346*\003\030\200\010' + _DATASTREAMS.fields_by_name['database']._options = None + _DATASTREAMS.fields_by_name['database']._serialized_options = b'\242\346*\003\030\200\010' + _MONITORING.fields_by_name['project']._options = None + _MONITORING.fields_by_name['project']._serialized_options = b'\242\346*\003\030\310\001' + _MONITORING.fields_by_name['cluster']._options = None + _MONITORING.fields_by_name['cluster']._serialized_options = b'\242\346*\003\030\310\001' + _YDBDATABASE.fields_by_name['database_id']._options = None + _YDBDATABASE.fields_by_name['database_id']._serialized_options = b'\242\346*\003\030\200\010' + _YDBDATABASE.fields_by_name['endpoint']._options = None + _YDBDATABASE.fields_by_name['endpoint']._serialized_options = b'\242\346*\003\030\200\010' + _YDBDATABASE.fields_by_name['database']._options = None + _YDBDATABASE.fields_by_name['database']._serialized_options = b'\242\346*\003\030\200\010' + _CLICKHOUSECLUSTER.fields_by_name['database_id']._options = None + _CLICKHOUSECLUSTER.fields_by_name['database_id']._serialized_options = b'\242\346*\003\030\200\010' + _CLICKHOUSECLUSTER.fields_by_name['database_name']._options = None + _CLICKHOUSECLUSTER.fields_by_name['database_name']._serialized_options = b'\242\346*\003\030\200\010' + _CLICKHOUSECLUSTER.fields_by_name['login']._options = None + _CLICKHOUSECLUSTER.fields_by_name['login']._serialized_options = b'\242\346*\003\030\200\010\270\346*\001' + _CLICKHOUSECLUSTER.fields_by_name['password']._options = None + _CLICKHOUSECLUSTER.fields_by_name['password']._serialized_options = b'\242\346*\003\030\200\010\270\346*\001' + _CLICKHOUSECLUSTER.fields_by_name['host']._options = None + _CLICKHOUSECLUSTER.fields_by_name['host']._serialized_options = b'\242\346*\003\030\200\010' + _CLICKHOUSECLUSTER.fields_by_name['port']._options = None + _CLICKHOUSECLUSTER.fields_by_name['port']._serialized_options = b'\262\346*\n[0; 65536]' + _OBJECTSTORAGECONNECTION.fields_by_name['bucket']._options = None + _OBJECTSTORAGECONNECTION.fields_by_name['bucket']._serialized_options = b'\242\346*\003\030\200\010' + _POSTGRESQLCLUSTER.fields_by_name['database_id']._options = None + _POSTGRESQLCLUSTER.fields_by_name['database_id']._serialized_options = b'\242\346*\003\030\200\010' + _POSTGRESQLCLUSTER.fields_by_name['database_name']._options = None + _POSTGRESQLCLUSTER.fields_by_name['database_name']._serialized_options = b'\242\346*\003\030\200\010' + _POSTGRESQLCLUSTER.fields_by_name['login']._options = None + _POSTGRESQLCLUSTER.fields_by_name['login']._serialized_options = b'\242\346*\003\030\200\010\270\346*\001' + _POSTGRESQLCLUSTER.fields_by_name['password']._options = None + _POSTGRESQLCLUSTER.fields_by_name['password']._serialized_options = b'\242\346*\003\030\200\010\270\346*\001' + _POSTGRESQLCLUSTER.fields_by_name['schema']._options = None + _POSTGRESQLCLUSTER.fields_by_name['schema']._serialized_options = b'\242\346*\003\030\200\010' + _POSTGRESQLCLUSTER.fields_by_name['host']._options = None + _POSTGRESQLCLUSTER.fields_by_name['host']._serialized_options = b'\242\346*\003\030\200\010' + _POSTGRESQLCLUSTER.fields_by_name['port']._options = None + _POSTGRESQLCLUSTER.fields_by_name['port']._serialized_options = b'\262\346*\n[0; 65536]' + _CONNECTIONCONTENT.fields_by_name['name']._options = None + _CONNECTIONCONTENT.fields_by_name['name']._serialized_options = b'\242\346*\007\n\005\010\001\020\200\010' + _CONNECTIONCONTENT.fields_by_name['description']._options = None + _CONNECTIONCONTENT.fields_by_name['description']._serialized_options = b'\242\346*\003\030\200P' + _CREATECONNECTIONREQUEST.fields_by_name['idempotency_key']._options = None + _CREATECONNECTIONREQUEST.fields_by_name['idempotency_key']._serialized_options = b'\242\346*\003\030\200\010' + _CREATECONNECTIONRESULT.fields_by_name['connection_id']._options = None + _CREATECONNECTIONRESULT.fields_by_name['connection_id']._serialized_options = b'\242\346*\007\n\005\010\001\020\200\010' + _LISTCONNECTIONSREQUEST_FILTER.fields_by_name['name']._options = None + _LISTCONNECTIONSREQUEST_FILTER.fields_by_name['name']._serialized_options = b'\242\346*\003\030\200\010' + _LISTCONNECTIONSREQUEST.fields_by_name['page_token']._options = None + _LISTCONNECTIONSREQUEST.fields_by_name['page_token']._serialized_options = b'\242\346*\003\030\200\010' + _LISTCONNECTIONSREQUEST.fields_by_name['limit']._options = None + _LISTCONNECTIONSREQUEST.fields_by_name['limit']._serialized_options = b'\262\346*\010[1; 100]' + _LISTCONNECTIONSRESULT.fields_by_name['next_page_token']._options = None + _LISTCONNECTIONSRESULT.fields_by_name['next_page_token']._serialized_options = b'\242\346*\003\030\200\010' + _DESCRIBECONNECTIONREQUEST.fields_by_name['connection_id']._options = None + _DESCRIBECONNECTIONREQUEST.fields_by_name['connection_id']._serialized_options = b'\242\346*\007\n\005\010\001\020\200\010' + _MODIFYCONNECTIONREQUEST.fields_by_name['connection_id']._options = None + _MODIFYCONNECTIONREQUEST.fields_by_name['connection_id']._serialized_options = b'\242\346*\007\n\005\010\001\020\200\010' + _MODIFYCONNECTIONREQUEST.fields_by_name['previous_revision']._options = None + _MODIFYCONNECTIONREQUEST.fields_by_name['previous_revision']._serialized_options = b'\262\346*\004>= 0' + _MODIFYCONNECTIONREQUEST.fields_by_name['idempotency_key']._options = None + _MODIFYCONNECTIONREQUEST.fields_by_name['idempotency_key']._serialized_options = b'\242\346*\003\030\200\010' + _DELETECONNECTIONREQUEST.fields_by_name['connection_id']._options = None + _DELETECONNECTIONREQUEST.fields_by_name['connection_id']._serialized_options = b'\242\346*\007\n\005\010\001\020\200\010' + _DELETECONNECTIONREQUEST.fields_by_name['previous_revision']._options = None + _DELETECONNECTIONREQUEST.fields_by_name['previous_revision']._serialized_options = b'\262\346*\004>= 0' + _DELETECONNECTIONREQUEST.fields_by_name['idempotency_key']._options = None + _DELETECONNECTIONREQUEST.fields_by_name['idempotency_key']._serialized_options = b'\242\346*\003\030\200\010' + _GETRESULTDATAREQUEST.fields_by_name['query_id']._options = None + _GETRESULTDATAREQUEST.fields_by_name['query_id']._serialized_options = b'\242\346*\007\n\005\010\001\020\200\010' + _GETRESULTDATAREQUEST.fields_by_name['result_set_index']._options = None + _GETRESULTDATAREQUEST.fields_by_name['result_set_index']._serialized_options = b'\262\346*\004>= 0' + _GETRESULTDATAREQUEST.fields_by_name['offset']._options = None + _GETRESULTDATAREQUEST.fields_by_name['offset']._serialized_options = b'\262\346*\004>= 0' + _GETRESULTDATAREQUEST.fields_by_name['limit']._options = None + _GETRESULTDATAREQUEST.fields_by_name['limit']._serialized_options = b'\262\346*\t[1; 1000]' + _SCHEMA.fields_by_name['column']._options = None + _SCHEMA.fields_by_name['column']._serialized_options = b'\232\346*\003\030\350\007' + _DATASTREAMSBINDING_FORMATSETTINGENTRY._options = None + _DATASTREAMSBINDING_FORMATSETTINGENTRY._serialized_options = b'8\001' + _DATASTREAMSBINDING.fields_by_name['stream_name']._options = None + _DATASTREAMSBINDING.fields_by_name['stream_name']._serialized_options = b'\242\346*\007\n\005\010\001\020\200\010' + _DATASTREAMSBINDING.fields_by_name['format']._options = None + _DATASTREAMSBINDING.fields_by_name['format']._serialized_options = b'\242\346*\003\030\200\010' + _DATASTREAMSBINDING.fields_by_name['compression']._options = None + _DATASTREAMSBINDING.fields_by_name['compression']._serialized_options = b'\242\346*\003\030\200\010' + _DATASTREAMSBINDING.fields_by_name['format_setting']._options = None + _DATASTREAMSBINDING.fields_by_name['format_setting']._serialized_options = b'\232\346*\002\030d' + _OBJECTSTORAGEBINDING_SUBSET_FORMATSETTINGENTRY._options = None + _OBJECTSTORAGEBINDING_SUBSET_FORMATSETTINGENTRY._serialized_options = b'8\001' + _OBJECTSTORAGEBINDING_SUBSET_PROJECTIONENTRY._options = None + _OBJECTSTORAGEBINDING_SUBSET_PROJECTIONENTRY._serialized_options = b'8\001' + _OBJECTSTORAGEBINDING_SUBSET.fields_by_name['path_pattern']._options = None + _OBJECTSTORAGEBINDING_SUBSET.fields_by_name['path_pattern']._serialized_options = b'\242\346*\007\n\005\010\001\020\200\010' + _OBJECTSTORAGEBINDING_SUBSET.fields_by_name['format']._options = None + _OBJECTSTORAGEBINDING_SUBSET.fields_by_name['format']._serialized_options = b'\242\346*\003\030\200\010' + _OBJECTSTORAGEBINDING_SUBSET.fields_by_name['format_setting']._options = None + _OBJECTSTORAGEBINDING_SUBSET.fields_by_name['format_setting']._serialized_options = b'\232\346*\002\030d' + _OBJECTSTORAGEBINDING_SUBSET.fields_by_name['compression']._options = None + _OBJECTSTORAGEBINDING_SUBSET.fields_by_name['compression']._serialized_options = b'\242\346*\003\030\200\010' + _BRIEFBINDING.fields_by_name['name']._options = None + _BRIEFBINDING.fields_by_name['name']._serialized_options = b'\242\346*\007\n\005\010\001\020\200\010' + _BRIEFBINDING.fields_by_name['connection_id']._options = None + _BRIEFBINDING.fields_by_name['connection_id']._serialized_options = b'\242\346*\007\n\005\010\001\020\200\010' + _BINDINGCONTENT.fields_by_name['name']._options = None + _BINDINGCONTENT.fields_by_name['name']._serialized_options = b'\242\346*\007\n\005\010\001\020\200\010' + _BINDINGCONTENT.fields_by_name['connection_id']._options = None + _BINDINGCONTENT.fields_by_name['connection_id']._serialized_options = b'\242\346*\007\n\005\010\001\020\200\010' + _BINDINGCONTENT.fields_by_name['description']._options = None + _BINDINGCONTENT.fields_by_name['description']._serialized_options = b'\242\346*\003\030\200P' + _CREATEBINDINGREQUEST.fields_by_name['idempotency_key']._options = None + _CREATEBINDINGREQUEST.fields_by_name['idempotency_key']._serialized_options = b'\242\346*\003\030\200\010' + _CREATEBINDINGRESULT.fields_by_name['binding_id']._options = None + _CREATEBINDINGRESULT.fields_by_name['binding_id']._serialized_options = b'\242\346*\007\n\005\010\001\020\200\010' + _LISTBINDINGSREQUEST_FILTER.fields_by_name['connection_id']._options = None + _LISTBINDINGSREQUEST_FILTER.fields_by_name['connection_id']._serialized_options = b'\242\346*\003\030\200\010' + _LISTBINDINGSREQUEST_FILTER.fields_by_name['name']._options = None + _LISTBINDINGSREQUEST_FILTER.fields_by_name['name']._serialized_options = b'\242\346*\003\030\200\010' + _LISTBINDINGSREQUEST.fields_by_name['page_token']._options = None + _LISTBINDINGSREQUEST.fields_by_name['page_token']._serialized_options = b'\242\346*\003\030\200\010' + _LISTBINDINGSREQUEST.fields_by_name['limit']._options = None + _LISTBINDINGSREQUEST.fields_by_name['limit']._serialized_options = b'\262\346*\010[1; 100]' + _LISTBINDINGSRESULT.fields_by_name['next_page_token']._options = None + _LISTBINDINGSRESULT.fields_by_name['next_page_token']._serialized_options = b'\242\346*\003\030\200\010' + _DESCRIBEBINDINGREQUEST.fields_by_name['binding_id']._options = None + _DESCRIBEBINDINGREQUEST.fields_by_name['binding_id']._serialized_options = b'\242\346*\007\n\005\010\001\020\200\010' + _MODIFYBINDINGREQUEST.fields_by_name['binding_id']._options = None + _MODIFYBINDINGREQUEST.fields_by_name['binding_id']._serialized_options = b'\242\346*\007\n\005\010\001\020\200\010' + _MODIFYBINDINGREQUEST.fields_by_name['previous_revision']._options = None + _MODIFYBINDINGREQUEST.fields_by_name['previous_revision']._serialized_options = b'\262\346*\004>= 0' + _MODIFYBINDINGREQUEST.fields_by_name['idempotency_key']._options = None + _MODIFYBINDINGREQUEST.fields_by_name['idempotency_key']._serialized_options = b'\242\346*\003\030\200\010' + _DELETEBINDINGREQUEST.fields_by_name['binding_id']._options = None + _DELETEBINDINGREQUEST.fields_by_name['binding_id']._serialized_options = b'\242\346*\007\n\005\010\001\020\200\010' + _DELETEBINDINGREQUEST.fields_by_name['previous_revision']._options = None + _DELETEBINDINGREQUEST.fields_by_name['previous_revision']._serialized_options = b'\262\346*\004>= 0' + _DELETEBINDINGREQUEST.fields_by_name['idempotency_key']._options = None + _DELETEBINDINGREQUEST.fields_by_name['idempotency_key']._serialized_options = b'\242\346*\003\030\200\010' + _EXECUTEMODE._serialized_start=15700 + _EXECUTEMODE._serialized_end=15813 + _QUERYACTION._serialized_start=15815 + _QUERYACTION._serialized_end=15936 + _STATELOADMODE._serialized_start=15938 + _STATELOADMODE._serialized_end=16023 + _AUTOMATICTYPE._serialized_start=16025 + _AUTOMATICTYPE._serialized_end=16106 + _ACL._serialized_start=309 + _ACL._serialized_end=432 + _ACL_VISIBILITY._serialized_start=368 + _ACL_VISIBILITY._serialized_end=432 + _LIMITS._serialized_start=435 + _LIMITS._serialized_end=822 + _STREAMINGDISPOSITION._serialized_start=825 + _STREAMINGDISPOSITION._serialized_end=1320 + _STREAMINGDISPOSITION_FROMTIME._serialized_start=1155 + _STREAMINGDISPOSITION_FROMTIME._serialized_end=1212 + _STREAMINGDISPOSITION_TIMEAGO._serialized_start=1214 + _STREAMINGDISPOSITION_TIMEAGO._serialized_end=1268 + _STREAMINGDISPOSITION_FROMLASTCHECKPOINT._serialized_start=1270 + _STREAMINGDISPOSITION_FROMLASTCHECKPOINT._serialized_end=1305 + _QUERYCONTENT._serialized_start=1323 + _QUERYCONTENT._serialized_end=1919 + _QUERYCONTENT_EXECUTIONSETTINGSENTRY._serialized_start=1727 + _QUERYCONTENT_EXECUTIONSETTINGSENTRY._serialized_end=1783 + _QUERYCONTENT_QUERYTYPE._serialized_start=1785 + _QUERYCONTENT_QUERYTYPE._serialized_end=1854 + _QUERYCONTENT_QUERYSYNTAX._serialized_start=1856 + _QUERYCONTENT_QUERYSYNTAX._serialized_end=1919 + _COMMONMETA._serialized_start=1922 + _COMMONMETA._serialized_end=2151 + _QUERYMETA._serialized_start=2154 + _QUERYMETA._serialized_end=2985 + _QUERYMETA_COMPUTESTATUS._serialized_start=2716 + _QUERYMETA_COMPUTESTATUS._serialized_end=2975 + _BRIEFQUERY._serialized_start=2988 + _BRIEFQUERY._serialized_end=3189 + _QUERYPLAN._serialized_start=3191 + _QUERYPLAN._serialized_end=3216 + _QUERYAST._serialized_start=3218 + _QUERYAST._serialized_end=3242 + _RESULTSETMETA._serialized_start=3244 + _RESULTSETMETA._serialized_end=3337 + _QUERY._serialized_start=3340 + _QUERY._serialized_end=3714 + _QUERYSTATISTICS._serialized_start=3716 + _QUERYSTATISTICS._serialized_end=3747 + _CREATEQUERYREQUEST._serialized_start=3750 + _CREATEQUERYREQUEST._serialized_end=4020 + _CREATEQUERYRESPONSE._serialized_start=4022 + _CREATEQUERYRESPONSE._serialized_end=4089 + _CREATEQUERYRESULT._serialized_start=4091 + _CREATEQUERYRESULT._serialized_end=4137 + _LISTQUERIESREQUEST._serialized_start=4140 + _LISTQUERIESREQUEST._serialized_end=4671 + _LISTQUERIESREQUEST_FILTER._serialized_start=4339 + _LISTQUERIESREQUEST_FILTER._serialized_end=4671 + _LISTQUERIESRESPONSE._serialized_start=4673 + _LISTQUERIESRESPONSE._serialized_end=4740 + _LISTQUERIESRESULT._serialized_start=4742 + _LISTQUERIESRESULT._serialized_end=4838 + _DESCRIBEQUERYREQUEST._serialized_start=4840 + _DESCRIBEQUERYREQUEST._serialized_end=4952 + _DESCRIBEQUERYRESPONSE._serialized_start=4954 + _DESCRIBEQUERYRESPONSE._serialized_end=5023 + _DESCRIBEQUERYRESULT._serialized_start=5025 + _DESCRIBEQUERYRESULT._serialized_end=5084 + _GETQUERYSTATUSREQUEST._serialized_start=5086 + _GETQUERYSTATUSREQUEST._serialized_end=5199 + _GETQUERYSTATUSRESPONSE._serialized_start=5201 + _GETQUERYSTATUSRESPONSE._serialized_end=5271 + _GETQUERYSTATUSRESULT._serialized_start=5273 + _GETQUERYSTATUSRESULT._serialized_end=5375 + _DELETEQUERYREQUEST._serialized_start=5378 + _DELETEQUERYREQUEST._serialized_end=5559 + _DELETEQUERYRESPONSE._serialized_start=5561 + _DELETEQUERYRESPONSE._serialized_end=5628 + _DELETEQUERYRESULT._serialized_start=5630 + _DELETEQUERYRESULT._serialized_end=5649 + _MODIFYQUERYREQUEST._serialized_start=5652 + _MODIFYQUERYREQUEST._serialized_end=6046 + _MODIFYQUERYRESPONSE._serialized_start=6048 + _MODIFYQUERYRESPONSE._serialized_end=6115 + _MODIFYQUERYRESULT._serialized_start=6117 + _MODIFYQUERYRESULT._serialized_end=6136 + _CONTROLQUERYREQUEST._serialized_start=6139 + _CONTROLQUERYREQUEST._serialized_end=6366 + _CONTROLQUERYRESPONSE._serialized_start=6368 + _CONTROLQUERYRESPONSE._serialized_end=6436 + _CONTROLQUERYRESULT._serialized_start=6438 + _CONTROLQUERYRESULT._serialized_end=6458 + _BRIEFJOB._serialized_start=6461 + _BRIEFJOB._serialized_end=6698 + _JOB._serialized_start=6701 + _JOB._serialized_end=7216 + _LISTJOBSREQUEST._serialized_start=7219 + _LISTJOBSREQUEST._serialized_end=7487 + _LISTJOBSREQUEST_FILTER._serialized_start=7429 + _LISTJOBSREQUEST_FILTER._serialized_end=7487 + _LISTJOBSRESPONSE._serialized_start=7489 + _LISTJOBSRESPONSE._serialized_end=7553 + _LISTJOBSRESULT._serialized_start=7555 + _LISTJOBSRESULT._serialized_end=7644 + _DESCRIBEJOBREQUEST._serialized_start=7646 + _DESCRIBEJOBREQUEST._serialized_end=7754 + _DESCRIBEJOBRESPONSE._serialized_start=7756 + _DESCRIBEJOBRESPONSE._serialized_end=7823 + _DESCRIBEJOBRESULT._serialized_start=7825 + _DESCRIBEJOBRESULT._serialized_end=7878 + _CURRENTIAMTOKENAUTH._serialized_start=7880 + _CURRENTIAMTOKENAUTH._serialized_end=7901 + _NONEAUTH._serialized_start=7903 + _NONEAUTH._serialized_end=7913 + _SERVICEACCOUNTAUTH._serialized_start=7915 + _SERVICEACCOUNTAUTH._serialized_end=7956 + _IAMAUTH._serialized_start=7959 + _IAMAUTH._serialized_end=8145 + _DATASTREAMS._serialized_start=8148 + _DATASTREAMS._serialized_end=8300 + _MONITORING._serialized_start=8302 + _MONITORING._serialized_end=8405 + _YDBDATABASE._serialized_start=8408 + _YDBDATABASE._serialized_end=8560 + _CLICKHOUSECLUSTER._serialized_start=8563 + _CLICKHOUSECLUSTER._serialized_end=8811 + _OBJECTSTORAGECONNECTION._serialized_start=8813 + _OBJECTSTORAGECONNECTION._serialized_end=8902 + _POSTGRESQLCLUSTER._serialized_start=8905 + _POSTGRESQLCLUSTER._serialized_end=9178 + _CONNECTIONSETTING._serialized_start=9181 + _CONNECTIONSETTING._serialized_end=9739 + _CONNECTIONSETTING_CONNECTIONTYPE._serialized_start=9556 + _CONNECTIONSETTING_CONNECTIONTYPE._serialized_end=9725 + _CONNECTIONCONTENT._serialized_start=9742 + _CONNECTIONCONTENT._serialized_end=9904 + _CONNECTION._serialized_start=9906 + _CONNECTION._serialized_end=10012 + _CREATECONNECTIONREQUEST._serialized_start=10015 + _CREATECONNECTIONREQUEST._serialized_end=10185 + _CREATECONNECTIONRESPONSE._serialized_start=10187 + _CREATECONNECTIONRESPONSE._serialized_end=10259 + _CREATECONNECTIONRESULT._serialized_start=10261 + _CREATECONNECTIONRESULT._serialized_end=10321 + _LISTCONNECTIONSREQUEST._serialized_start=10324 + _LISTCONNECTIONSREQUEST._serialized_end=10712 + _LISTCONNECTIONSREQUEST_FILTER._serialized_start=10531 + _LISTCONNECTIONSREQUEST_FILTER._serialized_end=10712 + _LISTCONNECTIONSRESPONSE._serialized_start=10714 + _LISTCONNECTIONSRESPONSE._serialized_end=10785 + _LISTCONNECTIONSRESULT._serialized_start=10787 + _LISTCONNECTIONSRESULT._serialized_end=10892 + _DESCRIBECONNECTIONREQUEST._serialized_start=10894 + _DESCRIBECONNECTIONREQUEST._serialized_end=11016 + _DESCRIBECONNECTIONRESPONSE._serialized_start=11018 + _DESCRIBECONNECTIONRESPONSE._serialized_end=11092 + _DESCRIBECONNECTIONRESULT._serialized_start=11094 + _DESCRIBECONNECTIONRESULT._serialized_end=11168 + _MODIFYCONNECTIONREQUEST._serialized_start=11171 + _MODIFYCONNECTIONREQUEST._serialized_end=11414 + _MODIFYCONNECTIONRESPONSE._serialized_start=11416 + _MODIFYCONNECTIONRESPONSE._serialized_end=11488 + _MODIFYCONNECTIONRESULT._serialized_start=11490 + _MODIFYCONNECTIONRESULT._serialized_end=11514 + _DELETECONNECTIONREQUEST._serialized_start=11517 + _DELETECONNECTIONREQUEST._serialized_end=11708 + _DELETECONNECTIONRESPONSE._serialized_start=11710 + _DELETECONNECTIONRESPONSE._serialized_end=11782 + _DELETECONNECTIONRESULT._serialized_start=11784 + _DELETECONNECTIONRESULT._serialized_end=11808 + _TESTCONNECTIONREQUEST._serialized_start=11811 + _TESTCONNECTIONREQUEST._serialized_end=11945 + _TESTCONNECTIONRESPONSE._serialized_start=11947 + _TESTCONNECTIONRESPONSE._serialized_end=12017 + _TESTCONNECTIONRESULT._serialized_start=12019 + _TESTCONNECTIONRESULT._serialized_end=12041 + _GETRESULTDATAREQUEST._serialized_start=12044 + _GETRESULTDATAREQUEST._serialized_end=12248 + _GETRESULTDATARESPONSE._serialized_start=12250 + _GETRESULTDATARESPONSE._serialized_end=12319 + _GETRESULTDATARESULT._serialized_start=12321 + _GETRESULTDATARESULT._serialized_end=12378 + _SCHEMA._serialized_start=12380 + _SCHEMA._serialized_end=12426 + _DATASTREAMSBINDING._serialized_start=12429 + _DATASTREAMSBINDING._serialized_end=12719 + _DATASTREAMSBINDING_FORMATSETTINGENTRY._serialized_start=12667 + _DATASTREAMSBINDING_FORMATSETTINGENTRY._serialized_end=12719 + _OBJECTSTORAGEBINDING._serialized_start=12722 + _OBJECTSTORAGEBINDING._serialized_end=13252 + _OBJECTSTORAGEBINDING_SUBSET._serialized_start=12808 + _OBJECTSTORAGEBINDING_SUBSET._serialized_end=13252 + _OBJECTSTORAGEBINDING_SUBSET_FORMATSETTINGENTRY._serialized_start=12667 + _OBJECTSTORAGEBINDING_SUBSET_FORMATSETTINGENTRY._serialized_end=12719 + _OBJECTSTORAGEBINDING_SUBSET_PROJECTIONENTRY._serialized_start=13203 + _OBJECTSTORAGEBINDING_SUBSET_PROJECTIONENTRY._serialized_end=13252 + _BINDINGSETTING._serialized_start=13255 + _BINDINGSETTING._serialized_end=13489 + _BINDINGSETTING_BINDINGTYPE._serialized_start=13397 + _BINDINGSETTING_BINDINGTYPE._serialized_end=13478 + _BRIEFBINDING._serialized_start=13492 + _BRIEFBINDING._serialized_end=13721 + _BINDINGCONTENT._serialized_start=13724 + _BINDINGCONTENT._serialized_end=13916 + _BINDING._serialized_start=13918 + _BINDING._serialized_end=14018 + _CREATEBINDINGREQUEST._serialized_start=14021 + _CREATEBINDINGREQUEST._serialized_end=14185 + _CREATEBINDINGRESPONSE._serialized_start=14187 + _CREATEBINDINGRESPONSE._serialized_end=14256 + _CREATEBINDINGRESULT._serialized_start=14258 + _CREATEBINDINGRESULT._serialized_end=14312 + _LISTBINDINGSREQUEST._serialized_start=14315 + _LISTBINDINGSREQUEST._serialized_end=14654 + _LISTBINDINGSREQUEST_FILTER._serialized_start=14516 + _LISTBINDINGSREQUEST_FILTER._serialized_end=14654 + _LISTBINDINGSRESPONSE._serialized_start=14656 + _LISTBINDINGSRESPONSE._serialized_end=14724 + _LISTBINDINGSRESULT._serialized_start=14726 + _LISTBINDINGSRESULT._serialized_end=14827 + _DESCRIBEBINDINGREQUEST._serialized_start=14829 + _DESCRIBEBINDINGREQUEST._serialized_end=14945 + _DESCRIBEBINDINGRESPONSE._serialized_start=14947 + _DESCRIBEBINDINGRESPONSE._serialized_end=15018 + _DESCRIBEBINDINGRESULT._serialized_start=15020 + _DESCRIBEBINDINGRESULT._serialized_end=15085 + _MODIFYBINDINGREQUEST._serialized_start=15088 + _MODIFYBINDINGREQUEST._serialized_end=15322 + _MODIFYBINDINGRESPONSE._serialized_start=15324 + _MODIFYBINDINGRESPONSE._serialized_end=15393 + _MODIFYBINDINGRESULT._serialized_start=15395 + _MODIFYBINDINGRESULT._serialized_end=15416 + _DELETEBINDINGREQUEST._serialized_start=15419 + _DELETEBINDINGREQUEST._serialized_end=15604 + _DELETEBINDINGRESPONSE._serialized_start=15606 + _DELETEBINDINGRESPONSE._serialized_end=15675 + _DELETEBINDINGRESULT._serialized_start=15677 + _DELETEBINDINGRESULT._serialized_end=15698 +# @@protoc_insertion_point(module_scope) diff --git a/ydb/_grpc/v5/draft/protos/ydb_federated_query_pb2.pyi b/ydb/_grpc/v5/draft/protos/ydb_federated_query_pb2.pyi new file mode 100644 index 00000000..bc950b0a --- /dev/null +++ b/ydb/_grpc/v5/draft/protos/ydb_federated_query_pb2.pyi @@ -0,0 +1,1125 @@ +from protos.annotations import sensitive_pb2 as _sensitive_pb2 +from protos.annotations import validation_pb2 as _validation_pb2 +from protos import ydb_operation_pb2 as _ydb_operation_pb2 +from protos import ydb_value_pb2 as _ydb_value_pb2 +from protos import ydb_issue_message_pb2 as _ydb_issue_message_pb2 +from google.protobuf import duration_pb2 as _duration_pb2 +from google.protobuf import timestamp_pb2 as _timestamp_pb2 +from google.protobuf import empty_pb2 as _empty_pb2 +from google.protobuf.internal import containers as _containers +from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union + +ABORT: QueryAction +ABORT_GRACEFULLY: QueryAction +AUTOMATIC: AutomaticType +AUTOMATIC_TYPE_UNSPECIFIED: AutomaticType +COMPILE: ExecuteMode +DESCRIPTOR: _descriptor.FileDescriptor +EMPTY: StateLoadMode +EXECUTE_MODE_UNSPECIFIED: ExecuteMode +EXPLAIN: ExecuteMode +FROM_LAST_CHECKPOINT: StateLoadMode +NOT_AUTOMATIC: AutomaticType +PARSE: ExecuteMode +PAUSE: QueryAction +PAUSE_GRACEFULLY: QueryAction +QUERY_ACTION_UNSPECIFIED: QueryAction +RESUME: QueryAction +RUN: ExecuteMode +SAVE: ExecuteMode +STATE_LOAD_MODE_UNSPECIFIED: StateLoadMode +VALIDATE: ExecuteMode + +class Acl(_message.Message): + __slots__ = ["visibility"] + class Visibility(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + PRIVATE: Acl.Visibility + SCOPE: Acl.Visibility + VISIBILITY_FIELD_NUMBER: _ClassVar[int] + VISIBILITY_UNSPECIFIED: Acl.Visibility + visibility: Acl.Visibility + def __init__(self, visibility: _Optional[_Union[Acl.Visibility, str]] = ...) -> None: ... + +class Binding(_message.Message): + __slots__ = ["content", "meta"] + CONTENT_FIELD_NUMBER: _ClassVar[int] + META_FIELD_NUMBER: _ClassVar[int] + content: BindingContent + meta: CommonMeta + def __init__(self, content: _Optional[_Union[BindingContent, _Mapping]] = ..., meta: _Optional[_Union[CommonMeta, _Mapping]] = ...) -> None: ... + +class BindingContent(_message.Message): + __slots__ = ["acl", "connection_id", "description", "name", "setting"] + ACL_FIELD_NUMBER: _ClassVar[int] + CONNECTION_ID_FIELD_NUMBER: _ClassVar[int] + DESCRIPTION_FIELD_NUMBER: _ClassVar[int] + NAME_FIELD_NUMBER: _ClassVar[int] + SETTING_FIELD_NUMBER: _ClassVar[int] + acl: Acl + connection_id: str + description: str + name: str + setting: BindingSetting + def __init__(self, name: _Optional[str] = ..., connection_id: _Optional[str] = ..., setting: _Optional[_Union[BindingSetting, _Mapping]] = ..., acl: _Optional[_Union[Acl, _Mapping]] = ..., description: _Optional[str] = ...) -> None: ... + +class BindingSetting(_message.Message): + __slots__ = ["data_streams", "object_storage"] + class BindingType(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + BINDING_TYPE_UNSPECIFIED: BindingSetting.BindingType + DATA_STREAMS: BindingSetting.BindingType + DATA_STREAMS_FIELD_NUMBER: _ClassVar[int] + OBJECT_STORAGE: BindingSetting.BindingType + OBJECT_STORAGE_FIELD_NUMBER: _ClassVar[int] + data_streams: DataStreamsBinding + object_storage: ObjectStorageBinding + def __init__(self, data_streams: _Optional[_Union[DataStreamsBinding, _Mapping]] = ..., object_storage: _Optional[_Union[ObjectStorageBinding, _Mapping]] = ...) -> None: ... + +class BriefBinding(_message.Message): + __slots__ = ["connection_id", "meta", "name", "type", "visibility"] + CONNECTION_ID_FIELD_NUMBER: _ClassVar[int] + META_FIELD_NUMBER: _ClassVar[int] + NAME_FIELD_NUMBER: _ClassVar[int] + TYPE_FIELD_NUMBER: _ClassVar[int] + VISIBILITY_FIELD_NUMBER: _ClassVar[int] + connection_id: str + meta: CommonMeta + name: str + type: BindingSetting.BindingType + visibility: Acl.Visibility + def __init__(self, name: _Optional[str] = ..., connection_id: _Optional[str] = ..., meta: _Optional[_Union[CommonMeta, _Mapping]] = ..., type: _Optional[_Union[BindingSetting.BindingType, str]] = ..., visibility: _Optional[_Union[Acl.Visibility, str]] = ...) -> None: ... + +class BriefJob(_message.Message): + __slots__ = ["automatic", "expire_at", "meta", "query_meta", "query_name", "visibility"] + AUTOMATIC_FIELD_NUMBER: _ClassVar[int] + EXPIRE_AT_FIELD_NUMBER: _ClassVar[int] + META_FIELD_NUMBER: _ClassVar[int] + QUERY_META_FIELD_NUMBER: _ClassVar[int] + QUERY_NAME_FIELD_NUMBER: _ClassVar[int] + VISIBILITY_FIELD_NUMBER: _ClassVar[int] + automatic: bool + expire_at: _timestamp_pb2.Timestamp + meta: CommonMeta + query_meta: QueryMeta + query_name: str + visibility: Acl.Visibility + def __init__(self, meta: _Optional[_Union[CommonMeta, _Mapping]] = ..., query_meta: _Optional[_Union[QueryMeta, _Mapping]] = ..., query_name: _Optional[str] = ..., visibility: _Optional[_Union[Acl.Visibility, str]] = ..., automatic: bool = ..., expire_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ...) -> None: ... + +class BriefQuery(_message.Message): + __slots__ = ["automatic", "meta", "name", "type", "visibility"] + AUTOMATIC_FIELD_NUMBER: _ClassVar[int] + META_FIELD_NUMBER: _ClassVar[int] + NAME_FIELD_NUMBER: _ClassVar[int] + TYPE_FIELD_NUMBER: _ClassVar[int] + VISIBILITY_FIELD_NUMBER: _ClassVar[int] + automatic: bool + meta: QueryMeta + name: str + type: QueryContent.QueryType + visibility: Acl.Visibility + def __init__(self, type: _Optional[_Union[QueryContent.QueryType, str]] = ..., name: _Optional[str] = ..., meta: _Optional[_Union[QueryMeta, _Mapping]] = ..., visibility: _Optional[_Union[Acl.Visibility, str]] = ..., automatic: bool = ...) -> None: ... + +class ClickHouseCluster(_message.Message): + __slots__ = ["auth", "database_id", "database_name", "host", "login", "password", "port", "secure"] + AUTH_FIELD_NUMBER: _ClassVar[int] + DATABASE_ID_FIELD_NUMBER: _ClassVar[int] + DATABASE_NAME_FIELD_NUMBER: _ClassVar[int] + HOST_FIELD_NUMBER: _ClassVar[int] + LOGIN_FIELD_NUMBER: _ClassVar[int] + PASSWORD_FIELD_NUMBER: _ClassVar[int] + PORT_FIELD_NUMBER: _ClassVar[int] + SECURE_FIELD_NUMBER: _ClassVar[int] + auth: IamAuth + database_id: str + database_name: str + host: str + login: str + password: str + port: int + secure: bool + def __init__(self, database_id: _Optional[str] = ..., database_name: _Optional[str] = ..., login: _Optional[str] = ..., password: _Optional[str] = ..., auth: _Optional[_Union[IamAuth, _Mapping]] = ..., host: _Optional[str] = ..., port: _Optional[int] = ..., secure: bool = ...) -> None: ... + +class CommonMeta(_message.Message): + __slots__ = ["created_at", "created_by", "id", "modified_at", "modified_by", "revision"] + CREATED_AT_FIELD_NUMBER: _ClassVar[int] + CREATED_BY_FIELD_NUMBER: _ClassVar[int] + ID_FIELD_NUMBER: _ClassVar[int] + MODIFIED_AT_FIELD_NUMBER: _ClassVar[int] + MODIFIED_BY_FIELD_NUMBER: _ClassVar[int] + REVISION_FIELD_NUMBER: _ClassVar[int] + created_at: _timestamp_pb2.Timestamp + created_by: str + id: str + modified_at: _timestamp_pb2.Timestamp + modified_by: str + revision: int + def __init__(self, id: _Optional[str] = ..., created_by: _Optional[str] = ..., modified_by: _Optional[str] = ..., created_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., modified_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., revision: _Optional[int] = ...) -> None: ... + +class Connection(_message.Message): + __slots__ = ["content", "meta"] + CONTENT_FIELD_NUMBER: _ClassVar[int] + META_FIELD_NUMBER: _ClassVar[int] + content: ConnectionContent + meta: CommonMeta + def __init__(self, content: _Optional[_Union[ConnectionContent, _Mapping]] = ..., meta: _Optional[_Union[CommonMeta, _Mapping]] = ...) -> None: ... + +class ConnectionContent(_message.Message): + __slots__ = ["acl", "description", "name", "setting"] + ACL_FIELD_NUMBER: _ClassVar[int] + DESCRIPTION_FIELD_NUMBER: _ClassVar[int] + NAME_FIELD_NUMBER: _ClassVar[int] + SETTING_FIELD_NUMBER: _ClassVar[int] + acl: Acl + description: str + name: str + setting: ConnectionSetting + def __init__(self, name: _Optional[str] = ..., setting: _Optional[_Union[ConnectionSetting, _Mapping]] = ..., acl: _Optional[_Union[Acl, _Mapping]] = ..., description: _Optional[str] = ...) -> None: ... + +class ConnectionSetting(_message.Message): + __slots__ = ["clickhouse_cluster", "data_streams", "monitoring", "object_storage", "postgresql_cluster", "ydb_database"] + class ConnectionType(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + CLICKHOUSE_CLUSTER: ConnectionSetting.ConnectionType + CLICKHOUSE_CLUSTER_FIELD_NUMBER: _ClassVar[int] + CONNECTION_TYPE_UNSPECIFIED: ConnectionSetting.ConnectionType + DATA_STREAMS: ConnectionSetting.ConnectionType + DATA_STREAMS_FIELD_NUMBER: _ClassVar[int] + MONITORING: ConnectionSetting.ConnectionType + MONITORING_FIELD_NUMBER: _ClassVar[int] + OBJECT_STORAGE: ConnectionSetting.ConnectionType + OBJECT_STORAGE_FIELD_NUMBER: _ClassVar[int] + POSTGRESQL_CLUSTER: ConnectionSetting.ConnectionType + POSTGRESQL_CLUSTER_FIELD_NUMBER: _ClassVar[int] + YDB_DATABASE: ConnectionSetting.ConnectionType + YDB_DATABASE_FIELD_NUMBER: _ClassVar[int] + clickhouse_cluster: ClickHouseCluster + data_streams: DataStreams + monitoring: Monitoring + object_storage: ObjectStorageConnection + postgresql_cluster: PostgreSQLCluster + ydb_database: YdbDatabase + def __init__(self, ydb_database: _Optional[_Union[YdbDatabase, _Mapping]] = ..., clickhouse_cluster: _Optional[_Union[ClickHouseCluster, _Mapping]] = ..., data_streams: _Optional[_Union[DataStreams, _Mapping]] = ..., object_storage: _Optional[_Union[ObjectStorageConnection, _Mapping]] = ..., monitoring: _Optional[_Union[Monitoring, _Mapping]] = ..., postgresql_cluster: _Optional[_Union[PostgreSQLCluster, _Mapping]] = ...) -> None: ... + +class ControlQueryRequest(_message.Message): + __slots__ = ["action", "idempotency_key", "operation_params", "previous_revision", "query_id"] + ACTION_FIELD_NUMBER: _ClassVar[int] + IDEMPOTENCY_KEY_FIELD_NUMBER: _ClassVar[int] + OPERATION_PARAMS_FIELD_NUMBER: _ClassVar[int] + PREVIOUS_REVISION_FIELD_NUMBER: _ClassVar[int] + QUERY_ID_FIELD_NUMBER: _ClassVar[int] + action: QueryAction + idempotency_key: str + operation_params: _ydb_operation_pb2.OperationParams + previous_revision: int + query_id: str + def __init__(self, operation_params: _Optional[_Union[_ydb_operation_pb2.OperationParams, _Mapping]] = ..., query_id: _Optional[str] = ..., action: _Optional[_Union[QueryAction, str]] = ..., previous_revision: _Optional[int] = ..., idempotency_key: _Optional[str] = ...) -> None: ... + +class ControlQueryResponse(_message.Message): + __slots__ = ["operation"] + OPERATION_FIELD_NUMBER: _ClassVar[int] + operation: _ydb_operation_pb2.Operation + def __init__(self, operation: _Optional[_Union[_ydb_operation_pb2.Operation, _Mapping]] = ...) -> None: ... + +class ControlQueryResult(_message.Message): + __slots__ = [] + def __init__(self) -> None: ... + +class CreateBindingRequest(_message.Message): + __slots__ = ["content", "idempotency_key", "operation_params"] + CONTENT_FIELD_NUMBER: _ClassVar[int] + IDEMPOTENCY_KEY_FIELD_NUMBER: _ClassVar[int] + OPERATION_PARAMS_FIELD_NUMBER: _ClassVar[int] + content: BindingContent + idempotency_key: str + operation_params: _ydb_operation_pb2.OperationParams + def __init__(self, operation_params: _Optional[_Union[_ydb_operation_pb2.OperationParams, _Mapping]] = ..., content: _Optional[_Union[BindingContent, _Mapping]] = ..., idempotency_key: _Optional[str] = ...) -> None: ... + +class CreateBindingResponse(_message.Message): + __slots__ = ["operation"] + OPERATION_FIELD_NUMBER: _ClassVar[int] + operation: _ydb_operation_pb2.Operation + def __init__(self, operation: _Optional[_Union[_ydb_operation_pb2.Operation, _Mapping]] = ...) -> None: ... + +class CreateBindingResult(_message.Message): + __slots__ = ["binding_id"] + BINDING_ID_FIELD_NUMBER: _ClassVar[int] + binding_id: str + def __init__(self, binding_id: _Optional[str] = ...) -> None: ... + +class CreateConnectionRequest(_message.Message): + __slots__ = ["content", "idempotency_key", "operation_params"] + CONTENT_FIELD_NUMBER: _ClassVar[int] + IDEMPOTENCY_KEY_FIELD_NUMBER: _ClassVar[int] + OPERATION_PARAMS_FIELD_NUMBER: _ClassVar[int] + content: ConnectionContent + idempotency_key: str + operation_params: _ydb_operation_pb2.OperationParams + def __init__(self, operation_params: _Optional[_Union[_ydb_operation_pb2.OperationParams, _Mapping]] = ..., content: _Optional[_Union[ConnectionContent, _Mapping]] = ..., idempotency_key: _Optional[str] = ...) -> None: ... + +class CreateConnectionResponse(_message.Message): + __slots__ = ["operation"] + OPERATION_FIELD_NUMBER: _ClassVar[int] + operation: _ydb_operation_pb2.Operation + def __init__(self, operation: _Optional[_Union[_ydb_operation_pb2.Operation, _Mapping]] = ...) -> None: ... + +class CreateConnectionResult(_message.Message): + __slots__ = ["connection_id"] + CONNECTION_ID_FIELD_NUMBER: _ClassVar[int] + connection_id: str + def __init__(self, connection_id: _Optional[str] = ...) -> None: ... + +class CreateQueryRequest(_message.Message): + __slots__ = ["content", "disposition", "execute_mode", "idempotency_key", "operation_params"] + CONTENT_FIELD_NUMBER: _ClassVar[int] + DISPOSITION_FIELD_NUMBER: _ClassVar[int] + EXECUTE_MODE_FIELD_NUMBER: _ClassVar[int] + IDEMPOTENCY_KEY_FIELD_NUMBER: _ClassVar[int] + OPERATION_PARAMS_FIELD_NUMBER: _ClassVar[int] + content: QueryContent + disposition: StreamingDisposition + execute_mode: ExecuteMode + idempotency_key: str + operation_params: _ydb_operation_pb2.OperationParams + def __init__(self, operation_params: _Optional[_Union[_ydb_operation_pb2.OperationParams, _Mapping]] = ..., content: _Optional[_Union[QueryContent, _Mapping]] = ..., execute_mode: _Optional[_Union[ExecuteMode, str]] = ..., disposition: _Optional[_Union[StreamingDisposition, _Mapping]] = ..., idempotency_key: _Optional[str] = ...) -> None: ... + +class CreateQueryResponse(_message.Message): + __slots__ = ["operation"] + OPERATION_FIELD_NUMBER: _ClassVar[int] + operation: _ydb_operation_pb2.Operation + def __init__(self, operation: _Optional[_Union[_ydb_operation_pb2.Operation, _Mapping]] = ...) -> None: ... + +class CreateQueryResult(_message.Message): + __slots__ = ["query_id"] + QUERY_ID_FIELD_NUMBER: _ClassVar[int] + query_id: str + def __init__(self, query_id: _Optional[str] = ...) -> None: ... + +class CurrentIAMTokenAuth(_message.Message): + __slots__ = [] + def __init__(self) -> None: ... + +class DataStreams(_message.Message): + __slots__ = ["auth", "database", "database_id", "endpoint", "secure"] + AUTH_FIELD_NUMBER: _ClassVar[int] + DATABASE_FIELD_NUMBER: _ClassVar[int] + DATABASE_ID_FIELD_NUMBER: _ClassVar[int] + ENDPOINT_FIELD_NUMBER: _ClassVar[int] + SECURE_FIELD_NUMBER: _ClassVar[int] + auth: IamAuth + database: str + database_id: str + endpoint: str + secure: bool + def __init__(self, database_id: _Optional[str] = ..., auth: _Optional[_Union[IamAuth, _Mapping]] = ..., endpoint: _Optional[str] = ..., database: _Optional[str] = ..., secure: bool = ...) -> None: ... + +class DataStreamsBinding(_message.Message): + __slots__ = ["compression", "format", "format_setting", "schema", "stream_name"] + class FormatSettingEntry(_message.Message): + __slots__ = ["key", "value"] + KEY_FIELD_NUMBER: _ClassVar[int] + VALUE_FIELD_NUMBER: _ClassVar[int] + key: str + value: str + def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ... + COMPRESSION_FIELD_NUMBER: _ClassVar[int] + FORMAT_FIELD_NUMBER: _ClassVar[int] + FORMAT_SETTING_FIELD_NUMBER: _ClassVar[int] + SCHEMA_FIELD_NUMBER: _ClassVar[int] + STREAM_NAME_FIELD_NUMBER: _ClassVar[int] + compression: str + format: str + format_setting: _containers.ScalarMap[str, str] + schema: Schema + stream_name: str + def __init__(self, stream_name: _Optional[str] = ..., format: _Optional[str] = ..., compression: _Optional[str] = ..., schema: _Optional[_Union[Schema, _Mapping]] = ..., format_setting: _Optional[_Mapping[str, str]] = ...) -> None: ... + +class DeleteBindingRequest(_message.Message): + __slots__ = ["binding_id", "idempotency_key", "operation_params", "previous_revision"] + BINDING_ID_FIELD_NUMBER: _ClassVar[int] + IDEMPOTENCY_KEY_FIELD_NUMBER: _ClassVar[int] + OPERATION_PARAMS_FIELD_NUMBER: _ClassVar[int] + PREVIOUS_REVISION_FIELD_NUMBER: _ClassVar[int] + binding_id: str + idempotency_key: str + operation_params: _ydb_operation_pb2.OperationParams + previous_revision: int + def __init__(self, operation_params: _Optional[_Union[_ydb_operation_pb2.OperationParams, _Mapping]] = ..., binding_id: _Optional[str] = ..., previous_revision: _Optional[int] = ..., idempotency_key: _Optional[str] = ...) -> None: ... + +class DeleteBindingResponse(_message.Message): + __slots__ = ["operation"] + OPERATION_FIELD_NUMBER: _ClassVar[int] + operation: _ydb_operation_pb2.Operation + def __init__(self, operation: _Optional[_Union[_ydb_operation_pb2.Operation, _Mapping]] = ...) -> None: ... + +class DeleteBindingResult(_message.Message): + __slots__ = [] + def __init__(self) -> None: ... + +class DeleteConnectionRequest(_message.Message): + __slots__ = ["connection_id", "idempotency_key", "operation_params", "previous_revision"] + CONNECTION_ID_FIELD_NUMBER: _ClassVar[int] + IDEMPOTENCY_KEY_FIELD_NUMBER: _ClassVar[int] + OPERATION_PARAMS_FIELD_NUMBER: _ClassVar[int] + PREVIOUS_REVISION_FIELD_NUMBER: _ClassVar[int] + connection_id: str + idempotency_key: str + operation_params: _ydb_operation_pb2.OperationParams + previous_revision: int + def __init__(self, operation_params: _Optional[_Union[_ydb_operation_pb2.OperationParams, _Mapping]] = ..., connection_id: _Optional[str] = ..., previous_revision: _Optional[int] = ..., idempotency_key: _Optional[str] = ...) -> None: ... + +class DeleteConnectionResponse(_message.Message): + __slots__ = ["operation"] + OPERATION_FIELD_NUMBER: _ClassVar[int] + operation: _ydb_operation_pb2.Operation + def __init__(self, operation: _Optional[_Union[_ydb_operation_pb2.Operation, _Mapping]] = ...) -> None: ... + +class DeleteConnectionResult(_message.Message): + __slots__ = [] + def __init__(self) -> None: ... + +class DeleteQueryRequest(_message.Message): + __slots__ = ["idempotency_key", "operation_params", "previous_revision", "query_id"] + IDEMPOTENCY_KEY_FIELD_NUMBER: _ClassVar[int] + OPERATION_PARAMS_FIELD_NUMBER: _ClassVar[int] + PREVIOUS_REVISION_FIELD_NUMBER: _ClassVar[int] + QUERY_ID_FIELD_NUMBER: _ClassVar[int] + idempotency_key: str + operation_params: _ydb_operation_pb2.OperationParams + previous_revision: int + query_id: str + def __init__(self, operation_params: _Optional[_Union[_ydb_operation_pb2.OperationParams, _Mapping]] = ..., query_id: _Optional[str] = ..., previous_revision: _Optional[int] = ..., idempotency_key: _Optional[str] = ...) -> None: ... + +class DeleteQueryResponse(_message.Message): + __slots__ = ["operation"] + OPERATION_FIELD_NUMBER: _ClassVar[int] + operation: _ydb_operation_pb2.Operation + def __init__(self, operation: _Optional[_Union[_ydb_operation_pb2.Operation, _Mapping]] = ...) -> None: ... + +class DeleteQueryResult(_message.Message): + __slots__ = [] + def __init__(self) -> None: ... + +class DescribeBindingRequest(_message.Message): + __slots__ = ["binding_id", "operation_params"] + BINDING_ID_FIELD_NUMBER: _ClassVar[int] + OPERATION_PARAMS_FIELD_NUMBER: _ClassVar[int] + binding_id: str + operation_params: _ydb_operation_pb2.OperationParams + def __init__(self, operation_params: _Optional[_Union[_ydb_operation_pb2.OperationParams, _Mapping]] = ..., binding_id: _Optional[str] = ...) -> None: ... + +class DescribeBindingResponse(_message.Message): + __slots__ = ["operation"] + OPERATION_FIELD_NUMBER: _ClassVar[int] + operation: _ydb_operation_pb2.Operation + def __init__(self, operation: _Optional[_Union[_ydb_operation_pb2.Operation, _Mapping]] = ...) -> None: ... + +class DescribeBindingResult(_message.Message): + __slots__ = ["binding"] + BINDING_FIELD_NUMBER: _ClassVar[int] + binding: Binding + def __init__(self, binding: _Optional[_Union[Binding, _Mapping]] = ...) -> None: ... + +class DescribeConnectionRequest(_message.Message): + __slots__ = ["connection_id", "operation_params"] + CONNECTION_ID_FIELD_NUMBER: _ClassVar[int] + OPERATION_PARAMS_FIELD_NUMBER: _ClassVar[int] + connection_id: str + operation_params: _ydb_operation_pb2.OperationParams + def __init__(self, operation_params: _Optional[_Union[_ydb_operation_pb2.OperationParams, _Mapping]] = ..., connection_id: _Optional[str] = ...) -> None: ... + +class DescribeConnectionResponse(_message.Message): + __slots__ = ["operation"] + OPERATION_FIELD_NUMBER: _ClassVar[int] + operation: _ydb_operation_pb2.Operation + def __init__(self, operation: _Optional[_Union[_ydb_operation_pb2.Operation, _Mapping]] = ...) -> None: ... + +class DescribeConnectionResult(_message.Message): + __slots__ = ["connection"] + CONNECTION_FIELD_NUMBER: _ClassVar[int] + connection: Connection + def __init__(self, connection: _Optional[_Union[Connection, _Mapping]] = ...) -> None: ... + +class DescribeJobRequest(_message.Message): + __slots__ = ["job_id", "operation_params"] + JOB_ID_FIELD_NUMBER: _ClassVar[int] + OPERATION_PARAMS_FIELD_NUMBER: _ClassVar[int] + job_id: str + operation_params: _ydb_operation_pb2.OperationParams + def __init__(self, operation_params: _Optional[_Union[_ydb_operation_pb2.OperationParams, _Mapping]] = ..., job_id: _Optional[str] = ...) -> None: ... + +class DescribeJobResponse(_message.Message): + __slots__ = ["operation"] + OPERATION_FIELD_NUMBER: _ClassVar[int] + operation: _ydb_operation_pb2.Operation + def __init__(self, operation: _Optional[_Union[_ydb_operation_pb2.Operation, _Mapping]] = ...) -> None: ... + +class DescribeJobResult(_message.Message): + __slots__ = ["job"] + JOB_FIELD_NUMBER: _ClassVar[int] + job: Job + def __init__(self, job: _Optional[_Union[Job, _Mapping]] = ...) -> None: ... + +class DescribeQueryRequest(_message.Message): + __slots__ = ["operation_params", "query_id"] + OPERATION_PARAMS_FIELD_NUMBER: _ClassVar[int] + QUERY_ID_FIELD_NUMBER: _ClassVar[int] + operation_params: _ydb_operation_pb2.OperationParams + query_id: str + def __init__(self, operation_params: _Optional[_Union[_ydb_operation_pb2.OperationParams, _Mapping]] = ..., query_id: _Optional[str] = ...) -> None: ... + +class DescribeQueryResponse(_message.Message): + __slots__ = ["operation"] + OPERATION_FIELD_NUMBER: _ClassVar[int] + operation: _ydb_operation_pb2.Operation + def __init__(self, operation: _Optional[_Union[_ydb_operation_pb2.Operation, _Mapping]] = ...) -> None: ... + +class DescribeQueryResult(_message.Message): + __slots__ = ["query"] + QUERY_FIELD_NUMBER: _ClassVar[int] + query: Query + def __init__(self, query: _Optional[_Union[Query, _Mapping]] = ...) -> None: ... + +class GetQueryStatusRequest(_message.Message): + __slots__ = ["operation_params", "query_id"] + OPERATION_PARAMS_FIELD_NUMBER: _ClassVar[int] + QUERY_ID_FIELD_NUMBER: _ClassVar[int] + operation_params: _ydb_operation_pb2.OperationParams + query_id: str + def __init__(self, operation_params: _Optional[_Union[_ydb_operation_pb2.OperationParams, _Mapping]] = ..., query_id: _Optional[str] = ...) -> None: ... + +class GetQueryStatusResponse(_message.Message): + __slots__ = ["operation"] + OPERATION_FIELD_NUMBER: _ClassVar[int] + operation: _ydb_operation_pb2.Operation + def __init__(self, operation: _Optional[_Union[_ydb_operation_pb2.Operation, _Mapping]] = ...) -> None: ... + +class GetQueryStatusResult(_message.Message): + __slots__ = ["meta_revision", "status"] + META_REVISION_FIELD_NUMBER: _ClassVar[int] + STATUS_FIELD_NUMBER: _ClassVar[int] + meta_revision: int + status: QueryMeta.ComputeStatus + def __init__(self, status: _Optional[_Union[QueryMeta.ComputeStatus, str]] = ..., meta_revision: _Optional[int] = ...) -> None: ... + +class GetResultDataRequest(_message.Message): + __slots__ = ["limit", "offset", "operation_params", "query_id", "result_set_index"] + LIMIT_FIELD_NUMBER: _ClassVar[int] + OFFSET_FIELD_NUMBER: _ClassVar[int] + OPERATION_PARAMS_FIELD_NUMBER: _ClassVar[int] + QUERY_ID_FIELD_NUMBER: _ClassVar[int] + RESULT_SET_INDEX_FIELD_NUMBER: _ClassVar[int] + limit: int + offset: int + operation_params: _ydb_operation_pb2.OperationParams + query_id: str + result_set_index: int + def __init__(self, operation_params: _Optional[_Union[_ydb_operation_pb2.OperationParams, _Mapping]] = ..., query_id: _Optional[str] = ..., result_set_index: _Optional[int] = ..., offset: _Optional[int] = ..., limit: _Optional[int] = ...) -> None: ... + +class GetResultDataResponse(_message.Message): + __slots__ = ["operation"] + OPERATION_FIELD_NUMBER: _ClassVar[int] + operation: _ydb_operation_pb2.Operation + def __init__(self, operation: _Optional[_Union[_ydb_operation_pb2.Operation, _Mapping]] = ...) -> None: ... + +class GetResultDataResult(_message.Message): + __slots__ = ["result_set"] + RESULT_SET_FIELD_NUMBER: _ClassVar[int] + result_set: _ydb_value_pb2.ResultSet + def __init__(self, result_set: _Optional[_Union[_ydb_value_pb2.ResultSet, _Mapping]] = ...) -> None: ... + +class IamAuth(_message.Message): + __slots__ = ["current_iam", "none", "service_account"] + CURRENT_IAM_FIELD_NUMBER: _ClassVar[int] + NONE_FIELD_NUMBER: _ClassVar[int] + SERVICE_ACCOUNT_FIELD_NUMBER: _ClassVar[int] + current_iam: CurrentIAMTokenAuth + none: NoneAuth + service_account: ServiceAccountAuth + def __init__(self, current_iam: _Optional[_Union[CurrentIAMTokenAuth, _Mapping]] = ..., service_account: _Optional[_Union[ServiceAccountAuth, _Mapping]] = ..., none: _Optional[_Union[NoneAuth, _Mapping]] = ...) -> None: ... + +class Job(_message.Message): + __slots__ = ["acl", "ast", "automatic", "expire_at", "issue", "meta", "plan", "query_meta", "query_name", "result_set_meta", "statistics", "syntax", "text"] + ACL_FIELD_NUMBER: _ClassVar[int] + AST_FIELD_NUMBER: _ClassVar[int] + AUTOMATIC_FIELD_NUMBER: _ClassVar[int] + EXPIRE_AT_FIELD_NUMBER: _ClassVar[int] + ISSUE_FIELD_NUMBER: _ClassVar[int] + META_FIELD_NUMBER: _ClassVar[int] + PLAN_FIELD_NUMBER: _ClassVar[int] + QUERY_META_FIELD_NUMBER: _ClassVar[int] + QUERY_NAME_FIELD_NUMBER: _ClassVar[int] + RESULT_SET_META_FIELD_NUMBER: _ClassVar[int] + STATISTICS_FIELD_NUMBER: _ClassVar[int] + SYNTAX_FIELD_NUMBER: _ClassVar[int] + TEXT_FIELD_NUMBER: _ClassVar[int] + acl: Acl + ast: QueryAst + automatic: bool + expire_at: _timestamp_pb2.Timestamp + issue: _containers.RepeatedCompositeFieldContainer[_ydb_issue_message_pb2.IssueMessage] + meta: CommonMeta + plan: QueryPlan + query_meta: QueryMeta + query_name: str + result_set_meta: _containers.RepeatedCompositeFieldContainer[ResultSetMeta] + statistics: QueryStatistics + syntax: QueryContent.QuerySyntax + text: str + def __init__(self, meta: _Optional[_Union[CommonMeta, _Mapping]] = ..., text: _Optional[str] = ..., query_meta: _Optional[_Union[QueryMeta, _Mapping]] = ..., plan: _Optional[_Union[QueryPlan, _Mapping]] = ..., issue: _Optional[_Iterable[_Union[_ydb_issue_message_pb2.IssueMessage, _Mapping]]] = ..., statistics: _Optional[_Union[QueryStatistics, _Mapping]] = ..., result_set_meta: _Optional[_Iterable[_Union[ResultSetMeta, _Mapping]]] = ..., ast: _Optional[_Union[QueryAst, _Mapping]] = ..., query_name: _Optional[str] = ..., acl: _Optional[_Union[Acl, _Mapping]] = ..., automatic: bool = ..., expire_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., syntax: _Optional[_Union[QueryContent.QuerySyntax, str]] = ...) -> None: ... + +class Limits(_message.Message): + __slots__ = ["execution_deadline", "execution_timeout", "flow_rate_limit", "max_result_rows", "max_result_size", "memory_limit", "result_ttl", "vcpu_rate_limit", "vcpu_time_limit"] + EXECUTION_DEADLINE_FIELD_NUMBER: _ClassVar[int] + EXECUTION_TIMEOUT_FIELD_NUMBER: _ClassVar[int] + FLOW_RATE_LIMIT_FIELD_NUMBER: _ClassVar[int] + MAX_RESULT_ROWS_FIELD_NUMBER: _ClassVar[int] + MAX_RESULT_SIZE_FIELD_NUMBER: _ClassVar[int] + MEMORY_LIMIT_FIELD_NUMBER: _ClassVar[int] + RESULT_TTL_FIELD_NUMBER: _ClassVar[int] + VCPU_RATE_LIMIT_FIELD_NUMBER: _ClassVar[int] + VCPU_TIME_LIMIT_FIELD_NUMBER: _ClassVar[int] + execution_deadline: _timestamp_pb2.Timestamp + execution_timeout: _duration_pb2.Duration + flow_rate_limit: int + max_result_rows: int + max_result_size: int + memory_limit: int + result_ttl: _duration_pb2.Duration + vcpu_rate_limit: int + vcpu_time_limit: int + def __init__(self, vcpu_rate_limit: _Optional[int] = ..., flow_rate_limit: _Optional[int] = ..., vcpu_time_limit: _Optional[int] = ..., max_result_size: _Optional[int] = ..., max_result_rows: _Optional[int] = ..., memory_limit: _Optional[int] = ..., result_ttl: _Optional[_Union[_duration_pb2.Duration, _Mapping]] = ..., execution_timeout: _Optional[_Union[_duration_pb2.Duration, _Mapping]] = ..., execution_deadline: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ...) -> None: ... + +class ListBindingsRequest(_message.Message): + __slots__ = ["filter", "limit", "operation_params", "page_token"] + class Filter(_message.Message): + __slots__ = ["connection_id", "created_by_me", "name", "visibility"] + CONNECTION_ID_FIELD_NUMBER: _ClassVar[int] + CREATED_BY_ME_FIELD_NUMBER: _ClassVar[int] + NAME_FIELD_NUMBER: _ClassVar[int] + VISIBILITY_FIELD_NUMBER: _ClassVar[int] + connection_id: str + created_by_me: bool + name: str + visibility: Acl.Visibility + def __init__(self, connection_id: _Optional[str] = ..., name: _Optional[str] = ..., created_by_me: bool = ..., visibility: _Optional[_Union[Acl.Visibility, str]] = ...) -> None: ... + FILTER_FIELD_NUMBER: _ClassVar[int] + LIMIT_FIELD_NUMBER: _ClassVar[int] + OPERATION_PARAMS_FIELD_NUMBER: _ClassVar[int] + PAGE_TOKEN_FIELD_NUMBER: _ClassVar[int] + filter: ListBindingsRequest.Filter + limit: int + operation_params: _ydb_operation_pb2.OperationParams + page_token: str + def __init__(self, operation_params: _Optional[_Union[_ydb_operation_pb2.OperationParams, _Mapping]] = ..., page_token: _Optional[str] = ..., limit: _Optional[int] = ..., filter: _Optional[_Union[ListBindingsRequest.Filter, _Mapping]] = ...) -> None: ... + +class ListBindingsResponse(_message.Message): + __slots__ = ["operation"] + OPERATION_FIELD_NUMBER: _ClassVar[int] + operation: _ydb_operation_pb2.Operation + def __init__(self, operation: _Optional[_Union[_ydb_operation_pb2.Operation, _Mapping]] = ...) -> None: ... + +class ListBindingsResult(_message.Message): + __slots__ = ["binding", "next_page_token"] + BINDING_FIELD_NUMBER: _ClassVar[int] + NEXT_PAGE_TOKEN_FIELD_NUMBER: _ClassVar[int] + binding: _containers.RepeatedCompositeFieldContainer[BriefBinding] + next_page_token: str + def __init__(self, binding: _Optional[_Iterable[_Union[BriefBinding, _Mapping]]] = ..., next_page_token: _Optional[str] = ...) -> None: ... + +class ListConnectionsRequest(_message.Message): + __slots__ = ["filter", "limit", "operation_params", "page_token"] + class Filter(_message.Message): + __slots__ = ["connection_type", "created_by_me", "name", "visibility"] + CONNECTION_TYPE_FIELD_NUMBER: _ClassVar[int] + CREATED_BY_ME_FIELD_NUMBER: _ClassVar[int] + NAME_FIELD_NUMBER: _ClassVar[int] + VISIBILITY_FIELD_NUMBER: _ClassVar[int] + connection_type: ConnectionSetting.ConnectionType + created_by_me: bool + name: str + visibility: Acl.Visibility + def __init__(self, name: _Optional[str] = ..., created_by_me: bool = ..., connection_type: _Optional[_Union[ConnectionSetting.ConnectionType, str]] = ..., visibility: _Optional[_Union[Acl.Visibility, str]] = ...) -> None: ... + FILTER_FIELD_NUMBER: _ClassVar[int] + LIMIT_FIELD_NUMBER: _ClassVar[int] + OPERATION_PARAMS_FIELD_NUMBER: _ClassVar[int] + PAGE_TOKEN_FIELD_NUMBER: _ClassVar[int] + filter: ListConnectionsRequest.Filter + limit: int + operation_params: _ydb_operation_pb2.OperationParams + page_token: str + def __init__(self, operation_params: _Optional[_Union[_ydb_operation_pb2.OperationParams, _Mapping]] = ..., page_token: _Optional[str] = ..., limit: _Optional[int] = ..., filter: _Optional[_Union[ListConnectionsRequest.Filter, _Mapping]] = ...) -> None: ... + +class ListConnectionsResponse(_message.Message): + __slots__ = ["operation"] + OPERATION_FIELD_NUMBER: _ClassVar[int] + operation: _ydb_operation_pb2.Operation + def __init__(self, operation: _Optional[_Union[_ydb_operation_pb2.Operation, _Mapping]] = ...) -> None: ... + +class ListConnectionsResult(_message.Message): + __slots__ = ["connection", "next_page_token"] + CONNECTION_FIELD_NUMBER: _ClassVar[int] + NEXT_PAGE_TOKEN_FIELD_NUMBER: _ClassVar[int] + connection: _containers.RepeatedCompositeFieldContainer[Connection] + next_page_token: str + def __init__(self, connection: _Optional[_Iterable[_Union[Connection, _Mapping]]] = ..., next_page_token: _Optional[str] = ...) -> None: ... + +class ListJobsRequest(_message.Message): + __slots__ = ["filter", "limit", "operation_params", "page_token", "query_id"] + class Filter(_message.Message): + __slots__ = ["created_by_me", "query_id"] + CREATED_BY_ME_FIELD_NUMBER: _ClassVar[int] + QUERY_ID_FIELD_NUMBER: _ClassVar[int] + created_by_me: bool + query_id: str + def __init__(self, query_id: _Optional[str] = ..., created_by_me: bool = ...) -> None: ... + FILTER_FIELD_NUMBER: _ClassVar[int] + LIMIT_FIELD_NUMBER: _ClassVar[int] + OPERATION_PARAMS_FIELD_NUMBER: _ClassVar[int] + PAGE_TOKEN_FIELD_NUMBER: _ClassVar[int] + QUERY_ID_FIELD_NUMBER: _ClassVar[int] + filter: ListJobsRequest.Filter + limit: int + operation_params: _ydb_operation_pb2.OperationParams + page_token: str + query_id: str + def __init__(self, operation_params: _Optional[_Union[_ydb_operation_pb2.OperationParams, _Mapping]] = ..., page_token: _Optional[str] = ..., limit: _Optional[int] = ..., query_id: _Optional[str] = ..., filter: _Optional[_Union[ListJobsRequest.Filter, _Mapping]] = ...) -> None: ... + +class ListJobsResponse(_message.Message): + __slots__ = ["operation"] + OPERATION_FIELD_NUMBER: _ClassVar[int] + operation: _ydb_operation_pb2.Operation + def __init__(self, operation: _Optional[_Union[_ydb_operation_pb2.Operation, _Mapping]] = ...) -> None: ... + +class ListJobsResult(_message.Message): + __slots__ = ["job", "next_page_token"] + JOB_FIELD_NUMBER: _ClassVar[int] + NEXT_PAGE_TOKEN_FIELD_NUMBER: _ClassVar[int] + job: _containers.RepeatedCompositeFieldContainer[BriefJob] + next_page_token: str + def __init__(self, job: _Optional[_Iterable[_Union[BriefJob, _Mapping]]] = ..., next_page_token: _Optional[str] = ...) -> None: ... + +class ListQueriesRequest(_message.Message): + __slots__ = ["filter", "limit", "operation_params", "page_token"] + class Filter(_message.Message): + __slots__ = ["automatic", "created_by_me", "mode", "name", "query_type", "status", "visibility"] + AUTOMATIC_FIELD_NUMBER: _ClassVar[int] + CREATED_BY_ME_FIELD_NUMBER: _ClassVar[int] + MODE_FIELD_NUMBER: _ClassVar[int] + NAME_FIELD_NUMBER: _ClassVar[int] + QUERY_TYPE_FIELD_NUMBER: _ClassVar[int] + STATUS_FIELD_NUMBER: _ClassVar[int] + VISIBILITY_FIELD_NUMBER: _ClassVar[int] + automatic: AutomaticType + created_by_me: bool + mode: _containers.RepeatedScalarFieldContainer[ExecuteMode] + name: str + query_type: QueryContent.QueryType + status: _containers.RepeatedScalarFieldContainer[QueryMeta.ComputeStatus] + visibility: Acl.Visibility + def __init__(self, query_type: _Optional[_Union[QueryContent.QueryType, str]] = ..., status: _Optional[_Iterable[_Union[QueryMeta.ComputeStatus, str]]] = ..., mode: _Optional[_Iterable[_Union[ExecuteMode, str]]] = ..., name: _Optional[str] = ..., created_by_me: bool = ..., visibility: _Optional[_Union[Acl.Visibility, str]] = ..., automatic: _Optional[_Union[AutomaticType, str]] = ...) -> None: ... + FILTER_FIELD_NUMBER: _ClassVar[int] + LIMIT_FIELD_NUMBER: _ClassVar[int] + OPERATION_PARAMS_FIELD_NUMBER: _ClassVar[int] + PAGE_TOKEN_FIELD_NUMBER: _ClassVar[int] + filter: ListQueriesRequest.Filter + limit: int + operation_params: _ydb_operation_pb2.OperationParams + page_token: str + def __init__(self, operation_params: _Optional[_Union[_ydb_operation_pb2.OperationParams, _Mapping]] = ..., page_token: _Optional[str] = ..., limit: _Optional[int] = ..., filter: _Optional[_Union[ListQueriesRequest.Filter, _Mapping]] = ...) -> None: ... + +class ListQueriesResponse(_message.Message): + __slots__ = ["operation"] + OPERATION_FIELD_NUMBER: _ClassVar[int] + operation: _ydb_operation_pb2.Operation + def __init__(self, operation: _Optional[_Union[_ydb_operation_pb2.Operation, _Mapping]] = ...) -> None: ... + +class ListQueriesResult(_message.Message): + __slots__ = ["next_page_token", "query"] + NEXT_PAGE_TOKEN_FIELD_NUMBER: _ClassVar[int] + QUERY_FIELD_NUMBER: _ClassVar[int] + next_page_token: str + query: _containers.RepeatedCompositeFieldContainer[BriefQuery] + def __init__(self, query: _Optional[_Iterable[_Union[BriefQuery, _Mapping]]] = ..., next_page_token: _Optional[str] = ...) -> None: ... + +class ModifyBindingRequest(_message.Message): + __slots__ = ["binding_id", "content", "idempotency_key", "operation_params", "previous_revision"] + BINDING_ID_FIELD_NUMBER: _ClassVar[int] + CONTENT_FIELD_NUMBER: _ClassVar[int] + IDEMPOTENCY_KEY_FIELD_NUMBER: _ClassVar[int] + OPERATION_PARAMS_FIELD_NUMBER: _ClassVar[int] + PREVIOUS_REVISION_FIELD_NUMBER: _ClassVar[int] + binding_id: str + content: BindingContent + idempotency_key: str + operation_params: _ydb_operation_pb2.OperationParams + previous_revision: int + def __init__(self, operation_params: _Optional[_Union[_ydb_operation_pb2.OperationParams, _Mapping]] = ..., binding_id: _Optional[str] = ..., content: _Optional[_Union[BindingContent, _Mapping]] = ..., previous_revision: _Optional[int] = ..., idempotency_key: _Optional[str] = ...) -> None: ... + +class ModifyBindingResponse(_message.Message): + __slots__ = ["operation"] + OPERATION_FIELD_NUMBER: _ClassVar[int] + operation: _ydb_operation_pb2.Operation + def __init__(self, operation: _Optional[_Union[_ydb_operation_pb2.Operation, _Mapping]] = ...) -> None: ... + +class ModifyBindingResult(_message.Message): + __slots__ = [] + def __init__(self) -> None: ... + +class ModifyConnectionRequest(_message.Message): + __slots__ = ["connection_id", "content", "idempotency_key", "operation_params", "previous_revision"] + CONNECTION_ID_FIELD_NUMBER: _ClassVar[int] + CONTENT_FIELD_NUMBER: _ClassVar[int] + IDEMPOTENCY_KEY_FIELD_NUMBER: _ClassVar[int] + OPERATION_PARAMS_FIELD_NUMBER: _ClassVar[int] + PREVIOUS_REVISION_FIELD_NUMBER: _ClassVar[int] + connection_id: str + content: ConnectionContent + idempotency_key: str + operation_params: _ydb_operation_pb2.OperationParams + previous_revision: int + def __init__(self, operation_params: _Optional[_Union[_ydb_operation_pb2.OperationParams, _Mapping]] = ..., connection_id: _Optional[str] = ..., content: _Optional[_Union[ConnectionContent, _Mapping]] = ..., previous_revision: _Optional[int] = ..., idempotency_key: _Optional[str] = ...) -> None: ... + +class ModifyConnectionResponse(_message.Message): + __slots__ = ["operation"] + OPERATION_FIELD_NUMBER: _ClassVar[int] + operation: _ydb_operation_pb2.Operation + def __init__(self, operation: _Optional[_Union[_ydb_operation_pb2.Operation, _Mapping]] = ...) -> None: ... + +class ModifyConnectionResult(_message.Message): + __slots__ = [] + def __init__(self) -> None: ... + +class ModifyQueryRequest(_message.Message): + __slots__ = ["content", "disposition", "execute_mode", "idempotency_key", "operation_params", "previous_revision", "query_id", "state_load_mode"] + CONTENT_FIELD_NUMBER: _ClassVar[int] + DISPOSITION_FIELD_NUMBER: _ClassVar[int] + EXECUTE_MODE_FIELD_NUMBER: _ClassVar[int] + IDEMPOTENCY_KEY_FIELD_NUMBER: _ClassVar[int] + OPERATION_PARAMS_FIELD_NUMBER: _ClassVar[int] + PREVIOUS_REVISION_FIELD_NUMBER: _ClassVar[int] + QUERY_ID_FIELD_NUMBER: _ClassVar[int] + STATE_LOAD_MODE_FIELD_NUMBER: _ClassVar[int] + content: QueryContent + disposition: StreamingDisposition + execute_mode: ExecuteMode + idempotency_key: str + operation_params: _ydb_operation_pb2.OperationParams + previous_revision: int + query_id: str + state_load_mode: StateLoadMode + def __init__(self, operation_params: _Optional[_Union[_ydb_operation_pb2.OperationParams, _Mapping]] = ..., query_id: _Optional[str] = ..., content: _Optional[_Union[QueryContent, _Mapping]] = ..., execute_mode: _Optional[_Union[ExecuteMode, str]] = ..., disposition: _Optional[_Union[StreamingDisposition, _Mapping]] = ..., state_load_mode: _Optional[_Union[StateLoadMode, str]] = ..., previous_revision: _Optional[int] = ..., idempotency_key: _Optional[str] = ...) -> None: ... + +class ModifyQueryResponse(_message.Message): + __slots__ = ["operation"] + OPERATION_FIELD_NUMBER: _ClassVar[int] + operation: _ydb_operation_pb2.Operation + def __init__(self, operation: _Optional[_Union[_ydb_operation_pb2.Operation, _Mapping]] = ...) -> None: ... + +class ModifyQueryResult(_message.Message): + __slots__ = [] + def __init__(self) -> None: ... + +class Monitoring(_message.Message): + __slots__ = ["auth", "cluster", "project"] + AUTH_FIELD_NUMBER: _ClassVar[int] + CLUSTER_FIELD_NUMBER: _ClassVar[int] + PROJECT_FIELD_NUMBER: _ClassVar[int] + auth: IamAuth + cluster: str + project: str + def __init__(self, project: _Optional[str] = ..., cluster: _Optional[str] = ..., auth: _Optional[_Union[IamAuth, _Mapping]] = ...) -> None: ... + +class NoneAuth(_message.Message): + __slots__ = [] + def __init__(self) -> None: ... + +class ObjectStorageBinding(_message.Message): + __slots__ = ["subset"] + class Subset(_message.Message): + __slots__ = ["compression", "format", "format_setting", "partitioned_by", "path_pattern", "projection", "schema"] + class FormatSettingEntry(_message.Message): + __slots__ = ["key", "value"] + KEY_FIELD_NUMBER: _ClassVar[int] + VALUE_FIELD_NUMBER: _ClassVar[int] + key: str + value: str + def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ... + class ProjectionEntry(_message.Message): + __slots__ = ["key", "value"] + KEY_FIELD_NUMBER: _ClassVar[int] + VALUE_FIELD_NUMBER: _ClassVar[int] + key: str + value: str + def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ... + COMPRESSION_FIELD_NUMBER: _ClassVar[int] + FORMAT_FIELD_NUMBER: _ClassVar[int] + FORMAT_SETTING_FIELD_NUMBER: _ClassVar[int] + PARTITIONED_BY_FIELD_NUMBER: _ClassVar[int] + PATH_PATTERN_FIELD_NUMBER: _ClassVar[int] + PROJECTION_FIELD_NUMBER: _ClassVar[int] + SCHEMA_FIELD_NUMBER: _ClassVar[int] + compression: str + format: str + format_setting: _containers.ScalarMap[str, str] + partitioned_by: _containers.RepeatedScalarFieldContainer[str] + path_pattern: str + projection: _containers.ScalarMap[str, str] + schema: Schema + def __init__(self, path_pattern: _Optional[str] = ..., format: _Optional[str] = ..., format_setting: _Optional[_Mapping[str, str]] = ..., compression: _Optional[str] = ..., schema: _Optional[_Union[Schema, _Mapping]] = ..., projection: _Optional[_Mapping[str, str]] = ..., partitioned_by: _Optional[_Iterable[str]] = ...) -> None: ... + SUBSET_FIELD_NUMBER: _ClassVar[int] + subset: _containers.RepeatedCompositeFieldContainer[ObjectStorageBinding.Subset] + def __init__(self, subset: _Optional[_Iterable[_Union[ObjectStorageBinding.Subset, _Mapping]]] = ...) -> None: ... + +class ObjectStorageConnection(_message.Message): + __slots__ = ["auth", "bucket"] + AUTH_FIELD_NUMBER: _ClassVar[int] + BUCKET_FIELD_NUMBER: _ClassVar[int] + auth: IamAuth + bucket: str + def __init__(self, bucket: _Optional[str] = ..., auth: _Optional[_Union[IamAuth, _Mapping]] = ...) -> None: ... + +class PostgreSQLCluster(_message.Message): + __slots__ = ["auth", "database_id", "database_name", "host", "login", "password", "port", "schema", "secure"] + AUTH_FIELD_NUMBER: _ClassVar[int] + DATABASE_ID_FIELD_NUMBER: _ClassVar[int] + DATABASE_NAME_FIELD_NUMBER: _ClassVar[int] + HOST_FIELD_NUMBER: _ClassVar[int] + LOGIN_FIELD_NUMBER: _ClassVar[int] + PASSWORD_FIELD_NUMBER: _ClassVar[int] + PORT_FIELD_NUMBER: _ClassVar[int] + SCHEMA_FIELD_NUMBER: _ClassVar[int] + SECURE_FIELD_NUMBER: _ClassVar[int] + auth: IamAuth + database_id: str + database_name: str + host: str + login: str + password: str + port: int + schema: str + secure: bool + def __init__(self, database_id: _Optional[str] = ..., database_name: _Optional[str] = ..., login: _Optional[str] = ..., password: _Optional[str] = ..., schema: _Optional[str] = ..., auth: _Optional[_Union[IamAuth, _Mapping]] = ..., host: _Optional[str] = ..., port: _Optional[int] = ..., secure: bool = ...) -> None: ... + +class Query(_message.Message): + __slots__ = ["ast", "content", "issue", "meta", "plan", "result_set_meta", "statistics", "transient_issue"] + AST_FIELD_NUMBER: _ClassVar[int] + CONTENT_FIELD_NUMBER: _ClassVar[int] + ISSUE_FIELD_NUMBER: _ClassVar[int] + META_FIELD_NUMBER: _ClassVar[int] + PLAN_FIELD_NUMBER: _ClassVar[int] + RESULT_SET_META_FIELD_NUMBER: _ClassVar[int] + STATISTICS_FIELD_NUMBER: _ClassVar[int] + TRANSIENT_ISSUE_FIELD_NUMBER: _ClassVar[int] + ast: QueryAst + content: QueryContent + issue: _containers.RepeatedCompositeFieldContainer[_ydb_issue_message_pb2.IssueMessage] + meta: QueryMeta + plan: QueryPlan + result_set_meta: _containers.RepeatedCompositeFieldContainer[ResultSetMeta] + statistics: QueryStatistics + transient_issue: _containers.RepeatedCompositeFieldContainer[_ydb_issue_message_pb2.IssueMessage] + def __init__(self, meta: _Optional[_Union[QueryMeta, _Mapping]] = ..., content: _Optional[_Union[QueryContent, _Mapping]] = ..., plan: _Optional[_Union[QueryPlan, _Mapping]] = ..., issue: _Optional[_Iterable[_Union[_ydb_issue_message_pb2.IssueMessage, _Mapping]]] = ..., transient_issue: _Optional[_Iterable[_Union[_ydb_issue_message_pb2.IssueMessage, _Mapping]]] = ..., statistics: _Optional[_Union[QueryStatistics, _Mapping]] = ..., result_set_meta: _Optional[_Iterable[_Union[ResultSetMeta, _Mapping]]] = ..., ast: _Optional[_Union[QueryAst, _Mapping]] = ...) -> None: ... + +class QueryAst(_message.Message): + __slots__ = ["data"] + DATA_FIELD_NUMBER: _ClassVar[int] + data: str + def __init__(self, data: _Optional[str] = ...) -> None: ... + +class QueryContent(_message.Message): + __slots__ = ["acl", "automatic", "description", "execution_settings", "limits", "name", "syntax", "text", "type"] + class QuerySyntax(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + class QueryType(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + class ExecutionSettingsEntry(_message.Message): + __slots__ = ["key", "value"] + KEY_FIELD_NUMBER: _ClassVar[int] + VALUE_FIELD_NUMBER: _ClassVar[int] + key: str + value: str + def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ... + ACL_FIELD_NUMBER: _ClassVar[int] + ANALYTICS: QueryContent.QueryType + AUTOMATIC_FIELD_NUMBER: _ClassVar[int] + DESCRIPTION_FIELD_NUMBER: _ClassVar[int] + EXECUTION_SETTINGS_FIELD_NUMBER: _ClassVar[int] + LIMITS_FIELD_NUMBER: _ClassVar[int] + NAME_FIELD_NUMBER: _ClassVar[int] + PG: QueryContent.QuerySyntax + QUERY_SYNTAX_UNSPECIFIED: QueryContent.QuerySyntax + QUERY_TYPE_UNSPECIFIED: QueryContent.QueryType + STREAMING: QueryContent.QueryType + SYNTAX_FIELD_NUMBER: _ClassVar[int] + TEXT_FIELD_NUMBER: _ClassVar[int] + TYPE_FIELD_NUMBER: _ClassVar[int] + YQL_V1: QueryContent.QuerySyntax + acl: Acl + automatic: bool + description: str + execution_settings: _containers.ScalarMap[str, str] + limits: Limits + name: str + syntax: QueryContent.QuerySyntax + text: str + type: QueryContent.QueryType + def __init__(self, type: _Optional[_Union[QueryContent.QueryType, str]] = ..., name: _Optional[str] = ..., acl: _Optional[_Union[Acl, _Mapping]] = ..., limits: _Optional[_Union[Limits, _Mapping]] = ..., text: _Optional[str] = ..., automatic: bool = ..., description: _Optional[str] = ..., execution_settings: _Optional[_Mapping[str, str]] = ..., syntax: _Optional[_Union[QueryContent.QuerySyntax, str]] = ...) -> None: ... + +class QueryMeta(_message.Message): + __slots__ = ["aborted_by", "common", "execute_mode", "expire_at", "finished_at", "has_saved_checkpoints", "last_job_id", "last_job_query_revision", "paused_by", "result_expire_at", "started_at", "started_by", "status", "submitted_at"] + class ComputeStatus(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + ABORTED_BY_FIELD_NUMBER: _ClassVar[int] + ABORTED_BY_SYSTEM: QueryMeta.ComputeStatus + ABORTED_BY_USER: QueryMeta.ComputeStatus + ABORTING_BY_SYSTEM: QueryMeta.ComputeStatus + ABORTING_BY_USER: QueryMeta.ComputeStatus + COMMON_FIELD_NUMBER: _ClassVar[int] + COMPLETED: QueryMeta.ComputeStatus + COMPLETING: QueryMeta.ComputeStatus + COMPUTE_STATUS_UNSPECIFIED: QueryMeta.ComputeStatus + EXECUTE_MODE_FIELD_NUMBER: _ClassVar[int] + EXPIRE_AT_FIELD_NUMBER: _ClassVar[int] + FAILED: QueryMeta.ComputeStatus + FAILING: QueryMeta.ComputeStatus + FINISHED_AT_FIELD_NUMBER: _ClassVar[int] + HAS_SAVED_CHECKPOINTS_FIELD_NUMBER: _ClassVar[int] + LAST_JOB_ID_FIELD_NUMBER: _ClassVar[int] + LAST_JOB_QUERY_REVISION_FIELD_NUMBER: _ClassVar[int] + PAUSED: QueryMeta.ComputeStatus + PAUSED_BY_FIELD_NUMBER: _ClassVar[int] + PAUSING: QueryMeta.ComputeStatus + RESULT_EXPIRE_AT_FIELD_NUMBER: _ClassVar[int] + RESUMING: QueryMeta.ComputeStatus + RUNNING: QueryMeta.ComputeStatus + STARTED_AT_FIELD_NUMBER: _ClassVar[int] + STARTED_BY_FIELD_NUMBER: _ClassVar[int] + STARTING: QueryMeta.ComputeStatus + STATUS_FIELD_NUMBER: _ClassVar[int] + SUBMITTED_AT_FIELD_NUMBER: _ClassVar[int] + aborted_by: str + common: CommonMeta + execute_mode: ExecuteMode + expire_at: _timestamp_pb2.Timestamp + finished_at: _timestamp_pb2.Timestamp + has_saved_checkpoints: bool + last_job_id: str + last_job_query_revision: int + paused_by: str + result_expire_at: _timestamp_pb2.Timestamp + started_at: _timestamp_pb2.Timestamp + started_by: str + status: QueryMeta.ComputeStatus + submitted_at: _timestamp_pb2.Timestamp + def __init__(self, common: _Optional[_Union[CommonMeta, _Mapping]] = ..., submitted_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., started_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., finished_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., execute_mode: _Optional[_Union[ExecuteMode, str]] = ..., status: _Optional[_Union[QueryMeta.ComputeStatus, str]] = ..., last_job_query_revision: _Optional[int] = ..., last_job_id: _Optional[str] = ..., expire_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., result_expire_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., started_by: _Optional[str] = ..., aborted_by: _Optional[str] = ..., paused_by: _Optional[str] = ..., has_saved_checkpoints: bool = ...) -> None: ... + +class QueryPlan(_message.Message): + __slots__ = ["json"] + JSON_FIELD_NUMBER: _ClassVar[int] + json: str + def __init__(self, json: _Optional[str] = ...) -> None: ... + +class QueryStatistics(_message.Message): + __slots__ = ["json"] + JSON_FIELD_NUMBER: _ClassVar[int] + json: str + def __init__(self, json: _Optional[str] = ...) -> None: ... + +class ResultSetMeta(_message.Message): + __slots__ = ["column", "rows_count", "truncated"] + COLUMN_FIELD_NUMBER: _ClassVar[int] + ROWS_COUNT_FIELD_NUMBER: _ClassVar[int] + TRUNCATED_FIELD_NUMBER: _ClassVar[int] + column: _containers.RepeatedCompositeFieldContainer[_ydb_value_pb2.Column] + rows_count: int + truncated: bool + def __init__(self, column: _Optional[_Iterable[_Union[_ydb_value_pb2.Column, _Mapping]]] = ..., rows_count: _Optional[int] = ..., truncated: bool = ...) -> None: ... + +class Schema(_message.Message): + __slots__ = ["column"] + COLUMN_FIELD_NUMBER: _ClassVar[int] + column: _containers.RepeatedCompositeFieldContainer[_ydb_value_pb2.Column] + def __init__(self, column: _Optional[_Iterable[_Union[_ydb_value_pb2.Column, _Mapping]]] = ...) -> None: ... + +class ServiceAccountAuth(_message.Message): + __slots__ = ["id"] + ID_FIELD_NUMBER: _ClassVar[int] + id: str + def __init__(self, id: _Optional[str] = ...) -> None: ... + +class StreamingDisposition(_message.Message): + __slots__ = ["fresh", "from_last_checkpoint", "from_time", "oldest", "time_ago"] + class FromLastCheckpoint(_message.Message): + __slots__ = ["force"] + FORCE_FIELD_NUMBER: _ClassVar[int] + force: bool + def __init__(self, force: bool = ...) -> None: ... + class FromTime(_message.Message): + __slots__ = ["timestamp"] + TIMESTAMP_FIELD_NUMBER: _ClassVar[int] + timestamp: _timestamp_pb2.Timestamp + def __init__(self, timestamp: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ...) -> None: ... + class TimeAgo(_message.Message): + __slots__ = ["duration"] + DURATION_FIELD_NUMBER: _ClassVar[int] + duration: _duration_pb2.Duration + def __init__(self, duration: _Optional[_Union[_duration_pb2.Duration, _Mapping]] = ...) -> None: ... + FRESH_FIELD_NUMBER: _ClassVar[int] + FROM_LAST_CHECKPOINT_FIELD_NUMBER: _ClassVar[int] + FROM_TIME_FIELD_NUMBER: _ClassVar[int] + OLDEST_FIELD_NUMBER: _ClassVar[int] + TIME_AGO_FIELD_NUMBER: _ClassVar[int] + fresh: _empty_pb2.Empty + from_last_checkpoint: StreamingDisposition.FromLastCheckpoint + from_time: StreamingDisposition.FromTime + oldest: _empty_pb2.Empty + time_ago: StreamingDisposition.TimeAgo + def __init__(self, oldest: _Optional[_Union[_empty_pb2.Empty, _Mapping]] = ..., fresh: _Optional[_Union[_empty_pb2.Empty, _Mapping]] = ..., from_time: _Optional[_Union[StreamingDisposition.FromTime, _Mapping]] = ..., time_ago: _Optional[_Union[StreamingDisposition.TimeAgo, _Mapping]] = ..., from_last_checkpoint: _Optional[_Union[StreamingDisposition.FromLastCheckpoint, _Mapping]] = ...) -> None: ... + +class TestConnectionRequest(_message.Message): + __slots__ = ["operation_params", "setting"] + OPERATION_PARAMS_FIELD_NUMBER: _ClassVar[int] + SETTING_FIELD_NUMBER: _ClassVar[int] + operation_params: _ydb_operation_pb2.OperationParams + setting: ConnectionSetting + def __init__(self, operation_params: _Optional[_Union[_ydb_operation_pb2.OperationParams, _Mapping]] = ..., setting: _Optional[_Union[ConnectionSetting, _Mapping]] = ...) -> None: ... + +class TestConnectionResponse(_message.Message): + __slots__ = ["operation"] + OPERATION_FIELD_NUMBER: _ClassVar[int] + operation: _ydb_operation_pb2.Operation + def __init__(self, operation: _Optional[_Union[_ydb_operation_pb2.Operation, _Mapping]] = ...) -> None: ... + +class TestConnectionResult(_message.Message): + __slots__ = [] + def __init__(self) -> None: ... + +class YdbDatabase(_message.Message): + __slots__ = ["auth", "database", "database_id", "endpoint", "secure"] + AUTH_FIELD_NUMBER: _ClassVar[int] + DATABASE_FIELD_NUMBER: _ClassVar[int] + DATABASE_ID_FIELD_NUMBER: _ClassVar[int] + ENDPOINT_FIELD_NUMBER: _ClassVar[int] + SECURE_FIELD_NUMBER: _ClassVar[int] + auth: IamAuth + database: str + database_id: str + endpoint: str + secure: bool + def __init__(self, database_id: _Optional[str] = ..., auth: _Optional[_Union[IamAuth, _Mapping]] = ..., endpoint: _Optional[str] = ..., database: _Optional[str] = ..., secure: bool = ...) -> None: ... + +class ExecuteMode(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + +class QueryAction(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + +class StateLoadMode(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + +class AutomaticType(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] diff --git a/ydb/_grpc/v5/draft/protos/ydb_federated_query_pb2_grpc.py b/ydb/_grpc/v5/draft/protos/ydb_federated_query_pb2_grpc.py new file mode 100644 index 00000000..2daafffe --- /dev/null +++ b/ydb/_grpc/v5/draft/protos/ydb_federated_query_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/ydb/_grpc/v5/draft/protos/ydb_keyvalue_pb2.py b/ydb/_grpc/v5/draft/protos/ydb_keyvalue_pb2.py new file mode 100644 index 00000000..2392cd2b --- /dev/null +++ b/ydb/_grpc/v5/draft/protos/ydb_keyvalue_pb2.py @@ -0,0 +1,124 @@ +# -*- coding: utf-8 -*- +# flake8: noqa +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: draft/protos/ydb_keyvalue.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from ydb._grpc.v5.protos import ydb_operation_pb2 as protos_dot_ydb__operation__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1f\x64raft/protos/ydb_keyvalue.proto\x12\x0cYdb.KeyValue\x1a\x1aprotos/ydb_operation.proto\"\xf0\x01\n\x12StorageChannelInfo\x12\x17\n\x0fstorage_channel\x18\x01 \x01(\r\x12@\n\x0bstatus_flag\x18\x02 \x01(\x0e\x32+.Ydb.KeyValue.StorageChannelInfo.StatusFlag\"\x7f\n\nStatusFlag\x12\x1b\n\x17STATUS_FLAG_UNSPECIFIED\x10\x00\x12\x15\n\x11STATUS_FLAG_GREEN\x10\n\x12\x1b\n\x17STATUS_FLAG_YELLOW_STOP\x10\x14\x12 \n\x1cSTATUS_FLAG_ORANGE_OUT_SPACE\x10\x1e\"b\n\nPriorities\"T\n\x08Priority\x12\x18\n\x14PRIORITY_UNSPECIFIED\x10\x00\x12\x15\n\x11PRIORITY_REALTIME\x10\x01\x12\x17\n\x13PRIORITY_BACKGROUND\x10\x02\"k\n\rStorageConfig\x12:\n\x07\x63hannel\x18\x01 \x03(\x0b\x32).Ydb.KeyValue.StorageConfig.ChannelConfig\x1a\x1e\n\rChannelConfig\x12\r\n\x05media\x18\x01 \x01(\t\"\x98\x01\n\x08KeyRange\x12\x1c\n\x12\x66rom_key_inclusive\x18\x01 \x01(\tH\x00\x12\x1c\n\x12\x66rom_key_exclusive\x18\x02 \x01(\tH\x00\x12\x1a\n\x10to_key_inclusive\x18\x03 \x01(\tH\x01\x12\x1a\n\x10to_key_exclusive\x18\x04 \x01(\tH\x01\x42\x0c\n\nfrom_boundB\n\n\x08to_bound\"s\n\x12\x41\x63quireLockRequest\x12\x39\n\x10operation_params\x18\x01 \x01(\x0b\x32\x1f.Ydb.Operations.OperationParams\x12\x0c\n\x04path\x18\x02 \x01(\t\x12\x14\n\x0cpartition_id\x18\x03 \x01(\x04\"C\n\x13\x41\x63quireLockResponse\x12,\n\toperation\x18\x01 \x01(\x0b\x32\x19.Ydb.Operations.Operation\"=\n\x11\x41\x63quireLockResult\x12\x17\n\x0flock_generation\x18\x01 \x01(\x04\x12\x0f\n\x07node_id\x18\x02 \x01(\r\"\xac\t\n\x19\x45xecuteTransactionRequest\x12\x39\n\x10operation_params\x18\x01 \x01(\x0b\x32\x1f.Ydb.Operations.OperationParams\x12\x0c\n\x04path\x18\x02 \x01(\t\x12\x14\n\x0cpartition_id\x18\x03 \x01(\x04\x12\x1c\n\x0flock_generation\x18\x04 \x01(\x04H\x00\x88\x01\x01\x12\x41\n\x08\x63ommands\x18\x05 \x03(\x0b\x32/.Ydb.KeyValue.ExecuteTransactionRequest.Command\x1a\xba\x07\n\x07\x43ommand\x12S\n\x0c\x64\x65lete_range\x18\x01 \x01(\x0b\x32;.Ydb.KeyValue.ExecuteTransactionRequest.Command.DeleteRangeH\x00\x12H\n\x06rename\x18\x02 \x01(\x0b\x32\x36.Ydb.KeyValue.ExecuteTransactionRequest.Command.RenameH\x00\x12O\n\ncopy_range\x18\x03 \x01(\x0b\x32\x39.Ydb.KeyValue.ExecuteTransactionRequest.Command.CopyRangeH\x00\x12H\n\x06\x63oncat\x18\x04 \x01(\x0b\x32\x36.Ydb.KeyValue.ExecuteTransactionRequest.Command.ConcatH\x00\x12\x46\n\x05write\x18\x05 \x01(\x0b\x32\x35.Ydb.KeyValue.ExecuteTransactionRequest.Command.WriteH\x00\x1a*\n\x06Rename\x12\x0f\n\x07old_key\x18\x01 \x01(\t\x12\x0f\n\x07new_key\x18\x02 \x01(\t\x1a\x45\n\x06\x43oncat\x12\x12\n\ninput_keys\x18\x01 \x03(\t\x12\x12\n\noutput_key\x18\x02 \x01(\t\x12\x13\n\x0bkeep_inputs\x18\x03 \x01(\x08\x1a\x63\n\tCopyRange\x12%\n\x05range\x18\x01 \x01(\x0b\x32\x16.Ydb.KeyValue.KeyRange\x12\x18\n\x10prefix_to_remove\x18\x02 \x01(\t\x12\x15\n\rprefix_to_add\x18\x03 \x01(\t\x1a\x94\x02\n\x05Write\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x0c\x12\x17\n\x0fstorage_channel\x18\x03 \x01(\r\x12\x33\n\x08priority\x18\x04 \x01(\x0e\x32!.Ydb.KeyValue.Priorities.Priority\x12L\n\x06tactic\x18\x05 \x01(\x0e\x32<.Ydb.KeyValue.ExecuteTransactionRequest.Command.Write.Tactic\"S\n\x06Tactic\x12\x16\n\x12TACTIC_UNSPECIFIED\x10\x00\x12\x19\n\x15TACTIC_MAX_THROUGHPUT\x10\x01\x12\x16\n\x12TACTIC_MIN_LATENCY\x10\x02\x1a\x34\n\x0b\x44\x65leteRange\x12%\n\x05range\x18\x01 \x01(\x0b\x32\x16.Ydb.KeyValue.KeyRangeB\x08\n\x06\x61\x63tionB\x12\n\x10_lock_generation\"J\n\x1a\x45xecuteTransactionResponse\x12,\n\toperation\x18\x01 \x01(\x0b\x32\x19.Ydb.Operations.Operation\"k\n\x18\x45xecuteTransactionResult\x12>\n\x14storage_channel_info\x18\x01 \x03(\x0b\x32 .Ydb.KeyValue.StorageChannelInfo\x12\x0f\n\x07node_id\x18\x02 \x01(\r\"\x93\x02\n\x0bReadRequest\x12\x39\n\x10operation_params\x18\x01 \x01(\x0b\x32\x1f.Ydb.Operations.OperationParams\x12\x0c\n\x04path\x18\x02 \x01(\t\x12\x14\n\x0cpartition_id\x18\x03 \x01(\x04\x12\x1c\n\x0flock_generation\x18\x04 \x01(\x04H\x00\x88\x01\x01\x12\x0b\n\x03key\x18\x05 \x01(\t\x12\x0e\n\x06offset\x18\x06 \x01(\x04\x12\x0c\n\x04size\x18\x07 \x01(\x04\x12\x13\n\x0blimit_bytes\x18\x08 \x01(\x04\x12\x33\n\x08priority\x18\t \x01(\x0e\x32!.Ydb.KeyValue.Priorities.PriorityB\x12\n\x10_lock_generation\"<\n\x0cReadResponse\x12,\n\toperation\x18\x01 \x01(\x0b\x32\x19.Ydb.Operations.Operation\"\x89\x01\n\nReadResult\x12\x15\n\rrequested_key\x18\x01 \x01(\t\x12\x18\n\x10requested_offset\x18\x02 \x01(\x04\x12\x16\n\x0erequested_size\x18\x03 \x01(\x04\x12\r\n\x05value\x18\x04 \x01(\x0c\x12\x12\n\nis_overrun\x18\x05 \x01(\x08\x12\x0f\n\x07node_id\x18\x06 \x01(\r\"\x94\x02\n\x10ReadRangeRequest\x12\x39\n\x10operation_params\x18\x01 \x01(\x0b\x32\x1f.Ydb.Operations.OperationParams\x12\x0c\n\x04path\x18\x02 \x01(\t\x12\x14\n\x0cpartition_id\x18\x03 \x01(\x04\x12\x1c\n\x0flock_generation\x18\x04 \x01(\x04H\x00\x88\x01\x01\x12%\n\x05range\x18\x05 \x01(\x0b\x32\x16.Ydb.KeyValue.KeyRange\x12\x13\n\x0blimit_bytes\x18\x06 \x01(\x04\x12\x33\n\x08priority\x18\x07 \x01(\x0e\x32!.Ydb.KeyValue.Priorities.PriorityB\x12\n\x10_lock_generation\"A\n\x11ReadRangeResponse\x12,\n\toperation\x18\x01 \x01(\x0b\x32\x19.Ydb.Operations.Operation\"\xd1\x01\n\x0fReadRangeResult\x12\x38\n\x04pair\x18\x01 \x03(\x0b\x32*.Ydb.KeyValue.ReadRangeResult.KeyValuePair\x12\x12\n\nis_overrun\x18\x02 \x01(\x08\x12\x0f\n\x07node_id\x18\x03 \x01(\r\x1a_\n\x0cKeyValuePair\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x0c\x12\x1a\n\x12\x63reation_unix_time\x18\x04 \x01(\x04\x12\x17\n\x0fstorage_channel\x18\x05 \x01(\r\"\xdf\x01\n\x10ListRangeRequest\x12\x39\n\x10operation_params\x18\x01 \x01(\x0b\x32\x1f.Ydb.Operations.OperationParams\x12\x0c\n\x04path\x18\x02 \x01(\t\x12\x14\n\x0cpartition_id\x18\x03 \x01(\x04\x12\x1c\n\x0flock_generation\x18\x04 \x01(\x04H\x00\x88\x01\x01\x12%\n\x05range\x18\x05 \x01(\x0b\x32\x16.Ydb.KeyValue.KeyRange\x12\x13\n\x0blimit_bytes\x18\x06 \x01(\x04\x42\x12\n\x10_lock_generation\"A\n\x11ListRangeResponse\x12,\n\toperation\x18\x01 \x01(\x0b\x32\x19.Ydb.Operations.Operation\"\xcb\x01\n\x0fListRangeResult\x12\x32\n\x03key\x18\x01 \x03(\x0b\x32%.Ydb.KeyValue.ListRangeResult.KeyInfo\x12\x12\n\nis_overrun\x18\x02 \x01(\x08\x12\x0f\n\x07node_id\x18\x03 \x01(\r\x1a_\n\x07KeyInfo\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x12\n\nvalue_size\x18\x02 \x01(\r\x12\x1a\n\x12\x63reation_unix_time\x18\x03 \x01(\x04\x12\x17\n\x0fstorage_channel\x18\x04 \x01(\r\"\xca\x01\n\x1eGetStorageChannelStatusRequest\x12\x39\n\x10operation_params\x18\x01 \x01(\x0b\x32\x1f.Ydb.Operations.OperationParams\x12\x0c\n\x04path\x18\x02 \x01(\t\x12\x14\n\x0cpartition_id\x18\x03 \x01(\x04\x12\x1c\n\x0flock_generation\x18\x04 \x01(\x04H\x00\x88\x01\x01\x12\x17\n\x0fstorage_channel\x18\x05 \x03(\rB\x12\n\x10_lock_generation\"O\n\x1fGetStorageChannelStatusResponse\x12,\n\toperation\x18\x01 \x01(\x0b\x32\x19.Ydb.Operations.Operation\"p\n\x1dGetStorageChannelStatusResult\x12>\n\x14storage_channel_info\x18\x01 \x03(\x0b\x32 .Ydb.KeyValue.StorageChannelInfo\x12\x0f\n\x07node_id\x18\x02 \x01(\r\"\xac\x01\n\x13\x43reateVolumeRequest\x12\x39\n\x10operation_params\x18\x01 \x01(\x0b\x32\x1f.Ydb.Operations.OperationParams\x12\x0c\n\x04path\x18\x02 \x01(\t\x12\x17\n\x0fpartition_count\x18\x04 \x01(\r\x12\x33\n\x0estorage_config\x18\x05 \x01(\x0b\x32\x1b.Ydb.KeyValue.StorageConfig\"D\n\x14\x43reateVolumeResponse\x12,\n\toperation\x18\x01 \x01(\x0b\x32\x19.Ydb.Operations.Operation\"\x14\n\x12\x43reateVolumeResult\"\\\n\x11\x44ropVolumeRequest\x12\x39\n\x10operation_params\x18\x01 \x01(\x0b\x32\x1f.Ydb.Operations.OperationParams\x12\x0c\n\x04path\x18\x02 \x01(\t\"B\n\x12\x44ropVolumeResponse\x12,\n\toperation\x18\x01 \x01(\x0b\x32\x19.Ydb.Operations.Operation\"\x12\n\x10\x44ropVolumeResult\"\xb1\x01\n\x12\x41lterVolumeRequest\x12\x39\n\x10operation_params\x18\x01 \x01(\x0b\x32\x1f.Ydb.Operations.OperationParams\x12\x0c\n\x04path\x18\x02 \x01(\t\x12\x1d\n\x15\x61lter_partition_count\x18\x03 \x01(\r\x12\x33\n\x0estorage_config\x18\x04 \x01(\x0b\x32\x1b.Ydb.KeyValue.StorageConfig\"C\n\x13\x41lterVolumeResponse\x12,\n\toperation\x18\x01 \x01(\x0b\x32\x19.Ydb.Operations.Operation\"\x13\n\x11\x41lterVolumeResult\"`\n\x15\x44\x65scribeVolumeRequest\x12\x39\n\x10operation_params\x18\x01 \x01(\x0b\x32\x1f.Ydb.Operations.OperationParams\x12\x0c\n\x04path\x18\x02 \x01(\t\"F\n\x16\x44\x65scribeVolumeResponse\x12,\n\toperation\x18\x01 \x01(\x0b\x32\x19.Ydb.Operations.Operation\"=\n\x14\x44\x65scribeVolumeResult\x12\x0c\n\x04path\x18\x01 \x01(\t\x12\x17\n\x0fpartition_count\x18\x02 \x01(\x04\"v\n\x1aListLocalPartitionsRequest\x12\x39\n\x10operation_params\x18\x01 \x01(\x0b\x32\x1f.Ydb.Operations.OperationParams\x12\x0c\n\x04path\x18\x02 \x01(\t\x12\x0f\n\x07node_id\x18\x03 \x01(\x04\"K\n\x1bListLocalPartitionsResponse\x12,\n\toperation\x18\x01 \x01(\x0b\x32\x19.Ydb.Operations.Operation\"Q\n\x19ListLocalPartitionsResult\x12\x0c\n\x04path\x18\x01 \x01(\t\x12\x0f\n\x07node_id\x18\x02 \x01(\x04\x12\x15\n\rpartition_ids\x18\x03 \x03(\x04\x42h\n tech.ydb.proto.draft.keyvalue.v1ZAgithub.com/ydb-platform/ydb-go-genproto/draft/protos/Ydb_KeyValue\xf8\x01\x01\x62\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'draft.protos.ydb_keyvalue_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n tech.ydb.proto.draft.keyvalue.v1ZAgithub.com/ydb-platform/ydb-go-genproto/draft/protos/Ydb_KeyValue\370\001\001' + _STORAGECHANNELINFO._serialized_start=78 + _STORAGECHANNELINFO._serialized_end=318 + _STORAGECHANNELINFO_STATUSFLAG._serialized_start=191 + _STORAGECHANNELINFO_STATUSFLAG._serialized_end=318 + _PRIORITIES._serialized_start=320 + _PRIORITIES._serialized_end=418 + _PRIORITIES_PRIORITY._serialized_start=334 + _PRIORITIES_PRIORITY._serialized_end=418 + _STORAGECONFIG._serialized_start=420 + _STORAGECONFIG._serialized_end=527 + _STORAGECONFIG_CHANNELCONFIG._serialized_start=497 + _STORAGECONFIG_CHANNELCONFIG._serialized_end=527 + _KEYRANGE._serialized_start=530 + _KEYRANGE._serialized_end=682 + _ACQUIRELOCKREQUEST._serialized_start=684 + _ACQUIRELOCKREQUEST._serialized_end=799 + _ACQUIRELOCKRESPONSE._serialized_start=801 + _ACQUIRELOCKRESPONSE._serialized_end=868 + _ACQUIRELOCKRESULT._serialized_start=870 + _ACQUIRELOCKRESULT._serialized_end=931 + _EXECUTETRANSACTIONREQUEST._serialized_start=934 + _EXECUTETRANSACTIONREQUEST._serialized_end=2130 + _EXECUTETRANSACTIONREQUEST_COMMAND._serialized_start=1156 + _EXECUTETRANSACTIONREQUEST_COMMAND._serialized_end=2110 + _EXECUTETRANSACTIONREQUEST_COMMAND_RENAME._serialized_start=1553 + _EXECUTETRANSACTIONREQUEST_COMMAND_RENAME._serialized_end=1595 + _EXECUTETRANSACTIONREQUEST_COMMAND_CONCAT._serialized_start=1597 + _EXECUTETRANSACTIONREQUEST_COMMAND_CONCAT._serialized_end=1666 + _EXECUTETRANSACTIONREQUEST_COMMAND_COPYRANGE._serialized_start=1668 + _EXECUTETRANSACTIONREQUEST_COMMAND_COPYRANGE._serialized_end=1767 + _EXECUTETRANSACTIONREQUEST_COMMAND_WRITE._serialized_start=1770 + _EXECUTETRANSACTIONREQUEST_COMMAND_WRITE._serialized_end=2046 + _EXECUTETRANSACTIONREQUEST_COMMAND_WRITE_TACTIC._serialized_start=1963 + _EXECUTETRANSACTIONREQUEST_COMMAND_WRITE_TACTIC._serialized_end=2046 + _EXECUTETRANSACTIONREQUEST_COMMAND_DELETERANGE._serialized_start=2048 + _EXECUTETRANSACTIONREQUEST_COMMAND_DELETERANGE._serialized_end=2100 + _EXECUTETRANSACTIONRESPONSE._serialized_start=2132 + _EXECUTETRANSACTIONRESPONSE._serialized_end=2206 + _EXECUTETRANSACTIONRESULT._serialized_start=2208 + _EXECUTETRANSACTIONRESULT._serialized_end=2315 + _READREQUEST._serialized_start=2318 + _READREQUEST._serialized_end=2593 + _READRESPONSE._serialized_start=2595 + _READRESPONSE._serialized_end=2655 + _READRESULT._serialized_start=2658 + _READRESULT._serialized_end=2795 + _READRANGEREQUEST._serialized_start=2798 + _READRANGEREQUEST._serialized_end=3074 + _READRANGERESPONSE._serialized_start=3076 + _READRANGERESPONSE._serialized_end=3141 + _READRANGERESULT._serialized_start=3144 + _READRANGERESULT._serialized_end=3353 + _READRANGERESULT_KEYVALUEPAIR._serialized_start=3258 + _READRANGERESULT_KEYVALUEPAIR._serialized_end=3353 + _LISTRANGEREQUEST._serialized_start=3356 + _LISTRANGEREQUEST._serialized_end=3579 + _LISTRANGERESPONSE._serialized_start=3581 + _LISTRANGERESPONSE._serialized_end=3646 + _LISTRANGERESULT._serialized_start=3649 + _LISTRANGERESULT._serialized_end=3852 + _LISTRANGERESULT_KEYINFO._serialized_start=3757 + _LISTRANGERESULT_KEYINFO._serialized_end=3852 + _GETSTORAGECHANNELSTATUSREQUEST._serialized_start=3855 + _GETSTORAGECHANNELSTATUSREQUEST._serialized_end=4057 + _GETSTORAGECHANNELSTATUSRESPONSE._serialized_start=4059 + _GETSTORAGECHANNELSTATUSRESPONSE._serialized_end=4138 + _GETSTORAGECHANNELSTATUSRESULT._serialized_start=4140 + _GETSTORAGECHANNELSTATUSRESULT._serialized_end=4252 + _CREATEVOLUMEREQUEST._serialized_start=4255 + _CREATEVOLUMEREQUEST._serialized_end=4427 + _CREATEVOLUMERESPONSE._serialized_start=4429 + _CREATEVOLUMERESPONSE._serialized_end=4497 + _CREATEVOLUMERESULT._serialized_start=4499 + _CREATEVOLUMERESULT._serialized_end=4519 + _DROPVOLUMEREQUEST._serialized_start=4521 + _DROPVOLUMEREQUEST._serialized_end=4613 + _DROPVOLUMERESPONSE._serialized_start=4615 + _DROPVOLUMERESPONSE._serialized_end=4681 + _DROPVOLUMERESULT._serialized_start=4683 + _DROPVOLUMERESULT._serialized_end=4701 + _ALTERVOLUMEREQUEST._serialized_start=4704 + _ALTERVOLUMEREQUEST._serialized_end=4881 + _ALTERVOLUMERESPONSE._serialized_start=4883 + _ALTERVOLUMERESPONSE._serialized_end=4950 + _ALTERVOLUMERESULT._serialized_start=4952 + _ALTERVOLUMERESULT._serialized_end=4971 + _DESCRIBEVOLUMEREQUEST._serialized_start=4973 + _DESCRIBEVOLUMEREQUEST._serialized_end=5069 + _DESCRIBEVOLUMERESPONSE._serialized_start=5071 + _DESCRIBEVOLUMERESPONSE._serialized_end=5141 + _DESCRIBEVOLUMERESULT._serialized_start=5143 + _DESCRIBEVOLUMERESULT._serialized_end=5204 + _LISTLOCALPARTITIONSREQUEST._serialized_start=5206 + _LISTLOCALPARTITIONSREQUEST._serialized_end=5324 + _LISTLOCALPARTITIONSRESPONSE._serialized_start=5326 + _LISTLOCALPARTITIONSRESPONSE._serialized_end=5401 + _LISTLOCALPARTITIONSRESULT._serialized_start=5403 + _LISTLOCALPARTITIONSRESULT._serialized_end=5484 +# @@protoc_insertion_point(module_scope) diff --git a/ydb/_grpc/v5/draft/protos/ydb_keyvalue_pb2.pyi b/ydb/_grpc/v5/draft/protos/ydb_keyvalue_pb2.pyi new file mode 100644 index 00000000..52e93e5b --- /dev/null +++ b/ydb/_grpc/v5/draft/protos/ydb_keyvalue_pb2.pyi @@ -0,0 +1,437 @@ +from protos import ydb_operation_pb2 as _ydb_operation_pb2 +from google.protobuf.internal import containers as _containers +from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union + +DESCRIPTOR: _descriptor.FileDescriptor + +class AcquireLockRequest(_message.Message): + __slots__ = ["operation_params", "partition_id", "path"] + OPERATION_PARAMS_FIELD_NUMBER: _ClassVar[int] + PARTITION_ID_FIELD_NUMBER: _ClassVar[int] + PATH_FIELD_NUMBER: _ClassVar[int] + operation_params: _ydb_operation_pb2.OperationParams + partition_id: int + path: str + def __init__(self, operation_params: _Optional[_Union[_ydb_operation_pb2.OperationParams, _Mapping]] = ..., path: _Optional[str] = ..., partition_id: _Optional[int] = ...) -> None: ... + +class AcquireLockResponse(_message.Message): + __slots__ = ["operation"] + OPERATION_FIELD_NUMBER: _ClassVar[int] + operation: _ydb_operation_pb2.Operation + def __init__(self, operation: _Optional[_Union[_ydb_operation_pb2.Operation, _Mapping]] = ...) -> None: ... + +class AcquireLockResult(_message.Message): + __slots__ = ["lock_generation", "node_id"] + LOCK_GENERATION_FIELD_NUMBER: _ClassVar[int] + NODE_ID_FIELD_NUMBER: _ClassVar[int] + lock_generation: int + node_id: int + def __init__(self, lock_generation: _Optional[int] = ..., node_id: _Optional[int] = ...) -> None: ... + +class AlterVolumeRequest(_message.Message): + __slots__ = ["alter_partition_count", "operation_params", "path", "storage_config"] + ALTER_PARTITION_COUNT_FIELD_NUMBER: _ClassVar[int] + OPERATION_PARAMS_FIELD_NUMBER: _ClassVar[int] + PATH_FIELD_NUMBER: _ClassVar[int] + STORAGE_CONFIG_FIELD_NUMBER: _ClassVar[int] + alter_partition_count: int + operation_params: _ydb_operation_pb2.OperationParams + path: str + storage_config: StorageConfig + def __init__(self, operation_params: _Optional[_Union[_ydb_operation_pb2.OperationParams, _Mapping]] = ..., path: _Optional[str] = ..., alter_partition_count: _Optional[int] = ..., storage_config: _Optional[_Union[StorageConfig, _Mapping]] = ...) -> None: ... + +class AlterVolumeResponse(_message.Message): + __slots__ = ["operation"] + OPERATION_FIELD_NUMBER: _ClassVar[int] + operation: _ydb_operation_pb2.Operation + def __init__(self, operation: _Optional[_Union[_ydb_operation_pb2.Operation, _Mapping]] = ...) -> None: ... + +class AlterVolumeResult(_message.Message): + __slots__ = [] + def __init__(self) -> None: ... + +class CreateVolumeRequest(_message.Message): + __slots__ = ["operation_params", "partition_count", "path", "storage_config"] + OPERATION_PARAMS_FIELD_NUMBER: _ClassVar[int] + PARTITION_COUNT_FIELD_NUMBER: _ClassVar[int] + PATH_FIELD_NUMBER: _ClassVar[int] + STORAGE_CONFIG_FIELD_NUMBER: _ClassVar[int] + operation_params: _ydb_operation_pb2.OperationParams + partition_count: int + path: str + storage_config: StorageConfig + def __init__(self, operation_params: _Optional[_Union[_ydb_operation_pb2.OperationParams, _Mapping]] = ..., path: _Optional[str] = ..., partition_count: _Optional[int] = ..., storage_config: _Optional[_Union[StorageConfig, _Mapping]] = ...) -> None: ... + +class CreateVolumeResponse(_message.Message): + __slots__ = ["operation"] + OPERATION_FIELD_NUMBER: _ClassVar[int] + operation: _ydb_operation_pb2.Operation + def __init__(self, operation: _Optional[_Union[_ydb_operation_pb2.Operation, _Mapping]] = ...) -> None: ... + +class CreateVolumeResult(_message.Message): + __slots__ = [] + def __init__(self) -> None: ... + +class DescribeVolumeRequest(_message.Message): + __slots__ = ["operation_params", "path"] + OPERATION_PARAMS_FIELD_NUMBER: _ClassVar[int] + PATH_FIELD_NUMBER: _ClassVar[int] + operation_params: _ydb_operation_pb2.OperationParams + path: str + def __init__(self, operation_params: _Optional[_Union[_ydb_operation_pb2.OperationParams, _Mapping]] = ..., path: _Optional[str] = ...) -> None: ... + +class DescribeVolumeResponse(_message.Message): + __slots__ = ["operation"] + OPERATION_FIELD_NUMBER: _ClassVar[int] + operation: _ydb_operation_pb2.Operation + def __init__(self, operation: _Optional[_Union[_ydb_operation_pb2.Operation, _Mapping]] = ...) -> None: ... + +class DescribeVolumeResult(_message.Message): + __slots__ = ["partition_count", "path"] + PARTITION_COUNT_FIELD_NUMBER: _ClassVar[int] + PATH_FIELD_NUMBER: _ClassVar[int] + partition_count: int + path: str + def __init__(self, path: _Optional[str] = ..., partition_count: _Optional[int] = ...) -> None: ... + +class DropVolumeRequest(_message.Message): + __slots__ = ["operation_params", "path"] + OPERATION_PARAMS_FIELD_NUMBER: _ClassVar[int] + PATH_FIELD_NUMBER: _ClassVar[int] + operation_params: _ydb_operation_pb2.OperationParams + path: str + def __init__(self, operation_params: _Optional[_Union[_ydb_operation_pb2.OperationParams, _Mapping]] = ..., path: _Optional[str] = ...) -> None: ... + +class DropVolumeResponse(_message.Message): + __slots__ = ["operation"] + OPERATION_FIELD_NUMBER: _ClassVar[int] + operation: _ydb_operation_pb2.Operation + def __init__(self, operation: _Optional[_Union[_ydb_operation_pb2.Operation, _Mapping]] = ...) -> None: ... + +class DropVolumeResult(_message.Message): + __slots__ = [] + def __init__(self) -> None: ... + +class ExecuteTransactionRequest(_message.Message): + __slots__ = ["commands", "lock_generation", "operation_params", "partition_id", "path"] + class Command(_message.Message): + __slots__ = ["concat", "copy_range", "delete_range", "rename", "write"] + class Concat(_message.Message): + __slots__ = ["input_keys", "keep_inputs", "output_key"] + INPUT_KEYS_FIELD_NUMBER: _ClassVar[int] + KEEP_INPUTS_FIELD_NUMBER: _ClassVar[int] + OUTPUT_KEY_FIELD_NUMBER: _ClassVar[int] + input_keys: _containers.RepeatedScalarFieldContainer[str] + keep_inputs: bool + output_key: str + def __init__(self, input_keys: _Optional[_Iterable[str]] = ..., output_key: _Optional[str] = ..., keep_inputs: bool = ...) -> None: ... + class CopyRange(_message.Message): + __slots__ = ["prefix_to_add", "prefix_to_remove", "range"] + PREFIX_TO_ADD_FIELD_NUMBER: _ClassVar[int] + PREFIX_TO_REMOVE_FIELD_NUMBER: _ClassVar[int] + RANGE_FIELD_NUMBER: _ClassVar[int] + prefix_to_add: str + prefix_to_remove: str + range: KeyRange + def __init__(self, range: _Optional[_Union[KeyRange, _Mapping]] = ..., prefix_to_remove: _Optional[str] = ..., prefix_to_add: _Optional[str] = ...) -> None: ... + class DeleteRange(_message.Message): + __slots__ = ["range"] + RANGE_FIELD_NUMBER: _ClassVar[int] + range: KeyRange + def __init__(self, range: _Optional[_Union[KeyRange, _Mapping]] = ...) -> None: ... + class Rename(_message.Message): + __slots__ = ["new_key", "old_key"] + NEW_KEY_FIELD_NUMBER: _ClassVar[int] + OLD_KEY_FIELD_NUMBER: _ClassVar[int] + new_key: str + old_key: str + def __init__(self, old_key: _Optional[str] = ..., new_key: _Optional[str] = ...) -> None: ... + class Write(_message.Message): + __slots__ = ["key", "priority", "storage_channel", "tactic", "value"] + class Tactic(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + KEY_FIELD_NUMBER: _ClassVar[int] + PRIORITY_FIELD_NUMBER: _ClassVar[int] + STORAGE_CHANNEL_FIELD_NUMBER: _ClassVar[int] + TACTIC_FIELD_NUMBER: _ClassVar[int] + TACTIC_MAX_THROUGHPUT: ExecuteTransactionRequest.Command.Write.Tactic + TACTIC_MIN_LATENCY: ExecuteTransactionRequest.Command.Write.Tactic + TACTIC_UNSPECIFIED: ExecuteTransactionRequest.Command.Write.Tactic + VALUE_FIELD_NUMBER: _ClassVar[int] + key: str + priority: Priorities.Priority + storage_channel: int + tactic: ExecuteTransactionRequest.Command.Write.Tactic + value: bytes + def __init__(self, key: _Optional[str] = ..., value: _Optional[bytes] = ..., storage_channel: _Optional[int] = ..., priority: _Optional[_Union[Priorities.Priority, str]] = ..., tactic: _Optional[_Union[ExecuteTransactionRequest.Command.Write.Tactic, str]] = ...) -> None: ... + CONCAT_FIELD_NUMBER: _ClassVar[int] + COPY_RANGE_FIELD_NUMBER: _ClassVar[int] + DELETE_RANGE_FIELD_NUMBER: _ClassVar[int] + RENAME_FIELD_NUMBER: _ClassVar[int] + WRITE_FIELD_NUMBER: _ClassVar[int] + concat: ExecuteTransactionRequest.Command.Concat + copy_range: ExecuteTransactionRequest.Command.CopyRange + delete_range: ExecuteTransactionRequest.Command.DeleteRange + rename: ExecuteTransactionRequest.Command.Rename + write: ExecuteTransactionRequest.Command.Write + def __init__(self, delete_range: _Optional[_Union[ExecuteTransactionRequest.Command.DeleteRange, _Mapping]] = ..., rename: _Optional[_Union[ExecuteTransactionRequest.Command.Rename, _Mapping]] = ..., copy_range: _Optional[_Union[ExecuteTransactionRequest.Command.CopyRange, _Mapping]] = ..., concat: _Optional[_Union[ExecuteTransactionRequest.Command.Concat, _Mapping]] = ..., write: _Optional[_Union[ExecuteTransactionRequest.Command.Write, _Mapping]] = ...) -> None: ... + COMMANDS_FIELD_NUMBER: _ClassVar[int] + LOCK_GENERATION_FIELD_NUMBER: _ClassVar[int] + OPERATION_PARAMS_FIELD_NUMBER: _ClassVar[int] + PARTITION_ID_FIELD_NUMBER: _ClassVar[int] + PATH_FIELD_NUMBER: _ClassVar[int] + commands: _containers.RepeatedCompositeFieldContainer[ExecuteTransactionRequest.Command] + lock_generation: int + operation_params: _ydb_operation_pb2.OperationParams + partition_id: int + path: str + def __init__(self, operation_params: _Optional[_Union[_ydb_operation_pb2.OperationParams, _Mapping]] = ..., path: _Optional[str] = ..., partition_id: _Optional[int] = ..., lock_generation: _Optional[int] = ..., commands: _Optional[_Iterable[_Union[ExecuteTransactionRequest.Command, _Mapping]]] = ...) -> None: ... + +class ExecuteTransactionResponse(_message.Message): + __slots__ = ["operation"] + OPERATION_FIELD_NUMBER: _ClassVar[int] + operation: _ydb_operation_pb2.Operation + def __init__(self, operation: _Optional[_Union[_ydb_operation_pb2.Operation, _Mapping]] = ...) -> None: ... + +class ExecuteTransactionResult(_message.Message): + __slots__ = ["node_id", "storage_channel_info"] + NODE_ID_FIELD_NUMBER: _ClassVar[int] + STORAGE_CHANNEL_INFO_FIELD_NUMBER: _ClassVar[int] + node_id: int + storage_channel_info: _containers.RepeatedCompositeFieldContainer[StorageChannelInfo] + def __init__(self, storage_channel_info: _Optional[_Iterable[_Union[StorageChannelInfo, _Mapping]]] = ..., node_id: _Optional[int] = ...) -> None: ... + +class GetStorageChannelStatusRequest(_message.Message): + __slots__ = ["lock_generation", "operation_params", "partition_id", "path", "storage_channel"] + LOCK_GENERATION_FIELD_NUMBER: _ClassVar[int] + OPERATION_PARAMS_FIELD_NUMBER: _ClassVar[int] + PARTITION_ID_FIELD_NUMBER: _ClassVar[int] + PATH_FIELD_NUMBER: _ClassVar[int] + STORAGE_CHANNEL_FIELD_NUMBER: _ClassVar[int] + lock_generation: int + operation_params: _ydb_operation_pb2.OperationParams + partition_id: int + path: str + storage_channel: _containers.RepeatedScalarFieldContainer[int] + def __init__(self, operation_params: _Optional[_Union[_ydb_operation_pb2.OperationParams, _Mapping]] = ..., path: _Optional[str] = ..., partition_id: _Optional[int] = ..., lock_generation: _Optional[int] = ..., storage_channel: _Optional[_Iterable[int]] = ...) -> None: ... + +class GetStorageChannelStatusResponse(_message.Message): + __slots__ = ["operation"] + OPERATION_FIELD_NUMBER: _ClassVar[int] + operation: _ydb_operation_pb2.Operation + def __init__(self, operation: _Optional[_Union[_ydb_operation_pb2.Operation, _Mapping]] = ...) -> None: ... + +class GetStorageChannelStatusResult(_message.Message): + __slots__ = ["node_id", "storage_channel_info"] + NODE_ID_FIELD_NUMBER: _ClassVar[int] + STORAGE_CHANNEL_INFO_FIELD_NUMBER: _ClassVar[int] + node_id: int + storage_channel_info: _containers.RepeatedCompositeFieldContainer[StorageChannelInfo] + def __init__(self, storage_channel_info: _Optional[_Iterable[_Union[StorageChannelInfo, _Mapping]]] = ..., node_id: _Optional[int] = ...) -> None: ... + +class KeyRange(_message.Message): + __slots__ = ["from_key_exclusive", "from_key_inclusive", "to_key_exclusive", "to_key_inclusive"] + FROM_KEY_EXCLUSIVE_FIELD_NUMBER: _ClassVar[int] + FROM_KEY_INCLUSIVE_FIELD_NUMBER: _ClassVar[int] + TO_KEY_EXCLUSIVE_FIELD_NUMBER: _ClassVar[int] + TO_KEY_INCLUSIVE_FIELD_NUMBER: _ClassVar[int] + from_key_exclusive: str + from_key_inclusive: str + to_key_exclusive: str + to_key_inclusive: str + def __init__(self, from_key_inclusive: _Optional[str] = ..., from_key_exclusive: _Optional[str] = ..., to_key_inclusive: _Optional[str] = ..., to_key_exclusive: _Optional[str] = ...) -> None: ... + +class ListLocalPartitionsRequest(_message.Message): + __slots__ = ["node_id", "operation_params", "path"] + NODE_ID_FIELD_NUMBER: _ClassVar[int] + OPERATION_PARAMS_FIELD_NUMBER: _ClassVar[int] + PATH_FIELD_NUMBER: _ClassVar[int] + node_id: int + operation_params: _ydb_operation_pb2.OperationParams + path: str + def __init__(self, operation_params: _Optional[_Union[_ydb_operation_pb2.OperationParams, _Mapping]] = ..., path: _Optional[str] = ..., node_id: _Optional[int] = ...) -> None: ... + +class ListLocalPartitionsResponse(_message.Message): + __slots__ = ["operation"] + OPERATION_FIELD_NUMBER: _ClassVar[int] + operation: _ydb_operation_pb2.Operation + def __init__(self, operation: _Optional[_Union[_ydb_operation_pb2.Operation, _Mapping]] = ...) -> None: ... + +class ListLocalPartitionsResult(_message.Message): + __slots__ = ["node_id", "partition_ids", "path"] + NODE_ID_FIELD_NUMBER: _ClassVar[int] + PARTITION_IDS_FIELD_NUMBER: _ClassVar[int] + PATH_FIELD_NUMBER: _ClassVar[int] + node_id: int + partition_ids: _containers.RepeatedScalarFieldContainer[int] + path: str + def __init__(self, path: _Optional[str] = ..., node_id: _Optional[int] = ..., partition_ids: _Optional[_Iterable[int]] = ...) -> None: ... + +class ListRangeRequest(_message.Message): + __slots__ = ["limit_bytes", "lock_generation", "operation_params", "partition_id", "path", "range"] + LIMIT_BYTES_FIELD_NUMBER: _ClassVar[int] + LOCK_GENERATION_FIELD_NUMBER: _ClassVar[int] + OPERATION_PARAMS_FIELD_NUMBER: _ClassVar[int] + PARTITION_ID_FIELD_NUMBER: _ClassVar[int] + PATH_FIELD_NUMBER: _ClassVar[int] + RANGE_FIELD_NUMBER: _ClassVar[int] + limit_bytes: int + lock_generation: int + operation_params: _ydb_operation_pb2.OperationParams + partition_id: int + path: str + range: KeyRange + def __init__(self, operation_params: _Optional[_Union[_ydb_operation_pb2.OperationParams, _Mapping]] = ..., path: _Optional[str] = ..., partition_id: _Optional[int] = ..., lock_generation: _Optional[int] = ..., range: _Optional[_Union[KeyRange, _Mapping]] = ..., limit_bytes: _Optional[int] = ...) -> None: ... + +class ListRangeResponse(_message.Message): + __slots__ = ["operation"] + OPERATION_FIELD_NUMBER: _ClassVar[int] + operation: _ydb_operation_pb2.Operation + def __init__(self, operation: _Optional[_Union[_ydb_operation_pb2.Operation, _Mapping]] = ...) -> None: ... + +class ListRangeResult(_message.Message): + __slots__ = ["is_overrun", "key", "node_id"] + class KeyInfo(_message.Message): + __slots__ = ["creation_unix_time", "key", "storage_channel", "value_size"] + CREATION_UNIX_TIME_FIELD_NUMBER: _ClassVar[int] + KEY_FIELD_NUMBER: _ClassVar[int] + STORAGE_CHANNEL_FIELD_NUMBER: _ClassVar[int] + VALUE_SIZE_FIELD_NUMBER: _ClassVar[int] + creation_unix_time: int + key: str + storage_channel: int + value_size: int + def __init__(self, key: _Optional[str] = ..., value_size: _Optional[int] = ..., creation_unix_time: _Optional[int] = ..., storage_channel: _Optional[int] = ...) -> None: ... + IS_OVERRUN_FIELD_NUMBER: _ClassVar[int] + KEY_FIELD_NUMBER: _ClassVar[int] + NODE_ID_FIELD_NUMBER: _ClassVar[int] + is_overrun: bool + key: _containers.RepeatedCompositeFieldContainer[ListRangeResult.KeyInfo] + node_id: int + def __init__(self, key: _Optional[_Iterable[_Union[ListRangeResult.KeyInfo, _Mapping]]] = ..., is_overrun: bool = ..., node_id: _Optional[int] = ...) -> None: ... + +class Priorities(_message.Message): + __slots__ = [] + class Priority(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + PRIORITY_BACKGROUND: Priorities.Priority + PRIORITY_REALTIME: Priorities.Priority + PRIORITY_UNSPECIFIED: Priorities.Priority + def __init__(self) -> None: ... + +class ReadRangeRequest(_message.Message): + __slots__ = ["limit_bytes", "lock_generation", "operation_params", "partition_id", "path", "priority", "range"] + LIMIT_BYTES_FIELD_NUMBER: _ClassVar[int] + LOCK_GENERATION_FIELD_NUMBER: _ClassVar[int] + OPERATION_PARAMS_FIELD_NUMBER: _ClassVar[int] + PARTITION_ID_FIELD_NUMBER: _ClassVar[int] + PATH_FIELD_NUMBER: _ClassVar[int] + PRIORITY_FIELD_NUMBER: _ClassVar[int] + RANGE_FIELD_NUMBER: _ClassVar[int] + limit_bytes: int + lock_generation: int + operation_params: _ydb_operation_pb2.OperationParams + partition_id: int + path: str + priority: Priorities.Priority + range: KeyRange + def __init__(self, operation_params: _Optional[_Union[_ydb_operation_pb2.OperationParams, _Mapping]] = ..., path: _Optional[str] = ..., partition_id: _Optional[int] = ..., lock_generation: _Optional[int] = ..., range: _Optional[_Union[KeyRange, _Mapping]] = ..., limit_bytes: _Optional[int] = ..., priority: _Optional[_Union[Priorities.Priority, str]] = ...) -> None: ... + +class ReadRangeResponse(_message.Message): + __slots__ = ["operation"] + OPERATION_FIELD_NUMBER: _ClassVar[int] + operation: _ydb_operation_pb2.Operation + def __init__(self, operation: _Optional[_Union[_ydb_operation_pb2.Operation, _Mapping]] = ...) -> None: ... + +class ReadRangeResult(_message.Message): + __slots__ = ["is_overrun", "node_id", "pair"] + class KeyValuePair(_message.Message): + __slots__ = ["creation_unix_time", "key", "storage_channel", "value"] + CREATION_UNIX_TIME_FIELD_NUMBER: _ClassVar[int] + KEY_FIELD_NUMBER: _ClassVar[int] + STORAGE_CHANNEL_FIELD_NUMBER: _ClassVar[int] + VALUE_FIELD_NUMBER: _ClassVar[int] + creation_unix_time: int + key: str + storage_channel: int + value: bytes + def __init__(self, key: _Optional[str] = ..., value: _Optional[bytes] = ..., creation_unix_time: _Optional[int] = ..., storage_channel: _Optional[int] = ...) -> None: ... + IS_OVERRUN_FIELD_NUMBER: _ClassVar[int] + NODE_ID_FIELD_NUMBER: _ClassVar[int] + PAIR_FIELD_NUMBER: _ClassVar[int] + is_overrun: bool + node_id: int + pair: _containers.RepeatedCompositeFieldContainer[ReadRangeResult.KeyValuePair] + def __init__(self, pair: _Optional[_Iterable[_Union[ReadRangeResult.KeyValuePair, _Mapping]]] = ..., is_overrun: bool = ..., node_id: _Optional[int] = ...) -> None: ... + +class ReadRequest(_message.Message): + __slots__ = ["key", "limit_bytes", "lock_generation", "offset", "operation_params", "partition_id", "path", "priority", "size"] + KEY_FIELD_NUMBER: _ClassVar[int] + LIMIT_BYTES_FIELD_NUMBER: _ClassVar[int] + LOCK_GENERATION_FIELD_NUMBER: _ClassVar[int] + OFFSET_FIELD_NUMBER: _ClassVar[int] + OPERATION_PARAMS_FIELD_NUMBER: _ClassVar[int] + PARTITION_ID_FIELD_NUMBER: _ClassVar[int] + PATH_FIELD_NUMBER: _ClassVar[int] + PRIORITY_FIELD_NUMBER: _ClassVar[int] + SIZE_FIELD_NUMBER: _ClassVar[int] + key: str + limit_bytes: int + lock_generation: int + offset: int + operation_params: _ydb_operation_pb2.OperationParams + partition_id: int + path: str + priority: Priorities.Priority + size: int + def __init__(self, operation_params: _Optional[_Union[_ydb_operation_pb2.OperationParams, _Mapping]] = ..., path: _Optional[str] = ..., partition_id: _Optional[int] = ..., lock_generation: _Optional[int] = ..., key: _Optional[str] = ..., offset: _Optional[int] = ..., size: _Optional[int] = ..., limit_bytes: _Optional[int] = ..., priority: _Optional[_Union[Priorities.Priority, str]] = ...) -> None: ... + +class ReadResponse(_message.Message): + __slots__ = ["operation"] + OPERATION_FIELD_NUMBER: _ClassVar[int] + operation: _ydb_operation_pb2.Operation + def __init__(self, operation: _Optional[_Union[_ydb_operation_pb2.Operation, _Mapping]] = ...) -> None: ... + +class ReadResult(_message.Message): + __slots__ = ["is_overrun", "node_id", "requested_key", "requested_offset", "requested_size", "value"] + IS_OVERRUN_FIELD_NUMBER: _ClassVar[int] + NODE_ID_FIELD_NUMBER: _ClassVar[int] + REQUESTED_KEY_FIELD_NUMBER: _ClassVar[int] + REQUESTED_OFFSET_FIELD_NUMBER: _ClassVar[int] + REQUESTED_SIZE_FIELD_NUMBER: _ClassVar[int] + VALUE_FIELD_NUMBER: _ClassVar[int] + is_overrun: bool + node_id: int + requested_key: str + requested_offset: int + requested_size: int + value: bytes + def __init__(self, requested_key: _Optional[str] = ..., requested_offset: _Optional[int] = ..., requested_size: _Optional[int] = ..., value: _Optional[bytes] = ..., is_overrun: bool = ..., node_id: _Optional[int] = ...) -> None: ... + +class StorageChannelInfo(_message.Message): + __slots__ = ["status_flag", "storage_channel"] + class StatusFlag(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + STATUS_FLAG_FIELD_NUMBER: _ClassVar[int] + STATUS_FLAG_GREEN: StorageChannelInfo.StatusFlag + STATUS_FLAG_ORANGE_OUT_SPACE: StorageChannelInfo.StatusFlag + STATUS_FLAG_UNSPECIFIED: StorageChannelInfo.StatusFlag + STATUS_FLAG_YELLOW_STOP: StorageChannelInfo.StatusFlag + STORAGE_CHANNEL_FIELD_NUMBER: _ClassVar[int] + status_flag: StorageChannelInfo.StatusFlag + storage_channel: int + def __init__(self, storage_channel: _Optional[int] = ..., status_flag: _Optional[_Union[StorageChannelInfo.StatusFlag, str]] = ...) -> None: ... + +class StorageConfig(_message.Message): + __slots__ = ["channel"] + class ChannelConfig(_message.Message): + __slots__ = ["media"] + MEDIA_FIELD_NUMBER: _ClassVar[int] + media: str + def __init__(self, media: _Optional[str] = ...) -> None: ... + CHANNEL_FIELD_NUMBER: _ClassVar[int] + channel: _containers.RepeatedCompositeFieldContainer[StorageConfig.ChannelConfig] + def __init__(self, channel: _Optional[_Iterable[_Union[StorageConfig.ChannelConfig, _Mapping]]] = ...) -> None: ... diff --git a/ydb/_grpc/v5/draft/protos/ydb_keyvalue_pb2_grpc.py b/ydb/_grpc/v5/draft/protos/ydb_keyvalue_pb2_grpc.py new file mode 100644 index 00000000..2daafffe --- /dev/null +++ b/ydb/_grpc/v5/draft/protos/ydb_keyvalue_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/ydb/_grpc/v5/draft/protos/ydb_maintenance_pb2.py b/ydb/_grpc/v5/draft/protos/ydb_maintenance_pb2.py new file mode 100644 index 00000000..eb00d035 --- /dev/null +++ b/ydb/_grpc/v5/draft/protos/ydb_maintenance_pb2.py @@ -0,0 +1,125 @@ +# -*- coding: utf-8 -*- +# flake8: noqa +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: draft/protos/ydb_maintenance.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from ydb._grpc.v5.protos.annotations import validation_pb2 as protos_dot_annotations_dot_validation__pb2 +from ydb._grpc.v5.protos import ydb_status_codes_pb2 as protos_dot_ydb__status__codes__pb2 +from ydb._grpc.v5.protos import ydb_discovery_pb2 as protos_dot_ydb__discovery__pb2 +from ydb._grpc.v5.protos import ydb_operation_pb2 as protos_dot_ydb__operation__pb2 +from google.protobuf import duration_pb2 as google_dot_protobuf_dot_duration__pb2 +from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\"draft/protos/ydb_maintenance.proto\x12\x0fYdb.Maintenance\x1a#protos/annotations/validation.proto\x1a\x1dprotos/ydb_status_codes.proto\x1a\x1aprotos/ydb_discovery.proto\x1a\x1aprotos/ydb_operation.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xf0\x02\n\x04Node\x12\x0f\n\x07node_id\x18\x01 \x01(\r\x12\x0c\n\x04host\x18\x02 \x01(\t\x12\x0c\n\x04port\x18\x03 \x01(\r\x12-\n\x08location\x18\x04 \x01(\x0b\x32\x1b.Ydb.Discovery.NodeLocation\x12)\n\x05state\x18\x05 \x01(\x0e\x32\x1a.Ydb.Maintenance.ItemState\x12\x34\n\x07storage\x18\x06 \x01(\x0b\x32!.Ydb.Maintenance.Node.StorageNodeH\x00\x12\x34\n\x07\x64ynamic\x18\x07 \x01(\x0b\x32!.Ydb.Maintenance.Node.DynamicNodeH\x00\x12.\n\nstart_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x0f\n\x07version\x18\t \x01(\t\x1a\r\n\x0bStorageNode\x1a\x1d\n\x0b\x44ynamicNode\x12\x0e\n\x06tenant\x18\x01 \x01(\tB\x06\n\x04type\"T\n\x17ListClusterNodesRequest\x12\x39\n\x10operation_params\x18\x01 \x01(\x0b\x32\x1f.Ydb.Operations.OperationParams\">\n\x16ListClusterNodesResult\x12$\n\x05nodes\x18\x01 \x03(\x0b\x32\x15.Ydb.Maintenance.Node\"H\n\x18ListClusterNodesResponse\x12,\n\toperation\x18\x01 \x01(\x0b\x32\x19.Ydb.Operations.Operation\"\xc3\x01\n\x16MaintenanceTaskOptions\x12\x19\n\x08task_uid\x18\x01 \x01(\tB\x07\xa2\xe6*\x03\x18\x80\x01\x12\x1c\n\x0b\x64\x65scription\x18\x02 \x01(\tB\x07\xa2\xe6*\x03\x18\x80\x01\x12<\n\x11\x61vailability_mode\x18\x03 \x01(\x0e\x32!.Ydb.Maintenance.AvailabilityMode\x12\x0f\n\x07\x64ry_run\x18\x04 \x01(\x08\x12!\n\x08priority\x18\x05 \x01(\x05\x42\x0f\xb2\xe6*\x0b[-100; 100]\"B\n\x0b\x41\x63tionScope\x12\x11\n\x07node_id\x18\x01 \x01(\rH\x00\x12\x17\n\x04host\x18\x02 \x01(\tB\x07\xa2\xe6*\x03\x18\xff\x01H\x00\x42\x07\n\x05scope\"f\n\nLockAction\x12+\n\x05scope\x18\x01 \x01(\x0b\x32\x1c.Ydb.Maintenance.ActionScope\x12+\n\x08\x64uration\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration\"F\n\x06\x41\x63tion\x12\x32\n\x0block_action\x18\x01 \x01(\x0b\x32\x1b.Ydb.Maintenance.LockActionH\x00\x42\x08\n\x06\x61\x63tion\"?\n\x0b\x41\x63tionGroup\x12\x30\n\x07\x61\x63tions\x18\x01 \x03(\x0b\x32\x17.Ydb.Maintenance.ActionB\x06\x9a\xe6*\x02(\x01\"\xd5\x01\n\x1c\x43reateMaintenanceTaskRequest\x12\x39\n\x10operation_params\x18\x01 \x01(\x0b\x32\x1f.Ydb.Operations.OperationParams\x12=\n\x0ctask_options\x18\x02 \x01(\x0b\x32\'.Ydb.Maintenance.MaintenanceTaskOptions\x12;\n\raction_groups\x18\x03 \x03(\x0b\x32\x1c.Ydb.Maintenance.ActionGroupB\x06\x9a\xe6*\x02(\x01\"u\n\x1dRefreshMaintenanceTaskRequest\x12\x39\n\x10operation_params\x18\x01 \x01(\x0b\x32\x1f.Ydb.Operations.OperationParams\x12\x19\n\x08task_uid\x18\x02 \x01(\tB\x07\xa2\xe6*\x03\x18\x80\x01\"]\n\tActionUid\x12\x19\n\x08task_uid\x18\x01 \x01(\tB\x07\xa2\xe6*\x03\x18\x80\x01\x12\x19\n\x08group_id\x18\x02 \x01(\tB\x07\xa2\xe6*\x03\x18\x80\x01\x12\x1a\n\taction_id\x18\x03 \x01(\tB\x07\xa2\xe6*\x03\x18\x80\x01\"\x8f\x06\n\x0b\x41\x63tionState\x12\'\n\x06\x61\x63tion\x18\x01 \x01(\x0b\x32\x17.Ydb.Maintenance.Action\x12.\n\naction_uid\x18\x02 \x01(\x0b\x32\x1a.Ydb.Maintenance.ActionUid\x12\x39\n\x06status\x18\x03 \x01(\x0e\x32).Ydb.Maintenance.ActionState.ActionStatus\x12\x39\n\x06reason\x18\x04 \x01(\x0e\x32).Ydb.Maintenance.ActionState.ActionReason\x12\x16\n\x0ereason_details\x18\x06 \x01(\t\x12,\n\x08\x64\x65\x61\x64line\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"e\n\x0c\x41\x63tionStatus\x12\x1d\n\x19\x41\x43TION_STATUS_UNSPECIFIED\x10\x00\x12\x19\n\x15\x41\x43TION_STATUS_PENDING\x10\x01\x12\x1b\n\x17\x41\x43TION_STATUS_PERFORMED\x10\x02\"\x83\x03\n\x0c\x41\x63tionReason\x12\x1d\n\x19\x41\x43TION_REASON_UNSPECIFIED\x10\x00\x12\x14\n\x10\x41\x43TION_REASON_OK\x10\x01\x12-\n)ACTION_REASON_TOO_MANY_UNAVAILABLE_VDISKS\x10\x02\x12:\n6ACTION_REASON_TOO_MANY_UNAVAILABLE_STATE_STORAGE_RINGS\x10\x03\x12.\n*ACTION_REASON_DISABLED_NODES_LIMIT_REACHED\x10\x04\x12\x35\n1ACTION_REASON_TENANT_DISABLED_NODES_LIMIT_REACHED\x10\x05\x12\x1f\n\x1b\x41\x43TION_REASON_WRONG_REQUEST\x10\x06\x12\x30\n,ACTION_REASON_SYS_TABLETS_NODE_LIMIT_REACHED\x10\x07\x12\x19\n\x15\x41\x43TION_REASON_GENERIC\x10\x08\"H\n\x11\x41\x63tionGroupStates\x12\x33\n\raction_states\x18\x01 \x03(\x0b\x32\x1c.Ydb.Maintenance.ActionState\"\xb0\x01\n\x15MaintenanceTaskResult\x12\x10\n\x08task_uid\x18\x01 \x01(\t\x12?\n\x13\x61\x63tion_group_states\x18\x02 \x03(\x0b\x32\".Ydb.Maintenance.ActionGroupStates\x12\x34\n\x0bretry_after\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x00\x88\x01\x01\x42\x0e\n\x0c_retry_after\"G\n\x17MaintenanceTaskResponse\x12,\n\toperation\x18\x01 \x01(\x0b\x32\x19.Ydb.Operations.Operation\"q\n\x19GetMaintenanceTaskRequest\x12\x39\n\x10operation_params\x18\x01 \x01(\x0b\x32\x1f.Ydb.Operations.OperationParams\x12\x19\n\x08task_uid\x18\x02 \x01(\tB\x07\xa2\xe6*\x03\x18\x80\x01\"\x9a\x01\n\x18GetMaintenanceTaskResult\x12=\n\x0ctask_options\x18\x01 \x01(\x0b\x32\'.Ydb.Maintenance.MaintenanceTaskOptions\x12?\n\x13\x61\x63tion_group_states\x18\x02 \x03(\x0b\x32\".Ydb.Maintenance.ActionGroupStates\"J\n\x1aGetMaintenanceTaskResponse\x12,\n\toperation\x18\x01 \x01(\x0b\x32\x19.Ydb.Operations.Operation\"t\n\x1bListMaintenanceTasksRequest\x12\x39\n\x10operation_params\x18\x01 \x01(\x0b\x32\x1f.Ydb.Operations.OperationParams\x12\x11\n\x04user\x18\x02 \x01(\tH\x00\x88\x01\x01\x42\x07\n\x05_user\"0\n\x1aListMaintenanceTasksResult\x12\x12\n\ntasks_uids\x18\x01 \x03(\t\"L\n\x1cListMaintenanceTasksResponse\x12,\n\toperation\x18\x01 \x01(\x0b\x32\x19.Ydb.Operations.Operation\"r\n\x1a\x44ropMaintenanceTaskRequest\x12\x39\n\x10operation_params\x18\x01 \x01(\x0b\x32\x1f.Ydb.Operations.OperationParams\x12\x19\n\x08task_uid\x18\x02 \x01(\tB\x07\xa2\xe6*\x03\x18\x80\x01\"M\n\x1dManageMaintenanceTaskResponse\x12,\n\toperation\x18\x01 \x01(\x0b\x32\x19.Ydb.Operations.Operation\"\x8b\x01\n\x15\x43ompleteActionRequest\x12\x39\n\x10operation_params\x18\x01 \x01(\x0b\x32\x1f.Ydb.Operations.OperationParams\x12\x37\n\x0b\x61\x63tion_uids\x18\x02 \x03(\x0b\x32\x1a.Ydb.Maintenance.ActionUidB\x06\x9a\xe6*\x02(\x01\"\xbe\x01\n\x12ManageActionResult\x12\x43\n\x0f\x61\x63tion_statuses\x18\x01 \x03(\x0b\x32*.Ydb.Maintenance.ManageActionResult.Status\x1a\x63\n\x06Status\x12.\n\naction_uid\x18\x01 \x01(\x0b\x32\x1a.Ydb.Maintenance.ActionUid\x12)\n\x06status\x18\x02 \x01(\x0e\x32\x19.Ydb.StatusIds.StatusCode\"D\n\x14ManageActionResponse\x12,\n\toperation\x18\x01 \x01(\x0b\x32\x19.Ydb.Operations.Operation*k\n\tItemState\x12\x1a\n\x16ITEM_STATE_UNSPECIFIED\x10\x00\x12\x11\n\rITEM_STATE_UP\x10\x01\x12\x1a\n\x16ITEM_STATE_MAINTENANCE\x10\x02\x12\x13\n\x0fITEM_STATE_DOWN\x10\x03*\x8c\x01\n\x10\x41vailabilityMode\x12!\n\x1d\x41VAILABILITY_MODE_UNSPECIFIED\x10\x00\x12\x1c\n\x18\x41VAILABILITY_MODE_STRONG\x10\x01\x12\x1a\n\x16\x41VAILABILITY_MODE_WEAK\x10\x02\x12\x1b\n\x17\x41VAILABILITY_MODE_FORCE\x10\x03\x42n\n#tech.ydb.proto.draft.maintenance.v1ZDgithub.com/ydb-platform/ydb-go-genproto/draft/protos/Ydb_Maintenance\xf8\x01\x01\x62\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'draft.protos.ydb_maintenance_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n#tech.ydb.proto.draft.maintenance.v1ZDgithub.com/ydb-platform/ydb-go-genproto/draft/protos/Ydb_Maintenance\370\001\001' + _MAINTENANCETASKOPTIONS.fields_by_name['task_uid']._options = None + _MAINTENANCETASKOPTIONS.fields_by_name['task_uid']._serialized_options = b'\242\346*\003\030\200\001' + _MAINTENANCETASKOPTIONS.fields_by_name['description']._options = None + _MAINTENANCETASKOPTIONS.fields_by_name['description']._serialized_options = b'\242\346*\003\030\200\001' + _MAINTENANCETASKOPTIONS.fields_by_name['priority']._options = None + _MAINTENANCETASKOPTIONS.fields_by_name['priority']._serialized_options = b'\262\346*\013[-100; 100]' + _ACTIONSCOPE.fields_by_name['host']._options = None + _ACTIONSCOPE.fields_by_name['host']._serialized_options = b'\242\346*\003\030\377\001' + _ACTIONGROUP.fields_by_name['actions']._options = None + _ACTIONGROUP.fields_by_name['actions']._serialized_options = b'\232\346*\002(\001' + _CREATEMAINTENANCETASKREQUEST.fields_by_name['action_groups']._options = None + _CREATEMAINTENANCETASKREQUEST.fields_by_name['action_groups']._serialized_options = b'\232\346*\002(\001' + _REFRESHMAINTENANCETASKREQUEST.fields_by_name['task_uid']._options = None + _REFRESHMAINTENANCETASKREQUEST.fields_by_name['task_uid']._serialized_options = b'\242\346*\003\030\200\001' + _ACTIONUID.fields_by_name['task_uid']._options = None + _ACTIONUID.fields_by_name['task_uid']._serialized_options = b'\242\346*\003\030\200\001' + _ACTIONUID.fields_by_name['group_id']._options = None + _ACTIONUID.fields_by_name['group_id']._serialized_options = b'\242\346*\003\030\200\001' + _ACTIONUID.fields_by_name['action_id']._options = None + _ACTIONUID.fields_by_name['action_id']._serialized_options = b'\242\346*\003\030\200\001' + _GETMAINTENANCETASKREQUEST.fields_by_name['task_uid']._options = None + _GETMAINTENANCETASKREQUEST.fields_by_name['task_uid']._serialized_options = b'\242\346*\003\030\200\001' + _DROPMAINTENANCETASKREQUEST.fields_by_name['task_uid']._options = None + _DROPMAINTENANCETASKREQUEST.fields_by_name['task_uid']._serialized_options = b'\242\346*\003\030\200\001' + _COMPLETEACTIONREQUEST.fields_by_name['action_uids']._options = None + _COMPLETEACTIONREQUEST.fields_by_name['action_uids']._serialized_options = b'\232\346*\002(\001' + _ITEMSTATE._serialized_start=4082 + _ITEMSTATE._serialized_end=4189 + _AVAILABILITYMODE._serialized_start=4192 + _AVAILABILITYMODE._serialized_end=4332 + _NODE._serialized_start=245 + _NODE._serialized_end=613 + _NODE_STORAGENODE._serialized_start=561 + _NODE_STORAGENODE._serialized_end=574 + _NODE_DYNAMICNODE._serialized_start=576 + _NODE_DYNAMICNODE._serialized_end=605 + _LISTCLUSTERNODESREQUEST._serialized_start=615 + _LISTCLUSTERNODESREQUEST._serialized_end=699 + _LISTCLUSTERNODESRESULT._serialized_start=701 + _LISTCLUSTERNODESRESULT._serialized_end=763 + _LISTCLUSTERNODESRESPONSE._serialized_start=765 + _LISTCLUSTERNODESRESPONSE._serialized_end=837 + _MAINTENANCETASKOPTIONS._serialized_start=840 + _MAINTENANCETASKOPTIONS._serialized_end=1035 + _ACTIONSCOPE._serialized_start=1037 + _ACTIONSCOPE._serialized_end=1103 + _LOCKACTION._serialized_start=1105 + _LOCKACTION._serialized_end=1207 + _ACTION._serialized_start=1209 + _ACTION._serialized_end=1279 + _ACTIONGROUP._serialized_start=1281 + _ACTIONGROUP._serialized_end=1344 + _CREATEMAINTENANCETASKREQUEST._serialized_start=1347 + _CREATEMAINTENANCETASKREQUEST._serialized_end=1560 + _REFRESHMAINTENANCETASKREQUEST._serialized_start=1562 + _REFRESHMAINTENANCETASKREQUEST._serialized_end=1679 + _ACTIONUID._serialized_start=1681 + _ACTIONUID._serialized_end=1774 + _ACTIONSTATE._serialized_start=1777 + _ACTIONSTATE._serialized_end=2560 + _ACTIONSTATE_ACTIONSTATUS._serialized_start=2069 + _ACTIONSTATE_ACTIONSTATUS._serialized_end=2170 + _ACTIONSTATE_ACTIONREASON._serialized_start=2173 + _ACTIONSTATE_ACTIONREASON._serialized_end=2560 + _ACTIONGROUPSTATES._serialized_start=2562 + _ACTIONGROUPSTATES._serialized_end=2634 + _MAINTENANCETASKRESULT._serialized_start=2637 + _MAINTENANCETASKRESULT._serialized_end=2813 + _MAINTENANCETASKRESPONSE._serialized_start=2815 + _MAINTENANCETASKRESPONSE._serialized_end=2886 + _GETMAINTENANCETASKREQUEST._serialized_start=2888 + _GETMAINTENANCETASKREQUEST._serialized_end=3001 + _GETMAINTENANCETASKRESULT._serialized_start=3004 + _GETMAINTENANCETASKRESULT._serialized_end=3158 + _GETMAINTENANCETASKRESPONSE._serialized_start=3160 + _GETMAINTENANCETASKRESPONSE._serialized_end=3234 + _LISTMAINTENANCETASKSREQUEST._serialized_start=3236 + _LISTMAINTENANCETASKSREQUEST._serialized_end=3352 + _LISTMAINTENANCETASKSRESULT._serialized_start=3354 + _LISTMAINTENANCETASKSRESULT._serialized_end=3402 + _LISTMAINTENANCETASKSRESPONSE._serialized_start=3404 + _LISTMAINTENANCETASKSRESPONSE._serialized_end=3480 + _DROPMAINTENANCETASKREQUEST._serialized_start=3482 + _DROPMAINTENANCETASKREQUEST._serialized_end=3596 + _MANAGEMAINTENANCETASKRESPONSE._serialized_start=3598 + _MANAGEMAINTENANCETASKRESPONSE._serialized_end=3675 + _COMPLETEACTIONREQUEST._serialized_start=3678 + _COMPLETEACTIONREQUEST._serialized_end=3817 + _MANAGEACTIONRESULT._serialized_start=3820 + _MANAGEACTIONRESULT._serialized_end=4010 + _MANAGEACTIONRESULT_STATUS._serialized_start=3911 + _MANAGEACTIONRESULT_STATUS._serialized_end=4010 + _MANAGEACTIONRESPONSE._serialized_start=4012 + _MANAGEACTIONRESPONSE._serialized_end=4080 +# @@protoc_insertion_point(module_scope) diff --git a/ydb/_grpc/v5/draft/protos/ydb_maintenance_pb2.pyi b/ydb/_grpc/v5/draft/protos/ydb_maintenance_pb2.pyi new file mode 100644 index 00000000..20533943 --- /dev/null +++ b/ydb/_grpc/v5/draft/protos/ydb_maintenance_pb2.pyi @@ -0,0 +1,282 @@ +from protos.annotations import validation_pb2 as _validation_pb2 +from protos import ydb_status_codes_pb2 as _ydb_status_codes_pb2 +from protos import ydb_discovery_pb2 as _ydb_discovery_pb2 +from protos import ydb_operation_pb2 as _ydb_operation_pb2 +from google.protobuf import duration_pb2 as _duration_pb2 +from google.protobuf import timestamp_pb2 as _timestamp_pb2 +from google.protobuf.internal import containers as _containers +from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union + +AVAILABILITY_MODE_FORCE: AvailabilityMode +AVAILABILITY_MODE_STRONG: AvailabilityMode +AVAILABILITY_MODE_UNSPECIFIED: AvailabilityMode +AVAILABILITY_MODE_WEAK: AvailabilityMode +DESCRIPTOR: _descriptor.FileDescriptor +ITEM_STATE_DOWN: ItemState +ITEM_STATE_MAINTENANCE: ItemState +ITEM_STATE_UNSPECIFIED: ItemState +ITEM_STATE_UP: ItemState + +class Action(_message.Message): + __slots__ = ["lock_action"] + LOCK_ACTION_FIELD_NUMBER: _ClassVar[int] + lock_action: LockAction + def __init__(self, lock_action: _Optional[_Union[LockAction, _Mapping]] = ...) -> None: ... + +class ActionGroup(_message.Message): + __slots__ = ["actions"] + ACTIONS_FIELD_NUMBER: _ClassVar[int] + actions: _containers.RepeatedCompositeFieldContainer[Action] + def __init__(self, actions: _Optional[_Iterable[_Union[Action, _Mapping]]] = ...) -> None: ... + +class ActionGroupStates(_message.Message): + __slots__ = ["action_states"] + ACTION_STATES_FIELD_NUMBER: _ClassVar[int] + action_states: _containers.RepeatedCompositeFieldContainer[ActionState] + def __init__(self, action_states: _Optional[_Iterable[_Union[ActionState, _Mapping]]] = ...) -> None: ... + +class ActionScope(_message.Message): + __slots__ = ["host", "node_id"] + HOST_FIELD_NUMBER: _ClassVar[int] + NODE_ID_FIELD_NUMBER: _ClassVar[int] + host: str + node_id: int + def __init__(self, node_id: _Optional[int] = ..., host: _Optional[str] = ...) -> None: ... + +class ActionState(_message.Message): + __slots__ = ["action", "action_uid", "deadline", "reason", "reason_details", "status"] + class ActionReason(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + class ActionStatus(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + ACTION_FIELD_NUMBER: _ClassVar[int] + ACTION_REASON_DISABLED_NODES_LIMIT_REACHED: ActionState.ActionReason + ACTION_REASON_GENERIC: ActionState.ActionReason + ACTION_REASON_OK: ActionState.ActionReason + ACTION_REASON_SYS_TABLETS_NODE_LIMIT_REACHED: ActionState.ActionReason + ACTION_REASON_TENANT_DISABLED_NODES_LIMIT_REACHED: ActionState.ActionReason + ACTION_REASON_TOO_MANY_UNAVAILABLE_STATE_STORAGE_RINGS: ActionState.ActionReason + ACTION_REASON_TOO_MANY_UNAVAILABLE_VDISKS: ActionState.ActionReason + ACTION_REASON_UNSPECIFIED: ActionState.ActionReason + ACTION_REASON_WRONG_REQUEST: ActionState.ActionReason + ACTION_STATUS_PENDING: ActionState.ActionStatus + ACTION_STATUS_PERFORMED: ActionState.ActionStatus + ACTION_STATUS_UNSPECIFIED: ActionState.ActionStatus + ACTION_UID_FIELD_NUMBER: _ClassVar[int] + DEADLINE_FIELD_NUMBER: _ClassVar[int] + REASON_DETAILS_FIELD_NUMBER: _ClassVar[int] + REASON_FIELD_NUMBER: _ClassVar[int] + STATUS_FIELD_NUMBER: _ClassVar[int] + action: Action + action_uid: ActionUid + deadline: _timestamp_pb2.Timestamp + reason: ActionState.ActionReason + reason_details: str + status: ActionState.ActionStatus + def __init__(self, action: _Optional[_Union[Action, _Mapping]] = ..., action_uid: _Optional[_Union[ActionUid, _Mapping]] = ..., status: _Optional[_Union[ActionState.ActionStatus, str]] = ..., reason: _Optional[_Union[ActionState.ActionReason, str]] = ..., reason_details: _Optional[str] = ..., deadline: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ...) -> None: ... + +class ActionUid(_message.Message): + __slots__ = ["action_id", "group_id", "task_uid"] + ACTION_ID_FIELD_NUMBER: _ClassVar[int] + GROUP_ID_FIELD_NUMBER: _ClassVar[int] + TASK_UID_FIELD_NUMBER: _ClassVar[int] + action_id: str + group_id: str + task_uid: str + def __init__(self, task_uid: _Optional[str] = ..., group_id: _Optional[str] = ..., action_id: _Optional[str] = ...) -> None: ... + +class CompleteActionRequest(_message.Message): + __slots__ = ["action_uids", "operation_params"] + ACTION_UIDS_FIELD_NUMBER: _ClassVar[int] + OPERATION_PARAMS_FIELD_NUMBER: _ClassVar[int] + action_uids: _containers.RepeatedCompositeFieldContainer[ActionUid] + operation_params: _ydb_operation_pb2.OperationParams + def __init__(self, operation_params: _Optional[_Union[_ydb_operation_pb2.OperationParams, _Mapping]] = ..., action_uids: _Optional[_Iterable[_Union[ActionUid, _Mapping]]] = ...) -> None: ... + +class CreateMaintenanceTaskRequest(_message.Message): + __slots__ = ["action_groups", "operation_params", "task_options"] + ACTION_GROUPS_FIELD_NUMBER: _ClassVar[int] + OPERATION_PARAMS_FIELD_NUMBER: _ClassVar[int] + TASK_OPTIONS_FIELD_NUMBER: _ClassVar[int] + action_groups: _containers.RepeatedCompositeFieldContainer[ActionGroup] + operation_params: _ydb_operation_pb2.OperationParams + task_options: MaintenanceTaskOptions + def __init__(self, operation_params: _Optional[_Union[_ydb_operation_pb2.OperationParams, _Mapping]] = ..., task_options: _Optional[_Union[MaintenanceTaskOptions, _Mapping]] = ..., action_groups: _Optional[_Iterable[_Union[ActionGroup, _Mapping]]] = ...) -> None: ... + +class DropMaintenanceTaskRequest(_message.Message): + __slots__ = ["operation_params", "task_uid"] + OPERATION_PARAMS_FIELD_NUMBER: _ClassVar[int] + TASK_UID_FIELD_NUMBER: _ClassVar[int] + operation_params: _ydb_operation_pb2.OperationParams + task_uid: str + def __init__(self, operation_params: _Optional[_Union[_ydb_operation_pb2.OperationParams, _Mapping]] = ..., task_uid: _Optional[str] = ...) -> None: ... + +class GetMaintenanceTaskRequest(_message.Message): + __slots__ = ["operation_params", "task_uid"] + OPERATION_PARAMS_FIELD_NUMBER: _ClassVar[int] + TASK_UID_FIELD_NUMBER: _ClassVar[int] + operation_params: _ydb_operation_pb2.OperationParams + task_uid: str + def __init__(self, operation_params: _Optional[_Union[_ydb_operation_pb2.OperationParams, _Mapping]] = ..., task_uid: _Optional[str] = ...) -> None: ... + +class GetMaintenanceTaskResponse(_message.Message): + __slots__ = ["operation"] + OPERATION_FIELD_NUMBER: _ClassVar[int] + operation: _ydb_operation_pb2.Operation + def __init__(self, operation: _Optional[_Union[_ydb_operation_pb2.Operation, _Mapping]] = ...) -> None: ... + +class GetMaintenanceTaskResult(_message.Message): + __slots__ = ["action_group_states", "task_options"] + ACTION_GROUP_STATES_FIELD_NUMBER: _ClassVar[int] + TASK_OPTIONS_FIELD_NUMBER: _ClassVar[int] + action_group_states: _containers.RepeatedCompositeFieldContainer[ActionGroupStates] + task_options: MaintenanceTaskOptions + def __init__(self, task_options: _Optional[_Union[MaintenanceTaskOptions, _Mapping]] = ..., action_group_states: _Optional[_Iterable[_Union[ActionGroupStates, _Mapping]]] = ...) -> None: ... + +class ListClusterNodesRequest(_message.Message): + __slots__ = ["operation_params"] + OPERATION_PARAMS_FIELD_NUMBER: _ClassVar[int] + operation_params: _ydb_operation_pb2.OperationParams + def __init__(self, operation_params: _Optional[_Union[_ydb_operation_pb2.OperationParams, _Mapping]] = ...) -> None: ... + +class ListClusterNodesResponse(_message.Message): + __slots__ = ["operation"] + OPERATION_FIELD_NUMBER: _ClassVar[int] + operation: _ydb_operation_pb2.Operation + def __init__(self, operation: _Optional[_Union[_ydb_operation_pb2.Operation, _Mapping]] = ...) -> None: ... + +class ListClusterNodesResult(_message.Message): + __slots__ = ["nodes"] + NODES_FIELD_NUMBER: _ClassVar[int] + nodes: _containers.RepeatedCompositeFieldContainer[Node] + def __init__(self, nodes: _Optional[_Iterable[_Union[Node, _Mapping]]] = ...) -> None: ... + +class ListMaintenanceTasksRequest(_message.Message): + __slots__ = ["operation_params", "user"] + OPERATION_PARAMS_FIELD_NUMBER: _ClassVar[int] + USER_FIELD_NUMBER: _ClassVar[int] + operation_params: _ydb_operation_pb2.OperationParams + user: str + def __init__(self, operation_params: _Optional[_Union[_ydb_operation_pb2.OperationParams, _Mapping]] = ..., user: _Optional[str] = ...) -> None: ... + +class ListMaintenanceTasksResponse(_message.Message): + __slots__ = ["operation"] + OPERATION_FIELD_NUMBER: _ClassVar[int] + operation: _ydb_operation_pb2.Operation + def __init__(self, operation: _Optional[_Union[_ydb_operation_pb2.Operation, _Mapping]] = ...) -> None: ... + +class ListMaintenanceTasksResult(_message.Message): + __slots__ = ["tasks_uids"] + TASKS_UIDS_FIELD_NUMBER: _ClassVar[int] + tasks_uids: _containers.RepeatedScalarFieldContainer[str] + def __init__(self, tasks_uids: _Optional[_Iterable[str]] = ...) -> None: ... + +class LockAction(_message.Message): + __slots__ = ["duration", "scope"] + DURATION_FIELD_NUMBER: _ClassVar[int] + SCOPE_FIELD_NUMBER: _ClassVar[int] + duration: _duration_pb2.Duration + scope: ActionScope + def __init__(self, scope: _Optional[_Union[ActionScope, _Mapping]] = ..., duration: _Optional[_Union[_duration_pb2.Duration, _Mapping]] = ...) -> None: ... + +class MaintenanceTaskOptions(_message.Message): + __slots__ = ["availability_mode", "description", "dry_run", "priority", "task_uid"] + AVAILABILITY_MODE_FIELD_NUMBER: _ClassVar[int] + DESCRIPTION_FIELD_NUMBER: _ClassVar[int] + DRY_RUN_FIELD_NUMBER: _ClassVar[int] + PRIORITY_FIELD_NUMBER: _ClassVar[int] + TASK_UID_FIELD_NUMBER: _ClassVar[int] + availability_mode: AvailabilityMode + description: str + dry_run: bool + priority: int + task_uid: str + def __init__(self, task_uid: _Optional[str] = ..., description: _Optional[str] = ..., availability_mode: _Optional[_Union[AvailabilityMode, str]] = ..., dry_run: bool = ..., priority: _Optional[int] = ...) -> None: ... + +class MaintenanceTaskResponse(_message.Message): + __slots__ = ["operation"] + OPERATION_FIELD_NUMBER: _ClassVar[int] + operation: _ydb_operation_pb2.Operation + def __init__(self, operation: _Optional[_Union[_ydb_operation_pb2.Operation, _Mapping]] = ...) -> None: ... + +class MaintenanceTaskResult(_message.Message): + __slots__ = ["action_group_states", "retry_after", "task_uid"] + ACTION_GROUP_STATES_FIELD_NUMBER: _ClassVar[int] + RETRY_AFTER_FIELD_NUMBER: _ClassVar[int] + TASK_UID_FIELD_NUMBER: _ClassVar[int] + action_group_states: _containers.RepeatedCompositeFieldContainer[ActionGroupStates] + retry_after: _timestamp_pb2.Timestamp + task_uid: str + def __init__(self, task_uid: _Optional[str] = ..., action_group_states: _Optional[_Iterable[_Union[ActionGroupStates, _Mapping]]] = ..., retry_after: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ...) -> None: ... + +class ManageActionResponse(_message.Message): + __slots__ = ["operation"] + OPERATION_FIELD_NUMBER: _ClassVar[int] + operation: _ydb_operation_pb2.Operation + def __init__(self, operation: _Optional[_Union[_ydb_operation_pb2.Operation, _Mapping]] = ...) -> None: ... + +class ManageActionResult(_message.Message): + __slots__ = ["action_statuses"] + class Status(_message.Message): + __slots__ = ["action_uid", "status"] + ACTION_UID_FIELD_NUMBER: _ClassVar[int] + STATUS_FIELD_NUMBER: _ClassVar[int] + action_uid: ActionUid + status: _ydb_status_codes_pb2.StatusIds.StatusCode + def __init__(self, action_uid: _Optional[_Union[ActionUid, _Mapping]] = ..., status: _Optional[_Union[_ydb_status_codes_pb2.StatusIds.StatusCode, str]] = ...) -> None: ... + ACTION_STATUSES_FIELD_NUMBER: _ClassVar[int] + action_statuses: _containers.RepeatedCompositeFieldContainer[ManageActionResult.Status] + def __init__(self, action_statuses: _Optional[_Iterable[_Union[ManageActionResult.Status, _Mapping]]] = ...) -> None: ... + +class ManageMaintenanceTaskResponse(_message.Message): + __slots__ = ["operation"] + OPERATION_FIELD_NUMBER: _ClassVar[int] + operation: _ydb_operation_pb2.Operation + def __init__(self, operation: _Optional[_Union[_ydb_operation_pb2.Operation, _Mapping]] = ...) -> None: ... + +class Node(_message.Message): + __slots__ = ["dynamic", "host", "location", "node_id", "port", "start_time", "state", "storage", "version"] + class DynamicNode(_message.Message): + __slots__ = ["tenant"] + TENANT_FIELD_NUMBER: _ClassVar[int] + tenant: str + def __init__(self, tenant: _Optional[str] = ...) -> None: ... + class StorageNode(_message.Message): + __slots__ = [] + def __init__(self) -> None: ... + DYNAMIC_FIELD_NUMBER: _ClassVar[int] + HOST_FIELD_NUMBER: _ClassVar[int] + LOCATION_FIELD_NUMBER: _ClassVar[int] + NODE_ID_FIELD_NUMBER: _ClassVar[int] + PORT_FIELD_NUMBER: _ClassVar[int] + START_TIME_FIELD_NUMBER: _ClassVar[int] + STATE_FIELD_NUMBER: _ClassVar[int] + STORAGE_FIELD_NUMBER: _ClassVar[int] + VERSION_FIELD_NUMBER: _ClassVar[int] + dynamic: Node.DynamicNode + host: str + location: _ydb_discovery_pb2.NodeLocation + node_id: int + port: int + start_time: _timestamp_pb2.Timestamp + state: ItemState + storage: Node.StorageNode + version: str + def __init__(self, node_id: _Optional[int] = ..., host: _Optional[str] = ..., port: _Optional[int] = ..., location: _Optional[_Union[_ydb_discovery_pb2.NodeLocation, _Mapping]] = ..., state: _Optional[_Union[ItemState, str]] = ..., storage: _Optional[_Union[Node.StorageNode, _Mapping]] = ..., dynamic: _Optional[_Union[Node.DynamicNode, _Mapping]] = ..., start_time: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., version: _Optional[str] = ...) -> None: ... + +class RefreshMaintenanceTaskRequest(_message.Message): + __slots__ = ["operation_params", "task_uid"] + OPERATION_PARAMS_FIELD_NUMBER: _ClassVar[int] + TASK_UID_FIELD_NUMBER: _ClassVar[int] + operation_params: _ydb_operation_pb2.OperationParams + task_uid: str + def __init__(self, operation_params: _Optional[_Union[_ydb_operation_pb2.OperationParams, _Mapping]] = ..., task_uid: _Optional[str] = ...) -> None: ... + +class ItemState(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + +class AvailabilityMode(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] diff --git a/ydb/_grpc/v5/draft/protos/ydb_maintenance_pb2_grpc.py b/ydb/_grpc/v5/draft/protos/ydb_maintenance_pb2_grpc.py new file mode 100644 index 00000000..2daafffe --- /dev/null +++ b/ydb/_grpc/v5/draft/protos/ydb_maintenance_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/ydb/_grpc/v5/draft/protos/ydb_object_storage_pb2.py b/ydb/_grpc/v5/draft/protos/ydb_object_storage_pb2.py new file mode 100644 index 00000000..ce6f400b --- /dev/null +++ b/ydb/_grpc/v5/draft/protos/ydb_object_storage_pb2.py @@ -0,0 +1,34 @@ +# -*- coding: utf-8 -*- +# flake8: noqa +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: draft/protos/ydb_object_storage.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from ydb._grpc.v5.protos import ydb_issue_message_pb2 as protos_dot_ydb__issue__message__pb2 +from ydb._grpc.v5.protos import ydb_value_pb2 as protos_dot_ydb__value__pb2 +from ydb._grpc.v5.protos import ydb_status_codes_pb2 as protos_dot_ydb__status__codes__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n%draft/protos/ydb_object_storage.proto\x12\x11Ydb.ObjectStorage\x1a\x1eprotos/ydb_issue_message.proto\x1a\x16protos/ydb_value.proto\x1a\x1dprotos/ydb_status_codes.proto\"\xd6\x02\n\x0eListingRequest\x12\x12\n\ntable_name\x18\x01 \x01(\t\x12#\n\nkey_prefix\x18\x02 \x01(\x0b\x32\x0f.Ydb.TypedValue\x12\x1a\n\x12path_column_prefix\x18\x03 \x01(\t\x12\x1d\n\x15path_column_delimiter\x18\x04 \x01(\t\x12\x1a\n\x12\x63ontinuation_token\x18\x05 \x01(\x0c\x12/\n\x16start_after_key_suffix\x18\x06 \x01(\x0b\x32\x0f.Ydb.TypedValue\x12\x10\n\x08max_keys\x18\x07 \x01(\x05\x12\x19\n\x11\x63olumns_to_return\x18\x08 \x03(\t\x12(\n\x0fmatching_filter\x18\n \x01(\x0b\x32\x0f.Ydb.TypedValue\"&\n\nEMatchType\x12\t\n\x05\x45QUAL\x10\x00\x12\r\n\tNOT_EQUAL\x10\x01J\x04\x08\t\x10\n\"\xd7\x01\n\x0fListingResponse\x12)\n\x06status\x18\x01 \x01(\x0e\x32\x19.Ydb.StatusIds.StatusCode\x12\'\n\x06issues\x18\x02 \x03(\x0b\x32\x17.Ydb.Issue.IssueMessage\x12\x17\n\x0f\x63ommon_prefixes\x18\x03 \x03(\t\x12 \n\x08\x63ontents\x18\x04 \x01(\x0b\x32\x0e.Ydb.ResultSet\x12\x14\n\x0cis_truncated\x18\x05 \x01(\x08\x12\x1f\n\x17next_continuation_token\x18\x06 \x01(\x0c\x42p\n#tech.ydb.proto.draft.object_storageZFgithub.com/ydb-platform/ydb-go-genproto/draft/protos/Ydb_ObjectStorage\xf8\x01\x01\x62\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'draft.protos.ydb_object_storage_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n#tech.ydb.proto.draft.object_storageZFgithub.com/ydb-platform/ydb-go-genproto/draft/protos/Ydb_ObjectStorage\370\001\001' + _LISTINGREQUEST._serialized_start=148 + _LISTINGREQUEST._serialized_end=490 + _LISTINGREQUEST_EMATCHTYPE._serialized_start=446 + _LISTINGREQUEST_EMATCHTYPE._serialized_end=484 + _LISTINGRESPONSE._serialized_start=493 + _LISTINGRESPONSE._serialized_end=708 +# @@protoc_insertion_point(module_scope) diff --git a/ydb/_grpc/v5/draft/protos/ydb_object_storage_pb2.pyi b/ydb/_grpc/v5/draft/protos/ydb_object_storage_pb2.pyi new file mode 100644 index 00000000..3fabda60 --- /dev/null +++ b/ydb/_grpc/v5/draft/protos/ydb_object_storage_pb2.pyi @@ -0,0 +1,52 @@ +from protos import ydb_issue_message_pb2 as _ydb_issue_message_pb2 +from protos import ydb_value_pb2 as _ydb_value_pb2 +from protos import ydb_status_codes_pb2 as _ydb_status_codes_pb2 +from google.protobuf.internal import containers as _containers +from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union + +DESCRIPTOR: _descriptor.FileDescriptor + +class ListingRequest(_message.Message): + __slots__ = ["columns_to_return", "continuation_token", "key_prefix", "matching_filter", "max_keys", "path_column_delimiter", "path_column_prefix", "start_after_key_suffix", "table_name"] + class EMatchType(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + COLUMNS_TO_RETURN_FIELD_NUMBER: _ClassVar[int] + CONTINUATION_TOKEN_FIELD_NUMBER: _ClassVar[int] + EQUAL: ListingRequest.EMatchType + KEY_PREFIX_FIELD_NUMBER: _ClassVar[int] + MATCHING_FILTER_FIELD_NUMBER: _ClassVar[int] + MAX_KEYS_FIELD_NUMBER: _ClassVar[int] + NOT_EQUAL: ListingRequest.EMatchType + PATH_COLUMN_DELIMITER_FIELD_NUMBER: _ClassVar[int] + PATH_COLUMN_PREFIX_FIELD_NUMBER: _ClassVar[int] + START_AFTER_KEY_SUFFIX_FIELD_NUMBER: _ClassVar[int] + TABLE_NAME_FIELD_NUMBER: _ClassVar[int] + columns_to_return: _containers.RepeatedScalarFieldContainer[str] + continuation_token: bytes + key_prefix: _ydb_value_pb2.TypedValue + matching_filter: _ydb_value_pb2.TypedValue + max_keys: int + path_column_delimiter: str + path_column_prefix: str + start_after_key_suffix: _ydb_value_pb2.TypedValue + table_name: str + def __init__(self, table_name: _Optional[str] = ..., key_prefix: _Optional[_Union[_ydb_value_pb2.TypedValue, _Mapping]] = ..., path_column_prefix: _Optional[str] = ..., path_column_delimiter: _Optional[str] = ..., continuation_token: _Optional[bytes] = ..., start_after_key_suffix: _Optional[_Union[_ydb_value_pb2.TypedValue, _Mapping]] = ..., max_keys: _Optional[int] = ..., columns_to_return: _Optional[_Iterable[str]] = ..., matching_filter: _Optional[_Union[_ydb_value_pb2.TypedValue, _Mapping]] = ...) -> None: ... + +class ListingResponse(_message.Message): + __slots__ = ["common_prefixes", "contents", "is_truncated", "issues", "next_continuation_token", "status"] + COMMON_PREFIXES_FIELD_NUMBER: _ClassVar[int] + CONTENTS_FIELD_NUMBER: _ClassVar[int] + ISSUES_FIELD_NUMBER: _ClassVar[int] + IS_TRUNCATED_FIELD_NUMBER: _ClassVar[int] + NEXT_CONTINUATION_TOKEN_FIELD_NUMBER: _ClassVar[int] + STATUS_FIELD_NUMBER: _ClassVar[int] + common_prefixes: _containers.RepeatedScalarFieldContainer[str] + contents: _ydb_value_pb2.ResultSet + is_truncated: bool + issues: _containers.RepeatedCompositeFieldContainer[_ydb_issue_message_pb2.IssueMessage] + next_continuation_token: bytes + status: _ydb_status_codes_pb2.StatusIds.StatusCode + def __init__(self, status: _Optional[_Union[_ydb_status_codes_pb2.StatusIds.StatusCode, str]] = ..., issues: _Optional[_Iterable[_Union[_ydb_issue_message_pb2.IssueMessage, _Mapping]]] = ..., common_prefixes: _Optional[_Iterable[str]] = ..., contents: _Optional[_Union[_ydb_value_pb2.ResultSet, _Mapping]] = ..., is_truncated: bool = ..., next_continuation_token: _Optional[bytes] = ...) -> None: ... diff --git a/ydb/_grpc/v5/draft/protos/ydb_object_storage_pb2_grpc.py b/ydb/_grpc/v5/draft/protos/ydb_object_storage_pb2_grpc.py new file mode 100644 index 00000000..2daafffe --- /dev/null +++ b/ydb/_grpc/v5/draft/protos/ydb_object_storage_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/ydb/_grpc/v5/draft/ydb_dynamic_config_v1_pb2.py b/ydb/_grpc/v5/draft/ydb_dynamic_config_v1_pb2.py new file mode 100644 index 00000000..6ca4181b --- /dev/null +++ b/ydb/_grpc/v5/draft/ydb_dynamic_config_v1_pb2.py @@ -0,0 +1,28 @@ +# -*- coding: utf-8 -*- +# flake8: noqa +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: draft/ydb_dynamic_config_v1.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from ydb._grpc.v5.draft.protos import ydb_dynamic_config_pb2 as draft_dot_protos_dot_ydb__dynamic__config__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n!draft/ydb_dynamic_config_v1.proto\x12\x14Ydb.DynamicConfig.V1\x1a%draft/protos/ydb_dynamic_config.proto2\x81\x08\n\x14\x44ynamicConfigService\x12V\n\tSetConfig\x12#.Ydb.DynamicConfig.SetConfigRequest\x1a$.Ydb.DynamicConfig.SetConfigResponse\x12\x62\n\rReplaceConfig\x12\'.Ydb.DynamicConfig.ReplaceConfigRequest\x1a(.Ydb.DynamicConfig.ReplaceConfigResponse\x12\\\n\x0bGetMetadata\x12%.Ydb.DynamicConfig.GetMetadataRequest\x1a&.Ydb.DynamicConfig.GetMetadataResponse\x12V\n\tGetConfig\x12#.Ydb.DynamicConfig.GetConfigRequest\x1a$.Ydb.DynamicConfig.GetConfigResponse\x12Y\n\nDropConfig\x12$.Ydb.DynamicConfig.DropConfigRequest\x1a%.Ydb.DynamicConfig.DropConfigResponse\x12n\n\x11\x41\x64\x64VolatileConfig\x12+.Ydb.DynamicConfig.AddVolatileConfigRequest\x1a,.Ydb.DynamicConfig.AddVolatileConfigResponse\x12w\n\x14RemoveVolatileConfig\x12..Ydb.DynamicConfig.RemoveVolatileConfigRequest\x1a/.Ydb.DynamicConfig.RemoveVolatileConfigResponse\x12\x62\n\rGetNodeLabels\x12\'.Ydb.DynamicConfig.GetNodeLabelsRequest\x1a(.Ydb.DynamicConfig.GetNodeLabelsResponse\x12\x62\n\rResolveConfig\x12\'.Ydb.DynamicConfig.ResolveConfigRequest\x1a(.Ydb.DynamicConfig.ResolveConfigResponse\x12k\n\x10ResolveAllConfig\x12*.Ydb.DynamicConfig.ResolveAllConfigRequest\x1a+.Ydb.DynamicConfig.ResolveAllConfigResponseBn\n%tech.ydb.proto.draft.dynamicconfig.v1ZBgithub.com/ydb-platform/ydb-go-genproto/draft/Ydb_DynamicConfig_V1\xf8\x01\x01\x62\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'draft.ydb_dynamic_config_v1_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n%tech.ydb.proto.draft.dynamicconfig.v1ZBgithub.com/ydb-platform/ydb-go-genproto/draft/Ydb_DynamicConfig_V1\370\001\001' + _DYNAMICCONFIGSERVICE._serialized_start=99 + _DYNAMICCONFIGSERVICE._serialized_end=1124 +# @@protoc_insertion_point(module_scope) diff --git a/ydb/_grpc/v5/draft/ydb_dynamic_config_v1_pb2.pyi b/ydb/_grpc/v5/draft/ydb_dynamic_config_v1_pb2.pyi new file mode 100644 index 00000000..3e78c154 --- /dev/null +++ b/ydb/_grpc/v5/draft/ydb_dynamic_config_v1_pb2.pyi @@ -0,0 +1,5 @@ +from draft.protos import ydb_dynamic_config_pb2 as _ydb_dynamic_config_pb2 +from google.protobuf import descriptor as _descriptor +from typing import ClassVar as _ClassVar + +DESCRIPTOR: _descriptor.FileDescriptor diff --git a/ydb/_grpc/v5/draft/ydb_dynamic_config_v1_pb2_grpc.py b/ydb/_grpc/v5/draft/ydb_dynamic_config_v1_pb2_grpc.py new file mode 100644 index 00000000..a8fef354 --- /dev/null +++ b/ydb/_grpc/v5/draft/ydb_dynamic_config_v1_pb2_grpc.py @@ -0,0 +1,390 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + +from ydb._grpc.v5.draft.protos import ydb_dynamic_config_pb2 as draft_dot_protos_dot_ydb__dynamic__config__pb2 + + +class DynamicConfigServiceStub(object): + """Dynamic Config is the configuration applied to dynamic nodes without static configuration + and is utilized by certain services, such as logging, which can update their settings + seamlessly without requiring any restarts. + + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.SetConfig = channel.unary_unary( + '/Ydb.DynamicConfig.V1.DynamicConfigService/SetConfig', + request_serializer=draft_dot_protos_dot_ydb__dynamic__config__pb2.SetConfigRequest.SerializeToString, + response_deserializer=draft_dot_protos_dot_ydb__dynamic__config__pb2.SetConfigResponse.FromString, + ) + self.ReplaceConfig = channel.unary_unary( + '/Ydb.DynamicConfig.V1.DynamicConfigService/ReplaceConfig', + request_serializer=draft_dot_protos_dot_ydb__dynamic__config__pb2.ReplaceConfigRequest.SerializeToString, + response_deserializer=draft_dot_protos_dot_ydb__dynamic__config__pb2.ReplaceConfigResponse.FromString, + ) + self.GetMetadata = channel.unary_unary( + '/Ydb.DynamicConfig.V1.DynamicConfigService/GetMetadata', + request_serializer=draft_dot_protos_dot_ydb__dynamic__config__pb2.GetMetadataRequest.SerializeToString, + response_deserializer=draft_dot_protos_dot_ydb__dynamic__config__pb2.GetMetadataResponse.FromString, + ) + self.GetConfig = channel.unary_unary( + '/Ydb.DynamicConfig.V1.DynamicConfigService/GetConfig', + request_serializer=draft_dot_protos_dot_ydb__dynamic__config__pb2.GetConfigRequest.SerializeToString, + response_deserializer=draft_dot_protos_dot_ydb__dynamic__config__pb2.GetConfigResponse.FromString, + ) + self.DropConfig = channel.unary_unary( + '/Ydb.DynamicConfig.V1.DynamicConfigService/DropConfig', + request_serializer=draft_dot_protos_dot_ydb__dynamic__config__pb2.DropConfigRequest.SerializeToString, + response_deserializer=draft_dot_protos_dot_ydb__dynamic__config__pb2.DropConfigResponse.FromString, + ) + self.AddVolatileConfig = channel.unary_unary( + '/Ydb.DynamicConfig.V1.DynamicConfigService/AddVolatileConfig', + request_serializer=draft_dot_protos_dot_ydb__dynamic__config__pb2.AddVolatileConfigRequest.SerializeToString, + response_deserializer=draft_dot_protos_dot_ydb__dynamic__config__pb2.AddVolatileConfigResponse.FromString, + ) + self.RemoveVolatileConfig = channel.unary_unary( + '/Ydb.DynamicConfig.V1.DynamicConfigService/RemoveVolatileConfig', + request_serializer=draft_dot_protos_dot_ydb__dynamic__config__pb2.RemoveVolatileConfigRequest.SerializeToString, + response_deserializer=draft_dot_protos_dot_ydb__dynamic__config__pb2.RemoveVolatileConfigResponse.FromString, + ) + self.GetNodeLabels = channel.unary_unary( + '/Ydb.DynamicConfig.V1.DynamicConfigService/GetNodeLabels', + request_serializer=draft_dot_protos_dot_ydb__dynamic__config__pb2.GetNodeLabelsRequest.SerializeToString, + response_deserializer=draft_dot_protos_dot_ydb__dynamic__config__pb2.GetNodeLabelsResponse.FromString, + ) + self.ResolveConfig = channel.unary_unary( + '/Ydb.DynamicConfig.V1.DynamicConfigService/ResolveConfig', + request_serializer=draft_dot_protos_dot_ydb__dynamic__config__pb2.ResolveConfigRequest.SerializeToString, + response_deserializer=draft_dot_protos_dot_ydb__dynamic__config__pb2.ResolveConfigResponse.FromString, + ) + self.ResolveAllConfig = channel.unary_unary( + '/Ydb.DynamicConfig.V1.DynamicConfigService/ResolveAllConfig', + request_serializer=draft_dot_protos_dot_ydb__dynamic__config__pb2.ResolveAllConfigRequest.SerializeToString, + response_deserializer=draft_dot_protos_dot_ydb__dynamic__config__pb2.ResolveAllConfigResponse.FromString, + ) + + +class DynamicConfigServiceServicer(object): + """Dynamic Config is the configuration applied to dynamic nodes without static configuration + and is utilized by certain services, such as logging, which can update their settings + seamlessly without requiring any restarts. + + """ + + def SetConfig(self, request, context): + """Apply new version of config. + Overwrites previous version. + This call is idempotent: + - Two subsequent identical calls will return success, + - After applying next version another identical call will result in an error. + The field version within the YAML in the request must strictly be set to the current version increment by one. + The field cluster within the YAML should be identical to the one configured on the node used by the console tablet. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ReplaceConfig(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetMetadata(self, request, context): + """Get current configs metadata. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetConfig(self, request, context): + """Get current configs. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def DropConfig(self, request, context): + """Drop current config. + This call is idempotent. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def AddVolatileConfig(self, request, context): + """Add volatile config. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def RemoveVolatileConfig(self, request, context): + """Remove volatile config. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetNodeLabels(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ResolveConfig(self, request, context): + """Resolve config for particular labels. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ResolveAllConfig(self, request, context): + """Resolve config for all possible labels combinations. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_DynamicConfigServiceServicer_to_server(servicer, server): + rpc_method_handlers = { + 'SetConfig': grpc.unary_unary_rpc_method_handler( + servicer.SetConfig, + request_deserializer=draft_dot_protos_dot_ydb__dynamic__config__pb2.SetConfigRequest.FromString, + response_serializer=draft_dot_protos_dot_ydb__dynamic__config__pb2.SetConfigResponse.SerializeToString, + ), + 'ReplaceConfig': grpc.unary_unary_rpc_method_handler( + servicer.ReplaceConfig, + request_deserializer=draft_dot_protos_dot_ydb__dynamic__config__pb2.ReplaceConfigRequest.FromString, + response_serializer=draft_dot_protos_dot_ydb__dynamic__config__pb2.ReplaceConfigResponse.SerializeToString, + ), + 'GetMetadata': grpc.unary_unary_rpc_method_handler( + servicer.GetMetadata, + request_deserializer=draft_dot_protos_dot_ydb__dynamic__config__pb2.GetMetadataRequest.FromString, + response_serializer=draft_dot_protos_dot_ydb__dynamic__config__pb2.GetMetadataResponse.SerializeToString, + ), + 'GetConfig': grpc.unary_unary_rpc_method_handler( + servicer.GetConfig, + request_deserializer=draft_dot_protos_dot_ydb__dynamic__config__pb2.GetConfigRequest.FromString, + response_serializer=draft_dot_protos_dot_ydb__dynamic__config__pb2.GetConfigResponse.SerializeToString, + ), + 'DropConfig': grpc.unary_unary_rpc_method_handler( + servicer.DropConfig, + request_deserializer=draft_dot_protos_dot_ydb__dynamic__config__pb2.DropConfigRequest.FromString, + response_serializer=draft_dot_protos_dot_ydb__dynamic__config__pb2.DropConfigResponse.SerializeToString, + ), + 'AddVolatileConfig': grpc.unary_unary_rpc_method_handler( + servicer.AddVolatileConfig, + request_deserializer=draft_dot_protos_dot_ydb__dynamic__config__pb2.AddVolatileConfigRequest.FromString, + response_serializer=draft_dot_protos_dot_ydb__dynamic__config__pb2.AddVolatileConfigResponse.SerializeToString, + ), + 'RemoveVolatileConfig': grpc.unary_unary_rpc_method_handler( + servicer.RemoveVolatileConfig, + request_deserializer=draft_dot_protos_dot_ydb__dynamic__config__pb2.RemoveVolatileConfigRequest.FromString, + response_serializer=draft_dot_protos_dot_ydb__dynamic__config__pb2.RemoveVolatileConfigResponse.SerializeToString, + ), + 'GetNodeLabels': grpc.unary_unary_rpc_method_handler( + servicer.GetNodeLabels, + request_deserializer=draft_dot_protos_dot_ydb__dynamic__config__pb2.GetNodeLabelsRequest.FromString, + response_serializer=draft_dot_protos_dot_ydb__dynamic__config__pb2.GetNodeLabelsResponse.SerializeToString, + ), + 'ResolveConfig': grpc.unary_unary_rpc_method_handler( + servicer.ResolveConfig, + request_deserializer=draft_dot_protos_dot_ydb__dynamic__config__pb2.ResolveConfigRequest.FromString, + response_serializer=draft_dot_protos_dot_ydb__dynamic__config__pb2.ResolveConfigResponse.SerializeToString, + ), + 'ResolveAllConfig': grpc.unary_unary_rpc_method_handler( + servicer.ResolveAllConfig, + request_deserializer=draft_dot_protos_dot_ydb__dynamic__config__pb2.ResolveAllConfigRequest.FromString, + response_serializer=draft_dot_protos_dot_ydb__dynamic__config__pb2.ResolveAllConfigResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'Ydb.DynamicConfig.V1.DynamicConfigService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + + + # This class is part of an EXPERIMENTAL API. +class DynamicConfigService(object): + """Dynamic Config is the configuration applied to dynamic nodes without static configuration + and is utilized by certain services, such as logging, which can update their settings + seamlessly without requiring any restarts. + + """ + + @staticmethod + def SetConfig(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/Ydb.DynamicConfig.V1.DynamicConfigService/SetConfig', + draft_dot_protos_dot_ydb__dynamic__config__pb2.SetConfigRequest.SerializeToString, + draft_dot_protos_dot_ydb__dynamic__config__pb2.SetConfigResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ReplaceConfig(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/Ydb.DynamicConfig.V1.DynamicConfigService/ReplaceConfig', + draft_dot_protos_dot_ydb__dynamic__config__pb2.ReplaceConfigRequest.SerializeToString, + draft_dot_protos_dot_ydb__dynamic__config__pb2.ReplaceConfigResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetMetadata(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/Ydb.DynamicConfig.V1.DynamicConfigService/GetMetadata', + draft_dot_protos_dot_ydb__dynamic__config__pb2.GetMetadataRequest.SerializeToString, + draft_dot_protos_dot_ydb__dynamic__config__pb2.GetMetadataResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetConfig(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/Ydb.DynamicConfig.V1.DynamicConfigService/GetConfig', + draft_dot_protos_dot_ydb__dynamic__config__pb2.GetConfigRequest.SerializeToString, + draft_dot_protos_dot_ydb__dynamic__config__pb2.GetConfigResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def DropConfig(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/Ydb.DynamicConfig.V1.DynamicConfigService/DropConfig', + draft_dot_protos_dot_ydb__dynamic__config__pb2.DropConfigRequest.SerializeToString, + draft_dot_protos_dot_ydb__dynamic__config__pb2.DropConfigResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def AddVolatileConfig(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/Ydb.DynamicConfig.V1.DynamicConfigService/AddVolatileConfig', + draft_dot_protos_dot_ydb__dynamic__config__pb2.AddVolatileConfigRequest.SerializeToString, + draft_dot_protos_dot_ydb__dynamic__config__pb2.AddVolatileConfigResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def RemoveVolatileConfig(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/Ydb.DynamicConfig.V1.DynamicConfigService/RemoveVolatileConfig', + draft_dot_protos_dot_ydb__dynamic__config__pb2.RemoveVolatileConfigRequest.SerializeToString, + draft_dot_protos_dot_ydb__dynamic__config__pb2.RemoveVolatileConfigResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetNodeLabels(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/Ydb.DynamicConfig.V1.DynamicConfigService/GetNodeLabels', + draft_dot_protos_dot_ydb__dynamic__config__pb2.GetNodeLabelsRequest.SerializeToString, + draft_dot_protos_dot_ydb__dynamic__config__pb2.GetNodeLabelsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ResolveConfig(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/Ydb.DynamicConfig.V1.DynamicConfigService/ResolveConfig', + draft_dot_protos_dot_ydb__dynamic__config__pb2.ResolveConfigRequest.SerializeToString, + draft_dot_protos_dot_ydb__dynamic__config__pb2.ResolveConfigResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ResolveAllConfig(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/Ydb.DynamicConfig.V1.DynamicConfigService/ResolveAllConfig', + draft_dot_protos_dot_ydb__dynamic__config__pb2.ResolveAllConfigRequest.SerializeToString, + draft_dot_protos_dot_ydb__dynamic__config__pb2.ResolveAllConfigResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/ydb/_grpc/v5/draft/ydb_federated_query_v1_pb2.py b/ydb/_grpc/v5/draft/ydb_federated_query_v1_pb2.py new file mode 100644 index 00000000..02b465c4 --- /dev/null +++ b/ydb/_grpc/v5/draft/ydb_federated_query_v1_pb2.py @@ -0,0 +1,28 @@ +# -*- coding: utf-8 -*- +# flake8: noqa +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: draft/ydb_federated_query_v1.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from ydb._grpc.v5.draft.protos import ydb_federated_query_pb2 as draft_dot_protos_dot_ydb__federated__query__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\"draft/ydb_federated_query_v1.proto\x12\x11\x46\x65\x64\x65ratedQuery.V1\x1a&draft/protos/ydb_federated_query.proto2\xd6\x0f\n\x15\x46\x65\x64\x65ratedQueryService\x12V\n\x0b\x43reateQuery\x12\".FederatedQuery.CreateQueryRequest\x1a#.FederatedQuery.CreateQueryResponse\x12V\n\x0bListQueries\x12\".FederatedQuery.ListQueriesRequest\x1a#.FederatedQuery.ListQueriesResponse\x12\\\n\rDescribeQuery\x12$.FederatedQuery.DescribeQueryRequest\x1a%.FederatedQuery.DescribeQueryResponse\x12_\n\x0eGetQueryStatus\x12%.FederatedQuery.GetQueryStatusRequest\x1a&.FederatedQuery.GetQueryStatusResponse\x12V\n\x0bModifyQuery\x12\".FederatedQuery.ModifyQueryRequest\x1a#.FederatedQuery.ModifyQueryResponse\x12V\n\x0b\x44\x65leteQuery\x12\".FederatedQuery.DeleteQueryRequest\x1a#.FederatedQuery.DeleteQueryResponse\x12Y\n\x0c\x43ontrolQuery\x12#.FederatedQuery.ControlQueryRequest\x1a$.FederatedQuery.ControlQueryResponse\x12\\\n\rGetResultData\x12$.FederatedQuery.GetResultDataRequest\x1a%.FederatedQuery.GetResultDataResponse\x12M\n\x08ListJobs\x12\x1f.FederatedQuery.ListJobsRequest\x1a .FederatedQuery.ListJobsResponse\x12V\n\x0b\x44\x65scribeJob\x12\".FederatedQuery.DescribeJobRequest\x1a#.FederatedQuery.DescribeJobResponse\x12\x65\n\x10\x43reateConnection\x12\'.FederatedQuery.CreateConnectionRequest\x1a(.FederatedQuery.CreateConnectionResponse\x12\x62\n\x0fListConnections\x12&.FederatedQuery.ListConnectionsRequest\x1a\'.FederatedQuery.ListConnectionsResponse\x12k\n\x12\x44\x65scribeConnection\x12).FederatedQuery.DescribeConnectionRequest\x1a*.FederatedQuery.DescribeConnectionResponse\x12\x65\n\x10ModifyConnection\x12\'.FederatedQuery.ModifyConnectionRequest\x1a(.FederatedQuery.ModifyConnectionResponse\x12\x65\n\x10\x44\x65leteConnection\x12\'.FederatedQuery.DeleteConnectionRequest\x1a(.FederatedQuery.DeleteConnectionResponse\x12_\n\x0eTestConnection\x12%.FederatedQuery.TestConnectionRequest\x1a&.FederatedQuery.TestConnectionResponse\x12\\\n\rCreateBinding\x12$.FederatedQuery.CreateBindingRequest\x1a%.FederatedQuery.CreateBindingResponse\x12Y\n\x0cListBindings\x12#.FederatedQuery.ListBindingsRequest\x1a$.FederatedQuery.ListBindingsResponse\x12\x62\n\x0f\x44\x65scribeBinding\x12&.FederatedQuery.DescribeBindingRequest\x1a\'.FederatedQuery.DescribeBindingResponse\x12\\\n\rModifyBinding\x12$.FederatedQuery.ModifyBindingRequest\x1a%.FederatedQuery.ModifyBindingResponse\x12\\\n\rDeleteBinding\x12$.FederatedQuery.DeleteBindingRequest\x1a%.FederatedQuery.DeleteBindingResponseBn\n\'tech.ydb.proto.draft.federated.query.v1ZCgithub.com/ydb-platform/ydb-go-genproto/draft/Ydb_FederatedQuery_V1b\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'draft.ydb_federated_query_v1_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\'tech.ydb.proto.draft.federated.query.v1ZCgithub.com/ydb-platform/ydb-go-genproto/draft/Ydb_FederatedQuery_V1' + _FEDERATEDQUERYSERVICE._serialized_start=98 + _FEDERATEDQUERYSERVICE._serialized_end=2104 +# @@protoc_insertion_point(module_scope) diff --git a/ydb/_grpc/v5/draft/ydb_federated_query_v1_pb2.pyi b/ydb/_grpc/v5/draft/ydb_federated_query_v1_pb2.pyi new file mode 100644 index 00000000..786beec0 --- /dev/null +++ b/ydb/_grpc/v5/draft/ydb_federated_query_v1_pb2.pyi @@ -0,0 +1,5 @@ +from draft.protos import ydb_federated_query_pb2 as _ydb_federated_query_pb2 +from google.protobuf import descriptor as _descriptor +from typing import ClassVar as _ClassVar + +DESCRIPTOR: _descriptor.FileDescriptor diff --git a/ydb/_grpc/v5/draft/ydb_federated_query_v1_pb2_grpc.py b/ydb/_grpc/v5/draft/ydb_federated_query_v1_pb2_grpc.py new file mode 100644 index 00000000..6687dd3c --- /dev/null +++ b/ydb/_grpc/v5/draft/ydb_federated_query_v1_pb2_grpc.py @@ -0,0 +1,755 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + +from ydb._grpc.v5.draft.protos import ydb_federated_query_pb2 as draft_dot_protos_dot_ydb__federated__query__pb2 + + +class FederatedQueryServiceStub(object): + """Missing associated documentation comment in .proto file.""" + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.CreateQuery = channel.unary_unary( + '/FederatedQuery.V1.FederatedQueryService/CreateQuery', + request_serializer=draft_dot_protos_dot_ydb__federated__query__pb2.CreateQueryRequest.SerializeToString, + response_deserializer=draft_dot_protos_dot_ydb__federated__query__pb2.CreateQueryResponse.FromString, + ) + self.ListQueries = channel.unary_unary( + '/FederatedQuery.V1.FederatedQueryService/ListQueries', + request_serializer=draft_dot_protos_dot_ydb__federated__query__pb2.ListQueriesRequest.SerializeToString, + response_deserializer=draft_dot_protos_dot_ydb__federated__query__pb2.ListQueriesResponse.FromString, + ) + self.DescribeQuery = channel.unary_unary( + '/FederatedQuery.V1.FederatedQueryService/DescribeQuery', + request_serializer=draft_dot_protos_dot_ydb__federated__query__pb2.DescribeQueryRequest.SerializeToString, + response_deserializer=draft_dot_protos_dot_ydb__federated__query__pb2.DescribeQueryResponse.FromString, + ) + self.GetQueryStatus = channel.unary_unary( + '/FederatedQuery.V1.FederatedQueryService/GetQueryStatus', + request_serializer=draft_dot_protos_dot_ydb__federated__query__pb2.GetQueryStatusRequest.SerializeToString, + response_deserializer=draft_dot_protos_dot_ydb__federated__query__pb2.GetQueryStatusResponse.FromString, + ) + self.ModifyQuery = channel.unary_unary( + '/FederatedQuery.V1.FederatedQueryService/ModifyQuery', + request_serializer=draft_dot_protos_dot_ydb__federated__query__pb2.ModifyQueryRequest.SerializeToString, + response_deserializer=draft_dot_protos_dot_ydb__federated__query__pb2.ModifyQueryResponse.FromString, + ) + self.DeleteQuery = channel.unary_unary( + '/FederatedQuery.V1.FederatedQueryService/DeleteQuery', + request_serializer=draft_dot_protos_dot_ydb__federated__query__pb2.DeleteQueryRequest.SerializeToString, + response_deserializer=draft_dot_protos_dot_ydb__federated__query__pb2.DeleteQueryResponse.FromString, + ) + self.ControlQuery = channel.unary_unary( + '/FederatedQuery.V1.FederatedQueryService/ControlQuery', + request_serializer=draft_dot_protos_dot_ydb__federated__query__pb2.ControlQueryRequest.SerializeToString, + response_deserializer=draft_dot_protos_dot_ydb__federated__query__pb2.ControlQueryResponse.FromString, + ) + self.GetResultData = channel.unary_unary( + '/FederatedQuery.V1.FederatedQueryService/GetResultData', + request_serializer=draft_dot_protos_dot_ydb__federated__query__pb2.GetResultDataRequest.SerializeToString, + response_deserializer=draft_dot_protos_dot_ydb__federated__query__pb2.GetResultDataResponse.FromString, + ) + self.ListJobs = channel.unary_unary( + '/FederatedQuery.V1.FederatedQueryService/ListJobs', + request_serializer=draft_dot_protos_dot_ydb__federated__query__pb2.ListJobsRequest.SerializeToString, + response_deserializer=draft_dot_protos_dot_ydb__federated__query__pb2.ListJobsResponse.FromString, + ) + self.DescribeJob = channel.unary_unary( + '/FederatedQuery.V1.FederatedQueryService/DescribeJob', + request_serializer=draft_dot_protos_dot_ydb__federated__query__pb2.DescribeJobRequest.SerializeToString, + response_deserializer=draft_dot_protos_dot_ydb__federated__query__pb2.DescribeJobResponse.FromString, + ) + self.CreateConnection = channel.unary_unary( + '/FederatedQuery.V1.FederatedQueryService/CreateConnection', + request_serializer=draft_dot_protos_dot_ydb__federated__query__pb2.CreateConnectionRequest.SerializeToString, + response_deserializer=draft_dot_protos_dot_ydb__federated__query__pb2.CreateConnectionResponse.FromString, + ) + self.ListConnections = channel.unary_unary( + '/FederatedQuery.V1.FederatedQueryService/ListConnections', + request_serializer=draft_dot_protos_dot_ydb__federated__query__pb2.ListConnectionsRequest.SerializeToString, + response_deserializer=draft_dot_protos_dot_ydb__federated__query__pb2.ListConnectionsResponse.FromString, + ) + self.DescribeConnection = channel.unary_unary( + '/FederatedQuery.V1.FederatedQueryService/DescribeConnection', + request_serializer=draft_dot_protos_dot_ydb__federated__query__pb2.DescribeConnectionRequest.SerializeToString, + response_deserializer=draft_dot_protos_dot_ydb__federated__query__pb2.DescribeConnectionResponse.FromString, + ) + self.ModifyConnection = channel.unary_unary( + '/FederatedQuery.V1.FederatedQueryService/ModifyConnection', + request_serializer=draft_dot_protos_dot_ydb__federated__query__pb2.ModifyConnectionRequest.SerializeToString, + response_deserializer=draft_dot_protos_dot_ydb__federated__query__pb2.ModifyConnectionResponse.FromString, + ) + self.DeleteConnection = channel.unary_unary( + '/FederatedQuery.V1.FederatedQueryService/DeleteConnection', + request_serializer=draft_dot_protos_dot_ydb__federated__query__pb2.DeleteConnectionRequest.SerializeToString, + response_deserializer=draft_dot_protos_dot_ydb__federated__query__pb2.DeleteConnectionResponse.FromString, + ) + self.TestConnection = channel.unary_unary( + '/FederatedQuery.V1.FederatedQueryService/TestConnection', + request_serializer=draft_dot_protos_dot_ydb__federated__query__pb2.TestConnectionRequest.SerializeToString, + response_deserializer=draft_dot_protos_dot_ydb__federated__query__pb2.TestConnectionResponse.FromString, + ) + self.CreateBinding = channel.unary_unary( + '/FederatedQuery.V1.FederatedQueryService/CreateBinding', + request_serializer=draft_dot_protos_dot_ydb__federated__query__pb2.CreateBindingRequest.SerializeToString, + response_deserializer=draft_dot_protos_dot_ydb__federated__query__pb2.CreateBindingResponse.FromString, + ) + self.ListBindings = channel.unary_unary( + '/FederatedQuery.V1.FederatedQueryService/ListBindings', + request_serializer=draft_dot_protos_dot_ydb__federated__query__pb2.ListBindingsRequest.SerializeToString, + response_deserializer=draft_dot_protos_dot_ydb__federated__query__pb2.ListBindingsResponse.FromString, + ) + self.DescribeBinding = channel.unary_unary( + '/FederatedQuery.V1.FederatedQueryService/DescribeBinding', + request_serializer=draft_dot_protos_dot_ydb__federated__query__pb2.DescribeBindingRequest.SerializeToString, + response_deserializer=draft_dot_protos_dot_ydb__federated__query__pb2.DescribeBindingResponse.FromString, + ) + self.ModifyBinding = channel.unary_unary( + '/FederatedQuery.V1.FederatedQueryService/ModifyBinding', + request_serializer=draft_dot_protos_dot_ydb__federated__query__pb2.ModifyBindingRequest.SerializeToString, + response_deserializer=draft_dot_protos_dot_ydb__federated__query__pb2.ModifyBindingResponse.FromString, + ) + self.DeleteBinding = channel.unary_unary( + '/FederatedQuery.V1.FederatedQueryService/DeleteBinding', + request_serializer=draft_dot_protos_dot_ydb__federated__query__pb2.DeleteBindingRequest.SerializeToString, + response_deserializer=draft_dot_protos_dot_ydb__federated__query__pb2.DeleteBindingResponse.FromString, + ) + + +class FederatedQueryServiceServicer(object): + """Missing associated documentation comment in .proto file.""" + + def CreateQuery(self, request, context): + """Query + Query is the text of an SQL request, the results of the last run and the state after the last run (partitions offsets, consumer in YDS) + Create a query object with a given SQL + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ListQueries(self, request, context): + """Get a list of brief queries objects + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def DescribeQuery(self, request, context): + """Get full information about the object of the query + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetQueryStatus(self, request, context): + """Get status of the query + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ModifyQuery(self, request, context): + """Change the attributes of the query (acl, name, ...) + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def DeleteQuery(self, request, context): + """Completely delete the query + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ControlQuery(self, request, context): + """Change the state of the query lifecycle + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetResultData(self, request, context): + """Get a results page + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ListJobs(self, request, context): + """Job + Job - appears immediately after starting the request and contains the request metadata + Get a list of jobs + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def DescribeJob(self, request, context): + """Get information about the job + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def CreateConnection(self, request, context): + """Connection + Connection - entity that describes connection points. This can be imagined as an analogue of a network address. + Create a connection object (ObjectStorage, YDB, YDS, ...) + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ListConnections(self, request, context): + """Get a list of connections objects + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def DescribeConnection(self, request, context): + """Get information about the object of the connection + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ModifyConnection(self, request, context): + """Change the attributes of the connection + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def DeleteConnection(self, request, context): + """Completely delete the connection + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def TestConnection(self, request, context): + """Test the connection (permissions, network, ...) + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def CreateBinding(self, request, context): + """Binding + Binding - entity using which a schema is assigned to non-schematic data + Create a binding object - bind schema with ObjectStorage object or YDS stream + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ListBindings(self, request, context): + """Get a list of bindings objects + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def DescribeBinding(self, request, context): + """Get information about the object of the binding + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ModifyBinding(self, request, context): + """Change the attributes of the binding + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def DeleteBinding(self, request, context): + """Completely delete the binding + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_FederatedQueryServiceServicer_to_server(servicer, server): + rpc_method_handlers = { + 'CreateQuery': grpc.unary_unary_rpc_method_handler( + servicer.CreateQuery, + request_deserializer=draft_dot_protos_dot_ydb__federated__query__pb2.CreateQueryRequest.FromString, + response_serializer=draft_dot_protos_dot_ydb__federated__query__pb2.CreateQueryResponse.SerializeToString, + ), + 'ListQueries': grpc.unary_unary_rpc_method_handler( + servicer.ListQueries, + request_deserializer=draft_dot_protos_dot_ydb__federated__query__pb2.ListQueriesRequest.FromString, + response_serializer=draft_dot_protos_dot_ydb__federated__query__pb2.ListQueriesResponse.SerializeToString, + ), + 'DescribeQuery': grpc.unary_unary_rpc_method_handler( + servicer.DescribeQuery, + request_deserializer=draft_dot_protos_dot_ydb__federated__query__pb2.DescribeQueryRequest.FromString, + response_serializer=draft_dot_protos_dot_ydb__federated__query__pb2.DescribeQueryResponse.SerializeToString, + ), + 'GetQueryStatus': grpc.unary_unary_rpc_method_handler( + servicer.GetQueryStatus, + request_deserializer=draft_dot_protos_dot_ydb__federated__query__pb2.GetQueryStatusRequest.FromString, + response_serializer=draft_dot_protos_dot_ydb__federated__query__pb2.GetQueryStatusResponse.SerializeToString, + ), + 'ModifyQuery': grpc.unary_unary_rpc_method_handler( + servicer.ModifyQuery, + request_deserializer=draft_dot_protos_dot_ydb__federated__query__pb2.ModifyQueryRequest.FromString, + response_serializer=draft_dot_protos_dot_ydb__federated__query__pb2.ModifyQueryResponse.SerializeToString, + ), + 'DeleteQuery': grpc.unary_unary_rpc_method_handler( + servicer.DeleteQuery, + request_deserializer=draft_dot_protos_dot_ydb__federated__query__pb2.DeleteQueryRequest.FromString, + response_serializer=draft_dot_protos_dot_ydb__federated__query__pb2.DeleteQueryResponse.SerializeToString, + ), + 'ControlQuery': grpc.unary_unary_rpc_method_handler( + servicer.ControlQuery, + request_deserializer=draft_dot_protos_dot_ydb__federated__query__pb2.ControlQueryRequest.FromString, + response_serializer=draft_dot_protos_dot_ydb__federated__query__pb2.ControlQueryResponse.SerializeToString, + ), + 'GetResultData': grpc.unary_unary_rpc_method_handler( + servicer.GetResultData, + request_deserializer=draft_dot_protos_dot_ydb__federated__query__pb2.GetResultDataRequest.FromString, + response_serializer=draft_dot_protos_dot_ydb__federated__query__pb2.GetResultDataResponse.SerializeToString, + ), + 'ListJobs': grpc.unary_unary_rpc_method_handler( + servicer.ListJobs, + request_deserializer=draft_dot_protos_dot_ydb__federated__query__pb2.ListJobsRequest.FromString, + response_serializer=draft_dot_protos_dot_ydb__federated__query__pb2.ListJobsResponse.SerializeToString, + ), + 'DescribeJob': grpc.unary_unary_rpc_method_handler( + servicer.DescribeJob, + request_deserializer=draft_dot_protos_dot_ydb__federated__query__pb2.DescribeJobRequest.FromString, + response_serializer=draft_dot_protos_dot_ydb__federated__query__pb2.DescribeJobResponse.SerializeToString, + ), + 'CreateConnection': grpc.unary_unary_rpc_method_handler( + servicer.CreateConnection, + request_deserializer=draft_dot_protos_dot_ydb__federated__query__pb2.CreateConnectionRequest.FromString, + response_serializer=draft_dot_protos_dot_ydb__federated__query__pb2.CreateConnectionResponse.SerializeToString, + ), + 'ListConnections': grpc.unary_unary_rpc_method_handler( + servicer.ListConnections, + request_deserializer=draft_dot_protos_dot_ydb__federated__query__pb2.ListConnectionsRequest.FromString, + response_serializer=draft_dot_protos_dot_ydb__federated__query__pb2.ListConnectionsResponse.SerializeToString, + ), + 'DescribeConnection': grpc.unary_unary_rpc_method_handler( + servicer.DescribeConnection, + request_deserializer=draft_dot_protos_dot_ydb__federated__query__pb2.DescribeConnectionRequest.FromString, + response_serializer=draft_dot_protos_dot_ydb__federated__query__pb2.DescribeConnectionResponse.SerializeToString, + ), + 'ModifyConnection': grpc.unary_unary_rpc_method_handler( + servicer.ModifyConnection, + request_deserializer=draft_dot_protos_dot_ydb__federated__query__pb2.ModifyConnectionRequest.FromString, + response_serializer=draft_dot_protos_dot_ydb__federated__query__pb2.ModifyConnectionResponse.SerializeToString, + ), + 'DeleteConnection': grpc.unary_unary_rpc_method_handler( + servicer.DeleteConnection, + request_deserializer=draft_dot_protos_dot_ydb__federated__query__pb2.DeleteConnectionRequest.FromString, + response_serializer=draft_dot_protos_dot_ydb__federated__query__pb2.DeleteConnectionResponse.SerializeToString, + ), + 'TestConnection': grpc.unary_unary_rpc_method_handler( + servicer.TestConnection, + request_deserializer=draft_dot_protos_dot_ydb__federated__query__pb2.TestConnectionRequest.FromString, + response_serializer=draft_dot_protos_dot_ydb__federated__query__pb2.TestConnectionResponse.SerializeToString, + ), + 'CreateBinding': grpc.unary_unary_rpc_method_handler( + servicer.CreateBinding, + request_deserializer=draft_dot_protos_dot_ydb__federated__query__pb2.CreateBindingRequest.FromString, + response_serializer=draft_dot_protos_dot_ydb__federated__query__pb2.CreateBindingResponse.SerializeToString, + ), + 'ListBindings': grpc.unary_unary_rpc_method_handler( + servicer.ListBindings, + request_deserializer=draft_dot_protos_dot_ydb__federated__query__pb2.ListBindingsRequest.FromString, + response_serializer=draft_dot_protos_dot_ydb__federated__query__pb2.ListBindingsResponse.SerializeToString, + ), + 'DescribeBinding': grpc.unary_unary_rpc_method_handler( + servicer.DescribeBinding, + request_deserializer=draft_dot_protos_dot_ydb__federated__query__pb2.DescribeBindingRequest.FromString, + response_serializer=draft_dot_protos_dot_ydb__federated__query__pb2.DescribeBindingResponse.SerializeToString, + ), + 'ModifyBinding': grpc.unary_unary_rpc_method_handler( + servicer.ModifyBinding, + request_deserializer=draft_dot_protos_dot_ydb__federated__query__pb2.ModifyBindingRequest.FromString, + response_serializer=draft_dot_protos_dot_ydb__federated__query__pb2.ModifyBindingResponse.SerializeToString, + ), + 'DeleteBinding': grpc.unary_unary_rpc_method_handler( + servicer.DeleteBinding, + request_deserializer=draft_dot_protos_dot_ydb__federated__query__pb2.DeleteBindingRequest.FromString, + response_serializer=draft_dot_protos_dot_ydb__federated__query__pb2.DeleteBindingResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'FederatedQuery.V1.FederatedQueryService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + + + # This class is part of an EXPERIMENTAL API. +class FederatedQueryService(object): + """Missing associated documentation comment in .proto file.""" + + @staticmethod + def CreateQuery(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/FederatedQuery.V1.FederatedQueryService/CreateQuery', + draft_dot_protos_dot_ydb__federated__query__pb2.CreateQueryRequest.SerializeToString, + draft_dot_protos_dot_ydb__federated__query__pb2.CreateQueryResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ListQueries(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/FederatedQuery.V1.FederatedQueryService/ListQueries', + draft_dot_protos_dot_ydb__federated__query__pb2.ListQueriesRequest.SerializeToString, + draft_dot_protos_dot_ydb__federated__query__pb2.ListQueriesResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def DescribeQuery(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/FederatedQuery.V1.FederatedQueryService/DescribeQuery', + draft_dot_protos_dot_ydb__federated__query__pb2.DescribeQueryRequest.SerializeToString, + draft_dot_protos_dot_ydb__federated__query__pb2.DescribeQueryResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetQueryStatus(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/FederatedQuery.V1.FederatedQueryService/GetQueryStatus', + draft_dot_protos_dot_ydb__federated__query__pb2.GetQueryStatusRequest.SerializeToString, + draft_dot_protos_dot_ydb__federated__query__pb2.GetQueryStatusResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ModifyQuery(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/FederatedQuery.V1.FederatedQueryService/ModifyQuery', + draft_dot_protos_dot_ydb__federated__query__pb2.ModifyQueryRequest.SerializeToString, + draft_dot_protos_dot_ydb__federated__query__pb2.ModifyQueryResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def DeleteQuery(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/FederatedQuery.V1.FederatedQueryService/DeleteQuery', + draft_dot_protos_dot_ydb__federated__query__pb2.DeleteQueryRequest.SerializeToString, + draft_dot_protos_dot_ydb__federated__query__pb2.DeleteQueryResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ControlQuery(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/FederatedQuery.V1.FederatedQueryService/ControlQuery', + draft_dot_protos_dot_ydb__federated__query__pb2.ControlQueryRequest.SerializeToString, + draft_dot_protos_dot_ydb__federated__query__pb2.ControlQueryResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetResultData(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/FederatedQuery.V1.FederatedQueryService/GetResultData', + draft_dot_protos_dot_ydb__federated__query__pb2.GetResultDataRequest.SerializeToString, + draft_dot_protos_dot_ydb__federated__query__pb2.GetResultDataResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ListJobs(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/FederatedQuery.V1.FederatedQueryService/ListJobs', + draft_dot_protos_dot_ydb__federated__query__pb2.ListJobsRequest.SerializeToString, + draft_dot_protos_dot_ydb__federated__query__pb2.ListJobsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def DescribeJob(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/FederatedQuery.V1.FederatedQueryService/DescribeJob', + draft_dot_protos_dot_ydb__federated__query__pb2.DescribeJobRequest.SerializeToString, + draft_dot_protos_dot_ydb__federated__query__pb2.DescribeJobResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def CreateConnection(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/FederatedQuery.V1.FederatedQueryService/CreateConnection', + draft_dot_protos_dot_ydb__federated__query__pb2.CreateConnectionRequest.SerializeToString, + draft_dot_protos_dot_ydb__federated__query__pb2.CreateConnectionResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ListConnections(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/FederatedQuery.V1.FederatedQueryService/ListConnections', + draft_dot_protos_dot_ydb__federated__query__pb2.ListConnectionsRequest.SerializeToString, + draft_dot_protos_dot_ydb__federated__query__pb2.ListConnectionsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def DescribeConnection(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/FederatedQuery.V1.FederatedQueryService/DescribeConnection', + draft_dot_protos_dot_ydb__federated__query__pb2.DescribeConnectionRequest.SerializeToString, + draft_dot_protos_dot_ydb__federated__query__pb2.DescribeConnectionResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ModifyConnection(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/FederatedQuery.V1.FederatedQueryService/ModifyConnection', + draft_dot_protos_dot_ydb__federated__query__pb2.ModifyConnectionRequest.SerializeToString, + draft_dot_protos_dot_ydb__federated__query__pb2.ModifyConnectionResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def DeleteConnection(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/FederatedQuery.V1.FederatedQueryService/DeleteConnection', + draft_dot_protos_dot_ydb__federated__query__pb2.DeleteConnectionRequest.SerializeToString, + draft_dot_protos_dot_ydb__federated__query__pb2.DeleteConnectionResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def TestConnection(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/FederatedQuery.V1.FederatedQueryService/TestConnection', + draft_dot_protos_dot_ydb__federated__query__pb2.TestConnectionRequest.SerializeToString, + draft_dot_protos_dot_ydb__federated__query__pb2.TestConnectionResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def CreateBinding(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/FederatedQuery.V1.FederatedQueryService/CreateBinding', + draft_dot_protos_dot_ydb__federated__query__pb2.CreateBindingRequest.SerializeToString, + draft_dot_protos_dot_ydb__federated__query__pb2.CreateBindingResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ListBindings(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/FederatedQuery.V1.FederatedQueryService/ListBindings', + draft_dot_protos_dot_ydb__federated__query__pb2.ListBindingsRequest.SerializeToString, + draft_dot_protos_dot_ydb__federated__query__pb2.ListBindingsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def DescribeBinding(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/FederatedQuery.V1.FederatedQueryService/DescribeBinding', + draft_dot_protos_dot_ydb__federated__query__pb2.DescribeBindingRequest.SerializeToString, + draft_dot_protos_dot_ydb__federated__query__pb2.DescribeBindingResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ModifyBinding(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/FederatedQuery.V1.FederatedQueryService/ModifyBinding', + draft_dot_protos_dot_ydb__federated__query__pb2.ModifyBindingRequest.SerializeToString, + draft_dot_protos_dot_ydb__federated__query__pb2.ModifyBindingResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def DeleteBinding(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/FederatedQuery.V1.FederatedQueryService/DeleteBinding', + draft_dot_protos_dot_ydb__federated__query__pb2.DeleteBindingRequest.SerializeToString, + draft_dot_protos_dot_ydb__federated__query__pb2.DeleteBindingResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/ydb/_grpc/v5/draft/ydb_keyvalue_v1_pb2.py b/ydb/_grpc/v5/draft/ydb_keyvalue_v1_pb2.py new file mode 100644 index 00000000..762dc3bf --- /dev/null +++ b/ydb/_grpc/v5/draft/ydb_keyvalue_v1_pb2.py @@ -0,0 +1,28 @@ +# -*- coding: utf-8 -*- +# flake8: noqa +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: draft/ydb_keyvalue_v1.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from ydb._grpc.v5.draft.protos import ydb_keyvalue_pb2 as draft_dot_protos_dot_ydb__keyvalue__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1b\x64raft/ydb_keyvalue_v1.proto\x12\x0fYdb.KeyValue.V1\x1a\x1f\x64raft/protos/ydb_keyvalue.proto2\xe6\x07\n\x0fKeyValueService\x12U\n\x0c\x43reateVolume\x12!.Ydb.KeyValue.CreateVolumeRequest\x1a\".Ydb.KeyValue.CreateVolumeResponse\x12O\n\nDropVolume\x12\x1f.Ydb.KeyValue.DropVolumeRequest\x1a .Ydb.KeyValue.DropVolumeResponse\x12R\n\x0b\x41lterVolume\x12 .Ydb.KeyValue.AlterVolumeRequest\x1a!.Ydb.KeyValue.AlterVolumeResponse\x12[\n\x0e\x44\x65scribeVolume\x12#.Ydb.KeyValue.DescribeVolumeRequest\x1a$.Ydb.KeyValue.DescribeVolumeResponse\x12j\n\x13ListLocalPartitions\x12(.Ydb.KeyValue.ListLocalPartitionsRequest\x1a).Ydb.KeyValue.ListLocalPartitionsResponse\x12R\n\x0b\x41\x63quireLock\x12 .Ydb.KeyValue.AcquireLockRequest\x1a!.Ydb.KeyValue.AcquireLockResponse\x12g\n\x12\x45xecuteTransaction\x12\'.Ydb.KeyValue.ExecuteTransactionRequest\x1a(.Ydb.KeyValue.ExecuteTransactionResponse\x12=\n\x04Read\x12\x19.Ydb.KeyValue.ReadRequest\x1a\x1a.Ydb.KeyValue.ReadResponse\x12L\n\tReadRange\x12\x1e.Ydb.KeyValue.ReadRangeRequest\x1a\x1f.Ydb.KeyValue.ReadRangeResponse\x12L\n\tListRange\x12\x1e.Ydb.KeyValue.ListRangeRequest\x1a\x1f.Ydb.KeyValue.ListRangeResponse\x12v\n\x17GetStorageChannelStatus\x12,.Ydb.KeyValue.GetStorageChannelStatusRequest\x1a-.Ydb.KeyValue.GetStorageChannelStatusResponseB^\n\x1dtech.ydb.proto.draft.keyvalueZ=github.com/ydb-platform/ydb-go-genproto/draft/Ydb_KeyValue_V1b\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'draft.ydb_keyvalue_v1_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\035tech.ydb.proto.draft.keyvalueZ=github.com/ydb-platform/ydb-go-genproto/draft/Ydb_KeyValue_V1' + _KEYVALUESERVICE._serialized_start=82 + _KEYVALUESERVICE._serialized_end=1080 +# @@protoc_insertion_point(module_scope) diff --git a/ydb/_grpc/v5/draft/ydb_keyvalue_v1_pb2.pyi b/ydb/_grpc/v5/draft/ydb_keyvalue_v1_pb2.pyi new file mode 100644 index 00000000..8780324b --- /dev/null +++ b/ydb/_grpc/v5/draft/ydb_keyvalue_v1_pb2.pyi @@ -0,0 +1,5 @@ +from draft.protos import ydb_keyvalue_pb2 as _ydb_keyvalue_pb2 +from google.protobuf import descriptor as _descriptor +from typing import ClassVar as _ClassVar + +DESCRIPTOR: _descriptor.FileDescriptor diff --git a/ydb/_grpc/v5/draft/ydb_keyvalue_v1_pb2_grpc.py b/ydb/_grpc/v5/draft/ydb_keyvalue_v1_pb2_grpc.py new file mode 100644 index 00000000..0e96ae72 --- /dev/null +++ b/ydb/_grpc/v5/draft/ydb_keyvalue_v1_pb2_grpc.py @@ -0,0 +1,419 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + +from ydb._grpc.v5.draft.protos import ydb_keyvalue_pb2 as draft_dot_protos_dot_ydb__keyvalue__pb2 + + +class KeyValueServiceStub(object): + """KeyValue tablets provide a simple key-value storage in a low-overhead and easy-to-shoot-your-leg manner. + To use KeyValue tablets in an efficient way one must be familiar with the design of both the KeyValue tablet + and the Distributed Storage underneath it. + + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.CreateVolume = channel.unary_unary( + '/Ydb.KeyValue.V1.KeyValueService/CreateVolume', + request_serializer=draft_dot_protos_dot_ydb__keyvalue__pb2.CreateVolumeRequest.SerializeToString, + response_deserializer=draft_dot_protos_dot_ydb__keyvalue__pb2.CreateVolumeResponse.FromString, + ) + self.DropVolume = channel.unary_unary( + '/Ydb.KeyValue.V1.KeyValueService/DropVolume', + request_serializer=draft_dot_protos_dot_ydb__keyvalue__pb2.DropVolumeRequest.SerializeToString, + response_deserializer=draft_dot_protos_dot_ydb__keyvalue__pb2.DropVolumeResponse.FromString, + ) + self.AlterVolume = channel.unary_unary( + '/Ydb.KeyValue.V1.KeyValueService/AlterVolume', + request_serializer=draft_dot_protos_dot_ydb__keyvalue__pb2.AlterVolumeRequest.SerializeToString, + response_deserializer=draft_dot_protos_dot_ydb__keyvalue__pb2.AlterVolumeResponse.FromString, + ) + self.DescribeVolume = channel.unary_unary( + '/Ydb.KeyValue.V1.KeyValueService/DescribeVolume', + request_serializer=draft_dot_protos_dot_ydb__keyvalue__pb2.DescribeVolumeRequest.SerializeToString, + response_deserializer=draft_dot_protos_dot_ydb__keyvalue__pb2.DescribeVolumeResponse.FromString, + ) + self.ListLocalPartitions = channel.unary_unary( + '/Ydb.KeyValue.V1.KeyValueService/ListLocalPartitions', + request_serializer=draft_dot_protos_dot_ydb__keyvalue__pb2.ListLocalPartitionsRequest.SerializeToString, + response_deserializer=draft_dot_protos_dot_ydb__keyvalue__pb2.ListLocalPartitionsResponse.FromString, + ) + self.AcquireLock = channel.unary_unary( + '/Ydb.KeyValue.V1.KeyValueService/AcquireLock', + request_serializer=draft_dot_protos_dot_ydb__keyvalue__pb2.AcquireLockRequest.SerializeToString, + response_deserializer=draft_dot_protos_dot_ydb__keyvalue__pb2.AcquireLockResponse.FromString, + ) + self.ExecuteTransaction = channel.unary_unary( + '/Ydb.KeyValue.V1.KeyValueService/ExecuteTransaction', + request_serializer=draft_dot_protos_dot_ydb__keyvalue__pb2.ExecuteTransactionRequest.SerializeToString, + response_deserializer=draft_dot_protos_dot_ydb__keyvalue__pb2.ExecuteTransactionResponse.FromString, + ) + self.Read = channel.unary_unary( + '/Ydb.KeyValue.V1.KeyValueService/Read', + request_serializer=draft_dot_protos_dot_ydb__keyvalue__pb2.ReadRequest.SerializeToString, + response_deserializer=draft_dot_protos_dot_ydb__keyvalue__pb2.ReadResponse.FromString, + ) + self.ReadRange = channel.unary_unary( + '/Ydb.KeyValue.V1.KeyValueService/ReadRange', + request_serializer=draft_dot_protos_dot_ydb__keyvalue__pb2.ReadRangeRequest.SerializeToString, + response_deserializer=draft_dot_protos_dot_ydb__keyvalue__pb2.ReadRangeResponse.FromString, + ) + self.ListRange = channel.unary_unary( + '/Ydb.KeyValue.V1.KeyValueService/ListRange', + request_serializer=draft_dot_protos_dot_ydb__keyvalue__pb2.ListRangeRequest.SerializeToString, + response_deserializer=draft_dot_protos_dot_ydb__keyvalue__pb2.ListRangeResponse.FromString, + ) + self.GetStorageChannelStatus = channel.unary_unary( + '/Ydb.KeyValue.V1.KeyValueService/GetStorageChannelStatus', + request_serializer=draft_dot_protos_dot_ydb__keyvalue__pb2.GetStorageChannelStatusRequest.SerializeToString, + response_deserializer=draft_dot_protos_dot_ydb__keyvalue__pb2.GetStorageChannelStatusResponse.FromString, + ) + + +class KeyValueServiceServicer(object): + """KeyValue tablets provide a simple key-value storage in a low-overhead and easy-to-shoot-your-leg manner. + To use KeyValue tablets in an efficient way one must be familiar with the design of both the KeyValue tablet + and the Distributed Storage underneath it. + + """ + + def CreateVolume(self, request, context): + """Create a volume by path and partition count + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def DropVolume(self, request, context): + """Drop the volume by path + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def AlterVolume(self, request, context): + """Alter the volume by path + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def DescribeVolume(self, request, context): + """Describe the volume by path + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ListLocalPartitions(self, request, context): + """List partitions of a volume at the local node. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def AcquireLock(self, request, context): + """Acquire an exclusive lock for the partition. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ExecuteTransaction(self, request, context): + """Perform list of commands to modify the state of the partition as an atomic transaction. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def Read(self, request, context): + """Read the value stored in the item with the key specified. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ReadRange(self, request, context): + """Read items with keys in the specified range. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ListRange(self, request, context): + """List keys and metadata of items with keys in the specified range. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetStorageChannelStatus(self, request, context): + """Get storage channel status of the partition. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_KeyValueServiceServicer_to_server(servicer, server): + rpc_method_handlers = { + 'CreateVolume': grpc.unary_unary_rpc_method_handler( + servicer.CreateVolume, + request_deserializer=draft_dot_protos_dot_ydb__keyvalue__pb2.CreateVolumeRequest.FromString, + response_serializer=draft_dot_protos_dot_ydb__keyvalue__pb2.CreateVolumeResponse.SerializeToString, + ), + 'DropVolume': grpc.unary_unary_rpc_method_handler( + servicer.DropVolume, + request_deserializer=draft_dot_protos_dot_ydb__keyvalue__pb2.DropVolumeRequest.FromString, + response_serializer=draft_dot_protos_dot_ydb__keyvalue__pb2.DropVolumeResponse.SerializeToString, + ), + 'AlterVolume': grpc.unary_unary_rpc_method_handler( + servicer.AlterVolume, + request_deserializer=draft_dot_protos_dot_ydb__keyvalue__pb2.AlterVolumeRequest.FromString, + response_serializer=draft_dot_protos_dot_ydb__keyvalue__pb2.AlterVolumeResponse.SerializeToString, + ), + 'DescribeVolume': grpc.unary_unary_rpc_method_handler( + servicer.DescribeVolume, + request_deserializer=draft_dot_protos_dot_ydb__keyvalue__pb2.DescribeVolumeRequest.FromString, + response_serializer=draft_dot_protos_dot_ydb__keyvalue__pb2.DescribeVolumeResponse.SerializeToString, + ), + 'ListLocalPartitions': grpc.unary_unary_rpc_method_handler( + servicer.ListLocalPartitions, + request_deserializer=draft_dot_protos_dot_ydb__keyvalue__pb2.ListLocalPartitionsRequest.FromString, + response_serializer=draft_dot_protos_dot_ydb__keyvalue__pb2.ListLocalPartitionsResponse.SerializeToString, + ), + 'AcquireLock': grpc.unary_unary_rpc_method_handler( + servicer.AcquireLock, + request_deserializer=draft_dot_protos_dot_ydb__keyvalue__pb2.AcquireLockRequest.FromString, + response_serializer=draft_dot_protos_dot_ydb__keyvalue__pb2.AcquireLockResponse.SerializeToString, + ), + 'ExecuteTransaction': grpc.unary_unary_rpc_method_handler( + servicer.ExecuteTransaction, + request_deserializer=draft_dot_protos_dot_ydb__keyvalue__pb2.ExecuteTransactionRequest.FromString, + response_serializer=draft_dot_protos_dot_ydb__keyvalue__pb2.ExecuteTransactionResponse.SerializeToString, + ), + 'Read': grpc.unary_unary_rpc_method_handler( + servicer.Read, + request_deserializer=draft_dot_protos_dot_ydb__keyvalue__pb2.ReadRequest.FromString, + response_serializer=draft_dot_protos_dot_ydb__keyvalue__pb2.ReadResponse.SerializeToString, + ), + 'ReadRange': grpc.unary_unary_rpc_method_handler( + servicer.ReadRange, + request_deserializer=draft_dot_protos_dot_ydb__keyvalue__pb2.ReadRangeRequest.FromString, + response_serializer=draft_dot_protos_dot_ydb__keyvalue__pb2.ReadRangeResponse.SerializeToString, + ), + 'ListRange': grpc.unary_unary_rpc_method_handler( + servicer.ListRange, + request_deserializer=draft_dot_protos_dot_ydb__keyvalue__pb2.ListRangeRequest.FromString, + response_serializer=draft_dot_protos_dot_ydb__keyvalue__pb2.ListRangeResponse.SerializeToString, + ), + 'GetStorageChannelStatus': grpc.unary_unary_rpc_method_handler( + servicer.GetStorageChannelStatus, + request_deserializer=draft_dot_protos_dot_ydb__keyvalue__pb2.GetStorageChannelStatusRequest.FromString, + response_serializer=draft_dot_protos_dot_ydb__keyvalue__pb2.GetStorageChannelStatusResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'Ydb.KeyValue.V1.KeyValueService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + + + # This class is part of an EXPERIMENTAL API. +class KeyValueService(object): + """KeyValue tablets provide a simple key-value storage in a low-overhead and easy-to-shoot-your-leg manner. + To use KeyValue tablets in an efficient way one must be familiar with the design of both the KeyValue tablet + and the Distributed Storage underneath it. + + """ + + @staticmethod + def CreateVolume(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/Ydb.KeyValue.V1.KeyValueService/CreateVolume', + draft_dot_protos_dot_ydb__keyvalue__pb2.CreateVolumeRequest.SerializeToString, + draft_dot_protos_dot_ydb__keyvalue__pb2.CreateVolumeResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def DropVolume(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/Ydb.KeyValue.V1.KeyValueService/DropVolume', + draft_dot_protos_dot_ydb__keyvalue__pb2.DropVolumeRequest.SerializeToString, + draft_dot_protos_dot_ydb__keyvalue__pb2.DropVolumeResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def AlterVolume(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/Ydb.KeyValue.V1.KeyValueService/AlterVolume', + draft_dot_protos_dot_ydb__keyvalue__pb2.AlterVolumeRequest.SerializeToString, + draft_dot_protos_dot_ydb__keyvalue__pb2.AlterVolumeResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def DescribeVolume(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/Ydb.KeyValue.V1.KeyValueService/DescribeVolume', + draft_dot_protos_dot_ydb__keyvalue__pb2.DescribeVolumeRequest.SerializeToString, + draft_dot_protos_dot_ydb__keyvalue__pb2.DescribeVolumeResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ListLocalPartitions(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/Ydb.KeyValue.V1.KeyValueService/ListLocalPartitions', + draft_dot_protos_dot_ydb__keyvalue__pb2.ListLocalPartitionsRequest.SerializeToString, + draft_dot_protos_dot_ydb__keyvalue__pb2.ListLocalPartitionsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def AcquireLock(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/Ydb.KeyValue.V1.KeyValueService/AcquireLock', + draft_dot_protos_dot_ydb__keyvalue__pb2.AcquireLockRequest.SerializeToString, + draft_dot_protos_dot_ydb__keyvalue__pb2.AcquireLockResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ExecuteTransaction(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/Ydb.KeyValue.V1.KeyValueService/ExecuteTransaction', + draft_dot_protos_dot_ydb__keyvalue__pb2.ExecuteTransactionRequest.SerializeToString, + draft_dot_protos_dot_ydb__keyvalue__pb2.ExecuteTransactionResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def Read(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/Ydb.KeyValue.V1.KeyValueService/Read', + draft_dot_protos_dot_ydb__keyvalue__pb2.ReadRequest.SerializeToString, + draft_dot_protos_dot_ydb__keyvalue__pb2.ReadResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ReadRange(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/Ydb.KeyValue.V1.KeyValueService/ReadRange', + draft_dot_protos_dot_ydb__keyvalue__pb2.ReadRangeRequest.SerializeToString, + draft_dot_protos_dot_ydb__keyvalue__pb2.ReadRangeResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ListRange(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/Ydb.KeyValue.V1.KeyValueService/ListRange', + draft_dot_protos_dot_ydb__keyvalue__pb2.ListRangeRequest.SerializeToString, + draft_dot_protos_dot_ydb__keyvalue__pb2.ListRangeResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetStorageChannelStatus(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/Ydb.KeyValue.V1.KeyValueService/GetStorageChannelStatus', + draft_dot_protos_dot_ydb__keyvalue__pb2.GetStorageChannelStatusRequest.SerializeToString, + draft_dot_protos_dot_ydb__keyvalue__pb2.GetStorageChannelStatusResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/ydb/_grpc/v5/draft/ydb_maintenance_v1_pb2.py b/ydb/_grpc/v5/draft/ydb_maintenance_v1_pb2.py new file mode 100644 index 00000000..0e988f44 --- /dev/null +++ b/ydb/_grpc/v5/draft/ydb_maintenance_v1_pb2.py @@ -0,0 +1,28 @@ +# -*- coding: utf-8 -*- +# flake8: noqa +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: draft/ydb_maintenance_v1.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from ydb._grpc.v5.draft.protos import ydb_maintenance_pb2 as draft_dot_protos_dot_ydb__maintenance__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1e\x64raft/ydb_maintenance_v1.proto\x12\x12Ydb.Maintenance.V1\x1a\"draft/protos/ydb_maintenance.proto2\x9c\x06\n\x12MaintenanceService\x12g\n\x10ListClusterNodes\x12(.Ydb.Maintenance.ListClusterNodesRequest\x1a).Ydb.Maintenance.ListClusterNodesResponse\x12p\n\x15\x43reateMaintenanceTask\x12-.Ydb.Maintenance.CreateMaintenanceTaskRequest\x1a(.Ydb.Maintenance.MaintenanceTaskResponse\x12r\n\x16RefreshMaintenanceTask\x12..Ydb.Maintenance.RefreshMaintenanceTaskRequest\x1a(.Ydb.Maintenance.MaintenanceTaskResponse\x12m\n\x12GetMaintenanceTask\x12*.Ydb.Maintenance.GetMaintenanceTaskRequest\x1a+.Ydb.Maintenance.GetMaintenanceTaskResponse\x12s\n\x14ListMaintenanceTasks\x12,.Ydb.Maintenance.ListMaintenanceTasksRequest\x1a-.Ydb.Maintenance.ListMaintenanceTasksResponse\x12r\n\x13\x44ropMaintenanceTask\x12+.Ydb.Maintenance.DropMaintenanceTaskRequest\x1a..Ydb.Maintenance.ManageMaintenanceTaskResponse\x12_\n\x0e\x43ompleteAction\x12&.Ydb.Maintenance.CompleteActionRequest\x1a%.Ydb.Maintenance.ManageActionResponseBd\n tech.ydb.proto.draft.maintenanceZ@github.com/ydb-platform/ydb-go-genproto/draft/Ydb_Maintenance_V1b\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'draft.ydb_maintenance_v1_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n tech.ydb.proto.draft.maintenanceZ@github.com/ydb-platform/ydb-go-genproto/draft/Ydb_Maintenance_V1' + _MAINTENANCESERVICE._serialized_start=91 + _MAINTENANCESERVICE._serialized_end=887 +# @@protoc_insertion_point(module_scope) diff --git a/ydb/_grpc/v5/draft/ydb_maintenance_v1_pb2.pyi b/ydb/_grpc/v5/draft/ydb_maintenance_v1_pb2.pyi new file mode 100644 index 00000000..33033d02 --- /dev/null +++ b/ydb/_grpc/v5/draft/ydb_maintenance_v1_pb2.pyi @@ -0,0 +1,5 @@ +from draft.protos import ydb_maintenance_pb2 as _ydb_maintenance_pb2 +from google.protobuf import descriptor as _descriptor +from typing import ClassVar as _ClassVar + +DESCRIPTOR: _descriptor.FileDescriptor diff --git a/ydb/_grpc/v5/draft/ydb_maintenance_v1_pb2_grpc.py b/ydb/_grpc/v5/draft/ydb_maintenance_v1_pb2_grpc.py new file mode 100644 index 00000000..dbd2c12f --- /dev/null +++ b/ydb/_grpc/v5/draft/ydb_maintenance_v1_pb2_grpc.py @@ -0,0 +1,271 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + +from ydb._grpc.v5.draft.protos import ydb_maintenance_pb2 as draft_dot_protos_dot_ydb__maintenance__pb2 + + +class MaintenanceServiceStub(object): + """Missing associated documentation comment in .proto file.""" + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.ListClusterNodes = channel.unary_unary( + '/Ydb.Maintenance.V1.MaintenanceService/ListClusterNodes', + request_serializer=draft_dot_protos_dot_ydb__maintenance__pb2.ListClusterNodesRequest.SerializeToString, + response_deserializer=draft_dot_protos_dot_ydb__maintenance__pb2.ListClusterNodesResponse.FromString, + ) + self.CreateMaintenanceTask = channel.unary_unary( + '/Ydb.Maintenance.V1.MaintenanceService/CreateMaintenanceTask', + request_serializer=draft_dot_protos_dot_ydb__maintenance__pb2.CreateMaintenanceTaskRequest.SerializeToString, + response_deserializer=draft_dot_protos_dot_ydb__maintenance__pb2.MaintenanceTaskResponse.FromString, + ) + self.RefreshMaintenanceTask = channel.unary_unary( + '/Ydb.Maintenance.V1.MaintenanceService/RefreshMaintenanceTask', + request_serializer=draft_dot_protos_dot_ydb__maintenance__pb2.RefreshMaintenanceTaskRequest.SerializeToString, + response_deserializer=draft_dot_protos_dot_ydb__maintenance__pb2.MaintenanceTaskResponse.FromString, + ) + self.GetMaintenanceTask = channel.unary_unary( + '/Ydb.Maintenance.V1.MaintenanceService/GetMaintenanceTask', + request_serializer=draft_dot_protos_dot_ydb__maintenance__pb2.GetMaintenanceTaskRequest.SerializeToString, + response_deserializer=draft_dot_protos_dot_ydb__maintenance__pb2.GetMaintenanceTaskResponse.FromString, + ) + self.ListMaintenanceTasks = channel.unary_unary( + '/Ydb.Maintenance.V1.MaintenanceService/ListMaintenanceTasks', + request_serializer=draft_dot_protos_dot_ydb__maintenance__pb2.ListMaintenanceTasksRequest.SerializeToString, + response_deserializer=draft_dot_protos_dot_ydb__maintenance__pb2.ListMaintenanceTasksResponse.FromString, + ) + self.DropMaintenanceTask = channel.unary_unary( + '/Ydb.Maintenance.V1.MaintenanceService/DropMaintenanceTask', + request_serializer=draft_dot_protos_dot_ydb__maintenance__pb2.DropMaintenanceTaskRequest.SerializeToString, + response_deserializer=draft_dot_protos_dot_ydb__maintenance__pb2.ManageMaintenanceTaskResponse.FromString, + ) + self.CompleteAction = channel.unary_unary( + '/Ydb.Maintenance.V1.MaintenanceService/CompleteAction', + request_serializer=draft_dot_protos_dot_ydb__maintenance__pb2.CompleteActionRequest.SerializeToString, + response_deserializer=draft_dot_protos_dot_ydb__maintenance__pb2.ManageActionResponse.FromString, + ) + + +class MaintenanceServiceServicer(object): + """Missing associated documentation comment in .proto file.""" + + def ListClusterNodes(self, request, context): + """List cluster nodes. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def CreateMaintenanceTask(self, request, context): + """Create maintenance task. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def RefreshMaintenanceTask(self, request, context): + """Try to perform maintenance task's actions (polling). + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetMaintenanceTask(self, request, context): + """Get detailed task information. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ListMaintenanceTasks(self, request, context): + """List maintenance tasks. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def DropMaintenanceTask(self, request, context): + """Drop maintenance task. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def CompleteAction(self, request, context): + """Mark action as completed. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_MaintenanceServiceServicer_to_server(servicer, server): + rpc_method_handlers = { + 'ListClusterNodes': grpc.unary_unary_rpc_method_handler( + servicer.ListClusterNodes, + request_deserializer=draft_dot_protos_dot_ydb__maintenance__pb2.ListClusterNodesRequest.FromString, + response_serializer=draft_dot_protos_dot_ydb__maintenance__pb2.ListClusterNodesResponse.SerializeToString, + ), + 'CreateMaintenanceTask': grpc.unary_unary_rpc_method_handler( + servicer.CreateMaintenanceTask, + request_deserializer=draft_dot_protos_dot_ydb__maintenance__pb2.CreateMaintenanceTaskRequest.FromString, + response_serializer=draft_dot_protos_dot_ydb__maintenance__pb2.MaintenanceTaskResponse.SerializeToString, + ), + 'RefreshMaintenanceTask': grpc.unary_unary_rpc_method_handler( + servicer.RefreshMaintenanceTask, + request_deserializer=draft_dot_protos_dot_ydb__maintenance__pb2.RefreshMaintenanceTaskRequest.FromString, + response_serializer=draft_dot_protos_dot_ydb__maintenance__pb2.MaintenanceTaskResponse.SerializeToString, + ), + 'GetMaintenanceTask': grpc.unary_unary_rpc_method_handler( + servicer.GetMaintenanceTask, + request_deserializer=draft_dot_protos_dot_ydb__maintenance__pb2.GetMaintenanceTaskRequest.FromString, + response_serializer=draft_dot_protos_dot_ydb__maintenance__pb2.GetMaintenanceTaskResponse.SerializeToString, + ), + 'ListMaintenanceTasks': grpc.unary_unary_rpc_method_handler( + servicer.ListMaintenanceTasks, + request_deserializer=draft_dot_protos_dot_ydb__maintenance__pb2.ListMaintenanceTasksRequest.FromString, + response_serializer=draft_dot_protos_dot_ydb__maintenance__pb2.ListMaintenanceTasksResponse.SerializeToString, + ), + 'DropMaintenanceTask': grpc.unary_unary_rpc_method_handler( + servicer.DropMaintenanceTask, + request_deserializer=draft_dot_protos_dot_ydb__maintenance__pb2.DropMaintenanceTaskRequest.FromString, + response_serializer=draft_dot_protos_dot_ydb__maintenance__pb2.ManageMaintenanceTaskResponse.SerializeToString, + ), + 'CompleteAction': grpc.unary_unary_rpc_method_handler( + servicer.CompleteAction, + request_deserializer=draft_dot_protos_dot_ydb__maintenance__pb2.CompleteActionRequest.FromString, + response_serializer=draft_dot_protos_dot_ydb__maintenance__pb2.ManageActionResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'Ydb.Maintenance.V1.MaintenanceService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + + + # This class is part of an EXPERIMENTAL API. +class MaintenanceService(object): + """Missing associated documentation comment in .proto file.""" + + @staticmethod + def ListClusterNodes(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/Ydb.Maintenance.V1.MaintenanceService/ListClusterNodes', + draft_dot_protos_dot_ydb__maintenance__pb2.ListClusterNodesRequest.SerializeToString, + draft_dot_protos_dot_ydb__maintenance__pb2.ListClusterNodesResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def CreateMaintenanceTask(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/Ydb.Maintenance.V1.MaintenanceService/CreateMaintenanceTask', + draft_dot_protos_dot_ydb__maintenance__pb2.CreateMaintenanceTaskRequest.SerializeToString, + draft_dot_protos_dot_ydb__maintenance__pb2.MaintenanceTaskResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def RefreshMaintenanceTask(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/Ydb.Maintenance.V1.MaintenanceService/RefreshMaintenanceTask', + draft_dot_protos_dot_ydb__maintenance__pb2.RefreshMaintenanceTaskRequest.SerializeToString, + draft_dot_protos_dot_ydb__maintenance__pb2.MaintenanceTaskResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetMaintenanceTask(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/Ydb.Maintenance.V1.MaintenanceService/GetMaintenanceTask', + draft_dot_protos_dot_ydb__maintenance__pb2.GetMaintenanceTaskRequest.SerializeToString, + draft_dot_protos_dot_ydb__maintenance__pb2.GetMaintenanceTaskResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ListMaintenanceTasks(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/Ydb.Maintenance.V1.MaintenanceService/ListMaintenanceTasks', + draft_dot_protos_dot_ydb__maintenance__pb2.ListMaintenanceTasksRequest.SerializeToString, + draft_dot_protos_dot_ydb__maintenance__pb2.ListMaintenanceTasksResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def DropMaintenanceTask(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/Ydb.Maintenance.V1.MaintenanceService/DropMaintenanceTask', + draft_dot_protos_dot_ydb__maintenance__pb2.DropMaintenanceTaskRequest.SerializeToString, + draft_dot_protos_dot_ydb__maintenance__pb2.ManageMaintenanceTaskResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def CompleteAction(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/Ydb.Maintenance.V1.MaintenanceService/CompleteAction', + draft_dot_protos_dot_ydb__maintenance__pb2.CompleteActionRequest.SerializeToString, + draft_dot_protos_dot_ydb__maintenance__pb2.ManageActionResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/ydb/_grpc/v5/draft/ydb_object_storage_v1_pb2.py b/ydb/_grpc/v5/draft/ydb_object_storage_v1_pb2.py new file mode 100644 index 00000000..8d5159f6 --- /dev/null +++ b/ydb/_grpc/v5/draft/ydb_object_storage_v1_pb2.py @@ -0,0 +1,28 @@ +# -*- coding: utf-8 -*- +# flake8: noqa +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: draft/ydb_object_storage_v1.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from ydb._grpc.v5.draft.protos import ydb_object_storage_pb2 as draft_dot_protos_dot_ydb__object__storage__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n!draft/ydb_object_storage_v1.proto\x12\x14Ydb.ObjectStorage.V1\x1a%draft/protos/ydb_object_storage.proto2e\n\x14ObjectStorageService\x12M\n\x04List\x12!.Ydb.ObjectStorage.ListingRequest\x1a\".Ydb.ObjectStorage.ListingResponseBl\n&tech.ydb.proto.draft.object_storage.v1ZBgithub.com/ydb-platform/ydb-go-genproto/draft/Ydb_ObjectStorage_V1b\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'draft.ydb_object_storage_v1_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n&tech.ydb.proto.draft.object_storage.v1ZBgithub.com/ydb-platform/ydb-go-genproto/draft/Ydb_ObjectStorage_V1' + _OBJECTSTORAGESERVICE._serialized_start=98 + _OBJECTSTORAGESERVICE._serialized_end=199 +# @@protoc_insertion_point(module_scope) diff --git a/ydb/_grpc/v5/draft/ydb_object_storage_v1_pb2.pyi b/ydb/_grpc/v5/draft/ydb_object_storage_v1_pb2.pyi new file mode 100644 index 00000000..bfdf7662 --- /dev/null +++ b/ydb/_grpc/v5/draft/ydb_object_storage_v1_pb2.pyi @@ -0,0 +1,5 @@ +from draft.protos import ydb_object_storage_pb2 as _ydb_object_storage_pb2 +from google.protobuf import descriptor as _descriptor +from typing import ClassVar as _ClassVar + +DESCRIPTOR: _descriptor.FileDescriptor diff --git a/ydb/_grpc/v5/draft/ydb_object_storage_v1_pb2_grpc.py b/ydb/_grpc/v5/draft/ydb_object_storage_v1_pb2_grpc.py new file mode 100644 index 00000000..ad096720 --- /dev/null +++ b/ydb/_grpc/v5/draft/ydb_object_storage_v1_pb2_grpc.py @@ -0,0 +1,66 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + +from ydb._grpc.v5.draft.protos import ydb_object_storage_pb2 as draft_dot_protos_dot_ydb__object__storage__pb2 + + +class ObjectStorageServiceStub(object): + """Missing associated documentation comment in .proto file.""" + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.List = channel.unary_unary( + '/Ydb.ObjectStorage.V1.ObjectStorageService/List', + request_serializer=draft_dot_protos_dot_ydb__object__storage__pb2.ListingRequest.SerializeToString, + response_deserializer=draft_dot_protos_dot_ydb__object__storage__pb2.ListingResponse.FromString, + ) + + +class ObjectStorageServiceServicer(object): + """Missing associated documentation comment in .proto file.""" + + def List(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_ObjectStorageServiceServicer_to_server(servicer, server): + rpc_method_handlers = { + 'List': grpc.unary_unary_rpc_method_handler( + servicer.List, + request_deserializer=draft_dot_protos_dot_ydb__object__storage__pb2.ListingRequest.FromString, + response_serializer=draft_dot_protos_dot_ydb__object__storage__pb2.ListingResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'Ydb.ObjectStorage.V1.ObjectStorageService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + + + # This class is part of an EXPERIMENTAL API. +class ObjectStorageService(object): + """Missing associated documentation comment in .proto file.""" + + @staticmethod + def List(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/Ydb.ObjectStorage.V1.ObjectStorageService/List', + draft_dot_protos_dot_ydb__object__storage__pb2.ListingRequest.SerializeToString, + draft_dot_protos_dot_ydb__object__storage__pb2.ListingResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/ydb/_grpc/v5/protos/__init__.py b/ydb/_grpc/v5/protos/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/ydb/_grpc/v5/protos/annotations/__init__.py b/ydb/_grpc/v5/protos/annotations/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/ydb/_grpc/v5/protos/annotations/sensitive_pb2.py b/ydb/_grpc/v5/protos/annotations/sensitive_pb2.py new file mode 100644 index 00000000..0662aca4 --- /dev/null +++ b/ydb/_grpc/v5/protos/annotations/sensitive_pb2.py @@ -0,0 +1,27 @@ +# -*- coding: utf-8 -*- +# flake8: noqa +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: protos/annotations/sensitive.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.protobuf import descriptor_pb2 as google_dot_protobuf_dot_descriptor__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\"protos/annotations/sensitive.proto\x12\x03Ydb\x1a google/protobuf/descriptor.proto:2\n\tsensitive\x12\x1d.google.protobuf.FieldOptions\x18\xe7\xac\x05 \x01(\x08\x42G\n\x0etech.ydb.protoZ2github.com/ydb-platform/ydb-go-genproto/protos/Ydb\xf8\x01\x01\x62\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'protos.annotations.sensitive_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + google_dot_protobuf_dot_descriptor__pb2.FieldOptions.RegisterExtension(sensitive) + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\016tech.ydb.protoZ2github.com/ydb-platform/ydb-go-genproto/protos/Ydb\370\001\001' +# @@protoc_insertion_point(module_scope) diff --git a/ydb/_grpc/v5/protos/annotations/sensitive_pb2.pyi b/ydb/_grpc/v5/protos/annotations/sensitive_pb2.pyi new file mode 100644 index 00000000..bc158001 --- /dev/null +++ b/ydb/_grpc/v5/protos/annotations/sensitive_pb2.pyi @@ -0,0 +1,7 @@ +from google.protobuf import descriptor_pb2 as _descriptor_pb2 +from google.protobuf import descriptor as _descriptor +from typing import ClassVar as _ClassVar + +DESCRIPTOR: _descriptor.FileDescriptor +SENSITIVE_FIELD_NUMBER: _ClassVar[int] +sensitive: _descriptor.FieldDescriptor diff --git a/ydb/_grpc/v5/protos/annotations/sensitive_pb2_grpc.py b/ydb/_grpc/v5/protos/annotations/sensitive_pb2_grpc.py new file mode 100644 index 00000000..2daafffe --- /dev/null +++ b/ydb/_grpc/v5/protos/annotations/sensitive_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/ydb/_grpc/v5/protos/annotations/validation_pb2.py b/ydb/_grpc/v5/protos/annotations/validation_pb2.py new file mode 100644 index 00000000..830a04ae --- /dev/null +++ b/ydb/_grpc/v5/protos/annotations/validation_pb2.py @@ -0,0 +1,37 @@ +# -*- coding: utf-8 -*- +# flake8: noqa +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: protos/annotations/validation.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.protobuf import descriptor_pb2 as google_dot_protobuf_dot_descriptor__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n#protos/annotations/validation.proto\x12\x03Ydb\x1a google/protobuf/descriptor.proto\"\x9b\x01\n\x05Limit\x12!\n\x05range\x18\x01 \x01(\x0b\x32\x10.Ydb.Limit.RangeH\x00\x12\x0c\n\x02lt\x18\x02 \x01(\rH\x00\x12\x0c\n\x02le\x18\x03 \x01(\rH\x00\x12\x0c\n\x02\x65q\x18\x04 \x01(\rH\x00\x12\x0c\n\x02ge\x18\x05 \x01(\rH\x00\x12\x0c\n\x02gt\x18\x06 \x01(\rH\x00\x1a!\n\x05Range\x12\x0b\n\x03min\x18\x01 \x01(\r\x12\x0b\n\x03max\x18\x02 \x01(\rB\x06\n\x04kind\"3\n\x06MapKey\x12\x1a\n\x06length\x18\x01 \x01(\x0b\x32\n.Ydb.Limit\x12\r\n\x05value\x18\x02 \x01(\t:1\n\x08required\x12\x1d.google.protobuf.FieldOptions\x18\xe2\xac\x05 \x01(\x08:9\n\x04size\x12\x1d.google.protobuf.FieldOptions\x18\xe3\xac\x05 \x01(\x0b\x32\n.Ydb.Limit:;\n\x06length\x12\x1d.google.protobuf.FieldOptions\x18\xe4\xac\x05 \x01(\x0b\x32\n.Ydb.Limit:=\n\x07map_key\x12\x1d.google.protobuf.FieldOptions\x18\xe5\xac\x05 \x01(\x0b\x32\x0b.Ydb.MapKey:.\n\x05value\x12\x1d.google.protobuf.FieldOptions\x18\xe6\xac\x05 \x01(\tBG\n\x0etech.ydb.protoZ2github.com/ydb-platform/ydb-go-genproto/protos/Ydb\xf8\x01\x01\x62\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'protos.annotations.validation_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + google_dot_protobuf_dot_descriptor__pb2.FieldOptions.RegisterExtension(required) + google_dot_protobuf_dot_descriptor__pb2.FieldOptions.RegisterExtension(size) + google_dot_protobuf_dot_descriptor__pb2.FieldOptions.RegisterExtension(length) + google_dot_protobuf_dot_descriptor__pb2.FieldOptions.RegisterExtension(map_key) + google_dot_protobuf_dot_descriptor__pb2.FieldOptions.RegisterExtension(value) + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\016tech.ydb.protoZ2github.com/ydb-platform/ydb-go-genproto/protos/Ydb\370\001\001' + _LIMIT._serialized_start=79 + _LIMIT._serialized_end=234 + _LIMIT_RANGE._serialized_start=193 + _LIMIT_RANGE._serialized_end=226 + _MAPKEY._serialized_start=236 + _MAPKEY._serialized_end=287 +# @@protoc_insertion_point(module_scope) diff --git a/ydb/_grpc/v5/protos/annotations/validation_pb2.pyi b/ydb/_grpc/v5/protos/annotations/validation_pb2.pyi new file mode 100644 index 00000000..56d6bd16 --- /dev/null +++ b/ydb/_grpc/v5/protos/annotations/validation_pb2.pyi @@ -0,0 +1,47 @@ +from google.protobuf import descriptor_pb2 as _descriptor_pb2 +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from typing import ClassVar as _ClassVar, Mapping as _Mapping, Optional as _Optional, Union as _Union + +DESCRIPTOR: _descriptor.FileDescriptor +LENGTH_FIELD_NUMBER: _ClassVar[int] +MAP_KEY_FIELD_NUMBER: _ClassVar[int] +REQUIRED_FIELD_NUMBER: _ClassVar[int] +SIZE_FIELD_NUMBER: _ClassVar[int] +VALUE_FIELD_NUMBER: _ClassVar[int] +length: _descriptor.FieldDescriptor +map_key: _descriptor.FieldDescriptor +required: _descriptor.FieldDescriptor +size: _descriptor.FieldDescriptor +value: _descriptor.FieldDescriptor + +class Limit(_message.Message): + __slots__ = ["eq", "ge", "gt", "le", "lt", "range"] + class Range(_message.Message): + __slots__ = ["max", "min"] + MAX_FIELD_NUMBER: _ClassVar[int] + MIN_FIELD_NUMBER: _ClassVar[int] + max: int + min: int + def __init__(self, min: _Optional[int] = ..., max: _Optional[int] = ...) -> None: ... + EQ_FIELD_NUMBER: _ClassVar[int] + GE_FIELD_NUMBER: _ClassVar[int] + GT_FIELD_NUMBER: _ClassVar[int] + LE_FIELD_NUMBER: _ClassVar[int] + LT_FIELD_NUMBER: _ClassVar[int] + RANGE_FIELD_NUMBER: _ClassVar[int] + eq: int + ge: int + gt: int + le: int + lt: int + range: Limit.Range + def __init__(self, range: _Optional[_Union[Limit.Range, _Mapping]] = ..., lt: _Optional[int] = ..., le: _Optional[int] = ..., eq: _Optional[int] = ..., ge: _Optional[int] = ..., gt: _Optional[int] = ...) -> None: ... + +class MapKey(_message.Message): + __slots__ = ["length", "value"] + LENGTH_FIELD_NUMBER: _ClassVar[int] + VALUE_FIELD_NUMBER: _ClassVar[int] + length: Limit + value: str + def __init__(self, length: _Optional[_Union[Limit, _Mapping]] = ..., value: _Optional[str] = ...) -> None: ... diff --git a/ydb/_grpc/v5/protos/annotations/validation_pb2_grpc.py b/ydb/_grpc/v5/protos/annotations/validation_pb2_grpc.py new file mode 100644 index 00000000..2daafffe --- /dev/null +++ b/ydb/_grpc/v5/protos/annotations/validation_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/ydb/_grpc/v5/protos/ydb_auth_pb2.py b/ydb/_grpc/v5/protos/ydb_auth_pb2.py new file mode 100644 index 00000000..2d3c5f43 --- /dev/null +++ b/ydb/_grpc/v5/protos/ydb_auth_pb2.py @@ -0,0 +1,32 @@ +# -*- coding: utf-8 -*- +# flake8: noqa +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: protos/ydb_auth.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from ydb._grpc.v5.protos import ydb_operation_pb2 as protos_dot_ydb__operation__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x15protos/ydb_auth.proto\x12\x08Ydb.Auth\x1a\x1aprotos/ydb_operation.proto\"i\n\x0cLoginRequest\x12\x39\n\x10operation_params\x18\x01 \x01(\x0b\x32\x1f.Ydb.Operations.OperationParams\x12\x0c\n\x04user\x18\x02 \x01(\t\x12\x10\n\x08password\x18\x03 \x01(\t\"=\n\rLoginResponse\x12,\n\toperation\x18\x01 \x01(\x0b\x32\x19.Ydb.Operations.Operation\"\x1c\n\x0bLoginResult\x12\r\n\x05token\x18\x01 \x01(\tBQ\n\x13tech.ydb.proto.authZ7github.com/ydb-platform/ydb-go-genproto/protos/Ydb_Auth\xf8\x01\x01\x62\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'protos.ydb_auth_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\023tech.ydb.proto.authZ7github.com/ydb-platform/ydb-go-genproto/protos/Ydb_Auth\370\001\001' + _LOGINREQUEST._serialized_start=63 + _LOGINREQUEST._serialized_end=168 + _LOGINRESPONSE._serialized_start=170 + _LOGINRESPONSE._serialized_end=231 + _LOGINRESULT._serialized_start=233 + _LOGINRESULT._serialized_end=261 +# @@protoc_insertion_point(module_scope) diff --git a/ydb/_grpc/v5/protos/ydb_auth_pb2.pyi b/ydb/_grpc/v5/protos/ydb_auth_pb2.pyi new file mode 100644 index 00000000..c90e8a4b --- /dev/null +++ b/ydb/_grpc/v5/protos/ydb_auth_pb2.pyi @@ -0,0 +1,28 @@ +from protos import ydb_operation_pb2 as _ydb_operation_pb2 +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from typing import ClassVar as _ClassVar, Mapping as _Mapping, Optional as _Optional, Union as _Union + +DESCRIPTOR: _descriptor.FileDescriptor + +class LoginRequest(_message.Message): + __slots__ = ["operation_params", "password", "user"] + OPERATION_PARAMS_FIELD_NUMBER: _ClassVar[int] + PASSWORD_FIELD_NUMBER: _ClassVar[int] + USER_FIELD_NUMBER: _ClassVar[int] + operation_params: _ydb_operation_pb2.OperationParams + password: str + user: str + def __init__(self, operation_params: _Optional[_Union[_ydb_operation_pb2.OperationParams, _Mapping]] = ..., user: _Optional[str] = ..., password: _Optional[str] = ...) -> None: ... + +class LoginResponse(_message.Message): + __slots__ = ["operation"] + OPERATION_FIELD_NUMBER: _ClassVar[int] + operation: _ydb_operation_pb2.Operation + def __init__(self, operation: _Optional[_Union[_ydb_operation_pb2.Operation, _Mapping]] = ...) -> None: ... + +class LoginResult(_message.Message): + __slots__ = ["token"] + TOKEN_FIELD_NUMBER: _ClassVar[int] + token: str + def __init__(self, token: _Optional[str] = ...) -> None: ... diff --git a/ydb/_grpc/v5/protos/ydb_auth_pb2_grpc.py b/ydb/_grpc/v5/protos/ydb_auth_pb2_grpc.py new file mode 100644 index 00000000..2daafffe --- /dev/null +++ b/ydb/_grpc/v5/protos/ydb_auth_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/ydb/_grpc/v5/protos/ydb_cms_pb2.py b/ydb/_grpc/v5/protos/ydb_cms_pb2.py new file mode 100644 index 00000000..d99cceef --- /dev/null +++ b/ydb/_grpc/v5/protos/ydb_cms_pb2.py @@ -0,0 +1,102 @@ +# -*- coding: utf-8 -*- +# flake8: noqa +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: protos/ydb_cms.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from ydb._grpc.v5.protos import ydb_operation_pb2 as protos_dot_ydb__operation__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x14protos/ydb_cms.proto\x12\x07Ydb.Cms\x1a\x1aprotos/ydb_operation.proto\"0\n\x0cStorageUnits\x12\x11\n\tunit_kind\x18\x01 \x01(\t\x12\r\n\x05\x63ount\x18\x02 \x01(\x04\"Q\n\x12\x43omputationalUnits\x12\x11\n\tunit_kind\x18\x01 \x01(\t\x12\x19\n\x11\x61vailability_zone\x18\x02 \x01(\t\x12\r\n\x05\x63ount\x18\x03 \x01(\x04\"K\n\x1a\x41llocatedComputationalUnit\x12\x0c\n\x04host\x18\x01 \x01(\t\x12\x0c\n\x04port\x18\x02 \x01(\r\x12\x11\n\tunit_kind\x18\x03 \x01(\t\"s\n\tResources\x12,\n\rstorage_units\x18\x01 \x03(\x0b\x32\x15.Ydb.Cms.StorageUnits\x12\x38\n\x13\x63omputational_units\x18\x02 \x03(\x0b\x32\x1b.Ydb.Cms.ComputationalUnits\"3\n\x13ServerlessResources\x12\x1c\n\x14shared_database_path\x18\x01 \x01(\t\"j\n\x0f\x44\x61tabaseOptions\x12\x1a\n\x12\x64isable_tx_service\x18\x01 \x01(\x08\x12\"\n\x1a\x64isable_external_subdomain\x18\x02 \x01(\x08\x12\x17\n\x0fplan_resolution\x18\x03 \x01(\r\"\x9c\x01\n\x15SchemaOperationQuotas\x12G\n\x13leaky_bucket_quotas\x18\x01 \x03(\x0b\x32*.Ydb.Cms.SchemaOperationQuotas.LeakyBucket\x1a:\n\x0bLeakyBucket\x12\x13\n\x0b\x62ucket_size\x18\x01 \x01(\x01\x12\x16\n\x0e\x62ucket_seconds\x18\x02 \x01(\x04\"\xc0\x01\n\x0e\x44\x61tabaseQuotas\x12\x1c\n\x14\x64\x61ta_size_hard_quota\x18\x01 \x01(\x04\x12\x1c\n\x14\x64\x61ta_size_soft_quota\x18\x02 \x01(\x04\x12 \n\x18\x64\x61ta_stream_shards_quota\x18\x03 \x01(\x04\x12*\n\"data_stream_reserved_storage_quota\x18\x05 \x01(\x04\x12$\n\x1cttl_min_run_internal_seconds\x18\x04 \x01(\r\"\xb7\x04\n\x15\x43reateDatabaseRequest\x12\x39\n\x10operation_params\x18\x01 \x01(\x0b\x32\x1f.Ydb.Operations.OperationParams\x12\x0c\n\x04path\x18\x02 \x01(\t\x12\'\n\tresources\x18\x03 \x01(\x0b\x32\x12.Ydb.Cms.ResourcesH\x00\x12.\n\x10shared_resources\x18\x06 \x01(\x0b\x32\x12.Ydb.Cms.ResourcesH\x00\x12<\n\x14serverless_resources\x18\x07 \x01(\x0b\x32\x1c.Ydb.Cms.ServerlessResourcesH\x00\x12)\n\x07options\x18\x04 \x01(\x0b\x32\x18.Ydb.Cms.DatabaseOptions\x12\x42\n\nattributes\x18\x05 \x03(\x0b\x32..Ydb.Cms.CreateDatabaseRequest.AttributesEntry\x12?\n\x17schema_operation_quotas\x18\x08 \x01(\x0b\x32\x1e.Ydb.Cms.SchemaOperationQuotas\x12\x17\n\x0fidempotency_key\x18\t \x01(\t\x12\x30\n\x0f\x64\x61tabase_quotas\x18\n \x01(\x0b\x32\x17.Ydb.Cms.DatabaseQuotas\x1a\x31\n\x0f\x41ttributesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\x10\n\x0eresources_kind\"F\n\x16\x43reateDatabaseResponse\x12,\n\toperation\x18\x01 \x01(\x0b\x32\x19.Ydb.Operations.Operation\"c\n\x18GetDatabaseStatusRequest\x12\x0c\n\x04path\x18\x01 \x01(\t\x12\x39\n\x10operation_params\x18\x02 \x01(\x0b\x32\x1f.Ydb.Operations.OperationParams\"I\n\x19GetDatabaseStatusResponse\x12,\n\toperation\x18\x01 \x01(\x0b\x32\x19.Ydb.Operations.Operation\"\x85\x05\n\x17GetDatabaseStatusResult\x12\x0c\n\x04path\x18\x01 \x01(\t\x12\x35\n\x05state\x18\x02 \x01(\x0e\x32&.Ydb.Cms.GetDatabaseStatusResult.State\x12\x30\n\x12required_resources\x18\x03 \x01(\x0b\x32\x12.Ydb.Cms.ResourcesH\x00\x12\x37\n\x19required_shared_resources\x18\x07 \x01(\x0b\x32\x12.Ydb.Cms.ResourcesH\x00\x12<\n\x14serverless_resources\x18\x08 \x01(\x0b\x32\x1c.Ydb.Cms.ServerlessResourcesH\x00\x12/\n\x13\x61llocated_resources\x18\x04 \x01(\x0b\x32\x12.Ydb.Cms.Resources\x12\x41\n\x14registered_resources\x18\x05 \x03(\x0b\x32#.Ydb.Cms.AllocatedComputationalUnit\x12\x12\n\ngeneration\x18\x06 \x01(\x04\x12?\n\x17schema_operation_quotas\x18\t \x01(\x0b\x32\x1e.Ydb.Cms.SchemaOperationQuotas\x12\x30\n\x0f\x64\x61tabase_quotas\x18\n \x01(\x0b\x32\x17.Ydb.Cms.DatabaseQuotas\"o\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x43REATING\x10\x01\x12\x0b\n\x07RUNNING\x10\x02\x12\x0c\n\x08REMOVING\x10\x03\x12\x15\n\x11PENDING_RESOURCES\x10\x04\x12\x0f\n\x0b\x43ONFIGURING\x10\x05\x42\x10\n\x0eresources_kind\"\xdd\x05\n\x14\x41lterDatabaseRequest\x12\x0c\n\x04path\x18\x01 \x01(\t\x12?\n\x1a\x63omputational_units_to_add\x18\x02 \x03(\x0b\x32\x1b.Ydb.Cms.ComputationalUnits\x12\x42\n\x1d\x63omputational_units_to_remove\x18\x03 \x03(\x0b\x32\x1b.Ydb.Cms.ComputationalUnits\x12\x33\n\x14storage_units_to_add\x18\x04 \x03(\x0b\x32\x15.Ydb.Cms.StorageUnits\x12L\n\x1f\x63omputational_units_to_register\x18\x05 \x03(\x0b\x32#.Ydb.Cms.AllocatedComputationalUnit\x12N\n!computational_units_to_deregister\x18\x06 \x03(\x0b\x32#.Ydb.Cms.AllocatedComputationalUnit\x12\x39\n\x10operation_params\x18\x07 \x01(\x0b\x32\x1f.Ydb.Operations.OperationParams\x12\x12\n\ngeneration\x18\x08 \x01(\x04\x12?\n\x17schema_operation_quotas\x18\t \x01(\x0b\x32\x1e.Ydb.Cms.SchemaOperationQuotas\x12\x17\n\x0fidempotency_key\x18\n \x01(\t\x12\x30\n\x0f\x64\x61tabase_quotas\x18\x0b \x01(\x0b\x32\x17.Ydb.Cms.DatabaseQuotas\x12L\n\x10\x61lter_attributes\x18\x0c \x03(\x0b\x32\x32.Ydb.Cms.AlterDatabaseRequest.AlterAttributesEntry\x1a\x36\n\x14\x41lterAttributesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"E\n\x15\x41lterDatabaseResponse\x12,\n\toperation\x18\x01 \x01(\x0b\x32\x19.Ydb.Operations.Operation\"Q\n\x14ListDatabasesRequest\x12\x39\n\x10operation_params\x18\x01 \x01(\x0b\x32\x1f.Ydb.Operations.OperationParams\"E\n\x15ListDatabasesResponse\x12,\n\toperation\x18\x01 \x01(\x0b\x32\x19.Ydb.Operations.Operation\"$\n\x13ListDatabasesResult\x12\r\n\x05paths\x18\x01 \x03(\t\"`\n\x15RemoveDatabaseRequest\x12\x0c\n\x04path\x18\x01 \x01(\t\x12\x39\n\x10operation_params\x18\x02 \x01(\x0b\x32\x1f.Ydb.Operations.OperationParams\"F\n\x16RemoveDatabaseResponse\x12,\n\toperation\x18\x01 \x01(\x0b\x32\x19.Ydb.Operations.Operation\"\x92\x01\n\x16StorageUnitDescription\x12\x0c\n\x04kind\x18\x01 \x01(\t\x12;\n\x06labels\x18\x02 \x03(\x0b\x32+.Ydb.Cms.StorageUnitDescription.LabelsEntry\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x9c\x01\n\x1b\x41vailabilityZoneDescription\x12\x0c\n\x04name\x18\x01 \x01(\t\x12@\n\x06labels\x18\x02 \x03(\x0b\x32\x30.Ydb.Cms.AvailabilityZoneDescription.LabelsEntry\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xc2\x01\n\x1c\x43omputationalUnitDescription\x12\x0c\n\x04kind\x18\x01 \x01(\t\x12\x41\n\x06labels\x18\x02 \x03(\x0b\x32\x31.Ydb.Cms.ComputationalUnitDescription.LabelsEntry\x12\"\n\x1a\x61llowed_availability_zones\x18\x03 \x03(\t\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"[\n\x1e\x44\x65scribeDatabaseOptionsRequest\x12\x39\n\x10operation_params\x18\x01 \x01(\x0b\x32\x1f.Ydb.Operations.OperationParams\"O\n\x1f\x44\x65scribeDatabaseOptionsResponse\x12,\n\toperation\x18\x01 \x01(\x0b\x32\x19.Ydb.Operations.Operation\"\xdd\x01\n\x1d\x44\x65scribeDatabaseOptionsResult\x12\x36\n\rstorage_units\x18\x01 \x03(\x0b\x32\x1f.Ydb.Cms.StorageUnitDescription\x12@\n\x12\x61vailability_zones\x18\x02 \x03(\x0b\x32$.Ydb.Cms.AvailabilityZoneDescription\x12\x42\n\x13\x63omputational_units\x18\x03 \x03(\x0b\x32%.Ydb.Cms.ComputationalUnitDescriptionBO\n\x12tech.ydb.proto.cmsZ6github.com/ydb-platform/ydb-go-genproto/protos/Ydb_Cms\xf8\x01\x01\x62\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'protos.ydb_cms_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\022tech.ydb.proto.cmsZ6github.com/ydb-platform/ydb-go-genproto/protos/Ydb_Cms\370\001\001' + _CREATEDATABASEREQUEST_ATTRIBUTESENTRY._options = None + _CREATEDATABASEREQUEST_ATTRIBUTESENTRY._serialized_options = b'8\001' + _ALTERDATABASEREQUEST_ALTERATTRIBUTESENTRY._options = None + _ALTERDATABASEREQUEST_ALTERATTRIBUTESENTRY._serialized_options = b'8\001' + _STORAGEUNITDESCRIPTION_LABELSENTRY._options = None + _STORAGEUNITDESCRIPTION_LABELSENTRY._serialized_options = b'8\001' + _AVAILABILITYZONEDESCRIPTION_LABELSENTRY._options = None + _AVAILABILITYZONEDESCRIPTION_LABELSENTRY._serialized_options = b'8\001' + _COMPUTATIONALUNITDESCRIPTION_LABELSENTRY._options = None + _COMPUTATIONALUNITDESCRIPTION_LABELSENTRY._serialized_options = b'8\001' + _STORAGEUNITS._serialized_start=61 + _STORAGEUNITS._serialized_end=109 + _COMPUTATIONALUNITS._serialized_start=111 + _COMPUTATIONALUNITS._serialized_end=192 + _ALLOCATEDCOMPUTATIONALUNIT._serialized_start=194 + _ALLOCATEDCOMPUTATIONALUNIT._serialized_end=269 + _RESOURCES._serialized_start=271 + _RESOURCES._serialized_end=386 + _SERVERLESSRESOURCES._serialized_start=388 + _SERVERLESSRESOURCES._serialized_end=439 + _DATABASEOPTIONS._serialized_start=441 + _DATABASEOPTIONS._serialized_end=547 + _SCHEMAOPERATIONQUOTAS._serialized_start=550 + _SCHEMAOPERATIONQUOTAS._serialized_end=706 + _SCHEMAOPERATIONQUOTAS_LEAKYBUCKET._serialized_start=648 + _SCHEMAOPERATIONQUOTAS_LEAKYBUCKET._serialized_end=706 + _DATABASEQUOTAS._serialized_start=709 + _DATABASEQUOTAS._serialized_end=901 + _CREATEDATABASEREQUEST._serialized_start=904 + _CREATEDATABASEREQUEST._serialized_end=1471 + _CREATEDATABASEREQUEST_ATTRIBUTESENTRY._serialized_start=1404 + _CREATEDATABASEREQUEST_ATTRIBUTESENTRY._serialized_end=1453 + _CREATEDATABASERESPONSE._serialized_start=1473 + _CREATEDATABASERESPONSE._serialized_end=1543 + _GETDATABASESTATUSREQUEST._serialized_start=1545 + _GETDATABASESTATUSREQUEST._serialized_end=1644 + _GETDATABASESTATUSRESPONSE._serialized_start=1646 + _GETDATABASESTATUSRESPONSE._serialized_end=1719 + _GETDATABASESTATUSRESULT._serialized_start=1722 + _GETDATABASESTATUSRESULT._serialized_end=2367 + _GETDATABASESTATUSRESULT_STATE._serialized_start=2238 + _GETDATABASESTATUSRESULT_STATE._serialized_end=2349 + _ALTERDATABASEREQUEST._serialized_start=2370 + _ALTERDATABASEREQUEST._serialized_end=3103 + _ALTERDATABASEREQUEST_ALTERATTRIBUTESENTRY._serialized_start=3049 + _ALTERDATABASEREQUEST_ALTERATTRIBUTESENTRY._serialized_end=3103 + _ALTERDATABASERESPONSE._serialized_start=3105 + _ALTERDATABASERESPONSE._serialized_end=3174 + _LISTDATABASESREQUEST._serialized_start=3176 + _LISTDATABASESREQUEST._serialized_end=3257 + _LISTDATABASESRESPONSE._serialized_start=3259 + _LISTDATABASESRESPONSE._serialized_end=3328 + _LISTDATABASESRESULT._serialized_start=3330 + _LISTDATABASESRESULT._serialized_end=3366 + _REMOVEDATABASEREQUEST._serialized_start=3368 + _REMOVEDATABASEREQUEST._serialized_end=3464 + _REMOVEDATABASERESPONSE._serialized_start=3466 + _REMOVEDATABASERESPONSE._serialized_end=3536 + _STORAGEUNITDESCRIPTION._serialized_start=3539 + _STORAGEUNITDESCRIPTION._serialized_end=3685 + _STORAGEUNITDESCRIPTION_LABELSENTRY._serialized_start=3640 + _STORAGEUNITDESCRIPTION_LABELSENTRY._serialized_end=3685 + _AVAILABILITYZONEDESCRIPTION._serialized_start=3688 + _AVAILABILITYZONEDESCRIPTION._serialized_end=3844 + _AVAILABILITYZONEDESCRIPTION_LABELSENTRY._serialized_start=3640 + _AVAILABILITYZONEDESCRIPTION_LABELSENTRY._serialized_end=3685 + _COMPUTATIONALUNITDESCRIPTION._serialized_start=3847 + _COMPUTATIONALUNITDESCRIPTION._serialized_end=4041 + _COMPUTATIONALUNITDESCRIPTION_LABELSENTRY._serialized_start=3640 + _COMPUTATIONALUNITDESCRIPTION_LABELSENTRY._serialized_end=3685 + _DESCRIBEDATABASEOPTIONSREQUEST._serialized_start=4043 + _DESCRIBEDATABASEOPTIONSREQUEST._serialized_end=4134 + _DESCRIBEDATABASEOPTIONSRESPONSE._serialized_start=4136 + _DESCRIBEDATABASEOPTIONSRESPONSE._serialized_end=4215 + _DESCRIBEDATABASEOPTIONSRESULT._serialized_start=4218 + _DESCRIBEDATABASEOPTIONSRESULT._serialized_end=4439 +# @@protoc_insertion_point(module_scope) diff --git a/ydb/_grpc/v5/protos/ydb_cms_pb2.pyi b/ydb/_grpc/v5/protos/ydb_cms_pb2.pyi new file mode 100644 index 00000000..f7a0aae1 --- /dev/null +++ b/ydb/_grpc/v5/protos/ydb_cms_pb2.pyi @@ -0,0 +1,312 @@ +from protos import ydb_operation_pb2 as _ydb_operation_pb2 +from google.protobuf.internal import containers as _containers +from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union + +DESCRIPTOR: _descriptor.FileDescriptor + +class AllocatedComputationalUnit(_message.Message): + __slots__ = ["host", "port", "unit_kind"] + HOST_FIELD_NUMBER: _ClassVar[int] + PORT_FIELD_NUMBER: _ClassVar[int] + UNIT_KIND_FIELD_NUMBER: _ClassVar[int] + host: str + port: int + unit_kind: str + def __init__(self, host: _Optional[str] = ..., port: _Optional[int] = ..., unit_kind: _Optional[str] = ...) -> None: ... + +class AlterDatabaseRequest(_message.Message): + __slots__ = ["alter_attributes", "computational_units_to_add", "computational_units_to_deregister", "computational_units_to_register", "computational_units_to_remove", "database_quotas", "generation", "idempotency_key", "operation_params", "path", "schema_operation_quotas", "storage_units_to_add"] + class AlterAttributesEntry(_message.Message): + __slots__ = ["key", "value"] + KEY_FIELD_NUMBER: _ClassVar[int] + VALUE_FIELD_NUMBER: _ClassVar[int] + key: str + value: str + def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ... + ALTER_ATTRIBUTES_FIELD_NUMBER: _ClassVar[int] + COMPUTATIONAL_UNITS_TO_ADD_FIELD_NUMBER: _ClassVar[int] + COMPUTATIONAL_UNITS_TO_DEREGISTER_FIELD_NUMBER: _ClassVar[int] + COMPUTATIONAL_UNITS_TO_REGISTER_FIELD_NUMBER: _ClassVar[int] + COMPUTATIONAL_UNITS_TO_REMOVE_FIELD_NUMBER: _ClassVar[int] + DATABASE_QUOTAS_FIELD_NUMBER: _ClassVar[int] + GENERATION_FIELD_NUMBER: _ClassVar[int] + IDEMPOTENCY_KEY_FIELD_NUMBER: _ClassVar[int] + OPERATION_PARAMS_FIELD_NUMBER: _ClassVar[int] + PATH_FIELD_NUMBER: _ClassVar[int] + SCHEMA_OPERATION_QUOTAS_FIELD_NUMBER: _ClassVar[int] + STORAGE_UNITS_TO_ADD_FIELD_NUMBER: _ClassVar[int] + alter_attributes: _containers.ScalarMap[str, str] + computational_units_to_add: _containers.RepeatedCompositeFieldContainer[ComputationalUnits] + computational_units_to_deregister: _containers.RepeatedCompositeFieldContainer[AllocatedComputationalUnit] + computational_units_to_register: _containers.RepeatedCompositeFieldContainer[AllocatedComputationalUnit] + computational_units_to_remove: _containers.RepeatedCompositeFieldContainer[ComputationalUnits] + database_quotas: DatabaseQuotas + generation: int + idempotency_key: str + operation_params: _ydb_operation_pb2.OperationParams + path: str + schema_operation_quotas: SchemaOperationQuotas + storage_units_to_add: _containers.RepeatedCompositeFieldContainer[StorageUnits] + def __init__(self, path: _Optional[str] = ..., computational_units_to_add: _Optional[_Iterable[_Union[ComputationalUnits, _Mapping]]] = ..., computational_units_to_remove: _Optional[_Iterable[_Union[ComputationalUnits, _Mapping]]] = ..., storage_units_to_add: _Optional[_Iterable[_Union[StorageUnits, _Mapping]]] = ..., computational_units_to_register: _Optional[_Iterable[_Union[AllocatedComputationalUnit, _Mapping]]] = ..., computational_units_to_deregister: _Optional[_Iterable[_Union[AllocatedComputationalUnit, _Mapping]]] = ..., operation_params: _Optional[_Union[_ydb_operation_pb2.OperationParams, _Mapping]] = ..., generation: _Optional[int] = ..., schema_operation_quotas: _Optional[_Union[SchemaOperationQuotas, _Mapping]] = ..., idempotency_key: _Optional[str] = ..., database_quotas: _Optional[_Union[DatabaseQuotas, _Mapping]] = ..., alter_attributes: _Optional[_Mapping[str, str]] = ...) -> None: ... + +class AlterDatabaseResponse(_message.Message): + __slots__ = ["operation"] + OPERATION_FIELD_NUMBER: _ClassVar[int] + operation: _ydb_operation_pb2.Operation + def __init__(self, operation: _Optional[_Union[_ydb_operation_pb2.Operation, _Mapping]] = ...) -> None: ... + +class AvailabilityZoneDescription(_message.Message): + __slots__ = ["labels", "name"] + class LabelsEntry(_message.Message): + __slots__ = ["key", "value"] + KEY_FIELD_NUMBER: _ClassVar[int] + VALUE_FIELD_NUMBER: _ClassVar[int] + key: str + value: str + def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ... + LABELS_FIELD_NUMBER: _ClassVar[int] + NAME_FIELD_NUMBER: _ClassVar[int] + labels: _containers.ScalarMap[str, str] + name: str + def __init__(self, name: _Optional[str] = ..., labels: _Optional[_Mapping[str, str]] = ...) -> None: ... + +class ComputationalUnitDescription(_message.Message): + __slots__ = ["allowed_availability_zones", "kind", "labels"] + class LabelsEntry(_message.Message): + __slots__ = ["key", "value"] + KEY_FIELD_NUMBER: _ClassVar[int] + VALUE_FIELD_NUMBER: _ClassVar[int] + key: str + value: str + def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ... + ALLOWED_AVAILABILITY_ZONES_FIELD_NUMBER: _ClassVar[int] + KIND_FIELD_NUMBER: _ClassVar[int] + LABELS_FIELD_NUMBER: _ClassVar[int] + allowed_availability_zones: _containers.RepeatedScalarFieldContainer[str] + kind: str + labels: _containers.ScalarMap[str, str] + def __init__(self, kind: _Optional[str] = ..., labels: _Optional[_Mapping[str, str]] = ..., allowed_availability_zones: _Optional[_Iterable[str]] = ...) -> None: ... + +class ComputationalUnits(_message.Message): + __slots__ = ["availability_zone", "count", "unit_kind"] + AVAILABILITY_ZONE_FIELD_NUMBER: _ClassVar[int] + COUNT_FIELD_NUMBER: _ClassVar[int] + UNIT_KIND_FIELD_NUMBER: _ClassVar[int] + availability_zone: str + count: int + unit_kind: str + def __init__(self, unit_kind: _Optional[str] = ..., availability_zone: _Optional[str] = ..., count: _Optional[int] = ...) -> None: ... + +class CreateDatabaseRequest(_message.Message): + __slots__ = ["attributes", "database_quotas", "idempotency_key", "operation_params", "options", "path", "resources", "schema_operation_quotas", "serverless_resources", "shared_resources"] + class AttributesEntry(_message.Message): + __slots__ = ["key", "value"] + KEY_FIELD_NUMBER: _ClassVar[int] + VALUE_FIELD_NUMBER: _ClassVar[int] + key: str + value: str + def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ... + ATTRIBUTES_FIELD_NUMBER: _ClassVar[int] + DATABASE_QUOTAS_FIELD_NUMBER: _ClassVar[int] + IDEMPOTENCY_KEY_FIELD_NUMBER: _ClassVar[int] + OPERATION_PARAMS_FIELD_NUMBER: _ClassVar[int] + OPTIONS_FIELD_NUMBER: _ClassVar[int] + PATH_FIELD_NUMBER: _ClassVar[int] + RESOURCES_FIELD_NUMBER: _ClassVar[int] + SCHEMA_OPERATION_QUOTAS_FIELD_NUMBER: _ClassVar[int] + SERVERLESS_RESOURCES_FIELD_NUMBER: _ClassVar[int] + SHARED_RESOURCES_FIELD_NUMBER: _ClassVar[int] + attributes: _containers.ScalarMap[str, str] + database_quotas: DatabaseQuotas + idempotency_key: str + operation_params: _ydb_operation_pb2.OperationParams + options: DatabaseOptions + path: str + resources: Resources + schema_operation_quotas: SchemaOperationQuotas + serverless_resources: ServerlessResources + shared_resources: Resources + def __init__(self, operation_params: _Optional[_Union[_ydb_operation_pb2.OperationParams, _Mapping]] = ..., path: _Optional[str] = ..., resources: _Optional[_Union[Resources, _Mapping]] = ..., shared_resources: _Optional[_Union[Resources, _Mapping]] = ..., serverless_resources: _Optional[_Union[ServerlessResources, _Mapping]] = ..., options: _Optional[_Union[DatabaseOptions, _Mapping]] = ..., attributes: _Optional[_Mapping[str, str]] = ..., schema_operation_quotas: _Optional[_Union[SchemaOperationQuotas, _Mapping]] = ..., idempotency_key: _Optional[str] = ..., database_quotas: _Optional[_Union[DatabaseQuotas, _Mapping]] = ...) -> None: ... + +class CreateDatabaseResponse(_message.Message): + __slots__ = ["operation"] + OPERATION_FIELD_NUMBER: _ClassVar[int] + operation: _ydb_operation_pb2.Operation + def __init__(self, operation: _Optional[_Union[_ydb_operation_pb2.Operation, _Mapping]] = ...) -> None: ... + +class DatabaseOptions(_message.Message): + __slots__ = ["disable_external_subdomain", "disable_tx_service", "plan_resolution"] + DISABLE_EXTERNAL_SUBDOMAIN_FIELD_NUMBER: _ClassVar[int] + DISABLE_TX_SERVICE_FIELD_NUMBER: _ClassVar[int] + PLAN_RESOLUTION_FIELD_NUMBER: _ClassVar[int] + disable_external_subdomain: bool + disable_tx_service: bool + plan_resolution: int + def __init__(self, disable_tx_service: bool = ..., disable_external_subdomain: bool = ..., plan_resolution: _Optional[int] = ...) -> None: ... + +class DatabaseQuotas(_message.Message): + __slots__ = ["data_size_hard_quota", "data_size_soft_quota", "data_stream_reserved_storage_quota", "data_stream_shards_quota", "ttl_min_run_internal_seconds"] + DATA_SIZE_HARD_QUOTA_FIELD_NUMBER: _ClassVar[int] + DATA_SIZE_SOFT_QUOTA_FIELD_NUMBER: _ClassVar[int] + DATA_STREAM_RESERVED_STORAGE_QUOTA_FIELD_NUMBER: _ClassVar[int] + DATA_STREAM_SHARDS_QUOTA_FIELD_NUMBER: _ClassVar[int] + TTL_MIN_RUN_INTERNAL_SECONDS_FIELD_NUMBER: _ClassVar[int] + data_size_hard_quota: int + data_size_soft_quota: int + data_stream_reserved_storage_quota: int + data_stream_shards_quota: int + ttl_min_run_internal_seconds: int + def __init__(self, data_size_hard_quota: _Optional[int] = ..., data_size_soft_quota: _Optional[int] = ..., data_stream_shards_quota: _Optional[int] = ..., data_stream_reserved_storage_quota: _Optional[int] = ..., ttl_min_run_internal_seconds: _Optional[int] = ...) -> None: ... + +class DescribeDatabaseOptionsRequest(_message.Message): + __slots__ = ["operation_params"] + OPERATION_PARAMS_FIELD_NUMBER: _ClassVar[int] + operation_params: _ydb_operation_pb2.OperationParams + def __init__(self, operation_params: _Optional[_Union[_ydb_operation_pb2.OperationParams, _Mapping]] = ...) -> None: ... + +class DescribeDatabaseOptionsResponse(_message.Message): + __slots__ = ["operation"] + OPERATION_FIELD_NUMBER: _ClassVar[int] + operation: _ydb_operation_pb2.Operation + def __init__(self, operation: _Optional[_Union[_ydb_operation_pb2.Operation, _Mapping]] = ...) -> None: ... + +class DescribeDatabaseOptionsResult(_message.Message): + __slots__ = ["availability_zones", "computational_units", "storage_units"] + AVAILABILITY_ZONES_FIELD_NUMBER: _ClassVar[int] + COMPUTATIONAL_UNITS_FIELD_NUMBER: _ClassVar[int] + STORAGE_UNITS_FIELD_NUMBER: _ClassVar[int] + availability_zones: _containers.RepeatedCompositeFieldContainer[AvailabilityZoneDescription] + computational_units: _containers.RepeatedCompositeFieldContainer[ComputationalUnitDescription] + storage_units: _containers.RepeatedCompositeFieldContainer[StorageUnitDescription] + def __init__(self, storage_units: _Optional[_Iterable[_Union[StorageUnitDescription, _Mapping]]] = ..., availability_zones: _Optional[_Iterable[_Union[AvailabilityZoneDescription, _Mapping]]] = ..., computational_units: _Optional[_Iterable[_Union[ComputationalUnitDescription, _Mapping]]] = ...) -> None: ... + +class GetDatabaseStatusRequest(_message.Message): + __slots__ = ["operation_params", "path"] + OPERATION_PARAMS_FIELD_NUMBER: _ClassVar[int] + PATH_FIELD_NUMBER: _ClassVar[int] + operation_params: _ydb_operation_pb2.OperationParams + path: str + def __init__(self, path: _Optional[str] = ..., operation_params: _Optional[_Union[_ydb_operation_pb2.OperationParams, _Mapping]] = ...) -> None: ... + +class GetDatabaseStatusResponse(_message.Message): + __slots__ = ["operation"] + OPERATION_FIELD_NUMBER: _ClassVar[int] + operation: _ydb_operation_pb2.Operation + def __init__(self, operation: _Optional[_Union[_ydb_operation_pb2.Operation, _Mapping]] = ...) -> None: ... + +class GetDatabaseStatusResult(_message.Message): + __slots__ = ["allocated_resources", "database_quotas", "generation", "path", "registered_resources", "required_resources", "required_shared_resources", "schema_operation_quotas", "serverless_resources", "state"] + class State(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + ALLOCATED_RESOURCES_FIELD_NUMBER: _ClassVar[int] + CONFIGURING: GetDatabaseStatusResult.State + CREATING: GetDatabaseStatusResult.State + DATABASE_QUOTAS_FIELD_NUMBER: _ClassVar[int] + GENERATION_FIELD_NUMBER: _ClassVar[int] + PATH_FIELD_NUMBER: _ClassVar[int] + PENDING_RESOURCES: GetDatabaseStatusResult.State + REGISTERED_RESOURCES_FIELD_NUMBER: _ClassVar[int] + REMOVING: GetDatabaseStatusResult.State + REQUIRED_RESOURCES_FIELD_NUMBER: _ClassVar[int] + REQUIRED_SHARED_RESOURCES_FIELD_NUMBER: _ClassVar[int] + RUNNING: GetDatabaseStatusResult.State + SCHEMA_OPERATION_QUOTAS_FIELD_NUMBER: _ClassVar[int] + SERVERLESS_RESOURCES_FIELD_NUMBER: _ClassVar[int] + STATE_FIELD_NUMBER: _ClassVar[int] + STATE_UNSPECIFIED: GetDatabaseStatusResult.State + allocated_resources: Resources + database_quotas: DatabaseQuotas + generation: int + path: str + registered_resources: _containers.RepeatedCompositeFieldContainer[AllocatedComputationalUnit] + required_resources: Resources + required_shared_resources: Resources + schema_operation_quotas: SchemaOperationQuotas + serverless_resources: ServerlessResources + state: GetDatabaseStatusResult.State + def __init__(self, path: _Optional[str] = ..., state: _Optional[_Union[GetDatabaseStatusResult.State, str]] = ..., required_resources: _Optional[_Union[Resources, _Mapping]] = ..., required_shared_resources: _Optional[_Union[Resources, _Mapping]] = ..., serverless_resources: _Optional[_Union[ServerlessResources, _Mapping]] = ..., allocated_resources: _Optional[_Union[Resources, _Mapping]] = ..., registered_resources: _Optional[_Iterable[_Union[AllocatedComputationalUnit, _Mapping]]] = ..., generation: _Optional[int] = ..., schema_operation_quotas: _Optional[_Union[SchemaOperationQuotas, _Mapping]] = ..., database_quotas: _Optional[_Union[DatabaseQuotas, _Mapping]] = ...) -> None: ... + +class ListDatabasesRequest(_message.Message): + __slots__ = ["operation_params"] + OPERATION_PARAMS_FIELD_NUMBER: _ClassVar[int] + operation_params: _ydb_operation_pb2.OperationParams + def __init__(self, operation_params: _Optional[_Union[_ydb_operation_pb2.OperationParams, _Mapping]] = ...) -> None: ... + +class ListDatabasesResponse(_message.Message): + __slots__ = ["operation"] + OPERATION_FIELD_NUMBER: _ClassVar[int] + operation: _ydb_operation_pb2.Operation + def __init__(self, operation: _Optional[_Union[_ydb_operation_pb2.Operation, _Mapping]] = ...) -> None: ... + +class ListDatabasesResult(_message.Message): + __slots__ = ["paths"] + PATHS_FIELD_NUMBER: _ClassVar[int] + paths: _containers.RepeatedScalarFieldContainer[str] + def __init__(self, paths: _Optional[_Iterable[str]] = ...) -> None: ... + +class RemoveDatabaseRequest(_message.Message): + __slots__ = ["operation_params", "path"] + OPERATION_PARAMS_FIELD_NUMBER: _ClassVar[int] + PATH_FIELD_NUMBER: _ClassVar[int] + operation_params: _ydb_operation_pb2.OperationParams + path: str + def __init__(self, path: _Optional[str] = ..., operation_params: _Optional[_Union[_ydb_operation_pb2.OperationParams, _Mapping]] = ...) -> None: ... + +class RemoveDatabaseResponse(_message.Message): + __slots__ = ["operation"] + OPERATION_FIELD_NUMBER: _ClassVar[int] + operation: _ydb_operation_pb2.Operation + def __init__(self, operation: _Optional[_Union[_ydb_operation_pb2.Operation, _Mapping]] = ...) -> None: ... + +class Resources(_message.Message): + __slots__ = ["computational_units", "storage_units"] + COMPUTATIONAL_UNITS_FIELD_NUMBER: _ClassVar[int] + STORAGE_UNITS_FIELD_NUMBER: _ClassVar[int] + computational_units: _containers.RepeatedCompositeFieldContainer[ComputationalUnits] + storage_units: _containers.RepeatedCompositeFieldContainer[StorageUnits] + def __init__(self, storage_units: _Optional[_Iterable[_Union[StorageUnits, _Mapping]]] = ..., computational_units: _Optional[_Iterable[_Union[ComputationalUnits, _Mapping]]] = ...) -> None: ... + +class SchemaOperationQuotas(_message.Message): + __slots__ = ["leaky_bucket_quotas"] + class LeakyBucket(_message.Message): + __slots__ = ["bucket_seconds", "bucket_size"] + BUCKET_SECONDS_FIELD_NUMBER: _ClassVar[int] + BUCKET_SIZE_FIELD_NUMBER: _ClassVar[int] + bucket_seconds: int + bucket_size: float + def __init__(self, bucket_size: _Optional[float] = ..., bucket_seconds: _Optional[int] = ...) -> None: ... + LEAKY_BUCKET_QUOTAS_FIELD_NUMBER: _ClassVar[int] + leaky_bucket_quotas: _containers.RepeatedCompositeFieldContainer[SchemaOperationQuotas.LeakyBucket] + def __init__(self, leaky_bucket_quotas: _Optional[_Iterable[_Union[SchemaOperationQuotas.LeakyBucket, _Mapping]]] = ...) -> None: ... + +class ServerlessResources(_message.Message): + __slots__ = ["shared_database_path"] + SHARED_DATABASE_PATH_FIELD_NUMBER: _ClassVar[int] + shared_database_path: str + def __init__(self, shared_database_path: _Optional[str] = ...) -> None: ... + +class StorageUnitDescription(_message.Message): + __slots__ = ["kind", "labels"] + class LabelsEntry(_message.Message): + __slots__ = ["key", "value"] + KEY_FIELD_NUMBER: _ClassVar[int] + VALUE_FIELD_NUMBER: _ClassVar[int] + key: str + value: str + def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ... + KIND_FIELD_NUMBER: _ClassVar[int] + LABELS_FIELD_NUMBER: _ClassVar[int] + kind: str + labels: _containers.ScalarMap[str, str] + def __init__(self, kind: _Optional[str] = ..., labels: _Optional[_Mapping[str, str]] = ...) -> None: ... + +class StorageUnits(_message.Message): + __slots__ = ["count", "unit_kind"] + COUNT_FIELD_NUMBER: _ClassVar[int] + UNIT_KIND_FIELD_NUMBER: _ClassVar[int] + count: int + unit_kind: str + def __init__(self, unit_kind: _Optional[str] = ..., count: _Optional[int] = ...) -> None: ... diff --git a/ydb/_grpc/v5/protos/ydb_cms_pb2_grpc.py b/ydb/_grpc/v5/protos/ydb_cms_pb2_grpc.py new file mode 100644 index 00000000..2daafffe --- /dev/null +++ b/ydb/_grpc/v5/protos/ydb_cms_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/ydb/_grpc/v5/protos/ydb_common_pb2.py b/ydb/_grpc/v5/protos/ydb_common_pb2.py new file mode 100644 index 00000000..ed021e12 --- /dev/null +++ b/ydb/_grpc/v5/protos/ydb_common_pb2.py @@ -0,0 +1,35 @@ +# -*- coding: utf-8 -*- +# flake8: noqa +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: protos/ydb_common.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x17protos/ydb_common.proto\x12\x03Ydb\"J\n\x0b\x46\x65\x61tureFlag\";\n\x06Status\x12\x16\n\x12STATUS_UNSPECIFIED\x10\x00\x12\x0b\n\x07\x45NABLED\x10\x01\x12\x0c\n\x08\x44ISABLED\x10\x02\"\"\n\x08\x43ostInfo\x12\x16\n\x0e\x63onsumed_units\x18\x01 \x01(\x01\"\x1d\n\rQuotaExceeded\x12\x0c\n\x04\x64isk\x18\x01 \x01(\x08\"4\n\x10VirtualTimestamp\x12\x11\n\tplan_step\x18\x01 \x01(\x04\x12\r\n\x05tx_id\x18\x02 \x01(\x04\x42\\\n\x15tech.ydb.proto.commonB\x0c\x43ommonProtosZ2github.com/ydb-platform/ydb-go-genproto/protos/Ydb\xf8\x01\x01\x62\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'protos.ydb_common_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\025tech.ydb.proto.commonB\014CommonProtosZ2github.com/ydb-platform/ydb-go-genproto/protos/Ydb\370\001\001' + _FEATUREFLAG._serialized_start=32 + _FEATUREFLAG._serialized_end=106 + _FEATUREFLAG_STATUS._serialized_start=47 + _FEATUREFLAG_STATUS._serialized_end=106 + _COSTINFO._serialized_start=108 + _COSTINFO._serialized_end=142 + _QUOTAEXCEEDED._serialized_start=144 + _QUOTAEXCEEDED._serialized_end=173 + _VIRTUALTIMESTAMP._serialized_start=175 + _VIRTUALTIMESTAMP._serialized_end=227 +# @@protoc_insertion_point(module_scope) diff --git a/ydb/_grpc/v5/protos/ydb_common_pb2.pyi b/ydb/_grpc/v5/protos/ydb_common_pb2.pyi new file mode 100644 index 00000000..72f31795 --- /dev/null +++ b/ydb/_grpc/v5/protos/ydb_common_pb2.pyi @@ -0,0 +1,35 @@ +from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from typing import ClassVar as _ClassVar, Optional as _Optional + +DESCRIPTOR: _descriptor.FileDescriptor + +class CostInfo(_message.Message): + __slots__ = ["consumed_units"] + CONSUMED_UNITS_FIELD_NUMBER: _ClassVar[int] + consumed_units: float + def __init__(self, consumed_units: _Optional[float] = ...) -> None: ... + +class FeatureFlag(_message.Message): + __slots__ = [] + class Status(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + DISABLED: FeatureFlag.Status + ENABLED: FeatureFlag.Status + STATUS_UNSPECIFIED: FeatureFlag.Status + def __init__(self) -> None: ... + +class QuotaExceeded(_message.Message): + __slots__ = ["disk"] + DISK_FIELD_NUMBER: _ClassVar[int] + disk: bool + def __init__(self, disk: bool = ...) -> None: ... + +class VirtualTimestamp(_message.Message): + __slots__ = ["plan_step", "tx_id"] + PLAN_STEP_FIELD_NUMBER: _ClassVar[int] + TX_ID_FIELD_NUMBER: _ClassVar[int] + plan_step: int + tx_id: int + def __init__(self, plan_step: _Optional[int] = ..., tx_id: _Optional[int] = ...) -> None: ... diff --git a/ydb/_grpc/v5/protos/ydb_common_pb2_grpc.py b/ydb/_grpc/v5/protos/ydb_common_pb2_grpc.py new file mode 100644 index 00000000..2daafffe --- /dev/null +++ b/ydb/_grpc/v5/protos/ydb_common_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/ydb/_grpc/v5/protos/ydb_coordination_pb2.py b/ydb/_grpc/v5/protos/ydb_coordination_pb2.py new file mode 100644 index 00000000..d561b470 --- /dev/null +++ b/ydb/_grpc/v5/protos/ydb_coordination_pb2.py @@ -0,0 +1,107 @@ +# -*- coding: utf-8 -*- +# flake8: noqa +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: protos/ydb_coordination.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from ydb._grpc.v5.protos import ydb_operation_pb2 as protos_dot_ydb__operation__pb2 +from ydb._grpc.v5.protos import ydb_status_codes_pb2 as protos_dot_ydb__status__codes__pb2 +from ydb._grpc.v5.protos import ydb_issue_message_pb2 as protos_dot_ydb__issue__message__pb2 +from ydb._grpc.v5.protos import ydb_scheme_pb2 as protos_dot_ydb__scheme__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1dprotos/ydb_coordination.proto\x12\x10Ydb.Coordination\x1a\x1aprotos/ydb_operation.proto\x1a\x1dprotos/ydb_status_codes.proto\x1a\x1eprotos/ydb_issue_message.proto\x1a\x17protos/ydb_scheme.proto\"\r\n\x0bUnsupported\"\xb2\x02\n\x06\x43onfig\x12\x0c\n\x04path\x18\x01 \x01(\t\x12 \n\x18self_check_period_millis\x18\x02 \x01(\r\x12#\n\x1bsession_grace_period_millis\x18\x03 \x01(\r\x12@\n\x15read_consistency_mode\x18\x04 \x01(\x0e\x32!.Ydb.Coordination.ConsistencyMode\x12\x42\n\x17\x61ttach_consistency_mode\x18\x05 \x01(\x0e\x32!.Ydb.Coordination.ConsistencyMode\x12M\n\x1arate_limiter_counters_mode\x18\x06 \x01(\x0e\x32).Ydb.Coordination.RateLimiterCountersMode\"g\n\x12SessionDescription\x12\x12\n\nsession_id\x18\x01 \x01(\x04\x12\x16\n\x0etimeout_millis\x18\x02 \x01(\x04\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12\x10\n\x08\x61ttached\x18\x04 \x01(\x08\"m\n\x10SemaphoreSession\x12\x10\n\x08order_id\x18\x05 \x01(\x04\x12\x12\n\nsession_id\x18\x01 \x01(\x04\x12\x16\n\x0etimeout_millis\x18\x02 \x01(\x04\x12\r\n\x05\x63ount\x18\x03 \x01(\x04\x12\x0c\n\x04\x64\x61ta\x18\x04 \x01(\x0c\"\xcc\x01\n\x14SemaphoreDescription\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0c\n\x04\x64\x61ta\x18\x02 \x01(\x0c\x12\r\n\x05\x63ount\x18\x07 \x01(\x04\x12\r\n\x05limit\x18\x03 \x01(\x04\x12\x11\n\tephemeral\x18\x04 \x01(\x08\x12\x32\n\x06owners\x18\x05 \x03(\x0b\x32\".Ydb.Coordination.SemaphoreSession\x12\x33\n\x07waiters\x18\x06 \x03(\x0b\x32\".Ydb.Coordination.SemaphoreSession\"\xd1\r\n\x0eSessionRequest\x12\x39\n\x04ping\x18\x01 \x01(\x0b\x32).Ydb.Coordination.SessionRequest.PingPongH\x00\x12\x39\n\x04pong\x18\x02 \x01(\x0b\x32).Ydb.Coordination.SessionRequest.PingPongH\x00\x12\x46\n\rsession_start\x18\x03 \x01(\x0b\x32-.Ydb.Coordination.SessionRequest.SessionStartH\x00\x12\x44\n\x0csession_stop\x18\x04 \x01(\x0b\x32,.Ydb.Coordination.SessionRequest.SessionStopH\x00\x12\x36\n\runsupported_5\x18\x05 \x01(\x0b\x32\x1d.Ydb.Coordination.UnsupportedH\x00\x12\x36\n\runsupported_6\x18\x06 \x01(\x0b\x32\x1d.Ydb.Coordination.UnsupportedH\x00\x12N\n\x11\x61\x63quire_semaphore\x18\x07 \x01(\x0b\x32\x31.Ydb.Coordination.SessionRequest.AcquireSemaphoreH\x00\x12N\n\x11release_semaphore\x18\x08 \x01(\x0b\x32\x31.Ydb.Coordination.SessionRequest.ReleaseSemaphoreH\x00\x12P\n\x12\x64\x65scribe_semaphore\x18\t \x01(\x0b\x32\x32.Ydb.Coordination.SessionRequest.DescribeSemaphoreH\x00\x12L\n\x10\x63reate_semaphore\x18\n \x01(\x0b\x32\x30.Ydb.Coordination.SessionRequest.CreateSemaphoreH\x00\x12L\n\x10update_semaphore\x18\x0b \x01(\x0b\x32\x30.Ydb.Coordination.SessionRequest.UpdateSemaphoreH\x00\x12L\n\x10\x64\x65lete_semaphore\x18\x0c \x01(\x0b\x32\x30.Ydb.Coordination.SessionRequest.DeleteSemaphoreH\x00\x12\x37\n\x0eunsupported_13\x18\r \x01(\x0b\x32\x1d.Ydb.Coordination.UnsupportedH\x00\x12\x37\n\x0eunsupported_14\x18\x0e \x01(\x0b\x32\x1d.Ydb.Coordination.UnsupportedH\x00\x12\x37\n\x0eunsupported_15\x18\x0f \x01(\x0b\x32\x1d.Ydb.Coordination.UnsupportedH\x00\x1a\x1a\n\x08PingPong\x12\x0e\n\x06opaque\x18\x01 \x01(\x04\x1a\x85\x01\n\x0cSessionStart\x12\x0c\n\x04path\x18\x01 \x01(\t\x12\x12\n\nsession_id\x18\x02 \x01(\x04\x12\x16\n\x0etimeout_millis\x18\x03 \x01(\x04\x12\x13\n\x0b\x64\x65scription\x18\x04 \x01(\t\x12\x0e\n\x06seq_no\x18\x05 \x01(\x04\x12\x16\n\x0eprotection_key\x18\x06 \x01(\x0c\x1a\r\n\x0bSessionStop\x1ax\n\x10\x41\x63quireSemaphore\x12\x0e\n\x06req_id\x18\x01 \x01(\x04\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x16\n\x0etimeout_millis\x18\x03 \x01(\x04\x12\r\n\x05\x63ount\x18\x04 \x01(\x04\x12\x0c\n\x04\x64\x61ta\x18\x05 \x01(\x0c\x12\x11\n\tephemeral\x18\x06 \x01(\x08\x1a\x30\n\x10ReleaseSemaphore\x12\x0e\n\x06req_id\x18\x01 \x01(\x04\x12\x0c\n\x04name\x18\x02 \x01(\t\x1a\x8c\x01\n\x11\x44\x65scribeSemaphore\x12\x0e\n\x06req_id\x18\x01 \x01(\x04\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x16\n\x0einclude_owners\x18\x03 \x01(\x08\x12\x17\n\x0finclude_waiters\x18\x04 \x01(\x08\x12\x12\n\nwatch_data\x18\x05 \x01(\x08\x12\x14\n\x0cwatch_owners\x18\x06 \x01(\x08\x1aL\n\x0f\x43reateSemaphore\x12\x0e\n\x06req_id\x18\x01 \x01(\x04\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\r\n\x05limit\x18\x03 \x01(\x04\x12\x0c\n\x04\x64\x61ta\x18\x04 \x01(\x0c\x1a=\n\x0fUpdateSemaphore\x12\x0e\n\x06req_id\x18\x01 \x01(\x04\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x0c\n\x04\x64\x61ta\x18\x03 \x01(\x0c\x1a>\n\x0f\x44\x65leteSemaphore\x12\x0e\n\x06req_id\x18\x01 \x01(\x04\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\r\n\x05\x66orce\x18\x03 \x01(\x08\x42\t\n\x07request\"\xd3\x14\n\x0fSessionResponse\x12:\n\x04ping\x18\x01 \x01(\x0b\x32*.Ydb.Coordination.SessionResponse.PingPongH\x00\x12:\n\x04pong\x18\x02 \x01(\x0b\x32*.Ydb.Coordination.SessionResponse.PingPongH\x00\x12<\n\x07\x66\x61ilure\x18\x03 \x01(\x0b\x32).Ydb.Coordination.SessionResponse.FailureH\x00\x12K\n\x0fsession_started\x18\x04 \x01(\x0b\x32\x30.Ydb.Coordination.SessionResponse.SessionStartedH\x00\x12K\n\x0fsession_stopped\x18\x05 \x01(\x0b\x32\x30.Ydb.Coordination.SessionResponse.SessionStoppedH\x00\x12\x36\n\runsupported_6\x18\x06 \x01(\x0b\x32\x1d.Ydb.Coordination.UnsupportedH\x00\x12\x36\n\runsupported_7\x18\x07 \x01(\x0b\x32\x1d.Ydb.Coordination.UnsupportedH\x00\x12^\n\x19\x61\x63quire_semaphore_pending\x18\x08 \x01(\x0b\x32\x39.Ydb.Coordination.SessionResponse.AcquireSemaphorePendingH\x00\x12\\\n\x18\x61\x63quire_semaphore_result\x18\t \x01(\x0b\x32\x38.Ydb.Coordination.SessionResponse.AcquireSemaphoreResultH\x00\x12\\\n\x18release_semaphore_result\x18\n \x01(\x0b\x32\x38.Ydb.Coordination.SessionResponse.ReleaseSemaphoreResultH\x00\x12^\n\x19\x64\x65scribe_semaphore_result\x18\x0b \x01(\x0b\x32\x39.Ydb.Coordination.SessionResponse.DescribeSemaphoreResultH\x00\x12`\n\x1a\x64\x65scribe_semaphore_changed\x18\x0c \x01(\x0b\x32:.Ydb.Coordination.SessionResponse.DescribeSemaphoreChangedH\x00\x12Z\n\x17\x63reate_semaphore_result\x18\r \x01(\x0b\x32\x37.Ydb.Coordination.SessionResponse.CreateSemaphoreResultH\x00\x12Z\n\x17update_semaphore_result\x18\x0e \x01(\x0b\x32\x37.Ydb.Coordination.SessionResponse.UpdateSemaphoreResultH\x00\x12Z\n\x17\x64\x65lete_semaphore_result\x18\x0f \x01(\x0b\x32\x37.Ydb.Coordination.SessionResponse.DeleteSemaphoreResultH\x00\x12\x37\n\x0eunsupported_16\x18\x10 \x01(\x0b\x32\x1d.Ydb.Coordination.UnsupportedH\x00\x12\x37\n\x0eunsupported_17\x18\x11 \x01(\x0b\x32\x1d.Ydb.Coordination.UnsupportedH\x00\x12\x37\n\x0eunsupported_18\x18\x12 \x01(\x0b\x32\x1d.Ydb.Coordination.UnsupportedH\x00\x1a\x1a\n\x08PingPong\x12\x0e\n\x06opaque\x18\x01 \x01(\x04\x1a]\n\x07\x46\x61ilure\x12)\n\x06status\x18\x01 \x01(\x0e\x32\x19.Ydb.StatusIds.StatusCode\x12\'\n\x06issues\x18\x02 \x03(\x0b\x32\x17.Ydb.Issue.IssueMessage\x1a<\n\x0eSessionStarted\x12\x12\n\nsession_id\x18\x01 \x01(\x04\x12\x16\n\x0etimeout_millis\x18\x02 \x01(\x04\x1a$\n\x0eSessionStopped\x12\x12\n\nsession_id\x18\x01 \x01(\x04\x1a)\n\x17\x41\x63quireSemaphorePending\x12\x0e\n\x06req_id\x18\x01 \x01(\x04\x1a\x8e\x01\n\x16\x41\x63quireSemaphoreResult\x12\x0e\n\x06req_id\x18\x01 \x01(\x04\x12)\n\x06status\x18\x02 \x01(\x0e\x32\x19.Ydb.StatusIds.StatusCode\x12\'\n\x06issues\x18\x03 \x03(\x0b\x32\x17.Ydb.Issue.IssueMessage\x12\x10\n\x08\x61\x63quired\x18\x04 \x01(\x08\x1a\x8e\x01\n\x16ReleaseSemaphoreResult\x12\x0e\n\x06req_id\x18\x01 \x01(\x04\x12)\n\x06status\x18\x02 \x01(\x0e\x32\x19.Ydb.StatusIds.StatusCode\x12\'\n\x06issues\x18\x03 \x03(\x0b\x32\x17.Ydb.Issue.IssueMessage\x12\x10\n\x08released\x18\x04 \x01(\x08\x1a\xd9\x01\n\x17\x44\x65scribeSemaphoreResult\x12\x0e\n\x06req_id\x18\x01 \x01(\x04\x12)\n\x06status\x18\x02 \x01(\x0e\x32\x19.Ydb.StatusIds.StatusCode\x12\'\n\x06issues\x18\x03 \x03(\x0b\x32\x17.Ydb.Issue.IssueMessage\x12\x45\n\x15semaphore_description\x18\x04 \x01(\x0b\x32&.Ydb.Coordination.SemaphoreDescription\x12\x13\n\x0bwatch_added\x18\x05 \x01(\x08\x1aX\n\x18\x44\x65scribeSemaphoreChanged\x12\x0e\n\x06req_id\x18\x01 \x01(\x04\x12\x14\n\x0c\x64\x61ta_changed\x18\x02 \x01(\x08\x12\x16\n\x0eowners_changed\x18\x03 \x01(\x08\x1a{\n\x15\x43reateSemaphoreResult\x12\x0e\n\x06req_id\x18\x01 \x01(\x04\x12)\n\x06status\x18\x02 \x01(\x0e\x32\x19.Ydb.StatusIds.StatusCode\x12\'\n\x06issues\x18\x03 \x03(\x0b\x32\x17.Ydb.Issue.IssueMessage\x1a{\n\x15UpdateSemaphoreResult\x12\x0e\n\x06req_id\x18\x01 \x01(\x04\x12)\n\x06status\x18\x02 \x01(\x0e\x32\x19.Ydb.StatusIds.StatusCode\x12\'\n\x06issues\x18\x03 \x03(\x0b\x32\x17.Ydb.Issue.IssueMessage\x1a{\n\x15\x44\x65leteSemaphoreResult\x12\x0e\n\x06req_id\x18\x01 \x01(\x04\x12)\n\x06status\x18\x02 \x01(\x0e\x32\x19.Ydb.StatusIds.StatusCode\x12\'\n\x06issues\x18\x03 \x03(\x0b\x32\x17.Ydb.Issue.IssueMessageB\n\n\x08response\"\x86\x01\n\x11\x43reateNodeRequest\x12\x0c\n\x04path\x18\x01 \x01(\t\x12(\n\x06\x63onfig\x18\x02 \x01(\x0b\x32\x18.Ydb.Coordination.Config\x12\x39\n\x10operation_params\x18\x03 \x01(\x0b\x32\x1f.Ydb.Operations.OperationParams\"B\n\x12\x43reateNodeResponse\x12,\n\toperation\x18\x01 \x01(\x0b\x32\x19.Ydb.Operations.Operation\"\x85\x01\n\x10\x41lterNodeRequest\x12\x0c\n\x04path\x18\x01 \x01(\t\x12(\n\x06\x63onfig\x18\x02 \x01(\x0b\x32\x18.Ydb.Coordination.Config\x12\x39\n\x10operation_params\x18\x03 \x01(\x0b\x32\x1f.Ydb.Operations.OperationParams\"A\n\x11\x41lterNodeResponse\x12,\n\toperation\x18\x01 \x01(\x0b\x32\x19.Ydb.Operations.Operation\"Z\n\x0f\x44ropNodeRequest\x12\x0c\n\x04path\x18\x01 \x01(\t\x12\x39\n\x10operation_params\x18\x02 \x01(\x0b\x32\x1f.Ydb.Operations.OperationParams\"@\n\x10\x44ropNodeResponse\x12,\n\toperation\x18\x01 \x01(\x0b\x32\x19.Ydb.Operations.Operation\"^\n\x13\x44\x65scribeNodeRequest\x12\x0c\n\x04path\x18\x01 \x01(\t\x12\x39\n\x10operation_params\x18\x02 \x01(\x0b\x32\x1f.Ydb.Operations.OperationParams\"D\n\x14\x44\x65scribeNodeResponse\x12,\n\toperation\x18\x01 \x01(\x0b\x32\x19.Ydb.Operations.Operation\"_\n\x12\x44\x65scribeNodeResult\x12\x1f\n\x04self\x18\x01 \x01(\x0b\x32\x11.Ydb.Scheme.Entry\x12(\n\x06\x63onfig\x18\x02 \x01(\x0b\x32\x18.Ydb.Coordination.Config*h\n\x0f\x43onsistencyMode\x12\x1a\n\x16\x43ONSISTENCY_MODE_UNSET\x10\x00\x12\x1b\n\x17\x43ONSISTENCY_MODE_STRICT\x10\x01\x12\x1c\n\x18\x43ONSISTENCY_MODE_RELAXED\x10\x02*\x93\x01\n\x17RateLimiterCountersMode\x12$\n RATE_LIMITER_COUNTERS_MODE_UNSET\x10\x00\x12)\n%RATE_LIMITER_COUNTERS_MODE_AGGREGATED\x10\x01\x12\'\n#RATE_LIMITER_COUNTERS_MODE_DETAILED\x10\x02\x42w\n\x1btech.ydb.proto.coordinationB\x12\x43oordinationProtosP\x01Z?github.com/ydb-platform/ydb-go-genproto/protos/Ydb_Coordination\xf8\x01\x01\x62\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'protos.ydb_coordination_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\033tech.ydb.proto.coordinationB\022CoordinationProtosP\001Z?github.com/ydb-platform/ydb-go-genproto/protos/Ydb_Coordination\370\001\001' + _CONSISTENCYMODE._serialized_start=6137 + _CONSISTENCYMODE._serialized_end=6241 + _RATELIMITERCOUNTERSMODE._serialized_start=6244 + _RATELIMITERCOUNTERSMODE._serialized_end=6391 + _UNSUPPORTED._serialized_start=167 + _UNSUPPORTED._serialized_end=180 + _CONFIG._serialized_start=183 + _CONFIG._serialized_end=489 + _SESSIONDESCRIPTION._serialized_start=491 + _SESSIONDESCRIPTION._serialized_end=594 + _SEMAPHORESESSION._serialized_start=596 + _SEMAPHORESESSION._serialized_end=705 + _SEMAPHOREDESCRIPTION._serialized_start=708 + _SEMAPHOREDESCRIPTION._serialized_end=912 + _SESSIONREQUEST._serialized_start=915 + _SESSIONREQUEST._serialized_end=2660 + _SESSIONREQUEST_PINGPONG._serialized_start=1952 + _SESSIONREQUEST_PINGPONG._serialized_end=1978 + _SESSIONREQUEST_SESSIONSTART._serialized_start=1981 + _SESSIONREQUEST_SESSIONSTART._serialized_end=2114 + _SESSIONREQUEST_SESSIONSTOP._serialized_start=2116 + _SESSIONREQUEST_SESSIONSTOP._serialized_end=2129 + _SESSIONREQUEST_ACQUIRESEMAPHORE._serialized_start=2131 + _SESSIONREQUEST_ACQUIRESEMAPHORE._serialized_end=2251 + _SESSIONREQUEST_RELEASESEMAPHORE._serialized_start=2253 + _SESSIONREQUEST_RELEASESEMAPHORE._serialized_end=2301 + _SESSIONREQUEST_DESCRIBESEMAPHORE._serialized_start=2304 + _SESSIONREQUEST_DESCRIBESEMAPHORE._serialized_end=2444 + _SESSIONREQUEST_CREATESEMAPHORE._serialized_start=2446 + _SESSIONREQUEST_CREATESEMAPHORE._serialized_end=2522 + _SESSIONREQUEST_UPDATESEMAPHORE._serialized_start=2524 + _SESSIONREQUEST_UPDATESEMAPHORE._serialized_end=2585 + _SESSIONREQUEST_DELETESEMAPHORE._serialized_start=2587 + _SESSIONREQUEST_DELETESEMAPHORE._serialized_end=2649 + _SESSIONRESPONSE._serialized_start=2663 + _SESSIONRESPONSE._serialized_end=5306 + _SESSIONRESPONSE_PINGPONG._serialized_start=1952 + _SESSIONRESPONSE_PINGPONG._serialized_end=1978 + _SESSIONRESPONSE_FAILURE._serialized_start=4083 + _SESSIONRESPONSE_FAILURE._serialized_end=4176 + _SESSIONRESPONSE_SESSIONSTARTED._serialized_start=4178 + _SESSIONRESPONSE_SESSIONSTARTED._serialized_end=4238 + _SESSIONRESPONSE_SESSIONSTOPPED._serialized_start=4240 + _SESSIONRESPONSE_SESSIONSTOPPED._serialized_end=4276 + _SESSIONRESPONSE_ACQUIRESEMAPHOREPENDING._serialized_start=4278 + _SESSIONRESPONSE_ACQUIRESEMAPHOREPENDING._serialized_end=4319 + _SESSIONRESPONSE_ACQUIRESEMAPHORERESULT._serialized_start=4322 + _SESSIONRESPONSE_ACQUIRESEMAPHORERESULT._serialized_end=4464 + _SESSIONRESPONSE_RELEASESEMAPHORERESULT._serialized_start=4467 + _SESSIONRESPONSE_RELEASESEMAPHORERESULT._serialized_end=4609 + _SESSIONRESPONSE_DESCRIBESEMAPHORERESULT._serialized_start=4612 + _SESSIONRESPONSE_DESCRIBESEMAPHORERESULT._serialized_end=4829 + _SESSIONRESPONSE_DESCRIBESEMAPHORECHANGED._serialized_start=4831 + _SESSIONRESPONSE_DESCRIBESEMAPHORECHANGED._serialized_end=4919 + _SESSIONRESPONSE_CREATESEMAPHORERESULT._serialized_start=4921 + _SESSIONRESPONSE_CREATESEMAPHORERESULT._serialized_end=5044 + _SESSIONRESPONSE_UPDATESEMAPHORERESULT._serialized_start=5046 + _SESSIONRESPONSE_UPDATESEMAPHORERESULT._serialized_end=5169 + _SESSIONRESPONSE_DELETESEMAPHORERESULT._serialized_start=5171 + _SESSIONRESPONSE_DELETESEMAPHORERESULT._serialized_end=5294 + _CREATENODEREQUEST._serialized_start=5309 + _CREATENODEREQUEST._serialized_end=5443 + _CREATENODERESPONSE._serialized_start=5445 + _CREATENODERESPONSE._serialized_end=5511 + _ALTERNODEREQUEST._serialized_start=5514 + _ALTERNODEREQUEST._serialized_end=5647 + _ALTERNODERESPONSE._serialized_start=5649 + _ALTERNODERESPONSE._serialized_end=5714 + _DROPNODEREQUEST._serialized_start=5716 + _DROPNODEREQUEST._serialized_end=5806 + _DROPNODERESPONSE._serialized_start=5808 + _DROPNODERESPONSE._serialized_end=5872 + _DESCRIBENODEREQUEST._serialized_start=5874 + _DESCRIBENODEREQUEST._serialized_end=5968 + _DESCRIBENODERESPONSE._serialized_start=5970 + _DESCRIBENODERESPONSE._serialized_end=6038 + _DESCRIBENODERESULT._serialized_start=6040 + _DESCRIBENODERESULT._serialized_end=6135 +# @@protoc_insertion_point(module_scope) diff --git a/ydb/_grpc/v5/protos/ydb_coordination_pb2.pyi b/ydb/_grpc/v5/protos/ydb_coordination_pb2.pyi new file mode 100644 index 00000000..fd6ab71e --- /dev/null +++ b/ydb/_grpc/v5/protos/ydb_coordination_pb2.pyi @@ -0,0 +1,418 @@ +from protos import ydb_operation_pb2 as _ydb_operation_pb2 +from protos import ydb_status_codes_pb2 as _ydb_status_codes_pb2 +from protos import ydb_issue_message_pb2 as _ydb_issue_message_pb2 +from protos import ydb_scheme_pb2 as _ydb_scheme_pb2 +from google.protobuf.internal import containers as _containers +from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union + +CONSISTENCY_MODE_RELAXED: ConsistencyMode +CONSISTENCY_MODE_STRICT: ConsistencyMode +CONSISTENCY_MODE_UNSET: ConsistencyMode +DESCRIPTOR: _descriptor.FileDescriptor +RATE_LIMITER_COUNTERS_MODE_AGGREGATED: RateLimiterCountersMode +RATE_LIMITER_COUNTERS_MODE_DETAILED: RateLimiterCountersMode +RATE_LIMITER_COUNTERS_MODE_UNSET: RateLimiterCountersMode + +class AlterNodeRequest(_message.Message): + __slots__ = ["config", "operation_params", "path"] + CONFIG_FIELD_NUMBER: _ClassVar[int] + OPERATION_PARAMS_FIELD_NUMBER: _ClassVar[int] + PATH_FIELD_NUMBER: _ClassVar[int] + config: Config + operation_params: _ydb_operation_pb2.OperationParams + path: str + def __init__(self, path: _Optional[str] = ..., config: _Optional[_Union[Config, _Mapping]] = ..., operation_params: _Optional[_Union[_ydb_operation_pb2.OperationParams, _Mapping]] = ...) -> None: ... + +class AlterNodeResponse(_message.Message): + __slots__ = ["operation"] + OPERATION_FIELD_NUMBER: _ClassVar[int] + operation: _ydb_operation_pb2.Operation + def __init__(self, operation: _Optional[_Union[_ydb_operation_pb2.Operation, _Mapping]] = ...) -> None: ... + +class Config(_message.Message): + __slots__ = ["attach_consistency_mode", "path", "rate_limiter_counters_mode", "read_consistency_mode", "self_check_period_millis", "session_grace_period_millis"] + ATTACH_CONSISTENCY_MODE_FIELD_NUMBER: _ClassVar[int] + PATH_FIELD_NUMBER: _ClassVar[int] + RATE_LIMITER_COUNTERS_MODE_FIELD_NUMBER: _ClassVar[int] + READ_CONSISTENCY_MODE_FIELD_NUMBER: _ClassVar[int] + SELF_CHECK_PERIOD_MILLIS_FIELD_NUMBER: _ClassVar[int] + SESSION_GRACE_PERIOD_MILLIS_FIELD_NUMBER: _ClassVar[int] + attach_consistency_mode: ConsistencyMode + path: str + rate_limiter_counters_mode: RateLimiterCountersMode + read_consistency_mode: ConsistencyMode + self_check_period_millis: int + session_grace_period_millis: int + def __init__(self, path: _Optional[str] = ..., self_check_period_millis: _Optional[int] = ..., session_grace_period_millis: _Optional[int] = ..., read_consistency_mode: _Optional[_Union[ConsistencyMode, str]] = ..., attach_consistency_mode: _Optional[_Union[ConsistencyMode, str]] = ..., rate_limiter_counters_mode: _Optional[_Union[RateLimiterCountersMode, str]] = ...) -> None: ... + +class CreateNodeRequest(_message.Message): + __slots__ = ["config", "operation_params", "path"] + CONFIG_FIELD_NUMBER: _ClassVar[int] + OPERATION_PARAMS_FIELD_NUMBER: _ClassVar[int] + PATH_FIELD_NUMBER: _ClassVar[int] + config: Config + operation_params: _ydb_operation_pb2.OperationParams + path: str + def __init__(self, path: _Optional[str] = ..., config: _Optional[_Union[Config, _Mapping]] = ..., operation_params: _Optional[_Union[_ydb_operation_pb2.OperationParams, _Mapping]] = ...) -> None: ... + +class CreateNodeResponse(_message.Message): + __slots__ = ["operation"] + OPERATION_FIELD_NUMBER: _ClassVar[int] + operation: _ydb_operation_pb2.Operation + def __init__(self, operation: _Optional[_Union[_ydb_operation_pb2.Operation, _Mapping]] = ...) -> None: ... + +class DescribeNodeRequest(_message.Message): + __slots__ = ["operation_params", "path"] + OPERATION_PARAMS_FIELD_NUMBER: _ClassVar[int] + PATH_FIELD_NUMBER: _ClassVar[int] + operation_params: _ydb_operation_pb2.OperationParams + path: str + def __init__(self, path: _Optional[str] = ..., operation_params: _Optional[_Union[_ydb_operation_pb2.OperationParams, _Mapping]] = ...) -> None: ... + +class DescribeNodeResponse(_message.Message): + __slots__ = ["operation"] + OPERATION_FIELD_NUMBER: _ClassVar[int] + operation: _ydb_operation_pb2.Operation + def __init__(self, operation: _Optional[_Union[_ydb_operation_pb2.Operation, _Mapping]] = ...) -> None: ... + +class DescribeNodeResult(_message.Message): + __slots__ = ["config", "self"] + CONFIG_FIELD_NUMBER: _ClassVar[int] + SELF_FIELD_NUMBER: _ClassVar[int] + config: Config + self: _ydb_scheme_pb2.Entry + def __init__(self, self_: _Optional[_Union[_ydb_scheme_pb2.Entry, _Mapping]] = ..., config: _Optional[_Union[Config, _Mapping]] = ...) -> None: ... + +class DropNodeRequest(_message.Message): + __slots__ = ["operation_params", "path"] + OPERATION_PARAMS_FIELD_NUMBER: _ClassVar[int] + PATH_FIELD_NUMBER: _ClassVar[int] + operation_params: _ydb_operation_pb2.OperationParams + path: str + def __init__(self, path: _Optional[str] = ..., operation_params: _Optional[_Union[_ydb_operation_pb2.OperationParams, _Mapping]] = ...) -> None: ... + +class DropNodeResponse(_message.Message): + __slots__ = ["operation"] + OPERATION_FIELD_NUMBER: _ClassVar[int] + operation: _ydb_operation_pb2.Operation + def __init__(self, operation: _Optional[_Union[_ydb_operation_pb2.Operation, _Mapping]] = ...) -> None: ... + +class SemaphoreDescription(_message.Message): + __slots__ = ["count", "data", "ephemeral", "limit", "name", "owners", "waiters"] + COUNT_FIELD_NUMBER: _ClassVar[int] + DATA_FIELD_NUMBER: _ClassVar[int] + EPHEMERAL_FIELD_NUMBER: _ClassVar[int] + LIMIT_FIELD_NUMBER: _ClassVar[int] + NAME_FIELD_NUMBER: _ClassVar[int] + OWNERS_FIELD_NUMBER: _ClassVar[int] + WAITERS_FIELD_NUMBER: _ClassVar[int] + count: int + data: bytes + ephemeral: bool + limit: int + name: str + owners: _containers.RepeatedCompositeFieldContainer[SemaphoreSession] + waiters: _containers.RepeatedCompositeFieldContainer[SemaphoreSession] + def __init__(self, name: _Optional[str] = ..., data: _Optional[bytes] = ..., count: _Optional[int] = ..., limit: _Optional[int] = ..., ephemeral: bool = ..., owners: _Optional[_Iterable[_Union[SemaphoreSession, _Mapping]]] = ..., waiters: _Optional[_Iterable[_Union[SemaphoreSession, _Mapping]]] = ...) -> None: ... + +class SemaphoreSession(_message.Message): + __slots__ = ["count", "data", "order_id", "session_id", "timeout_millis"] + COUNT_FIELD_NUMBER: _ClassVar[int] + DATA_FIELD_NUMBER: _ClassVar[int] + ORDER_ID_FIELD_NUMBER: _ClassVar[int] + SESSION_ID_FIELD_NUMBER: _ClassVar[int] + TIMEOUT_MILLIS_FIELD_NUMBER: _ClassVar[int] + count: int + data: bytes + order_id: int + session_id: int + timeout_millis: int + def __init__(self, order_id: _Optional[int] = ..., session_id: _Optional[int] = ..., timeout_millis: _Optional[int] = ..., count: _Optional[int] = ..., data: _Optional[bytes] = ...) -> None: ... + +class SessionDescription(_message.Message): + __slots__ = ["attached", "description", "session_id", "timeout_millis"] + ATTACHED_FIELD_NUMBER: _ClassVar[int] + DESCRIPTION_FIELD_NUMBER: _ClassVar[int] + SESSION_ID_FIELD_NUMBER: _ClassVar[int] + TIMEOUT_MILLIS_FIELD_NUMBER: _ClassVar[int] + attached: bool + description: str + session_id: int + timeout_millis: int + def __init__(self, session_id: _Optional[int] = ..., timeout_millis: _Optional[int] = ..., description: _Optional[str] = ..., attached: bool = ...) -> None: ... + +class SessionRequest(_message.Message): + __slots__ = ["acquire_semaphore", "create_semaphore", "delete_semaphore", "describe_semaphore", "ping", "pong", "release_semaphore", "session_start", "session_stop", "unsupported_13", "unsupported_14", "unsupported_15", "unsupported_5", "unsupported_6", "update_semaphore"] + class AcquireSemaphore(_message.Message): + __slots__ = ["count", "data", "ephemeral", "name", "req_id", "timeout_millis"] + COUNT_FIELD_NUMBER: _ClassVar[int] + DATA_FIELD_NUMBER: _ClassVar[int] + EPHEMERAL_FIELD_NUMBER: _ClassVar[int] + NAME_FIELD_NUMBER: _ClassVar[int] + REQ_ID_FIELD_NUMBER: _ClassVar[int] + TIMEOUT_MILLIS_FIELD_NUMBER: _ClassVar[int] + count: int + data: bytes + ephemeral: bool + name: str + req_id: int + timeout_millis: int + def __init__(self, req_id: _Optional[int] = ..., name: _Optional[str] = ..., timeout_millis: _Optional[int] = ..., count: _Optional[int] = ..., data: _Optional[bytes] = ..., ephemeral: bool = ...) -> None: ... + class CreateSemaphore(_message.Message): + __slots__ = ["data", "limit", "name", "req_id"] + DATA_FIELD_NUMBER: _ClassVar[int] + LIMIT_FIELD_NUMBER: _ClassVar[int] + NAME_FIELD_NUMBER: _ClassVar[int] + REQ_ID_FIELD_NUMBER: _ClassVar[int] + data: bytes + limit: int + name: str + req_id: int + def __init__(self, req_id: _Optional[int] = ..., name: _Optional[str] = ..., limit: _Optional[int] = ..., data: _Optional[bytes] = ...) -> None: ... + class DeleteSemaphore(_message.Message): + __slots__ = ["force", "name", "req_id"] + FORCE_FIELD_NUMBER: _ClassVar[int] + NAME_FIELD_NUMBER: _ClassVar[int] + REQ_ID_FIELD_NUMBER: _ClassVar[int] + force: bool + name: str + req_id: int + def __init__(self, req_id: _Optional[int] = ..., name: _Optional[str] = ..., force: bool = ...) -> None: ... + class DescribeSemaphore(_message.Message): + __slots__ = ["include_owners", "include_waiters", "name", "req_id", "watch_data", "watch_owners"] + INCLUDE_OWNERS_FIELD_NUMBER: _ClassVar[int] + INCLUDE_WAITERS_FIELD_NUMBER: _ClassVar[int] + NAME_FIELD_NUMBER: _ClassVar[int] + REQ_ID_FIELD_NUMBER: _ClassVar[int] + WATCH_DATA_FIELD_NUMBER: _ClassVar[int] + WATCH_OWNERS_FIELD_NUMBER: _ClassVar[int] + include_owners: bool + include_waiters: bool + name: str + req_id: int + watch_data: bool + watch_owners: bool + def __init__(self, req_id: _Optional[int] = ..., name: _Optional[str] = ..., include_owners: bool = ..., include_waiters: bool = ..., watch_data: bool = ..., watch_owners: bool = ...) -> None: ... + class PingPong(_message.Message): + __slots__ = ["opaque"] + OPAQUE_FIELD_NUMBER: _ClassVar[int] + opaque: int + def __init__(self, opaque: _Optional[int] = ...) -> None: ... + class ReleaseSemaphore(_message.Message): + __slots__ = ["name", "req_id"] + NAME_FIELD_NUMBER: _ClassVar[int] + REQ_ID_FIELD_NUMBER: _ClassVar[int] + name: str + req_id: int + def __init__(self, req_id: _Optional[int] = ..., name: _Optional[str] = ...) -> None: ... + class SessionStart(_message.Message): + __slots__ = ["description", "path", "protection_key", "seq_no", "session_id", "timeout_millis"] + DESCRIPTION_FIELD_NUMBER: _ClassVar[int] + PATH_FIELD_NUMBER: _ClassVar[int] + PROTECTION_KEY_FIELD_NUMBER: _ClassVar[int] + SEQ_NO_FIELD_NUMBER: _ClassVar[int] + SESSION_ID_FIELD_NUMBER: _ClassVar[int] + TIMEOUT_MILLIS_FIELD_NUMBER: _ClassVar[int] + description: str + path: str + protection_key: bytes + seq_no: int + session_id: int + timeout_millis: int + def __init__(self, path: _Optional[str] = ..., session_id: _Optional[int] = ..., timeout_millis: _Optional[int] = ..., description: _Optional[str] = ..., seq_no: _Optional[int] = ..., protection_key: _Optional[bytes] = ...) -> None: ... + class SessionStop(_message.Message): + __slots__ = [] + def __init__(self) -> None: ... + class UpdateSemaphore(_message.Message): + __slots__ = ["data", "name", "req_id"] + DATA_FIELD_NUMBER: _ClassVar[int] + NAME_FIELD_NUMBER: _ClassVar[int] + REQ_ID_FIELD_NUMBER: _ClassVar[int] + data: bytes + name: str + req_id: int + def __init__(self, req_id: _Optional[int] = ..., name: _Optional[str] = ..., data: _Optional[bytes] = ...) -> None: ... + ACQUIRE_SEMAPHORE_FIELD_NUMBER: _ClassVar[int] + CREATE_SEMAPHORE_FIELD_NUMBER: _ClassVar[int] + DELETE_SEMAPHORE_FIELD_NUMBER: _ClassVar[int] + DESCRIBE_SEMAPHORE_FIELD_NUMBER: _ClassVar[int] + PING_FIELD_NUMBER: _ClassVar[int] + PONG_FIELD_NUMBER: _ClassVar[int] + RELEASE_SEMAPHORE_FIELD_NUMBER: _ClassVar[int] + SESSION_START_FIELD_NUMBER: _ClassVar[int] + SESSION_STOP_FIELD_NUMBER: _ClassVar[int] + UNSUPPORTED_13_FIELD_NUMBER: _ClassVar[int] + UNSUPPORTED_14_FIELD_NUMBER: _ClassVar[int] + UNSUPPORTED_15_FIELD_NUMBER: _ClassVar[int] + UNSUPPORTED_5_FIELD_NUMBER: _ClassVar[int] + UNSUPPORTED_6_FIELD_NUMBER: _ClassVar[int] + UPDATE_SEMAPHORE_FIELD_NUMBER: _ClassVar[int] + acquire_semaphore: SessionRequest.AcquireSemaphore + create_semaphore: SessionRequest.CreateSemaphore + delete_semaphore: SessionRequest.DeleteSemaphore + describe_semaphore: SessionRequest.DescribeSemaphore + ping: SessionRequest.PingPong + pong: SessionRequest.PingPong + release_semaphore: SessionRequest.ReleaseSemaphore + session_start: SessionRequest.SessionStart + session_stop: SessionRequest.SessionStop + unsupported_13: Unsupported + unsupported_14: Unsupported + unsupported_15: Unsupported + unsupported_5: Unsupported + unsupported_6: Unsupported + update_semaphore: SessionRequest.UpdateSemaphore + def __init__(self, ping: _Optional[_Union[SessionRequest.PingPong, _Mapping]] = ..., pong: _Optional[_Union[SessionRequest.PingPong, _Mapping]] = ..., session_start: _Optional[_Union[SessionRequest.SessionStart, _Mapping]] = ..., session_stop: _Optional[_Union[SessionRequest.SessionStop, _Mapping]] = ..., unsupported_5: _Optional[_Union[Unsupported, _Mapping]] = ..., unsupported_6: _Optional[_Union[Unsupported, _Mapping]] = ..., acquire_semaphore: _Optional[_Union[SessionRequest.AcquireSemaphore, _Mapping]] = ..., release_semaphore: _Optional[_Union[SessionRequest.ReleaseSemaphore, _Mapping]] = ..., describe_semaphore: _Optional[_Union[SessionRequest.DescribeSemaphore, _Mapping]] = ..., create_semaphore: _Optional[_Union[SessionRequest.CreateSemaphore, _Mapping]] = ..., update_semaphore: _Optional[_Union[SessionRequest.UpdateSemaphore, _Mapping]] = ..., delete_semaphore: _Optional[_Union[SessionRequest.DeleteSemaphore, _Mapping]] = ..., unsupported_13: _Optional[_Union[Unsupported, _Mapping]] = ..., unsupported_14: _Optional[_Union[Unsupported, _Mapping]] = ..., unsupported_15: _Optional[_Union[Unsupported, _Mapping]] = ...) -> None: ... + +class SessionResponse(_message.Message): + __slots__ = ["acquire_semaphore_pending", "acquire_semaphore_result", "create_semaphore_result", "delete_semaphore_result", "describe_semaphore_changed", "describe_semaphore_result", "failure", "ping", "pong", "release_semaphore_result", "session_started", "session_stopped", "unsupported_16", "unsupported_17", "unsupported_18", "unsupported_6", "unsupported_7", "update_semaphore_result"] + class AcquireSemaphorePending(_message.Message): + __slots__ = ["req_id"] + REQ_ID_FIELD_NUMBER: _ClassVar[int] + req_id: int + def __init__(self, req_id: _Optional[int] = ...) -> None: ... + class AcquireSemaphoreResult(_message.Message): + __slots__ = ["acquired", "issues", "req_id", "status"] + ACQUIRED_FIELD_NUMBER: _ClassVar[int] + ISSUES_FIELD_NUMBER: _ClassVar[int] + REQ_ID_FIELD_NUMBER: _ClassVar[int] + STATUS_FIELD_NUMBER: _ClassVar[int] + acquired: bool + issues: _containers.RepeatedCompositeFieldContainer[_ydb_issue_message_pb2.IssueMessage] + req_id: int + status: _ydb_status_codes_pb2.StatusIds.StatusCode + def __init__(self, req_id: _Optional[int] = ..., status: _Optional[_Union[_ydb_status_codes_pb2.StatusIds.StatusCode, str]] = ..., issues: _Optional[_Iterable[_Union[_ydb_issue_message_pb2.IssueMessage, _Mapping]]] = ..., acquired: bool = ...) -> None: ... + class CreateSemaphoreResult(_message.Message): + __slots__ = ["issues", "req_id", "status"] + ISSUES_FIELD_NUMBER: _ClassVar[int] + REQ_ID_FIELD_NUMBER: _ClassVar[int] + STATUS_FIELD_NUMBER: _ClassVar[int] + issues: _containers.RepeatedCompositeFieldContainer[_ydb_issue_message_pb2.IssueMessage] + req_id: int + status: _ydb_status_codes_pb2.StatusIds.StatusCode + def __init__(self, req_id: _Optional[int] = ..., status: _Optional[_Union[_ydb_status_codes_pb2.StatusIds.StatusCode, str]] = ..., issues: _Optional[_Iterable[_Union[_ydb_issue_message_pb2.IssueMessage, _Mapping]]] = ...) -> None: ... + class DeleteSemaphoreResult(_message.Message): + __slots__ = ["issues", "req_id", "status"] + ISSUES_FIELD_NUMBER: _ClassVar[int] + REQ_ID_FIELD_NUMBER: _ClassVar[int] + STATUS_FIELD_NUMBER: _ClassVar[int] + issues: _containers.RepeatedCompositeFieldContainer[_ydb_issue_message_pb2.IssueMessage] + req_id: int + status: _ydb_status_codes_pb2.StatusIds.StatusCode + def __init__(self, req_id: _Optional[int] = ..., status: _Optional[_Union[_ydb_status_codes_pb2.StatusIds.StatusCode, str]] = ..., issues: _Optional[_Iterable[_Union[_ydb_issue_message_pb2.IssueMessage, _Mapping]]] = ...) -> None: ... + class DescribeSemaphoreChanged(_message.Message): + __slots__ = ["data_changed", "owners_changed", "req_id"] + DATA_CHANGED_FIELD_NUMBER: _ClassVar[int] + OWNERS_CHANGED_FIELD_NUMBER: _ClassVar[int] + REQ_ID_FIELD_NUMBER: _ClassVar[int] + data_changed: bool + owners_changed: bool + req_id: int + def __init__(self, req_id: _Optional[int] = ..., data_changed: bool = ..., owners_changed: bool = ...) -> None: ... + class DescribeSemaphoreResult(_message.Message): + __slots__ = ["issues", "req_id", "semaphore_description", "status", "watch_added"] + ISSUES_FIELD_NUMBER: _ClassVar[int] + REQ_ID_FIELD_NUMBER: _ClassVar[int] + SEMAPHORE_DESCRIPTION_FIELD_NUMBER: _ClassVar[int] + STATUS_FIELD_NUMBER: _ClassVar[int] + WATCH_ADDED_FIELD_NUMBER: _ClassVar[int] + issues: _containers.RepeatedCompositeFieldContainer[_ydb_issue_message_pb2.IssueMessage] + req_id: int + semaphore_description: SemaphoreDescription + status: _ydb_status_codes_pb2.StatusIds.StatusCode + watch_added: bool + def __init__(self, req_id: _Optional[int] = ..., status: _Optional[_Union[_ydb_status_codes_pb2.StatusIds.StatusCode, str]] = ..., issues: _Optional[_Iterable[_Union[_ydb_issue_message_pb2.IssueMessage, _Mapping]]] = ..., semaphore_description: _Optional[_Union[SemaphoreDescription, _Mapping]] = ..., watch_added: bool = ...) -> None: ... + class Failure(_message.Message): + __slots__ = ["issues", "status"] + ISSUES_FIELD_NUMBER: _ClassVar[int] + STATUS_FIELD_NUMBER: _ClassVar[int] + issues: _containers.RepeatedCompositeFieldContainer[_ydb_issue_message_pb2.IssueMessage] + status: _ydb_status_codes_pb2.StatusIds.StatusCode + def __init__(self, status: _Optional[_Union[_ydb_status_codes_pb2.StatusIds.StatusCode, str]] = ..., issues: _Optional[_Iterable[_Union[_ydb_issue_message_pb2.IssueMessage, _Mapping]]] = ...) -> None: ... + class PingPong(_message.Message): + __slots__ = ["opaque"] + OPAQUE_FIELD_NUMBER: _ClassVar[int] + opaque: int + def __init__(self, opaque: _Optional[int] = ...) -> None: ... + class ReleaseSemaphoreResult(_message.Message): + __slots__ = ["issues", "released", "req_id", "status"] + ISSUES_FIELD_NUMBER: _ClassVar[int] + RELEASED_FIELD_NUMBER: _ClassVar[int] + REQ_ID_FIELD_NUMBER: _ClassVar[int] + STATUS_FIELD_NUMBER: _ClassVar[int] + issues: _containers.RepeatedCompositeFieldContainer[_ydb_issue_message_pb2.IssueMessage] + released: bool + req_id: int + status: _ydb_status_codes_pb2.StatusIds.StatusCode + def __init__(self, req_id: _Optional[int] = ..., status: _Optional[_Union[_ydb_status_codes_pb2.StatusIds.StatusCode, str]] = ..., issues: _Optional[_Iterable[_Union[_ydb_issue_message_pb2.IssueMessage, _Mapping]]] = ..., released: bool = ...) -> None: ... + class SessionStarted(_message.Message): + __slots__ = ["session_id", "timeout_millis"] + SESSION_ID_FIELD_NUMBER: _ClassVar[int] + TIMEOUT_MILLIS_FIELD_NUMBER: _ClassVar[int] + session_id: int + timeout_millis: int + def __init__(self, session_id: _Optional[int] = ..., timeout_millis: _Optional[int] = ...) -> None: ... + class SessionStopped(_message.Message): + __slots__ = ["session_id"] + SESSION_ID_FIELD_NUMBER: _ClassVar[int] + session_id: int + def __init__(self, session_id: _Optional[int] = ...) -> None: ... + class UpdateSemaphoreResult(_message.Message): + __slots__ = ["issues", "req_id", "status"] + ISSUES_FIELD_NUMBER: _ClassVar[int] + REQ_ID_FIELD_NUMBER: _ClassVar[int] + STATUS_FIELD_NUMBER: _ClassVar[int] + issues: _containers.RepeatedCompositeFieldContainer[_ydb_issue_message_pb2.IssueMessage] + req_id: int + status: _ydb_status_codes_pb2.StatusIds.StatusCode + def __init__(self, req_id: _Optional[int] = ..., status: _Optional[_Union[_ydb_status_codes_pb2.StatusIds.StatusCode, str]] = ..., issues: _Optional[_Iterable[_Union[_ydb_issue_message_pb2.IssueMessage, _Mapping]]] = ...) -> None: ... + ACQUIRE_SEMAPHORE_PENDING_FIELD_NUMBER: _ClassVar[int] + ACQUIRE_SEMAPHORE_RESULT_FIELD_NUMBER: _ClassVar[int] + CREATE_SEMAPHORE_RESULT_FIELD_NUMBER: _ClassVar[int] + DELETE_SEMAPHORE_RESULT_FIELD_NUMBER: _ClassVar[int] + DESCRIBE_SEMAPHORE_CHANGED_FIELD_NUMBER: _ClassVar[int] + DESCRIBE_SEMAPHORE_RESULT_FIELD_NUMBER: _ClassVar[int] + FAILURE_FIELD_NUMBER: _ClassVar[int] + PING_FIELD_NUMBER: _ClassVar[int] + PONG_FIELD_NUMBER: _ClassVar[int] + RELEASE_SEMAPHORE_RESULT_FIELD_NUMBER: _ClassVar[int] + SESSION_STARTED_FIELD_NUMBER: _ClassVar[int] + SESSION_STOPPED_FIELD_NUMBER: _ClassVar[int] + UNSUPPORTED_16_FIELD_NUMBER: _ClassVar[int] + UNSUPPORTED_17_FIELD_NUMBER: _ClassVar[int] + UNSUPPORTED_18_FIELD_NUMBER: _ClassVar[int] + UNSUPPORTED_6_FIELD_NUMBER: _ClassVar[int] + UNSUPPORTED_7_FIELD_NUMBER: _ClassVar[int] + UPDATE_SEMAPHORE_RESULT_FIELD_NUMBER: _ClassVar[int] + acquire_semaphore_pending: SessionResponse.AcquireSemaphorePending + acquire_semaphore_result: SessionResponse.AcquireSemaphoreResult + create_semaphore_result: SessionResponse.CreateSemaphoreResult + delete_semaphore_result: SessionResponse.DeleteSemaphoreResult + describe_semaphore_changed: SessionResponse.DescribeSemaphoreChanged + describe_semaphore_result: SessionResponse.DescribeSemaphoreResult + failure: SessionResponse.Failure + ping: SessionResponse.PingPong + pong: SessionResponse.PingPong + release_semaphore_result: SessionResponse.ReleaseSemaphoreResult + session_started: SessionResponse.SessionStarted + session_stopped: SessionResponse.SessionStopped + unsupported_16: Unsupported + unsupported_17: Unsupported + unsupported_18: Unsupported + unsupported_6: Unsupported + unsupported_7: Unsupported + update_semaphore_result: SessionResponse.UpdateSemaphoreResult + def __init__(self, ping: _Optional[_Union[SessionResponse.PingPong, _Mapping]] = ..., pong: _Optional[_Union[SessionResponse.PingPong, _Mapping]] = ..., failure: _Optional[_Union[SessionResponse.Failure, _Mapping]] = ..., session_started: _Optional[_Union[SessionResponse.SessionStarted, _Mapping]] = ..., session_stopped: _Optional[_Union[SessionResponse.SessionStopped, _Mapping]] = ..., unsupported_6: _Optional[_Union[Unsupported, _Mapping]] = ..., unsupported_7: _Optional[_Union[Unsupported, _Mapping]] = ..., acquire_semaphore_pending: _Optional[_Union[SessionResponse.AcquireSemaphorePending, _Mapping]] = ..., acquire_semaphore_result: _Optional[_Union[SessionResponse.AcquireSemaphoreResult, _Mapping]] = ..., release_semaphore_result: _Optional[_Union[SessionResponse.ReleaseSemaphoreResult, _Mapping]] = ..., describe_semaphore_result: _Optional[_Union[SessionResponse.DescribeSemaphoreResult, _Mapping]] = ..., describe_semaphore_changed: _Optional[_Union[SessionResponse.DescribeSemaphoreChanged, _Mapping]] = ..., create_semaphore_result: _Optional[_Union[SessionResponse.CreateSemaphoreResult, _Mapping]] = ..., update_semaphore_result: _Optional[_Union[SessionResponse.UpdateSemaphoreResult, _Mapping]] = ..., delete_semaphore_result: _Optional[_Union[SessionResponse.DeleteSemaphoreResult, _Mapping]] = ..., unsupported_16: _Optional[_Union[Unsupported, _Mapping]] = ..., unsupported_17: _Optional[_Union[Unsupported, _Mapping]] = ..., unsupported_18: _Optional[_Union[Unsupported, _Mapping]] = ...) -> None: ... + +class Unsupported(_message.Message): + __slots__ = [] + def __init__(self) -> None: ... + +class ConsistencyMode(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + +class RateLimiterCountersMode(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] diff --git a/ydb/_grpc/v5/protos/ydb_coordination_pb2_grpc.py b/ydb/_grpc/v5/protos/ydb_coordination_pb2_grpc.py new file mode 100644 index 00000000..2daafffe --- /dev/null +++ b/ydb/_grpc/v5/protos/ydb_coordination_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/ydb/_grpc/v5/protos/ydb_discovery_pb2.py b/ydb/_grpc/v5/protos/ydb_discovery_pb2.py new file mode 100644 index 00000000..aa3a6e80 --- /dev/null +++ b/ydb/_grpc/v5/protos/ydb_discovery_pb2.py @@ -0,0 +1,52 @@ +# -*- coding: utf-8 -*- +# flake8: noqa +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: protos/ydb_discovery.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from ydb._grpc.v5.protos import ydb_operation_pb2 as protos_dot_ydb__operation__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1aprotos/ydb_discovery.proto\x12\rYdb.Discovery\x1a\x1aprotos/ydb_operation.proto\"9\n\x14ListEndpointsRequest\x12\x10\n\x08\x64\x61tabase\x18\x01 \x01(\t\x12\x0f\n\x07service\x18\x02 \x03(\t\"\xc3\x01\n\x0c\x45ndpointInfo\x12\x0f\n\x07\x61\x64\x64ress\x18\x01 \x01(\t\x12\x0c\n\x04port\x18\x02 \x01(\r\x12\x13\n\x0bload_factor\x18\x03 \x01(\x02\x12\x0b\n\x03ssl\x18\x04 \x01(\x08\x12\x0f\n\x07service\x18\x05 \x03(\t\x12\x10\n\x08location\x18\x06 \x01(\t\x12\x0f\n\x07node_id\x18\x07 \x01(\r\x12\r\n\x05ip_v4\x18\x08 \x03(\t\x12\r\n\x05ip_v6\x18\t \x03(\t\x12 \n\x18ssl_target_name_override\x18\n \x01(\t\"\\\n\x13ListEndpointsResult\x12.\n\tendpoints\x18\x01 \x03(\x0b\x32\x1b.Ydb.Discovery.EndpointInfo\x12\x15\n\rself_location\x18\x02 \x01(\t\"E\n\x15ListEndpointsResponse\x12,\n\toperation\x18\x01 \x01(\x0b\x32\x19.Ydb.Operations.Operation\"\'\n\rWhoAmIRequest\x12\x16\n\x0einclude_groups\x18\x01 \x01(\x08\",\n\x0cWhoAmIResult\x12\x0c\n\x04user\x18\x01 \x01(\t\x12\x0e\n\x06groups\x18\x02 \x03(\t\">\n\x0eWhoAmIResponse\x12,\n\toperation\x18\x01 \x01(\x0b\x32\x19.Ydb.Operations.Operation\"\xe0\x02\n\x0cNodeLocation\x12 \n\x0f\x64\x61ta_center_num\x18\x01 \x01(\rB\x02\x18\x01H\x00\x88\x01\x01\x12\x19\n\x08room_num\x18\x02 \x01(\rB\x02\x18\x01H\x01\x88\x01\x01\x12\x19\n\x08rack_num\x18\x03 \x01(\rB\x02\x18\x01H\x02\x88\x01\x01\x12\x19\n\x08\x62ody_num\x18\x04 \x01(\rB\x02\x18\x01H\x03\x88\x01\x01\x12\x17\n\x04\x62ody\x18\x94\x91\x06 \x01(\rB\x02\x18\x01H\x04\x88\x01\x01\x12\x18\n\x0b\x64\x61ta_center\x18\n \x01(\tH\x05\x88\x01\x01\x12\x13\n\x06module\x18\x14 \x01(\tH\x06\x88\x01\x01\x12\x11\n\x04rack\x18\x1e \x01(\tH\x07\x88\x01\x01\x12\x11\n\x04unit\x18( \x01(\tH\x08\x88\x01\x01\x42\x12\n\x10_data_center_numB\x0b\n\t_room_numB\x0b\n\t_rack_numB\x0b\n\t_body_numB\x07\n\x05_bodyB\x0e\n\x0c_data_centerB\t\n\x07_moduleB\x07\n\x05_rackB\x07\n\x05_unitBl\n\x18tech.ydb.proto.discoveryB\x0f\x44iscoveryProtosZ None: ... + +class ListEndpointsRequest(_message.Message): + __slots__ = ["database", "service"] + DATABASE_FIELD_NUMBER: _ClassVar[int] + SERVICE_FIELD_NUMBER: _ClassVar[int] + database: str + service: _containers.RepeatedScalarFieldContainer[str] + def __init__(self, database: _Optional[str] = ..., service: _Optional[_Iterable[str]] = ...) -> None: ... + +class ListEndpointsResponse(_message.Message): + __slots__ = ["operation"] + OPERATION_FIELD_NUMBER: _ClassVar[int] + operation: _ydb_operation_pb2.Operation + def __init__(self, operation: _Optional[_Union[_ydb_operation_pb2.Operation, _Mapping]] = ...) -> None: ... + +class ListEndpointsResult(_message.Message): + __slots__ = ["endpoints", "self_location"] + ENDPOINTS_FIELD_NUMBER: _ClassVar[int] + SELF_LOCATION_FIELD_NUMBER: _ClassVar[int] + endpoints: _containers.RepeatedCompositeFieldContainer[EndpointInfo] + self_location: str + def __init__(self, endpoints: _Optional[_Iterable[_Union[EndpointInfo, _Mapping]]] = ..., self_location: _Optional[str] = ...) -> None: ... + +class NodeLocation(_message.Message): + __slots__ = ["body", "body_num", "data_center", "data_center_num", "module", "rack", "rack_num", "room_num", "unit"] + BODY_FIELD_NUMBER: _ClassVar[int] + BODY_NUM_FIELD_NUMBER: _ClassVar[int] + DATA_CENTER_FIELD_NUMBER: _ClassVar[int] + DATA_CENTER_NUM_FIELD_NUMBER: _ClassVar[int] + MODULE_FIELD_NUMBER: _ClassVar[int] + RACK_FIELD_NUMBER: _ClassVar[int] + RACK_NUM_FIELD_NUMBER: _ClassVar[int] + ROOM_NUM_FIELD_NUMBER: _ClassVar[int] + UNIT_FIELD_NUMBER: _ClassVar[int] + body: int + body_num: int + data_center: str + data_center_num: int + module: str + rack: str + rack_num: int + room_num: int + unit: str + def __init__(self, data_center_num: _Optional[int] = ..., room_num: _Optional[int] = ..., rack_num: _Optional[int] = ..., body_num: _Optional[int] = ..., body: _Optional[int] = ..., data_center: _Optional[str] = ..., module: _Optional[str] = ..., rack: _Optional[str] = ..., unit: _Optional[str] = ...) -> None: ... + +class WhoAmIRequest(_message.Message): + __slots__ = ["include_groups"] + INCLUDE_GROUPS_FIELD_NUMBER: _ClassVar[int] + include_groups: bool + def __init__(self, include_groups: bool = ...) -> None: ... + +class WhoAmIResponse(_message.Message): + __slots__ = ["operation"] + OPERATION_FIELD_NUMBER: _ClassVar[int] + operation: _ydb_operation_pb2.Operation + def __init__(self, operation: _Optional[_Union[_ydb_operation_pb2.Operation, _Mapping]] = ...) -> None: ... + +class WhoAmIResult(_message.Message): + __slots__ = ["groups", "user"] + GROUPS_FIELD_NUMBER: _ClassVar[int] + USER_FIELD_NUMBER: _ClassVar[int] + groups: _containers.RepeatedScalarFieldContainer[str] + user: str + def __init__(self, user: _Optional[str] = ..., groups: _Optional[_Iterable[str]] = ...) -> None: ... diff --git a/ydb/_grpc/v5/protos/ydb_discovery_pb2_grpc.py b/ydb/_grpc/v5/protos/ydb_discovery_pb2_grpc.py new file mode 100644 index 00000000..2daafffe --- /dev/null +++ b/ydb/_grpc/v5/protos/ydb_discovery_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/ydb/_grpc/v5/protos/ydb_export_pb2.py b/ydb/_grpc/v5/protos/ydb_export_pb2.py new file mode 100644 index 00000000..8fe3163f --- /dev/null +++ b/ydb/_grpc/v5/protos/ydb_export_pb2.py @@ -0,0 +1,94 @@ +# -*- coding: utf-8 -*- +# flake8: noqa +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: protos/ydb_export.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from ydb._grpc.v5.protos.annotations import validation_pb2 as protos_dot_annotations_dot_validation__pb2 +from ydb._grpc.v5.protos import ydb_operation_pb2 as protos_dot_ydb__operation__pb2 +from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x17protos/ydb_export.proto\x12\nYdb.Export\x1a#protos/annotations/validation.proto\x1a\x1aprotos/ydb_operation.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xb1\x01\n\x0e\x45xportProgress\"\x9e\x01\n\x08Progress\x12\x18\n\x14PROGRESS_UNSPECIFIED\x10\x00\x12\x16\n\x12PROGRESS_PREPARING\x10\x01\x12\x1a\n\x16PROGRESS_TRANSFER_DATA\x10\x02\x12\x11\n\rPROGRESS_DONE\x10\x03\x12\x19\n\x15PROGRESS_CANCELLATION\x10\x04\x12\x16\n\x12PROGRESS_CANCELLED\x10\x05\"\xa0\x01\n\x12\x45xportItemProgress\x12\x13\n\x0bparts_total\x18\x01 \x01(\r\x12\x17\n\x0fparts_completed\x18\x02 \x01(\r\x12.\n\nstart_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\x98\x02\n\x12\x45xportToYtSettings\x12\x12\n\x04host\x18\x01 \x01(\tB\x04\x90\xe6*\x01\x12\x0c\n\x04port\x18\x02 \x01(\r\x12\x13\n\x05token\x18\x03 \x01(\tB\x04\x90\xe6*\x01\x12:\n\x05items\x18\x04 \x03(\x0b\x32#.Ydb.Export.ExportToYtSettings.ItemB\x06\x9a\xe6*\x02(\x01\x12\x1c\n\x0b\x64\x65scription\x18\x05 \x01(\tB\x07\xa2\xe6*\x03\x18\x80\x01\x12\x19\n\x11number_of_retries\x18\x06 \x01(\r\x12\x13\n\x0buse_type_v3\x18\x07 \x01(\x08\x1a\x41\n\x04Item\x12\x19\n\x0bsource_path\x18\x01 \x01(\tB\x04\x90\xe6*\x01\x12\x1e\n\x10\x64\x65stination_path\x18\x02 \x01(\tB\x04\x90\xe6*\x01\"\x12\n\x10\x45xportToYtResult\"\xb5\x01\n\x12\x45xportToYtMetadata\x12\x30\n\x08settings\x18\x01 \x01(\x0b\x32\x1e.Ydb.Export.ExportToYtSettings\x12\x35\n\x08progress\x18\x02 \x01(\x0e\x32#.Ydb.Export.ExportProgress.Progress\x12\x36\n\x0eitems_progress\x18\x03 \x03(\x0b\x32\x1e.Ydb.Export.ExportItemProgress\"\x86\x01\n\x11\x45xportToYtRequest\x12\x39\n\x10operation_params\x18\x01 \x01(\x0b\x32\x1f.Ydb.Operations.OperationParams\x12\x36\n\x08settings\x18\x02 \x01(\x0b\x32\x1e.Ydb.Export.ExportToYtSettingsB\x04\x90\xe6*\x01\"B\n\x12\x45xportToYtResponse\x12,\n\toperation\x18\x01 \x01(\x0b\x32\x19.Ydb.Operations.Operation\"\xe1\x05\n\x12\x45xportToS3Settings\x12\x16\n\x08\x65ndpoint\x18\x01 \x01(\tB\x04\x90\xe6*\x01\x12\x35\n\x06scheme\x18\x02 \x01(\x0e\x32%.Ydb.Export.ExportToS3Settings.Scheme\x12\x14\n\x06\x62ucket\x18\x03 \x01(\tB\x04\x90\xe6*\x01\x12\x18\n\naccess_key\x18\x04 \x01(\tB\x04\x90\xe6*\x01\x12\x18\n\nsecret_key\x18\x05 \x01(\tB\x04\x90\xe6*\x01\x12:\n\x05items\x18\x06 \x03(\x0b\x32#.Ydb.Export.ExportToS3Settings.ItemB\x06\x9a\xe6*\x02(\x01\x12\x1c\n\x0b\x64\x65scription\x18\x07 \x01(\tB\x07\xa2\xe6*\x03\x18\x80\x01\x12\x19\n\x11number_of_retries\x18\x08 \x01(\r\x12\x42\n\rstorage_class\x18\t \x01(\x0e\x32+.Ydb.Export.ExportToS3Settings.StorageClass\x12\x13\n\x0b\x63ompression\x18\n \x01(\t\x12\x0e\n\x06region\x18\x0b \x01(\t\x12\"\n\x1a\x64isable_virtual_addressing\x18\x0c \x01(\x08\x1a\x43\n\x04Item\x12\x19\n\x0bsource_path\x18\x01 \x01(\tB\x04\x90\xe6*\x01\x12 \n\x12\x64\x65stination_prefix\x18\x02 \x01(\tB\x04\x90\xe6*\x01\".\n\x06Scheme\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x08\n\x04HTTP\x10\x01\x12\t\n\x05HTTPS\x10\x02\"\xba\x01\n\x0cStorageClass\x12\x1d\n\x19STORAGE_CLASS_UNSPECIFIED\x10\x00\x12\x0c\n\x08STANDARD\x10\x01\x12\x16\n\x12REDUCED_REDUNDANCY\x10\x02\x12\x0f\n\x0bSTANDARD_IA\x10\x03\x12\x0e\n\nONEZONE_IA\x10\x04\x12\x17\n\x13INTELLIGENT_TIERING\x10\x05\x12\x0b\n\x07GLACIER\x10\x06\x12\x10\n\x0c\x44\x45\x45P_ARCHIVE\x10\x07\x12\x0c\n\x08OUTPOSTS\x10\x08\"\x12\n\x10\x45xportToS3Result\"\xb5\x01\n\x12\x45xportToS3Metadata\x12\x30\n\x08settings\x18\x01 \x01(\x0b\x32\x1e.Ydb.Export.ExportToS3Settings\x12\x35\n\x08progress\x18\x02 \x01(\x0e\x32#.Ydb.Export.ExportProgress.Progress\x12\x36\n\x0eitems_progress\x18\x03 \x03(\x0b\x32\x1e.Ydb.Export.ExportItemProgress\"\x86\x01\n\x11\x45xportToS3Request\x12\x39\n\x10operation_params\x18\x01 \x01(\x0b\x32\x1f.Ydb.Operations.OperationParams\x12\x36\n\x08settings\x18\x02 \x01(\x0b\x32\x1e.Ydb.Export.ExportToS3SettingsB\x04\x90\xe6*\x01\"B\n\x12\x45xportToS3Response\x12,\n\toperation\x18\x01 \x01(\x0b\x32\x19.Ydb.Operations.OperationBU\n\x15tech.ydb.proto.exportZ9github.com/ydb-platform/ydb-go-genproto/protos/Ydb_Export\xf8\x01\x01\x62\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'protos.ydb_export_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\025tech.ydb.proto.exportZ9github.com/ydb-platform/ydb-go-genproto/protos/Ydb_Export\370\001\001' + _EXPORTTOYTSETTINGS_ITEM.fields_by_name['source_path']._options = None + _EXPORTTOYTSETTINGS_ITEM.fields_by_name['source_path']._serialized_options = b'\220\346*\001' + _EXPORTTOYTSETTINGS_ITEM.fields_by_name['destination_path']._options = None + _EXPORTTOYTSETTINGS_ITEM.fields_by_name['destination_path']._serialized_options = b'\220\346*\001' + _EXPORTTOYTSETTINGS.fields_by_name['host']._options = None + _EXPORTTOYTSETTINGS.fields_by_name['host']._serialized_options = b'\220\346*\001' + _EXPORTTOYTSETTINGS.fields_by_name['token']._options = None + _EXPORTTOYTSETTINGS.fields_by_name['token']._serialized_options = b'\220\346*\001' + _EXPORTTOYTSETTINGS.fields_by_name['items']._options = None + _EXPORTTOYTSETTINGS.fields_by_name['items']._serialized_options = b'\232\346*\002(\001' + _EXPORTTOYTSETTINGS.fields_by_name['description']._options = None + _EXPORTTOYTSETTINGS.fields_by_name['description']._serialized_options = b'\242\346*\003\030\200\001' + _EXPORTTOYTREQUEST.fields_by_name['settings']._options = None + _EXPORTTOYTREQUEST.fields_by_name['settings']._serialized_options = b'\220\346*\001' + _EXPORTTOS3SETTINGS_ITEM.fields_by_name['source_path']._options = None + _EXPORTTOS3SETTINGS_ITEM.fields_by_name['source_path']._serialized_options = b'\220\346*\001' + _EXPORTTOS3SETTINGS_ITEM.fields_by_name['destination_prefix']._options = None + _EXPORTTOS3SETTINGS_ITEM.fields_by_name['destination_prefix']._serialized_options = b'\220\346*\001' + _EXPORTTOS3SETTINGS.fields_by_name['endpoint']._options = None + _EXPORTTOS3SETTINGS.fields_by_name['endpoint']._serialized_options = b'\220\346*\001' + _EXPORTTOS3SETTINGS.fields_by_name['bucket']._options = None + _EXPORTTOS3SETTINGS.fields_by_name['bucket']._serialized_options = b'\220\346*\001' + _EXPORTTOS3SETTINGS.fields_by_name['access_key']._options = None + _EXPORTTOS3SETTINGS.fields_by_name['access_key']._serialized_options = b'\220\346*\001' + _EXPORTTOS3SETTINGS.fields_by_name['secret_key']._options = None + _EXPORTTOS3SETTINGS.fields_by_name['secret_key']._serialized_options = b'\220\346*\001' + _EXPORTTOS3SETTINGS.fields_by_name['items']._options = None + _EXPORTTOS3SETTINGS.fields_by_name['items']._serialized_options = b'\232\346*\002(\001' + _EXPORTTOS3SETTINGS.fields_by_name['description']._options = None + _EXPORTTOS3SETTINGS.fields_by_name['description']._serialized_options = b'\242\346*\003\030\200\001' + _EXPORTTOS3REQUEST.fields_by_name['settings']._options = None + _EXPORTTOS3REQUEST.fields_by_name['settings']._serialized_options = b'\220\346*\001' + _EXPORTPROGRESS._serialized_start=138 + _EXPORTPROGRESS._serialized_end=315 + _EXPORTPROGRESS_PROGRESS._serialized_start=157 + _EXPORTPROGRESS_PROGRESS._serialized_end=315 + _EXPORTITEMPROGRESS._serialized_start=318 + _EXPORTITEMPROGRESS._serialized_end=478 + _EXPORTTOYTSETTINGS._serialized_start=481 + _EXPORTTOYTSETTINGS._serialized_end=761 + _EXPORTTOYTSETTINGS_ITEM._serialized_start=696 + _EXPORTTOYTSETTINGS_ITEM._serialized_end=761 + _EXPORTTOYTRESULT._serialized_start=763 + _EXPORTTOYTRESULT._serialized_end=781 + _EXPORTTOYTMETADATA._serialized_start=784 + _EXPORTTOYTMETADATA._serialized_end=965 + _EXPORTTOYTREQUEST._serialized_start=968 + _EXPORTTOYTREQUEST._serialized_end=1102 + _EXPORTTOYTRESPONSE._serialized_start=1104 + _EXPORTTOYTRESPONSE._serialized_end=1170 + _EXPORTTOS3SETTINGS._serialized_start=1173 + _EXPORTTOS3SETTINGS._serialized_end=1910 + _EXPORTTOS3SETTINGS_ITEM._serialized_start=1606 + _EXPORTTOS3SETTINGS_ITEM._serialized_end=1673 + _EXPORTTOS3SETTINGS_SCHEME._serialized_start=1675 + _EXPORTTOS3SETTINGS_SCHEME._serialized_end=1721 + _EXPORTTOS3SETTINGS_STORAGECLASS._serialized_start=1724 + _EXPORTTOS3SETTINGS_STORAGECLASS._serialized_end=1910 + _EXPORTTOS3RESULT._serialized_start=1912 + _EXPORTTOS3RESULT._serialized_end=1930 + _EXPORTTOS3METADATA._serialized_start=1933 + _EXPORTTOS3METADATA._serialized_end=2114 + _EXPORTTOS3REQUEST._serialized_start=2117 + _EXPORTTOS3REQUEST._serialized_end=2251 + _EXPORTTOS3RESPONSE._serialized_start=2253 + _EXPORTTOS3RESPONSE._serialized_end=2319 +# @@protoc_insertion_point(module_scope) diff --git a/ydb/_grpc/v5/protos/ydb_export_pb2.pyi b/ydb/_grpc/v5/protos/ydb_export_pb2.pyi new file mode 100644 index 00000000..14af9169 --- /dev/null +++ b/ydb/_grpc/v5/protos/ydb_export_pb2.pyi @@ -0,0 +1,166 @@ +from protos.annotations import validation_pb2 as _validation_pb2 +from protos import ydb_operation_pb2 as _ydb_operation_pb2 +from google.protobuf import timestamp_pb2 as _timestamp_pb2 +from google.protobuf.internal import containers as _containers +from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union + +DESCRIPTOR: _descriptor.FileDescriptor + +class ExportItemProgress(_message.Message): + __slots__ = ["end_time", "parts_completed", "parts_total", "start_time"] + END_TIME_FIELD_NUMBER: _ClassVar[int] + PARTS_COMPLETED_FIELD_NUMBER: _ClassVar[int] + PARTS_TOTAL_FIELD_NUMBER: _ClassVar[int] + START_TIME_FIELD_NUMBER: _ClassVar[int] + end_time: _timestamp_pb2.Timestamp + parts_completed: int + parts_total: int + start_time: _timestamp_pb2.Timestamp + def __init__(self, parts_total: _Optional[int] = ..., parts_completed: _Optional[int] = ..., start_time: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., end_time: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ...) -> None: ... + +class ExportProgress(_message.Message): + __slots__ = [] + class Progress(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + PROGRESS_CANCELLATION: ExportProgress.Progress + PROGRESS_CANCELLED: ExportProgress.Progress + PROGRESS_DONE: ExportProgress.Progress + PROGRESS_PREPARING: ExportProgress.Progress + PROGRESS_TRANSFER_DATA: ExportProgress.Progress + PROGRESS_UNSPECIFIED: ExportProgress.Progress + def __init__(self) -> None: ... + +class ExportToS3Metadata(_message.Message): + __slots__ = ["items_progress", "progress", "settings"] + ITEMS_PROGRESS_FIELD_NUMBER: _ClassVar[int] + PROGRESS_FIELD_NUMBER: _ClassVar[int] + SETTINGS_FIELD_NUMBER: _ClassVar[int] + items_progress: _containers.RepeatedCompositeFieldContainer[ExportItemProgress] + progress: ExportProgress.Progress + settings: ExportToS3Settings + def __init__(self, settings: _Optional[_Union[ExportToS3Settings, _Mapping]] = ..., progress: _Optional[_Union[ExportProgress.Progress, str]] = ..., items_progress: _Optional[_Iterable[_Union[ExportItemProgress, _Mapping]]] = ...) -> None: ... + +class ExportToS3Request(_message.Message): + __slots__ = ["operation_params", "settings"] + OPERATION_PARAMS_FIELD_NUMBER: _ClassVar[int] + SETTINGS_FIELD_NUMBER: _ClassVar[int] + operation_params: _ydb_operation_pb2.OperationParams + settings: ExportToS3Settings + def __init__(self, operation_params: _Optional[_Union[_ydb_operation_pb2.OperationParams, _Mapping]] = ..., settings: _Optional[_Union[ExportToS3Settings, _Mapping]] = ...) -> None: ... + +class ExportToS3Response(_message.Message): + __slots__ = ["operation"] + OPERATION_FIELD_NUMBER: _ClassVar[int] + operation: _ydb_operation_pb2.Operation + def __init__(self, operation: _Optional[_Union[_ydb_operation_pb2.Operation, _Mapping]] = ...) -> None: ... + +class ExportToS3Result(_message.Message): + __slots__ = [] + def __init__(self) -> None: ... + +class ExportToS3Settings(_message.Message): + __slots__ = ["access_key", "bucket", "compression", "description", "disable_virtual_addressing", "endpoint", "items", "number_of_retries", "region", "scheme", "secret_key", "storage_class"] + class Scheme(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + class StorageClass(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + class Item(_message.Message): + __slots__ = ["destination_prefix", "source_path"] + DESTINATION_PREFIX_FIELD_NUMBER: _ClassVar[int] + SOURCE_PATH_FIELD_NUMBER: _ClassVar[int] + destination_prefix: str + source_path: str + def __init__(self, source_path: _Optional[str] = ..., destination_prefix: _Optional[str] = ...) -> None: ... + ACCESS_KEY_FIELD_NUMBER: _ClassVar[int] + BUCKET_FIELD_NUMBER: _ClassVar[int] + COMPRESSION_FIELD_NUMBER: _ClassVar[int] + DEEP_ARCHIVE: ExportToS3Settings.StorageClass + DESCRIPTION_FIELD_NUMBER: _ClassVar[int] + DISABLE_VIRTUAL_ADDRESSING_FIELD_NUMBER: _ClassVar[int] + ENDPOINT_FIELD_NUMBER: _ClassVar[int] + GLACIER: ExportToS3Settings.StorageClass + HTTP: ExportToS3Settings.Scheme + HTTPS: ExportToS3Settings.Scheme + INTELLIGENT_TIERING: ExportToS3Settings.StorageClass + ITEMS_FIELD_NUMBER: _ClassVar[int] + NUMBER_OF_RETRIES_FIELD_NUMBER: _ClassVar[int] + ONEZONE_IA: ExportToS3Settings.StorageClass + OUTPOSTS: ExportToS3Settings.StorageClass + REDUCED_REDUNDANCY: ExportToS3Settings.StorageClass + REGION_FIELD_NUMBER: _ClassVar[int] + SCHEME_FIELD_NUMBER: _ClassVar[int] + SECRET_KEY_FIELD_NUMBER: _ClassVar[int] + STANDARD: ExportToS3Settings.StorageClass + STANDARD_IA: ExportToS3Settings.StorageClass + STORAGE_CLASS_FIELD_NUMBER: _ClassVar[int] + STORAGE_CLASS_UNSPECIFIED: ExportToS3Settings.StorageClass + UNSPECIFIED: ExportToS3Settings.Scheme + access_key: str + bucket: str + compression: str + description: str + disable_virtual_addressing: bool + endpoint: str + items: _containers.RepeatedCompositeFieldContainer[ExportToS3Settings.Item] + number_of_retries: int + region: str + scheme: ExportToS3Settings.Scheme + secret_key: str + storage_class: ExportToS3Settings.StorageClass + def __init__(self, endpoint: _Optional[str] = ..., scheme: _Optional[_Union[ExportToS3Settings.Scheme, str]] = ..., bucket: _Optional[str] = ..., access_key: _Optional[str] = ..., secret_key: _Optional[str] = ..., items: _Optional[_Iterable[_Union[ExportToS3Settings.Item, _Mapping]]] = ..., description: _Optional[str] = ..., number_of_retries: _Optional[int] = ..., storage_class: _Optional[_Union[ExportToS3Settings.StorageClass, str]] = ..., compression: _Optional[str] = ..., region: _Optional[str] = ..., disable_virtual_addressing: bool = ...) -> None: ... + +class ExportToYtMetadata(_message.Message): + __slots__ = ["items_progress", "progress", "settings"] + ITEMS_PROGRESS_FIELD_NUMBER: _ClassVar[int] + PROGRESS_FIELD_NUMBER: _ClassVar[int] + SETTINGS_FIELD_NUMBER: _ClassVar[int] + items_progress: _containers.RepeatedCompositeFieldContainer[ExportItemProgress] + progress: ExportProgress.Progress + settings: ExportToYtSettings + def __init__(self, settings: _Optional[_Union[ExportToYtSettings, _Mapping]] = ..., progress: _Optional[_Union[ExportProgress.Progress, str]] = ..., items_progress: _Optional[_Iterable[_Union[ExportItemProgress, _Mapping]]] = ...) -> None: ... + +class ExportToYtRequest(_message.Message): + __slots__ = ["operation_params", "settings"] + OPERATION_PARAMS_FIELD_NUMBER: _ClassVar[int] + SETTINGS_FIELD_NUMBER: _ClassVar[int] + operation_params: _ydb_operation_pb2.OperationParams + settings: ExportToYtSettings + def __init__(self, operation_params: _Optional[_Union[_ydb_operation_pb2.OperationParams, _Mapping]] = ..., settings: _Optional[_Union[ExportToYtSettings, _Mapping]] = ...) -> None: ... + +class ExportToYtResponse(_message.Message): + __slots__ = ["operation"] + OPERATION_FIELD_NUMBER: _ClassVar[int] + operation: _ydb_operation_pb2.Operation + def __init__(self, operation: _Optional[_Union[_ydb_operation_pb2.Operation, _Mapping]] = ...) -> None: ... + +class ExportToYtResult(_message.Message): + __slots__ = [] + def __init__(self) -> None: ... + +class ExportToYtSettings(_message.Message): + __slots__ = ["description", "host", "items", "number_of_retries", "port", "token", "use_type_v3"] + class Item(_message.Message): + __slots__ = ["destination_path", "source_path"] + DESTINATION_PATH_FIELD_NUMBER: _ClassVar[int] + SOURCE_PATH_FIELD_NUMBER: _ClassVar[int] + destination_path: str + source_path: str + def __init__(self, source_path: _Optional[str] = ..., destination_path: _Optional[str] = ...) -> None: ... + DESCRIPTION_FIELD_NUMBER: _ClassVar[int] + HOST_FIELD_NUMBER: _ClassVar[int] + ITEMS_FIELD_NUMBER: _ClassVar[int] + NUMBER_OF_RETRIES_FIELD_NUMBER: _ClassVar[int] + PORT_FIELD_NUMBER: _ClassVar[int] + TOKEN_FIELD_NUMBER: _ClassVar[int] + USE_TYPE_V3_FIELD_NUMBER: _ClassVar[int] + description: str + host: str + items: _containers.RepeatedCompositeFieldContainer[ExportToYtSettings.Item] + number_of_retries: int + port: int + token: str + use_type_v3: bool + def __init__(self, host: _Optional[str] = ..., port: _Optional[int] = ..., token: _Optional[str] = ..., items: _Optional[_Iterable[_Union[ExportToYtSettings.Item, _Mapping]]] = ..., description: _Optional[str] = ..., number_of_retries: _Optional[int] = ..., use_type_v3: bool = ...) -> None: ... diff --git a/ydb/_grpc/v5/protos/ydb_export_pb2_grpc.py b/ydb/_grpc/v5/protos/ydb_export_pb2_grpc.py new file mode 100644 index 00000000..2daafffe --- /dev/null +++ b/ydb/_grpc/v5/protos/ydb_export_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/ydb/_grpc/v5/protos/ydb_federation_discovery_pb2.py b/ydb/_grpc/v5/protos/ydb_federation_discovery_pb2.py new file mode 100644 index 00000000..b7adfa66 --- /dev/null +++ b/ydb/_grpc/v5/protos/ydb_federation_discovery_pb2.py @@ -0,0 +1,36 @@ +# -*- coding: utf-8 -*- +# flake8: noqa +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: protos/ydb_federation_discovery.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from ydb._grpc.v5.protos import ydb_operation_pb2 as protos_dot_ydb__operation__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n%protos/ydb_federation_discovery.proto\x12\x17Ydb.FederationDiscovery\x1a\x1aprotos/ydb_operation.proto\"\xf9\x01\n\x0c\x44\x61tabaseInfo\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0c\n\x04path\x18\x02 \x01(\t\x12\n\n\x02id\x18\x03 \x01(\t\x12\x10\n\x08\x65ndpoint\x18\x04 \x01(\t\x12\x10\n\x08location\x18\x05 \x01(\t\x12<\n\x06status\x18\x06 \x01(\x0e\x32,.Ydb.FederationDiscovery.DatabaseInfo.Status\x12\x0e\n\x06weight\x18\x07 \x01(\x03\"O\n\x06Status\x12\x16\n\x12STATUS_UNSPECIFIED\x10\x00\x12\r\n\tAVAILABLE\x10\x01\x12\r\n\tREAD_ONLY\x10\x02\x12\x0f\n\x0bUNAVAILABLE\x10\x03\" \n\x1eListFederationDatabasesRequest\"O\n\x1fListFederationDatabasesResponse\x12,\n\toperation\x18\x01 \x01(\x0b\x32\x19.Ydb.Operations.Operation\"\x9b\x01\n\x1dListFederationDatabasesResult\x12\x1e\n\x16\x63ontrol_plane_endpoint\x18\x01 \x01(\t\x12\x43\n\x14\x66\x65\x64\x65ration_databases\x18\x02 \x03(\x0b\x32%.Ydb.FederationDiscovery.DatabaseInfo\x12\x15\n\rself_location\x18\x03 \x01(\tB\x8b\x01\n#tech.ydb.proto.federation.discoveryB\x19\x46\x65\x64\x65rationDiscoveryProtosZFgithub.com/ydb-platform/ydb-go-genproto/protos/Ydb_FederationDiscovery\xf8\x01\x01\x62\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'protos.ydb_federation_discovery_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n#tech.ydb.proto.federation.discoveryB\031FederationDiscoveryProtosZFgithub.com/ydb-platform/ydb-go-genproto/protos/Ydb_FederationDiscovery\370\001\001' + _DATABASEINFO._serialized_start=95 + _DATABASEINFO._serialized_end=344 + _DATABASEINFO_STATUS._serialized_start=265 + _DATABASEINFO_STATUS._serialized_end=344 + _LISTFEDERATIONDATABASESREQUEST._serialized_start=346 + _LISTFEDERATIONDATABASESREQUEST._serialized_end=378 + _LISTFEDERATIONDATABASESRESPONSE._serialized_start=380 + _LISTFEDERATIONDATABASESRESPONSE._serialized_end=459 + _LISTFEDERATIONDATABASESRESULT._serialized_start=462 + _LISTFEDERATIONDATABASESRESULT._serialized_end=617 +# @@protoc_insertion_point(module_scope) diff --git a/ydb/_grpc/v5/protos/ydb_federation_discovery_pb2.pyi b/ydb/_grpc/v5/protos/ydb_federation_discovery_pb2.pyi new file mode 100644 index 00000000..71a57dd9 --- /dev/null +++ b/ydb/_grpc/v5/protos/ydb_federation_discovery_pb2.pyi @@ -0,0 +1,52 @@ +from protos import ydb_operation_pb2 as _ydb_operation_pb2 +from google.protobuf.internal import containers as _containers +from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union + +DESCRIPTOR: _descriptor.FileDescriptor + +class DatabaseInfo(_message.Message): + __slots__ = ["endpoint", "id", "location", "name", "path", "status", "weight"] + class Status(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + AVAILABLE: DatabaseInfo.Status + ENDPOINT_FIELD_NUMBER: _ClassVar[int] + ID_FIELD_NUMBER: _ClassVar[int] + LOCATION_FIELD_NUMBER: _ClassVar[int] + NAME_FIELD_NUMBER: _ClassVar[int] + PATH_FIELD_NUMBER: _ClassVar[int] + READ_ONLY: DatabaseInfo.Status + STATUS_FIELD_NUMBER: _ClassVar[int] + STATUS_UNSPECIFIED: DatabaseInfo.Status + UNAVAILABLE: DatabaseInfo.Status + WEIGHT_FIELD_NUMBER: _ClassVar[int] + endpoint: str + id: str + location: str + name: str + path: str + status: DatabaseInfo.Status + weight: int + def __init__(self, name: _Optional[str] = ..., path: _Optional[str] = ..., id: _Optional[str] = ..., endpoint: _Optional[str] = ..., location: _Optional[str] = ..., status: _Optional[_Union[DatabaseInfo.Status, str]] = ..., weight: _Optional[int] = ...) -> None: ... + +class ListFederationDatabasesRequest(_message.Message): + __slots__ = [] + def __init__(self) -> None: ... + +class ListFederationDatabasesResponse(_message.Message): + __slots__ = ["operation"] + OPERATION_FIELD_NUMBER: _ClassVar[int] + operation: _ydb_operation_pb2.Operation + def __init__(self, operation: _Optional[_Union[_ydb_operation_pb2.Operation, _Mapping]] = ...) -> None: ... + +class ListFederationDatabasesResult(_message.Message): + __slots__ = ["control_plane_endpoint", "federation_databases", "self_location"] + CONTROL_PLANE_ENDPOINT_FIELD_NUMBER: _ClassVar[int] + FEDERATION_DATABASES_FIELD_NUMBER: _ClassVar[int] + SELF_LOCATION_FIELD_NUMBER: _ClassVar[int] + control_plane_endpoint: str + federation_databases: _containers.RepeatedCompositeFieldContainer[DatabaseInfo] + self_location: str + def __init__(self, control_plane_endpoint: _Optional[str] = ..., federation_databases: _Optional[_Iterable[_Union[DatabaseInfo, _Mapping]]] = ..., self_location: _Optional[str] = ...) -> None: ... diff --git a/ydb/_grpc/v5/protos/ydb_federation_discovery_pb2_grpc.py b/ydb/_grpc/v5/protos/ydb_federation_discovery_pb2_grpc.py new file mode 100644 index 00000000..2daafffe --- /dev/null +++ b/ydb/_grpc/v5/protos/ydb_federation_discovery_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/ydb/_grpc/v5/protos/ydb_formats_pb2.py b/ydb/_grpc/v5/protos/ydb_formats_pb2.py new file mode 100644 index 00000000..3a58d2be --- /dev/null +++ b/ydb/_grpc/v5/protos/ydb_formats_pb2.py @@ -0,0 +1,31 @@ +# -*- coding: utf-8 -*- +# flake8: noqa +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: protos/ydb_formats.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x18protos/ydb_formats.proto\x12\x0bYdb.Formats\"$\n\x12\x41rrowBatchSettings\x12\x0e\n\x06schema\x18\x01 \x01(\x0c\"\xda\x01\n\x0b\x43svSettings\x12\x11\n\tskip_rows\x18\x01 \x01(\r\x12\x11\n\tdelimiter\x18\x02 \x01(\x0c\x12\x12\n\nnull_value\x18\x03 \x01(\x0c\x12\x0e\n\x06header\x18\x04 \x01(\x08\x12\x31\n\x07quoting\x18\x05 \x01(\x0b\x32 .Ydb.Formats.CsvSettings.Quoting\x1aN\n\x07Quoting\x12\x10\n\x08\x64isabled\x18\x01 \x01(\x08\x12\x12\n\nquote_char\x18\x02 \x01(\x0c\x12\x1d\n\x15\x64ouble_quote_disabled\x18\x03 \x01(\x08\x42W\n\x16tech.ydb.proto.formatsZ:github.com/ydb-platform/ydb-go-genproto/protos/Ydb_Formats\xf8\x01\x01\x62\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'protos.ydb_formats_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\026tech.ydb.proto.formatsZ:github.com/ydb-platform/ydb-go-genproto/protos/Ydb_Formats\370\001\001' + _ARROWBATCHSETTINGS._serialized_start=41 + _ARROWBATCHSETTINGS._serialized_end=77 + _CSVSETTINGS._serialized_start=80 + _CSVSETTINGS._serialized_end=298 + _CSVSETTINGS_QUOTING._serialized_start=220 + _CSVSETTINGS_QUOTING._serialized_end=298 +# @@protoc_insertion_point(module_scope) diff --git a/ydb/_grpc/v5/protos/ydb_formats_pb2.pyi b/ydb/_grpc/v5/protos/ydb_formats_pb2.pyi new file mode 100644 index 00000000..38682d14 --- /dev/null +++ b/ydb/_grpc/v5/protos/ydb_formats_pb2.pyi @@ -0,0 +1,34 @@ +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from typing import ClassVar as _ClassVar, Mapping as _Mapping, Optional as _Optional, Union as _Union + +DESCRIPTOR: _descriptor.FileDescriptor + +class ArrowBatchSettings(_message.Message): + __slots__ = ["schema"] + SCHEMA_FIELD_NUMBER: _ClassVar[int] + schema: bytes + def __init__(self, schema: _Optional[bytes] = ...) -> None: ... + +class CsvSettings(_message.Message): + __slots__ = ["delimiter", "header", "null_value", "quoting", "skip_rows"] + class Quoting(_message.Message): + __slots__ = ["disabled", "double_quote_disabled", "quote_char"] + DISABLED_FIELD_NUMBER: _ClassVar[int] + DOUBLE_QUOTE_DISABLED_FIELD_NUMBER: _ClassVar[int] + QUOTE_CHAR_FIELD_NUMBER: _ClassVar[int] + disabled: bool + double_quote_disabled: bool + quote_char: bytes + def __init__(self, disabled: bool = ..., quote_char: _Optional[bytes] = ..., double_quote_disabled: bool = ...) -> None: ... + DELIMITER_FIELD_NUMBER: _ClassVar[int] + HEADER_FIELD_NUMBER: _ClassVar[int] + NULL_VALUE_FIELD_NUMBER: _ClassVar[int] + QUOTING_FIELD_NUMBER: _ClassVar[int] + SKIP_ROWS_FIELD_NUMBER: _ClassVar[int] + delimiter: bytes + header: bool + null_value: bytes + quoting: CsvSettings.Quoting + skip_rows: int + def __init__(self, skip_rows: _Optional[int] = ..., delimiter: _Optional[bytes] = ..., null_value: _Optional[bytes] = ..., header: bool = ..., quoting: _Optional[_Union[CsvSettings.Quoting, _Mapping]] = ...) -> None: ... diff --git a/ydb/_grpc/v5/protos/ydb_formats_pb2_grpc.py b/ydb/_grpc/v5/protos/ydb_formats_pb2_grpc.py new file mode 100644 index 00000000..2daafffe --- /dev/null +++ b/ydb/_grpc/v5/protos/ydb_formats_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/ydb/_grpc/v5/protos/ydb_import_pb2.py b/ydb/_grpc/v5/protos/ydb_import_pb2.py new file mode 100644 index 00000000..736e7ef5 --- /dev/null +++ b/ydb/_grpc/v5/protos/ydb_import_pb2.py @@ -0,0 +1,76 @@ +# -*- coding: utf-8 -*- +# flake8: noqa +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: protos/ydb_import.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from ydb._grpc.v5.protos.annotations import validation_pb2 as protos_dot_annotations_dot_validation__pb2 +from ydb._grpc.v5.protos import ydb_operation_pb2 as protos_dot_ydb__operation__pb2 +from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x17protos/ydb_import.proto\x12\nYdb.Import\x1a#protos/annotations/validation.proto\x1a\x1aprotos/ydb_operation.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xcd\x01\n\x0eImportProgress\"\xba\x01\n\x08Progress\x12\x18\n\x14PROGRESS_UNSPECIFIED\x10\x00\x12\x16\n\x12PROGRESS_PREPARING\x10\x01\x12\x1a\n\x16PROGRESS_TRANSFER_DATA\x10\x02\x12\x1a\n\x16PROGRESS_BUILD_INDEXES\x10\x03\x12\x11\n\rPROGRESS_DONE\x10\x04\x12\x19\n\x15PROGRESS_CANCELLATION\x10\x05\x12\x16\n\x12PROGRESS_CANCELLED\x10\x06\"\xa0\x01\n\x12ImportItemProgress\x12\x13\n\x0bparts_total\x18\x01 \x01(\r\x12\x17\n\x0fparts_completed\x18\x02 \x01(\r\x12.\n\nstart_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\xd1\x03\n\x14ImportFromS3Settings\x12\x16\n\x08\x65ndpoint\x18\x01 \x01(\tB\x04\x90\xe6*\x01\x12\x37\n\x06scheme\x18\x02 \x01(\x0e\x32\'.Ydb.Import.ImportFromS3Settings.Scheme\x12\x14\n\x06\x62ucket\x18\x03 \x01(\tB\x04\x90\xe6*\x01\x12\x18\n\naccess_key\x18\x04 \x01(\tB\x04\x90\xe6*\x01\x12\x18\n\nsecret_key\x18\x05 \x01(\tB\x04\x90\xe6*\x01\x12<\n\x05items\x18\x06 \x03(\x0b\x32%.Ydb.Import.ImportFromS3Settings.ItemB\x06\x9a\xe6*\x02(\x01\x12\x1c\n\x0b\x64\x65scription\x18\x07 \x01(\tB\x07\xa2\xe6*\x03\x18\x80\x01\x12\x19\n\x11number_of_retries\x18\x08 \x01(\r\x12\x0e\n\x06region\x18\t \x01(\t\x12\"\n\x1a\x64isable_virtual_addressing\x18\n \x01(\x08\x1a\x43\n\x04Item\x12\x1b\n\rsource_prefix\x18\x01 \x01(\tB\x04\x90\xe6*\x01\x12\x1e\n\x10\x64\x65stination_path\x18\x02 \x01(\tB\x04\x90\xe6*\x01\".\n\x06Scheme\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x08\n\x04HTTP\x10\x01\x12\t\n\x05HTTPS\x10\x02\"\x14\n\x12ImportFromS3Result\"\xb9\x01\n\x14ImportFromS3Metadata\x12\x32\n\x08settings\x18\x01 \x01(\x0b\x32 .Ydb.Import.ImportFromS3Settings\x12\x35\n\x08progress\x18\x02 \x01(\x0e\x32#.Ydb.Import.ImportProgress.Progress\x12\x36\n\x0eitems_progress\x18\x03 \x03(\x0b\x32\x1e.Ydb.Import.ImportItemProgress\"\x8a\x01\n\x13ImportFromS3Request\x12\x39\n\x10operation_params\x18\x01 \x01(\x0b\x32\x1f.Ydb.Operations.OperationParams\x12\x38\n\x08settings\x18\x02 \x01(\x0b\x32 .Ydb.Import.ImportFromS3SettingsB\x04\x90\xe6*\x01\"D\n\x14ImportFromS3Response\x12,\n\toperation\x18\x01 \x01(\x0b\x32\x19.Ydb.Operations.Operation\" \n\rYdbDumpFormat\x12\x0f\n\x07\x63olumns\x18\x01 \x03(\t\"\x12\n\x10ImportDataResult\"\xae\x01\n\x11ImportDataRequest\x12\x39\n\x10operation_params\x18\x01 \x01(\x0b\x32\x1f.Ydb.Operations.OperationParams\x12\x0c\n\x04path\x18\x02 \x01(\t\x12\x17\n\x04\x64\x61ta\x18\x03 \x01(\x0c\x42\t\xa2\xe6*\x05\x18\x80\x80\x80\x04\x12-\n\x08ydb_dump\x18\x04 \x01(\x0b\x32\x19.Ydb.Import.YdbDumpFormatH\x00\x42\x08\n\x06\x66ormat\"B\n\x12ImportDataResponse\x12,\n\toperation\x18\x01 \x01(\x0b\x32\x19.Ydb.Operations.OperationBV\n\x16tech.ydb.proto.import_Z9github.com/ydb-platform/ydb-go-genproto/protos/Ydb_Import\xf8\x01\x01\x62\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'protos.ydb_import_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\026tech.ydb.proto.import_Z9github.com/ydb-platform/ydb-go-genproto/protos/Ydb_Import\370\001\001' + _IMPORTFROMS3SETTINGS_ITEM.fields_by_name['source_prefix']._options = None + _IMPORTFROMS3SETTINGS_ITEM.fields_by_name['source_prefix']._serialized_options = b'\220\346*\001' + _IMPORTFROMS3SETTINGS_ITEM.fields_by_name['destination_path']._options = None + _IMPORTFROMS3SETTINGS_ITEM.fields_by_name['destination_path']._serialized_options = b'\220\346*\001' + _IMPORTFROMS3SETTINGS.fields_by_name['endpoint']._options = None + _IMPORTFROMS3SETTINGS.fields_by_name['endpoint']._serialized_options = b'\220\346*\001' + _IMPORTFROMS3SETTINGS.fields_by_name['bucket']._options = None + _IMPORTFROMS3SETTINGS.fields_by_name['bucket']._serialized_options = b'\220\346*\001' + _IMPORTFROMS3SETTINGS.fields_by_name['access_key']._options = None + _IMPORTFROMS3SETTINGS.fields_by_name['access_key']._serialized_options = b'\220\346*\001' + _IMPORTFROMS3SETTINGS.fields_by_name['secret_key']._options = None + _IMPORTFROMS3SETTINGS.fields_by_name['secret_key']._serialized_options = b'\220\346*\001' + _IMPORTFROMS3SETTINGS.fields_by_name['items']._options = None + _IMPORTFROMS3SETTINGS.fields_by_name['items']._serialized_options = b'\232\346*\002(\001' + _IMPORTFROMS3SETTINGS.fields_by_name['description']._options = None + _IMPORTFROMS3SETTINGS.fields_by_name['description']._serialized_options = b'\242\346*\003\030\200\001' + _IMPORTFROMS3REQUEST.fields_by_name['settings']._options = None + _IMPORTFROMS3REQUEST.fields_by_name['settings']._serialized_options = b'\220\346*\001' + _IMPORTDATAREQUEST.fields_by_name['data']._options = None + _IMPORTDATAREQUEST.fields_by_name['data']._serialized_options = b'\242\346*\005\030\200\200\200\004' + _IMPORTPROGRESS._serialized_start=138 + _IMPORTPROGRESS._serialized_end=343 + _IMPORTPROGRESS_PROGRESS._serialized_start=157 + _IMPORTPROGRESS_PROGRESS._serialized_end=343 + _IMPORTITEMPROGRESS._serialized_start=346 + _IMPORTITEMPROGRESS._serialized_end=506 + _IMPORTFROMS3SETTINGS._serialized_start=509 + _IMPORTFROMS3SETTINGS._serialized_end=974 + _IMPORTFROMS3SETTINGS_ITEM._serialized_start=859 + _IMPORTFROMS3SETTINGS_ITEM._serialized_end=926 + _IMPORTFROMS3SETTINGS_SCHEME._serialized_start=928 + _IMPORTFROMS3SETTINGS_SCHEME._serialized_end=974 + _IMPORTFROMS3RESULT._serialized_start=976 + _IMPORTFROMS3RESULT._serialized_end=996 + _IMPORTFROMS3METADATA._serialized_start=999 + _IMPORTFROMS3METADATA._serialized_end=1184 + _IMPORTFROMS3REQUEST._serialized_start=1187 + _IMPORTFROMS3REQUEST._serialized_end=1325 + _IMPORTFROMS3RESPONSE._serialized_start=1327 + _IMPORTFROMS3RESPONSE._serialized_end=1395 + _YDBDUMPFORMAT._serialized_start=1397 + _YDBDUMPFORMAT._serialized_end=1429 + _IMPORTDATARESULT._serialized_start=1431 + _IMPORTDATARESULT._serialized_end=1449 + _IMPORTDATAREQUEST._serialized_start=1452 + _IMPORTDATAREQUEST._serialized_end=1626 + _IMPORTDATARESPONSE._serialized_start=1628 + _IMPORTDATARESPONSE._serialized_end=1694 +# @@protoc_insertion_point(module_scope) diff --git a/ydb/_grpc/v5/protos/ydb_import_pb2.pyi b/ydb/_grpc/v5/protos/ydb_import_pb2.pyi new file mode 100644 index 00000000..d3b394ab --- /dev/null +++ b/ydb/_grpc/v5/protos/ydb_import_pb2.pyi @@ -0,0 +1,127 @@ +from protos.annotations import validation_pb2 as _validation_pb2 +from protos import ydb_operation_pb2 as _ydb_operation_pb2 +from google.protobuf import timestamp_pb2 as _timestamp_pb2 +from google.protobuf.internal import containers as _containers +from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union + +DESCRIPTOR: _descriptor.FileDescriptor + +class ImportDataRequest(_message.Message): + __slots__ = ["data", "operation_params", "path", "ydb_dump"] + DATA_FIELD_NUMBER: _ClassVar[int] + OPERATION_PARAMS_FIELD_NUMBER: _ClassVar[int] + PATH_FIELD_NUMBER: _ClassVar[int] + YDB_DUMP_FIELD_NUMBER: _ClassVar[int] + data: bytes + operation_params: _ydb_operation_pb2.OperationParams + path: str + ydb_dump: YdbDumpFormat + def __init__(self, operation_params: _Optional[_Union[_ydb_operation_pb2.OperationParams, _Mapping]] = ..., path: _Optional[str] = ..., data: _Optional[bytes] = ..., ydb_dump: _Optional[_Union[YdbDumpFormat, _Mapping]] = ...) -> None: ... + +class ImportDataResponse(_message.Message): + __slots__ = ["operation"] + OPERATION_FIELD_NUMBER: _ClassVar[int] + operation: _ydb_operation_pb2.Operation + def __init__(self, operation: _Optional[_Union[_ydb_operation_pb2.Operation, _Mapping]] = ...) -> None: ... + +class ImportDataResult(_message.Message): + __slots__ = [] + def __init__(self) -> None: ... + +class ImportFromS3Metadata(_message.Message): + __slots__ = ["items_progress", "progress", "settings"] + ITEMS_PROGRESS_FIELD_NUMBER: _ClassVar[int] + PROGRESS_FIELD_NUMBER: _ClassVar[int] + SETTINGS_FIELD_NUMBER: _ClassVar[int] + items_progress: _containers.RepeatedCompositeFieldContainer[ImportItemProgress] + progress: ImportProgress.Progress + settings: ImportFromS3Settings + def __init__(self, settings: _Optional[_Union[ImportFromS3Settings, _Mapping]] = ..., progress: _Optional[_Union[ImportProgress.Progress, str]] = ..., items_progress: _Optional[_Iterable[_Union[ImportItemProgress, _Mapping]]] = ...) -> None: ... + +class ImportFromS3Request(_message.Message): + __slots__ = ["operation_params", "settings"] + OPERATION_PARAMS_FIELD_NUMBER: _ClassVar[int] + SETTINGS_FIELD_NUMBER: _ClassVar[int] + operation_params: _ydb_operation_pb2.OperationParams + settings: ImportFromS3Settings + def __init__(self, operation_params: _Optional[_Union[_ydb_operation_pb2.OperationParams, _Mapping]] = ..., settings: _Optional[_Union[ImportFromS3Settings, _Mapping]] = ...) -> None: ... + +class ImportFromS3Response(_message.Message): + __slots__ = ["operation"] + OPERATION_FIELD_NUMBER: _ClassVar[int] + operation: _ydb_operation_pb2.Operation + def __init__(self, operation: _Optional[_Union[_ydb_operation_pb2.Operation, _Mapping]] = ...) -> None: ... + +class ImportFromS3Result(_message.Message): + __slots__ = [] + def __init__(self) -> None: ... + +class ImportFromS3Settings(_message.Message): + __slots__ = ["access_key", "bucket", "description", "disable_virtual_addressing", "endpoint", "items", "number_of_retries", "region", "scheme", "secret_key"] + class Scheme(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + class Item(_message.Message): + __slots__ = ["destination_path", "source_prefix"] + DESTINATION_PATH_FIELD_NUMBER: _ClassVar[int] + SOURCE_PREFIX_FIELD_NUMBER: _ClassVar[int] + destination_path: str + source_prefix: str + def __init__(self, source_prefix: _Optional[str] = ..., destination_path: _Optional[str] = ...) -> None: ... + ACCESS_KEY_FIELD_NUMBER: _ClassVar[int] + BUCKET_FIELD_NUMBER: _ClassVar[int] + DESCRIPTION_FIELD_NUMBER: _ClassVar[int] + DISABLE_VIRTUAL_ADDRESSING_FIELD_NUMBER: _ClassVar[int] + ENDPOINT_FIELD_NUMBER: _ClassVar[int] + HTTP: ImportFromS3Settings.Scheme + HTTPS: ImportFromS3Settings.Scheme + ITEMS_FIELD_NUMBER: _ClassVar[int] + NUMBER_OF_RETRIES_FIELD_NUMBER: _ClassVar[int] + REGION_FIELD_NUMBER: _ClassVar[int] + SCHEME_FIELD_NUMBER: _ClassVar[int] + SECRET_KEY_FIELD_NUMBER: _ClassVar[int] + UNSPECIFIED: ImportFromS3Settings.Scheme + access_key: str + bucket: str + description: str + disable_virtual_addressing: bool + endpoint: str + items: _containers.RepeatedCompositeFieldContainer[ImportFromS3Settings.Item] + number_of_retries: int + region: str + scheme: ImportFromS3Settings.Scheme + secret_key: str + def __init__(self, endpoint: _Optional[str] = ..., scheme: _Optional[_Union[ImportFromS3Settings.Scheme, str]] = ..., bucket: _Optional[str] = ..., access_key: _Optional[str] = ..., secret_key: _Optional[str] = ..., items: _Optional[_Iterable[_Union[ImportFromS3Settings.Item, _Mapping]]] = ..., description: _Optional[str] = ..., number_of_retries: _Optional[int] = ..., region: _Optional[str] = ..., disable_virtual_addressing: bool = ...) -> None: ... + +class ImportItemProgress(_message.Message): + __slots__ = ["end_time", "parts_completed", "parts_total", "start_time"] + END_TIME_FIELD_NUMBER: _ClassVar[int] + PARTS_COMPLETED_FIELD_NUMBER: _ClassVar[int] + PARTS_TOTAL_FIELD_NUMBER: _ClassVar[int] + START_TIME_FIELD_NUMBER: _ClassVar[int] + end_time: _timestamp_pb2.Timestamp + parts_completed: int + parts_total: int + start_time: _timestamp_pb2.Timestamp + def __init__(self, parts_total: _Optional[int] = ..., parts_completed: _Optional[int] = ..., start_time: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., end_time: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ...) -> None: ... + +class ImportProgress(_message.Message): + __slots__ = [] + class Progress(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + PROGRESS_BUILD_INDEXES: ImportProgress.Progress + PROGRESS_CANCELLATION: ImportProgress.Progress + PROGRESS_CANCELLED: ImportProgress.Progress + PROGRESS_DONE: ImportProgress.Progress + PROGRESS_PREPARING: ImportProgress.Progress + PROGRESS_TRANSFER_DATA: ImportProgress.Progress + PROGRESS_UNSPECIFIED: ImportProgress.Progress + def __init__(self) -> None: ... + +class YdbDumpFormat(_message.Message): + __slots__ = ["columns"] + COLUMNS_FIELD_NUMBER: _ClassVar[int] + columns: _containers.RepeatedScalarFieldContainer[str] + def __init__(self, columns: _Optional[_Iterable[str]] = ...) -> None: ... diff --git a/ydb/_grpc/v5/protos/ydb_import_pb2_grpc.py b/ydb/_grpc/v5/protos/ydb_import_pb2_grpc.py new file mode 100644 index 00000000..2daafffe --- /dev/null +++ b/ydb/_grpc/v5/protos/ydb_import_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/ydb/_grpc/v5/protos/ydb_issue_message_pb2.py b/ydb/_grpc/v5/protos/ydb_issue_message_pb2.py new file mode 100644 index 00000000..17d967c2 --- /dev/null +++ b/ydb/_grpc/v5/protos/ydb_issue_message_pb2.py @@ -0,0 +1,29 @@ +# -*- coding: utf-8 -*- +# flake8: noqa +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: protos/ydb_issue_message.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1eprotos/ydb_issue_message.proto\x12\tYdb.Issue\"\x91\x02\n\x0cIssueMessage\x12\x32\n\x08position\x18\x01 \x01(\x0b\x32 .Ydb.Issue.IssueMessage.Position\x12\x0f\n\x07message\x18\x02 \x01(\t\x12\x36\n\x0c\x65nd_position\x18\x03 \x01(\x0b\x32 .Ydb.Issue.IssueMessage.Position\x12\x12\n\nissue_code\x18\x04 \x01(\r\x12\x10\n\x08severity\x18\x05 \x01(\r\x12\'\n\x06issues\x18\x06 \x03(\x0b\x32\x17.Ydb.Issue.IssueMessage\x1a\x35\n\x08Position\x12\x0b\n\x03row\x18\x01 \x01(\r\x12\x0e\n\x06\x63olumn\x18\x02 \x01(\r\x12\x0c\n\x04\x66ile\x18\x03 \x01(\tBM\n\x0etech.ydb.protoZ8github.com/ydb-platform/ydb-go-genproto/protos/Ydb_Issue\xf8\x01\x01\x62\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'protos.ydb_issue_message_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\016tech.ydb.protoZ8github.com/ydb-platform/ydb-go-genproto/protos/Ydb_Issue\370\001\001' + _ISSUEMESSAGE._serialized_start=46 + _ISSUEMESSAGE._serialized_end=319 + _ISSUEMESSAGE_POSITION._serialized_start=266 + _ISSUEMESSAGE_POSITION._serialized_end=319 +# @@protoc_insertion_point(module_scope) diff --git a/ydb/_grpc/v5/protos/ydb_issue_message_pb2.pyi b/ydb/_grpc/v5/protos/ydb_issue_message_pb2.pyi new file mode 100644 index 00000000..fc6c476e --- /dev/null +++ b/ydb/_grpc/v5/protos/ydb_issue_message_pb2.pyi @@ -0,0 +1,31 @@ +from google.protobuf.internal import containers as _containers +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union + +DESCRIPTOR: _descriptor.FileDescriptor + +class IssueMessage(_message.Message): + __slots__ = ["end_position", "issue_code", "issues", "message", "position", "severity"] + class Position(_message.Message): + __slots__ = ["column", "file", "row"] + COLUMN_FIELD_NUMBER: _ClassVar[int] + FILE_FIELD_NUMBER: _ClassVar[int] + ROW_FIELD_NUMBER: _ClassVar[int] + column: int + file: str + row: int + def __init__(self, row: _Optional[int] = ..., column: _Optional[int] = ..., file: _Optional[str] = ...) -> None: ... + END_POSITION_FIELD_NUMBER: _ClassVar[int] + ISSUES_FIELD_NUMBER: _ClassVar[int] + ISSUE_CODE_FIELD_NUMBER: _ClassVar[int] + MESSAGE_FIELD_NUMBER: _ClassVar[int] + POSITION_FIELD_NUMBER: _ClassVar[int] + SEVERITY_FIELD_NUMBER: _ClassVar[int] + end_position: IssueMessage.Position + issue_code: int + issues: _containers.RepeatedCompositeFieldContainer[IssueMessage] + message: str + position: IssueMessage.Position + severity: int + def __init__(self, position: _Optional[_Union[IssueMessage.Position, _Mapping]] = ..., message: _Optional[str] = ..., end_position: _Optional[_Union[IssueMessage.Position, _Mapping]] = ..., issue_code: _Optional[int] = ..., severity: _Optional[int] = ..., issues: _Optional[_Iterable[_Union[IssueMessage, _Mapping]]] = ...) -> None: ... diff --git a/ydb/_grpc/v5/protos/ydb_issue_message_pb2_grpc.py b/ydb/_grpc/v5/protos/ydb_issue_message_pb2_grpc.py new file mode 100644 index 00000000..2daafffe --- /dev/null +++ b/ydb/_grpc/v5/protos/ydb_issue_message_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/ydb/_grpc/v5/protos/ydb_monitoring_pb2.py b/ydb/_grpc/v5/protos/ydb_monitoring_pb2.py new file mode 100644 index 00000000..915d60a3 --- /dev/null +++ b/ydb/_grpc/v5/protos/ydb_monitoring_pb2.py @@ -0,0 +1,90 @@ +# -*- coding: utf-8 -*- +# flake8: noqa +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: protos/ydb_monitoring.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from ydb._grpc.v5.protos import ydb_operation_pb2 as protos_dot_ydb__operation__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1bprotos/ydb_monitoring.proto\x12\x0eYdb.Monitoring\x1a\x1aprotos/ydb_operation.proto\"g\n\nStatusFlag\"Y\n\x06Status\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x08\n\x04GREY\x10\x01\x12\t\n\x05GREEN\x10\x02\x12\x08\n\x04\x42LUE\x10\x03\x12\n\n\x06YELLOW\x10\x04\x12\n\n\x06ORANGE\x10\x05\x12\x07\n\x03RED\x10\x06\"\xbe\x01\n\x10SelfCheckRequest\x12\x39\n\x10operation_params\x18\x01 \x01(\x0b\x32\x1f.Ydb.Operations.OperationParams\x12\x1d\n\x15return_verbose_status\x18\x02 \x01(\x08\x12\x39\n\x0eminimum_status\x18\x03 \x01(\x0e\x32!.Ydb.Monitoring.StatusFlag.Status\x12\x15\n\rmaximum_level\x18\x04 \x01(\r\"A\n\x11SelfCheckResponse\x12,\n\toperation\x18\x01 \x01(\x0b\x32\x19.Ydb.Operations.Operation\"M\n\x10NodeCheckRequest\x12\x39\n\x10operation_params\x18\x01 \x01(\x0b\x32\x1f.Ydb.Operations.OperationParams\"A\n\x11NodeCheckResponse\x12,\n\toperation\x18\x01 \x01(\x0b\x32\x19.Ydb.Operations.Operation\"g\n\tSelfCheck\"Z\n\x06Result\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x08\n\x04GOOD\x10\x01\x12\x0c\n\x08\x44\x45GRADED\x10\x02\x12\x18\n\x14MAINTENANCE_REQUIRED\x10\x03\x12\r\n\tEMERGENCY\x10\x04\"T\n\x12StoragePDiskStatus\x12\n\n\x02id\x18\x01 \x01(\t\x12\x32\n\x07overall\x18\x02 \x01(\x0e\x32!.Ydb.Monitoring.StatusFlag.Status\"\xc0\x01\n\x12StorageVDiskStatus\x12\n\n\x02id\x18\x01 \x01(\t\x12\x32\n\x07overall\x18\x02 \x01(\x0e\x32!.Ydb.Monitoring.StatusFlag.Status\x12\x37\n\x0cvdisk_status\x18\x03 \x01(\x0e\x32!.Ydb.Monitoring.StatusFlag.Status\x12\x31\n\x05pdisk\x18\x04 \x01(\x0b\x32\".Ydb.Monitoring.StoragePDiskStatus\"\x88\x01\n\x12StorageGroupStatus\x12\n\n\x02id\x18\x01 \x01(\t\x12\x32\n\x07overall\x18\x02 \x01(\x0e\x32!.Ydb.Monitoring.StatusFlag.Status\x12\x32\n\x06vdisks\x18\x03 \x03(\x0b\x32\".Ydb.Monitoring.StorageVDiskStatus\"\x87\x01\n\x11StoragePoolStatus\x12\n\n\x02id\x18\x01 \x01(\t\x12\x32\n\x07overall\x18\x02 \x01(\x0e\x32!.Ydb.Monitoring.StatusFlag.Status\x12\x32\n\x06groups\x18\x03 \x03(\x0b\x32\".Ydb.Monitoring.StorageGroupStatus\"u\n\rStorageStatus\x12\x32\n\x07overall\x18\x01 \x01(\x0e\x32!.Ydb.Monitoring.StatusFlag.Status\x12\x30\n\x05pools\x18\x02 \x03(\x0b\x32!.Ydb.Monitoring.StoragePoolStatus\"\x81\x01\n\x13\x43omputeTabletStatus\x12\x32\n\x07overall\x18\x01 \x01(\x0e\x32!.Ydb.Monitoring.StatusFlag.Status\x12\x0c\n\x04type\x18\x02 \x01(\t\x12\r\n\x05state\x18\x03 \x01(\t\x12\r\n\x05\x63ount\x18\x04 \x01(\r\x12\n\n\x02id\x18\x05 \x03(\t\"c\n\x10ThreadPoolStatus\x12\x32\n\x07overall\x18\x01 \x01(\x0e\x32!.Ydb.Monitoring.StatusFlag.Status\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\r\n\x05usage\x18\x03 \x01(\x02\"d\n\x11LoadAverageStatus\x12\x32\n\x07overall\x18\x01 \x01(\x0e\x32!.Ydb.Monitoring.StatusFlag.Status\x12\x0c\n\x04load\x18\x02 \x01(\x02\x12\r\n\x05\x63ores\x18\x03 \x01(\r\"\xeb\x01\n\x11\x43omputeNodeStatus\x12\n\n\x02id\x18\x01 \x01(\t\x12\x32\n\x07overall\x18\x02 \x01(\x0e\x32!.Ydb.Monitoring.StatusFlag.Status\x12\x34\n\x07tablets\x18\x03 \x03(\x0b\x32#.Ydb.Monitoring.ComputeTabletStatus\x12/\n\x05pools\x18\x04 \x03(\x0b\x32 .Ydb.Monitoring.ThreadPoolStatus\x12/\n\x04load\x18\x05 \x01(\x0b\x32!.Ydb.Monitoring.LoadAverageStatus\"\xab\x01\n\rComputeStatus\x12\x32\n\x07overall\x18\x01 \x01(\x0e\x32!.Ydb.Monitoring.StatusFlag.Status\x12\x30\n\x05nodes\x18\x02 \x03(\x0b\x32!.Ydb.Monitoring.ComputeNodeStatus\x12\x34\n\x07tablets\x18\x03 \x03(\x0b\x32#.Ydb.Monitoring.ComputeTabletStatus\"6\n\x0cLocationNode\x12\n\n\x02id\x18\x01 \x01(\r\x12\x0c\n\x04host\x18\x02 \x01(\t\x12\x0c\n\x04port\x18\x03 \x01(\r\"0\n\x14LocationStoragePDisk\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0c\n\x04path\x18\x02 \x01(\t\"W\n\x14LocationStorageVDisk\x12\n\n\x02id\x18\x01 \x03(\t\x12\x33\n\x05pdisk\x18\x02 \x03(\x0b\x32$.Ydb.Monitoring.LocationStoragePDisk\"W\n\x14LocationStorageGroup\x12\n\n\x02id\x18\x01 \x03(\t\x12\x33\n\x05vdisk\x18\x02 \x01(\x0b\x32$.Ydb.Monitoring.LocationStorageVDisk\"X\n\x13LocationStoragePool\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x33\n\x05group\x18\x02 \x01(\x0b\x32$.Ydb.Monitoring.LocationStorageGroup\"p\n\x0fLocationStorage\x12*\n\x04node\x18\x01 \x01(\x0b\x32\x1c.Ydb.Monitoring.LocationNode\x12\x31\n\x04pool\x18\x02 \x01(\x0b\x32#.Ydb.Monitoring.LocationStoragePool\"#\n\x13LocationComputePool\x12\x0c\n\x04name\x18\x01 \x01(\t\"@\n\x15LocationComputeTablet\x12\x0c\n\x04type\x18\x01 \x01(\t\x12\n\n\x02id\x18\x02 \x03(\t\x12\r\n\x05\x63ount\x18\x03 \x01(\r\"\xa7\x01\n\x0fLocationCompute\x12*\n\x04node\x18\x01 \x01(\x0b\x32\x1c.Ydb.Monitoring.LocationNode\x12\x31\n\x04pool\x18\x02 \x01(\x0b\x32#.Ydb.Monitoring.LocationComputePool\x12\x35\n\x06tablet\x18\x03 \x01(\x0b\x32%.Ydb.Monitoring.LocationComputeTablet\" \n\x10LocationDatabase\x12\x0c\n\x04name\x18\x01 \x01(\t\"\xa2\x01\n\x08Location\x12\x30\n\x07storage\x18\x01 \x01(\x0b\x32\x1f.Ydb.Monitoring.LocationStorage\x12\x30\n\x07\x63ompute\x18\x02 \x01(\x0b\x32\x1f.Ydb.Monitoring.LocationCompute\x12\x32\n\x08\x64\x61tabase\x18\x03 \x01(\x0b\x32 .Ydb.Monitoring.LocationDatabase\"\xd2\x01\n\x08IssueLog\x12\n\n\x02id\x18\x01 \x01(\t\x12\x31\n\x06status\x18\x02 \x01(\x0e\x32!.Ydb.Monitoring.StatusFlag.Status\x12\x0f\n\x07message\x18\x03 \x01(\t\x12*\n\x08location\x18\x04 \x01(\x0b\x32\x18.Ydb.Monitoring.Location\x12\x0e\n\x06reason\x18\x05 \x03(\t\x12\x0c\n\x04type\x18\x06 \x01(\t\x12\r\n\x05level\x18\x07 \x01(\r\x12\x0e\n\x06listed\x18\x08 \x01(\r\x12\r\n\x05\x63ount\x18\t \x01(\r\"\xb2\x01\n\x0e\x44\x61tabaseStatus\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x32\n\x07overall\x18\x02 \x01(\x0e\x32!.Ydb.Monitoring.StatusFlag.Status\x12.\n\x07storage\x18\x03 \x01(\x0b\x32\x1d.Ydb.Monitoring.StorageStatus\x12.\n\x07\x63ompute\x18\x04 \x01(\x0b\x32\x1d.Ydb.Monitoring.ComputeStatus\"\xb4\x01\n\x0fSelfCheckResult\x12;\n\x11self_check_result\x18\x01 \x01(\x0e\x32 .Ydb.Monitoring.SelfCheck.Result\x12+\n\tissue_log\x18\x02 \x03(\x0b\x32\x18.Ydb.Monitoring.IssueLog\x12\x37\n\x0f\x64\x61tabase_status\x18\x03 \x03(\x0b\x32\x1e.Ydb.Monitoring.DatabaseStatusBo\n\x19tech.ydb.proto.monitoringB\x10MonitoringProtosZ=github.com/ydb-platform/ydb-go-genproto/protos/Ydb_Monitoring\xf8\x01\x01\x62\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'protos.ydb_monitoring_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\031tech.ydb.proto.monitoringB\020MonitoringProtosZ=github.com/ydb-platform/ydb-go-genproto/protos/Ydb_Monitoring\370\001\001' + _STATUSFLAG._serialized_start=75 + _STATUSFLAG._serialized_end=178 + _STATUSFLAG_STATUS._serialized_start=89 + _STATUSFLAG_STATUS._serialized_end=178 + _SELFCHECKREQUEST._serialized_start=181 + _SELFCHECKREQUEST._serialized_end=371 + _SELFCHECKRESPONSE._serialized_start=373 + _SELFCHECKRESPONSE._serialized_end=438 + _NODECHECKREQUEST._serialized_start=440 + _NODECHECKREQUEST._serialized_end=517 + _NODECHECKRESPONSE._serialized_start=519 + _NODECHECKRESPONSE._serialized_end=584 + _SELFCHECK._serialized_start=586 + _SELFCHECK._serialized_end=689 + _SELFCHECK_RESULT._serialized_start=599 + _SELFCHECK_RESULT._serialized_end=689 + _STORAGEPDISKSTATUS._serialized_start=691 + _STORAGEPDISKSTATUS._serialized_end=775 + _STORAGEVDISKSTATUS._serialized_start=778 + _STORAGEVDISKSTATUS._serialized_end=970 + _STORAGEGROUPSTATUS._serialized_start=973 + _STORAGEGROUPSTATUS._serialized_end=1109 + _STORAGEPOOLSTATUS._serialized_start=1112 + _STORAGEPOOLSTATUS._serialized_end=1247 + _STORAGESTATUS._serialized_start=1249 + _STORAGESTATUS._serialized_end=1366 + _COMPUTETABLETSTATUS._serialized_start=1369 + _COMPUTETABLETSTATUS._serialized_end=1498 + _THREADPOOLSTATUS._serialized_start=1500 + _THREADPOOLSTATUS._serialized_end=1599 + _LOADAVERAGESTATUS._serialized_start=1601 + _LOADAVERAGESTATUS._serialized_end=1701 + _COMPUTENODESTATUS._serialized_start=1704 + _COMPUTENODESTATUS._serialized_end=1939 + _COMPUTESTATUS._serialized_start=1942 + _COMPUTESTATUS._serialized_end=2113 + _LOCATIONNODE._serialized_start=2115 + _LOCATIONNODE._serialized_end=2169 + _LOCATIONSTORAGEPDISK._serialized_start=2171 + _LOCATIONSTORAGEPDISK._serialized_end=2219 + _LOCATIONSTORAGEVDISK._serialized_start=2221 + _LOCATIONSTORAGEVDISK._serialized_end=2308 + _LOCATIONSTORAGEGROUP._serialized_start=2310 + _LOCATIONSTORAGEGROUP._serialized_end=2397 + _LOCATIONSTORAGEPOOL._serialized_start=2399 + _LOCATIONSTORAGEPOOL._serialized_end=2487 + _LOCATIONSTORAGE._serialized_start=2489 + _LOCATIONSTORAGE._serialized_end=2601 + _LOCATIONCOMPUTEPOOL._serialized_start=2603 + _LOCATIONCOMPUTEPOOL._serialized_end=2638 + _LOCATIONCOMPUTETABLET._serialized_start=2640 + _LOCATIONCOMPUTETABLET._serialized_end=2704 + _LOCATIONCOMPUTE._serialized_start=2707 + _LOCATIONCOMPUTE._serialized_end=2874 + _LOCATIONDATABASE._serialized_start=2876 + _LOCATIONDATABASE._serialized_end=2908 + _LOCATION._serialized_start=2911 + _LOCATION._serialized_end=3073 + _ISSUELOG._serialized_start=3076 + _ISSUELOG._serialized_end=3286 + _DATABASESTATUS._serialized_start=3289 + _DATABASESTATUS._serialized_end=3467 + _SELFCHECKRESULT._serialized_start=3470 + _SELFCHECKRESULT._serialized_end=3650 +# @@protoc_insertion_point(module_scope) diff --git a/ydb/_grpc/v5/protos/ydb_monitoring_pb2.pyi b/ydb/_grpc/v5/protos/ydb_monitoring_pb2.pyi new file mode 100644 index 00000000..01ccd0b9 --- /dev/null +++ b/ydb/_grpc/v5/protos/ydb_monitoring_pb2.pyi @@ -0,0 +1,304 @@ +from protos import ydb_operation_pb2 as _ydb_operation_pb2 +from google.protobuf.internal import containers as _containers +from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union + +DESCRIPTOR: _descriptor.FileDescriptor + +class ComputeNodeStatus(_message.Message): + __slots__ = ["id", "load", "overall", "pools", "tablets"] + ID_FIELD_NUMBER: _ClassVar[int] + LOAD_FIELD_NUMBER: _ClassVar[int] + OVERALL_FIELD_NUMBER: _ClassVar[int] + POOLS_FIELD_NUMBER: _ClassVar[int] + TABLETS_FIELD_NUMBER: _ClassVar[int] + id: str + load: LoadAverageStatus + overall: StatusFlag.Status + pools: _containers.RepeatedCompositeFieldContainer[ThreadPoolStatus] + tablets: _containers.RepeatedCompositeFieldContainer[ComputeTabletStatus] + def __init__(self, id: _Optional[str] = ..., overall: _Optional[_Union[StatusFlag.Status, str]] = ..., tablets: _Optional[_Iterable[_Union[ComputeTabletStatus, _Mapping]]] = ..., pools: _Optional[_Iterable[_Union[ThreadPoolStatus, _Mapping]]] = ..., load: _Optional[_Union[LoadAverageStatus, _Mapping]] = ...) -> None: ... + +class ComputeStatus(_message.Message): + __slots__ = ["nodes", "overall", "tablets"] + NODES_FIELD_NUMBER: _ClassVar[int] + OVERALL_FIELD_NUMBER: _ClassVar[int] + TABLETS_FIELD_NUMBER: _ClassVar[int] + nodes: _containers.RepeatedCompositeFieldContainer[ComputeNodeStatus] + overall: StatusFlag.Status + tablets: _containers.RepeatedCompositeFieldContainer[ComputeTabletStatus] + def __init__(self, overall: _Optional[_Union[StatusFlag.Status, str]] = ..., nodes: _Optional[_Iterable[_Union[ComputeNodeStatus, _Mapping]]] = ..., tablets: _Optional[_Iterable[_Union[ComputeTabletStatus, _Mapping]]] = ...) -> None: ... + +class ComputeTabletStatus(_message.Message): + __slots__ = ["count", "id", "overall", "state", "type"] + COUNT_FIELD_NUMBER: _ClassVar[int] + ID_FIELD_NUMBER: _ClassVar[int] + OVERALL_FIELD_NUMBER: _ClassVar[int] + STATE_FIELD_NUMBER: _ClassVar[int] + TYPE_FIELD_NUMBER: _ClassVar[int] + count: int + id: _containers.RepeatedScalarFieldContainer[str] + overall: StatusFlag.Status + state: str + type: str + def __init__(self, overall: _Optional[_Union[StatusFlag.Status, str]] = ..., type: _Optional[str] = ..., state: _Optional[str] = ..., count: _Optional[int] = ..., id: _Optional[_Iterable[str]] = ...) -> None: ... + +class DatabaseStatus(_message.Message): + __slots__ = ["compute", "name", "overall", "storage"] + COMPUTE_FIELD_NUMBER: _ClassVar[int] + NAME_FIELD_NUMBER: _ClassVar[int] + OVERALL_FIELD_NUMBER: _ClassVar[int] + STORAGE_FIELD_NUMBER: _ClassVar[int] + compute: ComputeStatus + name: str + overall: StatusFlag.Status + storage: StorageStatus + def __init__(self, name: _Optional[str] = ..., overall: _Optional[_Union[StatusFlag.Status, str]] = ..., storage: _Optional[_Union[StorageStatus, _Mapping]] = ..., compute: _Optional[_Union[ComputeStatus, _Mapping]] = ...) -> None: ... + +class IssueLog(_message.Message): + __slots__ = ["count", "id", "level", "listed", "location", "message", "reason", "status", "type"] + COUNT_FIELD_NUMBER: _ClassVar[int] + ID_FIELD_NUMBER: _ClassVar[int] + LEVEL_FIELD_NUMBER: _ClassVar[int] + LISTED_FIELD_NUMBER: _ClassVar[int] + LOCATION_FIELD_NUMBER: _ClassVar[int] + MESSAGE_FIELD_NUMBER: _ClassVar[int] + REASON_FIELD_NUMBER: _ClassVar[int] + STATUS_FIELD_NUMBER: _ClassVar[int] + TYPE_FIELD_NUMBER: _ClassVar[int] + count: int + id: str + level: int + listed: int + location: Location + message: str + reason: _containers.RepeatedScalarFieldContainer[str] + status: StatusFlag.Status + type: str + def __init__(self, id: _Optional[str] = ..., status: _Optional[_Union[StatusFlag.Status, str]] = ..., message: _Optional[str] = ..., location: _Optional[_Union[Location, _Mapping]] = ..., reason: _Optional[_Iterable[str]] = ..., type: _Optional[str] = ..., level: _Optional[int] = ..., listed: _Optional[int] = ..., count: _Optional[int] = ...) -> None: ... + +class LoadAverageStatus(_message.Message): + __slots__ = ["cores", "load", "overall"] + CORES_FIELD_NUMBER: _ClassVar[int] + LOAD_FIELD_NUMBER: _ClassVar[int] + OVERALL_FIELD_NUMBER: _ClassVar[int] + cores: int + load: float + overall: StatusFlag.Status + def __init__(self, overall: _Optional[_Union[StatusFlag.Status, str]] = ..., load: _Optional[float] = ..., cores: _Optional[int] = ...) -> None: ... + +class Location(_message.Message): + __slots__ = ["compute", "database", "storage"] + COMPUTE_FIELD_NUMBER: _ClassVar[int] + DATABASE_FIELD_NUMBER: _ClassVar[int] + STORAGE_FIELD_NUMBER: _ClassVar[int] + compute: LocationCompute + database: LocationDatabase + storage: LocationStorage + def __init__(self, storage: _Optional[_Union[LocationStorage, _Mapping]] = ..., compute: _Optional[_Union[LocationCompute, _Mapping]] = ..., database: _Optional[_Union[LocationDatabase, _Mapping]] = ...) -> None: ... + +class LocationCompute(_message.Message): + __slots__ = ["node", "pool", "tablet"] + NODE_FIELD_NUMBER: _ClassVar[int] + POOL_FIELD_NUMBER: _ClassVar[int] + TABLET_FIELD_NUMBER: _ClassVar[int] + node: LocationNode + pool: LocationComputePool + tablet: LocationComputeTablet + def __init__(self, node: _Optional[_Union[LocationNode, _Mapping]] = ..., pool: _Optional[_Union[LocationComputePool, _Mapping]] = ..., tablet: _Optional[_Union[LocationComputeTablet, _Mapping]] = ...) -> None: ... + +class LocationComputePool(_message.Message): + __slots__ = ["name"] + NAME_FIELD_NUMBER: _ClassVar[int] + name: str + def __init__(self, name: _Optional[str] = ...) -> None: ... + +class LocationComputeTablet(_message.Message): + __slots__ = ["count", "id", "type"] + COUNT_FIELD_NUMBER: _ClassVar[int] + ID_FIELD_NUMBER: _ClassVar[int] + TYPE_FIELD_NUMBER: _ClassVar[int] + count: int + id: _containers.RepeatedScalarFieldContainer[str] + type: str + def __init__(self, type: _Optional[str] = ..., id: _Optional[_Iterable[str]] = ..., count: _Optional[int] = ...) -> None: ... + +class LocationDatabase(_message.Message): + __slots__ = ["name"] + NAME_FIELD_NUMBER: _ClassVar[int] + name: str + def __init__(self, name: _Optional[str] = ...) -> None: ... + +class LocationNode(_message.Message): + __slots__ = ["host", "id", "port"] + HOST_FIELD_NUMBER: _ClassVar[int] + ID_FIELD_NUMBER: _ClassVar[int] + PORT_FIELD_NUMBER: _ClassVar[int] + host: str + id: int + port: int + def __init__(self, id: _Optional[int] = ..., host: _Optional[str] = ..., port: _Optional[int] = ...) -> None: ... + +class LocationStorage(_message.Message): + __slots__ = ["node", "pool"] + NODE_FIELD_NUMBER: _ClassVar[int] + POOL_FIELD_NUMBER: _ClassVar[int] + node: LocationNode + pool: LocationStoragePool + def __init__(self, node: _Optional[_Union[LocationNode, _Mapping]] = ..., pool: _Optional[_Union[LocationStoragePool, _Mapping]] = ...) -> None: ... + +class LocationStorageGroup(_message.Message): + __slots__ = ["id", "vdisk"] + ID_FIELD_NUMBER: _ClassVar[int] + VDISK_FIELD_NUMBER: _ClassVar[int] + id: _containers.RepeatedScalarFieldContainer[str] + vdisk: LocationStorageVDisk + def __init__(self, id: _Optional[_Iterable[str]] = ..., vdisk: _Optional[_Union[LocationStorageVDisk, _Mapping]] = ...) -> None: ... + +class LocationStoragePDisk(_message.Message): + __slots__ = ["id", "path"] + ID_FIELD_NUMBER: _ClassVar[int] + PATH_FIELD_NUMBER: _ClassVar[int] + id: str + path: str + def __init__(self, id: _Optional[str] = ..., path: _Optional[str] = ...) -> None: ... + +class LocationStoragePool(_message.Message): + __slots__ = ["group", "name"] + GROUP_FIELD_NUMBER: _ClassVar[int] + NAME_FIELD_NUMBER: _ClassVar[int] + group: LocationStorageGroup + name: str + def __init__(self, name: _Optional[str] = ..., group: _Optional[_Union[LocationStorageGroup, _Mapping]] = ...) -> None: ... + +class LocationStorageVDisk(_message.Message): + __slots__ = ["id", "pdisk"] + ID_FIELD_NUMBER: _ClassVar[int] + PDISK_FIELD_NUMBER: _ClassVar[int] + id: _containers.RepeatedScalarFieldContainer[str] + pdisk: _containers.RepeatedCompositeFieldContainer[LocationStoragePDisk] + def __init__(self, id: _Optional[_Iterable[str]] = ..., pdisk: _Optional[_Iterable[_Union[LocationStoragePDisk, _Mapping]]] = ...) -> None: ... + +class NodeCheckRequest(_message.Message): + __slots__ = ["operation_params"] + OPERATION_PARAMS_FIELD_NUMBER: _ClassVar[int] + operation_params: _ydb_operation_pb2.OperationParams + def __init__(self, operation_params: _Optional[_Union[_ydb_operation_pb2.OperationParams, _Mapping]] = ...) -> None: ... + +class NodeCheckResponse(_message.Message): + __slots__ = ["operation"] + OPERATION_FIELD_NUMBER: _ClassVar[int] + operation: _ydb_operation_pb2.Operation + def __init__(self, operation: _Optional[_Union[_ydb_operation_pb2.Operation, _Mapping]] = ...) -> None: ... + +class SelfCheck(_message.Message): + __slots__ = [] + class Result(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + DEGRADED: SelfCheck.Result + EMERGENCY: SelfCheck.Result + GOOD: SelfCheck.Result + MAINTENANCE_REQUIRED: SelfCheck.Result + UNSPECIFIED: SelfCheck.Result + def __init__(self) -> None: ... + +class SelfCheckRequest(_message.Message): + __slots__ = ["maximum_level", "minimum_status", "operation_params", "return_verbose_status"] + MAXIMUM_LEVEL_FIELD_NUMBER: _ClassVar[int] + MINIMUM_STATUS_FIELD_NUMBER: _ClassVar[int] + OPERATION_PARAMS_FIELD_NUMBER: _ClassVar[int] + RETURN_VERBOSE_STATUS_FIELD_NUMBER: _ClassVar[int] + maximum_level: int + minimum_status: StatusFlag.Status + operation_params: _ydb_operation_pb2.OperationParams + return_verbose_status: bool + def __init__(self, operation_params: _Optional[_Union[_ydb_operation_pb2.OperationParams, _Mapping]] = ..., return_verbose_status: bool = ..., minimum_status: _Optional[_Union[StatusFlag.Status, str]] = ..., maximum_level: _Optional[int] = ...) -> None: ... + +class SelfCheckResponse(_message.Message): + __slots__ = ["operation"] + OPERATION_FIELD_NUMBER: _ClassVar[int] + operation: _ydb_operation_pb2.Operation + def __init__(self, operation: _Optional[_Union[_ydb_operation_pb2.Operation, _Mapping]] = ...) -> None: ... + +class SelfCheckResult(_message.Message): + __slots__ = ["database_status", "issue_log", "self_check_result"] + DATABASE_STATUS_FIELD_NUMBER: _ClassVar[int] + ISSUE_LOG_FIELD_NUMBER: _ClassVar[int] + SELF_CHECK_RESULT_FIELD_NUMBER: _ClassVar[int] + database_status: _containers.RepeatedCompositeFieldContainer[DatabaseStatus] + issue_log: _containers.RepeatedCompositeFieldContainer[IssueLog] + self_check_result: SelfCheck.Result + def __init__(self, self_check_result: _Optional[_Union[SelfCheck.Result, str]] = ..., issue_log: _Optional[_Iterable[_Union[IssueLog, _Mapping]]] = ..., database_status: _Optional[_Iterable[_Union[DatabaseStatus, _Mapping]]] = ...) -> None: ... + +class StatusFlag(_message.Message): + __slots__ = [] + class Status(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + BLUE: StatusFlag.Status + GREEN: StatusFlag.Status + GREY: StatusFlag.Status + ORANGE: StatusFlag.Status + RED: StatusFlag.Status + UNSPECIFIED: StatusFlag.Status + YELLOW: StatusFlag.Status + def __init__(self) -> None: ... + +class StorageGroupStatus(_message.Message): + __slots__ = ["id", "overall", "vdisks"] + ID_FIELD_NUMBER: _ClassVar[int] + OVERALL_FIELD_NUMBER: _ClassVar[int] + VDISKS_FIELD_NUMBER: _ClassVar[int] + id: str + overall: StatusFlag.Status + vdisks: _containers.RepeatedCompositeFieldContainer[StorageVDiskStatus] + def __init__(self, id: _Optional[str] = ..., overall: _Optional[_Union[StatusFlag.Status, str]] = ..., vdisks: _Optional[_Iterable[_Union[StorageVDiskStatus, _Mapping]]] = ...) -> None: ... + +class StoragePDiskStatus(_message.Message): + __slots__ = ["id", "overall"] + ID_FIELD_NUMBER: _ClassVar[int] + OVERALL_FIELD_NUMBER: _ClassVar[int] + id: str + overall: StatusFlag.Status + def __init__(self, id: _Optional[str] = ..., overall: _Optional[_Union[StatusFlag.Status, str]] = ...) -> None: ... + +class StoragePoolStatus(_message.Message): + __slots__ = ["groups", "id", "overall"] + GROUPS_FIELD_NUMBER: _ClassVar[int] + ID_FIELD_NUMBER: _ClassVar[int] + OVERALL_FIELD_NUMBER: _ClassVar[int] + groups: _containers.RepeatedCompositeFieldContainer[StorageGroupStatus] + id: str + overall: StatusFlag.Status + def __init__(self, id: _Optional[str] = ..., overall: _Optional[_Union[StatusFlag.Status, str]] = ..., groups: _Optional[_Iterable[_Union[StorageGroupStatus, _Mapping]]] = ...) -> None: ... + +class StorageStatus(_message.Message): + __slots__ = ["overall", "pools"] + OVERALL_FIELD_NUMBER: _ClassVar[int] + POOLS_FIELD_NUMBER: _ClassVar[int] + overall: StatusFlag.Status + pools: _containers.RepeatedCompositeFieldContainer[StoragePoolStatus] + def __init__(self, overall: _Optional[_Union[StatusFlag.Status, str]] = ..., pools: _Optional[_Iterable[_Union[StoragePoolStatus, _Mapping]]] = ...) -> None: ... + +class StorageVDiskStatus(_message.Message): + __slots__ = ["id", "overall", "pdisk", "vdisk_status"] + ID_FIELD_NUMBER: _ClassVar[int] + OVERALL_FIELD_NUMBER: _ClassVar[int] + PDISK_FIELD_NUMBER: _ClassVar[int] + VDISK_STATUS_FIELD_NUMBER: _ClassVar[int] + id: str + overall: StatusFlag.Status + pdisk: StoragePDiskStatus + vdisk_status: StatusFlag.Status + def __init__(self, id: _Optional[str] = ..., overall: _Optional[_Union[StatusFlag.Status, str]] = ..., vdisk_status: _Optional[_Union[StatusFlag.Status, str]] = ..., pdisk: _Optional[_Union[StoragePDiskStatus, _Mapping]] = ...) -> None: ... + +class ThreadPoolStatus(_message.Message): + __slots__ = ["name", "overall", "usage"] + NAME_FIELD_NUMBER: _ClassVar[int] + OVERALL_FIELD_NUMBER: _ClassVar[int] + USAGE_FIELD_NUMBER: _ClassVar[int] + name: str + overall: StatusFlag.Status + usage: float + def __init__(self, overall: _Optional[_Union[StatusFlag.Status, str]] = ..., name: _Optional[str] = ..., usage: _Optional[float] = ...) -> None: ... diff --git a/ydb/_grpc/v5/protos/ydb_monitoring_pb2_grpc.py b/ydb/_grpc/v5/protos/ydb_monitoring_pb2_grpc.py new file mode 100644 index 00000000..2daafffe --- /dev/null +++ b/ydb/_grpc/v5/protos/ydb_monitoring_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/ydb/_grpc/v5/protos/ydb_operation_pb2.py b/ydb/_grpc/v5/protos/ydb_operation_pb2.py new file mode 100644 index 00000000..959b0026 --- /dev/null +++ b/ydb/_grpc/v5/protos/ydb_operation_pb2.py @@ -0,0 +1,67 @@ +# -*- coding: utf-8 -*- +# flake8: noqa +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: protos/ydb_operation.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.protobuf import any_pb2 as google_dot_protobuf_dot_any__pb2 +from google.protobuf import duration_pb2 as google_dot_protobuf_dot_duration__pb2 +from ydb._grpc.v5.protos.annotations import validation_pb2 as protos_dot_annotations_dot_validation__pb2 +from ydb._grpc.v5.protos import ydb_common_pb2 as protos_dot_ydb__common__pb2 +from ydb._grpc.v5.protos import ydb_issue_message_pb2 as protos_dot_ydb__issue__message__pb2 +from ydb._grpc.v5.protos import ydb_status_codes_pb2 as protos_dot_ydb__status__codes__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1aprotos/ydb_operation.proto\x12\x0eYdb.Operations\x1a\x19google/protobuf/any.proto\x1a\x1egoogle/protobuf/duration.proto\x1a#protos/annotations/validation.proto\x1a\x17protos/ydb_common.proto\x1a\x1eprotos/ydb_issue_message.proto\x1a\x1dprotos/ydb_status_codes.proto\"\xb6\x03\n\x0fOperationParams\x12\x45\n\x0eoperation_mode\x18\x01 \x01(\x0e\x32-.Ydb.Operations.OperationParams.OperationMode\x12\x34\n\x11operation_timeout\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration\x12/\n\x0c\x63\x61ncel_after\x18\x03 \x01(\x0b\x32\x19.google.protobuf.Duration\x12M\n\x06labels\x18\x04 \x03(\x0b\x32+.Ydb.Operations.OperationParams.LabelsEntryB\x10\xaa\xe6*\x05\n\x03\x18\x80\x01\xa2\xe6*\x03\x18\x80\x01\x12\x31\n\x10report_cost_info\x18\x05 \x01(\x0e\x32\x17.Ydb.FeatureFlag.Status\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"D\n\rOperationMode\x12\x1e\n\x1aOPERATION_MODE_UNSPECIFIED\x10\x00\x12\x08\n\x04SYNC\x10\x01\x12\t\n\x05\x41SYNC\x10\x02\"\'\n\x13GetOperationRequest\x12\x10\n\x02id\x18\x01 \x01(\tB\x04\x90\xe6*\x01\"D\n\x14GetOperationResponse\x12,\n\toperation\x18\x01 \x01(\x0b\x32\x19.Ydb.Operations.Operation\"*\n\x16\x43\x61ncelOperationRequest\x12\x10\n\x02id\x18\x01 \x01(\tB\x04\x90\xe6*\x01\"m\n\x17\x43\x61ncelOperationResponse\x12)\n\x06status\x18\x01 \x01(\x0e\x32\x19.Ydb.StatusIds.StatusCode\x12\'\n\x06issues\x18\x02 \x03(\x0b\x32\x17.Ydb.Issue.IssueMessage\"*\n\x16\x46orgetOperationRequest\x12\x10\n\x02id\x18\x01 \x01(\tB\x04\x90\xe6*\x01\"m\n\x17\x46orgetOperationResponse\x12)\n\x06status\x18\x01 \x01(\x0e\x32\x19.Ydb.StatusIds.StatusCode\x12\'\n\x06issues\x18\x02 \x03(\x0b\x32\x17.Ydb.Issue.IssueMessage\"R\n\x15ListOperationsRequest\x12\x12\n\x04kind\x18\x01 \x01(\tB\x04\x90\xe6*\x01\x12\x11\n\tpage_size\x18\x02 \x01(\x04\x12\x12\n\npage_token\x18\x03 \x01(\t\"\xb4\x01\n\x16ListOperationsResponse\x12)\n\x06status\x18\x01 \x01(\x0e\x32\x19.Ydb.StatusIds.StatusCode\x12\'\n\x06issues\x18\x02 \x03(\x0b\x32\x17.Ydb.Issue.IssueMessage\x12-\n\noperations\x18\x03 \x03(\x0b\x32\x19.Ydb.Operations.Operation\x12\x17\n\x0fnext_page_token\x18\x04 \x01(\t\"\xea\x01\n\tOperation\x12\n\n\x02id\x18\x01 \x01(\t\x12\r\n\x05ready\x18\x02 \x01(\x08\x12)\n\x06status\x18\x03 \x01(\x0e\x32\x19.Ydb.StatusIds.StatusCode\x12\'\n\x06issues\x18\x04 \x03(\x0b\x32\x17.Ydb.Issue.IssueMessage\x12$\n\x06result\x18\x05 \x01(\x0b\x32\x14.google.protobuf.Any\x12&\n\x08metadata\x18\x06 \x01(\x0b\x32\x14.google.protobuf.Any\x12 \n\tcost_info\x18\x07 \x01(\x0b\x32\r.Ydb.CostInfoBc\n\x0etech.ydb.protoB\x0fOperationProtosZ=github.com/ydb-platform/ydb-go-genproto/protos/Ydb_Operations\xf8\x01\x01\x62\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'protos.ydb_operation_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\016tech.ydb.protoB\017OperationProtosZ=github.com/ydb-platform/ydb-go-genproto/protos/Ydb_Operations\370\001\001' + _OPERATIONPARAMS_LABELSENTRY._options = None + _OPERATIONPARAMS_LABELSENTRY._serialized_options = b'8\001' + _OPERATIONPARAMS.fields_by_name['labels']._options = None + _OPERATIONPARAMS.fields_by_name['labels']._serialized_options = b'\252\346*\005\n\003\030\200\001\242\346*\003\030\200\001' + _GETOPERATIONREQUEST.fields_by_name['id']._options = None + _GETOPERATIONREQUEST.fields_by_name['id']._serialized_options = b'\220\346*\001' + _CANCELOPERATIONREQUEST.fields_by_name['id']._options = None + _CANCELOPERATIONREQUEST.fields_by_name['id']._serialized_options = b'\220\346*\001' + _FORGETOPERATIONREQUEST.fields_by_name['id']._options = None + _FORGETOPERATIONREQUEST.fields_by_name['id']._serialized_options = b'\220\346*\001' + _LISTOPERATIONSREQUEST.fields_by_name['kind']._options = None + _LISTOPERATIONSREQUEST.fields_by_name['kind']._serialized_options = b'\220\346*\001' + _OPERATIONPARAMS._serialized_start=231 + _OPERATIONPARAMS._serialized_end=669 + _OPERATIONPARAMS_LABELSENTRY._serialized_start=554 + _OPERATIONPARAMS_LABELSENTRY._serialized_end=599 + _OPERATIONPARAMS_OPERATIONMODE._serialized_start=601 + _OPERATIONPARAMS_OPERATIONMODE._serialized_end=669 + _GETOPERATIONREQUEST._serialized_start=671 + _GETOPERATIONREQUEST._serialized_end=710 + _GETOPERATIONRESPONSE._serialized_start=712 + _GETOPERATIONRESPONSE._serialized_end=780 + _CANCELOPERATIONREQUEST._serialized_start=782 + _CANCELOPERATIONREQUEST._serialized_end=824 + _CANCELOPERATIONRESPONSE._serialized_start=826 + _CANCELOPERATIONRESPONSE._serialized_end=935 + _FORGETOPERATIONREQUEST._serialized_start=937 + _FORGETOPERATIONREQUEST._serialized_end=979 + _FORGETOPERATIONRESPONSE._serialized_start=981 + _FORGETOPERATIONRESPONSE._serialized_end=1090 + _LISTOPERATIONSREQUEST._serialized_start=1092 + _LISTOPERATIONSREQUEST._serialized_end=1174 + _LISTOPERATIONSRESPONSE._serialized_start=1177 + _LISTOPERATIONSRESPONSE._serialized_end=1357 + _OPERATION._serialized_start=1360 + _OPERATION._serialized_end=1594 +# @@protoc_insertion_point(module_scope) diff --git a/ydb/_grpc/v5/protos/ydb_operation_pb2.pyi b/ydb/_grpc/v5/protos/ydb_operation_pb2.pyi new file mode 100644 index 00000000..bbff59c4 --- /dev/null +++ b/ydb/_grpc/v5/protos/ydb_operation_pb2.pyi @@ -0,0 +1,119 @@ +from google.protobuf import any_pb2 as _any_pb2 +from google.protobuf import duration_pb2 as _duration_pb2 +from protos.annotations import validation_pb2 as _validation_pb2 +from protos import ydb_common_pb2 as _ydb_common_pb2 +from protos import ydb_issue_message_pb2 as _ydb_issue_message_pb2 +from protos import ydb_status_codes_pb2 as _ydb_status_codes_pb2 +from google.protobuf.internal import containers as _containers +from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union + +DESCRIPTOR: _descriptor.FileDescriptor + +class CancelOperationRequest(_message.Message): + __slots__ = ["id"] + ID_FIELD_NUMBER: _ClassVar[int] + id: str + def __init__(self, id: _Optional[str] = ...) -> None: ... + +class CancelOperationResponse(_message.Message): + __slots__ = ["issues", "status"] + ISSUES_FIELD_NUMBER: _ClassVar[int] + STATUS_FIELD_NUMBER: _ClassVar[int] + issues: _containers.RepeatedCompositeFieldContainer[_ydb_issue_message_pb2.IssueMessage] + status: _ydb_status_codes_pb2.StatusIds.StatusCode + def __init__(self, status: _Optional[_Union[_ydb_status_codes_pb2.StatusIds.StatusCode, str]] = ..., issues: _Optional[_Iterable[_Union[_ydb_issue_message_pb2.IssueMessage, _Mapping]]] = ...) -> None: ... + +class ForgetOperationRequest(_message.Message): + __slots__ = ["id"] + ID_FIELD_NUMBER: _ClassVar[int] + id: str + def __init__(self, id: _Optional[str] = ...) -> None: ... + +class ForgetOperationResponse(_message.Message): + __slots__ = ["issues", "status"] + ISSUES_FIELD_NUMBER: _ClassVar[int] + STATUS_FIELD_NUMBER: _ClassVar[int] + issues: _containers.RepeatedCompositeFieldContainer[_ydb_issue_message_pb2.IssueMessage] + status: _ydb_status_codes_pb2.StatusIds.StatusCode + def __init__(self, status: _Optional[_Union[_ydb_status_codes_pb2.StatusIds.StatusCode, str]] = ..., issues: _Optional[_Iterable[_Union[_ydb_issue_message_pb2.IssueMessage, _Mapping]]] = ...) -> None: ... + +class GetOperationRequest(_message.Message): + __slots__ = ["id"] + ID_FIELD_NUMBER: _ClassVar[int] + id: str + def __init__(self, id: _Optional[str] = ...) -> None: ... + +class GetOperationResponse(_message.Message): + __slots__ = ["operation"] + OPERATION_FIELD_NUMBER: _ClassVar[int] + operation: Operation + def __init__(self, operation: _Optional[_Union[Operation, _Mapping]] = ...) -> None: ... + +class ListOperationsRequest(_message.Message): + __slots__ = ["kind", "page_size", "page_token"] + KIND_FIELD_NUMBER: _ClassVar[int] + PAGE_SIZE_FIELD_NUMBER: _ClassVar[int] + PAGE_TOKEN_FIELD_NUMBER: _ClassVar[int] + kind: str + page_size: int + page_token: str + def __init__(self, kind: _Optional[str] = ..., page_size: _Optional[int] = ..., page_token: _Optional[str] = ...) -> None: ... + +class ListOperationsResponse(_message.Message): + __slots__ = ["issues", "next_page_token", "operations", "status"] + ISSUES_FIELD_NUMBER: _ClassVar[int] + NEXT_PAGE_TOKEN_FIELD_NUMBER: _ClassVar[int] + OPERATIONS_FIELD_NUMBER: _ClassVar[int] + STATUS_FIELD_NUMBER: _ClassVar[int] + issues: _containers.RepeatedCompositeFieldContainer[_ydb_issue_message_pb2.IssueMessage] + next_page_token: str + operations: _containers.RepeatedCompositeFieldContainer[Operation] + status: _ydb_status_codes_pb2.StatusIds.StatusCode + def __init__(self, status: _Optional[_Union[_ydb_status_codes_pb2.StatusIds.StatusCode, str]] = ..., issues: _Optional[_Iterable[_Union[_ydb_issue_message_pb2.IssueMessage, _Mapping]]] = ..., operations: _Optional[_Iterable[_Union[Operation, _Mapping]]] = ..., next_page_token: _Optional[str] = ...) -> None: ... + +class Operation(_message.Message): + __slots__ = ["cost_info", "id", "issues", "metadata", "ready", "result", "status"] + COST_INFO_FIELD_NUMBER: _ClassVar[int] + ID_FIELD_NUMBER: _ClassVar[int] + ISSUES_FIELD_NUMBER: _ClassVar[int] + METADATA_FIELD_NUMBER: _ClassVar[int] + READY_FIELD_NUMBER: _ClassVar[int] + RESULT_FIELD_NUMBER: _ClassVar[int] + STATUS_FIELD_NUMBER: _ClassVar[int] + cost_info: _ydb_common_pb2.CostInfo + id: str + issues: _containers.RepeatedCompositeFieldContainer[_ydb_issue_message_pb2.IssueMessage] + metadata: _any_pb2.Any + ready: bool + result: _any_pb2.Any + status: _ydb_status_codes_pb2.StatusIds.StatusCode + def __init__(self, id: _Optional[str] = ..., ready: bool = ..., status: _Optional[_Union[_ydb_status_codes_pb2.StatusIds.StatusCode, str]] = ..., issues: _Optional[_Iterable[_Union[_ydb_issue_message_pb2.IssueMessage, _Mapping]]] = ..., result: _Optional[_Union[_any_pb2.Any, _Mapping]] = ..., metadata: _Optional[_Union[_any_pb2.Any, _Mapping]] = ..., cost_info: _Optional[_Union[_ydb_common_pb2.CostInfo, _Mapping]] = ...) -> None: ... + +class OperationParams(_message.Message): + __slots__ = ["cancel_after", "labels", "operation_mode", "operation_timeout", "report_cost_info"] + class OperationMode(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + class LabelsEntry(_message.Message): + __slots__ = ["key", "value"] + KEY_FIELD_NUMBER: _ClassVar[int] + VALUE_FIELD_NUMBER: _ClassVar[int] + key: str + value: str + def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ... + ASYNC: OperationParams.OperationMode + CANCEL_AFTER_FIELD_NUMBER: _ClassVar[int] + LABELS_FIELD_NUMBER: _ClassVar[int] + OPERATION_MODE_FIELD_NUMBER: _ClassVar[int] + OPERATION_MODE_UNSPECIFIED: OperationParams.OperationMode + OPERATION_TIMEOUT_FIELD_NUMBER: _ClassVar[int] + REPORT_COST_INFO_FIELD_NUMBER: _ClassVar[int] + SYNC: OperationParams.OperationMode + cancel_after: _duration_pb2.Duration + labels: _containers.ScalarMap[str, str] + operation_mode: OperationParams.OperationMode + operation_timeout: _duration_pb2.Duration + report_cost_info: _ydb_common_pb2.FeatureFlag.Status + def __init__(self, operation_mode: _Optional[_Union[OperationParams.OperationMode, str]] = ..., operation_timeout: _Optional[_Union[_duration_pb2.Duration, _Mapping]] = ..., cancel_after: _Optional[_Union[_duration_pb2.Duration, _Mapping]] = ..., labels: _Optional[_Mapping[str, str]] = ..., report_cost_info: _Optional[_Union[_ydb_common_pb2.FeatureFlag.Status, str]] = ...) -> None: ... diff --git a/ydb/_grpc/v5/protos/ydb_operation_pb2_grpc.py b/ydb/_grpc/v5/protos/ydb_operation_pb2_grpc.py new file mode 100644 index 00000000..2daafffe --- /dev/null +++ b/ydb/_grpc/v5/protos/ydb_operation_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/ydb/_grpc/v5/protos/ydb_query_pb2.py b/ydb/_grpc/v5/protos/ydb_query_pb2.py new file mode 100644 index 00000000..124341c3 --- /dev/null +++ b/ydb/_grpc/v5/protos/ydb_query_pb2.py @@ -0,0 +1,144 @@ +# -*- coding: utf-8 -*- +# flake8: noqa +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: protos/ydb_query.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.protobuf import duration_pb2 as google_dot_protobuf_dot_duration__pb2 +from ydb._grpc.v5.protos.annotations import validation_pb2 as protos_dot_annotations_dot_validation__pb2 +from ydb._grpc.v5.protos import ydb_issue_message_pb2 as protos_dot_ydb__issue__message__pb2 +from ydb._grpc.v5.protos import ydb_operation_pb2 as protos_dot_ydb__operation__pb2 +from ydb._grpc.v5.protos import ydb_query_stats_pb2 as protos_dot_ydb__query__stats__pb2 +from ydb._grpc.v5.protos import ydb_status_codes_pb2 as protos_dot_ydb__status__codes__pb2 +from ydb._grpc.v5.protos import ydb_value_pb2 as protos_dot_ydb__value__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x16protos/ydb_query.proto\x12\tYdb.Query\x1a\x1egoogle/protobuf/duration.proto\x1a#protos/annotations/validation.proto\x1a\x1eprotos/ydb_issue_message.proto\x1a\x1aprotos/ydb_operation.proto\x1a\x1cprotos/ydb_query_stats.proto\x1a\x1dprotos/ydb_status_codes.proto\x1a\x16protos/ydb_value.proto\"\x16\n\x14\x43reateSessionRequest\"\xa3\x01\n\x15\x43reateSessionResponse\x12)\n\x06status\x18\x01 \x01(\x0e\x32\x19.Ydb.StatusIds.StatusCode\x12\'\n\x06issues\x18\x02 \x03(\x0b\x32\x17.Ydb.Issue.IssueMessage\x12\x1b\n\nsession_id\x18\x03 \x01(\tB\x07\xa2\xe6*\x03\x18\x80\x08\x12\x19\n\x07node_id\x18\x04 \x01(\x03\x42\x08\xb2\xe6*\x04>= 0\"3\n\x14\x44\x65leteSessionRequest\x12\x1b\n\nsession_id\x18\x01 \x01(\tB\x07\xa2\xe6*\x03\x18\x80\x08\"k\n\x15\x44\x65leteSessionResponse\x12)\n\x06status\x18\x01 \x01(\x0e\x32\x19.Ydb.StatusIds.StatusCode\x12\'\n\x06issues\x18\x02 \x03(\x0b\x32\x17.Ydb.Issue.IssueMessage\"3\n\x14\x41ttachSessionRequest\x12\x1b\n\nsession_id\x18\x01 \x01(\tB\x07\xa2\xe6*\x03\x18\x80\x08\"b\n\x0cSessionState\x12)\n\x06status\x18\x01 \x01(\x0e\x32\x19.Ydb.StatusIds.StatusCode\x12\'\n\x06issues\x18\x02 \x03(\x0b\x32\x17.Ydb.Issue.IssueMessage\"\x1a\n\x18SerializableModeSettings\"6\n\x12OnlineModeSettings\x12 \n\x18\x61llow_inconsistent_reads\x18\x01 \x01(\x08\"\x13\n\x11StaleModeSettings\"\x16\n\x14SnapshotModeSettings\"\x9b\x02\n\x13TransactionSettings\x12\x46\n\x17serializable_read_write\x18\x01 \x01(\x0b\x32#.Ydb.Query.SerializableModeSettingsH\x00\x12\x39\n\x10online_read_only\x18\x02 \x01(\x0b\x32\x1d.Ydb.Query.OnlineModeSettingsH\x00\x12\x37\n\x0fstale_read_only\x18\x03 \x01(\x0b\x32\x1c.Ydb.Query.StaleModeSettingsH\x00\x12=\n\x12snapshot_read_only\x18\x04 \x01(\x0b\x32\x1f.Ydb.Query.SnapshotModeSettingsH\x00\x42\t\n\x07tx_mode\"\x84\x01\n\x12TransactionControl\x12\x18\n\x05tx_id\x18\x01 \x01(\tB\x07\xa2\xe6*\x03\x18\x80\x08H\x00\x12\x32\n\x08\x62\x65gin_tx\x18\x02 \x01(\x0b\x32\x1e.Ydb.Query.TransactionSettingsH\x00\x12\x11\n\tcommit_tx\x18\n \x01(\x08\x42\r\n\x0btx_selector\"k\n\x17\x42\x65ginTransactionRequest\x12\x1b\n\nsession_id\x18\x01 \x01(\tB\x07\xa2\xe6*\x03\x18\x80\x08\x12\x33\n\x0btx_settings\x18\x02 \x01(\x0b\x32\x1e.Ydb.Query.TransactionSettings\"&\n\x0fTransactionMeta\x12\x13\n\x02id\x18\x01 \x01(\tB\x07\xa2\xe6*\x03\x18\x80\x08\"\x9b\x01\n\x18\x42\x65ginTransactionResponse\x12)\n\x06status\x18\x01 \x01(\x0e\x32\x19.Ydb.StatusIds.StatusCode\x12\'\n\x06issues\x18\x02 \x03(\x0b\x32\x17.Ydb.Issue.IssueMessage\x12+\n\x07tx_meta\x18\x03 \x01(\x0b\x32\x1a.Ydb.Query.TransactionMeta\"O\n\x18\x43ommitTransactionRequest\x12\x1b\n\nsession_id\x18\x01 \x01(\tB\x07\xa2\xe6*\x03\x18\x80\x08\x12\x16\n\x05tx_id\x18\x02 \x01(\tB\x07\xa2\xe6*\x03\x18\x80\x08\"o\n\x19\x43ommitTransactionResponse\x12)\n\x06status\x18\x01 \x01(\x0e\x32\x19.Ydb.StatusIds.StatusCode\x12\'\n\x06issues\x18\x02 \x03(\x0b\x32\x17.Ydb.Issue.IssueMessage\"Q\n\x1aRollbackTransactionRequest\x12\x1b\n\nsession_id\x18\x01 \x01(\tB\x07\xa2\xe6*\x03\x18\x80\x08\x12\x16\n\x05tx_id\x18\x02 \x01(\tB\x07\xa2\xe6*\x03\x18\x80\x08\"q\n\x1bRollbackTransactionResponse\x12)\n\x06status\x18\x01 \x01(\x0e\x32\x19.Ydb.StatusIds.StatusCode\x12\'\n\x06issues\x18\x02 \x03(\x0b\x32\x17.Ydb.Issue.IssueMessage\"?\n\x0cQueryContent\x12!\n\x06syntax\x18\x01 \x01(\x0e\x32\x11.Ydb.Query.Syntax\x12\x0c\n\x04text\x18\x02 \x01(\t\"\xe1\x03\n\x13\x45xecuteQueryRequest\x12\x1b\n\nsession_id\x18\x01 \x01(\tB\x07\xa2\xe6*\x03\x18\x80\x08\x12&\n\texec_mode\x18\x02 \x01(\x0e\x32\x13.Ydb.Query.ExecMode\x12\x31\n\ntx_control\x18\x03 \x01(\x0b\x32\x1d.Ydb.Query.TransactionControl\x12\x30\n\rquery_content\x18\x04 \x01(\x0b\x32\x17.Ydb.Query.QueryContentH\x00\x12\x42\n\nparameters\x18\x06 \x03(\x0b\x32..Ydb.Query.ExecuteQueryRequest.ParametersEntry\x12(\n\nstats_mode\x18\x07 \x01(\x0e\x32\x14.Ydb.Query.StatsMode\x12\x1e\n\x16\x63oncurrent_result_sets\x18\x08 \x01(\x08\x12\x34\n\x19response_part_limit_bytes\x18\t \x01(\x03\x42\x11\xb2\xe6*\r[0; 33554432]\x12\x0f\n\x07pool_id\x18\n \x01(\t\x1a\x42\n\x0fParametersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x1e\n\x05value\x18\x02 \x01(\x0b\x32\x0f.Ydb.TypedValue:\x02\x38\x01\x42\x07\n\x05query\"-\n\rResultSetMeta\x12\x1c\n\x07\x63olumns\x18\x01 \x03(\x0b\x32\x0b.Ydb.Column\"\x93\x02\n\x18\x45xecuteQueryResponsePart\x12)\n\x06status\x18\x01 \x01(\x0e\x32\x19.Ydb.StatusIds.StatusCode\x12\'\n\x06issues\x18\x02 \x03(\x0b\x32\x17.Ydb.Issue.IssueMessage\x12\"\n\x10result_set_index\x18\x03 \x01(\x03\x42\x08\xb2\xe6*\x04>= 0\x12\"\n\nresult_set\x18\x04 \x01(\x0b\x32\x0e.Ydb.ResultSet\x12.\n\nexec_stats\x18\x05 \x01(\x0b\x32\x1a.Ydb.TableStats.QueryStats\x12+\n\x07tx_meta\x18\x06 \x01(\x0b\x32\x1a.Ydb.Query.TransactionMeta\"\x9e\x03\n\x14\x45xecuteScriptRequest\x12\x39\n\x10operation_params\x18\x01 \x01(\x0b\x32\x1f.Ydb.Operations.OperationParams\x12&\n\texec_mode\x18\x02 \x01(\x0e\x32\x13.Ydb.Query.ExecMode\x12/\n\x0escript_content\x18\x03 \x01(\x0b\x32\x17.Ydb.Query.QueryContent\x12\x43\n\nparameters\x18\x04 \x03(\x0b\x32/.Ydb.Query.ExecuteScriptRequest.ParametersEntry\x12(\n\nstats_mode\x18\x05 \x01(\x0e\x32\x14.Ydb.Query.StatsMode\x12.\n\x0bresults_ttl\x18\x06 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x0f\n\x07pool_id\x18\x07 \x01(\t\x1a\x42\n\x0fParametersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x1e\n\x05value\x18\x02 \x01(\x0b\x32\x0f.Ydb.TypedValue:\x02\x38\x01\"\x9f\x02\n\x15\x45xecuteScriptMetadata\x12\x1d\n\x0c\x65xecution_id\x18\x01 \x01(\tB\x07\xa2\xe6*\x03\x18\x80\x08\x12*\n\x0b\x65xec_status\x18\x02 \x01(\x0e\x32\x15.Ydb.Query.ExecStatus\x12/\n\x0escript_content\x18\x03 \x01(\x0b\x32\x17.Ydb.Query.QueryContent\x12\x32\n\x10result_sets_meta\x18\x04 \x03(\x0b\x32\x18.Ydb.Query.ResultSetMeta\x12&\n\texec_mode\x18\x05 \x01(\x0e\x32\x13.Ydb.Query.ExecMode\x12.\n\nexec_stats\x18\x06 \x01(\x0b\x32\x1a.Ydb.TableStats.QueryStats\"\x90\x01\n\x19\x46\x65tchScriptResultsRequest\x12\x1d\n\x0coperation_id\x18\x01 \x01(\tB\x07\xa2\xe6*\x03\x18\x80\x08\x12\x18\n\x10result_set_index\x18\x02 \x01(\x03\x12\x1c\n\x0b\x66\x65tch_token\x18\x03 \x01(\tB\x07\xa2\xe6*\x03\x18\x80\x08\x12\x1c\n\nrows_limit\x18\x04 \x01(\x03\x42\x08\xb2\xe6*\x04>= 0\"\xdb\x01\n\x1a\x46\x65tchScriptResultsResponse\x12)\n\x06status\x18\x01 \x01(\x0e\x32\x19.Ydb.StatusIds.StatusCode\x12\'\n\x06issues\x18\x02 \x03(\x0b\x32\x17.Ydb.Issue.IssueMessage\x12\"\n\x10result_set_index\x18\x03 \x01(\x03\x42\x08\xb2\xe6*\x04>= 0\x12\"\n\nresult_set\x18\x04 \x01(\x0b\x32\x0e.Ydb.ResultSet\x12!\n\x10next_fetch_token\x18\x05 \x01(\tB\x07\xa2\xe6*\x03\x18\x80\x08\"9\n\x06Script\x12/\n\x0escript_content\x18\x01 \x01(\x0b\x32\x17.Ydb.Query.QueryContent*B\n\x06Syntax\x12\x16\n\x12SYNTAX_UNSPECIFIED\x10\x00\x12\x11\n\rSYNTAX_YQL_V1\x10\x01\x12\r\n\tSYNTAX_PG\x10\x02*\x86\x01\n\x08\x45xecMode\x12\x19\n\x15\x45XEC_MODE_UNSPECIFIED\x10\x00\x12\x13\n\x0f\x45XEC_MODE_PARSE\x10\n\x12\x16\n\x12\x45XEC_MODE_VALIDATE\x10\x14\x12\x15\n\x11\x45XEC_MODE_EXPLAIN\x10\x1e\x12\x15\n\x11\x45XEC_MODE_EXECUTE\x10\x32\"\x04\x08(\x10(*\x7f\n\tStatsMode\x12\x1a\n\x16STATS_MODE_UNSPECIFIED\x10\x00\x12\x13\n\x0fSTATS_MODE_NONE\x10\n\x12\x14\n\x10STATS_MODE_BASIC\x10\x14\x12\x13\n\x0fSTATS_MODE_FULL\x10\x1e\x12\x16\n\x12STATS_MODE_PROFILE\x10(*\xaa\x01\n\nExecStatus\x12\x1b\n\x17\x45XEC_STATUS_UNSPECIFIED\x10\x00\x12\x18\n\x14\x45XEC_STATUS_STARTING\x10\n\x12\x17\n\x13\x45XEC_STATUS_ABORTED\x10\x14\x12\x19\n\x15\x45XEC_STATUS_CANCELLED\x10\x1e\x12\x19\n\x15\x45XEC_STATUS_COMPLETED\x10(\x12\x16\n\x12\x45XEC_STATUS_FAILED\x10\x32\x42S\n\x14tech.ydb.proto.queryZ8github.com/ydb-platform/ydb-go-genproto/protos/Ydb_Query\xf8\x01\x01\x62\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'protos.ydb_query_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\024tech.ydb.proto.queryZ8github.com/ydb-platform/ydb-go-genproto/protos/Ydb_Query\370\001\001' + _CREATESESSIONRESPONSE.fields_by_name['session_id']._options = None + _CREATESESSIONRESPONSE.fields_by_name['session_id']._serialized_options = b'\242\346*\003\030\200\010' + _CREATESESSIONRESPONSE.fields_by_name['node_id']._options = None + _CREATESESSIONRESPONSE.fields_by_name['node_id']._serialized_options = b'\262\346*\004>= 0' + _DELETESESSIONREQUEST.fields_by_name['session_id']._options = None + _DELETESESSIONREQUEST.fields_by_name['session_id']._serialized_options = b'\242\346*\003\030\200\010' + _ATTACHSESSIONREQUEST.fields_by_name['session_id']._options = None + _ATTACHSESSIONREQUEST.fields_by_name['session_id']._serialized_options = b'\242\346*\003\030\200\010' + _TRANSACTIONCONTROL.fields_by_name['tx_id']._options = None + _TRANSACTIONCONTROL.fields_by_name['tx_id']._serialized_options = b'\242\346*\003\030\200\010' + _BEGINTRANSACTIONREQUEST.fields_by_name['session_id']._options = None + _BEGINTRANSACTIONREQUEST.fields_by_name['session_id']._serialized_options = b'\242\346*\003\030\200\010' + _TRANSACTIONMETA.fields_by_name['id']._options = None + _TRANSACTIONMETA.fields_by_name['id']._serialized_options = b'\242\346*\003\030\200\010' + _COMMITTRANSACTIONREQUEST.fields_by_name['session_id']._options = None + _COMMITTRANSACTIONREQUEST.fields_by_name['session_id']._serialized_options = b'\242\346*\003\030\200\010' + _COMMITTRANSACTIONREQUEST.fields_by_name['tx_id']._options = None + _COMMITTRANSACTIONREQUEST.fields_by_name['tx_id']._serialized_options = b'\242\346*\003\030\200\010' + _ROLLBACKTRANSACTIONREQUEST.fields_by_name['session_id']._options = None + _ROLLBACKTRANSACTIONREQUEST.fields_by_name['session_id']._serialized_options = b'\242\346*\003\030\200\010' + _ROLLBACKTRANSACTIONREQUEST.fields_by_name['tx_id']._options = None + _ROLLBACKTRANSACTIONREQUEST.fields_by_name['tx_id']._serialized_options = b'\242\346*\003\030\200\010' + _EXECUTEQUERYREQUEST_PARAMETERSENTRY._options = None + _EXECUTEQUERYREQUEST_PARAMETERSENTRY._serialized_options = b'8\001' + _EXECUTEQUERYREQUEST.fields_by_name['session_id']._options = None + _EXECUTEQUERYREQUEST.fields_by_name['session_id']._serialized_options = b'\242\346*\003\030\200\010' + _EXECUTEQUERYREQUEST.fields_by_name['response_part_limit_bytes']._options = None + _EXECUTEQUERYREQUEST.fields_by_name['response_part_limit_bytes']._serialized_options = b'\262\346*\r[0; 33554432]' + _EXECUTEQUERYRESPONSEPART.fields_by_name['result_set_index']._options = None + _EXECUTEQUERYRESPONSEPART.fields_by_name['result_set_index']._serialized_options = b'\262\346*\004>= 0' + _EXECUTESCRIPTREQUEST_PARAMETERSENTRY._options = None + _EXECUTESCRIPTREQUEST_PARAMETERSENTRY._serialized_options = b'8\001' + _EXECUTESCRIPTMETADATA.fields_by_name['execution_id']._options = None + _EXECUTESCRIPTMETADATA.fields_by_name['execution_id']._serialized_options = b'\242\346*\003\030\200\010' + _FETCHSCRIPTRESULTSREQUEST.fields_by_name['operation_id']._options = None + _FETCHSCRIPTRESULTSREQUEST.fields_by_name['operation_id']._serialized_options = b'\242\346*\003\030\200\010' + _FETCHSCRIPTRESULTSREQUEST.fields_by_name['fetch_token']._options = None + _FETCHSCRIPTRESULTSREQUEST.fields_by_name['fetch_token']._serialized_options = b'\242\346*\003\030\200\010' + _FETCHSCRIPTRESULTSREQUEST.fields_by_name['rows_limit']._options = None + _FETCHSCRIPTRESULTSREQUEST.fields_by_name['rows_limit']._serialized_options = b'\262\346*\004>= 0' + _FETCHSCRIPTRESULTSRESPONSE.fields_by_name['result_set_index']._options = None + _FETCHSCRIPTRESULTSRESPONSE.fields_by_name['result_set_index']._serialized_options = b'\262\346*\004>= 0' + _FETCHSCRIPTRESULTSRESPONSE.fields_by_name['next_fetch_token']._options = None + _FETCHSCRIPTRESULTSRESPONSE.fields_by_name['next_fetch_token']._serialized_options = b'\242\346*\003\030\200\010' + _SYNTAX._serialized_start=4014 + _SYNTAX._serialized_end=4080 + _EXECMODE._serialized_start=4083 + _EXECMODE._serialized_end=4217 + _STATSMODE._serialized_start=4219 + _STATSMODE._serialized_end=4346 + _EXECSTATUS._serialized_start=4349 + _EXECSTATUS._serialized_end=4519 + _CREATESESSIONREQUEST._serialized_start=251 + _CREATESESSIONREQUEST._serialized_end=273 + _CREATESESSIONRESPONSE._serialized_start=276 + _CREATESESSIONRESPONSE._serialized_end=439 + _DELETESESSIONREQUEST._serialized_start=441 + _DELETESESSIONREQUEST._serialized_end=492 + _DELETESESSIONRESPONSE._serialized_start=494 + _DELETESESSIONRESPONSE._serialized_end=601 + _ATTACHSESSIONREQUEST._serialized_start=603 + _ATTACHSESSIONREQUEST._serialized_end=654 + _SESSIONSTATE._serialized_start=656 + _SESSIONSTATE._serialized_end=754 + _SERIALIZABLEMODESETTINGS._serialized_start=756 + _SERIALIZABLEMODESETTINGS._serialized_end=782 + _ONLINEMODESETTINGS._serialized_start=784 + _ONLINEMODESETTINGS._serialized_end=838 + _STALEMODESETTINGS._serialized_start=840 + _STALEMODESETTINGS._serialized_end=859 + _SNAPSHOTMODESETTINGS._serialized_start=861 + _SNAPSHOTMODESETTINGS._serialized_end=883 + _TRANSACTIONSETTINGS._serialized_start=886 + _TRANSACTIONSETTINGS._serialized_end=1169 + _TRANSACTIONCONTROL._serialized_start=1172 + _TRANSACTIONCONTROL._serialized_end=1304 + _BEGINTRANSACTIONREQUEST._serialized_start=1306 + _BEGINTRANSACTIONREQUEST._serialized_end=1413 + _TRANSACTIONMETA._serialized_start=1415 + _TRANSACTIONMETA._serialized_end=1453 + _BEGINTRANSACTIONRESPONSE._serialized_start=1456 + _BEGINTRANSACTIONRESPONSE._serialized_end=1611 + _COMMITTRANSACTIONREQUEST._serialized_start=1613 + _COMMITTRANSACTIONREQUEST._serialized_end=1692 + _COMMITTRANSACTIONRESPONSE._serialized_start=1694 + _COMMITTRANSACTIONRESPONSE._serialized_end=1805 + _ROLLBACKTRANSACTIONREQUEST._serialized_start=1807 + _ROLLBACKTRANSACTIONREQUEST._serialized_end=1888 + _ROLLBACKTRANSACTIONRESPONSE._serialized_start=1890 + _ROLLBACKTRANSACTIONRESPONSE._serialized_end=2003 + _QUERYCONTENT._serialized_start=2005 + _QUERYCONTENT._serialized_end=2068 + _EXECUTEQUERYREQUEST._serialized_start=2071 + _EXECUTEQUERYREQUEST._serialized_end=2552 + _EXECUTEQUERYREQUEST_PARAMETERSENTRY._serialized_start=2477 + _EXECUTEQUERYREQUEST_PARAMETERSENTRY._serialized_end=2543 + _RESULTSETMETA._serialized_start=2554 + _RESULTSETMETA._serialized_end=2599 + _EXECUTEQUERYRESPONSEPART._serialized_start=2602 + _EXECUTEQUERYRESPONSEPART._serialized_end=2877 + _EXECUTESCRIPTREQUEST._serialized_start=2880 + _EXECUTESCRIPTREQUEST._serialized_end=3294 + _EXECUTESCRIPTREQUEST_PARAMETERSENTRY._serialized_start=2477 + _EXECUTESCRIPTREQUEST_PARAMETERSENTRY._serialized_end=2543 + _EXECUTESCRIPTMETADATA._serialized_start=3297 + _EXECUTESCRIPTMETADATA._serialized_end=3584 + _FETCHSCRIPTRESULTSREQUEST._serialized_start=3587 + _FETCHSCRIPTRESULTSREQUEST._serialized_end=3731 + _FETCHSCRIPTRESULTSRESPONSE._serialized_start=3734 + _FETCHSCRIPTRESULTSRESPONSE._serialized_end=3953 + _SCRIPT._serialized_start=3955 + _SCRIPT._serialized_end=4012 +# @@protoc_insertion_point(module_scope) diff --git a/ydb/_grpc/v5/protos/ydb_query_pb2.pyi b/ydb/_grpc/v5/protos/ydb_query_pb2.pyi new file mode 100644 index 00000000..621827b2 --- /dev/null +++ b/ydb/_grpc/v5/protos/ydb_query_pb2.pyi @@ -0,0 +1,317 @@ +from google.protobuf import duration_pb2 as _duration_pb2 +from protos.annotations import validation_pb2 as _validation_pb2 +from protos import ydb_issue_message_pb2 as _ydb_issue_message_pb2 +from protos import ydb_operation_pb2 as _ydb_operation_pb2 +from protos import ydb_query_stats_pb2 as _ydb_query_stats_pb2 +from protos import ydb_status_codes_pb2 as _ydb_status_codes_pb2 +from protos import ydb_value_pb2 as _ydb_value_pb2 +from google.protobuf.internal import containers as _containers +from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union + +DESCRIPTOR: _descriptor.FileDescriptor +EXEC_MODE_EXECUTE: ExecMode +EXEC_MODE_EXPLAIN: ExecMode +EXEC_MODE_PARSE: ExecMode +EXEC_MODE_UNSPECIFIED: ExecMode +EXEC_MODE_VALIDATE: ExecMode +EXEC_STATUS_ABORTED: ExecStatus +EXEC_STATUS_CANCELLED: ExecStatus +EXEC_STATUS_COMPLETED: ExecStatus +EXEC_STATUS_FAILED: ExecStatus +EXEC_STATUS_STARTING: ExecStatus +EXEC_STATUS_UNSPECIFIED: ExecStatus +STATS_MODE_BASIC: StatsMode +STATS_MODE_FULL: StatsMode +STATS_MODE_NONE: StatsMode +STATS_MODE_PROFILE: StatsMode +STATS_MODE_UNSPECIFIED: StatsMode +SYNTAX_PG: Syntax +SYNTAX_UNSPECIFIED: Syntax +SYNTAX_YQL_V1: Syntax + +class AttachSessionRequest(_message.Message): + __slots__ = ["session_id"] + SESSION_ID_FIELD_NUMBER: _ClassVar[int] + session_id: str + def __init__(self, session_id: _Optional[str] = ...) -> None: ... + +class BeginTransactionRequest(_message.Message): + __slots__ = ["session_id", "tx_settings"] + SESSION_ID_FIELD_NUMBER: _ClassVar[int] + TX_SETTINGS_FIELD_NUMBER: _ClassVar[int] + session_id: str + tx_settings: TransactionSettings + def __init__(self, session_id: _Optional[str] = ..., tx_settings: _Optional[_Union[TransactionSettings, _Mapping]] = ...) -> None: ... + +class BeginTransactionResponse(_message.Message): + __slots__ = ["issues", "status", "tx_meta"] + ISSUES_FIELD_NUMBER: _ClassVar[int] + STATUS_FIELD_NUMBER: _ClassVar[int] + TX_META_FIELD_NUMBER: _ClassVar[int] + issues: _containers.RepeatedCompositeFieldContainer[_ydb_issue_message_pb2.IssueMessage] + status: _ydb_status_codes_pb2.StatusIds.StatusCode + tx_meta: TransactionMeta + def __init__(self, status: _Optional[_Union[_ydb_status_codes_pb2.StatusIds.StatusCode, str]] = ..., issues: _Optional[_Iterable[_Union[_ydb_issue_message_pb2.IssueMessage, _Mapping]]] = ..., tx_meta: _Optional[_Union[TransactionMeta, _Mapping]] = ...) -> None: ... + +class CommitTransactionRequest(_message.Message): + __slots__ = ["session_id", "tx_id"] + SESSION_ID_FIELD_NUMBER: _ClassVar[int] + TX_ID_FIELD_NUMBER: _ClassVar[int] + session_id: str + tx_id: str + def __init__(self, session_id: _Optional[str] = ..., tx_id: _Optional[str] = ...) -> None: ... + +class CommitTransactionResponse(_message.Message): + __slots__ = ["issues", "status"] + ISSUES_FIELD_NUMBER: _ClassVar[int] + STATUS_FIELD_NUMBER: _ClassVar[int] + issues: _containers.RepeatedCompositeFieldContainer[_ydb_issue_message_pb2.IssueMessage] + status: _ydb_status_codes_pb2.StatusIds.StatusCode + def __init__(self, status: _Optional[_Union[_ydb_status_codes_pb2.StatusIds.StatusCode, str]] = ..., issues: _Optional[_Iterable[_Union[_ydb_issue_message_pb2.IssueMessage, _Mapping]]] = ...) -> None: ... + +class CreateSessionRequest(_message.Message): + __slots__ = [] + def __init__(self) -> None: ... + +class CreateSessionResponse(_message.Message): + __slots__ = ["issues", "node_id", "session_id", "status"] + ISSUES_FIELD_NUMBER: _ClassVar[int] + NODE_ID_FIELD_NUMBER: _ClassVar[int] + SESSION_ID_FIELD_NUMBER: _ClassVar[int] + STATUS_FIELD_NUMBER: _ClassVar[int] + issues: _containers.RepeatedCompositeFieldContainer[_ydb_issue_message_pb2.IssueMessage] + node_id: int + session_id: str + status: _ydb_status_codes_pb2.StatusIds.StatusCode + def __init__(self, status: _Optional[_Union[_ydb_status_codes_pb2.StatusIds.StatusCode, str]] = ..., issues: _Optional[_Iterable[_Union[_ydb_issue_message_pb2.IssueMessage, _Mapping]]] = ..., session_id: _Optional[str] = ..., node_id: _Optional[int] = ...) -> None: ... + +class DeleteSessionRequest(_message.Message): + __slots__ = ["session_id"] + SESSION_ID_FIELD_NUMBER: _ClassVar[int] + session_id: str + def __init__(self, session_id: _Optional[str] = ...) -> None: ... + +class DeleteSessionResponse(_message.Message): + __slots__ = ["issues", "status"] + ISSUES_FIELD_NUMBER: _ClassVar[int] + STATUS_FIELD_NUMBER: _ClassVar[int] + issues: _containers.RepeatedCompositeFieldContainer[_ydb_issue_message_pb2.IssueMessage] + status: _ydb_status_codes_pb2.StatusIds.StatusCode + def __init__(self, status: _Optional[_Union[_ydb_status_codes_pb2.StatusIds.StatusCode, str]] = ..., issues: _Optional[_Iterable[_Union[_ydb_issue_message_pb2.IssueMessage, _Mapping]]] = ...) -> None: ... + +class ExecuteQueryRequest(_message.Message): + __slots__ = ["concurrent_result_sets", "exec_mode", "parameters", "pool_id", "query_content", "response_part_limit_bytes", "session_id", "stats_mode", "tx_control"] + class ParametersEntry(_message.Message): + __slots__ = ["key", "value"] + KEY_FIELD_NUMBER: _ClassVar[int] + VALUE_FIELD_NUMBER: _ClassVar[int] + key: str + value: _ydb_value_pb2.TypedValue + def __init__(self, key: _Optional[str] = ..., value: _Optional[_Union[_ydb_value_pb2.TypedValue, _Mapping]] = ...) -> None: ... + CONCURRENT_RESULT_SETS_FIELD_NUMBER: _ClassVar[int] + EXEC_MODE_FIELD_NUMBER: _ClassVar[int] + PARAMETERS_FIELD_NUMBER: _ClassVar[int] + POOL_ID_FIELD_NUMBER: _ClassVar[int] + QUERY_CONTENT_FIELD_NUMBER: _ClassVar[int] + RESPONSE_PART_LIMIT_BYTES_FIELD_NUMBER: _ClassVar[int] + SESSION_ID_FIELD_NUMBER: _ClassVar[int] + STATS_MODE_FIELD_NUMBER: _ClassVar[int] + TX_CONTROL_FIELD_NUMBER: _ClassVar[int] + concurrent_result_sets: bool + exec_mode: ExecMode + parameters: _containers.MessageMap[str, _ydb_value_pb2.TypedValue] + pool_id: str + query_content: QueryContent + response_part_limit_bytes: int + session_id: str + stats_mode: StatsMode + tx_control: TransactionControl + def __init__(self, session_id: _Optional[str] = ..., exec_mode: _Optional[_Union[ExecMode, str]] = ..., tx_control: _Optional[_Union[TransactionControl, _Mapping]] = ..., query_content: _Optional[_Union[QueryContent, _Mapping]] = ..., parameters: _Optional[_Mapping[str, _ydb_value_pb2.TypedValue]] = ..., stats_mode: _Optional[_Union[StatsMode, str]] = ..., concurrent_result_sets: bool = ..., response_part_limit_bytes: _Optional[int] = ..., pool_id: _Optional[str] = ...) -> None: ... + +class ExecuteQueryResponsePart(_message.Message): + __slots__ = ["exec_stats", "issues", "result_set", "result_set_index", "status", "tx_meta"] + EXEC_STATS_FIELD_NUMBER: _ClassVar[int] + ISSUES_FIELD_NUMBER: _ClassVar[int] + RESULT_SET_FIELD_NUMBER: _ClassVar[int] + RESULT_SET_INDEX_FIELD_NUMBER: _ClassVar[int] + STATUS_FIELD_NUMBER: _ClassVar[int] + TX_META_FIELD_NUMBER: _ClassVar[int] + exec_stats: _ydb_query_stats_pb2.QueryStats + issues: _containers.RepeatedCompositeFieldContainer[_ydb_issue_message_pb2.IssueMessage] + result_set: _ydb_value_pb2.ResultSet + result_set_index: int + status: _ydb_status_codes_pb2.StatusIds.StatusCode + tx_meta: TransactionMeta + def __init__(self, status: _Optional[_Union[_ydb_status_codes_pb2.StatusIds.StatusCode, str]] = ..., issues: _Optional[_Iterable[_Union[_ydb_issue_message_pb2.IssueMessage, _Mapping]]] = ..., result_set_index: _Optional[int] = ..., result_set: _Optional[_Union[_ydb_value_pb2.ResultSet, _Mapping]] = ..., exec_stats: _Optional[_Union[_ydb_query_stats_pb2.QueryStats, _Mapping]] = ..., tx_meta: _Optional[_Union[TransactionMeta, _Mapping]] = ...) -> None: ... + +class ExecuteScriptMetadata(_message.Message): + __slots__ = ["exec_mode", "exec_stats", "exec_status", "execution_id", "result_sets_meta", "script_content"] + EXECUTION_ID_FIELD_NUMBER: _ClassVar[int] + EXEC_MODE_FIELD_NUMBER: _ClassVar[int] + EXEC_STATS_FIELD_NUMBER: _ClassVar[int] + EXEC_STATUS_FIELD_NUMBER: _ClassVar[int] + RESULT_SETS_META_FIELD_NUMBER: _ClassVar[int] + SCRIPT_CONTENT_FIELD_NUMBER: _ClassVar[int] + exec_mode: ExecMode + exec_stats: _ydb_query_stats_pb2.QueryStats + exec_status: ExecStatus + execution_id: str + result_sets_meta: _containers.RepeatedCompositeFieldContainer[ResultSetMeta] + script_content: QueryContent + def __init__(self, execution_id: _Optional[str] = ..., exec_status: _Optional[_Union[ExecStatus, str]] = ..., script_content: _Optional[_Union[QueryContent, _Mapping]] = ..., result_sets_meta: _Optional[_Iterable[_Union[ResultSetMeta, _Mapping]]] = ..., exec_mode: _Optional[_Union[ExecMode, str]] = ..., exec_stats: _Optional[_Union[_ydb_query_stats_pb2.QueryStats, _Mapping]] = ...) -> None: ... + +class ExecuteScriptRequest(_message.Message): + __slots__ = ["exec_mode", "operation_params", "parameters", "pool_id", "results_ttl", "script_content", "stats_mode"] + class ParametersEntry(_message.Message): + __slots__ = ["key", "value"] + KEY_FIELD_NUMBER: _ClassVar[int] + VALUE_FIELD_NUMBER: _ClassVar[int] + key: str + value: _ydb_value_pb2.TypedValue + def __init__(self, key: _Optional[str] = ..., value: _Optional[_Union[_ydb_value_pb2.TypedValue, _Mapping]] = ...) -> None: ... + EXEC_MODE_FIELD_NUMBER: _ClassVar[int] + OPERATION_PARAMS_FIELD_NUMBER: _ClassVar[int] + PARAMETERS_FIELD_NUMBER: _ClassVar[int] + POOL_ID_FIELD_NUMBER: _ClassVar[int] + RESULTS_TTL_FIELD_NUMBER: _ClassVar[int] + SCRIPT_CONTENT_FIELD_NUMBER: _ClassVar[int] + STATS_MODE_FIELD_NUMBER: _ClassVar[int] + exec_mode: ExecMode + operation_params: _ydb_operation_pb2.OperationParams + parameters: _containers.MessageMap[str, _ydb_value_pb2.TypedValue] + pool_id: str + results_ttl: _duration_pb2.Duration + script_content: QueryContent + stats_mode: StatsMode + def __init__(self, operation_params: _Optional[_Union[_ydb_operation_pb2.OperationParams, _Mapping]] = ..., exec_mode: _Optional[_Union[ExecMode, str]] = ..., script_content: _Optional[_Union[QueryContent, _Mapping]] = ..., parameters: _Optional[_Mapping[str, _ydb_value_pb2.TypedValue]] = ..., stats_mode: _Optional[_Union[StatsMode, str]] = ..., results_ttl: _Optional[_Union[_duration_pb2.Duration, _Mapping]] = ..., pool_id: _Optional[str] = ...) -> None: ... + +class FetchScriptResultsRequest(_message.Message): + __slots__ = ["fetch_token", "operation_id", "result_set_index", "rows_limit"] + FETCH_TOKEN_FIELD_NUMBER: _ClassVar[int] + OPERATION_ID_FIELD_NUMBER: _ClassVar[int] + RESULT_SET_INDEX_FIELD_NUMBER: _ClassVar[int] + ROWS_LIMIT_FIELD_NUMBER: _ClassVar[int] + fetch_token: str + operation_id: str + result_set_index: int + rows_limit: int + def __init__(self, operation_id: _Optional[str] = ..., result_set_index: _Optional[int] = ..., fetch_token: _Optional[str] = ..., rows_limit: _Optional[int] = ...) -> None: ... + +class FetchScriptResultsResponse(_message.Message): + __slots__ = ["issues", "next_fetch_token", "result_set", "result_set_index", "status"] + ISSUES_FIELD_NUMBER: _ClassVar[int] + NEXT_FETCH_TOKEN_FIELD_NUMBER: _ClassVar[int] + RESULT_SET_FIELD_NUMBER: _ClassVar[int] + RESULT_SET_INDEX_FIELD_NUMBER: _ClassVar[int] + STATUS_FIELD_NUMBER: _ClassVar[int] + issues: _containers.RepeatedCompositeFieldContainer[_ydb_issue_message_pb2.IssueMessage] + next_fetch_token: str + result_set: _ydb_value_pb2.ResultSet + result_set_index: int + status: _ydb_status_codes_pb2.StatusIds.StatusCode + def __init__(self, status: _Optional[_Union[_ydb_status_codes_pb2.StatusIds.StatusCode, str]] = ..., issues: _Optional[_Iterable[_Union[_ydb_issue_message_pb2.IssueMessage, _Mapping]]] = ..., result_set_index: _Optional[int] = ..., result_set: _Optional[_Union[_ydb_value_pb2.ResultSet, _Mapping]] = ..., next_fetch_token: _Optional[str] = ...) -> None: ... + +class OnlineModeSettings(_message.Message): + __slots__ = ["allow_inconsistent_reads"] + ALLOW_INCONSISTENT_READS_FIELD_NUMBER: _ClassVar[int] + allow_inconsistent_reads: bool + def __init__(self, allow_inconsistent_reads: bool = ...) -> None: ... + +class QueryContent(_message.Message): + __slots__ = ["syntax", "text"] + SYNTAX_FIELD_NUMBER: _ClassVar[int] + TEXT_FIELD_NUMBER: _ClassVar[int] + syntax: Syntax + text: str + def __init__(self, syntax: _Optional[_Union[Syntax, str]] = ..., text: _Optional[str] = ...) -> None: ... + +class ResultSetMeta(_message.Message): + __slots__ = ["columns"] + COLUMNS_FIELD_NUMBER: _ClassVar[int] + columns: _containers.RepeatedCompositeFieldContainer[_ydb_value_pb2.Column] + def __init__(self, columns: _Optional[_Iterable[_Union[_ydb_value_pb2.Column, _Mapping]]] = ...) -> None: ... + +class RollbackTransactionRequest(_message.Message): + __slots__ = ["session_id", "tx_id"] + SESSION_ID_FIELD_NUMBER: _ClassVar[int] + TX_ID_FIELD_NUMBER: _ClassVar[int] + session_id: str + tx_id: str + def __init__(self, session_id: _Optional[str] = ..., tx_id: _Optional[str] = ...) -> None: ... + +class RollbackTransactionResponse(_message.Message): + __slots__ = ["issues", "status"] + ISSUES_FIELD_NUMBER: _ClassVar[int] + STATUS_FIELD_NUMBER: _ClassVar[int] + issues: _containers.RepeatedCompositeFieldContainer[_ydb_issue_message_pb2.IssueMessage] + status: _ydb_status_codes_pb2.StatusIds.StatusCode + def __init__(self, status: _Optional[_Union[_ydb_status_codes_pb2.StatusIds.StatusCode, str]] = ..., issues: _Optional[_Iterable[_Union[_ydb_issue_message_pb2.IssueMessage, _Mapping]]] = ...) -> None: ... + +class Script(_message.Message): + __slots__ = ["script_content"] + SCRIPT_CONTENT_FIELD_NUMBER: _ClassVar[int] + script_content: QueryContent + def __init__(self, script_content: _Optional[_Union[QueryContent, _Mapping]] = ...) -> None: ... + +class SerializableModeSettings(_message.Message): + __slots__ = [] + def __init__(self) -> None: ... + +class SessionState(_message.Message): + __slots__ = ["issues", "status"] + ISSUES_FIELD_NUMBER: _ClassVar[int] + STATUS_FIELD_NUMBER: _ClassVar[int] + issues: _containers.RepeatedCompositeFieldContainer[_ydb_issue_message_pb2.IssueMessage] + status: _ydb_status_codes_pb2.StatusIds.StatusCode + def __init__(self, status: _Optional[_Union[_ydb_status_codes_pb2.StatusIds.StatusCode, str]] = ..., issues: _Optional[_Iterable[_Union[_ydb_issue_message_pb2.IssueMessage, _Mapping]]] = ...) -> None: ... + +class SnapshotModeSettings(_message.Message): + __slots__ = [] + def __init__(self) -> None: ... + +class StaleModeSettings(_message.Message): + __slots__ = [] + def __init__(self) -> None: ... + +class TransactionControl(_message.Message): + __slots__ = ["begin_tx", "commit_tx", "tx_id"] + BEGIN_TX_FIELD_NUMBER: _ClassVar[int] + COMMIT_TX_FIELD_NUMBER: _ClassVar[int] + TX_ID_FIELD_NUMBER: _ClassVar[int] + begin_tx: TransactionSettings + commit_tx: bool + tx_id: str + def __init__(self, tx_id: _Optional[str] = ..., begin_tx: _Optional[_Union[TransactionSettings, _Mapping]] = ..., commit_tx: bool = ...) -> None: ... + +class TransactionMeta(_message.Message): + __slots__ = ["id"] + ID_FIELD_NUMBER: _ClassVar[int] + id: str + def __init__(self, id: _Optional[str] = ...) -> None: ... + +class TransactionSettings(_message.Message): + __slots__ = ["online_read_only", "serializable_read_write", "snapshot_read_only", "stale_read_only"] + ONLINE_READ_ONLY_FIELD_NUMBER: _ClassVar[int] + SERIALIZABLE_READ_WRITE_FIELD_NUMBER: _ClassVar[int] + SNAPSHOT_READ_ONLY_FIELD_NUMBER: _ClassVar[int] + STALE_READ_ONLY_FIELD_NUMBER: _ClassVar[int] + online_read_only: OnlineModeSettings + serializable_read_write: SerializableModeSettings + snapshot_read_only: SnapshotModeSettings + stale_read_only: StaleModeSettings + def __init__(self, serializable_read_write: _Optional[_Union[SerializableModeSettings, _Mapping]] = ..., online_read_only: _Optional[_Union[OnlineModeSettings, _Mapping]] = ..., stale_read_only: _Optional[_Union[StaleModeSettings, _Mapping]] = ..., snapshot_read_only: _Optional[_Union[SnapshotModeSettings, _Mapping]] = ...) -> None: ... + +class Syntax(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + +class ExecMode(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + +class StatsMode(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + +class ExecStatus(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] diff --git a/ydb/_grpc/v5/protos/ydb_query_pb2_grpc.py b/ydb/_grpc/v5/protos/ydb_query_pb2_grpc.py new file mode 100644 index 00000000..2daafffe --- /dev/null +++ b/ydb/_grpc/v5/protos/ydb_query_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/ydb/_grpc/v5/protos/ydb_query_stats_pb2.py b/ydb/_grpc/v5/protos/ydb_query_stats_pb2.py new file mode 100644 index 00000000..7ec98938 --- /dev/null +++ b/ydb/_grpc/v5/protos/ydb_query_stats_pb2.py @@ -0,0 +1,35 @@ +# -*- coding: utf-8 -*- +# flake8: noqa +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: protos/ydb_query_stats.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1cprotos/ydb_query_stats.proto\x12\x0eYdb.TableStats\"-\n\x0eOperationStats\x12\x0c\n\x04rows\x18\x01 \x01(\x04\x12\r\n\x05\x62ytes\x18\x02 \x01(\x04\"\xd1\x01\n\x10TableAccessStats\x12\x0c\n\x04name\x18\x01 \x01(\t\x12-\n\x05reads\x18\x03 \x01(\x0b\x32\x1e.Ydb.TableStats.OperationStats\x12/\n\x07updates\x18\x04 \x01(\x0b\x32\x1e.Ydb.TableStats.OperationStats\x12/\n\x07\x64\x65letes\x18\x05 \x01(\x0b\x32\x1e.Ydb.TableStats.OperationStats\x12\x18\n\x10partitions_count\x18\x06 \x01(\x04J\x04\x08\x02\x10\x03\"\xa3\x01\n\x0fQueryPhaseStats\x12\x13\n\x0b\x64uration_us\x18\x01 \x01(\x04\x12\x36\n\x0ctable_access\x18\x02 \x03(\x0b\x32 .Ydb.TableStats.TableAccessStats\x12\x13\n\x0b\x63pu_time_us\x18\x03 \x01(\x04\x12\x17\n\x0f\x61\x66\x66\x65\x63ted_shards\x18\x04 \x01(\x04\x12\x15\n\rliteral_phase\x18\x05 \x01(\x08\"P\n\x10\x43ompilationStats\x12\x12\n\nfrom_cache\x18\x01 \x01(\x08\x12\x13\n\x0b\x64uration_us\x18\x02 \x01(\x04\x12\x13\n\x0b\x63pu_time_us\x18\x03 \x01(\x04\"\xf4\x01\n\nQueryStats\x12\x35\n\x0cquery_phases\x18\x01 \x03(\x0b\x32\x1f.Ydb.TableStats.QueryPhaseStats\x12\x35\n\x0b\x63ompilation\x18\x02 \x01(\x0b\x32 .Ydb.TableStats.CompilationStats\x12\x1b\n\x13process_cpu_time_us\x18\x03 \x01(\x04\x12\x12\n\nquery_plan\x18\x04 \x01(\t\x12\x11\n\tquery_ast\x18\x05 \x01(\t\x12\x19\n\x11total_duration_us\x18\x06 \x01(\x04\x12\x19\n\x11total_cpu_time_us\x18\x07 \x01(\x04\x42R\n\x0etech.ydb.protoZ=github.com/ydb-platform/ydb-go-genproto/protos/Ydb_TableStats\xf8\x01\x01\x62\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'protos.ydb_query_stats_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\016tech.ydb.protoZ=github.com/ydb-platform/ydb-go-genproto/protos/Ydb_TableStats\370\001\001' + _OPERATIONSTATS._serialized_start=48 + _OPERATIONSTATS._serialized_end=93 + _TABLEACCESSSTATS._serialized_start=96 + _TABLEACCESSSTATS._serialized_end=305 + _QUERYPHASESTATS._serialized_start=308 + _QUERYPHASESTATS._serialized_end=471 + _COMPILATIONSTATS._serialized_start=473 + _COMPILATIONSTATS._serialized_end=553 + _QUERYSTATS._serialized_start=556 + _QUERYSTATS._serialized_end=800 +# @@protoc_insertion_point(module_scope) diff --git a/ydb/_grpc/v5/protos/ydb_query_stats_pb2.pyi b/ydb/_grpc/v5/protos/ydb_query_stats_pb2.pyi new file mode 100644 index 00000000..f6936cf4 --- /dev/null +++ b/ydb/_grpc/v5/protos/ydb_query_stats_pb2.pyi @@ -0,0 +1,70 @@ +from google.protobuf.internal import containers as _containers +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union + +DESCRIPTOR: _descriptor.FileDescriptor + +class CompilationStats(_message.Message): + __slots__ = ["cpu_time_us", "duration_us", "from_cache"] + CPU_TIME_US_FIELD_NUMBER: _ClassVar[int] + DURATION_US_FIELD_NUMBER: _ClassVar[int] + FROM_CACHE_FIELD_NUMBER: _ClassVar[int] + cpu_time_us: int + duration_us: int + from_cache: bool + def __init__(self, from_cache: bool = ..., duration_us: _Optional[int] = ..., cpu_time_us: _Optional[int] = ...) -> None: ... + +class OperationStats(_message.Message): + __slots__ = ["bytes", "rows"] + BYTES_FIELD_NUMBER: _ClassVar[int] + ROWS_FIELD_NUMBER: _ClassVar[int] + bytes: int + rows: int + def __init__(self, rows: _Optional[int] = ..., bytes: _Optional[int] = ...) -> None: ... + +class QueryPhaseStats(_message.Message): + __slots__ = ["affected_shards", "cpu_time_us", "duration_us", "literal_phase", "table_access"] + AFFECTED_SHARDS_FIELD_NUMBER: _ClassVar[int] + CPU_TIME_US_FIELD_NUMBER: _ClassVar[int] + DURATION_US_FIELD_NUMBER: _ClassVar[int] + LITERAL_PHASE_FIELD_NUMBER: _ClassVar[int] + TABLE_ACCESS_FIELD_NUMBER: _ClassVar[int] + affected_shards: int + cpu_time_us: int + duration_us: int + literal_phase: bool + table_access: _containers.RepeatedCompositeFieldContainer[TableAccessStats] + def __init__(self, duration_us: _Optional[int] = ..., table_access: _Optional[_Iterable[_Union[TableAccessStats, _Mapping]]] = ..., cpu_time_us: _Optional[int] = ..., affected_shards: _Optional[int] = ..., literal_phase: bool = ...) -> None: ... + +class QueryStats(_message.Message): + __slots__ = ["compilation", "process_cpu_time_us", "query_ast", "query_phases", "query_plan", "total_cpu_time_us", "total_duration_us"] + COMPILATION_FIELD_NUMBER: _ClassVar[int] + PROCESS_CPU_TIME_US_FIELD_NUMBER: _ClassVar[int] + QUERY_AST_FIELD_NUMBER: _ClassVar[int] + QUERY_PHASES_FIELD_NUMBER: _ClassVar[int] + QUERY_PLAN_FIELD_NUMBER: _ClassVar[int] + TOTAL_CPU_TIME_US_FIELD_NUMBER: _ClassVar[int] + TOTAL_DURATION_US_FIELD_NUMBER: _ClassVar[int] + compilation: CompilationStats + process_cpu_time_us: int + query_ast: str + query_phases: _containers.RepeatedCompositeFieldContainer[QueryPhaseStats] + query_plan: str + total_cpu_time_us: int + total_duration_us: int + def __init__(self, query_phases: _Optional[_Iterable[_Union[QueryPhaseStats, _Mapping]]] = ..., compilation: _Optional[_Union[CompilationStats, _Mapping]] = ..., process_cpu_time_us: _Optional[int] = ..., query_plan: _Optional[str] = ..., query_ast: _Optional[str] = ..., total_duration_us: _Optional[int] = ..., total_cpu_time_us: _Optional[int] = ...) -> None: ... + +class TableAccessStats(_message.Message): + __slots__ = ["deletes", "name", "partitions_count", "reads", "updates"] + DELETES_FIELD_NUMBER: _ClassVar[int] + NAME_FIELD_NUMBER: _ClassVar[int] + PARTITIONS_COUNT_FIELD_NUMBER: _ClassVar[int] + READS_FIELD_NUMBER: _ClassVar[int] + UPDATES_FIELD_NUMBER: _ClassVar[int] + deletes: OperationStats + name: str + partitions_count: int + reads: OperationStats + updates: OperationStats + def __init__(self, name: _Optional[str] = ..., reads: _Optional[_Union[OperationStats, _Mapping]] = ..., updates: _Optional[_Union[OperationStats, _Mapping]] = ..., deletes: _Optional[_Union[OperationStats, _Mapping]] = ..., partitions_count: _Optional[int] = ...) -> None: ... diff --git a/ydb/_grpc/v5/protos/ydb_query_stats_pb2_grpc.py b/ydb/_grpc/v5/protos/ydb_query_stats_pb2_grpc.py new file mode 100644 index 00000000..2daafffe --- /dev/null +++ b/ydb/_grpc/v5/protos/ydb_query_stats_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/ydb/_grpc/v5/protos/ydb_rate_limiter_pb2.py b/ydb/_grpc/v5/protos/ydb_rate_limiter_pb2.py new file mode 100644 index 00000000..576ffc45 --- /dev/null +++ b/ydb/_grpc/v5/protos/ydb_rate_limiter_pb2.py @@ -0,0 +1,66 @@ +# -*- coding: utf-8 -*- +# flake8: noqa +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: protos/ydb_rate_limiter.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from ydb._grpc.v5.protos import ydb_operation_pb2 as protos_dot_ydb__operation__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1dprotos/ydb_rate_limiter.proto\x12\x0fYdb.RateLimiter\x1a\x1aprotos/ydb_operation.proto\"\x95\x01\n\x17HierarchicalDrrSettings\x12\x1c\n\x14max_units_per_second\x18\x01 \x01(\x01\x12\"\n\x1amax_burst_size_coefficient\x18\x02 \x01(\x01\x12\x1c\n\x14prefetch_coefficient\x18\x03 \x01(\x01\x12\x1a\n\x12prefetch_watermark\x18\x04 \x01(\x01\"o\n\x08Resource\x12\x15\n\rresource_path\x18\x01 \x01(\t\x12\x44\n\x10hierarchical_drr\x18\x02 \x01(\x0b\x32(.Ydb.RateLimiter.HierarchicalDrrSettingsH\x00\x42\x06\n\x04type\"\x9f\x01\n\x15\x43reateResourceRequest\x12\x39\n\x10operation_params\x18\x01 \x01(\x0b\x32\x1f.Ydb.Operations.OperationParams\x12\x1e\n\x16\x63oordination_node_path\x18\x02 \x01(\t\x12+\n\x08resource\x18\x03 \x01(\x0b\x32\x19.Ydb.RateLimiter.Resource\"F\n\x16\x43reateResourceResponse\x12,\n\toperation\x18\x01 \x01(\x0b\x32\x19.Ydb.Operations.Operation\"\x16\n\x14\x43reateResourceResult\"\x9e\x01\n\x14\x41lterResourceRequest\x12\x39\n\x10operation_params\x18\x01 \x01(\x0b\x32\x1f.Ydb.Operations.OperationParams\x12\x1e\n\x16\x63oordination_node_path\x18\x02 \x01(\t\x12+\n\x08resource\x18\x03 \x01(\x0b\x32\x19.Ydb.RateLimiter.Resource\"E\n\x15\x41lterResourceResponse\x12,\n\toperation\x18\x01 \x01(\x0b\x32\x19.Ydb.Operations.Operation\"\x15\n\x13\x41lterResourceResult\"\x87\x01\n\x13\x44ropResourceRequest\x12\x39\n\x10operation_params\x18\x01 \x01(\x0b\x32\x1f.Ydb.Operations.OperationParams\x12\x1e\n\x16\x63oordination_node_path\x18\x02 \x01(\t\x12\x15\n\rresource_path\x18\x03 \x01(\t\"D\n\x14\x44ropResourceResponse\x12,\n\toperation\x18\x01 \x01(\x0b\x32\x19.Ydb.Operations.Operation\"\x14\n\x12\x44ropResourceResult\"\x9b\x01\n\x14ListResourcesRequest\x12\x39\n\x10operation_params\x18\x01 \x01(\x0b\x32\x1f.Ydb.Operations.OperationParams\x12\x1e\n\x16\x63oordination_node_path\x18\x02 \x01(\t\x12\x15\n\rresource_path\x18\x03 \x01(\t\x12\x11\n\trecursive\x18\x04 \x01(\x08\"E\n\x15ListResourcesResponse\x12,\n\toperation\x18\x01 \x01(\x0b\x32\x19.Ydb.Operations.Operation\"-\n\x13ListResourcesResult\x12\x16\n\x0eresource_paths\x18\x01 \x03(\t\"\x8b\x01\n\x17\x44\x65scribeResourceRequest\x12\x39\n\x10operation_params\x18\x01 \x01(\x0b\x32\x1f.Ydb.Operations.OperationParams\x12\x1e\n\x16\x63oordination_node_path\x18\x02 \x01(\t\x12\x15\n\rresource_path\x18\x03 \x01(\t\"H\n\x18\x44\x65scribeResourceResponse\x12,\n\toperation\x18\x01 \x01(\x0b\x32\x19.Ydb.Operations.Operation\"E\n\x16\x44\x65scribeResourceResult\x12+\n\x08resource\x18\x01 \x01(\x0b\x32\x19.Ydb.RateLimiter.Resource\"\xb7\x01\n\x16\x41\x63quireResourceRequest\x12\x39\n\x10operation_params\x18\x01 \x01(\x0b\x32\x1f.Ydb.Operations.OperationParams\x12\x1e\n\x16\x63oordination_node_path\x18\x02 \x01(\t\x12\x15\n\rresource_path\x18\x03 \x01(\t\x12\x12\n\x08required\x18\x04 \x01(\x04H\x00\x12\x0e\n\x04used\x18\x05 \x01(\x04H\x00\x42\x07\n\x05units\"G\n\x17\x41\x63quireResourceResponse\x12,\n\toperation\x18\x01 \x01(\x0b\x32\x19.Ydb.Operations.Operation\"\x17\n\x15\x41\x63quireResourceResultBu\n\x1btech.ydb.proto.rate_limiterB\x11RateLimiterProtosP\x01Z>github.com/ydb-platform/ydb-go-genproto/protos/Ydb_RateLimiter\xf8\x01\x01\x62\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'protos.ydb_rate_limiter_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\033tech.ydb.proto.rate_limiterB\021RateLimiterProtosP\001Z>github.com/ydb-platform/ydb-go-genproto/protos/Ydb_RateLimiter\370\001\001' + _HIERARCHICALDRRSETTINGS._serialized_start=79 + _HIERARCHICALDRRSETTINGS._serialized_end=228 + _RESOURCE._serialized_start=230 + _RESOURCE._serialized_end=341 + _CREATERESOURCEREQUEST._serialized_start=344 + _CREATERESOURCEREQUEST._serialized_end=503 + _CREATERESOURCERESPONSE._serialized_start=505 + _CREATERESOURCERESPONSE._serialized_end=575 + _CREATERESOURCERESULT._serialized_start=577 + _CREATERESOURCERESULT._serialized_end=599 + _ALTERRESOURCEREQUEST._serialized_start=602 + _ALTERRESOURCEREQUEST._serialized_end=760 + _ALTERRESOURCERESPONSE._serialized_start=762 + _ALTERRESOURCERESPONSE._serialized_end=831 + _ALTERRESOURCERESULT._serialized_start=833 + _ALTERRESOURCERESULT._serialized_end=854 + _DROPRESOURCEREQUEST._serialized_start=857 + _DROPRESOURCEREQUEST._serialized_end=992 + _DROPRESOURCERESPONSE._serialized_start=994 + _DROPRESOURCERESPONSE._serialized_end=1062 + _DROPRESOURCERESULT._serialized_start=1064 + _DROPRESOURCERESULT._serialized_end=1084 + _LISTRESOURCESREQUEST._serialized_start=1087 + _LISTRESOURCESREQUEST._serialized_end=1242 + _LISTRESOURCESRESPONSE._serialized_start=1244 + _LISTRESOURCESRESPONSE._serialized_end=1313 + _LISTRESOURCESRESULT._serialized_start=1315 + _LISTRESOURCESRESULT._serialized_end=1360 + _DESCRIBERESOURCEREQUEST._serialized_start=1363 + _DESCRIBERESOURCEREQUEST._serialized_end=1502 + _DESCRIBERESOURCERESPONSE._serialized_start=1504 + _DESCRIBERESOURCERESPONSE._serialized_end=1576 + _DESCRIBERESOURCERESULT._serialized_start=1578 + _DESCRIBERESOURCERESULT._serialized_end=1647 + _ACQUIRERESOURCEREQUEST._serialized_start=1650 + _ACQUIRERESOURCEREQUEST._serialized_end=1833 + _ACQUIRERESOURCERESPONSE._serialized_start=1835 + _ACQUIRERESOURCERESPONSE._serialized_end=1906 + _ACQUIRERESOURCERESULT._serialized_start=1908 + _ACQUIRERESOURCERESULT._serialized_end=1931 +# @@protoc_insertion_point(module_scope) diff --git a/ydb/_grpc/v5/protos/ydb_rate_limiter_pb2.pyi b/ydb/_grpc/v5/protos/ydb_rate_limiter_pb2.pyi new file mode 100644 index 00000000..de2db8d2 --- /dev/null +++ b/ydb/_grpc/v5/protos/ydb_rate_limiter_pb2.pyi @@ -0,0 +1,157 @@ +from protos import ydb_operation_pb2 as _ydb_operation_pb2 +from google.protobuf.internal import containers as _containers +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union + +DESCRIPTOR: _descriptor.FileDescriptor + +class AcquireResourceRequest(_message.Message): + __slots__ = ["coordination_node_path", "operation_params", "required", "resource_path", "used"] + COORDINATION_NODE_PATH_FIELD_NUMBER: _ClassVar[int] + OPERATION_PARAMS_FIELD_NUMBER: _ClassVar[int] + REQUIRED_FIELD_NUMBER: _ClassVar[int] + RESOURCE_PATH_FIELD_NUMBER: _ClassVar[int] + USED_FIELD_NUMBER: _ClassVar[int] + coordination_node_path: str + operation_params: _ydb_operation_pb2.OperationParams + required: int + resource_path: str + used: int + def __init__(self, operation_params: _Optional[_Union[_ydb_operation_pb2.OperationParams, _Mapping]] = ..., coordination_node_path: _Optional[str] = ..., resource_path: _Optional[str] = ..., required: _Optional[int] = ..., used: _Optional[int] = ...) -> None: ... + +class AcquireResourceResponse(_message.Message): + __slots__ = ["operation"] + OPERATION_FIELD_NUMBER: _ClassVar[int] + operation: _ydb_operation_pb2.Operation + def __init__(self, operation: _Optional[_Union[_ydb_operation_pb2.Operation, _Mapping]] = ...) -> None: ... + +class AcquireResourceResult(_message.Message): + __slots__ = [] + def __init__(self) -> None: ... + +class AlterResourceRequest(_message.Message): + __slots__ = ["coordination_node_path", "operation_params", "resource"] + COORDINATION_NODE_PATH_FIELD_NUMBER: _ClassVar[int] + OPERATION_PARAMS_FIELD_NUMBER: _ClassVar[int] + RESOURCE_FIELD_NUMBER: _ClassVar[int] + coordination_node_path: str + operation_params: _ydb_operation_pb2.OperationParams + resource: Resource + def __init__(self, operation_params: _Optional[_Union[_ydb_operation_pb2.OperationParams, _Mapping]] = ..., coordination_node_path: _Optional[str] = ..., resource: _Optional[_Union[Resource, _Mapping]] = ...) -> None: ... + +class AlterResourceResponse(_message.Message): + __slots__ = ["operation"] + OPERATION_FIELD_NUMBER: _ClassVar[int] + operation: _ydb_operation_pb2.Operation + def __init__(self, operation: _Optional[_Union[_ydb_operation_pb2.Operation, _Mapping]] = ...) -> None: ... + +class AlterResourceResult(_message.Message): + __slots__ = [] + def __init__(self) -> None: ... + +class CreateResourceRequest(_message.Message): + __slots__ = ["coordination_node_path", "operation_params", "resource"] + COORDINATION_NODE_PATH_FIELD_NUMBER: _ClassVar[int] + OPERATION_PARAMS_FIELD_NUMBER: _ClassVar[int] + RESOURCE_FIELD_NUMBER: _ClassVar[int] + coordination_node_path: str + operation_params: _ydb_operation_pb2.OperationParams + resource: Resource + def __init__(self, operation_params: _Optional[_Union[_ydb_operation_pb2.OperationParams, _Mapping]] = ..., coordination_node_path: _Optional[str] = ..., resource: _Optional[_Union[Resource, _Mapping]] = ...) -> None: ... + +class CreateResourceResponse(_message.Message): + __slots__ = ["operation"] + OPERATION_FIELD_NUMBER: _ClassVar[int] + operation: _ydb_operation_pb2.Operation + def __init__(self, operation: _Optional[_Union[_ydb_operation_pb2.Operation, _Mapping]] = ...) -> None: ... + +class CreateResourceResult(_message.Message): + __slots__ = [] + def __init__(self) -> None: ... + +class DescribeResourceRequest(_message.Message): + __slots__ = ["coordination_node_path", "operation_params", "resource_path"] + COORDINATION_NODE_PATH_FIELD_NUMBER: _ClassVar[int] + OPERATION_PARAMS_FIELD_NUMBER: _ClassVar[int] + RESOURCE_PATH_FIELD_NUMBER: _ClassVar[int] + coordination_node_path: str + operation_params: _ydb_operation_pb2.OperationParams + resource_path: str + def __init__(self, operation_params: _Optional[_Union[_ydb_operation_pb2.OperationParams, _Mapping]] = ..., coordination_node_path: _Optional[str] = ..., resource_path: _Optional[str] = ...) -> None: ... + +class DescribeResourceResponse(_message.Message): + __slots__ = ["operation"] + OPERATION_FIELD_NUMBER: _ClassVar[int] + operation: _ydb_operation_pb2.Operation + def __init__(self, operation: _Optional[_Union[_ydb_operation_pb2.Operation, _Mapping]] = ...) -> None: ... + +class DescribeResourceResult(_message.Message): + __slots__ = ["resource"] + RESOURCE_FIELD_NUMBER: _ClassVar[int] + resource: Resource + def __init__(self, resource: _Optional[_Union[Resource, _Mapping]] = ...) -> None: ... + +class DropResourceRequest(_message.Message): + __slots__ = ["coordination_node_path", "operation_params", "resource_path"] + COORDINATION_NODE_PATH_FIELD_NUMBER: _ClassVar[int] + OPERATION_PARAMS_FIELD_NUMBER: _ClassVar[int] + RESOURCE_PATH_FIELD_NUMBER: _ClassVar[int] + coordination_node_path: str + operation_params: _ydb_operation_pb2.OperationParams + resource_path: str + def __init__(self, operation_params: _Optional[_Union[_ydb_operation_pb2.OperationParams, _Mapping]] = ..., coordination_node_path: _Optional[str] = ..., resource_path: _Optional[str] = ...) -> None: ... + +class DropResourceResponse(_message.Message): + __slots__ = ["operation"] + OPERATION_FIELD_NUMBER: _ClassVar[int] + operation: _ydb_operation_pb2.Operation + def __init__(self, operation: _Optional[_Union[_ydb_operation_pb2.Operation, _Mapping]] = ...) -> None: ... + +class DropResourceResult(_message.Message): + __slots__ = [] + def __init__(self) -> None: ... + +class HierarchicalDrrSettings(_message.Message): + __slots__ = ["max_burst_size_coefficient", "max_units_per_second", "prefetch_coefficient", "prefetch_watermark"] + MAX_BURST_SIZE_COEFFICIENT_FIELD_NUMBER: _ClassVar[int] + MAX_UNITS_PER_SECOND_FIELD_NUMBER: _ClassVar[int] + PREFETCH_COEFFICIENT_FIELD_NUMBER: _ClassVar[int] + PREFETCH_WATERMARK_FIELD_NUMBER: _ClassVar[int] + max_burst_size_coefficient: float + max_units_per_second: float + prefetch_coefficient: float + prefetch_watermark: float + def __init__(self, max_units_per_second: _Optional[float] = ..., max_burst_size_coefficient: _Optional[float] = ..., prefetch_coefficient: _Optional[float] = ..., prefetch_watermark: _Optional[float] = ...) -> None: ... + +class ListResourcesRequest(_message.Message): + __slots__ = ["coordination_node_path", "operation_params", "recursive", "resource_path"] + COORDINATION_NODE_PATH_FIELD_NUMBER: _ClassVar[int] + OPERATION_PARAMS_FIELD_NUMBER: _ClassVar[int] + RECURSIVE_FIELD_NUMBER: _ClassVar[int] + RESOURCE_PATH_FIELD_NUMBER: _ClassVar[int] + coordination_node_path: str + operation_params: _ydb_operation_pb2.OperationParams + recursive: bool + resource_path: str + def __init__(self, operation_params: _Optional[_Union[_ydb_operation_pb2.OperationParams, _Mapping]] = ..., coordination_node_path: _Optional[str] = ..., resource_path: _Optional[str] = ..., recursive: bool = ...) -> None: ... + +class ListResourcesResponse(_message.Message): + __slots__ = ["operation"] + OPERATION_FIELD_NUMBER: _ClassVar[int] + operation: _ydb_operation_pb2.Operation + def __init__(self, operation: _Optional[_Union[_ydb_operation_pb2.Operation, _Mapping]] = ...) -> None: ... + +class ListResourcesResult(_message.Message): + __slots__ = ["resource_paths"] + RESOURCE_PATHS_FIELD_NUMBER: _ClassVar[int] + resource_paths: _containers.RepeatedScalarFieldContainer[str] + def __init__(self, resource_paths: _Optional[_Iterable[str]] = ...) -> None: ... + +class Resource(_message.Message): + __slots__ = ["hierarchical_drr", "resource_path"] + HIERARCHICAL_DRR_FIELD_NUMBER: _ClassVar[int] + RESOURCE_PATH_FIELD_NUMBER: _ClassVar[int] + hierarchical_drr: HierarchicalDrrSettings + resource_path: str + def __init__(self, resource_path: _Optional[str] = ..., hierarchical_drr: _Optional[_Union[HierarchicalDrrSettings, _Mapping]] = ...) -> None: ... diff --git a/ydb/_grpc/v5/protos/ydb_rate_limiter_pb2_grpc.py b/ydb/_grpc/v5/protos/ydb_rate_limiter_pb2_grpc.py new file mode 100644 index 00000000..2daafffe --- /dev/null +++ b/ydb/_grpc/v5/protos/ydb_rate_limiter_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/ydb/_grpc/v5/protos/ydb_scheme_pb2.py b/ydb/_grpc/v5/protos/ydb_scheme_pb2.py new file mode 100644 index 00000000..39bd3a79 --- /dev/null +++ b/ydb/_grpc/v5/protos/ydb_scheme_pb2.py @@ -0,0 +1,59 @@ +# -*- coding: utf-8 -*- +# flake8: noqa +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: protos/ydb_scheme.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from ydb._grpc.v5.protos import ydb_common_pb2 as protos_dot_ydb__common__pb2 +from ydb._grpc.v5.protos import ydb_operation_pb2 as protos_dot_ydb__operation__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x17protos/ydb_scheme.proto\x12\nYdb.Scheme\x1a\x17protos/ydb_common.proto\x1a\x1aprotos/ydb_operation.proto\"_\n\x14MakeDirectoryRequest\x12\x39\n\x10operation_params\x18\x01 \x01(\x0b\x32\x1f.Ydb.Operations.OperationParams\x12\x0c\n\x04path\x18\x02 \x01(\t\"E\n\x15MakeDirectoryResponse\x12,\n\toperation\x18\x01 \x01(\x0b\x32\x19.Ydb.Operations.Operation\"a\n\x16RemoveDirectoryRequest\x12\x39\n\x10operation_params\x18\x01 \x01(\x0b\x32\x1f.Ydb.Operations.OperationParams\x12\x0c\n\x04path\x18\x02 \x01(\t\"G\n\x17RemoveDirectoryResponse\x12,\n\toperation\x18\x01 \x01(\x0b\x32\x19.Ydb.Operations.Operation\"_\n\x14ListDirectoryRequest\x12\x39\n\x10operation_params\x18\x01 \x01(\x0b\x32\x1f.Ydb.Operations.OperationParams\x12\x0c\n\x04path\x18\x02 \x01(\t\"E\n\x15ListDirectoryResponse\x12,\n\toperation\x18\x01 \x01(\x0b\x32\x19.Ydb.Operations.Operation\"8\n\x0bPermissions\x12\x0f\n\x07subject\x18\x01 \x01(\t\x12\x18\n\x10permission_names\x18\x02 \x03(\t\"\x92\x04\n\x05\x45ntry\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\r\n\x05owner\x18\x02 \x01(\t\x12$\n\x04type\x18\x05 \x01(\x0e\x32\x16.Ydb.Scheme.Entry.Type\x12\x36\n\x15\x65\x66\x66\x65\x63tive_permissions\x18\x06 \x03(\x0b\x32\x17.Ydb.Scheme.Permissions\x12,\n\x0bpermissions\x18\x07 \x03(\x0b\x32\x17.Ydb.Scheme.Permissions\x12\x12\n\nsize_bytes\x18\x08 \x01(\x04\x12)\n\ncreated_at\x18\t \x01(\x0b\x32\x15.Ydb.VirtualTimestamp\"\xa0\x02\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\r\n\tDIRECTORY\x10\x01\x12\t\n\x05TABLE\x10\x02\x12\x14\n\x10PERS_QUEUE_GROUP\x10\x03\x12\x0c\n\x08\x44\x41TABASE\x10\x04\x12\x0f\n\x0bRTMR_VOLUME\x10\x05\x12\x16\n\x12\x42LOCK_STORE_VOLUME\x10\x06\x12\x15\n\x11\x43OORDINATION_NODE\x10\x07\x12\x10\n\x0c\x43OLUMN_STORE\x10\x0c\x12\x10\n\x0c\x43OLUMN_TABLE\x10\r\x12\x0c\n\x08SEQUENCE\x10\x0f\x12\x0f\n\x0bREPLICATION\x10\x10\x12\t\n\x05TOPIC\x10\x11\x12\x12\n\x0e\x45XTERNAL_TABLE\x10\x12\x12\x18\n\x14\x45XTERNAL_DATA_SOURCE\x10\x13\x12\x08\n\x04VIEW\x10\x14\"[\n\x13ListDirectoryResult\x12\x1f\n\x04self\x18\x01 \x01(\x0b\x32\x11.Ydb.Scheme.Entry\x12#\n\x08\x63hildren\x18\x02 \x03(\x0b\x32\x11.Ydb.Scheme.Entry\"^\n\x13\x44\x65scribePathRequest\x12\x39\n\x10operation_params\x18\x01 \x01(\x0b\x32\x1f.Ydb.Operations.OperationParams\x12\x0c\n\x04path\x18\x02 \x01(\t\"D\n\x14\x44\x65scribePathResponse\x12,\n\toperation\x18\x01 \x01(\x0b\x32\x19.Ydb.Operations.Operation\"5\n\x12\x44\x65scribePathResult\x12\x1f\n\x04self\x18\x01 \x01(\x0b\x32\x11.Ydb.Scheme.Entry\"\xb2\x01\n\x11PermissionsAction\x12(\n\x05grant\x18\x01 \x01(\x0b\x32\x17.Ydb.Scheme.PermissionsH\x00\x12)\n\x06revoke\x18\x02 \x01(\x0b\x32\x17.Ydb.Scheme.PermissionsH\x00\x12&\n\x03set\x18\x03 \x01(\x0b\x32\x17.Ydb.Scheme.PermissionsH\x00\x12\x16\n\x0c\x63hange_owner\x18\x04 \x01(\tH\x00\x42\x08\n\x06\x61\x63tion\"\xde\x01\n\x18ModifyPermissionsRequest\x12\x39\n\x10operation_params\x18\x01 \x01(\x0b\x32\x1f.Ydb.Operations.OperationParams\x12\x0c\n\x04path\x18\x02 \x01(\t\x12.\n\x07\x61\x63tions\x18\x03 \x03(\x0b\x32\x1d.Ydb.Scheme.PermissionsAction\x12\x19\n\x11\x63lear_permissions\x18\x04 \x01(\x08\x12\x1f\n\x15interrupt_inheritance\x18\x05 \x01(\x08H\x00\x42\r\n\x0binheritance\"I\n\x19ModifyPermissionsResponse\x12,\n\toperation\x18\x01 \x01(\x0b\x32\x19.Ydb.Operations.OperationBl\n\x15tech.ydb.proto.schemeB\x15SchemeOperationProtosZ9github.com/ydb-platform/ydb-go-genproto/protos/Ydb_Scheme\xf8\x01\x01\x62\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'protos.ydb_scheme_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\025tech.ydb.proto.schemeB\025SchemeOperationProtosZ9github.com/ydb-platform/ydb-go-genproto/protos/Ydb_Scheme\370\001\001' + _MAKEDIRECTORYREQUEST._serialized_start=92 + _MAKEDIRECTORYREQUEST._serialized_end=187 + _MAKEDIRECTORYRESPONSE._serialized_start=189 + _MAKEDIRECTORYRESPONSE._serialized_end=258 + _REMOVEDIRECTORYREQUEST._serialized_start=260 + _REMOVEDIRECTORYREQUEST._serialized_end=357 + _REMOVEDIRECTORYRESPONSE._serialized_start=359 + _REMOVEDIRECTORYRESPONSE._serialized_end=430 + _LISTDIRECTORYREQUEST._serialized_start=432 + _LISTDIRECTORYREQUEST._serialized_end=527 + _LISTDIRECTORYRESPONSE._serialized_start=529 + _LISTDIRECTORYRESPONSE._serialized_end=598 + _PERMISSIONS._serialized_start=600 + _PERMISSIONS._serialized_end=656 + _ENTRY._serialized_start=659 + _ENTRY._serialized_end=1189 + _ENTRY_TYPE._serialized_start=901 + _ENTRY_TYPE._serialized_end=1189 + _LISTDIRECTORYRESULT._serialized_start=1191 + _LISTDIRECTORYRESULT._serialized_end=1282 + _DESCRIBEPATHREQUEST._serialized_start=1284 + _DESCRIBEPATHREQUEST._serialized_end=1378 + _DESCRIBEPATHRESPONSE._serialized_start=1380 + _DESCRIBEPATHRESPONSE._serialized_end=1448 + _DESCRIBEPATHRESULT._serialized_start=1450 + _DESCRIBEPATHRESULT._serialized_end=1503 + _PERMISSIONSACTION._serialized_start=1506 + _PERMISSIONSACTION._serialized_end=1684 + _MODIFYPERMISSIONSREQUEST._serialized_start=1687 + _MODIFYPERMISSIONSREQUEST._serialized_end=1909 + _MODIFYPERMISSIONSRESPONSE._serialized_start=1911 + _MODIFYPERMISSIONSRESPONSE._serialized_end=1984 +# @@protoc_insertion_point(module_scope) diff --git a/ydb/_grpc/v5/protos/ydb_scheme_pb2.pyi b/ydb/_grpc/v5/protos/ydb_scheme_pb2.pyi new file mode 100644 index 00000000..178a74e4 --- /dev/null +++ b/ydb/_grpc/v5/protos/ydb_scheme_pb2.pyi @@ -0,0 +1,155 @@ +from protos import ydb_common_pb2 as _ydb_common_pb2 +from protos import ydb_operation_pb2 as _ydb_operation_pb2 +from google.protobuf.internal import containers as _containers +from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union + +DESCRIPTOR: _descriptor.FileDescriptor + +class DescribePathRequest(_message.Message): + __slots__ = ["operation_params", "path"] + OPERATION_PARAMS_FIELD_NUMBER: _ClassVar[int] + PATH_FIELD_NUMBER: _ClassVar[int] + operation_params: _ydb_operation_pb2.OperationParams + path: str + def __init__(self, operation_params: _Optional[_Union[_ydb_operation_pb2.OperationParams, _Mapping]] = ..., path: _Optional[str] = ...) -> None: ... + +class DescribePathResponse(_message.Message): + __slots__ = ["operation"] + OPERATION_FIELD_NUMBER: _ClassVar[int] + operation: _ydb_operation_pb2.Operation + def __init__(self, operation: _Optional[_Union[_ydb_operation_pb2.Operation, _Mapping]] = ...) -> None: ... + +class DescribePathResult(_message.Message): + __slots__ = ["self"] + SELF_FIELD_NUMBER: _ClassVar[int] + self: Entry + def __init__(self, self_: _Optional[_Union[Entry, _Mapping]] = ...) -> None: ... + +class Entry(_message.Message): + __slots__ = ["created_at", "effective_permissions", "name", "owner", "permissions", "size_bytes", "type"] + class Type(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + BLOCK_STORE_VOLUME: Entry.Type + COLUMN_STORE: Entry.Type + COLUMN_TABLE: Entry.Type + COORDINATION_NODE: Entry.Type + CREATED_AT_FIELD_NUMBER: _ClassVar[int] + DATABASE: Entry.Type + DIRECTORY: Entry.Type + EFFECTIVE_PERMISSIONS_FIELD_NUMBER: _ClassVar[int] + EXTERNAL_DATA_SOURCE: Entry.Type + EXTERNAL_TABLE: Entry.Type + NAME_FIELD_NUMBER: _ClassVar[int] + OWNER_FIELD_NUMBER: _ClassVar[int] + PERMISSIONS_FIELD_NUMBER: _ClassVar[int] + PERS_QUEUE_GROUP: Entry.Type + REPLICATION: Entry.Type + RTMR_VOLUME: Entry.Type + SEQUENCE: Entry.Type + SIZE_BYTES_FIELD_NUMBER: _ClassVar[int] + TABLE: Entry.Type + TOPIC: Entry.Type + TYPE_FIELD_NUMBER: _ClassVar[int] + TYPE_UNSPECIFIED: Entry.Type + VIEW: Entry.Type + created_at: _ydb_common_pb2.VirtualTimestamp + effective_permissions: _containers.RepeatedCompositeFieldContainer[Permissions] + name: str + owner: str + permissions: _containers.RepeatedCompositeFieldContainer[Permissions] + size_bytes: int + type: Entry.Type + def __init__(self, name: _Optional[str] = ..., owner: _Optional[str] = ..., type: _Optional[_Union[Entry.Type, str]] = ..., effective_permissions: _Optional[_Iterable[_Union[Permissions, _Mapping]]] = ..., permissions: _Optional[_Iterable[_Union[Permissions, _Mapping]]] = ..., size_bytes: _Optional[int] = ..., created_at: _Optional[_Union[_ydb_common_pb2.VirtualTimestamp, _Mapping]] = ...) -> None: ... + +class ListDirectoryRequest(_message.Message): + __slots__ = ["operation_params", "path"] + OPERATION_PARAMS_FIELD_NUMBER: _ClassVar[int] + PATH_FIELD_NUMBER: _ClassVar[int] + operation_params: _ydb_operation_pb2.OperationParams + path: str + def __init__(self, operation_params: _Optional[_Union[_ydb_operation_pb2.OperationParams, _Mapping]] = ..., path: _Optional[str] = ...) -> None: ... + +class ListDirectoryResponse(_message.Message): + __slots__ = ["operation"] + OPERATION_FIELD_NUMBER: _ClassVar[int] + operation: _ydb_operation_pb2.Operation + def __init__(self, operation: _Optional[_Union[_ydb_operation_pb2.Operation, _Mapping]] = ...) -> None: ... + +class ListDirectoryResult(_message.Message): + __slots__ = ["children", "self"] + CHILDREN_FIELD_NUMBER: _ClassVar[int] + SELF_FIELD_NUMBER: _ClassVar[int] + children: _containers.RepeatedCompositeFieldContainer[Entry] + self: Entry + def __init__(self, self_: _Optional[_Union[Entry, _Mapping]] = ..., children: _Optional[_Iterable[_Union[Entry, _Mapping]]] = ...) -> None: ... + +class MakeDirectoryRequest(_message.Message): + __slots__ = ["operation_params", "path"] + OPERATION_PARAMS_FIELD_NUMBER: _ClassVar[int] + PATH_FIELD_NUMBER: _ClassVar[int] + operation_params: _ydb_operation_pb2.OperationParams + path: str + def __init__(self, operation_params: _Optional[_Union[_ydb_operation_pb2.OperationParams, _Mapping]] = ..., path: _Optional[str] = ...) -> None: ... + +class MakeDirectoryResponse(_message.Message): + __slots__ = ["operation"] + OPERATION_FIELD_NUMBER: _ClassVar[int] + operation: _ydb_operation_pb2.Operation + def __init__(self, operation: _Optional[_Union[_ydb_operation_pb2.Operation, _Mapping]] = ...) -> None: ... + +class ModifyPermissionsRequest(_message.Message): + __slots__ = ["actions", "clear_permissions", "interrupt_inheritance", "operation_params", "path"] + ACTIONS_FIELD_NUMBER: _ClassVar[int] + CLEAR_PERMISSIONS_FIELD_NUMBER: _ClassVar[int] + INTERRUPT_INHERITANCE_FIELD_NUMBER: _ClassVar[int] + OPERATION_PARAMS_FIELD_NUMBER: _ClassVar[int] + PATH_FIELD_NUMBER: _ClassVar[int] + actions: _containers.RepeatedCompositeFieldContainer[PermissionsAction] + clear_permissions: bool + interrupt_inheritance: bool + operation_params: _ydb_operation_pb2.OperationParams + path: str + def __init__(self, operation_params: _Optional[_Union[_ydb_operation_pb2.OperationParams, _Mapping]] = ..., path: _Optional[str] = ..., actions: _Optional[_Iterable[_Union[PermissionsAction, _Mapping]]] = ..., clear_permissions: bool = ..., interrupt_inheritance: bool = ...) -> None: ... + +class ModifyPermissionsResponse(_message.Message): + __slots__ = ["operation"] + OPERATION_FIELD_NUMBER: _ClassVar[int] + operation: _ydb_operation_pb2.Operation + def __init__(self, operation: _Optional[_Union[_ydb_operation_pb2.Operation, _Mapping]] = ...) -> None: ... + +class Permissions(_message.Message): + __slots__ = ["permission_names", "subject"] + PERMISSION_NAMES_FIELD_NUMBER: _ClassVar[int] + SUBJECT_FIELD_NUMBER: _ClassVar[int] + permission_names: _containers.RepeatedScalarFieldContainer[str] + subject: str + def __init__(self, subject: _Optional[str] = ..., permission_names: _Optional[_Iterable[str]] = ...) -> None: ... + +class PermissionsAction(_message.Message): + __slots__ = ["change_owner", "grant", "revoke", "set"] + CHANGE_OWNER_FIELD_NUMBER: _ClassVar[int] + GRANT_FIELD_NUMBER: _ClassVar[int] + REVOKE_FIELD_NUMBER: _ClassVar[int] + SET_FIELD_NUMBER: _ClassVar[int] + change_owner: str + grant: Permissions + revoke: Permissions + set: Permissions + def __init__(self, grant: _Optional[_Union[Permissions, _Mapping]] = ..., revoke: _Optional[_Union[Permissions, _Mapping]] = ..., set: _Optional[_Union[Permissions, _Mapping]] = ..., change_owner: _Optional[str] = ...) -> None: ... + +class RemoveDirectoryRequest(_message.Message): + __slots__ = ["operation_params", "path"] + OPERATION_PARAMS_FIELD_NUMBER: _ClassVar[int] + PATH_FIELD_NUMBER: _ClassVar[int] + operation_params: _ydb_operation_pb2.OperationParams + path: str + def __init__(self, operation_params: _Optional[_Union[_ydb_operation_pb2.OperationParams, _Mapping]] = ..., path: _Optional[str] = ...) -> None: ... + +class RemoveDirectoryResponse(_message.Message): + __slots__ = ["operation"] + OPERATION_FIELD_NUMBER: _ClassVar[int] + operation: _ydb_operation_pb2.Operation + def __init__(self, operation: _Optional[_Union[_ydb_operation_pb2.Operation, _Mapping]] = ...) -> None: ... diff --git a/ydb/_grpc/v5/protos/ydb_scheme_pb2_grpc.py b/ydb/_grpc/v5/protos/ydb_scheme_pb2_grpc.py new file mode 100644 index 00000000..2daafffe --- /dev/null +++ b/ydb/_grpc/v5/protos/ydb_scheme_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/ydb/_grpc/v5/protos/ydb_scripting_pb2.py b/ydb/_grpc/v5/protos/ydb_scripting_pb2.py new file mode 100644 index 00000000..76a960dc --- /dev/null +++ b/ydb/_grpc/v5/protos/ydb_scripting_pb2.py @@ -0,0 +1,57 @@ +# -*- coding: utf-8 -*- +# flake8: noqa +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: protos/ydb_scripting.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from ydb._grpc.v5.protos import ydb_operation_pb2 as protos_dot_ydb__operation__pb2 +from ydb._grpc.v5.protos import ydb_value_pb2 as protos_dot_ydb__value__pb2 +from ydb._grpc.v5.protos import ydb_table_pb2 as protos_dot_ydb__table__pb2 +from ydb._grpc.v5.protos import ydb_query_stats_pb2 as protos_dot_ydb__query__stats__pb2 +from ydb._grpc.v5.protos import ydb_issue_message_pb2 as protos_dot_ydb__issue__message__pb2 +from ydb._grpc.v5.protos import ydb_status_codes_pb2 as protos_dot_ydb__status__codes__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1aprotos/ydb_scripting.proto\x12\rYdb.Scripting\x1a\x1aprotos/ydb_operation.proto\x1a\x16protos/ydb_value.proto\x1a\x16protos/ydb_table.proto\x1a\x1cprotos/ydb_query_stats.proto\x1a\x1eprotos/ydb_issue_message.proto\x1a\x1dprotos/ydb_status_codes.proto\"\xa5\x02\n\x11\x45xecuteYqlRequest\x12\x39\n\x10operation_params\x18\x01 \x01(\x0b\x32\x1f.Ydb.Operations.OperationParams\x12\x0e\n\x06script\x18\x02 \x01(\t\x12\x44\n\nparameters\x18\x03 \x03(\x0b\x32\x30.Ydb.Scripting.ExecuteYqlRequest.ParametersEntry\x12;\n\rcollect_stats\x18\x04 \x01(\x0e\x32$.Ydb.Table.QueryStatsCollection.Mode\x1a\x42\n\x0fParametersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x1e\n\x05value\x18\x02 \x01(\x0b\x32\x0f.Ydb.TypedValue:\x02\x38\x01\"B\n\x12\x45xecuteYqlResponse\x12,\n\toperation\x18\x01 \x01(\x0b\x32\x19.Ydb.Operations.Operation\"h\n\x10\x45xecuteYqlResult\x12#\n\x0bresult_sets\x18\x01 \x03(\x0b\x32\x0e.Ydb.ResultSet\x12/\n\x0bquery_stats\x18\x02 \x01(\x0b\x32\x1a.Ydb.TableStats.QueryStats\"\xa7\x01\n\x19\x45xecuteYqlPartialResponse\x12)\n\x06status\x18\x01 \x01(\x0e\x32\x19.Ydb.StatusIds.StatusCode\x12\'\n\x06issues\x18\x02 \x03(\x0b\x32\x17.Ydb.Issue.IssueMessage\x12\x36\n\x06result\x18\x03 \x01(\x0b\x32&.Ydb.Scripting.ExecuteYqlPartialResult\"\x88\x01\n\x17\x45xecuteYqlPartialResult\x12\x18\n\x10result_set_index\x18\x01 \x01(\r\x12\"\n\nresult_set\x18\x02 \x01(\x0b\x32\x0e.Ydb.ResultSet\x12/\n\x0bquery_stats\x18\x03 \x01(\x0b\x32\x1a.Ydb.TableStats.QueryStats\"\xc9\x01\n\x11\x45xplainYqlRequest\x12\x39\n\x10operation_params\x18\x01 \x01(\x0b\x32\x1f.Ydb.Operations.OperationParams\x12\x0e\n\x06script\x18\x02 \x01(\t\x12\x33\n\x04mode\x18\x03 \x01(\x0e\x32%.Ydb.Scripting.ExplainYqlRequest.Mode\"4\n\x04Mode\x12\x14\n\x10MODE_UNSPECIFIED\x10\x00\x12\x0c\n\x08VALIDATE\x10\x02\x12\x08\n\x04PLAN\x10\x03\"B\n\x12\x45xplainYqlResponse\x12,\n\toperation\x18\x01 \x01(\x0b\x32\x19.Ydb.Operations.Operation\"\xb3\x01\n\x10\x45xplainYqlResult\x12N\n\x10parameters_types\x18\x01 \x03(\x0b\x32\x34.Ydb.Scripting.ExplainYqlResult.ParametersTypesEntry\x12\x0c\n\x04plan\x18\x02 \x01(\t\x1a\x41\n\x14ParametersTypesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x18\n\x05value\x18\x02 \x01(\x0b\x32\t.Ydb.Type:\x02\x38\x01\x42l\n\x18tech.ydb.proto.scriptingB\x0fScriptingProtosZ None: ... + +class ExecuteYqlPartialResult(_message.Message): + __slots__ = ["query_stats", "result_set", "result_set_index"] + QUERY_STATS_FIELD_NUMBER: _ClassVar[int] + RESULT_SET_FIELD_NUMBER: _ClassVar[int] + RESULT_SET_INDEX_FIELD_NUMBER: _ClassVar[int] + query_stats: _ydb_query_stats_pb2.QueryStats + result_set: _ydb_value_pb2.ResultSet + result_set_index: int + def __init__(self, result_set_index: _Optional[int] = ..., result_set: _Optional[_Union[_ydb_value_pb2.ResultSet, _Mapping]] = ..., query_stats: _Optional[_Union[_ydb_query_stats_pb2.QueryStats, _Mapping]] = ...) -> None: ... + +class ExecuteYqlRequest(_message.Message): + __slots__ = ["collect_stats", "operation_params", "parameters", "script"] + class ParametersEntry(_message.Message): + __slots__ = ["key", "value"] + KEY_FIELD_NUMBER: _ClassVar[int] + VALUE_FIELD_NUMBER: _ClassVar[int] + key: str + value: _ydb_value_pb2.TypedValue + def __init__(self, key: _Optional[str] = ..., value: _Optional[_Union[_ydb_value_pb2.TypedValue, _Mapping]] = ...) -> None: ... + COLLECT_STATS_FIELD_NUMBER: _ClassVar[int] + OPERATION_PARAMS_FIELD_NUMBER: _ClassVar[int] + PARAMETERS_FIELD_NUMBER: _ClassVar[int] + SCRIPT_FIELD_NUMBER: _ClassVar[int] + collect_stats: _ydb_table_pb2.QueryStatsCollection.Mode + operation_params: _ydb_operation_pb2.OperationParams + parameters: _containers.MessageMap[str, _ydb_value_pb2.TypedValue] + script: str + def __init__(self, operation_params: _Optional[_Union[_ydb_operation_pb2.OperationParams, _Mapping]] = ..., script: _Optional[str] = ..., parameters: _Optional[_Mapping[str, _ydb_value_pb2.TypedValue]] = ..., collect_stats: _Optional[_Union[_ydb_table_pb2.QueryStatsCollection.Mode, str]] = ...) -> None: ... + +class ExecuteYqlResponse(_message.Message): + __slots__ = ["operation"] + OPERATION_FIELD_NUMBER: _ClassVar[int] + operation: _ydb_operation_pb2.Operation + def __init__(self, operation: _Optional[_Union[_ydb_operation_pb2.Operation, _Mapping]] = ...) -> None: ... + +class ExecuteYqlResult(_message.Message): + __slots__ = ["query_stats", "result_sets"] + QUERY_STATS_FIELD_NUMBER: _ClassVar[int] + RESULT_SETS_FIELD_NUMBER: _ClassVar[int] + query_stats: _ydb_query_stats_pb2.QueryStats + result_sets: _containers.RepeatedCompositeFieldContainer[_ydb_value_pb2.ResultSet] + def __init__(self, result_sets: _Optional[_Iterable[_Union[_ydb_value_pb2.ResultSet, _Mapping]]] = ..., query_stats: _Optional[_Union[_ydb_query_stats_pb2.QueryStats, _Mapping]] = ...) -> None: ... + +class ExplainYqlRequest(_message.Message): + __slots__ = ["mode", "operation_params", "script"] + class Mode(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + MODE_FIELD_NUMBER: _ClassVar[int] + MODE_UNSPECIFIED: ExplainYqlRequest.Mode + OPERATION_PARAMS_FIELD_NUMBER: _ClassVar[int] + PLAN: ExplainYqlRequest.Mode + SCRIPT_FIELD_NUMBER: _ClassVar[int] + VALIDATE: ExplainYqlRequest.Mode + mode: ExplainYqlRequest.Mode + operation_params: _ydb_operation_pb2.OperationParams + script: str + def __init__(self, operation_params: _Optional[_Union[_ydb_operation_pb2.OperationParams, _Mapping]] = ..., script: _Optional[str] = ..., mode: _Optional[_Union[ExplainYqlRequest.Mode, str]] = ...) -> None: ... + +class ExplainYqlResponse(_message.Message): + __slots__ = ["operation"] + OPERATION_FIELD_NUMBER: _ClassVar[int] + operation: _ydb_operation_pb2.Operation + def __init__(self, operation: _Optional[_Union[_ydb_operation_pb2.Operation, _Mapping]] = ...) -> None: ... + +class ExplainYqlResult(_message.Message): + __slots__ = ["parameters_types", "plan"] + class ParametersTypesEntry(_message.Message): + __slots__ = ["key", "value"] + KEY_FIELD_NUMBER: _ClassVar[int] + VALUE_FIELD_NUMBER: _ClassVar[int] + key: str + value: _ydb_value_pb2.Type + def __init__(self, key: _Optional[str] = ..., value: _Optional[_Union[_ydb_value_pb2.Type, _Mapping]] = ...) -> None: ... + PARAMETERS_TYPES_FIELD_NUMBER: _ClassVar[int] + PLAN_FIELD_NUMBER: _ClassVar[int] + parameters_types: _containers.MessageMap[str, _ydb_value_pb2.Type] + plan: str + def __init__(self, parameters_types: _Optional[_Mapping[str, _ydb_value_pb2.Type]] = ..., plan: _Optional[str] = ...) -> None: ... diff --git a/ydb/_grpc/v5/protos/ydb_scripting_pb2_grpc.py b/ydb/_grpc/v5/protos/ydb_scripting_pb2_grpc.py new file mode 100644 index 00000000..2daafffe --- /dev/null +++ b/ydb/_grpc/v5/protos/ydb_scripting_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/ydb/_grpc/v5/protos/ydb_status_codes_pb2.py b/ydb/_grpc/v5/protos/ydb_status_codes_pb2.py new file mode 100644 index 00000000..651a7f50 --- /dev/null +++ b/ydb/_grpc/v5/protos/ydb_status_codes_pb2.py @@ -0,0 +1,29 @@ +# -*- coding: utf-8 -*- +# flake8: noqa +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: protos/ydb_status_codes.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1dprotos/ydb_status_codes.proto\x12\x03Ydb\"\xbd\x03\n\tStatusIds\"\xaf\x03\n\nStatusCode\x12\x1b\n\x17STATUS_CODE_UNSPECIFIED\x10\x00\x12\r\n\x07SUCCESS\x10\x80\xb5\x18\x12\x11\n\x0b\x42\x41\x44_REQUEST\x10\x8a\xb5\x18\x12\x12\n\x0cUNAUTHORIZED\x10\x94\xb5\x18\x12\x14\n\x0eINTERNAL_ERROR\x10\x9e\xb5\x18\x12\r\n\x07\x41\x42ORTED\x10\xa8\xb5\x18\x12\x11\n\x0bUNAVAILABLE\x10\xb2\xb5\x18\x12\x10\n\nOVERLOADED\x10\xbc\xb5\x18\x12\x12\n\x0cSCHEME_ERROR\x10\xc6\xb5\x18\x12\x13\n\rGENERIC_ERROR\x10\xd0\xb5\x18\x12\r\n\x07TIMEOUT\x10\xda\xb5\x18\x12\x11\n\x0b\x42\x41\x44_SESSION\x10\xe4\xb5\x18\x12\x19\n\x13PRECONDITION_FAILED\x10\xf8\xb5\x18\x12\x14\n\x0e\x41LREADY_EXISTS\x10\x82\xb6\x18\x12\x0f\n\tNOT_FOUND\x10\x8c\xb6\x18\x12\x15\n\x0fSESSION_EXPIRED\x10\x96\xb6\x18\x12\x0f\n\tCANCELLED\x10\xa0\xb6\x18\x12\x12\n\x0cUNDETERMINED\x10\xaa\xb6\x18\x12\x11\n\x0bUNSUPPORTED\x10\xb4\xb6\x18\x12\x12\n\x0cSESSION_BUSY\x10\xbe\xb6\x18\x12\x14\n\x0e\x45XTERNAL_ERROR\x10\xc8\xb6\x18\x42W\n\x0etech.ydb.protoB\x11StatusCodesProtosZ2github.com/ydb-platform/ydb-go-genproto/protos/Ydbb\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'protos.ydb_status_codes_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\016tech.ydb.protoB\021StatusCodesProtosZ2github.com/ydb-platform/ydb-go-genproto/protos/Ydb' + _STATUSIDS._serialized_start=39 + _STATUSIDS._serialized_end=484 + _STATUSIDS_STATUSCODE._serialized_start=53 + _STATUSIDS_STATUSCODE._serialized_end=484 +# @@protoc_insertion_point(module_scope) diff --git a/ydb/_grpc/v5/protos/ydb_status_codes_pb2.pyi b/ydb/_grpc/v5/protos/ydb_status_codes_pb2.pyi new file mode 100644 index 00000000..02a9c0fd --- /dev/null +++ b/ydb/_grpc/v5/protos/ydb_status_codes_pb2.pyi @@ -0,0 +1,33 @@ +from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from typing import ClassVar as _ClassVar + +DESCRIPTOR: _descriptor.FileDescriptor + +class StatusIds(_message.Message): + __slots__ = [] + class StatusCode(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + ABORTED: StatusIds.StatusCode + ALREADY_EXISTS: StatusIds.StatusCode + BAD_REQUEST: StatusIds.StatusCode + BAD_SESSION: StatusIds.StatusCode + CANCELLED: StatusIds.StatusCode + EXTERNAL_ERROR: StatusIds.StatusCode + GENERIC_ERROR: StatusIds.StatusCode + INTERNAL_ERROR: StatusIds.StatusCode + NOT_FOUND: StatusIds.StatusCode + OVERLOADED: StatusIds.StatusCode + PRECONDITION_FAILED: StatusIds.StatusCode + SCHEME_ERROR: StatusIds.StatusCode + SESSION_BUSY: StatusIds.StatusCode + SESSION_EXPIRED: StatusIds.StatusCode + STATUS_CODE_UNSPECIFIED: StatusIds.StatusCode + SUCCESS: StatusIds.StatusCode + TIMEOUT: StatusIds.StatusCode + UNAUTHORIZED: StatusIds.StatusCode + UNAVAILABLE: StatusIds.StatusCode + UNDETERMINED: StatusIds.StatusCode + UNSUPPORTED: StatusIds.StatusCode + def __init__(self) -> None: ... diff --git a/ydb/_grpc/v5/protos/ydb_status_codes_pb2_grpc.py b/ydb/_grpc/v5/protos/ydb_status_codes_pb2_grpc.py new file mode 100644 index 00000000..2daafffe --- /dev/null +++ b/ydb/_grpc/v5/protos/ydb_status_codes_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/ydb/_grpc/v5/protos/ydb_table_pb2.py b/ydb/_grpc/v5/protos/ydb_table_pb2.py new file mode 100644 index 00000000..e78830f9 --- /dev/null +++ b/ydb/_grpc/v5/protos/ydb_table_pb2.py @@ -0,0 +1,364 @@ +# -*- coding: utf-8 -*- +# flake8: noqa +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: protos/ydb_table.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from ydb._grpc.v5.protos.annotations import validation_pb2 as protos_dot_annotations_dot_validation__pb2 +from ydb._grpc.v5.protos import ydb_common_pb2 as protos_dot_ydb__common__pb2 +from ydb._grpc.v5.protos import ydb_issue_message_pb2 as protos_dot_ydb__issue__message__pb2 +from ydb._grpc.v5.protos import ydb_operation_pb2 as protos_dot_ydb__operation__pb2 +from ydb._grpc.v5.protos import ydb_query_stats_pb2 as protos_dot_ydb__query__stats__pb2 +from ydb._grpc.v5.protos import ydb_value_pb2 as protos_dot_ydb__value__pb2 +from ydb._grpc.v5.protos import ydb_scheme_pb2 as protos_dot_ydb__scheme__pb2 +from ydb._grpc.v5.protos import ydb_status_codes_pb2 as protos_dot_ydb__status__codes__pb2 +from ydb._grpc.v5.protos import ydb_topic_pb2 as protos_dot_ydb__topic__pb2 +from ydb._grpc.v5.protos import ydb_formats_pb2 as protos_dot_ydb__formats__pb2 +from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 +from google.protobuf import duration_pb2 as google_dot_protobuf_dot_duration__pb2 +from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x16protos/ydb_table.proto\x12\tYdb.Table\x1a#protos/annotations/validation.proto\x1a\x17protos/ydb_common.proto\x1a\x1eprotos/ydb_issue_message.proto\x1a\x1aprotos/ydb_operation.proto\x1a\x1cprotos/ydb_query_stats.proto\x1a\x16protos/ydb_value.proto\x1a\x17protos/ydb_scheme.proto\x1a\x1dprotos/ydb_status_codes.proto\x1a\x16protos/ydb_topic.proto\x1a\x18protos/ydb_formats.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"Q\n\x14\x43reateSessionRequest\x12\x39\n\x10operation_params\x18\x01 \x01(\x0b\x32\x1f.Ydb.Operations.OperationParams\"E\n\x15\x43reateSessionResponse\x12,\n\toperation\x18\x01 \x01(\x0b\x32\x19.Ydb.Operations.Operation\")\n\x13\x43reateSessionResult\x12\x12\n\nsession_id\x18\x01 \x01(\t\"e\n\x14\x44\x65leteSessionRequest\x12\x12\n\nsession_id\x18\x01 \x01(\t\x12\x39\n\x10operation_params\x18\x02 \x01(\x0b\x32\x1f.Ydb.Operations.OperationParams\"E\n\x15\x44\x65leteSessionResponse\x12,\n\toperation\x18\x01 \x01(\x0b\x32\x19.Ydb.Operations.Operation\"\r\n\x0bGlobalIndex\"\x12\n\x10GlobalAsyncIndex\"\x13\n\x11GlobalUniqueIndex\"\xf7\x01\n\nTableIndex\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x15\n\rindex_columns\x18\x02 \x03(\t\x12.\n\x0cglobal_index\x18\x03 \x01(\x0b\x32\x16.Ydb.Table.GlobalIndexH\x00\x12\x39\n\x12global_async_index\x18\x04 \x01(\x0b\x32\x1b.Ydb.Table.GlobalAsyncIndexH\x00\x12;\n\x13global_unique_index\x18\x06 \x01(\x0b\x32\x1c.Ydb.Table.GlobalUniqueIndexH\x00\x12\x14\n\x0c\x64\x61ta_columns\x18\x05 \x03(\tB\x06\n\x04type\"\x98\x03\n\x15TableIndexDescription\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x15\n\rindex_columns\x18\x02 \x03(\t\x12.\n\x0cglobal_index\x18\x03 \x01(\x0b\x32\x16.Ydb.Table.GlobalIndexH\x00\x12\x39\n\x12global_async_index\x18\x05 \x01(\x0b\x32\x1b.Ydb.Table.GlobalAsyncIndexH\x00\x12;\n\x13global_unique_index\x18\x08 \x01(\x0b\x32\x1c.Ydb.Table.GlobalUniqueIndexH\x00\x12\x37\n\x06status\x18\x04 \x01(\x0e\x32\'.Ydb.Table.TableIndexDescription.Status\x12\x14\n\x0c\x64\x61ta_columns\x18\x06 \x03(\t\x12\x12\n\nsize_bytes\x18\x07 \x01(\x04\"G\n\x06Status\x12\x16\n\x12STATUS_UNSPECIFIED\x10\x00\x12\x10\n\x0cSTATUS_READY\x10\x01\x12\x13\n\x0fSTATUS_BUILDING\x10\x02\x42\x06\n\x04type\"\xdd\x01\n\x0fIndexBuildState\"\xc9\x01\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x13\n\x0fSTATE_PREPARING\x10\x01\x12\x1a\n\x16STATE_TRANSFERING_DATA\x10\x02\x12\x12\n\x0eSTATE_APPLYING\x10\x03\x12\x0e\n\nSTATE_DONE\x10\x04\x12\x16\n\x12STATE_CANCELLATION\x10\x05\x12\x13\n\x0fSTATE_CANCELLED\x10\x06\x12\x13\n\x0fSTATE_REJECTION\x10\x07\x12\x12\n\x0eSTATE_REJECTED\x10\x08\"K\n\x15IndexBuildDescription\x12\x0c\n\x04path\x18\x01 \x01(\t\x12$\n\x05index\x18\x02 \x01(\x0b\x32\x15.Ydb.Table.TableIndex\"\x8e\x01\n\x12IndexBuildMetadata\x12\x35\n\x0b\x64\x65scription\x18\x01 \x01(\x0b\x32 .Ydb.Table.IndexBuildDescription\x12/\n\x05state\x18\x02 \x01(\x0e\x32 .Ydb.Table.IndexBuildState.State\x12\x10\n\x08progress\x18\x03 \x01(\x02\"\x9a\x01\n\x0e\x43hangefeedMode\"\x87\x01\n\x04Mode\x12\x14\n\x10MODE_UNSPECIFIED\x10\x00\x12\x12\n\x0eMODE_KEYS_ONLY\x10\x01\x12\x10\n\x0cMODE_UPDATES\x10\x02\x12\x12\n\x0eMODE_NEW_IMAGE\x10\x03\x12\x12\n\x0eMODE_OLD_IMAGE\x10\x04\x12\x1b\n\x17MODE_NEW_AND_OLD_IMAGES\x10\x05\"\x81\x01\n\x10\x43hangefeedFormat\"m\n\x06\x46ormat\x12\x16\n\x12\x46ORMAT_UNSPECIFIED\x10\x00\x12\x0f\n\x0b\x46ORMAT_JSON\x10\x01\x12 \n\x1c\x46ORMAT_DYNAMODB_STREAMS_JSON\x10\x02\x12\x18\n\x14\x46ORMAT_DEBEZIUM_JSON\x10\x03\"\x8e\x04\n\nChangefeed\x12\x0c\n\x04name\x18\x01 \x01(\t\x12,\n\x04mode\x18\x02 \x01(\x0e\x32\x1e.Ydb.Table.ChangefeedMode.Mode\x12\x32\n\x06\x66ormat\x18\x03 \x01(\x0e\x32\".Ydb.Table.ChangefeedFormat.Format\x12\x33\n\x10retention_period\x18\x04 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x1a\n\x12virtual_timestamps\x18\x05 \x01(\x08\x12\x14\n\x0cinitial_scan\x18\x06 \x01(\x08\x12R\n\nattributes\x18\x07 \x03(\x0b\x32%.Ydb.Table.Changefeed.AttributesEntryB\x17\xaa\xe6*\x08\n\x06\n\x04\x08\x01\x10\x64\xa2\xe6*\x07\n\x05\x08\x01\x10\x80 \x12\x1b\n\naws_region\x18\x08 \x01(\tB\x07\xa2\xe6*\x03\x18\x80\x01\x12?\n\x1cresolved_timestamps_interval\x18\t \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x44\n\x1btopic_partitioning_settings\x18\n \x01(\x0b\x32\x1f.Ydb.Topic.PartitioningSettings\x1a\x31\n\x0f\x41ttributesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x87\x04\n\x15\x43hangefeedDescription\x12\x0c\n\x04name\x18\x01 \x01(\t\x12,\n\x04mode\x18\x02 \x01(\x0e\x32\x1e.Ydb.Table.ChangefeedMode.Mode\x12\x32\n\x06\x66ormat\x18\x03 \x01(\x0e\x32\".Ydb.Table.ChangefeedFormat.Format\x12\x35\n\x05state\x18\x04 \x01(\x0e\x32&.Ydb.Table.ChangefeedDescription.State\x12\x1a\n\x12virtual_timestamps\x18\x05 \x01(\x08\x12\x44\n\nattributes\x18\x06 \x03(\x0b\x32\x30.Ydb.Table.ChangefeedDescription.AttributesEntry\x12\x12\n\naws_region\x18\x07 \x01(\t\x12?\n\x1cresolved_timestamps_interval\x18\x08 \x01(\x0b\x32\x19.google.protobuf.Duration\x1a\x31\n\x0f\x41ttributesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"]\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x11\n\rSTATE_ENABLED\x10\x01\x12\x12\n\x0eSTATE_DISABLED\x10\x02\x12\x16\n\x12STATE_INITIAL_SCAN\x10\x03\"\x1c\n\x0bStoragePool\x12\r\n\x05media\x18\x01 \x01(\t\"\xaa\x02\n\rStoragePolicy\x12\x13\n\x0bpreset_name\x18\x01 \x01(\t\x12&\n\x06syslog\x18\x02 \x01(\x0b\x32\x16.Ydb.Table.StoragePool\x12#\n\x03log\x18\x03 \x01(\x0b\x32\x16.Ydb.Table.StoragePool\x12$\n\x04\x64\x61ta\x18\x04 \x01(\x0b\x32\x16.Ydb.Table.StoragePool\x12(\n\x08\x65xternal\x18\x05 \x01(\x0b\x32\x16.Ydb.Table.StoragePool\x12/\n\x0ekeep_in_memory\x18\x06 \x01(\x0e\x32\x17.Ydb.FeatureFlag.Status\x12\x36\n\x0f\x63olumn_families\x18\x07 \x03(\x0b\x32\x1d.Ydb.Table.ColumnFamilyPolicy\"\xb1\x02\n\x12\x43olumnFamilyPolicy\x12\x0c\n\x04name\x18\x01 \x01(\t\x12$\n\x04\x64\x61ta\x18\x02 \x01(\x0b\x32\x16.Ydb.Table.StoragePool\x12(\n\x08\x65xternal\x18\x03 \x01(\x0b\x32\x16.Ydb.Table.StoragePool\x12/\n\x0ekeep_in_memory\x18\x04 \x01(\x0e\x32\x17.Ydb.FeatureFlag.Status\x12>\n\x0b\x63ompression\x18\x05 \x01(\x0e\x32).Ydb.Table.ColumnFamilyPolicy.Compression\"L\n\x0b\x43ompression\x12\x1b\n\x17\x43OMPRESSION_UNSPECIFIED\x10\x00\x12\x10\n\x0cUNCOMPRESSED\x10\x01\x12\x0e\n\nCOMPRESSED\x10\x02\"\'\n\x10\x43ompactionPolicy\x12\x13\n\x0bpreset_name\x18\x01 \x01(\t\";\n\x12\x45xplicitPartitions\x12%\n\x0csplit_points\x18\x01 \x03(\x0b\x32\x0f.Ydb.TypedValue\"S\n\x0ePartitionStats\x12\x15\n\rrows_estimate\x18\x01 \x01(\x04\x12\x12\n\nstore_size\x18\x02 \x01(\x04\x12\x16\n\x0eleader_node_id\x18\x03 \x01(\r\"\xe9\x01\n\nTableStats\x12\x32\n\x0fpartition_stats\x18\x01 \x03(\x0b\x32\x19.Ydb.Table.PartitionStats\x12\x15\n\rrows_estimate\x18\x02 \x01(\x04\x12\x12\n\nstore_size\x18\x03 \x01(\x04\x12\x12\n\npartitions\x18\x04 \x01(\x04\x12\x31\n\rcreation_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x35\n\x11modification_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\xdc\x02\n\x12PartitioningPolicy\x12\x13\n\x0bpreset_name\x18\x01 \x01(\t\x12O\n\x11\x61uto_partitioning\x18\x02 \x01(\x0e\x32\x34.Ydb.Table.PartitioningPolicy.AutoPartitioningPolicy\x12\x1c\n\x12uniform_partitions\x18\x03 \x01(\x04H\x00\x12<\n\x13\x65xplicit_partitions\x18\x04 \x01(\x0b\x32\x1d.Ydb.Table.ExplicitPartitionsH\x00\"v\n\x16\x41utoPartitioningPolicy\x12(\n$AUTO_PARTITIONING_POLICY_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x44ISABLED\x10\x01\x12\x0e\n\nAUTO_SPLIT\x10\x02\x12\x14\n\x10\x41UTO_SPLIT_MERGE\x10\x03\x42\x0c\n\npartitions\"&\n\x0f\x45xecutionPolicy\x12\x13\n\x0bpreset_name\x18\x01 \x01(\t\"\xb1\x01\n\x11ReplicationPolicy\x12\x13\n\x0bpreset_name\x18\x01 \x01(\t\x12\x16\n\x0ereplicas_count\x18\x02 \x01(\r\x12=\n\x1c\x63reate_per_availability_zone\x18\x03 \x01(\x0e\x32\x17.Ydb.FeatureFlag.Status\x12\x30\n\x0f\x61llow_promotion\x18\x04 \x01(\x0e\x32\x17.Ydb.FeatureFlag.Status\"$\n\rCachingPolicy\x12\x13\n\x0bpreset_name\x18\x01 \x01(\t\"\xeb\x02\n\x0cTableProfile\x12\x13\n\x0bpreset_name\x18\x01 \x01(\t\x12\x30\n\x0estorage_policy\x18\x02 \x01(\x0b\x32\x18.Ydb.Table.StoragePolicy\x12\x36\n\x11\x63ompaction_policy\x18\x03 \x01(\x0b\x32\x1b.Ydb.Table.CompactionPolicy\x12:\n\x13partitioning_policy\x18\x04 \x01(\x0b\x32\x1d.Ydb.Table.PartitioningPolicy\x12\x34\n\x10\x65xecution_policy\x18\x05 \x01(\x0b\x32\x1a.Ydb.Table.ExecutionPolicy\x12\x38\n\x12replication_policy\x18\x06 \x01(\x0b\x32\x1c.Ydb.Table.ReplicationPolicy\x12\x30\n\x0e\x63\x61\x63hing_policy\x18\x07 \x01(\x0b\x32\x18.Ydb.Table.CachingPolicy\"\xaa\x03\n\x13SequenceDescription\x12\x11\n\x04name\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x16\n\tmin_value\x18\x02 \x01(\x12H\x01\x88\x01\x01\x12\x16\n\tmax_value\x18\x03 \x01(\x12H\x02\x88\x01\x01\x12\x18\n\x0bstart_value\x18\x04 \x01(\x12H\x03\x88\x01\x01\x12\x12\n\x05\x63\x61\x63he\x18\x05 \x01(\x04H\x04\x88\x01\x01\x12\x16\n\tincrement\x18\x06 \x01(\x12H\x05\x88\x01\x01\x12\x12\n\x05\x63ycle\x18\x07 \x01(\x08H\x06\x88\x01\x01\x12;\n\x07set_val\x18\x08 \x01(\x0b\x32%.Ydb.Table.SequenceDescription.SetValH\x07\x88\x01\x01\x1aV\n\x06SetVal\x12\x17\n\nnext_value\x18\x01 \x01(\x12H\x00\x88\x01\x01\x12\x16\n\tnext_used\x18\x02 \x01(\x08H\x01\x88\x01\x01\x42\r\n\x0b_next_valueB\x0c\n\n_next_usedB\x07\n\x05_nameB\x0c\n\n_min_valueB\x0c\n\n_max_valueB\x0e\n\x0c_start_valueB\x08\n\x06_cacheB\x0c\n\n_incrementB\x08\n\x06_cycleB\n\n\x08_set_val\"\xda\x01\n\nColumnMeta\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x17\n\x04type\x18\x02 \x01(\x0b\x32\t.Ydb.Type\x12\x0e\n\x06\x66\x61mily\x18\x03 \x01(\t\x12\x15\n\x08not_null\x18\x04 \x01(\x08H\x01\x88\x01\x01\x12\'\n\x0c\x66rom_literal\x18\x05 \x01(\x0b\x32\x0f.Ydb.TypedValueH\x00\x12\x37\n\rfrom_sequence\x18\x06 \x01(\x0b\x32\x1e.Ydb.Table.SequenceDescriptionH\x00\x42\x0f\n\rdefault_valueB\x0b\n\t_not_null\"O\n\x1a\x44\x61teTypeColumnModeSettings\x12\x13\n\x0b\x63olumn_name\x18\x01 \x01(\t\x12\x1c\n\x14\x65xpire_after_seconds\x18\x02 \x01(\r\"\x8e\x02\n\x1fValueSinceUnixEpochModeSettings\x12\x13\n\x0b\x63olumn_name\x18\x01 \x01(\t\x12\x44\n\x0b\x63olumn_unit\x18\x02 \x01(\x0e\x32/.Ydb.Table.ValueSinceUnixEpochModeSettings.Unit\x12\x1c\n\x14\x65xpire_after_seconds\x18\x03 \x01(\r\"r\n\x04Unit\x12\x14\n\x10UNIT_UNSPECIFIED\x10\x00\x12\x10\n\x0cUNIT_SECONDS\x10\x01\x12\x15\n\x11UNIT_MILLISECONDS\x10\x02\x12\x15\n\x11UNIT_MICROSECONDS\x10\x03\x12\x14\n\x10UNIT_NANOSECONDS\x10\x04\"\xc4\x01\n\x0bTtlSettings\x12\x41\n\x10\x64\x61te_type_column\x18\x01 \x01(\x0b\x32%.Ydb.Table.DateTypeColumnModeSettingsH\x00\x12L\n\x16value_since_unix_epoch\x18\x02 \x01(\x0b\x32*.Ydb.Table.ValueSinceUnixEpochModeSettingsH\x00\x12\x1c\n\x14run_interval_seconds\x18\x03 \x01(\rB\x06\n\x04mode\"\xda\x01\n\x0fStorageSettings\x12\x32\n\x12tablet_commit_log0\x18\x01 \x01(\x0b\x32\x16.Ydb.Table.StoragePool\x12\x32\n\x12tablet_commit_log1\x18\x02 \x01(\x0b\x32\x16.Ydb.Table.StoragePool\x12(\n\x08\x65xternal\x18\x04 \x01(\x0b\x32\x16.Ydb.Table.StoragePool\x12\x35\n\x14store_external_blobs\x18\x05 \x01(\x0e\x32\x17.Ydb.FeatureFlag.Status\"\x84\x02\n\x0c\x43olumnFamily\x12\x0c\n\x04name\x18\x01 \x01(\t\x12$\n\x04\x64\x61ta\x18\x02 \x01(\x0b\x32\x16.Ydb.Table.StoragePool\x12\x38\n\x0b\x63ompression\x18\x03 \x01(\x0e\x32#.Ydb.Table.ColumnFamily.Compression\x12/\n\x0ekeep_in_memory\x18\x04 \x01(\x0e\x32\x17.Ydb.FeatureFlag.Status\"U\n\x0b\x43ompression\x12\x1b\n\x17\x43OMPRESSION_UNSPECIFIED\x10\x00\x12\x14\n\x10\x43OMPRESSION_NONE\x10\x01\x12\x13\n\x0f\x43OMPRESSION_LZ4\x10\x02\"\xf7\x01\n\x14PartitioningSettings\x12\x14\n\x0cpartition_by\x18\x01 \x03(\t\x12\x35\n\x14partitioning_by_size\x18\x02 \x01(\x0e\x32\x17.Ydb.FeatureFlag.Status\x12\x19\n\x11partition_size_mb\x18\x03 \x01(\x04\x12\x35\n\x14partitioning_by_load\x18\x04 \x01(\x0e\x32\x17.Ydb.FeatureFlag.Status\x12\x1c\n\x14min_partitions_count\x18\x06 \x01(\x04\x12\x1c\n\x14max_partitions_count\x18\x07 \x01(\x04J\x04\x08\x05\x10\x06\"C\n\x16\x41zReadReplicasSettings\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x1b\n\x13read_replicas_count\x18\x02 \x01(\x04\"_\n\x17\x43lusterReplicasSettings\x12\x44\n\x19\x61z_read_replicas_settings\x18\x02 \x03(\x0b\x32!.Ydb.Table.AzReadReplicasSettings\"t\n\x14ReadReplicasSettings\x12$\n\x1aper_az_read_replicas_count\x18\x01 \x01(\x04H\x00\x12$\n\x1a\x61ny_az_read_replicas_count\x18\x02 \x01(\x04H\x00\x42\n\n\x08settingsJ\x04\x08\x03\x10\x04\"\xaa\x07\n\x12\x43reateTableRequest\x12\x12\n\nsession_id\x18\x01 \x01(\t\x12\x0c\n\x04path\x18\x02 \x01(\t\x12&\n\x07\x63olumns\x18\x03 \x03(\x0b\x32\x15.Ydb.Table.ColumnMeta\x12\x13\n\x0bprimary_key\x18\x04 \x03(\t\x12(\n\x07profile\x18\x05 \x01(\x0b\x32\x17.Ydb.Table.TableProfile\x12\x39\n\x10operation_params\x18\x06 \x01(\x0b\x32\x1f.Ydb.Operations.OperationParams\x12&\n\x07indexes\x18\x07 \x03(\x0b\x32\x15.Ydb.Table.TableIndex\x12,\n\x0cttl_settings\x18\x08 \x01(\x0b\x32\x16.Ydb.Table.TtlSettings\x12\x34\n\x10storage_settings\x18\t \x01(\x0b\x32\x1a.Ydb.Table.StorageSettings\x12\x30\n\x0f\x63olumn_families\x18\n \x03(\x0b\x32\x17.Ydb.Table.ColumnFamily\x12Z\n\nattributes\x18\x0b \x03(\x0b\x32-.Ydb.Table.CreateTableRequest.AttributesEntryB\x17\xaa\xe6*\x08\n\x06\n\x04\x08\x01\x10\x64\xa2\xe6*\x07\n\x05\x08\x01\x10\x80 \x12\x19\n\x11\x63ompaction_policy\x18\x0c \x01(\t\x12\x1c\n\x12uniform_partitions\x18\r \x01(\x04H\x00\x12:\n\x11partition_at_keys\x18\x0e \x01(\x0b\x32\x1d.Ydb.Table.ExplicitPartitionsH\x00\x12>\n\x15partitioning_settings\x18\x0f \x01(\x0b\x32\x1f.Ydb.Table.PartitioningSettings\x12\x31\n\x10key_bloom_filter\x18\x10 \x01(\x0e\x32\x17.Ydb.FeatureFlag.Status\x12?\n\x16read_replicas_settings\x18\x11 \x01(\x0b\x32\x1f.Ydb.Table.ReadReplicasSettings\x12\x0f\n\x07tiering\x18\x12 \x01(\t\x12\x11\n\ttemporary\x18\x13 \x01(\x08\x12(\n\nstore_type\x18\x14 \x01(\x0e\x32\x14.Ydb.Table.StoreType\x1a\x31\n\x0f\x41ttributesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\x0c\n\npartitions\"C\n\x13\x43reateTableResponse\x12,\n\toperation\x18\x01 \x01(\x0b\x32\x19.Ydb.Operations.Operation\"u\n\x10\x44ropTableRequest\x12\x12\n\nsession_id\x18\x01 \x01(\t\x12\x0c\n\x04path\x18\x02 \x01(\t\x12\x39\n\x10operation_params\x18\x04 \x01(\x0b\x32\x1f.Ydb.Operations.OperationParamsJ\x04\x08\x03\x10\x04\"A\n\x11\x44ropTableResponse\x12,\n\toperation\x18\x01 \x01(\x0b\x32\x19.Ydb.Operations.Operation\"]\n\x0fRenameIndexItem\x12\x13\n\x0bsource_name\x18\x01 \x01(\t\x12\x18\n\x10\x64\x65stination_name\x18\x02 \x01(\t\x12\x1b\n\x13replace_destination\x18\x03 \x01(\x08\"\x95\t\n\x11\x41lterTableRequest\x12\x12\n\nsession_id\x18\x01 \x01(\t\x12\x0c\n\x04path\x18\x02 \x01(\t\x12*\n\x0b\x61\x64\x64_columns\x18\x03 \x03(\x0b\x32\x15.Ydb.Table.ColumnMeta\x12\x14\n\x0c\x64rop_columns\x18\x04 \x03(\t\x12\x39\n\x10operation_params\x18\x05 \x01(\x0b\x32\x1f.Ydb.Operations.OperationParams\x12,\n\ralter_columns\x18\x06 \x03(\x0b\x32\x15.Ydb.Table.ColumnMeta\x12\x32\n\x10set_ttl_settings\x18\x07 \x01(\x0b\x32\x16.Ydb.Table.TtlSettingsH\x00\x12\x33\n\x11\x64rop_ttl_settings\x18\x08 \x01(\x0b\x32\x16.google.protobuf.EmptyH\x00\x12*\n\x0b\x61\x64\x64_indexes\x18\t \x03(\x0b\x32\x15.Ydb.Table.TableIndex\x12\x14\n\x0c\x64rop_indexes\x18\n \x03(\t\x12:\n\x16\x61lter_storage_settings\x18\x0b \x01(\x0b\x32\x1a.Ydb.Table.StorageSettings\x12\x34\n\x13\x61\x64\x64_column_families\x18\x0c \x03(\x0b\x32\x17.Ydb.Table.ColumnFamily\x12\x36\n\x15\x61lter_column_families\x18\r \x03(\x0b\x32\x17.Ydb.Table.ColumnFamily\x12`\n\x10\x61lter_attributes\x18\x0e \x03(\x0b\x32\x31.Ydb.Table.AlterTableRequest.AlterAttributesEntryB\x13\xaa\xe6*\x08\n\x06\n\x04\x08\x01\x10\x64\xa2\xe6*\x03\x18\x80 \x12\x1d\n\x15set_compaction_policy\x18\x0f \x01(\t\x12\x44\n\x1b\x61lter_partitioning_settings\x18\x10 \x01(\x0b\x32\x1f.Ydb.Table.PartitioningSettings\x12\x35\n\x14set_key_bloom_filter\x18\x11 \x01(\x0e\x32\x17.Ydb.FeatureFlag.Status\x12\x43\n\x1aset_read_replicas_settings\x18\x12 \x01(\x0b\x32\x1f.Ydb.Table.ReadReplicasSettings\x12.\n\x0f\x61\x64\x64_changefeeds\x18\x13 \x03(\x0b\x32\x15.Ydb.Table.Changefeed\x12\x18\n\x10\x64rop_changefeeds\x18\x14 \x03(\t\x12\x32\n\x0erename_indexes\x18\x15 \x03(\x0b\x32\x1a.Ydb.Table.RenameIndexItem\x12\x15\n\x0bset_tiering\x18\x16 \x01(\tH\x01\x12.\n\x0c\x64rop_tiering\x18\x17 \x01(\x0b\x32\x16.google.protobuf.EmptyH\x01\x1a\x36\n\x14\x41lterAttributesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\x0c\n\nttl_actionB\x10\n\x0etiering_action\"B\n\x12\x41lterTableResponse\x12,\n\toperation\x18\x01 \x01(\x0b\x32\x19.Ydb.Operations.Operation\"\x90\x01\n\x10\x43opyTableRequest\x12\x12\n\nsession_id\x18\x01 \x01(\t\x12\x13\n\x0bsource_path\x18\x02 \x01(\t\x12\x18\n\x10\x64\x65stination_path\x18\x03 \x01(\t\x12\x39\n\x10operation_params\x18\x04 \x01(\x0b\x32\x1f.Ydb.Operations.OperationParams\"A\n\x11\x43opyTableResponse\x12,\n\toperation\x18\x01 \x01(\x0b\x32\x19.Ydb.Operations.Operation\"T\n\rCopyTableItem\x12\x13\n\x0bsource_path\x18\x01 \x01(\t\x12\x18\n\x10\x64\x65stination_path\x18\x02 \x01(\t\x12\x14\n\x0comit_indexes\x18\x03 \x01(\x08\"\x8c\x01\n\x11\x43opyTablesRequest\x12\x39\n\x10operation_params\x18\x01 \x01(\x0b\x32\x1f.Ydb.Operations.OperationParams\x12\x12\n\nsession_id\x18\x02 \x01(\t\x12(\n\x06tables\x18\x03 \x03(\x0b\x32\x18.Ydb.Table.CopyTableItem\"B\n\x12\x43opyTablesResponse\x12,\n\toperation\x18\x01 \x01(\x0b\x32\x19.Ydb.Operations.Operation\"]\n\x0fRenameTableItem\x12\x13\n\x0bsource_path\x18\x01 \x01(\t\x12\x18\n\x10\x64\x65stination_path\x18\x02 \x01(\t\x12\x1b\n\x13replace_destination\x18\x03 \x01(\x08\"\x90\x01\n\x13RenameTablesRequest\x12\x39\n\x10operation_params\x18\x01 \x01(\x0b\x32\x1f.Ydb.Operations.OperationParams\x12\x12\n\nsession_id\x18\x02 \x01(\t\x12*\n\x06tables\x18\x03 \x03(\x0b\x32\x1a.Ydb.Table.RenameTableItem\"D\n\x14RenameTablesResponse\x12,\n\toperation\x18\x01 \x01(\x0b\x32\x19.Ydb.Operations.Operation\"\xf5\x01\n\x14\x44\x65scribeTableRequest\x12\x12\n\nsession_id\x18\x01 \x01(\t\x12\x0c\n\x04path\x18\x02 \x01(\t\x12\x39\n\x10operation_params\x18\x04 \x01(\x0b\x32\x1f.Ydb.Operations.OperationParams\x12 \n\x18include_shard_key_bounds\x18\x05 \x01(\x08\x12\x1b\n\x13include_table_stats\x18\x06 \x01(\x08\x12\x1f\n\x17include_partition_stats\x18\x07 \x01(\x08\x12 \n\x18include_shard_nodes_info\x18\t \x01(\x08\"E\n\x15\x44\x65scribeTableResponse\x12,\n\toperation\x18\x01 \x01(\x0b\x32\x19.Ydb.Operations.Operation\"\xc9\x06\n\x13\x44\x65scribeTableResult\x12\x1f\n\x04self\x18\x01 \x01(\x0b\x32\x11.Ydb.Scheme.Entry\x12&\n\x07\x63olumns\x18\x02 \x03(\x0b\x32\x15.Ydb.Table.ColumnMeta\x12\x13\n\x0bprimary_key\x18\x03 \x03(\t\x12)\n\x10shard_key_bounds\x18\x04 \x03(\x0b\x32\x0f.Ydb.TypedValue\x12\x31\n\x07indexes\x18\x05 \x03(\x0b\x32 .Ydb.Table.TableIndexDescription\x12*\n\x0btable_stats\x18\x06 \x01(\x0b\x32\x15.Ydb.Table.TableStats\x12,\n\x0cttl_settings\x18\x07 \x01(\x0b\x32\x16.Ydb.Table.TtlSettings\x12\x34\n\x10storage_settings\x18\x08 \x01(\x0b\x32\x1a.Ydb.Table.StorageSettings\x12\x30\n\x0f\x63olumn_families\x18\t \x03(\x0b\x32\x17.Ydb.Table.ColumnFamily\x12\x42\n\nattributes\x18\n \x03(\x0b\x32..Ydb.Table.DescribeTableResult.AttributesEntry\x12>\n\x15partitioning_settings\x18\x0c \x01(\x0b\x32\x1f.Ydb.Table.PartitioningSettings\x12\x31\n\x10key_bloom_filter\x18\r \x01(\x0e\x32\x17.Ydb.FeatureFlag.Status\x12?\n\x16read_replicas_settings\x18\x0e \x01(\x0b\x32\x1f.Ydb.Table.ReadReplicasSettings\x12\x35\n\x0b\x63hangefeeds\x18\x0f \x03(\x0b\x32 .Ydb.Table.ChangefeedDescription\x12\x0f\n\x07tiering\x18\x10 \x01(\t\x12\x11\n\ttemporary\x18\x11 \x01(\x08\x12(\n\nstore_type\x18\x12 \x01(\x0e\x32\x14.Ydb.Table.StoreType\x1a\x31\n\x0f\x41ttributesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01J\x04\x08\x0b\x10\x0c\"2\n\x05Query\x12\x12\n\x08yql_text\x18\x01 \x01(\tH\x00\x12\x0c\n\x02id\x18\x02 \x01(\tH\x00\x42\x07\n\x05query\"\x1a\n\x18SerializableModeSettings\"6\n\x12OnlineModeSettings\x12 \n\x18\x61llow_inconsistent_reads\x18\x01 \x01(\x08\"\x13\n\x11StaleModeSettings\"\x16\n\x14SnapshotModeSettings\"\x9b\x02\n\x13TransactionSettings\x12\x46\n\x17serializable_read_write\x18\x01 \x01(\x0b\x32#.Ydb.Table.SerializableModeSettingsH\x00\x12\x39\n\x10online_read_only\x18\x02 \x01(\x0b\x32\x1d.Ydb.Table.OnlineModeSettingsH\x00\x12\x37\n\x0fstale_read_only\x18\x03 \x01(\x0b\x32\x1c.Ydb.Table.StaleModeSettingsH\x00\x12=\n\x12snapshot_read_only\x18\x04 \x01(\x0b\x32\x1f.Ydb.Table.SnapshotModeSettingsH\x00\x42\t\n\x07tx_mode\"{\n\x12TransactionControl\x12\x0f\n\x05tx_id\x18\x01 \x01(\tH\x00\x12\x32\n\x08\x62\x65gin_tx\x18\x02 \x01(\x0b\x32\x1e.Ydb.Table.TransactionSettingsH\x00\x12\x11\n\tcommit_tx\x18\n \x01(\x08\x42\r\n\x0btx_selector\")\n\x10QueryCachePolicy\x12\x15\n\rkeep_in_cache\x18\x01 \x01(\x08\"\xb1\x01\n\x14QueryStatsCollection\"\x98\x01\n\x04Mode\x12 \n\x1cSTATS_COLLECTION_UNSPECIFIED\x10\x00\x12\x19\n\x15STATS_COLLECTION_NONE\x10\x01\x12\x1a\n\x16STATS_COLLECTION_BASIC\x10\x02\x12\x19\n\x15STATS_COLLECTION_FULL\x10\x03\x12\x1c\n\x18STATS_COLLECTION_PROFILE\x10\x04\"\xbe\x03\n\x17\x45xecuteDataQueryRequest\x12\x12\n\nsession_id\x18\x01 \x01(\t\x12\x31\n\ntx_control\x18\x02 \x01(\x0b\x32\x1d.Ydb.Table.TransactionControl\x12\x1f\n\x05query\x18\x03 \x01(\x0b\x32\x10.Ydb.Table.Query\x12\x46\n\nparameters\x18\x04 \x03(\x0b\x32\x32.Ydb.Table.ExecuteDataQueryRequest.ParametersEntry\x12\x37\n\x12query_cache_policy\x18\x05 \x01(\x0b\x32\x1b.Ydb.Table.QueryCachePolicy\x12\x39\n\x10operation_params\x18\x06 \x01(\x0b\x32\x1f.Ydb.Operations.OperationParams\x12;\n\rcollect_stats\x18\x07 \x01(\x0e\x32$.Ydb.Table.QueryStatsCollection.Mode\x1a\x42\n\x0fParametersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x1e\n\x05value\x18\x02 \x01(\x0b\x32\x0f.Ydb.TypedValue:\x02\x38\x01\"H\n\x18\x45xecuteDataQueryResponse\x12,\n\toperation\x18\x01 \x01(\x0b\x32\x19.Ydb.Operations.Operation\"|\n\x19\x45xecuteSchemeQueryRequest\x12\x12\n\nsession_id\x18\x01 \x01(\t\x12\x10\n\x08yql_text\x18\x02 \x01(\t\x12\x39\n\x10operation_params\x18\x03 \x01(\x0b\x32\x1f.Ydb.Operations.OperationParams\"J\n\x1a\x45xecuteSchemeQueryResponse\x12,\n\toperation\x18\x01 \x01(\x0b\x32\x19.Ydb.Operations.Operation\"\x1d\n\x0fTransactionMeta\x12\n\n\x02id\x18\x01 \x01(\t\"\x9f\x01\n\tQueryMeta\x12\n\n\x02id\x18\x01 \x01(\t\x12\x43\n\x10parameters_types\x18\x02 \x03(\x0b\x32).Ydb.Table.QueryMeta.ParametersTypesEntry\x1a\x41\n\x14ParametersTypesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x18\n\x05value\x18\x02 \x01(\x0b\x32\t.Ydb.Type:\x02\x38\x01\"\xc1\x01\n\x12\x45xecuteQueryResult\x12#\n\x0bresult_sets\x18\x01 \x03(\x0b\x32\x0e.Ydb.ResultSet\x12+\n\x07tx_meta\x18\x02 \x01(\x0b\x32\x1a.Ydb.Table.TransactionMeta\x12(\n\nquery_meta\x18\x03 \x01(\x0b\x32\x14.Ydb.Table.QueryMeta\x12/\n\x0bquery_stats\x18\x04 \x01(\x0b\x32\x1a.Ydb.TableStats.QueryStats\"\x9c\x01\n\x17\x45xplainDataQueryRequest\x12\x12\n\nsession_id\x18\x01 \x01(\t\x12\x10\n\x08yql_text\x18\x02 \x01(\t\x12\x39\n\x10operation_params\x18\x03 \x01(\x0b\x32\x1f.Ydb.Operations.OperationParams\x12 \n\x18\x63ollect_full_diagnostics\x18\x04 \x01(\x08\"H\n\x18\x45xplainDataQueryResponse\x12,\n\toperation\x18\x01 \x01(\x0b\x32\x19.Ydb.Operations.Operation\"[\n\x12\x45xplainQueryResult\x12\x11\n\tquery_ast\x18\x01 \x01(\t\x12\x12\n\nquery_plan\x18\x02 \x01(\t\x12\x1e\n\x16query_full_diagnostics\x18\x03 \x01(\t\"z\n\x17PrepareDataQueryRequest\x12\x12\n\nsession_id\x18\x01 \x01(\t\x12\x10\n\x08yql_text\x18\x02 \x01(\t\x12\x39\n\x10operation_params\x18\x03 \x01(\x0b\x32\x1f.Ydb.Operations.OperationParams\"H\n\x18PrepareDataQueryResponse\x12,\n\toperation\x18\x01 \x01(\x0b\x32\x19.Ydb.Operations.Operation\"\xb7\x01\n\x12PrepareQueryResult\x12\x10\n\x08query_id\x18\x01 \x01(\t\x12L\n\x10parameters_types\x18\x02 \x03(\x0b\x32\x32.Ydb.Table.PrepareQueryResult.ParametersTypesEntry\x1a\x41\n\x14ParametersTypesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x18\n\x05value\x18\x02 \x01(\x0b\x32\t.Ydb.Type:\x02\x38\x01\"a\n\x10KeepAliveRequest\x12\x12\n\nsession_id\x18\x01 \x01(\t\x12\x39\n\x10operation_params\x18\x02 \x01(\x0b\x32\x1f.Ydb.Operations.OperationParams\"A\n\x11KeepAliveResponse\x12,\n\toperation\x18\x01 \x01(\x0b\x32\x19.Ydb.Operations.Operation\"\xb7\x01\n\x0fKeepAliveResult\x12@\n\x0esession_status\x18\x01 \x01(\x0e\x32(.Ydb.Table.KeepAliveResult.SessionStatus\"b\n\rSessionStatus\x12\x1e\n\x1aSESSION_STATUS_UNSPECIFIED\x10\x00\x12\x18\n\x14SESSION_STATUS_READY\x10\x01\x12\x17\n\x13SESSION_STATUS_BUSY\x10\x02\"\x9d\x01\n\x17\x42\x65ginTransactionRequest\x12\x12\n\nsession_id\x18\x01 \x01(\t\x12\x33\n\x0btx_settings\x18\x02 \x01(\x0b\x32\x1e.Ydb.Table.TransactionSettings\x12\x39\n\x10operation_params\x18\x03 \x01(\x0b\x32\x1f.Ydb.Operations.OperationParams\"H\n\x18\x42\x65ginTransactionResponse\x12,\n\toperation\x18\x01 \x01(\x0b\x32\x19.Ydb.Operations.Operation\"E\n\x16\x42\x65ginTransactionResult\x12+\n\x07tx_meta\x18\x01 \x01(\x0b\x32\x1a.Ydb.Table.TransactionMeta\"\xb5\x01\n\x18\x43ommitTransactionRequest\x12\x12\n\nsession_id\x18\x01 \x01(\t\x12\r\n\x05tx_id\x18\x02 \x01(\t\x12\x39\n\x10operation_params\x18\x03 \x01(\x0b\x32\x1f.Ydb.Operations.OperationParams\x12;\n\rcollect_stats\x18\x04 \x01(\x0e\x32$.Ydb.Table.QueryStatsCollection.Mode\"I\n\x19\x43ommitTransactionResponse\x12,\n\toperation\x18\x01 \x01(\x0b\x32\x19.Ydb.Operations.Operation\"J\n\x17\x43ommitTransactionResult\x12/\n\x0bquery_stats\x18\x01 \x01(\x0b\x32\x1a.Ydb.TableStats.QueryStats\"z\n\x1aRollbackTransactionRequest\x12\x12\n\nsession_id\x18\x01 \x01(\t\x12\r\n\x05tx_id\x18\x02 \x01(\t\x12\x39\n\x10operation_params\x18\x03 \x01(\x0b\x32\x1f.Ydb.Operations.OperationParams\"K\n\x1bRollbackTransactionResponse\x12,\n\toperation\x18\x01 \x01(\x0b\x32\x19.Ydb.Operations.Operation\"\x98\x01\n\x18StoragePolicyDescription\x12\x0c\n\x04name\x18\x01 \x01(\t\x12?\n\x06labels\x18\x02 \x03(\x0b\x32/.Ydb.Table.StoragePolicyDescription.LabelsEntry\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x9e\x01\n\x1b\x43ompactionPolicyDescription\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x42\n\x06labels\x18\x02 \x03(\x0b\x32\x32.Ydb.Table.CompactionPolicyDescription.LabelsEntry\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xa2\x01\n\x1dPartitioningPolicyDescription\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x44\n\x06labels\x18\x02 \x03(\x0b\x32\x34.Ydb.Table.PartitioningPolicyDescription.LabelsEntry\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x9c\x01\n\x1a\x45xecutionPolicyDescription\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x41\n\x06labels\x18\x02 \x03(\x0b\x32\x31.Ydb.Table.ExecutionPolicyDescription.LabelsEntry\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xa0\x01\n\x1cReplicationPolicyDescription\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x43\n\x06labels\x18\x02 \x03(\x0b\x32\x33.Ydb.Table.ReplicationPolicyDescription.LabelsEntry\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x98\x01\n\x18\x43\x61\x63hingPolicyDescription\x12\x0c\n\x04name\x18\x01 \x01(\t\x12?\n\x06labels\x18\x02 \x03(\x0b\x32/.Ydb.Table.CachingPolicyDescription.LabelsEntry\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xbe\x04\n\x17TableProfileDescription\x12\x0c\n\x04name\x18\x01 \x01(\t\x12>\n\x06labels\x18\x02 \x03(\x0b\x32..Ydb.Table.TableProfileDescription.LabelsEntry\x12\x1e\n\x16\x64\x65\x66\x61ult_storage_policy\x18\x03 \x01(\t\x12 \n\x18\x61llowed_storage_policies\x18\x04 \x03(\t\x12!\n\x19\x64\x65\x66\x61ult_compaction_policy\x18\x05 \x01(\t\x12#\n\x1b\x61llowed_compaction_policies\x18\x06 \x03(\t\x12#\n\x1b\x64\x65\x66\x61ult_partitioning_policy\x18\x07 \x01(\t\x12%\n\x1d\x61llowed_partitioning_policies\x18\x08 \x03(\t\x12 \n\x18\x64\x65\x66\x61ult_execution_policy\x18\t \x01(\t\x12\"\n\x1a\x61llowed_execution_policies\x18\n \x03(\t\x12\"\n\x1a\x64\x65\x66\x61ult_replication_policy\x18\x0b \x01(\t\x12$\n\x1c\x61llowed_replication_policies\x18\x0c \x03(\t\x12\x1e\n\x16\x64\x65\x66\x61ult_caching_policy\x18\r \x01(\t\x12 \n\x18\x61llowed_caching_policies\x18\x0e \x03(\t\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"X\n\x1b\x44\x65scribeTableOptionsRequest\x12\x39\n\x10operation_params\x18\x01 \x01(\x0b\x32\x1f.Ydb.Operations.OperationParams\"L\n\x1c\x44\x65scribeTableOptionsResponse\x12,\n\toperation\x18\x01 \x01(\x0b\x32\x19.Ydb.Operations.Operation\"\x99\x04\n\x1a\x44\x65scribeTableOptionsResult\x12\x41\n\x15table_profile_presets\x18\x01 \x03(\x0b\x32\".Ydb.Table.TableProfileDescription\x12\x43\n\x16storage_policy_presets\x18\x02 \x03(\x0b\x32#.Ydb.Table.StoragePolicyDescription\x12I\n\x19\x63ompaction_policy_presets\x18\x03 \x03(\x0b\x32&.Ydb.Table.CompactionPolicyDescription\x12M\n\x1bpartitioning_policy_presets\x18\x04 \x03(\x0b\x32(.Ydb.Table.PartitioningPolicyDescription\x12G\n\x18\x65xecution_policy_presets\x18\x05 \x03(\x0b\x32%.Ydb.Table.ExecutionPolicyDescription\x12K\n\x1areplication_policy_presets\x18\x06 \x03(\x0b\x32\'.Ydb.Table.ReplicationPolicyDescription\x12\x43\n\x16\x63\x61\x63hing_policy_presets\x18\x07 \x03(\x0b\x32#.Ydb.Table.CachingPolicyDescription\"\xc0\x01\n\x08KeyRange\x12\"\n\x07greater\x18\x01 \x01(\x0b\x32\x0f.Ydb.TypedValueH\x00\x12+\n\x10greater_or_equal\x18\x02 \x01(\x0b\x32\x0f.Ydb.TypedValueH\x00\x12\x1f\n\x04less\x18\x03 \x01(\x0b\x32\x0f.Ydb.TypedValueH\x01\x12(\n\rless_or_equal\x18\x04 \x01(\x0b\x32\x0f.Ydb.TypedValueH\x01\x42\x0c\n\nfrom_boundB\n\n\x08to_bound\"\xb8\x02\n\x10ReadTableRequest\x12\x12\n\nsession_id\x18\x01 \x01(\t\x12\x0c\n\x04path\x18\x02 \x01(\t\x12&\n\tkey_range\x18\x03 \x01(\x0b\x32\x13.Ydb.Table.KeyRange\x12\x0f\n\x07\x63olumns\x18\x04 \x03(\t\x12\x0f\n\x07ordered\x18\x05 \x01(\x08\x12\x11\n\trow_limit\x18\x06 \x01(\x04\x12-\n\x0cuse_snapshot\x18\x07 \x01(\x0e\x32\x17.Ydb.FeatureFlag.Status\x12\x19\n\x11\x62\x61tch_limit_bytes\x18\x08 \x01(\x04\x12\x18\n\x10\x62\x61tch_limit_rows\x18\t \x01(\x04\x12\x41\n return_not_null_data_as_optional\x18\n \x01(\x0e\x32\x17.Ydb.FeatureFlag.Status\"\xbc\x01\n\x11ReadTableResponse\x12)\n\x06status\x18\x01 \x01(\x0e\x32\x19.Ydb.StatusIds.StatusCode\x12\'\n\x06issues\x18\x02 \x03(\x0b\x32\x17.Ydb.Issue.IssueMessage\x12\'\n\x08snapshot\x18\x04 \x01(\x0b\x32\x15.Ydb.VirtualTimestamp\x12*\n\x06result\x18\x03 \x01(\x0b\x32\x1a.Ydb.Table.ReadTableResult\"5\n\x0fReadTableResult\x12\"\n\nresult_set\x18\x01 \x01(\x0b\x32\x0e.Ydb.ResultSet\"c\n\x0fReadRowsRequest\x12\x12\n\nsession_id\x18\x01 \x01(\t\x12\x0c\n\x04path\x18\x02 \x01(\t\x12\x1d\n\x04keys\x18\x03 \x01(\x0b\x32\x0f.Ydb.TypedValue\x12\x0f\n\x07\x63olumns\x18\x04 \x03(\t\"\x8a\x01\n\x10ReadRowsResponse\x12)\n\x06status\x18\x01 \x01(\x0e\x32\x19.Ydb.StatusIds.StatusCode\x12\'\n\x06issues\x18\x02 \x03(\x0b\x32\x17.Ydb.Issue.IssueMessage\x12\"\n\nresult_set\x18\x03 \x01(\x0b\x32\x0e.Ydb.ResultSet\"\x8d\x02\n\x11\x42ulkUpsertRequest\x12\r\n\x05table\x18\x01 \x01(\t\x12\x1d\n\x04rows\x18\x02 \x01(\x0b\x32\x0f.Ydb.TypedValue\x12\x39\n\x10operation_params\x18\x03 \x01(\x0b\x32\x1f.Ydb.Operations.OperationParams\x12?\n\x14\x61rrow_batch_settings\x18\x07 \x01(\x0b\x32\x1f.Ydb.Formats.ArrowBatchSettingsH\x00\x12\x30\n\x0c\x63sv_settings\x18\x08 \x01(\x0b\x32\x18.Ydb.Formats.CsvSettingsH\x00\x12\r\n\x04\x64\x61ta\x18\xe8\x07 \x01(\x0c\x42\r\n\x0b\x64\x61ta_format\"B\n\x12\x42ulkUpsertResponse\x12,\n\toperation\x18\x01 \x01(\x0b\x32\x19.Ydb.Operations.Operation\"\x12\n\x10\x42ulkUpsertResult\"\xb3\x03\n\x17\x45xecuteScanQueryRequest\x12\x1f\n\x05query\x18\x03 \x01(\x0b\x32\x10.Ydb.Table.Query\x12\x46\n\nparameters\x18\x04 \x03(\x0b\x32\x32.Ydb.Table.ExecuteScanQueryRequest.ParametersEntry\x12\x35\n\x04mode\x18\x06 \x01(\x0e\x32\'.Ydb.Table.ExecuteScanQueryRequest.Mode\x12;\n\rcollect_stats\x18\x08 \x01(\x0e\x32$.Ydb.Table.QueryStatsCollection.Mode\x12 \n\x18\x63ollect_full_diagnostics\x18\t \x01(\x08\x1a\x42\n\x0fParametersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x1e\n\x05value\x18\x02 \x01(\x0b\x32\x0f.Ydb.TypedValue:\x02\x38\x01\"=\n\x04Mode\x12\x14\n\x10MODE_UNSPECIFIED\x10\x00\x12\x10\n\x0cMODE_EXPLAIN\x10\x01\x12\r\n\tMODE_EXEC\x10\x03J\x04\x08\x01\x10\x02J\x04\x08\x02\x10\x03J\x04\x08\x05\x10\x06J\x04\x08\x07\x10\x08\"\xaf\x01\n\x1f\x45xecuteScanQueryPartialResponse\x12)\n\x06status\x18\x01 \x01(\x0e\x32\x19.Ydb.StatusIds.StatusCode\x12\'\n\x06issues\x18\x02 \x03(\x0b\x32\x17.Ydb.Issue.IssueMessage\x12\x38\n\x06result\x18\x03 \x01(\x0b\x32(.Ydb.Table.ExecuteScanQueryPartialResult\"\xac\x01\n\x1d\x45xecuteScanQueryPartialResult\x12\"\n\nresult_set\x18\x01 \x01(\x0b\x32\x0e.Ydb.ResultSet\x12/\n\x0bquery_stats\x18\x06 \x01(\x0b\x32\x1a.Ydb.TableStats.QueryStats\x12\x1e\n\x16query_full_diagnostics\x18\x07 \x01(\tJ\x04\x08\x02\x10\x03J\x04\x08\x03\x10\x04J\x04\x08\x04\x10\x05J\x04\x08\x05\x10\x06*R\n\tStoreType\x12\x1a\n\x16STORE_TYPE_UNSPECIFIED\x10\x00\x12\x12\n\x0eSTORE_TYPE_ROW\x10\x01\x12\x15\n\x11STORE_TYPE_COLUMN\x10\x02\x42S\n\x14tech.ydb.proto.tableZ8github.com/ydb-platform/ydb-go-genproto/protos/Ydb_Table\xf8\x01\x01\x62\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'protos.ydb_table_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\024tech.ydb.proto.tableZ8github.com/ydb-platform/ydb-go-genproto/protos/Ydb_Table\370\001\001' + _CHANGEFEED_ATTRIBUTESENTRY._options = None + _CHANGEFEED_ATTRIBUTESENTRY._serialized_options = b'8\001' + _CHANGEFEED.fields_by_name['attributes']._options = None + _CHANGEFEED.fields_by_name['attributes']._serialized_options = b'\252\346*\010\n\006\n\004\010\001\020d\242\346*\007\n\005\010\001\020\200 ' + _CHANGEFEED.fields_by_name['aws_region']._options = None + _CHANGEFEED.fields_by_name['aws_region']._serialized_options = b'\242\346*\003\030\200\001' + _CHANGEFEEDDESCRIPTION_ATTRIBUTESENTRY._options = None + _CHANGEFEEDDESCRIPTION_ATTRIBUTESENTRY._serialized_options = b'8\001' + _CREATETABLEREQUEST_ATTRIBUTESENTRY._options = None + _CREATETABLEREQUEST_ATTRIBUTESENTRY._serialized_options = b'8\001' + _CREATETABLEREQUEST.fields_by_name['attributes']._options = None + _CREATETABLEREQUEST.fields_by_name['attributes']._serialized_options = b'\252\346*\010\n\006\n\004\010\001\020d\242\346*\007\n\005\010\001\020\200 ' + _ALTERTABLEREQUEST_ALTERATTRIBUTESENTRY._options = None + _ALTERTABLEREQUEST_ALTERATTRIBUTESENTRY._serialized_options = b'8\001' + _ALTERTABLEREQUEST.fields_by_name['alter_attributes']._options = None + _ALTERTABLEREQUEST.fields_by_name['alter_attributes']._serialized_options = b'\252\346*\010\n\006\n\004\010\001\020d\242\346*\003\030\200 ' + _DESCRIBETABLERESULT_ATTRIBUTESENTRY._options = None + _DESCRIBETABLERESULT_ATTRIBUTESENTRY._serialized_options = b'8\001' + _EXECUTEDATAQUERYREQUEST_PARAMETERSENTRY._options = None + _EXECUTEDATAQUERYREQUEST_PARAMETERSENTRY._serialized_options = b'8\001' + _QUERYMETA_PARAMETERSTYPESENTRY._options = None + _QUERYMETA_PARAMETERSTYPESENTRY._serialized_options = b'8\001' + _PREPAREQUERYRESULT_PARAMETERSTYPESENTRY._options = None + _PREPAREQUERYRESULT_PARAMETERSTYPESENTRY._serialized_options = b'8\001' + _STORAGEPOLICYDESCRIPTION_LABELSENTRY._options = None + _STORAGEPOLICYDESCRIPTION_LABELSENTRY._serialized_options = b'8\001' + _COMPACTIONPOLICYDESCRIPTION_LABELSENTRY._options = None + _COMPACTIONPOLICYDESCRIPTION_LABELSENTRY._serialized_options = b'8\001' + _PARTITIONINGPOLICYDESCRIPTION_LABELSENTRY._options = None + _PARTITIONINGPOLICYDESCRIPTION_LABELSENTRY._serialized_options = b'8\001' + _EXECUTIONPOLICYDESCRIPTION_LABELSENTRY._options = None + _EXECUTIONPOLICYDESCRIPTION_LABELSENTRY._serialized_options = b'8\001' + _REPLICATIONPOLICYDESCRIPTION_LABELSENTRY._options = None + _REPLICATIONPOLICYDESCRIPTION_LABELSENTRY._serialized_options = b'8\001' + _CACHINGPOLICYDESCRIPTION_LABELSENTRY._options = None + _CACHINGPOLICYDESCRIPTION_LABELSENTRY._serialized_options = b'8\001' + _TABLEPROFILEDESCRIPTION_LABELSENTRY._options = None + _TABLEPROFILEDESCRIPTION_LABELSENTRY._serialized_options = b'8\001' + _EXECUTESCANQUERYREQUEST_PARAMETERSENTRY._options = None + _EXECUTESCANQUERYREQUEST_PARAMETERSENTRY._serialized_options = b'8\001' + _STORETYPE._serialized_start=20290 + _STORETYPE._serialized_end=20372 + _CREATESESSIONREQUEST._serialized_start=413 + _CREATESESSIONREQUEST._serialized_end=494 + _CREATESESSIONRESPONSE._serialized_start=496 + _CREATESESSIONRESPONSE._serialized_end=565 + _CREATESESSIONRESULT._serialized_start=567 + _CREATESESSIONRESULT._serialized_end=608 + _DELETESESSIONREQUEST._serialized_start=610 + _DELETESESSIONREQUEST._serialized_end=711 + _DELETESESSIONRESPONSE._serialized_start=713 + _DELETESESSIONRESPONSE._serialized_end=782 + _GLOBALINDEX._serialized_start=784 + _GLOBALINDEX._serialized_end=797 + _GLOBALASYNCINDEX._serialized_start=799 + _GLOBALASYNCINDEX._serialized_end=817 + _GLOBALUNIQUEINDEX._serialized_start=819 + _GLOBALUNIQUEINDEX._serialized_end=838 + _TABLEINDEX._serialized_start=841 + _TABLEINDEX._serialized_end=1088 + _TABLEINDEXDESCRIPTION._serialized_start=1091 + _TABLEINDEXDESCRIPTION._serialized_end=1499 + _TABLEINDEXDESCRIPTION_STATUS._serialized_start=1420 + _TABLEINDEXDESCRIPTION_STATUS._serialized_end=1491 + _INDEXBUILDSTATE._serialized_start=1502 + _INDEXBUILDSTATE._serialized_end=1723 + _INDEXBUILDSTATE_STATE._serialized_start=1522 + _INDEXBUILDSTATE_STATE._serialized_end=1723 + _INDEXBUILDDESCRIPTION._serialized_start=1725 + _INDEXBUILDDESCRIPTION._serialized_end=1800 + _INDEXBUILDMETADATA._serialized_start=1803 + _INDEXBUILDMETADATA._serialized_end=1945 + _CHANGEFEEDMODE._serialized_start=1948 + _CHANGEFEEDMODE._serialized_end=2102 + _CHANGEFEEDMODE_MODE._serialized_start=1967 + _CHANGEFEEDMODE_MODE._serialized_end=2102 + _CHANGEFEEDFORMAT._serialized_start=2105 + _CHANGEFEEDFORMAT._serialized_end=2234 + _CHANGEFEEDFORMAT_FORMAT._serialized_start=2125 + _CHANGEFEEDFORMAT_FORMAT._serialized_end=2234 + _CHANGEFEED._serialized_start=2237 + _CHANGEFEED._serialized_end=2763 + _CHANGEFEED_ATTRIBUTESENTRY._serialized_start=2714 + _CHANGEFEED_ATTRIBUTESENTRY._serialized_end=2763 + _CHANGEFEEDDESCRIPTION._serialized_start=2766 + _CHANGEFEEDDESCRIPTION._serialized_end=3285 + _CHANGEFEEDDESCRIPTION_ATTRIBUTESENTRY._serialized_start=2714 + _CHANGEFEEDDESCRIPTION_ATTRIBUTESENTRY._serialized_end=2763 + _CHANGEFEEDDESCRIPTION_STATE._serialized_start=3192 + _CHANGEFEEDDESCRIPTION_STATE._serialized_end=3285 + _STORAGEPOOL._serialized_start=3287 + _STORAGEPOOL._serialized_end=3315 + _STORAGEPOLICY._serialized_start=3318 + _STORAGEPOLICY._serialized_end=3616 + _COLUMNFAMILYPOLICY._serialized_start=3619 + _COLUMNFAMILYPOLICY._serialized_end=3924 + _COLUMNFAMILYPOLICY_COMPRESSION._serialized_start=3848 + _COLUMNFAMILYPOLICY_COMPRESSION._serialized_end=3924 + _COMPACTIONPOLICY._serialized_start=3926 + _COMPACTIONPOLICY._serialized_end=3965 + _EXPLICITPARTITIONS._serialized_start=3967 + _EXPLICITPARTITIONS._serialized_end=4026 + _PARTITIONSTATS._serialized_start=4028 + _PARTITIONSTATS._serialized_end=4111 + _TABLESTATS._serialized_start=4114 + _TABLESTATS._serialized_end=4347 + _PARTITIONINGPOLICY._serialized_start=4350 + _PARTITIONINGPOLICY._serialized_end=4698 + _PARTITIONINGPOLICY_AUTOPARTITIONINGPOLICY._serialized_start=4566 + _PARTITIONINGPOLICY_AUTOPARTITIONINGPOLICY._serialized_end=4684 + _EXECUTIONPOLICY._serialized_start=4700 + _EXECUTIONPOLICY._serialized_end=4738 + _REPLICATIONPOLICY._serialized_start=4741 + _REPLICATIONPOLICY._serialized_end=4918 + _CACHINGPOLICY._serialized_start=4920 + _CACHINGPOLICY._serialized_end=4956 + _TABLEPROFILE._serialized_start=4959 + _TABLEPROFILE._serialized_end=5322 + _SEQUENCEDESCRIPTION._serialized_start=5325 + _SEQUENCEDESCRIPTION._serialized_end=5751 + _SEQUENCEDESCRIPTION_SETVAL._serialized_start=5566 + _SEQUENCEDESCRIPTION_SETVAL._serialized_end=5652 + _COLUMNMETA._serialized_start=5754 + _COLUMNMETA._serialized_end=5972 + _DATETYPECOLUMNMODESETTINGS._serialized_start=5974 + _DATETYPECOLUMNMODESETTINGS._serialized_end=6053 + _VALUESINCEUNIXEPOCHMODESETTINGS._serialized_start=6056 + _VALUESINCEUNIXEPOCHMODESETTINGS._serialized_end=6326 + _VALUESINCEUNIXEPOCHMODESETTINGS_UNIT._serialized_start=6212 + _VALUESINCEUNIXEPOCHMODESETTINGS_UNIT._serialized_end=6326 + _TTLSETTINGS._serialized_start=6329 + _TTLSETTINGS._serialized_end=6525 + _STORAGESETTINGS._serialized_start=6528 + _STORAGESETTINGS._serialized_end=6746 + _COLUMNFAMILY._serialized_start=6749 + _COLUMNFAMILY._serialized_end=7009 + _COLUMNFAMILY_COMPRESSION._serialized_start=6924 + _COLUMNFAMILY_COMPRESSION._serialized_end=7009 + _PARTITIONINGSETTINGS._serialized_start=7012 + _PARTITIONINGSETTINGS._serialized_end=7259 + _AZREADREPLICASSETTINGS._serialized_start=7261 + _AZREADREPLICASSETTINGS._serialized_end=7328 + _CLUSTERREPLICASSETTINGS._serialized_start=7330 + _CLUSTERREPLICASSETTINGS._serialized_end=7425 + _READREPLICASSETTINGS._serialized_start=7427 + _READREPLICASSETTINGS._serialized_end=7543 + _CREATETABLEREQUEST._serialized_start=7546 + _CREATETABLEREQUEST._serialized_end=8484 + _CREATETABLEREQUEST_ATTRIBUTESENTRY._serialized_start=2714 + _CREATETABLEREQUEST_ATTRIBUTESENTRY._serialized_end=2763 + _CREATETABLERESPONSE._serialized_start=8486 + _CREATETABLERESPONSE._serialized_end=8553 + _DROPTABLEREQUEST._serialized_start=8555 + _DROPTABLEREQUEST._serialized_end=8672 + _DROPTABLERESPONSE._serialized_start=8674 + _DROPTABLERESPONSE._serialized_end=8739 + _RENAMEINDEXITEM._serialized_start=8741 + _RENAMEINDEXITEM._serialized_end=8834 + _ALTERTABLEREQUEST._serialized_start=8837 + _ALTERTABLEREQUEST._serialized_end=10010 + _ALTERTABLEREQUEST_ALTERATTRIBUTESENTRY._serialized_start=9924 + _ALTERTABLEREQUEST_ALTERATTRIBUTESENTRY._serialized_end=9978 + _ALTERTABLERESPONSE._serialized_start=10012 + _ALTERTABLERESPONSE._serialized_end=10078 + _COPYTABLEREQUEST._serialized_start=10081 + _COPYTABLEREQUEST._serialized_end=10225 + _COPYTABLERESPONSE._serialized_start=10227 + _COPYTABLERESPONSE._serialized_end=10292 + _COPYTABLEITEM._serialized_start=10294 + _COPYTABLEITEM._serialized_end=10378 + _COPYTABLESREQUEST._serialized_start=10381 + _COPYTABLESREQUEST._serialized_end=10521 + _COPYTABLESRESPONSE._serialized_start=10523 + _COPYTABLESRESPONSE._serialized_end=10589 + _RENAMETABLEITEM._serialized_start=10591 + _RENAMETABLEITEM._serialized_end=10684 + _RENAMETABLESREQUEST._serialized_start=10687 + _RENAMETABLESREQUEST._serialized_end=10831 + _RENAMETABLESRESPONSE._serialized_start=10833 + _RENAMETABLESRESPONSE._serialized_end=10901 + _DESCRIBETABLEREQUEST._serialized_start=10904 + _DESCRIBETABLEREQUEST._serialized_end=11149 + _DESCRIBETABLERESPONSE._serialized_start=11151 + _DESCRIBETABLERESPONSE._serialized_end=11220 + _DESCRIBETABLERESULT._serialized_start=11223 + _DESCRIBETABLERESULT._serialized_end=12064 + _DESCRIBETABLERESULT_ATTRIBUTESENTRY._serialized_start=2714 + _DESCRIBETABLERESULT_ATTRIBUTESENTRY._serialized_end=2763 + _QUERY._serialized_start=12066 + _QUERY._serialized_end=12116 + _SERIALIZABLEMODESETTINGS._serialized_start=12118 + _SERIALIZABLEMODESETTINGS._serialized_end=12144 + _ONLINEMODESETTINGS._serialized_start=12146 + _ONLINEMODESETTINGS._serialized_end=12200 + _STALEMODESETTINGS._serialized_start=12202 + _STALEMODESETTINGS._serialized_end=12221 + _SNAPSHOTMODESETTINGS._serialized_start=12223 + _SNAPSHOTMODESETTINGS._serialized_end=12245 + _TRANSACTIONSETTINGS._serialized_start=12248 + _TRANSACTIONSETTINGS._serialized_end=12531 + _TRANSACTIONCONTROL._serialized_start=12533 + _TRANSACTIONCONTROL._serialized_end=12656 + _QUERYCACHEPOLICY._serialized_start=12658 + _QUERYCACHEPOLICY._serialized_end=12699 + _QUERYSTATSCOLLECTION._serialized_start=12702 + _QUERYSTATSCOLLECTION._serialized_end=12879 + _QUERYSTATSCOLLECTION_MODE._serialized_start=12727 + _QUERYSTATSCOLLECTION_MODE._serialized_end=12879 + _EXECUTEDATAQUERYREQUEST._serialized_start=12882 + _EXECUTEDATAQUERYREQUEST._serialized_end=13328 + _EXECUTEDATAQUERYREQUEST_PARAMETERSENTRY._serialized_start=13262 + _EXECUTEDATAQUERYREQUEST_PARAMETERSENTRY._serialized_end=13328 + _EXECUTEDATAQUERYRESPONSE._serialized_start=13330 + _EXECUTEDATAQUERYRESPONSE._serialized_end=13402 + _EXECUTESCHEMEQUERYREQUEST._serialized_start=13404 + _EXECUTESCHEMEQUERYREQUEST._serialized_end=13528 + _EXECUTESCHEMEQUERYRESPONSE._serialized_start=13530 + _EXECUTESCHEMEQUERYRESPONSE._serialized_end=13604 + _TRANSACTIONMETA._serialized_start=13606 + _TRANSACTIONMETA._serialized_end=13635 + _QUERYMETA._serialized_start=13638 + _QUERYMETA._serialized_end=13797 + _QUERYMETA_PARAMETERSTYPESENTRY._serialized_start=13732 + _QUERYMETA_PARAMETERSTYPESENTRY._serialized_end=13797 + _EXECUTEQUERYRESULT._serialized_start=13800 + _EXECUTEQUERYRESULT._serialized_end=13993 + _EXPLAINDATAQUERYREQUEST._serialized_start=13996 + _EXPLAINDATAQUERYREQUEST._serialized_end=14152 + _EXPLAINDATAQUERYRESPONSE._serialized_start=14154 + _EXPLAINDATAQUERYRESPONSE._serialized_end=14226 + _EXPLAINQUERYRESULT._serialized_start=14228 + _EXPLAINQUERYRESULT._serialized_end=14319 + _PREPAREDATAQUERYREQUEST._serialized_start=14321 + _PREPAREDATAQUERYREQUEST._serialized_end=14443 + _PREPAREDATAQUERYRESPONSE._serialized_start=14445 + _PREPAREDATAQUERYRESPONSE._serialized_end=14517 + _PREPAREQUERYRESULT._serialized_start=14520 + _PREPAREQUERYRESULT._serialized_end=14703 + _PREPAREQUERYRESULT_PARAMETERSTYPESENTRY._serialized_start=13732 + _PREPAREQUERYRESULT_PARAMETERSTYPESENTRY._serialized_end=13797 + _KEEPALIVEREQUEST._serialized_start=14705 + _KEEPALIVEREQUEST._serialized_end=14802 + _KEEPALIVERESPONSE._serialized_start=14804 + _KEEPALIVERESPONSE._serialized_end=14869 + _KEEPALIVERESULT._serialized_start=14872 + _KEEPALIVERESULT._serialized_end=15055 + _KEEPALIVERESULT_SESSIONSTATUS._serialized_start=14957 + _KEEPALIVERESULT_SESSIONSTATUS._serialized_end=15055 + _BEGINTRANSACTIONREQUEST._serialized_start=15058 + _BEGINTRANSACTIONREQUEST._serialized_end=15215 + _BEGINTRANSACTIONRESPONSE._serialized_start=15217 + _BEGINTRANSACTIONRESPONSE._serialized_end=15289 + _BEGINTRANSACTIONRESULT._serialized_start=15291 + _BEGINTRANSACTIONRESULT._serialized_end=15360 + _COMMITTRANSACTIONREQUEST._serialized_start=15363 + _COMMITTRANSACTIONREQUEST._serialized_end=15544 + _COMMITTRANSACTIONRESPONSE._serialized_start=15546 + _COMMITTRANSACTIONRESPONSE._serialized_end=15619 + _COMMITTRANSACTIONRESULT._serialized_start=15621 + _COMMITTRANSACTIONRESULT._serialized_end=15695 + _ROLLBACKTRANSACTIONREQUEST._serialized_start=15697 + _ROLLBACKTRANSACTIONREQUEST._serialized_end=15819 + _ROLLBACKTRANSACTIONRESPONSE._serialized_start=15821 + _ROLLBACKTRANSACTIONRESPONSE._serialized_end=15896 + _STORAGEPOLICYDESCRIPTION._serialized_start=15899 + _STORAGEPOLICYDESCRIPTION._serialized_end=16051 + _STORAGEPOLICYDESCRIPTION_LABELSENTRY._serialized_start=16006 + _STORAGEPOLICYDESCRIPTION_LABELSENTRY._serialized_end=16051 + _COMPACTIONPOLICYDESCRIPTION._serialized_start=16054 + _COMPACTIONPOLICYDESCRIPTION._serialized_end=16212 + _COMPACTIONPOLICYDESCRIPTION_LABELSENTRY._serialized_start=16006 + _COMPACTIONPOLICYDESCRIPTION_LABELSENTRY._serialized_end=16051 + _PARTITIONINGPOLICYDESCRIPTION._serialized_start=16215 + _PARTITIONINGPOLICYDESCRIPTION._serialized_end=16377 + _PARTITIONINGPOLICYDESCRIPTION_LABELSENTRY._serialized_start=16006 + _PARTITIONINGPOLICYDESCRIPTION_LABELSENTRY._serialized_end=16051 + _EXECUTIONPOLICYDESCRIPTION._serialized_start=16380 + _EXECUTIONPOLICYDESCRIPTION._serialized_end=16536 + _EXECUTIONPOLICYDESCRIPTION_LABELSENTRY._serialized_start=16006 + _EXECUTIONPOLICYDESCRIPTION_LABELSENTRY._serialized_end=16051 + _REPLICATIONPOLICYDESCRIPTION._serialized_start=16539 + _REPLICATIONPOLICYDESCRIPTION._serialized_end=16699 + _REPLICATIONPOLICYDESCRIPTION_LABELSENTRY._serialized_start=16006 + _REPLICATIONPOLICYDESCRIPTION_LABELSENTRY._serialized_end=16051 + _CACHINGPOLICYDESCRIPTION._serialized_start=16702 + _CACHINGPOLICYDESCRIPTION._serialized_end=16854 + _CACHINGPOLICYDESCRIPTION_LABELSENTRY._serialized_start=16006 + _CACHINGPOLICYDESCRIPTION_LABELSENTRY._serialized_end=16051 + _TABLEPROFILEDESCRIPTION._serialized_start=16857 + _TABLEPROFILEDESCRIPTION._serialized_end=17431 + _TABLEPROFILEDESCRIPTION_LABELSENTRY._serialized_start=16006 + _TABLEPROFILEDESCRIPTION_LABELSENTRY._serialized_end=16051 + _DESCRIBETABLEOPTIONSREQUEST._serialized_start=17433 + _DESCRIBETABLEOPTIONSREQUEST._serialized_end=17521 + _DESCRIBETABLEOPTIONSRESPONSE._serialized_start=17523 + _DESCRIBETABLEOPTIONSRESPONSE._serialized_end=17599 + _DESCRIBETABLEOPTIONSRESULT._serialized_start=17602 + _DESCRIBETABLEOPTIONSRESULT._serialized_end=18139 + _KEYRANGE._serialized_start=18142 + _KEYRANGE._serialized_end=18334 + _READTABLEREQUEST._serialized_start=18337 + _READTABLEREQUEST._serialized_end=18649 + _READTABLERESPONSE._serialized_start=18652 + _READTABLERESPONSE._serialized_end=18840 + _READTABLERESULT._serialized_start=18842 + _READTABLERESULT._serialized_end=18895 + _READROWSREQUEST._serialized_start=18897 + _READROWSREQUEST._serialized_end=18996 + _READROWSRESPONSE._serialized_start=18999 + _READROWSRESPONSE._serialized_end=19137 + _BULKUPSERTREQUEST._serialized_start=19140 + _BULKUPSERTREQUEST._serialized_end=19409 + _BULKUPSERTRESPONSE._serialized_start=19411 + _BULKUPSERTRESPONSE._serialized_end=19477 + _BULKUPSERTRESULT._serialized_start=19479 + _BULKUPSERTRESULT._serialized_end=19497 + _EXECUTESCANQUERYREQUEST._serialized_start=19500 + _EXECUTESCANQUERYREQUEST._serialized_end=19935 + _EXECUTESCANQUERYREQUEST_PARAMETERSENTRY._serialized_start=13262 + _EXECUTESCANQUERYREQUEST_PARAMETERSENTRY._serialized_end=13328 + _EXECUTESCANQUERYREQUEST_MODE._serialized_start=19850 + _EXECUTESCANQUERYREQUEST_MODE._serialized_end=19911 + _EXECUTESCANQUERYPARTIALRESPONSE._serialized_start=19938 + _EXECUTESCANQUERYPARTIALRESPONSE._serialized_end=20113 + _EXECUTESCANQUERYPARTIALRESULT._serialized_start=20116 + _EXECUTESCANQUERYPARTIALRESULT._serialized_end=20288 +# @@protoc_insertion_point(module_scope) diff --git a/ydb/_grpc/v5/protos/ydb_table_pb2.pyi b/ydb/_grpc/v5/protos/ydb_table_pb2.pyi new file mode 100644 index 00000000..19da81a5 --- /dev/null +++ b/ydb/_grpc/v5/protos/ydb_table_pb2.pyi @@ -0,0 +1,1399 @@ +from protos.annotations import validation_pb2 as _validation_pb2 +from protos import ydb_common_pb2 as _ydb_common_pb2 +from protos import ydb_issue_message_pb2 as _ydb_issue_message_pb2 +from protos import ydb_operation_pb2 as _ydb_operation_pb2 +from protos import ydb_query_stats_pb2 as _ydb_query_stats_pb2 +from protos import ydb_value_pb2 as _ydb_value_pb2 +from protos import ydb_scheme_pb2 as _ydb_scheme_pb2 +from protos import ydb_status_codes_pb2 as _ydb_status_codes_pb2 +from protos import ydb_topic_pb2 as _ydb_topic_pb2 +from protos import ydb_formats_pb2 as _ydb_formats_pb2 +from google.protobuf import empty_pb2 as _empty_pb2 +from google.protobuf import duration_pb2 as _duration_pb2 +from google.protobuf import timestamp_pb2 as _timestamp_pb2 +from google.protobuf.internal import containers as _containers +from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union + +DESCRIPTOR: _descriptor.FileDescriptor +STORE_TYPE_COLUMN: StoreType +STORE_TYPE_ROW: StoreType +STORE_TYPE_UNSPECIFIED: StoreType + +class AlterTableRequest(_message.Message): + __slots__ = ["add_changefeeds", "add_column_families", "add_columns", "add_indexes", "alter_attributes", "alter_column_families", "alter_columns", "alter_partitioning_settings", "alter_storage_settings", "drop_changefeeds", "drop_columns", "drop_indexes", "drop_tiering", "drop_ttl_settings", "operation_params", "path", "rename_indexes", "session_id", "set_compaction_policy", "set_key_bloom_filter", "set_read_replicas_settings", "set_tiering", "set_ttl_settings"] + class AlterAttributesEntry(_message.Message): + __slots__ = ["key", "value"] + KEY_FIELD_NUMBER: _ClassVar[int] + VALUE_FIELD_NUMBER: _ClassVar[int] + key: str + value: str + def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ... + ADD_CHANGEFEEDS_FIELD_NUMBER: _ClassVar[int] + ADD_COLUMNS_FIELD_NUMBER: _ClassVar[int] + ADD_COLUMN_FAMILIES_FIELD_NUMBER: _ClassVar[int] + ADD_INDEXES_FIELD_NUMBER: _ClassVar[int] + ALTER_ATTRIBUTES_FIELD_NUMBER: _ClassVar[int] + ALTER_COLUMNS_FIELD_NUMBER: _ClassVar[int] + ALTER_COLUMN_FAMILIES_FIELD_NUMBER: _ClassVar[int] + ALTER_PARTITIONING_SETTINGS_FIELD_NUMBER: _ClassVar[int] + ALTER_STORAGE_SETTINGS_FIELD_NUMBER: _ClassVar[int] + DROP_CHANGEFEEDS_FIELD_NUMBER: _ClassVar[int] + DROP_COLUMNS_FIELD_NUMBER: _ClassVar[int] + DROP_INDEXES_FIELD_NUMBER: _ClassVar[int] + DROP_TIERING_FIELD_NUMBER: _ClassVar[int] + DROP_TTL_SETTINGS_FIELD_NUMBER: _ClassVar[int] + OPERATION_PARAMS_FIELD_NUMBER: _ClassVar[int] + PATH_FIELD_NUMBER: _ClassVar[int] + RENAME_INDEXES_FIELD_NUMBER: _ClassVar[int] + SESSION_ID_FIELD_NUMBER: _ClassVar[int] + SET_COMPACTION_POLICY_FIELD_NUMBER: _ClassVar[int] + SET_KEY_BLOOM_FILTER_FIELD_NUMBER: _ClassVar[int] + SET_READ_REPLICAS_SETTINGS_FIELD_NUMBER: _ClassVar[int] + SET_TIERING_FIELD_NUMBER: _ClassVar[int] + SET_TTL_SETTINGS_FIELD_NUMBER: _ClassVar[int] + add_changefeeds: _containers.RepeatedCompositeFieldContainer[Changefeed] + add_column_families: _containers.RepeatedCompositeFieldContainer[ColumnFamily] + add_columns: _containers.RepeatedCompositeFieldContainer[ColumnMeta] + add_indexes: _containers.RepeatedCompositeFieldContainer[TableIndex] + alter_attributes: _containers.ScalarMap[str, str] + alter_column_families: _containers.RepeatedCompositeFieldContainer[ColumnFamily] + alter_columns: _containers.RepeatedCompositeFieldContainer[ColumnMeta] + alter_partitioning_settings: PartitioningSettings + alter_storage_settings: StorageSettings + drop_changefeeds: _containers.RepeatedScalarFieldContainer[str] + drop_columns: _containers.RepeatedScalarFieldContainer[str] + drop_indexes: _containers.RepeatedScalarFieldContainer[str] + drop_tiering: _empty_pb2.Empty + drop_ttl_settings: _empty_pb2.Empty + operation_params: _ydb_operation_pb2.OperationParams + path: str + rename_indexes: _containers.RepeatedCompositeFieldContainer[RenameIndexItem] + session_id: str + set_compaction_policy: str + set_key_bloom_filter: _ydb_common_pb2.FeatureFlag.Status + set_read_replicas_settings: ReadReplicasSettings + set_tiering: str + set_ttl_settings: TtlSettings + def __init__(self, session_id: _Optional[str] = ..., path: _Optional[str] = ..., add_columns: _Optional[_Iterable[_Union[ColumnMeta, _Mapping]]] = ..., drop_columns: _Optional[_Iterable[str]] = ..., operation_params: _Optional[_Union[_ydb_operation_pb2.OperationParams, _Mapping]] = ..., alter_columns: _Optional[_Iterable[_Union[ColumnMeta, _Mapping]]] = ..., set_ttl_settings: _Optional[_Union[TtlSettings, _Mapping]] = ..., drop_ttl_settings: _Optional[_Union[_empty_pb2.Empty, _Mapping]] = ..., add_indexes: _Optional[_Iterable[_Union[TableIndex, _Mapping]]] = ..., drop_indexes: _Optional[_Iterable[str]] = ..., alter_storage_settings: _Optional[_Union[StorageSettings, _Mapping]] = ..., add_column_families: _Optional[_Iterable[_Union[ColumnFamily, _Mapping]]] = ..., alter_column_families: _Optional[_Iterable[_Union[ColumnFamily, _Mapping]]] = ..., alter_attributes: _Optional[_Mapping[str, str]] = ..., set_compaction_policy: _Optional[str] = ..., alter_partitioning_settings: _Optional[_Union[PartitioningSettings, _Mapping]] = ..., set_key_bloom_filter: _Optional[_Union[_ydb_common_pb2.FeatureFlag.Status, str]] = ..., set_read_replicas_settings: _Optional[_Union[ReadReplicasSettings, _Mapping]] = ..., add_changefeeds: _Optional[_Iterable[_Union[Changefeed, _Mapping]]] = ..., drop_changefeeds: _Optional[_Iterable[str]] = ..., rename_indexes: _Optional[_Iterable[_Union[RenameIndexItem, _Mapping]]] = ..., set_tiering: _Optional[str] = ..., drop_tiering: _Optional[_Union[_empty_pb2.Empty, _Mapping]] = ...) -> None: ... + +class AlterTableResponse(_message.Message): + __slots__ = ["operation"] + OPERATION_FIELD_NUMBER: _ClassVar[int] + operation: _ydb_operation_pb2.Operation + def __init__(self, operation: _Optional[_Union[_ydb_operation_pb2.Operation, _Mapping]] = ...) -> None: ... + +class AzReadReplicasSettings(_message.Message): + __slots__ = ["name", "read_replicas_count"] + NAME_FIELD_NUMBER: _ClassVar[int] + READ_REPLICAS_COUNT_FIELD_NUMBER: _ClassVar[int] + name: str + read_replicas_count: int + def __init__(self, name: _Optional[str] = ..., read_replicas_count: _Optional[int] = ...) -> None: ... + +class BeginTransactionRequest(_message.Message): + __slots__ = ["operation_params", "session_id", "tx_settings"] + OPERATION_PARAMS_FIELD_NUMBER: _ClassVar[int] + SESSION_ID_FIELD_NUMBER: _ClassVar[int] + TX_SETTINGS_FIELD_NUMBER: _ClassVar[int] + operation_params: _ydb_operation_pb2.OperationParams + session_id: str + tx_settings: TransactionSettings + def __init__(self, session_id: _Optional[str] = ..., tx_settings: _Optional[_Union[TransactionSettings, _Mapping]] = ..., operation_params: _Optional[_Union[_ydb_operation_pb2.OperationParams, _Mapping]] = ...) -> None: ... + +class BeginTransactionResponse(_message.Message): + __slots__ = ["operation"] + OPERATION_FIELD_NUMBER: _ClassVar[int] + operation: _ydb_operation_pb2.Operation + def __init__(self, operation: _Optional[_Union[_ydb_operation_pb2.Operation, _Mapping]] = ...) -> None: ... + +class BeginTransactionResult(_message.Message): + __slots__ = ["tx_meta"] + TX_META_FIELD_NUMBER: _ClassVar[int] + tx_meta: TransactionMeta + def __init__(self, tx_meta: _Optional[_Union[TransactionMeta, _Mapping]] = ...) -> None: ... + +class BulkUpsertRequest(_message.Message): + __slots__ = ["arrow_batch_settings", "csv_settings", "data", "operation_params", "rows", "table"] + ARROW_BATCH_SETTINGS_FIELD_NUMBER: _ClassVar[int] + CSV_SETTINGS_FIELD_NUMBER: _ClassVar[int] + DATA_FIELD_NUMBER: _ClassVar[int] + OPERATION_PARAMS_FIELD_NUMBER: _ClassVar[int] + ROWS_FIELD_NUMBER: _ClassVar[int] + TABLE_FIELD_NUMBER: _ClassVar[int] + arrow_batch_settings: _ydb_formats_pb2.ArrowBatchSettings + csv_settings: _ydb_formats_pb2.CsvSettings + data: bytes + operation_params: _ydb_operation_pb2.OperationParams + rows: _ydb_value_pb2.TypedValue + table: str + def __init__(self, table: _Optional[str] = ..., rows: _Optional[_Union[_ydb_value_pb2.TypedValue, _Mapping]] = ..., operation_params: _Optional[_Union[_ydb_operation_pb2.OperationParams, _Mapping]] = ..., arrow_batch_settings: _Optional[_Union[_ydb_formats_pb2.ArrowBatchSettings, _Mapping]] = ..., csv_settings: _Optional[_Union[_ydb_formats_pb2.CsvSettings, _Mapping]] = ..., data: _Optional[bytes] = ...) -> None: ... + +class BulkUpsertResponse(_message.Message): + __slots__ = ["operation"] + OPERATION_FIELD_NUMBER: _ClassVar[int] + operation: _ydb_operation_pb2.Operation + def __init__(self, operation: _Optional[_Union[_ydb_operation_pb2.Operation, _Mapping]] = ...) -> None: ... + +class BulkUpsertResult(_message.Message): + __slots__ = [] + def __init__(self) -> None: ... + +class CachingPolicy(_message.Message): + __slots__ = ["preset_name"] + PRESET_NAME_FIELD_NUMBER: _ClassVar[int] + preset_name: str + def __init__(self, preset_name: _Optional[str] = ...) -> None: ... + +class CachingPolicyDescription(_message.Message): + __slots__ = ["labels", "name"] + class LabelsEntry(_message.Message): + __slots__ = ["key", "value"] + KEY_FIELD_NUMBER: _ClassVar[int] + VALUE_FIELD_NUMBER: _ClassVar[int] + key: str + value: str + def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ... + LABELS_FIELD_NUMBER: _ClassVar[int] + NAME_FIELD_NUMBER: _ClassVar[int] + labels: _containers.ScalarMap[str, str] + name: str + def __init__(self, name: _Optional[str] = ..., labels: _Optional[_Mapping[str, str]] = ...) -> None: ... + +class Changefeed(_message.Message): + __slots__ = ["attributes", "aws_region", "format", "initial_scan", "mode", "name", "resolved_timestamps_interval", "retention_period", "topic_partitioning_settings", "virtual_timestamps"] + class AttributesEntry(_message.Message): + __slots__ = ["key", "value"] + KEY_FIELD_NUMBER: _ClassVar[int] + VALUE_FIELD_NUMBER: _ClassVar[int] + key: str + value: str + def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ... + ATTRIBUTES_FIELD_NUMBER: _ClassVar[int] + AWS_REGION_FIELD_NUMBER: _ClassVar[int] + FORMAT_FIELD_NUMBER: _ClassVar[int] + INITIAL_SCAN_FIELD_NUMBER: _ClassVar[int] + MODE_FIELD_NUMBER: _ClassVar[int] + NAME_FIELD_NUMBER: _ClassVar[int] + RESOLVED_TIMESTAMPS_INTERVAL_FIELD_NUMBER: _ClassVar[int] + RETENTION_PERIOD_FIELD_NUMBER: _ClassVar[int] + TOPIC_PARTITIONING_SETTINGS_FIELD_NUMBER: _ClassVar[int] + VIRTUAL_TIMESTAMPS_FIELD_NUMBER: _ClassVar[int] + attributes: _containers.ScalarMap[str, str] + aws_region: str + format: ChangefeedFormat.Format + initial_scan: bool + mode: ChangefeedMode.Mode + name: str + resolved_timestamps_interval: _duration_pb2.Duration + retention_period: _duration_pb2.Duration + topic_partitioning_settings: _ydb_topic_pb2.PartitioningSettings + virtual_timestamps: bool + def __init__(self, name: _Optional[str] = ..., mode: _Optional[_Union[ChangefeedMode.Mode, str]] = ..., format: _Optional[_Union[ChangefeedFormat.Format, str]] = ..., retention_period: _Optional[_Union[_duration_pb2.Duration, _Mapping]] = ..., virtual_timestamps: bool = ..., initial_scan: bool = ..., attributes: _Optional[_Mapping[str, str]] = ..., aws_region: _Optional[str] = ..., resolved_timestamps_interval: _Optional[_Union[_duration_pb2.Duration, _Mapping]] = ..., topic_partitioning_settings: _Optional[_Union[_ydb_topic_pb2.PartitioningSettings, _Mapping]] = ...) -> None: ... + +class ChangefeedDescription(_message.Message): + __slots__ = ["attributes", "aws_region", "format", "mode", "name", "resolved_timestamps_interval", "state", "virtual_timestamps"] + class State(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + class AttributesEntry(_message.Message): + __slots__ = ["key", "value"] + KEY_FIELD_NUMBER: _ClassVar[int] + VALUE_FIELD_NUMBER: _ClassVar[int] + key: str + value: str + def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ... + ATTRIBUTES_FIELD_NUMBER: _ClassVar[int] + AWS_REGION_FIELD_NUMBER: _ClassVar[int] + FORMAT_FIELD_NUMBER: _ClassVar[int] + MODE_FIELD_NUMBER: _ClassVar[int] + NAME_FIELD_NUMBER: _ClassVar[int] + RESOLVED_TIMESTAMPS_INTERVAL_FIELD_NUMBER: _ClassVar[int] + STATE_DISABLED: ChangefeedDescription.State + STATE_ENABLED: ChangefeedDescription.State + STATE_FIELD_NUMBER: _ClassVar[int] + STATE_INITIAL_SCAN: ChangefeedDescription.State + STATE_UNSPECIFIED: ChangefeedDescription.State + VIRTUAL_TIMESTAMPS_FIELD_NUMBER: _ClassVar[int] + attributes: _containers.ScalarMap[str, str] + aws_region: str + format: ChangefeedFormat.Format + mode: ChangefeedMode.Mode + name: str + resolved_timestamps_interval: _duration_pb2.Duration + state: ChangefeedDescription.State + virtual_timestamps: bool + def __init__(self, name: _Optional[str] = ..., mode: _Optional[_Union[ChangefeedMode.Mode, str]] = ..., format: _Optional[_Union[ChangefeedFormat.Format, str]] = ..., state: _Optional[_Union[ChangefeedDescription.State, str]] = ..., virtual_timestamps: bool = ..., attributes: _Optional[_Mapping[str, str]] = ..., aws_region: _Optional[str] = ..., resolved_timestamps_interval: _Optional[_Union[_duration_pb2.Duration, _Mapping]] = ...) -> None: ... + +class ChangefeedFormat(_message.Message): + __slots__ = [] + class Format(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + FORMAT_DEBEZIUM_JSON: ChangefeedFormat.Format + FORMAT_DYNAMODB_STREAMS_JSON: ChangefeedFormat.Format + FORMAT_JSON: ChangefeedFormat.Format + FORMAT_UNSPECIFIED: ChangefeedFormat.Format + def __init__(self) -> None: ... + +class ChangefeedMode(_message.Message): + __slots__ = [] + class Mode(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + MODE_KEYS_ONLY: ChangefeedMode.Mode + MODE_NEW_AND_OLD_IMAGES: ChangefeedMode.Mode + MODE_NEW_IMAGE: ChangefeedMode.Mode + MODE_OLD_IMAGE: ChangefeedMode.Mode + MODE_UNSPECIFIED: ChangefeedMode.Mode + MODE_UPDATES: ChangefeedMode.Mode + def __init__(self) -> None: ... + +class ClusterReplicasSettings(_message.Message): + __slots__ = ["az_read_replicas_settings"] + AZ_READ_REPLICAS_SETTINGS_FIELD_NUMBER: _ClassVar[int] + az_read_replicas_settings: _containers.RepeatedCompositeFieldContainer[AzReadReplicasSettings] + def __init__(self, az_read_replicas_settings: _Optional[_Iterable[_Union[AzReadReplicasSettings, _Mapping]]] = ...) -> None: ... + +class ColumnFamily(_message.Message): + __slots__ = ["compression", "data", "keep_in_memory", "name"] + class Compression(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + COMPRESSION_FIELD_NUMBER: _ClassVar[int] + COMPRESSION_LZ4: ColumnFamily.Compression + COMPRESSION_NONE: ColumnFamily.Compression + COMPRESSION_UNSPECIFIED: ColumnFamily.Compression + DATA_FIELD_NUMBER: _ClassVar[int] + KEEP_IN_MEMORY_FIELD_NUMBER: _ClassVar[int] + NAME_FIELD_NUMBER: _ClassVar[int] + compression: ColumnFamily.Compression + data: StoragePool + keep_in_memory: _ydb_common_pb2.FeatureFlag.Status + name: str + def __init__(self, name: _Optional[str] = ..., data: _Optional[_Union[StoragePool, _Mapping]] = ..., compression: _Optional[_Union[ColumnFamily.Compression, str]] = ..., keep_in_memory: _Optional[_Union[_ydb_common_pb2.FeatureFlag.Status, str]] = ...) -> None: ... + +class ColumnFamilyPolicy(_message.Message): + __slots__ = ["compression", "data", "external", "keep_in_memory", "name"] + class Compression(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + COMPRESSED: ColumnFamilyPolicy.Compression + COMPRESSION_FIELD_NUMBER: _ClassVar[int] + COMPRESSION_UNSPECIFIED: ColumnFamilyPolicy.Compression + DATA_FIELD_NUMBER: _ClassVar[int] + EXTERNAL_FIELD_NUMBER: _ClassVar[int] + KEEP_IN_MEMORY_FIELD_NUMBER: _ClassVar[int] + NAME_FIELD_NUMBER: _ClassVar[int] + UNCOMPRESSED: ColumnFamilyPolicy.Compression + compression: ColumnFamilyPolicy.Compression + data: StoragePool + external: StoragePool + keep_in_memory: _ydb_common_pb2.FeatureFlag.Status + name: str + def __init__(self, name: _Optional[str] = ..., data: _Optional[_Union[StoragePool, _Mapping]] = ..., external: _Optional[_Union[StoragePool, _Mapping]] = ..., keep_in_memory: _Optional[_Union[_ydb_common_pb2.FeatureFlag.Status, str]] = ..., compression: _Optional[_Union[ColumnFamilyPolicy.Compression, str]] = ...) -> None: ... + +class ColumnMeta(_message.Message): + __slots__ = ["family", "from_literal", "from_sequence", "name", "not_null", "type"] + FAMILY_FIELD_NUMBER: _ClassVar[int] + FROM_LITERAL_FIELD_NUMBER: _ClassVar[int] + FROM_SEQUENCE_FIELD_NUMBER: _ClassVar[int] + NAME_FIELD_NUMBER: _ClassVar[int] + NOT_NULL_FIELD_NUMBER: _ClassVar[int] + TYPE_FIELD_NUMBER: _ClassVar[int] + family: str + from_literal: _ydb_value_pb2.TypedValue + from_sequence: SequenceDescription + name: str + not_null: bool + type: _ydb_value_pb2.Type + def __init__(self, name: _Optional[str] = ..., type: _Optional[_Union[_ydb_value_pb2.Type, _Mapping]] = ..., family: _Optional[str] = ..., not_null: bool = ..., from_literal: _Optional[_Union[_ydb_value_pb2.TypedValue, _Mapping]] = ..., from_sequence: _Optional[_Union[SequenceDescription, _Mapping]] = ...) -> None: ... + +class CommitTransactionRequest(_message.Message): + __slots__ = ["collect_stats", "operation_params", "session_id", "tx_id"] + COLLECT_STATS_FIELD_NUMBER: _ClassVar[int] + OPERATION_PARAMS_FIELD_NUMBER: _ClassVar[int] + SESSION_ID_FIELD_NUMBER: _ClassVar[int] + TX_ID_FIELD_NUMBER: _ClassVar[int] + collect_stats: QueryStatsCollection.Mode + operation_params: _ydb_operation_pb2.OperationParams + session_id: str + tx_id: str + def __init__(self, session_id: _Optional[str] = ..., tx_id: _Optional[str] = ..., operation_params: _Optional[_Union[_ydb_operation_pb2.OperationParams, _Mapping]] = ..., collect_stats: _Optional[_Union[QueryStatsCollection.Mode, str]] = ...) -> None: ... + +class CommitTransactionResponse(_message.Message): + __slots__ = ["operation"] + OPERATION_FIELD_NUMBER: _ClassVar[int] + operation: _ydb_operation_pb2.Operation + def __init__(self, operation: _Optional[_Union[_ydb_operation_pb2.Operation, _Mapping]] = ...) -> None: ... + +class CommitTransactionResult(_message.Message): + __slots__ = ["query_stats"] + QUERY_STATS_FIELD_NUMBER: _ClassVar[int] + query_stats: _ydb_query_stats_pb2.QueryStats + def __init__(self, query_stats: _Optional[_Union[_ydb_query_stats_pb2.QueryStats, _Mapping]] = ...) -> None: ... + +class CompactionPolicy(_message.Message): + __slots__ = ["preset_name"] + PRESET_NAME_FIELD_NUMBER: _ClassVar[int] + preset_name: str + def __init__(self, preset_name: _Optional[str] = ...) -> None: ... + +class CompactionPolicyDescription(_message.Message): + __slots__ = ["labels", "name"] + class LabelsEntry(_message.Message): + __slots__ = ["key", "value"] + KEY_FIELD_NUMBER: _ClassVar[int] + VALUE_FIELD_NUMBER: _ClassVar[int] + key: str + value: str + def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ... + LABELS_FIELD_NUMBER: _ClassVar[int] + NAME_FIELD_NUMBER: _ClassVar[int] + labels: _containers.ScalarMap[str, str] + name: str + def __init__(self, name: _Optional[str] = ..., labels: _Optional[_Mapping[str, str]] = ...) -> None: ... + +class CopyTableItem(_message.Message): + __slots__ = ["destination_path", "omit_indexes", "source_path"] + DESTINATION_PATH_FIELD_NUMBER: _ClassVar[int] + OMIT_INDEXES_FIELD_NUMBER: _ClassVar[int] + SOURCE_PATH_FIELD_NUMBER: _ClassVar[int] + destination_path: str + omit_indexes: bool + source_path: str + def __init__(self, source_path: _Optional[str] = ..., destination_path: _Optional[str] = ..., omit_indexes: bool = ...) -> None: ... + +class CopyTableRequest(_message.Message): + __slots__ = ["destination_path", "operation_params", "session_id", "source_path"] + DESTINATION_PATH_FIELD_NUMBER: _ClassVar[int] + OPERATION_PARAMS_FIELD_NUMBER: _ClassVar[int] + SESSION_ID_FIELD_NUMBER: _ClassVar[int] + SOURCE_PATH_FIELD_NUMBER: _ClassVar[int] + destination_path: str + operation_params: _ydb_operation_pb2.OperationParams + session_id: str + source_path: str + def __init__(self, session_id: _Optional[str] = ..., source_path: _Optional[str] = ..., destination_path: _Optional[str] = ..., operation_params: _Optional[_Union[_ydb_operation_pb2.OperationParams, _Mapping]] = ...) -> None: ... + +class CopyTableResponse(_message.Message): + __slots__ = ["operation"] + OPERATION_FIELD_NUMBER: _ClassVar[int] + operation: _ydb_operation_pb2.Operation + def __init__(self, operation: _Optional[_Union[_ydb_operation_pb2.Operation, _Mapping]] = ...) -> None: ... + +class CopyTablesRequest(_message.Message): + __slots__ = ["operation_params", "session_id", "tables"] + OPERATION_PARAMS_FIELD_NUMBER: _ClassVar[int] + SESSION_ID_FIELD_NUMBER: _ClassVar[int] + TABLES_FIELD_NUMBER: _ClassVar[int] + operation_params: _ydb_operation_pb2.OperationParams + session_id: str + tables: _containers.RepeatedCompositeFieldContainer[CopyTableItem] + def __init__(self, operation_params: _Optional[_Union[_ydb_operation_pb2.OperationParams, _Mapping]] = ..., session_id: _Optional[str] = ..., tables: _Optional[_Iterable[_Union[CopyTableItem, _Mapping]]] = ...) -> None: ... + +class CopyTablesResponse(_message.Message): + __slots__ = ["operation"] + OPERATION_FIELD_NUMBER: _ClassVar[int] + operation: _ydb_operation_pb2.Operation + def __init__(self, operation: _Optional[_Union[_ydb_operation_pb2.Operation, _Mapping]] = ...) -> None: ... + +class CreateSessionRequest(_message.Message): + __slots__ = ["operation_params"] + OPERATION_PARAMS_FIELD_NUMBER: _ClassVar[int] + operation_params: _ydb_operation_pb2.OperationParams + def __init__(self, operation_params: _Optional[_Union[_ydb_operation_pb2.OperationParams, _Mapping]] = ...) -> None: ... + +class CreateSessionResponse(_message.Message): + __slots__ = ["operation"] + OPERATION_FIELD_NUMBER: _ClassVar[int] + operation: _ydb_operation_pb2.Operation + def __init__(self, operation: _Optional[_Union[_ydb_operation_pb2.Operation, _Mapping]] = ...) -> None: ... + +class CreateSessionResult(_message.Message): + __slots__ = ["session_id"] + SESSION_ID_FIELD_NUMBER: _ClassVar[int] + session_id: str + def __init__(self, session_id: _Optional[str] = ...) -> None: ... + +class CreateTableRequest(_message.Message): + __slots__ = ["attributes", "column_families", "columns", "compaction_policy", "indexes", "key_bloom_filter", "operation_params", "partition_at_keys", "partitioning_settings", "path", "primary_key", "profile", "read_replicas_settings", "session_id", "storage_settings", "store_type", "temporary", "tiering", "ttl_settings", "uniform_partitions"] + class AttributesEntry(_message.Message): + __slots__ = ["key", "value"] + KEY_FIELD_NUMBER: _ClassVar[int] + VALUE_FIELD_NUMBER: _ClassVar[int] + key: str + value: str + def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ... + ATTRIBUTES_FIELD_NUMBER: _ClassVar[int] + COLUMNS_FIELD_NUMBER: _ClassVar[int] + COLUMN_FAMILIES_FIELD_NUMBER: _ClassVar[int] + COMPACTION_POLICY_FIELD_NUMBER: _ClassVar[int] + INDEXES_FIELD_NUMBER: _ClassVar[int] + KEY_BLOOM_FILTER_FIELD_NUMBER: _ClassVar[int] + OPERATION_PARAMS_FIELD_NUMBER: _ClassVar[int] + PARTITIONING_SETTINGS_FIELD_NUMBER: _ClassVar[int] + PARTITION_AT_KEYS_FIELD_NUMBER: _ClassVar[int] + PATH_FIELD_NUMBER: _ClassVar[int] + PRIMARY_KEY_FIELD_NUMBER: _ClassVar[int] + PROFILE_FIELD_NUMBER: _ClassVar[int] + READ_REPLICAS_SETTINGS_FIELD_NUMBER: _ClassVar[int] + SESSION_ID_FIELD_NUMBER: _ClassVar[int] + STORAGE_SETTINGS_FIELD_NUMBER: _ClassVar[int] + STORE_TYPE_FIELD_NUMBER: _ClassVar[int] + TEMPORARY_FIELD_NUMBER: _ClassVar[int] + TIERING_FIELD_NUMBER: _ClassVar[int] + TTL_SETTINGS_FIELD_NUMBER: _ClassVar[int] + UNIFORM_PARTITIONS_FIELD_NUMBER: _ClassVar[int] + attributes: _containers.ScalarMap[str, str] + column_families: _containers.RepeatedCompositeFieldContainer[ColumnFamily] + columns: _containers.RepeatedCompositeFieldContainer[ColumnMeta] + compaction_policy: str + indexes: _containers.RepeatedCompositeFieldContainer[TableIndex] + key_bloom_filter: _ydb_common_pb2.FeatureFlag.Status + operation_params: _ydb_operation_pb2.OperationParams + partition_at_keys: ExplicitPartitions + partitioning_settings: PartitioningSettings + path: str + primary_key: _containers.RepeatedScalarFieldContainer[str] + profile: TableProfile + read_replicas_settings: ReadReplicasSettings + session_id: str + storage_settings: StorageSettings + store_type: StoreType + temporary: bool + tiering: str + ttl_settings: TtlSettings + uniform_partitions: int + def __init__(self, session_id: _Optional[str] = ..., path: _Optional[str] = ..., columns: _Optional[_Iterable[_Union[ColumnMeta, _Mapping]]] = ..., primary_key: _Optional[_Iterable[str]] = ..., profile: _Optional[_Union[TableProfile, _Mapping]] = ..., operation_params: _Optional[_Union[_ydb_operation_pb2.OperationParams, _Mapping]] = ..., indexes: _Optional[_Iterable[_Union[TableIndex, _Mapping]]] = ..., ttl_settings: _Optional[_Union[TtlSettings, _Mapping]] = ..., storage_settings: _Optional[_Union[StorageSettings, _Mapping]] = ..., column_families: _Optional[_Iterable[_Union[ColumnFamily, _Mapping]]] = ..., attributes: _Optional[_Mapping[str, str]] = ..., compaction_policy: _Optional[str] = ..., uniform_partitions: _Optional[int] = ..., partition_at_keys: _Optional[_Union[ExplicitPartitions, _Mapping]] = ..., partitioning_settings: _Optional[_Union[PartitioningSettings, _Mapping]] = ..., key_bloom_filter: _Optional[_Union[_ydb_common_pb2.FeatureFlag.Status, str]] = ..., read_replicas_settings: _Optional[_Union[ReadReplicasSettings, _Mapping]] = ..., tiering: _Optional[str] = ..., temporary: bool = ..., store_type: _Optional[_Union[StoreType, str]] = ...) -> None: ... + +class CreateTableResponse(_message.Message): + __slots__ = ["operation"] + OPERATION_FIELD_NUMBER: _ClassVar[int] + operation: _ydb_operation_pb2.Operation + def __init__(self, operation: _Optional[_Union[_ydb_operation_pb2.Operation, _Mapping]] = ...) -> None: ... + +class DateTypeColumnModeSettings(_message.Message): + __slots__ = ["column_name", "expire_after_seconds"] + COLUMN_NAME_FIELD_NUMBER: _ClassVar[int] + EXPIRE_AFTER_SECONDS_FIELD_NUMBER: _ClassVar[int] + column_name: str + expire_after_seconds: int + def __init__(self, column_name: _Optional[str] = ..., expire_after_seconds: _Optional[int] = ...) -> None: ... + +class DeleteSessionRequest(_message.Message): + __slots__ = ["operation_params", "session_id"] + OPERATION_PARAMS_FIELD_NUMBER: _ClassVar[int] + SESSION_ID_FIELD_NUMBER: _ClassVar[int] + operation_params: _ydb_operation_pb2.OperationParams + session_id: str + def __init__(self, session_id: _Optional[str] = ..., operation_params: _Optional[_Union[_ydb_operation_pb2.OperationParams, _Mapping]] = ...) -> None: ... + +class DeleteSessionResponse(_message.Message): + __slots__ = ["operation"] + OPERATION_FIELD_NUMBER: _ClassVar[int] + operation: _ydb_operation_pb2.Operation + def __init__(self, operation: _Optional[_Union[_ydb_operation_pb2.Operation, _Mapping]] = ...) -> None: ... + +class DescribeTableOptionsRequest(_message.Message): + __slots__ = ["operation_params"] + OPERATION_PARAMS_FIELD_NUMBER: _ClassVar[int] + operation_params: _ydb_operation_pb2.OperationParams + def __init__(self, operation_params: _Optional[_Union[_ydb_operation_pb2.OperationParams, _Mapping]] = ...) -> None: ... + +class DescribeTableOptionsResponse(_message.Message): + __slots__ = ["operation"] + OPERATION_FIELD_NUMBER: _ClassVar[int] + operation: _ydb_operation_pb2.Operation + def __init__(self, operation: _Optional[_Union[_ydb_operation_pb2.Operation, _Mapping]] = ...) -> None: ... + +class DescribeTableOptionsResult(_message.Message): + __slots__ = ["caching_policy_presets", "compaction_policy_presets", "execution_policy_presets", "partitioning_policy_presets", "replication_policy_presets", "storage_policy_presets", "table_profile_presets"] + CACHING_POLICY_PRESETS_FIELD_NUMBER: _ClassVar[int] + COMPACTION_POLICY_PRESETS_FIELD_NUMBER: _ClassVar[int] + EXECUTION_POLICY_PRESETS_FIELD_NUMBER: _ClassVar[int] + PARTITIONING_POLICY_PRESETS_FIELD_NUMBER: _ClassVar[int] + REPLICATION_POLICY_PRESETS_FIELD_NUMBER: _ClassVar[int] + STORAGE_POLICY_PRESETS_FIELD_NUMBER: _ClassVar[int] + TABLE_PROFILE_PRESETS_FIELD_NUMBER: _ClassVar[int] + caching_policy_presets: _containers.RepeatedCompositeFieldContainer[CachingPolicyDescription] + compaction_policy_presets: _containers.RepeatedCompositeFieldContainer[CompactionPolicyDescription] + execution_policy_presets: _containers.RepeatedCompositeFieldContainer[ExecutionPolicyDescription] + partitioning_policy_presets: _containers.RepeatedCompositeFieldContainer[PartitioningPolicyDescription] + replication_policy_presets: _containers.RepeatedCompositeFieldContainer[ReplicationPolicyDescription] + storage_policy_presets: _containers.RepeatedCompositeFieldContainer[StoragePolicyDescription] + table_profile_presets: _containers.RepeatedCompositeFieldContainer[TableProfileDescription] + def __init__(self, table_profile_presets: _Optional[_Iterable[_Union[TableProfileDescription, _Mapping]]] = ..., storage_policy_presets: _Optional[_Iterable[_Union[StoragePolicyDescription, _Mapping]]] = ..., compaction_policy_presets: _Optional[_Iterable[_Union[CompactionPolicyDescription, _Mapping]]] = ..., partitioning_policy_presets: _Optional[_Iterable[_Union[PartitioningPolicyDescription, _Mapping]]] = ..., execution_policy_presets: _Optional[_Iterable[_Union[ExecutionPolicyDescription, _Mapping]]] = ..., replication_policy_presets: _Optional[_Iterable[_Union[ReplicationPolicyDescription, _Mapping]]] = ..., caching_policy_presets: _Optional[_Iterable[_Union[CachingPolicyDescription, _Mapping]]] = ...) -> None: ... + +class DescribeTableRequest(_message.Message): + __slots__ = ["include_partition_stats", "include_shard_key_bounds", "include_shard_nodes_info", "include_table_stats", "operation_params", "path", "session_id"] + INCLUDE_PARTITION_STATS_FIELD_NUMBER: _ClassVar[int] + INCLUDE_SHARD_KEY_BOUNDS_FIELD_NUMBER: _ClassVar[int] + INCLUDE_SHARD_NODES_INFO_FIELD_NUMBER: _ClassVar[int] + INCLUDE_TABLE_STATS_FIELD_NUMBER: _ClassVar[int] + OPERATION_PARAMS_FIELD_NUMBER: _ClassVar[int] + PATH_FIELD_NUMBER: _ClassVar[int] + SESSION_ID_FIELD_NUMBER: _ClassVar[int] + include_partition_stats: bool + include_shard_key_bounds: bool + include_shard_nodes_info: bool + include_table_stats: bool + operation_params: _ydb_operation_pb2.OperationParams + path: str + session_id: str + def __init__(self, session_id: _Optional[str] = ..., path: _Optional[str] = ..., operation_params: _Optional[_Union[_ydb_operation_pb2.OperationParams, _Mapping]] = ..., include_shard_key_bounds: bool = ..., include_table_stats: bool = ..., include_partition_stats: bool = ..., include_shard_nodes_info: bool = ...) -> None: ... + +class DescribeTableResponse(_message.Message): + __slots__ = ["operation"] + OPERATION_FIELD_NUMBER: _ClassVar[int] + operation: _ydb_operation_pb2.Operation + def __init__(self, operation: _Optional[_Union[_ydb_operation_pb2.Operation, _Mapping]] = ...) -> None: ... + +class DescribeTableResult(_message.Message): + __slots__ = ["attributes", "changefeeds", "column_families", "columns", "indexes", "key_bloom_filter", "partitioning_settings", "primary_key", "read_replicas_settings", "self", "shard_key_bounds", "storage_settings", "store_type", "table_stats", "temporary", "tiering", "ttl_settings"] + class AttributesEntry(_message.Message): + __slots__ = ["key", "value"] + KEY_FIELD_NUMBER: _ClassVar[int] + VALUE_FIELD_NUMBER: _ClassVar[int] + key: str + value: str + def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ... + ATTRIBUTES_FIELD_NUMBER: _ClassVar[int] + CHANGEFEEDS_FIELD_NUMBER: _ClassVar[int] + COLUMNS_FIELD_NUMBER: _ClassVar[int] + COLUMN_FAMILIES_FIELD_NUMBER: _ClassVar[int] + INDEXES_FIELD_NUMBER: _ClassVar[int] + KEY_BLOOM_FILTER_FIELD_NUMBER: _ClassVar[int] + PARTITIONING_SETTINGS_FIELD_NUMBER: _ClassVar[int] + PRIMARY_KEY_FIELD_NUMBER: _ClassVar[int] + READ_REPLICAS_SETTINGS_FIELD_NUMBER: _ClassVar[int] + SELF_FIELD_NUMBER: _ClassVar[int] + SHARD_KEY_BOUNDS_FIELD_NUMBER: _ClassVar[int] + STORAGE_SETTINGS_FIELD_NUMBER: _ClassVar[int] + STORE_TYPE_FIELD_NUMBER: _ClassVar[int] + TABLE_STATS_FIELD_NUMBER: _ClassVar[int] + TEMPORARY_FIELD_NUMBER: _ClassVar[int] + TIERING_FIELD_NUMBER: _ClassVar[int] + TTL_SETTINGS_FIELD_NUMBER: _ClassVar[int] + attributes: _containers.ScalarMap[str, str] + changefeeds: _containers.RepeatedCompositeFieldContainer[ChangefeedDescription] + column_families: _containers.RepeatedCompositeFieldContainer[ColumnFamily] + columns: _containers.RepeatedCompositeFieldContainer[ColumnMeta] + indexes: _containers.RepeatedCompositeFieldContainer[TableIndexDescription] + key_bloom_filter: _ydb_common_pb2.FeatureFlag.Status + partitioning_settings: PartitioningSettings + primary_key: _containers.RepeatedScalarFieldContainer[str] + read_replicas_settings: ReadReplicasSettings + self: _ydb_scheme_pb2.Entry + shard_key_bounds: _containers.RepeatedCompositeFieldContainer[_ydb_value_pb2.TypedValue] + storage_settings: StorageSettings + store_type: StoreType + table_stats: TableStats + temporary: bool + tiering: str + ttl_settings: TtlSettings + def __init__(self, self_: _Optional[_Union[_ydb_scheme_pb2.Entry, _Mapping]] = ..., columns: _Optional[_Iterable[_Union[ColumnMeta, _Mapping]]] = ..., primary_key: _Optional[_Iterable[str]] = ..., shard_key_bounds: _Optional[_Iterable[_Union[_ydb_value_pb2.TypedValue, _Mapping]]] = ..., indexes: _Optional[_Iterable[_Union[TableIndexDescription, _Mapping]]] = ..., table_stats: _Optional[_Union[TableStats, _Mapping]] = ..., ttl_settings: _Optional[_Union[TtlSettings, _Mapping]] = ..., storage_settings: _Optional[_Union[StorageSettings, _Mapping]] = ..., column_families: _Optional[_Iterable[_Union[ColumnFamily, _Mapping]]] = ..., attributes: _Optional[_Mapping[str, str]] = ..., partitioning_settings: _Optional[_Union[PartitioningSettings, _Mapping]] = ..., key_bloom_filter: _Optional[_Union[_ydb_common_pb2.FeatureFlag.Status, str]] = ..., read_replicas_settings: _Optional[_Union[ReadReplicasSettings, _Mapping]] = ..., changefeeds: _Optional[_Iterable[_Union[ChangefeedDescription, _Mapping]]] = ..., tiering: _Optional[str] = ..., temporary: bool = ..., store_type: _Optional[_Union[StoreType, str]] = ...) -> None: ... + +class DropTableRequest(_message.Message): + __slots__ = ["operation_params", "path", "session_id"] + OPERATION_PARAMS_FIELD_NUMBER: _ClassVar[int] + PATH_FIELD_NUMBER: _ClassVar[int] + SESSION_ID_FIELD_NUMBER: _ClassVar[int] + operation_params: _ydb_operation_pb2.OperationParams + path: str + session_id: str + def __init__(self, session_id: _Optional[str] = ..., path: _Optional[str] = ..., operation_params: _Optional[_Union[_ydb_operation_pb2.OperationParams, _Mapping]] = ...) -> None: ... + +class DropTableResponse(_message.Message): + __slots__ = ["operation"] + OPERATION_FIELD_NUMBER: _ClassVar[int] + operation: _ydb_operation_pb2.Operation + def __init__(self, operation: _Optional[_Union[_ydb_operation_pb2.Operation, _Mapping]] = ...) -> None: ... + +class ExecuteDataQueryRequest(_message.Message): + __slots__ = ["collect_stats", "operation_params", "parameters", "query", "query_cache_policy", "session_id", "tx_control"] + class ParametersEntry(_message.Message): + __slots__ = ["key", "value"] + KEY_FIELD_NUMBER: _ClassVar[int] + VALUE_FIELD_NUMBER: _ClassVar[int] + key: str + value: _ydb_value_pb2.TypedValue + def __init__(self, key: _Optional[str] = ..., value: _Optional[_Union[_ydb_value_pb2.TypedValue, _Mapping]] = ...) -> None: ... + COLLECT_STATS_FIELD_NUMBER: _ClassVar[int] + OPERATION_PARAMS_FIELD_NUMBER: _ClassVar[int] + PARAMETERS_FIELD_NUMBER: _ClassVar[int] + QUERY_CACHE_POLICY_FIELD_NUMBER: _ClassVar[int] + QUERY_FIELD_NUMBER: _ClassVar[int] + SESSION_ID_FIELD_NUMBER: _ClassVar[int] + TX_CONTROL_FIELD_NUMBER: _ClassVar[int] + collect_stats: QueryStatsCollection.Mode + operation_params: _ydb_operation_pb2.OperationParams + parameters: _containers.MessageMap[str, _ydb_value_pb2.TypedValue] + query: Query + query_cache_policy: QueryCachePolicy + session_id: str + tx_control: TransactionControl + def __init__(self, session_id: _Optional[str] = ..., tx_control: _Optional[_Union[TransactionControl, _Mapping]] = ..., query: _Optional[_Union[Query, _Mapping]] = ..., parameters: _Optional[_Mapping[str, _ydb_value_pb2.TypedValue]] = ..., query_cache_policy: _Optional[_Union[QueryCachePolicy, _Mapping]] = ..., operation_params: _Optional[_Union[_ydb_operation_pb2.OperationParams, _Mapping]] = ..., collect_stats: _Optional[_Union[QueryStatsCollection.Mode, str]] = ...) -> None: ... + +class ExecuteDataQueryResponse(_message.Message): + __slots__ = ["operation"] + OPERATION_FIELD_NUMBER: _ClassVar[int] + operation: _ydb_operation_pb2.Operation + def __init__(self, operation: _Optional[_Union[_ydb_operation_pb2.Operation, _Mapping]] = ...) -> None: ... + +class ExecuteQueryResult(_message.Message): + __slots__ = ["query_meta", "query_stats", "result_sets", "tx_meta"] + QUERY_META_FIELD_NUMBER: _ClassVar[int] + QUERY_STATS_FIELD_NUMBER: _ClassVar[int] + RESULT_SETS_FIELD_NUMBER: _ClassVar[int] + TX_META_FIELD_NUMBER: _ClassVar[int] + query_meta: QueryMeta + query_stats: _ydb_query_stats_pb2.QueryStats + result_sets: _containers.RepeatedCompositeFieldContainer[_ydb_value_pb2.ResultSet] + tx_meta: TransactionMeta + def __init__(self, result_sets: _Optional[_Iterable[_Union[_ydb_value_pb2.ResultSet, _Mapping]]] = ..., tx_meta: _Optional[_Union[TransactionMeta, _Mapping]] = ..., query_meta: _Optional[_Union[QueryMeta, _Mapping]] = ..., query_stats: _Optional[_Union[_ydb_query_stats_pb2.QueryStats, _Mapping]] = ...) -> None: ... + +class ExecuteScanQueryPartialResponse(_message.Message): + __slots__ = ["issues", "result", "status"] + ISSUES_FIELD_NUMBER: _ClassVar[int] + RESULT_FIELD_NUMBER: _ClassVar[int] + STATUS_FIELD_NUMBER: _ClassVar[int] + issues: _containers.RepeatedCompositeFieldContainer[_ydb_issue_message_pb2.IssueMessage] + result: ExecuteScanQueryPartialResult + status: _ydb_status_codes_pb2.StatusIds.StatusCode + def __init__(self, status: _Optional[_Union[_ydb_status_codes_pb2.StatusIds.StatusCode, str]] = ..., issues: _Optional[_Iterable[_Union[_ydb_issue_message_pb2.IssueMessage, _Mapping]]] = ..., result: _Optional[_Union[ExecuteScanQueryPartialResult, _Mapping]] = ...) -> None: ... + +class ExecuteScanQueryPartialResult(_message.Message): + __slots__ = ["query_full_diagnostics", "query_stats", "result_set"] + QUERY_FULL_DIAGNOSTICS_FIELD_NUMBER: _ClassVar[int] + QUERY_STATS_FIELD_NUMBER: _ClassVar[int] + RESULT_SET_FIELD_NUMBER: _ClassVar[int] + query_full_diagnostics: str + query_stats: _ydb_query_stats_pb2.QueryStats + result_set: _ydb_value_pb2.ResultSet + def __init__(self, result_set: _Optional[_Union[_ydb_value_pb2.ResultSet, _Mapping]] = ..., query_stats: _Optional[_Union[_ydb_query_stats_pb2.QueryStats, _Mapping]] = ..., query_full_diagnostics: _Optional[str] = ...) -> None: ... + +class ExecuteScanQueryRequest(_message.Message): + __slots__ = ["collect_full_diagnostics", "collect_stats", "mode", "parameters", "query"] + class Mode(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + class ParametersEntry(_message.Message): + __slots__ = ["key", "value"] + KEY_FIELD_NUMBER: _ClassVar[int] + VALUE_FIELD_NUMBER: _ClassVar[int] + key: str + value: _ydb_value_pb2.TypedValue + def __init__(self, key: _Optional[str] = ..., value: _Optional[_Union[_ydb_value_pb2.TypedValue, _Mapping]] = ...) -> None: ... + COLLECT_FULL_DIAGNOSTICS_FIELD_NUMBER: _ClassVar[int] + COLLECT_STATS_FIELD_NUMBER: _ClassVar[int] + MODE_EXEC: ExecuteScanQueryRequest.Mode + MODE_EXPLAIN: ExecuteScanQueryRequest.Mode + MODE_FIELD_NUMBER: _ClassVar[int] + MODE_UNSPECIFIED: ExecuteScanQueryRequest.Mode + PARAMETERS_FIELD_NUMBER: _ClassVar[int] + QUERY_FIELD_NUMBER: _ClassVar[int] + collect_full_diagnostics: bool + collect_stats: QueryStatsCollection.Mode + mode: ExecuteScanQueryRequest.Mode + parameters: _containers.MessageMap[str, _ydb_value_pb2.TypedValue] + query: Query + def __init__(self, query: _Optional[_Union[Query, _Mapping]] = ..., parameters: _Optional[_Mapping[str, _ydb_value_pb2.TypedValue]] = ..., mode: _Optional[_Union[ExecuteScanQueryRequest.Mode, str]] = ..., collect_stats: _Optional[_Union[QueryStatsCollection.Mode, str]] = ..., collect_full_diagnostics: bool = ...) -> None: ... + +class ExecuteSchemeQueryRequest(_message.Message): + __slots__ = ["operation_params", "session_id", "yql_text"] + OPERATION_PARAMS_FIELD_NUMBER: _ClassVar[int] + SESSION_ID_FIELD_NUMBER: _ClassVar[int] + YQL_TEXT_FIELD_NUMBER: _ClassVar[int] + operation_params: _ydb_operation_pb2.OperationParams + session_id: str + yql_text: str + def __init__(self, session_id: _Optional[str] = ..., yql_text: _Optional[str] = ..., operation_params: _Optional[_Union[_ydb_operation_pb2.OperationParams, _Mapping]] = ...) -> None: ... + +class ExecuteSchemeQueryResponse(_message.Message): + __slots__ = ["operation"] + OPERATION_FIELD_NUMBER: _ClassVar[int] + operation: _ydb_operation_pb2.Operation + def __init__(self, operation: _Optional[_Union[_ydb_operation_pb2.Operation, _Mapping]] = ...) -> None: ... + +class ExecutionPolicy(_message.Message): + __slots__ = ["preset_name"] + PRESET_NAME_FIELD_NUMBER: _ClassVar[int] + preset_name: str + def __init__(self, preset_name: _Optional[str] = ...) -> None: ... + +class ExecutionPolicyDescription(_message.Message): + __slots__ = ["labels", "name"] + class LabelsEntry(_message.Message): + __slots__ = ["key", "value"] + KEY_FIELD_NUMBER: _ClassVar[int] + VALUE_FIELD_NUMBER: _ClassVar[int] + key: str + value: str + def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ... + LABELS_FIELD_NUMBER: _ClassVar[int] + NAME_FIELD_NUMBER: _ClassVar[int] + labels: _containers.ScalarMap[str, str] + name: str + def __init__(self, name: _Optional[str] = ..., labels: _Optional[_Mapping[str, str]] = ...) -> None: ... + +class ExplainDataQueryRequest(_message.Message): + __slots__ = ["collect_full_diagnostics", "operation_params", "session_id", "yql_text"] + COLLECT_FULL_DIAGNOSTICS_FIELD_NUMBER: _ClassVar[int] + OPERATION_PARAMS_FIELD_NUMBER: _ClassVar[int] + SESSION_ID_FIELD_NUMBER: _ClassVar[int] + YQL_TEXT_FIELD_NUMBER: _ClassVar[int] + collect_full_diagnostics: bool + operation_params: _ydb_operation_pb2.OperationParams + session_id: str + yql_text: str + def __init__(self, session_id: _Optional[str] = ..., yql_text: _Optional[str] = ..., operation_params: _Optional[_Union[_ydb_operation_pb2.OperationParams, _Mapping]] = ..., collect_full_diagnostics: bool = ...) -> None: ... + +class ExplainDataQueryResponse(_message.Message): + __slots__ = ["operation"] + OPERATION_FIELD_NUMBER: _ClassVar[int] + operation: _ydb_operation_pb2.Operation + def __init__(self, operation: _Optional[_Union[_ydb_operation_pb2.Operation, _Mapping]] = ...) -> None: ... + +class ExplainQueryResult(_message.Message): + __slots__ = ["query_ast", "query_full_diagnostics", "query_plan"] + QUERY_AST_FIELD_NUMBER: _ClassVar[int] + QUERY_FULL_DIAGNOSTICS_FIELD_NUMBER: _ClassVar[int] + QUERY_PLAN_FIELD_NUMBER: _ClassVar[int] + query_ast: str + query_full_diagnostics: str + query_plan: str + def __init__(self, query_ast: _Optional[str] = ..., query_plan: _Optional[str] = ..., query_full_diagnostics: _Optional[str] = ...) -> None: ... + +class ExplicitPartitions(_message.Message): + __slots__ = ["split_points"] + SPLIT_POINTS_FIELD_NUMBER: _ClassVar[int] + split_points: _containers.RepeatedCompositeFieldContainer[_ydb_value_pb2.TypedValue] + def __init__(self, split_points: _Optional[_Iterable[_Union[_ydb_value_pb2.TypedValue, _Mapping]]] = ...) -> None: ... + +class GlobalAsyncIndex(_message.Message): + __slots__ = [] + def __init__(self) -> None: ... + +class GlobalIndex(_message.Message): + __slots__ = [] + def __init__(self) -> None: ... + +class GlobalUniqueIndex(_message.Message): + __slots__ = [] + def __init__(self) -> None: ... + +class IndexBuildDescription(_message.Message): + __slots__ = ["index", "path"] + INDEX_FIELD_NUMBER: _ClassVar[int] + PATH_FIELD_NUMBER: _ClassVar[int] + index: TableIndex + path: str + def __init__(self, path: _Optional[str] = ..., index: _Optional[_Union[TableIndex, _Mapping]] = ...) -> None: ... + +class IndexBuildMetadata(_message.Message): + __slots__ = ["description", "progress", "state"] + DESCRIPTION_FIELD_NUMBER: _ClassVar[int] + PROGRESS_FIELD_NUMBER: _ClassVar[int] + STATE_FIELD_NUMBER: _ClassVar[int] + description: IndexBuildDescription + progress: float + state: IndexBuildState.State + def __init__(self, description: _Optional[_Union[IndexBuildDescription, _Mapping]] = ..., state: _Optional[_Union[IndexBuildState.State, str]] = ..., progress: _Optional[float] = ...) -> None: ... + +class IndexBuildState(_message.Message): + __slots__ = [] + class State(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + STATE_APPLYING: IndexBuildState.State + STATE_CANCELLATION: IndexBuildState.State + STATE_CANCELLED: IndexBuildState.State + STATE_DONE: IndexBuildState.State + STATE_PREPARING: IndexBuildState.State + STATE_REJECTED: IndexBuildState.State + STATE_REJECTION: IndexBuildState.State + STATE_TRANSFERING_DATA: IndexBuildState.State + STATE_UNSPECIFIED: IndexBuildState.State + def __init__(self) -> None: ... + +class KeepAliveRequest(_message.Message): + __slots__ = ["operation_params", "session_id"] + OPERATION_PARAMS_FIELD_NUMBER: _ClassVar[int] + SESSION_ID_FIELD_NUMBER: _ClassVar[int] + operation_params: _ydb_operation_pb2.OperationParams + session_id: str + def __init__(self, session_id: _Optional[str] = ..., operation_params: _Optional[_Union[_ydb_operation_pb2.OperationParams, _Mapping]] = ...) -> None: ... + +class KeepAliveResponse(_message.Message): + __slots__ = ["operation"] + OPERATION_FIELD_NUMBER: _ClassVar[int] + operation: _ydb_operation_pb2.Operation + def __init__(self, operation: _Optional[_Union[_ydb_operation_pb2.Operation, _Mapping]] = ...) -> None: ... + +class KeepAliveResult(_message.Message): + __slots__ = ["session_status"] + class SessionStatus(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + SESSION_STATUS_BUSY: KeepAliveResult.SessionStatus + SESSION_STATUS_FIELD_NUMBER: _ClassVar[int] + SESSION_STATUS_READY: KeepAliveResult.SessionStatus + SESSION_STATUS_UNSPECIFIED: KeepAliveResult.SessionStatus + session_status: KeepAliveResult.SessionStatus + def __init__(self, session_status: _Optional[_Union[KeepAliveResult.SessionStatus, str]] = ...) -> None: ... + +class KeyRange(_message.Message): + __slots__ = ["greater", "greater_or_equal", "less", "less_or_equal"] + GREATER_FIELD_NUMBER: _ClassVar[int] + GREATER_OR_EQUAL_FIELD_NUMBER: _ClassVar[int] + LESS_FIELD_NUMBER: _ClassVar[int] + LESS_OR_EQUAL_FIELD_NUMBER: _ClassVar[int] + greater: _ydb_value_pb2.TypedValue + greater_or_equal: _ydb_value_pb2.TypedValue + less: _ydb_value_pb2.TypedValue + less_or_equal: _ydb_value_pb2.TypedValue + def __init__(self, greater: _Optional[_Union[_ydb_value_pb2.TypedValue, _Mapping]] = ..., greater_or_equal: _Optional[_Union[_ydb_value_pb2.TypedValue, _Mapping]] = ..., less: _Optional[_Union[_ydb_value_pb2.TypedValue, _Mapping]] = ..., less_or_equal: _Optional[_Union[_ydb_value_pb2.TypedValue, _Mapping]] = ...) -> None: ... + +class OnlineModeSettings(_message.Message): + __slots__ = ["allow_inconsistent_reads"] + ALLOW_INCONSISTENT_READS_FIELD_NUMBER: _ClassVar[int] + allow_inconsistent_reads: bool + def __init__(self, allow_inconsistent_reads: bool = ...) -> None: ... + +class PartitionStats(_message.Message): + __slots__ = ["leader_node_id", "rows_estimate", "store_size"] + LEADER_NODE_ID_FIELD_NUMBER: _ClassVar[int] + ROWS_ESTIMATE_FIELD_NUMBER: _ClassVar[int] + STORE_SIZE_FIELD_NUMBER: _ClassVar[int] + leader_node_id: int + rows_estimate: int + store_size: int + def __init__(self, rows_estimate: _Optional[int] = ..., store_size: _Optional[int] = ..., leader_node_id: _Optional[int] = ...) -> None: ... + +class PartitioningPolicy(_message.Message): + __slots__ = ["auto_partitioning", "explicit_partitions", "preset_name", "uniform_partitions"] + class AutoPartitioningPolicy(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + AUTO_PARTITIONING_FIELD_NUMBER: _ClassVar[int] + AUTO_PARTITIONING_POLICY_UNSPECIFIED: PartitioningPolicy.AutoPartitioningPolicy + AUTO_SPLIT: PartitioningPolicy.AutoPartitioningPolicy + AUTO_SPLIT_MERGE: PartitioningPolicy.AutoPartitioningPolicy + DISABLED: PartitioningPolicy.AutoPartitioningPolicy + EXPLICIT_PARTITIONS_FIELD_NUMBER: _ClassVar[int] + PRESET_NAME_FIELD_NUMBER: _ClassVar[int] + UNIFORM_PARTITIONS_FIELD_NUMBER: _ClassVar[int] + auto_partitioning: PartitioningPolicy.AutoPartitioningPolicy + explicit_partitions: ExplicitPartitions + preset_name: str + uniform_partitions: int + def __init__(self, preset_name: _Optional[str] = ..., auto_partitioning: _Optional[_Union[PartitioningPolicy.AutoPartitioningPolicy, str]] = ..., uniform_partitions: _Optional[int] = ..., explicit_partitions: _Optional[_Union[ExplicitPartitions, _Mapping]] = ...) -> None: ... + +class PartitioningPolicyDescription(_message.Message): + __slots__ = ["labels", "name"] + class LabelsEntry(_message.Message): + __slots__ = ["key", "value"] + KEY_FIELD_NUMBER: _ClassVar[int] + VALUE_FIELD_NUMBER: _ClassVar[int] + key: str + value: str + def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ... + LABELS_FIELD_NUMBER: _ClassVar[int] + NAME_FIELD_NUMBER: _ClassVar[int] + labels: _containers.ScalarMap[str, str] + name: str + def __init__(self, name: _Optional[str] = ..., labels: _Optional[_Mapping[str, str]] = ...) -> None: ... + +class PartitioningSettings(_message.Message): + __slots__ = ["max_partitions_count", "min_partitions_count", "partition_by", "partition_size_mb", "partitioning_by_load", "partitioning_by_size"] + MAX_PARTITIONS_COUNT_FIELD_NUMBER: _ClassVar[int] + MIN_PARTITIONS_COUNT_FIELD_NUMBER: _ClassVar[int] + PARTITIONING_BY_LOAD_FIELD_NUMBER: _ClassVar[int] + PARTITIONING_BY_SIZE_FIELD_NUMBER: _ClassVar[int] + PARTITION_BY_FIELD_NUMBER: _ClassVar[int] + PARTITION_SIZE_MB_FIELD_NUMBER: _ClassVar[int] + max_partitions_count: int + min_partitions_count: int + partition_by: _containers.RepeatedScalarFieldContainer[str] + partition_size_mb: int + partitioning_by_load: _ydb_common_pb2.FeatureFlag.Status + partitioning_by_size: _ydb_common_pb2.FeatureFlag.Status + def __init__(self, partition_by: _Optional[_Iterable[str]] = ..., partitioning_by_size: _Optional[_Union[_ydb_common_pb2.FeatureFlag.Status, str]] = ..., partition_size_mb: _Optional[int] = ..., partitioning_by_load: _Optional[_Union[_ydb_common_pb2.FeatureFlag.Status, str]] = ..., min_partitions_count: _Optional[int] = ..., max_partitions_count: _Optional[int] = ...) -> None: ... + +class PrepareDataQueryRequest(_message.Message): + __slots__ = ["operation_params", "session_id", "yql_text"] + OPERATION_PARAMS_FIELD_NUMBER: _ClassVar[int] + SESSION_ID_FIELD_NUMBER: _ClassVar[int] + YQL_TEXT_FIELD_NUMBER: _ClassVar[int] + operation_params: _ydb_operation_pb2.OperationParams + session_id: str + yql_text: str + def __init__(self, session_id: _Optional[str] = ..., yql_text: _Optional[str] = ..., operation_params: _Optional[_Union[_ydb_operation_pb2.OperationParams, _Mapping]] = ...) -> None: ... + +class PrepareDataQueryResponse(_message.Message): + __slots__ = ["operation"] + OPERATION_FIELD_NUMBER: _ClassVar[int] + operation: _ydb_operation_pb2.Operation + def __init__(self, operation: _Optional[_Union[_ydb_operation_pb2.Operation, _Mapping]] = ...) -> None: ... + +class PrepareQueryResult(_message.Message): + __slots__ = ["parameters_types", "query_id"] + class ParametersTypesEntry(_message.Message): + __slots__ = ["key", "value"] + KEY_FIELD_NUMBER: _ClassVar[int] + VALUE_FIELD_NUMBER: _ClassVar[int] + key: str + value: _ydb_value_pb2.Type + def __init__(self, key: _Optional[str] = ..., value: _Optional[_Union[_ydb_value_pb2.Type, _Mapping]] = ...) -> None: ... + PARAMETERS_TYPES_FIELD_NUMBER: _ClassVar[int] + QUERY_ID_FIELD_NUMBER: _ClassVar[int] + parameters_types: _containers.MessageMap[str, _ydb_value_pb2.Type] + query_id: str + def __init__(self, query_id: _Optional[str] = ..., parameters_types: _Optional[_Mapping[str, _ydb_value_pb2.Type]] = ...) -> None: ... + +class Query(_message.Message): + __slots__ = ["id", "yql_text"] + ID_FIELD_NUMBER: _ClassVar[int] + YQL_TEXT_FIELD_NUMBER: _ClassVar[int] + id: str + yql_text: str + def __init__(self, yql_text: _Optional[str] = ..., id: _Optional[str] = ...) -> None: ... + +class QueryCachePolicy(_message.Message): + __slots__ = ["keep_in_cache"] + KEEP_IN_CACHE_FIELD_NUMBER: _ClassVar[int] + keep_in_cache: bool + def __init__(self, keep_in_cache: bool = ...) -> None: ... + +class QueryMeta(_message.Message): + __slots__ = ["id", "parameters_types"] + class ParametersTypesEntry(_message.Message): + __slots__ = ["key", "value"] + KEY_FIELD_NUMBER: _ClassVar[int] + VALUE_FIELD_NUMBER: _ClassVar[int] + key: str + value: _ydb_value_pb2.Type + def __init__(self, key: _Optional[str] = ..., value: _Optional[_Union[_ydb_value_pb2.Type, _Mapping]] = ...) -> None: ... + ID_FIELD_NUMBER: _ClassVar[int] + PARAMETERS_TYPES_FIELD_NUMBER: _ClassVar[int] + id: str + parameters_types: _containers.MessageMap[str, _ydb_value_pb2.Type] + def __init__(self, id: _Optional[str] = ..., parameters_types: _Optional[_Mapping[str, _ydb_value_pb2.Type]] = ...) -> None: ... + +class QueryStatsCollection(_message.Message): + __slots__ = [] + class Mode(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + STATS_COLLECTION_BASIC: QueryStatsCollection.Mode + STATS_COLLECTION_FULL: QueryStatsCollection.Mode + STATS_COLLECTION_NONE: QueryStatsCollection.Mode + STATS_COLLECTION_PROFILE: QueryStatsCollection.Mode + STATS_COLLECTION_UNSPECIFIED: QueryStatsCollection.Mode + def __init__(self) -> None: ... + +class ReadReplicasSettings(_message.Message): + __slots__ = ["any_az_read_replicas_count", "per_az_read_replicas_count"] + ANY_AZ_READ_REPLICAS_COUNT_FIELD_NUMBER: _ClassVar[int] + PER_AZ_READ_REPLICAS_COUNT_FIELD_NUMBER: _ClassVar[int] + any_az_read_replicas_count: int + per_az_read_replicas_count: int + def __init__(self, per_az_read_replicas_count: _Optional[int] = ..., any_az_read_replicas_count: _Optional[int] = ...) -> None: ... + +class ReadRowsRequest(_message.Message): + __slots__ = ["columns", "keys", "path", "session_id"] + COLUMNS_FIELD_NUMBER: _ClassVar[int] + KEYS_FIELD_NUMBER: _ClassVar[int] + PATH_FIELD_NUMBER: _ClassVar[int] + SESSION_ID_FIELD_NUMBER: _ClassVar[int] + columns: _containers.RepeatedScalarFieldContainer[str] + keys: _ydb_value_pb2.TypedValue + path: str + session_id: str + def __init__(self, session_id: _Optional[str] = ..., path: _Optional[str] = ..., keys: _Optional[_Union[_ydb_value_pb2.TypedValue, _Mapping]] = ..., columns: _Optional[_Iterable[str]] = ...) -> None: ... + +class ReadRowsResponse(_message.Message): + __slots__ = ["issues", "result_set", "status"] + ISSUES_FIELD_NUMBER: _ClassVar[int] + RESULT_SET_FIELD_NUMBER: _ClassVar[int] + STATUS_FIELD_NUMBER: _ClassVar[int] + issues: _containers.RepeatedCompositeFieldContainer[_ydb_issue_message_pb2.IssueMessage] + result_set: _ydb_value_pb2.ResultSet + status: _ydb_status_codes_pb2.StatusIds.StatusCode + def __init__(self, status: _Optional[_Union[_ydb_status_codes_pb2.StatusIds.StatusCode, str]] = ..., issues: _Optional[_Iterable[_Union[_ydb_issue_message_pb2.IssueMessage, _Mapping]]] = ..., result_set: _Optional[_Union[_ydb_value_pb2.ResultSet, _Mapping]] = ...) -> None: ... + +class ReadTableRequest(_message.Message): + __slots__ = ["batch_limit_bytes", "batch_limit_rows", "columns", "key_range", "ordered", "path", "return_not_null_data_as_optional", "row_limit", "session_id", "use_snapshot"] + BATCH_LIMIT_BYTES_FIELD_NUMBER: _ClassVar[int] + BATCH_LIMIT_ROWS_FIELD_NUMBER: _ClassVar[int] + COLUMNS_FIELD_NUMBER: _ClassVar[int] + KEY_RANGE_FIELD_NUMBER: _ClassVar[int] + ORDERED_FIELD_NUMBER: _ClassVar[int] + PATH_FIELD_NUMBER: _ClassVar[int] + RETURN_NOT_NULL_DATA_AS_OPTIONAL_FIELD_NUMBER: _ClassVar[int] + ROW_LIMIT_FIELD_NUMBER: _ClassVar[int] + SESSION_ID_FIELD_NUMBER: _ClassVar[int] + USE_SNAPSHOT_FIELD_NUMBER: _ClassVar[int] + batch_limit_bytes: int + batch_limit_rows: int + columns: _containers.RepeatedScalarFieldContainer[str] + key_range: KeyRange + ordered: bool + path: str + return_not_null_data_as_optional: _ydb_common_pb2.FeatureFlag.Status + row_limit: int + session_id: str + use_snapshot: _ydb_common_pb2.FeatureFlag.Status + def __init__(self, session_id: _Optional[str] = ..., path: _Optional[str] = ..., key_range: _Optional[_Union[KeyRange, _Mapping]] = ..., columns: _Optional[_Iterable[str]] = ..., ordered: bool = ..., row_limit: _Optional[int] = ..., use_snapshot: _Optional[_Union[_ydb_common_pb2.FeatureFlag.Status, str]] = ..., batch_limit_bytes: _Optional[int] = ..., batch_limit_rows: _Optional[int] = ..., return_not_null_data_as_optional: _Optional[_Union[_ydb_common_pb2.FeatureFlag.Status, str]] = ...) -> None: ... + +class ReadTableResponse(_message.Message): + __slots__ = ["issues", "result", "snapshot", "status"] + ISSUES_FIELD_NUMBER: _ClassVar[int] + RESULT_FIELD_NUMBER: _ClassVar[int] + SNAPSHOT_FIELD_NUMBER: _ClassVar[int] + STATUS_FIELD_NUMBER: _ClassVar[int] + issues: _containers.RepeatedCompositeFieldContainer[_ydb_issue_message_pb2.IssueMessage] + result: ReadTableResult + snapshot: _ydb_common_pb2.VirtualTimestamp + status: _ydb_status_codes_pb2.StatusIds.StatusCode + def __init__(self, status: _Optional[_Union[_ydb_status_codes_pb2.StatusIds.StatusCode, str]] = ..., issues: _Optional[_Iterable[_Union[_ydb_issue_message_pb2.IssueMessage, _Mapping]]] = ..., snapshot: _Optional[_Union[_ydb_common_pb2.VirtualTimestamp, _Mapping]] = ..., result: _Optional[_Union[ReadTableResult, _Mapping]] = ...) -> None: ... + +class ReadTableResult(_message.Message): + __slots__ = ["result_set"] + RESULT_SET_FIELD_NUMBER: _ClassVar[int] + result_set: _ydb_value_pb2.ResultSet + def __init__(self, result_set: _Optional[_Union[_ydb_value_pb2.ResultSet, _Mapping]] = ...) -> None: ... + +class RenameIndexItem(_message.Message): + __slots__ = ["destination_name", "replace_destination", "source_name"] + DESTINATION_NAME_FIELD_NUMBER: _ClassVar[int] + REPLACE_DESTINATION_FIELD_NUMBER: _ClassVar[int] + SOURCE_NAME_FIELD_NUMBER: _ClassVar[int] + destination_name: str + replace_destination: bool + source_name: str + def __init__(self, source_name: _Optional[str] = ..., destination_name: _Optional[str] = ..., replace_destination: bool = ...) -> None: ... + +class RenameTableItem(_message.Message): + __slots__ = ["destination_path", "replace_destination", "source_path"] + DESTINATION_PATH_FIELD_NUMBER: _ClassVar[int] + REPLACE_DESTINATION_FIELD_NUMBER: _ClassVar[int] + SOURCE_PATH_FIELD_NUMBER: _ClassVar[int] + destination_path: str + replace_destination: bool + source_path: str + def __init__(self, source_path: _Optional[str] = ..., destination_path: _Optional[str] = ..., replace_destination: bool = ...) -> None: ... + +class RenameTablesRequest(_message.Message): + __slots__ = ["operation_params", "session_id", "tables"] + OPERATION_PARAMS_FIELD_NUMBER: _ClassVar[int] + SESSION_ID_FIELD_NUMBER: _ClassVar[int] + TABLES_FIELD_NUMBER: _ClassVar[int] + operation_params: _ydb_operation_pb2.OperationParams + session_id: str + tables: _containers.RepeatedCompositeFieldContainer[RenameTableItem] + def __init__(self, operation_params: _Optional[_Union[_ydb_operation_pb2.OperationParams, _Mapping]] = ..., session_id: _Optional[str] = ..., tables: _Optional[_Iterable[_Union[RenameTableItem, _Mapping]]] = ...) -> None: ... + +class RenameTablesResponse(_message.Message): + __slots__ = ["operation"] + OPERATION_FIELD_NUMBER: _ClassVar[int] + operation: _ydb_operation_pb2.Operation + def __init__(self, operation: _Optional[_Union[_ydb_operation_pb2.Operation, _Mapping]] = ...) -> None: ... + +class ReplicationPolicy(_message.Message): + __slots__ = ["allow_promotion", "create_per_availability_zone", "preset_name", "replicas_count"] + ALLOW_PROMOTION_FIELD_NUMBER: _ClassVar[int] + CREATE_PER_AVAILABILITY_ZONE_FIELD_NUMBER: _ClassVar[int] + PRESET_NAME_FIELD_NUMBER: _ClassVar[int] + REPLICAS_COUNT_FIELD_NUMBER: _ClassVar[int] + allow_promotion: _ydb_common_pb2.FeatureFlag.Status + create_per_availability_zone: _ydb_common_pb2.FeatureFlag.Status + preset_name: str + replicas_count: int + def __init__(self, preset_name: _Optional[str] = ..., replicas_count: _Optional[int] = ..., create_per_availability_zone: _Optional[_Union[_ydb_common_pb2.FeatureFlag.Status, str]] = ..., allow_promotion: _Optional[_Union[_ydb_common_pb2.FeatureFlag.Status, str]] = ...) -> None: ... + +class ReplicationPolicyDescription(_message.Message): + __slots__ = ["labels", "name"] + class LabelsEntry(_message.Message): + __slots__ = ["key", "value"] + KEY_FIELD_NUMBER: _ClassVar[int] + VALUE_FIELD_NUMBER: _ClassVar[int] + key: str + value: str + def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ... + LABELS_FIELD_NUMBER: _ClassVar[int] + NAME_FIELD_NUMBER: _ClassVar[int] + labels: _containers.ScalarMap[str, str] + name: str + def __init__(self, name: _Optional[str] = ..., labels: _Optional[_Mapping[str, str]] = ...) -> None: ... + +class RollbackTransactionRequest(_message.Message): + __slots__ = ["operation_params", "session_id", "tx_id"] + OPERATION_PARAMS_FIELD_NUMBER: _ClassVar[int] + SESSION_ID_FIELD_NUMBER: _ClassVar[int] + TX_ID_FIELD_NUMBER: _ClassVar[int] + operation_params: _ydb_operation_pb2.OperationParams + session_id: str + tx_id: str + def __init__(self, session_id: _Optional[str] = ..., tx_id: _Optional[str] = ..., operation_params: _Optional[_Union[_ydb_operation_pb2.OperationParams, _Mapping]] = ...) -> None: ... + +class RollbackTransactionResponse(_message.Message): + __slots__ = ["operation"] + OPERATION_FIELD_NUMBER: _ClassVar[int] + operation: _ydb_operation_pb2.Operation + def __init__(self, operation: _Optional[_Union[_ydb_operation_pb2.Operation, _Mapping]] = ...) -> None: ... + +class SequenceDescription(_message.Message): + __slots__ = ["cache", "cycle", "increment", "max_value", "min_value", "name", "set_val", "start_value"] + class SetVal(_message.Message): + __slots__ = ["next_used", "next_value"] + NEXT_USED_FIELD_NUMBER: _ClassVar[int] + NEXT_VALUE_FIELD_NUMBER: _ClassVar[int] + next_used: bool + next_value: int + def __init__(self, next_value: _Optional[int] = ..., next_used: bool = ...) -> None: ... + CACHE_FIELD_NUMBER: _ClassVar[int] + CYCLE_FIELD_NUMBER: _ClassVar[int] + INCREMENT_FIELD_NUMBER: _ClassVar[int] + MAX_VALUE_FIELD_NUMBER: _ClassVar[int] + MIN_VALUE_FIELD_NUMBER: _ClassVar[int] + NAME_FIELD_NUMBER: _ClassVar[int] + SET_VAL_FIELD_NUMBER: _ClassVar[int] + START_VALUE_FIELD_NUMBER: _ClassVar[int] + cache: int + cycle: bool + increment: int + max_value: int + min_value: int + name: str + set_val: SequenceDescription.SetVal + start_value: int + def __init__(self, name: _Optional[str] = ..., min_value: _Optional[int] = ..., max_value: _Optional[int] = ..., start_value: _Optional[int] = ..., cache: _Optional[int] = ..., increment: _Optional[int] = ..., cycle: bool = ..., set_val: _Optional[_Union[SequenceDescription.SetVal, _Mapping]] = ...) -> None: ... + +class SerializableModeSettings(_message.Message): + __slots__ = [] + def __init__(self) -> None: ... + +class SnapshotModeSettings(_message.Message): + __slots__ = [] + def __init__(self) -> None: ... + +class StaleModeSettings(_message.Message): + __slots__ = [] + def __init__(self) -> None: ... + +class StoragePolicy(_message.Message): + __slots__ = ["column_families", "data", "external", "keep_in_memory", "log", "preset_name", "syslog"] + COLUMN_FAMILIES_FIELD_NUMBER: _ClassVar[int] + DATA_FIELD_NUMBER: _ClassVar[int] + EXTERNAL_FIELD_NUMBER: _ClassVar[int] + KEEP_IN_MEMORY_FIELD_NUMBER: _ClassVar[int] + LOG_FIELD_NUMBER: _ClassVar[int] + PRESET_NAME_FIELD_NUMBER: _ClassVar[int] + SYSLOG_FIELD_NUMBER: _ClassVar[int] + column_families: _containers.RepeatedCompositeFieldContainer[ColumnFamilyPolicy] + data: StoragePool + external: StoragePool + keep_in_memory: _ydb_common_pb2.FeatureFlag.Status + log: StoragePool + preset_name: str + syslog: StoragePool + def __init__(self, preset_name: _Optional[str] = ..., syslog: _Optional[_Union[StoragePool, _Mapping]] = ..., log: _Optional[_Union[StoragePool, _Mapping]] = ..., data: _Optional[_Union[StoragePool, _Mapping]] = ..., external: _Optional[_Union[StoragePool, _Mapping]] = ..., keep_in_memory: _Optional[_Union[_ydb_common_pb2.FeatureFlag.Status, str]] = ..., column_families: _Optional[_Iterable[_Union[ColumnFamilyPolicy, _Mapping]]] = ...) -> None: ... + +class StoragePolicyDescription(_message.Message): + __slots__ = ["labels", "name"] + class LabelsEntry(_message.Message): + __slots__ = ["key", "value"] + KEY_FIELD_NUMBER: _ClassVar[int] + VALUE_FIELD_NUMBER: _ClassVar[int] + key: str + value: str + def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ... + LABELS_FIELD_NUMBER: _ClassVar[int] + NAME_FIELD_NUMBER: _ClassVar[int] + labels: _containers.ScalarMap[str, str] + name: str + def __init__(self, name: _Optional[str] = ..., labels: _Optional[_Mapping[str, str]] = ...) -> None: ... + +class StoragePool(_message.Message): + __slots__ = ["media"] + MEDIA_FIELD_NUMBER: _ClassVar[int] + media: str + def __init__(self, media: _Optional[str] = ...) -> None: ... + +class StorageSettings(_message.Message): + __slots__ = ["external", "store_external_blobs", "tablet_commit_log0", "tablet_commit_log1"] + EXTERNAL_FIELD_NUMBER: _ClassVar[int] + STORE_EXTERNAL_BLOBS_FIELD_NUMBER: _ClassVar[int] + TABLET_COMMIT_LOG0_FIELD_NUMBER: _ClassVar[int] + TABLET_COMMIT_LOG1_FIELD_NUMBER: _ClassVar[int] + external: StoragePool + store_external_blobs: _ydb_common_pb2.FeatureFlag.Status + tablet_commit_log0: StoragePool + tablet_commit_log1: StoragePool + def __init__(self, tablet_commit_log0: _Optional[_Union[StoragePool, _Mapping]] = ..., tablet_commit_log1: _Optional[_Union[StoragePool, _Mapping]] = ..., external: _Optional[_Union[StoragePool, _Mapping]] = ..., store_external_blobs: _Optional[_Union[_ydb_common_pb2.FeatureFlag.Status, str]] = ...) -> None: ... + +class TableIndex(_message.Message): + __slots__ = ["data_columns", "global_async_index", "global_index", "global_unique_index", "index_columns", "name"] + DATA_COLUMNS_FIELD_NUMBER: _ClassVar[int] + GLOBAL_ASYNC_INDEX_FIELD_NUMBER: _ClassVar[int] + GLOBAL_INDEX_FIELD_NUMBER: _ClassVar[int] + GLOBAL_UNIQUE_INDEX_FIELD_NUMBER: _ClassVar[int] + INDEX_COLUMNS_FIELD_NUMBER: _ClassVar[int] + NAME_FIELD_NUMBER: _ClassVar[int] + data_columns: _containers.RepeatedScalarFieldContainer[str] + global_async_index: GlobalAsyncIndex + global_index: GlobalIndex + global_unique_index: GlobalUniqueIndex + index_columns: _containers.RepeatedScalarFieldContainer[str] + name: str + def __init__(self, name: _Optional[str] = ..., index_columns: _Optional[_Iterable[str]] = ..., global_index: _Optional[_Union[GlobalIndex, _Mapping]] = ..., global_async_index: _Optional[_Union[GlobalAsyncIndex, _Mapping]] = ..., global_unique_index: _Optional[_Union[GlobalUniqueIndex, _Mapping]] = ..., data_columns: _Optional[_Iterable[str]] = ...) -> None: ... + +class TableIndexDescription(_message.Message): + __slots__ = ["data_columns", "global_async_index", "global_index", "global_unique_index", "index_columns", "name", "size_bytes", "status"] + class Status(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + DATA_COLUMNS_FIELD_NUMBER: _ClassVar[int] + GLOBAL_ASYNC_INDEX_FIELD_NUMBER: _ClassVar[int] + GLOBAL_INDEX_FIELD_NUMBER: _ClassVar[int] + GLOBAL_UNIQUE_INDEX_FIELD_NUMBER: _ClassVar[int] + INDEX_COLUMNS_FIELD_NUMBER: _ClassVar[int] + NAME_FIELD_NUMBER: _ClassVar[int] + SIZE_BYTES_FIELD_NUMBER: _ClassVar[int] + STATUS_BUILDING: TableIndexDescription.Status + STATUS_FIELD_NUMBER: _ClassVar[int] + STATUS_READY: TableIndexDescription.Status + STATUS_UNSPECIFIED: TableIndexDescription.Status + data_columns: _containers.RepeatedScalarFieldContainer[str] + global_async_index: GlobalAsyncIndex + global_index: GlobalIndex + global_unique_index: GlobalUniqueIndex + index_columns: _containers.RepeatedScalarFieldContainer[str] + name: str + size_bytes: int + status: TableIndexDescription.Status + def __init__(self, name: _Optional[str] = ..., index_columns: _Optional[_Iterable[str]] = ..., global_index: _Optional[_Union[GlobalIndex, _Mapping]] = ..., global_async_index: _Optional[_Union[GlobalAsyncIndex, _Mapping]] = ..., global_unique_index: _Optional[_Union[GlobalUniqueIndex, _Mapping]] = ..., status: _Optional[_Union[TableIndexDescription.Status, str]] = ..., data_columns: _Optional[_Iterable[str]] = ..., size_bytes: _Optional[int] = ...) -> None: ... + +class TableProfile(_message.Message): + __slots__ = ["caching_policy", "compaction_policy", "execution_policy", "partitioning_policy", "preset_name", "replication_policy", "storage_policy"] + CACHING_POLICY_FIELD_NUMBER: _ClassVar[int] + COMPACTION_POLICY_FIELD_NUMBER: _ClassVar[int] + EXECUTION_POLICY_FIELD_NUMBER: _ClassVar[int] + PARTITIONING_POLICY_FIELD_NUMBER: _ClassVar[int] + PRESET_NAME_FIELD_NUMBER: _ClassVar[int] + REPLICATION_POLICY_FIELD_NUMBER: _ClassVar[int] + STORAGE_POLICY_FIELD_NUMBER: _ClassVar[int] + caching_policy: CachingPolicy + compaction_policy: CompactionPolicy + execution_policy: ExecutionPolicy + partitioning_policy: PartitioningPolicy + preset_name: str + replication_policy: ReplicationPolicy + storage_policy: StoragePolicy + def __init__(self, preset_name: _Optional[str] = ..., storage_policy: _Optional[_Union[StoragePolicy, _Mapping]] = ..., compaction_policy: _Optional[_Union[CompactionPolicy, _Mapping]] = ..., partitioning_policy: _Optional[_Union[PartitioningPolicy, _Mapping]] = ..., execution_policy: _Optional[_Union[ExecutionPolicy, _Mapping]] = ..., replication_policy: _Optional[_Union[ReplicationPolicy, _Mapping]] = ..., caching_policy: _Optional[_Union[CachingPolicy, _Mapping]] = ...) -> None: ... + +class TableProfileDescription(_message.Message): + __slots__ = ["allowed_caching_policies", "allowed_compaction_policies", "allowed_execution_policies", "allowed_partitioning_policies", "allowed_replication_policies", "allowed_storage_policies", "default_caching_policy", "default_compaction_policy", "default_execution_policy", "default_partitioning_policy", "default_replication_policy", "default_storage_policy", "labels", "name"] + class LabelsEntry(_message.Message): + __slots__ = ["key", "value"] + KEY_FIELD_NUMBER: _ClassVar[int] + VALUE_FIELD_NUMBER: _ClassVar[int] + key: str + value: str + def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ... + ALLOWED_CACHING_POLICIES_FIELD_NUMBER: _ClassVar[int] + ALLOWED_COMPACTION_POLICIES_FIELD_NUMBER: _ClassVar[int] + ALLOWED_EXECUTION_POLICIES_FIELD_NUMBER: _ClassVar[int] + ALLOWED_PARTITIONING_POLICIES_FIELD_NUMBER: _ClassVar[int] + ALLOWED_REPLICATION_POLICIES_FIELD_NUMBER: _ClassVar[int] + ALLOWED_STORAGE_POLICIES_FIELD_NUMBER: _ClassVar[int] + DEFAULT_CACHING_POLICY_FIELD_NUMBER: _ClassVar[int] + DEFAULT_COMPACTION_POLICY_FIELD_NUMBER: _ClassVar[int] + DEFAULT_EXECUTION_POLICY_FIELD_NUMBER: _ClassVar[int] + DEFAULT_PARTITIONING_POLICY_FIELD_NUMBER: _ClassVar[int] + DEFAULT_REPLICATION_POLICY_FIELD_NUMBER: _ClassVar[int] + DEFAULT_STORAGE_POLICY_FIELD_NUMBER: _ClassVar[int] + LABELS_FIELD_NUMBER: _ClassVar[int] + NAME_FIELD_NUMBER: _ClassVar[int] + allowed_caching_policies: _containers.RepeatedScalarFieldContainer[str] + allowed_compaction_policies: _containers.RepeatedScalarFieldContainer[str] + allowed_execution_policies: _containers.RepeatedScalarFieldContainer[str] + allowed_partitioning_policies: _containers.RepeatedScalarFieldContainer[str] + allowed_replication_policies: _containers.RepeatedScalarFieldContainer[str] + allowed_storage_policies: _containers.RepeatedScalarFieldContainer[str] + default_caching_policy: str + default_compaction_policy: str + default_execution_policy: str + default_partitioning_policy: str + default_replication_policy: str + default_storage_policy: str + labels: _containers.ScalarMap[str, str] + name: str + def __init__(self, name: _Optional[str] = ..., labels: _Optional[_Mapping[str, str]] = ..., default_storage_policy: _Optional[str] = ..., allowed_storage_policies: _Optional[_Iterable[str]] = ..., default_compaction_policy: _Optional[str] = ..., allowed_compaction_policies: _Optional[_Iterable[str]] = ..., default_partitioning_policy: _Optional[str] = ..., allowed_partitioning_policies: _Optional[_Iterable[str]] = ..., default_execution_policy: _Optional[str] = ..., allowed_execution_policies: _Optional[_Iterable[str]] = ..., default_replication_policy: _Optional[str] = ..., allowed_replication_policies: _Optional[_Iterable[str]] = ..., default_caching_policy: _Optional[str] = ..., allowed_caching_policies: _Optional[_Iterable[str]] = ...) -> None: ... + +class TableStats(_message.Message): + __slots__ = ["creation_time", "modification_time", "partition_stats", "partitions", "rows_estimate", "store_size"] + CREATION_TIME_FIELD_NUMBER: _ClassVar[int] + MODIFICATION_TIME_FIELD_NUMBER: _ClassVar[int] + PARTITIONS_FIELD_NUMBER: _ClassVar[int] + PARTITION_STATS_FIELD_NUMBER: _ClassVar[int] + ROWS_ESTIMATE_FIELD_NUMBER: _ClassVar[int] + STORE_SIZE_FIELD_NUMBER: _ClassVar[int] + creation_time: _timestamp_pb2.Timestamp + modification_time: _timestamp_pb2.Timestamp + partition_stats: _containers.RepeatedCompositeFieldContainer[PartitionStats] + partitions: int + rows_estimate: int + store_size: int + def __init__(self, partition_stats: _Optional[_Iterable[_Union[PartitionStats, _Mapping]]] = ..., rows_estimate: _Optional[int] = ..., store_size: _Optional[int] = ..., partitions: _Optional[int] = ..., creation_time: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., modification_time: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ...) -> None: ... + +class TransactionControl(_message.Message): + __slots__ = ["begin_tx", "commit_tx", "tx_id"] + BEGIN_TX_FIELD_NUMBER: _ClassVar[int] + COMMIT_TX_FIELD_NUMBER: _ClassVar[int] + TX_ID_FIELD_NUMBER: _ClassVar[int] + begin_tx: TransactionSettings + commit_tx: bool + tx_id: str + def __init__(self, tx_id: _Optional[str] = ..., begin_tx: _Optional[_Union[TransactionSettings, _Mapping]] = ..., commit_tx: bool = ...) -> None: ... + +class TransactionMeta(_message.Message): + __slots__ = ["id"] + ID_FIELD_NUMBER: _ClassVar[int] + id: str + def __init__(self, id: _Optional[str] = ...) -> None: ... + +class TransactionSettings(_message.Message): + __slots__ = ["online_read_only", "serializable_read_write", "snapshot_read_only", "stale_read_only"] + ONLINE_READ_ONLY_FIELD_NUMBER: _ClassVar[int] + SERIALIZABLE_READ_WRITE_FIELD_NUMBER: _ClassVar[int] + SNAPSHOT_READ_ONLY_FIELD_NUMBER: _ClassVar[int] + STALE_READ_ONLY_FIELD_NUMBER: _ClassVar[int] + online_read_only: OnlineModeSettings + serializable_read_write: SerializableModeSettings + snapshot_read_only: SnapshotModeSettings + stale_read_only: StaleModeSettings + def __init__(self, serializable_read_write: _Optional[_Union[SerializableModeSettings, _Mapping]] = ..., online_read_only: _Optional[_Union[OnlineModeSettings, _Mapping]] = ..., stale_read_only: _Optional[_Union[StaleModeSettings, _Mapping]] = ..., snapshot_read_only: _Optional[_Union[SnapshotModeSettings, _Mapping]] = ...) -> None: ... + +class TtlSettings(_message.Message): + __slots__ = ["date_type_column", "run_interval_seconds", "value_since_unix_epoch"] + DATE_TYPE_COLUMN_FIELD_NUMBER: _ClassVar[int] + RUN_INTERVAL_SECONDS_FIELD_NUMBER: _ClassVar[int] + VALUE_SINCE_UNIX_EPOCH_FIELD_NUMBER: _ClassVar[int] + date_type_column: DateTypeColumnModeSettings + run_interval_seconds: int + value_since_unix_epoch: ValueSinceUnixEpochModeSettings + def __init__(self, date_type_column: _Optional[_Union[DateTypeColumnModeSettings, _Mapping]] = ..., value_since_unix_epoch: _Optional[_Union[ValueSinceUnixEpochModeSettings, _Mapping]] = ..., run_interval_seconds: _Optional[int] = ...) -> None: ... + +class ValueSinceUnixEpochModeSettings(_message.Message): + __slots__ = ["column_name", "column_unit", "expire_after_seconds"] + class Unit(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + COLUMN_NAME_FIELD_NUMBER: _ClassVar[int] + COLUMN_UNIT_FIELD_NUMBER: _ClassVar[int] + EXPIRE_AFTER_SECONDS_FIELD_NUMBER: _ClassVar[int] + UNIT_MICROSECONDS: ValueSinceUnixEpochModeSettings.Unit + UNIT_MILLISECONDS: ValueSinceUnixEpochModeSettings.Unit + UNIT_NANOSECONDS: ValueSinceUnixEpochModeSettings.Unit + UNIT_SECONDS: ValueSinceUnixEpochModeSettings.Unit + UNIT_UNSPECIFIED: ValueSinceUnixEpochModeSettings.Unit + column_name: str + column_unit: ValueSinceUnixEpochModeSettings.Unit + expire_after_seconds: int + def __init__(self, column_name: _Optional[str] = ..., column_unit: _Optional[_Union[ValueSinceUnixEpochModeSettings.Unit, str]] = ..., expire_after_seconds: _Optional[int] = ...) -> None: ... + +class StoreType(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] diff --git a/ydb/_grpc/v5/protos/ydb_table_pb2_grpc.py b/ydb/_grpc/v5/protos/ydb_table_pb2_grpc.py new file mode 100644 index 00000000..2daafffe --- /dev/null +++ b/ydb/_grpc/v5/protos/ydb_table_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/ydb/_grpc/v5/protos/ydb_topic_pb2.py b/ydb/_grpc/v5/protos/ydb_topic_pb2.py new file mode 100644 index 00000000..4a79b510 --- /dev/null +++ b/ydb/_grpc/v5/protos/ydb_topic_pb2.py @@ -0,0 +1,323 @@ +# -*- coding: utf-8 -*- +# flake8: noqa +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: protos/ydb_topic.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from ydb._grpc.v5.protos import ydb_operation_pb2 as protos_dot_ydb__operation__pb2 +from ydb._grpc.v5.protos import ydb_scheme_pb2 as protos_dot_ydb__scheme__pb2 +from ydb._grpc.v5.protos import ydb_status_codes_pb2 as protos_dot_ydb__status__codes__pb2 +from ydb._grpc.v5.protos import ydb_issue_message_pb2 as protos_dot_ydb__issue__message__pb2 +from ydb._grpc.v5.protos.annotations import sensitive_pb2 as protos_dot_annotations_dot_sensitive__pb2 +from ydb._grpc.v5.protos.annotations import validation_pb2 as protos_dot_annotations_dot_validation__pb2 +from google.protobuf import duration_pb2 as google_dot_protobuf_dot_duration__pb2 +from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x16protos/ydb_topic.proto\x12\tYdb.Topic\x1a\x1aprotos/ydb_operation.proto\x1a\x17protos/ydb_scheme.proto\x1a\x1dprotos/ydb_status_codes.proto\x1a\x1eprotos/ydb_issue_message.proto\x1a\"protos/annotations/sensitive.proto\x1a#protos/annotations/validation.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"7\n\x0fSupportedCodecs\x12$\n\x06\x63odecs\x18\x01 \x03(\x05\x42\x14\xb2\xe6*\n[1; 19999]\x9a\xe6*\x02\x18\x64\"*\n\x0cOffsetsRange\x12\r\n\x05start\x18\x01 \x01(\x03\x12\x0b\n\x03\x65nd\x18\x02 \x01(\x03\")\n\x12UpdateTokenRequest\x12\x13\n\x05token\x18\x01 \x01(\tB\x04\xb8\xe6*\x01\"\x15\n\x13UpdateTokenResponse\"C\n\x17PartitionWithGeneration\x12\x14\n\x0cpartition_id\x18\x01 \x01(\x03\x12\x12\n\ngeneration\x18\x02 \x01(\x03\"*\n\x0cMetadataItem\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x0c\"\x9e\x14\n\x12StreamWriteMessage\x1a\xe5\x01\n\nFromClient\x12\x41\n\x0cinit_request\x18\x01 \x01(\x0b\x32).Ydb.Topic.StreamWriteMessage.InitRequestH\x00\x12\x43\n\rwrite_request\x18\x02 \x01(\x0b\x32*.Ydb.Topic.StreamWriteMessage.WriteRequestH\x00\x12=\n\x14update_token_request\x18\x03 \x01(\x0b\x32\x1d.Ydb.Topic.UpdateTokenRequestH\x00\x42\x10\n\x0e\x63lient_message\x1a\xbf\x02\n\nFromServer\x12)\n\x06status\x18\x01 \x01(\x0e\x32\x19.Ydb.StatusIds.StatusCode\x12\'\n\x06issues\x18\x02 \x03(\x0b\x32\x17.Ydb.Issue.IssueMessage\x12\x43\n\rinit_response\x18\x03 \x01(\x0b\x32*.Ydb.Topic.StreamWriteMessage.InitResponseH\x00\x12\x45\n\x0ewrite_response\x18\x04 \x01(\x0b\x32+.Ydb.Topic.StreamWriteMessage.WriteResponseH\x00\x12?\n\x15update_token_response\x18\x05 \x01(\x0b\x32\x1e.Ydb.Topic.UpdateTokenResponseH\x00\x42\x10\n\x0eserver_message\x1a\xfe\x02\n\x0bInitRequest\x12\x0c\n\x04path\x18\x01 \x01(\t\x12\x1c\n\x0bproducer_id\x18\x02 \x01(\tB\x07\xa2\xe6*\x03\x18\x80\x10\x12[\n\x12write_session_meta\x18\x03 \x03(\x0b\x32?.Ydb.Topic.StreamWriteMessage.InitRequest.WriteSessionMetaEntry\x12#\n\x10message_group_id\x18\x04 \x01(\tB\x07\xa2\xe6*\x03\x18\x80\x10H\x00\x12\x16\n\x0cpartition_id\x18\x05 \x01(\x03H\x00\x12G\n\x19partition_with_generation\x18\x07 \x01(\x0b\x32\".Ydb.Topic.PartitionWithGenerationH\x00\x12\x17\n\x0fget_last_seq_no\x18\x06 \x01(\x08\x1a\x37\n\x15WriteSessionMetaEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\x0e\n\x0cpartitioning\x1a\x83\x01\n\x0cInitResponse\x12\x13\n\x0blast_seq_no\x18\x01 \x01(\x03\x12\x12\n\nsession_id\x18\x02 \x01(\t\x12\x14\n\x0cpartition_id\x18\x03 \x01(\x03\x12\x34\n\x10supported_codecs\x18\x04 \x01(\x0b\x32\x1a.Ydb.Topic.SupportedCodecs\x1a\xe8\x03\n\x0cWriteRequest\x12H\n\x08messages\x18\x01 \x03(\x0b\x32\x36.Ydb.Topic.StreamWriteMessage.WriteRequest.MessageData\x12\r\n\x05\x63odec\x18\x02 \x01(\x05\x12/\n\x02tx\x18\x03 \x01(\x0b\x32\x1e.Ydb.Topic.TransactionIdentityH\x00\x88\x01\x01\x1a\xc6\x02\n\x0bMessageData\x12\x0e\n\x06seq_no\x18\x01 \x01(\x03\x12.\n\ncreated_at\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x0c\n\x04\x64\x61ta\x18\x03 \x01(\x0c\x12\x19\n\x11uncompressed_size\x18\x04 \x01(\x03\x12#\n\x10message_group_id\x18\x05 \x01(\tB\x07\xa2\xe6*\x03\x18\x80\x10H\x00\x12\x16\n\x0cpartition_id\x18\x06 \x01(\x03H\x00\x12G\n\x19partition_with_generation\x18\x08 \x01(\x0b\x32\".Ydb.Topic.PartitionWithGenerationH\x00\x12\x38\n\x0emetadata_items\x18\x07 \x03(\x0b\x32\x17.Ydb.Topic.MetadataItemB\x07\x9a\xe6*\x03\x18\xe8\x07\x42\x0e\n\x0cpartitioningB\x05\n\x03_tx\x1a\xeb\x07\n\rWriteResponse\x12\x42\n\x04\x61\x63ks\x18\x01 \x03(\x0b\x32\x34.Ydb.Topic.StreamWriteMessage.WriteResponse.WriteAck\x12\x14\n\x0cpartition_id\x18\x02 \x01(\x03\x12U\n\x10write_statistics\x18\x03 \x01(\x0b\x32;.Ydb.Topic.StreamWriteMessage.WriteResponse.WriteStatistics\x1a\xf8\x03\n\x08WriteAck\x12\x0e\n\x06seq_no\x18\x01 \x01(\x03\x12O\n\x07written\x18\x02 \x01(\x0b\x32<.Ydb.Topic.StreamWriteMessage.WriteResponse.WriteAck.WrittenH\x00\x12O\n\x07skipped\x18\x03 \x01(\x0b\x32<.Ydb.Topic.StreamWriteMessage.WriteResponse.WriteAck.SkippedH\x00\x12Y\n\rwritten_in_tx\x18\x04 \x01(\x0b\x32@.Ydb.Topic.StreamWriteMessage.WriteResponse.WriteAck.WrittenInTxH\x00\x1a\x19\n\x07Written\x12\x0e\n\x06offset\x18\x01 \x01(\x03\x1a\x9c\x01\n\x07Skipped\x12S\n\x06reason\x18\x01 \x01(\x0e\x32\x43.Ydb.Topic.StreamWriteMessage.WriteResponse.WriteAck.Skipped.Reason\"<\n\x06Reason\x12\x16\n\x12REASON_UNSPECIFIED\x10\x00\x12\x1a\n\x16REASON_ALREADY_WRITTEN\x10\x01\x1a\r\n\x0bWrittenInTxB\x16\n\x14message_write_status\x1a\xad\x02\n\x0fWriteStatistics\x12\x32\n\x0fpersisting_time\x18\x01 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x36\n\x13min_queue_wait_time\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x36\n\x13max_queue_wait_time\x18\x03 \x01(\x0b\x32\x19.google.protobuf.Duration\x12<\n\x19partition_quota_wait_time\x18\x04 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x38\n\x15topic_quota_wait_time\x18\x05 \x01(\x0b\x32\x19.google.protobuf.Duration\"\x9c#\n\x11StreamReadMessage\x1aT\n\x10PartitionSession\x12\x1c\n\x14partition_session_id\x18\x01 \x01(\x03\x12\x0c\n\x04path\x18\x02 \x01(\t\x12\x14\n\x0cpartition_id\x18\x03 \x01(\x03\x1a\xb1\x05\n\nFromClient\x12@\n\x0cinit_request\x18\x01 \x01(\x0b\x32(.Ydb.Topic.StreamReadMessage.InitRequestH\x00\x12@\n\x0cread_request\x18\x02 \x01(\x0b\x32(.Ydb.Topic.StreamReadMessage.ReadRequestH\x00\x12Q\n\x15\x63ommit_offset_request\x18\x03 \x01(\x0b\x32\x30.Ydb.Topic.StreamReadMessage.CommitOffsetRequestH\x00\x12\x66\n partition_session_status_request\x18\x04 \x01(\x0b\x32:.Ydb.Topic.StreamReadMessage.PartitionSessionStatusRequestH\x00\x12=\n\x14update_token_request\x18\x05 \x01(\x0b\x32\x1d.Ydb.Topic.UpdateTokenRequestH\x00\x12\x45\n\x0f\x64irect_read_ack\x18\x08 \x01(\x0b\x32*.Ydb.Topic.StreamReadMessage.DirectReadAckH\x00\x12\x66\n start_partition_session_response\x18\x06 \x01(\x0b\x32:.Ydb.Topic.StreamReadMessage.StartPartitionSessionResponseH\x00\x12\x64\n\x1fstop_partition_session_response\x18\x07 \x01(\x0b\x32\x39.Ydb.Topic.StreamReadMessage.StopPartitionSessionResponseH\x00\x42\x10\n\x0e\x63lient_message\x1a\xf0\x06\n\nFromServer\x12)\n\x06status\x18\x01 \x01(\x0e\x32\x19.Ydb.StatusIds.StatusCode\x12\'\n\x06issues\x18\x02 \x03(\x0b\x32\x17.Ydb.Issue.IssueMessage\x12\x42\n\rinit_response\x18\x03 \x01(\x0b\x32).Ydb.Topic.StreamReadMessage.InitResponseH\x00\x12\x42\n\rread_response\x18\x04 \x01(\x0b\x32).Ydb.Topic.StreamReadMessage.ReadResponseH\x00\x12S\n\x16\x63ommit_offset_response\x18\x05 \x01(\x0b\x32\x31.Ydb.Topic.StreamReadMessage.CommitOffsetResponseH\x00\x12h\n!partition_session_status_response\x18\x06 \x01(\x0b\x32;.Ydb.Topic.StreamReadMessage.PartitionSessionStatusResponseH\x00\x12?\n\x15update_token_response\x18\x07 \x01(\x0b\x32\x1e.Ydb.Topic.UpdateTokenResponseH\x00\x12\x64\n\x1fstart_partition_session_request\x18\x08 \x01(\x0b\x32\x39.Ydb.Topic.StreamReadMessage.StartPartitionSessionRequestH\x00\x12\x62\n\x1estop_partition_session_request\x18\t \x01(\x0b\x32\x38.Ydb.Topic.StreamReadMessage.StopPartitionSessionRequestH\x00\x12W\n\x18update_partition_session\x18\n \x01(\x0b\x32\x33.Ydb.Topic.StreamReadMessage.UpdatePartitionSessionH\x00\x12Q\n\x15\x65nd_partition_session\x18\x0b \x01(\x0b\x32\x30.Ydb.Topic.StreamReadMessage.EndPartitionSessionH\x00\x42\x10\n\x0eserver_message\x1a\xdc\x02\n\x0bInitRequest\x12X\n\x14topics_read_settings\x18\x01 \x03(\x0b\x32:.Ydb.Topic.StreamReadMessage.InitRequest.TopicReadSettings\x12\x10\n\x08\x63onsumer\x18\x02 \x01(\t\x12\x13\n\x0breader_name\x18\x03 \x01(\t\x12\x13\n\x0b\x64irect_read\x18\x04 \x01(\x08\x12!\n\x19\x61uto_partitioning_support\x18\x05 \x01(\x08\x1a\x93\x01\n\x11TopicReadSettings\x12\x0c\n\x04path\x18\x01 \x01(\t\x12\x15\n\rpartition_ids\x18\x02 \x03(\x03\x12*\n\x07max_lag\x18\x03 \x01(\x0b\x32\x19.google.protobuf.Duration\x12-\n\tread_from\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x1a\"\n\x0cInitResponse\x12\x12\n\nsession_id\x18\x01 \x01(\t\x1a!\n\x0bReadRequest\x12\x12\n\nbytes_size\x18\x01 \x01(\x03\x1a\x91\x06\n\x0cReadResponse\x12O\n\x0epartition_data\x18\x01 \x03(\x0b\x32\x37.Ydb.Topic.StreamReadMessage.ReadResponse.PartitionData\x12\x12\n\nbytes_size\x18\x02 \x01(\x03\x1a\xda\x01\n\x0bMessageData\x12\x0e\n\x06offset\x18\x01 \x01(\x03\x12\x0e\n\x06seq_no\x18\x02 \x01(\x03\x12.\n\ncreated_at\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x0c\n\x04\x64\x61ta\x18\x05 \x01(\x0c\x12\x19\n\x11uncompressed_size\x18\x06 \x01(\x03\x12!\n\x10message_group_id\x18\x07 \x01(\tB\x07\xa2\xe6*\x03\x18\x80\x10\x12/\n\x0emetadata_items\x18\x08 \x03(\x0b\x32\x17.Ydb.Topic.MetadataItem\x1a\xcd\x02\n\x05\x42\x61tch\x12K\n\x0cmessage_data\x18\x01 \x03(\x0b\x32\x35.Ydb.Topic.StreamReadMessage.ReadResponse.MessageData\x12\x1c\n\x0bproducer_id\x18\x02 \x01(\tB\x07\xa2\xe6*\x03\x18\x80\x10\x12\x61\n\x12write_session_meta\x18\x03 \x03(\x0b\x32\x45.Ydb.Topic.StreamReadMessage.ReadResponse.Batch.WriteSessionMetaEntry\x12\r\n\x05\x63odec\x18\x04 \x01(\x05\x12.\n\nwritten_at\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x1a\x37\n\x15WriteSessionMetaEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1ao\n\rPartitionData\x12\x1c\n\x14partition_session_id\x18\x01 \x01(\x03\x12@\n\x07\x62\x61tches\x18\x02 \x03(\x0b\x32/.Ydb.Topic.StreamReadMessage.ReadResponse.Batch\x1a\xd6\x01\n\x13\x43ommitOffsetRequest\x12^\n\x0e\x63ommit_offsets\x18\x01 \x03(\x0b\x32\x46.Ydb.Topic.StreamReadMessage.CommitOffsetRequest.PartitionCommitOffset\x1a_\n\x15PartitionCommitOffset\x12\x1c\n\x14partition_session_id\x18\x01 \x01(\x03\x12(\n\x07offsets\x18\x02 \x03(\x0b\x32\x17.Ydb.Topic.OffsetsRange\x1a\xdc\x01\n\x14\x43ommitOffsetResponse\x12p\n\x1cpartitions_committed_offsets\x18\x01 \x03(\x0b\x32J.Ydb.Topic.StreamReadMessage.CommitOffsetResponse.PartitionCommittedOffset\x1aR\n\x18PartitionCommittedOffset\x12\x1c\n\x14partition_session_id\x18\x01 \x01(\x03\x12\x18\n\x10\x63ommitted_offset\x18\x02 \x01(\x03\x1a=\n\x1dPartitionSessionStatusRequest\x12\x1c\n\x14partition_session_id\x18\x01 \x01(\x03\x1a\xcb\x01\n\x1ePartitionSessionStatusResponse\x12\x1c\n\x14partition_session_id\x18\x01 \x01(\x03\x12\x32\n\x11partition_offsets\x18\x02 \x01(\x0b\x32\x17.Ydb.Topic.OffsetsRange\x12\x18\n\x10\x63ommitted_offset\x18\x03 \x01(\x03\x12=\n\x19write_time_high_watermark\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x1a\xf0\x01\n\x1cStartPartitionSessionRequest\x12H\n\x11partition_session\x18\x01 \x01(\x0b\x32-.Ydb.Topic.StreamReadMessage.PartitionSession\x12\x18\n\x10\x63ommitted_offset\x18\x02 \x01(\x03\x12\x32\n\x11partition_offsets\x18\x03 \x01(\x0b\x32\x17.Ydb.Topic.OffsetsRange\x12\x38\n\x12partition_location\x18\x04 \x01(\x0b\x32\x1c.Ydb.Topic.PartitionLocation\x1a\x95\x01\n\x1dStartPartitionSessionResponse\x12\x1c\n\x14partition_session_id\x18\x01 \x01(\x03\x12\x18\n\x0bread_offset\x18\x02 \x01(\x03H\x00\x88\x01\x01\x12\x1a\n\rcommit_offset\x18\x03 \x01(\x03H\x01\x88\x01\x01\x42\x0e\n\x0c_read_offsetB\x10\n\x0e_commit_offset\x1a\x84\x01\n\x1bStopPartitionSessionRequest\x12\x1c\n\x14partition_session_id\x18\x01 \x01(\x03\x12\x10\n\x08graceful\x18\x02 \x01(\x08\x12\x18\n\x10\x63ommitted_offset\x18\x03 \x01(\x03\x12\x1b\n\x13last_direct_read_id\x18\x04 \x01(\x03\x1aN\n\x1cStopPartitionSessionResponse\x12\x1c\n\x14partition_session_id\x18\x01 \x01(\x03\x12\x10\n\x08graceful\x18\x02 \x01(\x08\x1ap\n\x16UpdatePartitionSession\x12\x1c\n\x14partition_session_id\x18\x01 \x01(\x03\x12\x38\n\x12partition_location\x18\x02 \x01(\x0b\x32\x1c.Ydb.Topic.PartitionLocation\x1a\x45\n\rDirectReadAck\x12\x1c\n\x14partition_session_id\x18\x01 \x01(\x03\x12\x16\n\x0e\x64irect_read_id\x18\x02 \x01(\x03\x1ap\n\x13\x45ndPartitionSession\x12\x1c\n\x14partition_session_id\x18\x01 \x01(\x03\x12\x1e\n\x16\x61\x64jacent_partition_ids\x18\x02 \x03(\x03\x12\x1b\n\x13\x63hild_partition_ids\x18\x03 \x03(\x03\"\xf7\x0c\n\x17StreamDirectReadMessage\x1a\xa8\x02\n\nFromClient\x12\x46\n\x0cinit_request\x18\x01 \x01(\x0b\x32..Ydb.Topic.StreamDirectReadMessage.InitRequestH\x00\x12\x80\x01\n+start_direct_read_partition_session_request\x18\x02 \x01(\x0b\x32I.Ydb.Topic.StreamDirectReadMessage.StartDirectReadPartitionSessionRequestH\x00\x12=\n\x14update_token_request\x18\x03 \x01(\x0b\x32\x1d.Ydb.Topic.UpdateTokenRequestH\x00\x42\x10\n\x0e\x63lient_message\x1a\xca\x04\n\nFromServer\x12)\n\x06status\x18\x01 \x01(\x0e\x32\x19.Ydb.StatusIds.StatusCode\x12\'\n\x06issues\x18\x02 \x03(\x0b\x32\x17.Ydb.Issue.IssueMessage\x12H\n\rinit_response\x18\x06 \x01(\x0b\x32/.Ydb.Topic.StreamDirectReadMessage.InitResponseH\x00\x12\x82\x01\n,start_direct_read_partition_session_response\x18\x07 \x01(\x0b\x32J.Ydb.Topic.StreamDirectReadMessage.StartDirectReadPartitionSessionResponseH\x00\x12o\n\"stop_direct_read_partition_session\x18\x03 \x01(\x0b\x32\x41.Ydb.Topic.StreamDirectReadMessage.StopDirectReadPartitionSessionH\x00\x12U\n\x14\x64irect_read_response\x18\x04 \x01(\x0b\x32\x35.Ydb.Topic.StreamDirectReadMessage.DirectReadResponseH\x00\x12?\n\x15update_token_response\x18\x05 \x01(\x0b\x32\x1e.Ydb.Topic.UpdateTokenResponseH\x00\x42\x10\n\x0eserver_message\x1a\xb6\x01\n\x0bInitRequest\x12\x12\n\nsession_id\x18\x01 \x01(\t\x12^\n\x14topics_read_settings\x18\x02 \x03(\x0b\x32@.Ydb.Topic.StreamDirectReadMessage.InitRequest.TopicReadSettings\x12\x10\n\x08\x63onsumer\x18\x03 \x01(\t\x1a!\n\x11TopicReadSettings\x12\x0c\n\x04path\x18\x01 \x01(\t\x1a\x0e\n\x0cInitResponse\x1aw\n&StartDirectReadPartitionSessionRequest\x12\x1c\n\x14partition_session_id\x18\x01 \x01(\x03\x12\x1b\n\x13last_direct_read_id\x18\x02 \x01(\x03\x12\x12\n\ngeneration\x18\x03 \x01(\x03\x1a[\n\'StartDirectReadPartitionSessionResponse\x12\x1c\n\x14partition_session_id\x18\x01 \x01(\x03\x12\x12\n\ngeneration\x18\x02 \x01(\x03\x1a\xa6\x01\n\x1eStopDirectReadPartitionSession\x12)\n\x06status\x18\x01 \x01(\x0e\x32\x19.Ydb.StatusIds.StatusCode\x12\'\n\x06issues\x18\x02 \x03(\x0b\x32\x17.Ydb.Issue.IssueMessage\x12\x1c\n\x14partition_session_id\x18\x03 \x01(\x03\x12\x12\n\ngeneration\x18\x04 \x01(\x03\x1a\x9b\x01\n\x12\x44irectReadResponse\x12\x1c\n\x14partition_session_id\x18\x01 \x01(\x03\x12\x16\n\x0e\x64irect_read_id\x18\x02 \x01(\x03\x12O\n\x0epartition_data\x18\x03 \x01(\x0b\x32\x37.Ydb.Topic.StreamReadMessage.ReadResponse.PartitionData\"2\n\x13TransactionIdentity\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0f\n\x07session\x18\x02 \x01(\t\"\xc4\x03\n!UpdateOffsetsInTransactionRequest\x12\x39\n\x10operation_params\x18\x01 \x01(\x0b\x32\x1f.Ydb.Operations.OperationParams\x12*\n\x02tx\x18\x02 \x01(\x0b\x32\x1e.Ydb.Topic.TransactionIdentity\x12I\n\x06topics\x18\x03 \x03(\x0b\x32\x39.Ydb.Topic.UpdateOffsetsInTransactionRequest.TopicOffsets\x12\x10\n\x08\x63onsumer\x18\x04 \x01(\t\x1a\xda\x01\n\x0cTopicOffsets\x12\x0c\n\x04path\x18\x01 \x01(\t\x12^\n\npartitions\x18\x02 \x03(\x0b\x32J.Ydb.Topic.UpdateOffsetsInTransactionRequest.TopicOffsets.PartitionOffsets\x1a\\\n\x10PartitionOffsets\x12\x14\n\x0cpartition_id\x18\x01 \x01(\x03\x12\x32\n\x11partition_offsets\x18\x02 \x03(\x0b\x32\x17.Ydb.Topic.OffsetsRange\"R\n\"UpdateOffsetsInTransactionResponse\x12,\n\toperation\x18\x01 \x01(\x0b\x32\x19.Ydb.Operations.Operation\"\"\n UpdateOffsetsInTransactionResult\"\x96\x01\n\x13\x43ommitOffsetRequest\x12\x39\n\x10operation_params\x18\x01 \x01(\x0b\x32\x1f.Ydb.Operations.OperationParams\x12\x0c\n\x04path\x18\x02 \x01(\t\x12\x14\n\x0cpartition_id\x18\x03 \x01(\x03\x12\x10\n\x08\x63onsumer\x18\x04 \x01(\t\x12\x0e\n\x06offset\x18\x05 \x01(\x03\"D\n\x14\x43ommitOffsetResponse\x12,\n\toperation\x18\x01 \x01(\x0b\x32\x19.Ydb.Operations.Operation\"\x14\n\x12\x43ommitOffsetResult\"L\n\x13MultipleWindowsStat\x12\x12\n\nper_minute\x18\x01 \x01(\x03\x12\x10\n\x08per_hour\x18\x02 \x01(\x03\x12\x0f\n\x07per_day\x18\x03 \x01(\x03\"\xb3\x04\n\x08\x43onsumer\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x11\n\timportant\x18\x02 \x01(\x08\x12-\n\tread_from\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x34\n\x10supported_codecs\x18\x05 \x01(\x0b\x32\x1a.Ydb.Topic.SupportedCodecs\x12\x37\n\nattributes\x18\x06 \x03(\x0b\x32#.Ydb.Topic.Consumer.AttributesEntry\x12\x39\n\x0e\x63onsumer_stats\x18\x07 \x01(\x0b\x32!.Ydb.Topic.Consumer.ConsumerStats\x1a\x31\n\x0f\x41ttributesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\xf3\x01\n\rConsumerStats\x12\x41\n\x1dmin_partitions_last_read_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x34\n\x11max_read_time_lag\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x35\n\x12max_write_time_lag\x18\x03 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x32\n\nbytes_read\x18\x04 \x01(\x0b\x32\x1e.Ydb.Topic.MultipleWindowsStatJ\x04\x08\x04\x10\x05\"\xbf\x02\n\rAlterConsumer\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x1a\n\rset_important\x18\x02 \x01(\x08H\x00\x88\x01\x01\x12\x31\n\rset_read_from\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x38\n\x14set_supported_codecs\x18\x05 \x01(\x0b\x32\x1a.Ydb.Topic.SupportedCodecs\x12G\n\x10\x61lter_attributes\x18\x06 \x03(\x0b\x32-.Ydb.Topic.AlterConsumer.AlterAttributesEntry\x1a\x36\n\x14\x41lterAttributesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\x10\n\x0e_set_importantJ\x04\x08\x04\x10\x05\"\xdc\x01\n\x14PartitioningSettings\x12\'\n\x15min_active_partitions\x18\x01 \x01(\x03\x42\x08\xb2\xe6*\x04>= 0\x12\'\n\x15max_active_partitions\x18\x03 \x01(\x03\x42\x08\xb2\xe6*\x04>= 0\x12)\n\x15partition_count_limit\x18\x02 \x01(\x03\x42\n\x18\x01\xb2\xe6*\x04>= 0\x12G\n\x1a\x61uto_partitioning_settings\x18\x04 \x01(\x0b\x32#.Ydb.Topic.AutoPartitioningSettings\"\x9f\x01\n\x18\x41utoPartitioningSettings\x12\x35\n\x08strategy\x18\x01 \x01(\x0e\x32#.Ydb.Topic.AutoPartitioningStrategy\x12L\n\x15partition_write_speed\x18\x02 \x01(\x0b\x32-.Ydb.Topic.AutoPartitioningWriteSpeedStrategy\"\xb3\x01\n\"AutoPartitioningWriteSpeedStrategy\x12\x37\n\x14stabilization_window\x18\x01 \x01(\x0b\x32\x19.google.protobuf.Duration\x12(\n\x16up_utilization_percent\x18\x02 \x01(\x05\x42\x08\xb2\xe6*\x04>= 0\x12*\n\x18\x64own_utilization_percent\x18\x03 \x01(\x05\x42\x08\xb2\xe6*\x04>= 0\"\x8b\x03\n\x19\x41lterPartitioningSettings\x12\x30\n\x19set_min_active_partitions\x18\x01 \x01(\x03\x42\x08\xb2\xe6*\x04>= 0H\x00\x88\x01\x01\x12\x30\n\x19set_max_active_partitions\x18\x03 \x01(\x03\x42\x08\xb2\xe6*\x04>= 0H\x01\x88\x01\x01\x12\x32\n\x19set_partition_count_limit\x18\x02 \x01(\x03\x42\n\x18\x01\xb2\xe6*\x04>= 0H\x02\x88\x01\x01\x12W\n alter_auto_partitioning_settings\x18\x04 \x01(\x0b\x32(.Ydb.Topic.AlterAutoPartitioningSettingsH\x03\x88\x01\x01\x42\x1c\n\x1a_set_min_active_partitionsB\x1c\n\x1a_set_max_active_partitionsB\x1c\n\x1a_set_partition_count_limitB#\n!_alter_auto_partitioning_settings\"\xea\x01\n\x1d\x41lterAutoPartitioningSettings\x12>\n\x0cset_strategy\x18\x01 \x01(\x0e\x32#.Ydb.Topic.AutoPartitioningStrategyH\x00\x88\x01\x01\x12Z\n\x19set_partition_write_speed\x18\x02 \x01(\x0b\x32\x32.Ydb.Topic.AlterAutoPartitioningWriteSpeedStrategyH\x01\x88\x01\x01\x42\x0f\n\r_set_strategyB\x1c\n\x1a_set_partition_write_speed\"\xb0\x02\n\'AlterAutoPartitioningWriteSpeedStrategy\x12@\n\x18set_stabilization_window\x18\x01 \x01(\x0b\x32\x19.google.protobuf.DurationH\x00\x88\x01\x01\x12\x31\n\x1aset_up_utilization_percent\x18\x02 \x01(\x05\x42\x08\xb2\xe6*\x04>= 0H\x01\x88\x01\x01\x12\x33\n\x1cset_down_utilization_percent\x18\x03 \x01(\x05\x42\x08\xb2\xe6*\x04>= 0H\x02\x88\x01\x01\x42\x1b\n\x19_set_stabilization_windowB\x1d\n\x1b_set_up_utilization_percentB\x1f\n\x1d_set_down_utilization_percent\"\xf6\x04\n\x12\x43reateTopicRequest\x12\x39\n\x10operation_params\x18\x01 \x01(\x0b\x32\x1f.Ydb.Operations.OperationParams\x12\x0c\n\x04path\x18\x02 \x01(\t\x12>\n\x15partitioning_settings\x18\x03 \x01(\x0b\x32\x1f.Ydb.Topic.PartitioningSettings\x12\x33\n\x10retention_period\x18\x04 \x01(\x0b\x32\x19.google.protobuf.Duration\x12&\n\x14retention_storage_mb\x18\x05 \x01(\x03\x42\x08\xb2\xe6*\x04>= 0\x12\x34\n\x10supported_codecs\x18\x07 \x01(\x0b\x32\x1a.Ydb.Topic.SupportedCodecs\x12\x38\n&partition_write_speed_bytes_per_second\x18\x08 \x01(\x03\x42\x08\xb2\xe6*\x04>= 0\x12-\n\x1bpartition_write_burst_bytes\x18\t \x01(\x03\x42\x08\xb2\xe6*\x04>= 0\x12\x41\n\nattributes\x18\n \x03(\x0b\x32-.Ydb.Topic.CreateTopicRequest.AttributesEntry\x12/\n\tconsumers\x18\x0b \x03(\x0b\x32\x13.Ydb.Topic.ConsumerB\x07\x9a\xe6*\x03\x18\xb8\x17\x12.\n\rmetering_mode\x18\x0c \x01(\x0e\x32\x17.Ydb.Topic.MeteringMode\x1a\x31\n\x0f\x41ttributesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01J\x04\x08\x06\x10\x07\"C\n\x13\x43reateTopicResponse\x12,\n\toperation\x18\x01 \x01(\x0b\x32\x19.Ydb.Operations.Operation\"\x13\n\x11\x43reateTopicResult\"8\n\x11PartitionLocation\x12\x0f\n\x07node_id\x18\x01 \x01(\x05\x12\x12\n\ngeneration\x18\x02 \x01(\x03\"\x90\x01\n\x14\x44\x65scribeTopicRequest\x12\x39\n\x10operation_params\x18\x01 \x01(\x0b\x32\x1f.Ydb.Operations.OperationParams\x12\x0c\n\x04path\x18\x02 \x01(\t\x12\x15\n\rinclude_stats\x18\x03 \x01(\x08\x12\x18\n\x10include_location\x18\x04 \x01(\x08\"E\n\x15\x44\x65scribeTopicResponse\x12,\n\toperation\x18\x01 \x01(\x0b\x32\x19.Ydb.Operations.Operation\"_\n\x11PartitionKeyRange\x12\x17\n\nfrom_bound\x18\x01 \x01(\x0cH\x00\x88\x01\x01\x12\x15\n\x08to_bound\x18\x02 \x01(\x0cH\x01\x88\x01\x01\x42\r\n\x0b_from_boundB\x0b\n\t_to_bound\"\xfa\t\n\x13\x44\x65scribeTopicResult\x12\x1f\n\x04self\x18\x01 \x01(\x0b\x32\x11.Ydb.Scheme.Entry\x12>\n\x15partitioning_settings\x18\x02 \x01(\x0b\x32\x1f.Ydb.Topic.PartitioningSettings\x12@\n\npartitions\x18\x03 \x03(\x0b\x32,.Ydb.Topic.DescribeTopicResult.PartitionInfo\x12\x33\n\x10retention_period\x18\x04 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x1c\n\x14retention_storage_mb\x18\x05 \x01(\x03\x12\x34\n\x10supported_codecs\x18\x07 \x01(\x0b\x32\x1a.Ydb.Topic.SupportedCodecs\x12.\n&partition_write_speed_bytes_per_second\x18\x08 \x01(\x03\x12\x33\n+partition_total_read_speed_bytes_per_second\x18\x0e \x01(\x03\x12\x36\n.partition_consumer_read_speed_bytes_per_second\x18\x0f \x01(\x03\x12#\n\x1bpartition_write_burst_bytes\x18\t \x01(\x03\x12\x42\n\nattributes\x18\n \x03(\x0b\x32..Ydb.Topic.DescribeTopicResult.AttributesEntry\x12&\n\tconsumers\x18\x0b \x03(\x0b\x32\x13.Ydb.Topic.Consumer\x12.\n\rmetering_mode\x18\x0c \x01(\x0e\x32\x17.Ydb.Topic.MeteringMode\x12>\n\x0btopic_stats\x18\r \x01(\x0b\x32).Ydb.Topic.DescribeTopicResult.TopicStats\x1a\x31\n\x0f\x41ttributesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\x8f\x02\n\rPartitionInfo\x12\x14\n\x0cpartition_id\x18\x01 \x01(\x03\x12\x0e\n\x06\x61\x63tive\x18\x02 \x01(\x08\x12\x1b\n\x13\x63hild_partition_ids\x18\x03 \x03(\x03\x12\x1c\n\x14parent_partition_ids\x18\x04 \x03(\x03\x12\x32\n\x0fpartition_stats\x18\x05 \x01(\x0b\x32\x19.Ydb.Topic.PartitionStats\x12\x38\n\x12partition_location\x18\x06 \x01(\x0b\x32\x1c.Ydb.Topic.PartitionLocation\x12/\n\tkey_range\x18\x07 \x01(\x0b\x32\x1c.Ydb.Topic.PartitionKeyRange\x1a\xcd\x01\n\nTopicStats\x12\x18\n\x10store_size_bytes\x18\x01 \x01(\x03\x12\x37\n\x13min_last_write_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x35\n\x12max_write_time_lag\x18\x03 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x35\n\rbytes_written\x18\x04 \x01(\x0b\x32\x1e.Ydb.Topic.MultipleWindowsStatJ\x04\x08\x06\x10\x07\"\xaa\x01\n\x18\x44\x65scribePartitionRequest\x12\x39\n\x10operation_params\x18\x01 \x01(\x0b\x32\x1f.Ydb.Operations.OperationParams\x12\x0c\n\x04path\x18\x02 \x01(\t\x12\x14\n\x0cpartition_id\x18\x03 \x01(\x03\x12\x15\n\rinclude_stats\x18\x04 \x01(\x08\x12\x18\n\x10include_location\x18\x05 \x01(\x08\"I\n\x19\x44\x65scribePartitionResponse\x12,\n\toperation\x18\x01 \x01(\x0b\x32\x19.Ydb.Operations.Operation\"Z\n\x17\x44\x65scribePartitionResult\x12?\n\tpartition\x18\x01 \x01(\x0b\x32,.Ydb.Topic.DescribeTopicResult.PartitionInfo\"\xa5\x01\n\x17\x44\x65scribeConsumerRequest\x12\x39\n\x10operation_params\x18\x01 \x01(\x0b\x32\x1f.Ydb.Operations.OperationParams\x12\x0c\n\x04path\x18\x02 \x01(\t\x12\x10\n\x08\x63onsumer\x18\x03 \x01(\t\x12\x15\n\rinclude_stats\x18\x04 \x01(\x08\x12\x18\n\x10include_location\x18\x05 \x01(\x08\"H\n\x18\x44\x65scribeConsumerResponse\x12,\n\toperation\x18\x01 \x01(\x0b\x32\x19.Ydb.Operations.Operation\"\x98\x07\n\x16\x44\x65scribeConsumerResult\x12\x1f\n\x04self\x18\x01 \x01(\x0b\x32\x11.Ydb.Scheme.Entry\x12%\n\x08\x63onsumer\x18\x02 \x01(\x0b\x32\x13.Ydb.Topic.Consumer\x12\x43\n\npartitions\x18\x03 \x03(\x0b\x32/.Ydb.Topic.DescribeConsumerResult.PartitionInfo\x1a\xba\x02\n\rPartitionInfo\x12\x14\n\x0cpartition_id\x18\x01 \x01(\x03\x12\x0e\n\x06\x61\x63tive\x18\x02 \x01(\x08\x12\x1b\n\x13\x63hild_partition_ids\x18\x03 \x03(\x03\x12\x1c\n\x14parent_partition_ids\x18\x04 \x03(\x03\x12\x32\n\x0fpartition_stats\x18\x05 \x01(\x0b\x32\x19.Ydb.Topic.PartitionStats\x12Z\n\x18partition_consumer_stats\x18\x06 \x01(\x0b\x32\x38.Ydb.Topic.DescribeConsumerResult.PartitionConsumerStats\x12\x38\n\x12partition_location\x18\x07 \x01(\x0b\x32\x1c.Ydb.Topic.PartitionLocation\x1a\xb3\x03\n\x16PartitionConsumerStats\x12\x18\n\x10last_read_offset\x18\x01 \x01(\x03\x12\x18\n\x10\x63ommitted_offset\x18\x02 \x01(\x03\x12\x17\n\x0fread_session_id\x18\x03 \x01(\t\x12\x46\n\"partition_read_session_create_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x32\n\x0elast_read_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x34\n\x11max_read_time_lag\x18\x06 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x35\n\x12max_write_time_lag\x18\x07 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x32\n\nbytes_read\x18\x08 \x01(\x0b\x32\x1e.Ydb.Topic.MultipleWindowsStat\x12\x13\n\x0breader_name\x18\x0b \x01(\t\x12\x1a\n\x12\x63onnection_node_id\x18\x0c \x01(\x05\"\xa0\x02\n\x0ePartitionStats\x12\x32\n\x11partition_offsets\x18\x01 \x01(\x0b\x32\x17.Ydb.Topic.OffsetsRange\x12\x18\n\x10store_size_bytes\x18\x02 \x01(\x03\x12\x33\n\x0flast_write_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x35\n\x12max_write_time_lag\x18\x04 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x35\n\rbytes_written\x18\x05 \x01(\x0b\x32\x1e.Ydb.Topic.MultipleWindowsStat\x12\x1d\n\x11partition_node_id\x18\x08 \x01(\x05\x42\x02\x18\x01\"\x87\x07\n\x11\x41lterTopicRequest\x12\x39\n\x10operation_params\x18\x01 \x01(\x0b\x32\x1f.Ydb.Operations.OperationParams\x12\x0c\n\x04path\x18\x02 \x01(\t\x12I\n\x1b\x61lter_partitioning_settings\x18\x03 \x01(\x0b\x32$.Ydb.Topic.AlterPartitioningSettings\x12\x37\n\x14set_retention_period\x18\x04 \x01(\x0b\x32\x19.google.protobuf.Duration\x12/\n\x18set_retention_storage_mb\x18\x05 \x01(\x03\x42\x08\xb2\xe6*\x04>= 0H\x00\x88\x01\x01\x12\x38\n\x14set_supported_codecs\x18\x07 \x01(\x0b\x32\x1a.Ydb.Topic.SupportedCodecs\x12\x41\n*set_partition_write_speed_bytes_per_second\x18\x08 \x01(\x03\x42\x08\xb2\xe6*\x04>= 0H\x01\x88\x01\x01\x12\x36\n\x1fset_partition_write_burst_bytes\x18\t \x01(\x03\x42\x08\xb2\xe6*\x04>= 0H\x02\x88\x01\x01\x12K\n\x10\x61lter_attributes\x18\n \x03(\x0b\x32\x31.Ydb.Topic.AlterTopicRequest.AlterAttributesEntry\x12\x33\n\radd_consumers\x18\x0b \x03(\x0b\x32\x13.Ydb.Topic.ConsumerB\x07\x9a\xe6*\x03\x18\xb8\x17\x12\x1f\n\x0e\x64rop_consumers\x18\x0c \x03(\tB\x07\x9a\xe6*\x03\x18\xb8\x17\x12:\n\x0f\x61lter_consumers\x18\r \x03(\x0b\x32\x18.Ydb.Topic.AlterConsumerB\x07\x9a\xe6*\x03\x18\xb8\x17\x12\x32\n\x11set_metering_mode\x18\x0e \x01(\x0e\x32\x17.Ydb.Topic.MeteringMode\x1a\x36\n\x14\x41lterAttributesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\x1b\n\x19_set_retention_storage_mbB-\n+_set_partition_write_speed_bytes_per_secondB\"\n _set_partition_write_burst_bytesJ\x04\x08\x06\x10\x07\"B\n\x12\x41lterTopicResponse\x12,\n\toperation\x18\x01 \x01(\x0b\x32\x19.Ydb.Operations.Operation\"\x12\n\x10\x41lterTopicResult\"[\n\x10\x44ropTopicRequest\x12\x39\n\x10operation_params\x18\x01 \x01(\x0b\x32\x1f.Ydb.Operations.OperationParams\x12\x0c\n\x04path\x18\x02 \x01(\t\"A\n\x11\x44ropTopicResponse\x12,\n\toperation\x18\x01 \x01(\x0b\x32\x19.Ydb.Operations.Operation\"\x11\n\x0f\x44ropTopicResult*\x83\x01\n\x05\x43odec\x12\x15\n\x11\x43ODEC_UNSPECIFIED\x10\x00\x12\r\n\tCODEC_RAW\x10\x01\x12\x0e\n\nCODEC_GZIP\x10\x02\x12\x0e\n\nCODEC_LZOP\x10\x03\x12\x0e\n\nCODEC_ZSTD\x10\x04\x12\x11\n\x0c\x43ODEC_CUSTOM\x10\x90N\"\x05\x08\x05\x10\x8fN\"\n\x08\xa0\x9c\x01\x10\xff\xff\xff\xff\x07*\xf1\x01\n\x18\x41utoPartitioningStrategy\x12*\n&AUTO_PARTITIONING_STRATEGY_UNSPECIFIED\x10\x00\x12\'\n#AUTO_PARTITIONING_STRATEGY_DISABLED\x10\x01\x12\'\n#AUTO_PARTITIONING_STRATEGY_SCALE_UP\x10\x02\x12\x30\n,AUTO_PARTITIONING_STRATEGY_SCALE_UP_AND_DOWN\x10\x03\x12%\n!AUTO_PARTITIONING_STRATEGY_PAUSED\x10\x04*s\n\x0cMeteringMode\x12\x1d\n\x19METERING_MODE_UNSPECIFIED\x10\x00\x12#\n\x1fMETERING_MODE_RESERVED_CAPACITY\x10\x01\x12\x1f\n\x1bMETERING_MODE_REQUEST_UNITS\x10\x02\x42S\n\x14tech.ydb.proto.topicZ8github.com/ydb-platform/ydb-go-genproto/protos/Ydb_Topic\xf8\x01\x01\x62\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'protos.ydb_topic_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\024tech.ydb.proto.topicZ8github.com/ydb-platform/ydb-go-genproto/protos/Ydb_Topic\370\001\001' + _SUPPORTEDCODECS.fields_by_name['codecs']._options = None + _SUPPORTEDCODECS.fields_by_name['codecs']._serialized_options = b'\262\346*\n[1; 19999]\232\346*\002\030d' + _UPDATETOKENREQUEST.fields_by_name['token']._options = None + _UPDATETOKENREQUEST.fields_by_name['token']._serialized_options = b'\270\346*\001' + _STREAMWRITEMESSAGE_INITREQUEST_WRITESESSIONMETAENTRY._options = None + _STREAMWRITEMESSAGE_INITREQUEST_WRITESESSIONMETAENTRY._serialized_options = b'8\001' + _STREAMWRITEMESSAGE_INITREQUEST.fields_by_name['producer_id']._options = None + _STREAMWRITEMESSAGE_INITREQUEST.fields_by_name['producer_id']._serialized_options = b'\242\346*\003\030\200\020' + _STREAMWRITEMESSAGE_INITREQUEST.fields_by_name['message_group_id']._options = None + _STREAMWRITEMESSAGE_INITREQUEST.fields_by_name['message_group_id']._serialized_options = b'\242\346*\003\030\200\020' + _STREAMWRITEMESSAGE_WRITEREQUEST_MESSAGEDATA.fields_by_name['message_group_id']._options = None + _STREAMWRITEMESSAGE_WRITEREQUEST_MESSAGEDATA.fields_by_name['message_group_id']._serialized_options = b'\242\346*\003\030\200\020' + _STREAMWRITEMESSAGE_WRITEREQUEST_MESSAGEDATA.fields_by_name['metadata_items']._options = None + _STREAMWRITEMESSAGE_WRITEREQUEST_MESSAGEDATA.fields_by_name['metadata_items']._serialized_options = b'\232\346*\003\030\350\007' + _STREAMREADMESSAGE_READRESPONSE_MESSAGEDATA.fields_by_name['message_group_id']._options = None + _STREAMREADMESSAGE_READRESPONSE_MESSAGEDATA.fields_by_name['message_group_id']._serialized_options = b'\242\346*\003\030\200\020' + _STREAMREADMESSAGE_READRESPONSE_BATCH_WRITESESSIONMETAENTRY._options = None + _STREAMREADMESSAGE_READRESPONSE_BATCH_WRITESESSIONMETAENTRY._serialized_options = b'8\001' + _STREAMREADMESSAGE_READRESPONSE_BATCH.fields_by_name['producer_id']._options = None + _STREAMREADMESSAGE_READRESPONSE_BATCH.fields_by_name['producer_id']._serialized_options = b'\242\346*\003\030\200\020' + _CONSUMER_ATTRIBUTESENTRY._options = None + _CONSUMER_ATTRIBUTESENTRY._serialized_options = b'8\001' + _ALTERCONSUMER_ALTERATTRIBUTESENTRY._options = None + _ALTERCONSUMER_ALTERATTRIBUTESENTRY._serialized_options = b'8\001' + _PARTITIONINGSETTINGS.fields_by_name['min_active_partitions']._options = None + _PARTITIONINGSETTINGS.fields_by_name['min_active_partitions']._serialized_options = b'\262\346*\004>= 0' + _PARTITIONINGSETTINGS.fields_by_name['max_active_partitions']._options = None + _PARTITIONINGSETTINGS.fields_by_name['max_active_partitions']._serialized_options = b'\262\346*\004>= 0' + _PARTITIONINGSETTINGS.fields_by_name['partition_count_limit']._options = None + _PARTITIONINGSETTINGS.fields_by_name['partition_count_limit']._serialized_options = b'\030\001\262\346*\004>= 0' + _AUTOPARTITIONINGWRITESPEEDSTRATEGY.fields_by_name['up_utilization_percent']._options = None + _AUTOPARTITIONINGWRITESPEEDSTRATEGY.fields_by_name['up_utilization_percent']._serialized_options = b'\262\346*\004>= 0' + _AUTOPARTITIONINGWRITESPEEDSTRATEGY.fields_by_name['down_utilization_percent']._options = None + _AUTOPARTITIONINGWRITESPEEDSTRATEGY.fields_by_name['down_utilization_percent']._serialized_options = b'\262\346*\004>= 0' + _ALTERPARTITIONINGSETTINGS.fields_by_name['set_min_active_partitions']._options = None + _ALTERPARTITIONINGSETTINGS.fields_by_name['set_min_active_partitions']._serialized_options = b'\262\346*\004>= 0' + _ALTERPARTITIONINGSETTINGS.fields_by_name['set_max_active_partitions']._options = None + _ALTERPARTITIONINGSETTINGS.fields_by_name['set_max_active_partitions']._serialized_options = b'\262\346*\004>= 0' + _ALTERPARTITIONINGSETTINGS.fields_by_name['set_partition_count_limit']._options = None + _ALTERPARTITIONINGSETTINGS.fields_by_name['set_partition_count_limit']._serialized_options = b'\030\001\262\346*\004>= 0' + _ALTERAUTOPARTITIONINGWRITESPEEDSTRATEGY.fields_by_name['set_up_utilization_percent']._options = None + _ALTERAUTOPARTITIONINGWRITESPEEDSTRATEGY.fields_by_name['set_up_utilization_percent']._serialized_options = b'\262\346*\004>= 0' + _ALTERAUTOPARTITIONINGWRITESPEEDSTRATEGY.fields_by_name['set_down_utilization_percent']._options = None + _ALTERAUTOPARTITIONINGWRITESPEEDSTRATEGY.fields_by_name['set_down_utilization_percent']._serialized_options = b'\262\346*\004>= 0' + _CREATETOPICREQUEST_ATTRIBUTESENTRY._options = None + _CREATETOPICREQUEST_ATTRIBUTESENTRY._serialized_options = b'8\001' + _CREATETOPICREQUEST.fields_by_name['retention_storage_mb']._options = None + _CREATETOPICREQUEST.fields_by_name['retention_storage_mb']._serialized_options = b'\262\346*\004>= 0' + _CREATETOPICREQUEST.fields_by_name['partition_write_speed_bytes_per_second']._options = None + _CREATETOPICREQUEST.fields_by_name['partition_write_speed_bytes_per_second']._serialized_options = b'\262\346*\004>= 0' + _CREATETOPICREQUEST.fields_by_name['partition_write_burst_bytes']._options = None + _CREATETOPICREQUEST.fields_by_name['partition_write_burst_bytes']._serialized_options = b'\262\346*\004>= 0' + _CREATETOPICREQUEST.fields_by_name['consumers']._options = None + _CREATETOPICREQUEST.fields_by_name['consumers']._serialized_options = b'\232\346*\003\030\270\027' + _DESCRIBETOPICRESULT_ATTRIBUTESENTRY._options = None + _DESCRIBETOPICRESULT_ATTRIBUTESENTRY._serialized_options = b'8\001' + _PARTITIONSTATS.fields_by_name['partition_node_id']._options = None + _PARTITIONSTATS.fields_by_name['partition_node_id']._serialized_options = b'\030\001' + _ALTERTOPICREQUEST_ALTERATTRIBUTESENTRY._options = None + _ALTERTOPICREQUEST_ALTERATTRIBUTESENTRY._serialized_options = b'8\001' + _ALTERTOPICREQUEST.fields_by_name['set_retention_storage_mb']._options = None + _ALTERTOPICREQUEST.fields_by_name['set_retention_storage_mb']._serialized_options = b'\262\346*\004>= 0' + _ALTERTOPICREQUEST.fields_by_name['set_partition_write_speed_bytes_per_second']._options = None + _ALTERTOPICREQUEST.fields_by_name['set_partition_write_speed_bytes_per_second']._serialized_options = b'\262\346*\004>= 0' + _ALTERTOPICREQUEST.fields_by_name['set_partition_write_burst_bytes']._options = None + _ALTERTOPICREQUEST.fields_by_name['set_partition_write_burst_bytes']._serialized_options = b'\262\346*\004>= 0' + _ALTERTOPICREQUEST.fields_by_name['add_consumers']._options = None + _ALTERTOPICREQUEST.fields_by_name['add_consumers']._serialized_options = b'\232\346*\003\030\270\027' + _ALTERTOPICREQUEST.fields_by_name['drop_consumers']._options = None + _ALTERTOPICREQUEST.fields_by_name['drop_consumers']._serialized_options = b'\232\346*\003\030\270\027' + _ALTERTOPICREQUEST.fields_by_name['alter_consumers']._options = None + _ALTERTOPICREQUEST.fields_by_name['alter_consumers']._serialized_options = b'\232\346*\003\030\270\027' + _CODEC._serialized_start=18023 + _CODEC._serialized_end=18154 + _AUTOPARTITIONINGSTRATEGY._serialized_start=18157 + _AUTOPARTITIONINGSTRATEGY._serialized_end=18398 + _METERINGMODE._serialized_start=18400 + _METERINGMODE._serialized_end=18515 + _SUPPORTEDCODECS._serialized_start=291 + _SUPPORTEDCODECS._serialized_end=346 + _OFFSETSRANGE._serialized_start=348 + _OFFSETSRANGE._serialized_end=390 + _UPDATETOKENREQUEST._serialized_start=392 + _UPDATETOKENREQUEST._serialized_end=433 + _UPDATETOKENRESPONSE._serialized_start=435 + _UPDATETOKENRESPONSE._serialized_end=456 + _PARTITIONWITHGENERATION._serialized_start=458 + _PARTITIONWITHGENERATION._serialized_end=525 + _METADATAITEM._serialized_start=527 + _METADATAITEM._serialized_end=569 + _STREAMWRITEMESSAGE._serialized_start=572 + _STREAMWRITEMESSAGE._serialized_end=3162 + _STREAMWRITEMESSAGE_FROMCLIENT._serialized_start=595 + _STREAMWRITEMESSAGE_FROMCLIENT._serialized_end=824 + _STREAMWRITEMESSAGE_FROMSERVER._serialized_start=827 + _STREAMWRITEMESSAGE_FROMSERVER._serialized_end=1146 + _STREAMWRITEMESSAGE_INITREQUEST._serialized_start=1149 + _STREAMWRITEMESSAGE_INITREQUEST._serialized_end=1531 + _STREAMWRITEMESSAGE_INITREQUEST_WRITESESSIONMETAENTRY._serialized_start=1460 + _STREAMWRITEMESSAGE_INITREQUEST_WRITESESSIONMETAENTRY._serialized_end=1515 + _STREAMWRITEMESSAGE_INITRESPONSE._serialized_start=1534 + _STREAMWRITEMESSAGE_INITRESPONSE._serialized_end=1665 + _STREAMWRITEMESSAGE_WRITEREQUEST._serialized_start=1668 + _STREAMWRITEMESSAGE_WRITEREQUEST._serialized_end=2156 + _STREAMWRITEMESSAGE_WRITEREQUEST_MESSAGEDATA._serialized_start=1823 + _STREAMWRITEMESSAGE_WRITEREQUEST_MESSAGEDATA._serialized_end=2149 + _STREAMWRITEMESSAGE_WRITERESPONSE._serialized_start=2159 + _STREAMWRITEMESSAGE_WRITERESPONSE._serialized_end=3162 + _STREAMWRITEMESSAGE_WRITERESPONSE_WRITEACK._serialized_start=2354 + _STREAMWRITEMESSAGE_WRITERESPONSE_WRITEACK._serialized_end=2858 + _STREAMWRITEMESSAGE_WRITERESPONSE_WRITEACK_WRITTEN._serialized_start=2635 + _STREAMWRITEMESSAGE_WRITERESPONSE_WRITEACK_WRITTEN._serialized_end=2660 + _STREAMWRITEMESSAGE_WRITERESPONSE_WRITEACK_SKIPPED._serialized_start=2663 + _STREAMWRITEMESSAGE_WRITERESPONSE_WRITEACK_SKIPPED._serialized_end=2819 + _STREAMWRITEMESSAGE_WRITERESPONSE_WRITEACK_SKIPPED_REASON._serialized_start=2759 + _STREAMWRITEMESSAGE_WRITERESPONSE_WRITEACK_SKIPPED_REASON._serialized_end=2819 + _STREAMWRITEMESSAGE_WRITERESPONSE_WRITEACK_WRITTENINTX._serialized_start=2821 + _STREAMWRITEMESSAGE_WRITERESPONSE_WRITEACK_WRITTENINTX._serialized_end=2834 + _STREAMWRITEMESSAGE_WRITERESPONSE_WRITESTATISTICS._serialized_start=2861 + _STREAMWRITEMESSAGE_WRITERESPONSE_WRITESTATISTICS._serialized_end=3162 + _STREAMREADMESSAGE._serialized_start=3165 + _STREAMREADMESSAGE._serialized_end=7673 + _STREAMREADMESSAGE_PARTITIONSESSION._serialized_start=3186 + _STREAMREADMESSAGE_PARTITIONSESSION._serialized_end=3270 + _STREAMREADMESSAGE_FROMCLIENT._serialized_start=3273 + _STREAMREADMESSAGE_FROMCLIENT._serialized_end=3962 + _STREAMREADMESSAGE_FROMSERVER._serialized_start=3965 + _STREAMREADMESSAGE_FROMSERVER._serialized_end=4845 + _STREAMREADMESSAGE_INITREQUEST._serialized_start=4848 + _STREAMREADMESSAGE_INITREQUEST._serialized_end=5196 + _STREAMREADMESSAGE_INITREQUEST_TOPICREADSETTINGS._serialized_start=5049 + _STREAMREADMESSAGE_INITREQUEST_TOPICREADSETTINGS._serialized_end=5196 + _STREAMREADMESSAGE_INITRESPONSE._serialized_start=5198 + _STREAMREADMESSAGE_INITRESPONSE._serialized_end=5232 + _STREAMREADMESSAGE_READREQUEST._serialized_start=5234 + _STREAMREADMESSAGE_READREQUEST._serialized_end=5267 + _STREAMREADMESSAGE_READRESPONSE._serialized_start=5270 + _STREAMREADMESSAGE_READRESPONSE._serialized_end=6055 + _STREAMREADMESSAGE_READRESPONSE_MESSAGEDATA._serialized_start=5388 + _STREAMREADMESSAGE_READRESPONSE_MESSAGEDATA._serialized_end=5606 + _STREAMREADMESSAGE_READRESPONSE_BATCH._serialized_start=5609 + _STREAMREADMESSAGE_READRESPONSE_BATCH._serialized_end=5942 + _STREAMREADMESSAGE_READRESPONSE_BATCH_WRITESESSIONMETAENTRY._serialized_start=1460 + _STREAMREADMESSAGE_READRESPONSE_BATCH_WRITESESSIONMETAENTRY._serialized_end=1515 + _STREAMREADMESSAGE_READRESPONSE_PARTITIONDATA._serialized_start=5944 + _STREAMREADMESSAGE_READRESPONSE_PARTITIONDATA._serialized_end=6055 + _STREAMREADMESSAGE_COMMITOFFSETREQUEST._serialized_start=6058 + _STREAMREADMESSAGE_COMMITOFFSETREQUEST._serialized_end=6272 + _STREAMREADMESSAGE_COMMITOFFSETREQUEST_PARTITIONCOMMITOFFSET._serialized_start=6177 + _STREAMREADMESSAGE_COMMITOFFSETREQUEST_PARTITIONCOMMITOFFSET._serialized_end=6272 + _STREAMREADMESSAGE_COMMITOFFSETRESPONSE._serialized_start=6275 + _STREAMREADMESSAGE_COMMITOFFSETRESPONSE._serialized_end=6495 + _STREAMREADMESSAGE_COMMITOFFSETRESPONSE_PARTITIONCOMMITTEDOFFSET._serialized_start=6413 + _STREAMREADMESSAGE_COMMITOFFSETRESPONSE_PARTITIONCOMMITTEDOFFSET._serialized_end=6495 + _STREAMREADMESSAGE_PARTITIONSESSIONSTATUSREQUEST._serialized_start=6497 + _STREAMREADMESSAGE_PARTITIONSESSIONSTATUSREQUEST._serialized_end=6558 + _STREAMREADMESSAGE_PARTITIONSESSIONSTATUSRESPONSE._serialized_start=6561 + _STREAMREADMESSAGE_PARTITIONSESSIONSTATUSRESPONSE._serialized_end=6764 + _STREAMREADMESSAGE_STARTPARTITIONSESSIONREQUEST._serialized_start=6767 + _STREAMREADMESSAGE_STARTPARTITIONSESSIONREQUEST._serialized_end=7007 + _STREAMREADMESSAGE_STARTPARTITIONSESSIONRESPONSE._serialized_start=7010 + _STREAMREADMESSAGE_STARTPARTITIONSESSIONRESPONSE._serialized_end=7159 + _STREAMREADMESSAGE_STOPPARTITIONSESSIONREQUEST._serialized_start=7162 + _STREAMREADMESSAGE_STOPPARTITIONSESSIONREQUEST._serialized_end=7294 + _STREAMREADMESSAGE_STOPPARTITIONSESSIONRESPONSE._serialized_start=7296 + _STREAMREADMESSAGE_STOPPARTITIONSESSIONRESPONSE._serialized_end=7374 + _STREAMREADMESSAGE_UPDATEPARTITIONSESSION._serialized_start=7376 + _STREAMREADMESSAGE_UPDATEPARTITIONSESSION._serialized_end=7488 + _STREAMREADMESSAGE_DIRECTREADACK._serialized_start=7490 + _STREAMREADMESSAGE_DIRECTREADACK._serialized_end=7559 + _STREAMREADMESSAGE_ENDPARTITIONSESSION._serialized_start=7561 + _STREAMREADMESSAGE_ENDPARTITIONSESSION._serialized_end=7673 + _STREAMDIRECTREADMESSAGE._serialized_start=7676 + _STREAMDIRECTREADMESSAGE._serialized_end=9331 + _STREAMDIRECTREADMESSAGE_FROMCLIENT._serialized_start=7704 + _STREAMDIRECTREADMESSAGE_FROMCLIENT._serialized_end=8000 + _STREAMDIRECTREADMESSAGE_FROMSERVER._serialized_start=8003 + _STREAMDIRECTREADMESSAGE_FROMSERVER._serialized_end=8589 + _STREAMDIRECTREADMESSAGE_INITREQUEST._serialized_start=8592 + _STREAMDIRECTREADMESSAGE_INITREQUEST._serialized_end=8774 + _STREAMDIRECTREADMESSAGE_INITREQUEST_TOPICREADSETTINGS._serialized_start=5049 + _STREAMDIRECTREADMESSAGE_INITREQUEST_TOPICREADSETTINGS._serialized_end=5082 + _STREAMDIRECTREADMESSAGE_INITRESPONSE._serialized_start=1534 + _STREAMDIRECTREADMESSAGE_INITRESPONSE._serialized_end=1548 + _STREAMDIRECTREADMESSAGE_STARTDIRECTREADPARTITIONSESSIONREQUEST._serialized_start=8792 + _STREAMDIRECTREADMESSAGE_STARTDIRECTREADPARTITIONSESSIONREQUEST._serialized_end=8911 + _STREAMDIRECTREADMESSAGE_STARTDIRECTREADPARTITIONSESSIONRESPONSE._serialized_start=8913 + _STREAMDIRECTREADMESSAGE_STARTDIRECTREADPARTITIONSESSIONRESPONSE._serialized_end=9004 + _STREAMDIRECTREADMESSAGE_STOPDIRECTREADPARTITIONSESSION._serialized_start=9007 + _STREAMDIRECTREADMESSAGE_STOPDIRECTREADPARTITIONSESSION._serialized_end=9173 + _STREAMDIRECTREADMESSAGE_DIRECTREADRESPONSE._serialized_start=9176 + _STREAMDIRECTREADMESSAGE_DIRECTREADRESPONSE._serialized_end=9331 + _TRANSACTIONIDENTITY._serialized_start=9333 + _TRANSACTIONIDENTITY._serialized_end=9383 + _UPDATEOFFSETSINTRANSACTIONREQUEST._serialized_start=9386 + _UPDATEOFFSETSINTRANSACTIONREQUEST._serialized_end=9838 + _UPDATEOFFSETSINTRANSACTIONREQUEST_TOPICOFFSETS._serialized_start=9620 + _UPDATEOFFSETSINTRANSACTIONREQUEST_TOPICOFFSETS._serialized_end=9838 + _UPDATEOFFSETSINTRANSACTIONREQUEST_TOPICOFFSETS_PARTITIONOFFSETS._serialized_start=9746 + _UPDATEOFFSETSINTRANSACTIONREQUEST_TOPICOFFSETS_PARTITIONOFFSETS._serialized_end=9838 + _UPDATEOFFSETSINTRANSACTIONRESPONSE._serialized_start=9840 + _UPDATEOFFSETSINTRANSACTIONRESPONSE._serialized_end=9922 + _UPDATEOFFSETSINTRANSACTIONRESULT._serialized_start=9924 + _UPDATEOFFSETSINTRANSACTIONRESULT._serialized_end=9958 + _COMMITOFFSETREQUEST._serialized_start=9961 + _COMMITOFFSETREQUEST._serialized_end=10111 + _COMMITOFFSETRESPONSE._serialized_start=10113 + _COMMITOFFSETRESPONSE._serialized_end=10181 + _COMMITOFFSETRESULT._serialized_start=10183 + _COMMITOFFSETRESULT._serialized_end=10203 + _MULTIPLEWINDOWSSTAT._serialized_start=10205 + _MULTIPLEWINDOWSSTAT._serialized_end=10281 + _CONSUMER._serialized_start=10284 + _CONSUMER._serialized_end=10847 + _CONSUMER_ATTRIBUTESENTRY._serialized_start=10546 + _CONSUMER_ATTRIBUTESENTRY._serialized_end=10595 + _CONSUMER_CONSUMERSTATS._serialized_start=10598 + _CONSUMER_CONSUMERSTATS._serialized_end=10841 + _ALTERCONSUMER._serialized_start=10850 + _ALTERCONSUMER._serialized_end=11169 + _ALTERCONSUMER_ALTERATTRIBUTESENTRY._serialized_start=11091 + _ALTERCONSUMER_ALTERATTRIBUTESENTRY._serialized_end=11145 + _PARTITIONINGSETTINGS._serialized_start=11172 + _PARTITIONINGSETTINGS._serialized_end=11392 + _AUTOPARTITIONINGSETTINGS._serialized_start=11395 + _AUTOPARTITIONINGSETTINGS._serialized_end=11554 + _AUTOPARTITIONINGWRITESPEEDSTRATEGY._serialized_start=11557 + _AUTOPARTITIONINGWRITESPEEDSTRATEGY._serialized_end=11736 + _ALTERPARTITIONINGSETTINGS._serialized_start=11739 + _ALTERPARTITIONINGSETTINGS._serialized_end=12134 + _ALTERAUTOPARTITIONINGSETTINGS._serialized_start=12137 + _ALTERAUTOPARTITIONINGSETTINGS._serialized_end=12371 + _ALTERAUTOPARTITIONINGWRITESPEEDSTRATEGY._serialized_start=12374 + _ALTERAUTOPARTITIONINGWRITESPEEDSTRATEGY._serialized_end=12678 + _CREATETOPICREQUEST._serialized_start=12681 + _CREATETOPICREQUEST._serialized_end=13311 + _CREATETOPICREQUEST_ATTRIBUTESENTRY._serialized_start=10546 + _CREATETOPICREQUEST_ATTRIBUTESENTRY._serialized_end=10595 + _CREATETOPICRESPONSE._serialized_start=13313 + _CREATETOPICRESPONSE._serialized_end=13380 + _CREATETOPICRESULT._serialized_start=13382 + _CREATETOPICRESULT._serialized_end=13401 + _PARTITIONLOCATION._serialized_start=13403 + _PARTITIONLOCATION._serialized_end=13459 + _DESCRIBETOPICREQUEST._serialized_start=13462 + _DESCRIBETOPICREQUEST._serialized_end=13606 + _DESCRIBETOPICRESPONSE._serialized_start=13608 + _DESCRIBETOPICRESPONSE._serialized_end=13677 + _PARTITIONKEYRANGE._serialized_start=13679 + _PARTITIONKEYRANGE._serialized_end=13774 + _DESCRIBETOPICRESULT._serialized_start=13777 + _DESCRIBETOPICRESULT._serialized_end=15051 + _DESCRIBETOPICRESULT_ATTRIBUTESENTRY._serialized_start=10546 + _DESCRIBETOPICRESULT_ATTRIBUTESENTRY._serialized_end=10595 + _DESCRIBETOPICRESULT_PARTITIONINFO._serialized_start=14566 + _DESCRIBETOPICRESULT_PARTITIONINFO._serialized_end=14837 + _DESCRIBETOPICRESULT_TOPICSTATS._serialized_start=14840 + _DESCRIBETOPICRESULT_TOPICSTATS._serialized_end=15045 + _DESCRIBEPARTITIONREQUEST._serialized_start=15054 + _DESCRIBEPARTITIONREQUEST._serialized_end=15224 + _DESCRIBEPARTITIONRESPONSE._serialized_start=15226 + _DESCRIBEPARTITIONRESPONSE._serialized_end=15299 + _DESCRIBEPARTITIONRESULT._serialized_start=15301 + _DESCRIBEPARTITIONRESULT._serialized_end=15391 + _DESCRIBECONSUMERREQUEST._serialized_start=15394 + _DESCRIBECONSUMERREQUEST._serialized_end=15559 + _DESCRIBECONSUMERRESPONSE._serialized_start=15561 + _DESCRIBECONSUMERRESPONSE._serialized_end=15633 + _DESCRIBECONSUMERRESULT._serialized_start=15636 + _DESCRIBECONSUMERRESULT._serialized_end=16556 + _DESCRIBECONSUMERRESULT_PARTITIONINFO._serialized_start=15804 + _DESCRIBECONSUMERRESULT_PARTITIONINFO._serialized_end=16118 + _DESCRIBECONSUMERRESULT_PARTITIONCONSUMERSTATS._serialized_start=16121 + _DESCRIBECONSUMERRESULT_PARTITIONCONSUMERSTATS._serialized_end=16556 + _PARTITIONSTATS._serialized_start=16559 + _PARTITIONSTATS._serialized_end=16847 + _ALTERTOPICREQUEST._serialized_start=16850 + _ALTERTOPICREQUEST._serialized_end=17753 + _ALTERTOPICREQUEST_ALTERATTRIBUTESENTRY._serialized_start=11091 + _ALTERTOPICREQUEST_ALTERATTRIBUTESENTRY._serialized_end=11145 + _ALTERTOPICRESPONSE._serialized_start=17755 + _ALTERTOPICRESPONSE._serialized_end=17821 + _ALTERTOPICRESULT._serialized_start=17823 + _ALTERTOPICRESULT._serialized_end=17841 + _DROPTOPICREQUEST._serialized_start=17843 + _DROPTOPICREQUEST._serialized_end=17934 + _DROPTOPICRESPONSE._serialized_start=17936 + _DROPTOPICRESPONSE._serialized_end=18001 + _DROPTOPICRESULT._serialized_start=18003 + _DROPTOPICRESULT._serialized_end=18020 +# @@protoc_insertion_point(module_scope) diff --git a/ydb/_grpc/v5/protos/ydb_topic_pb2.pyi b/ydb/_grpc/v5/protos/ydb_topic_pb2.pyi new file mode 100644 index 00000000..58e2156e --- /dev/null +++ b/ydb/_grpc/v5/protos/ydb_topic_pb2.pyi @@ -0,0 +1,1057 @@ +from protos import ydb_operation_pb2 as _ydb_operation_pb2 +from protos import ydb_scheme_pb2 as _ydb_scheme_pb2 +from protos import ydb_status_codes_pb2 as _ydb_status_codes_pb2 +from protos import ydb_issue_message_pb2 as _ydb_issue_message_pb2 +from protos.annotations import sensitive_pb2 as _sensitive_pb2 +from protos.annotations import validation_pb2 as _validation_pb2 +from google.protobuf import duration_pb2 as _duration_pb2 +from google.protobuf import timestamp_pb2 as _timestamp_pb2 +from google.protobuf.internal import containers as _containers +from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union + +AUTO_PARTITIONING_STRATEGY_DISABLED: AutoPartitioningStrategy +AUTO_PARTITIONING_STRATEGY_PAUSED: AutoPartitioningStrategy +AUTO_PARTITIONING_STRATEGY_SCALE_UP: AutoPartitioningStrategy +AUTO_PARTITIONING_STRATEGY_SCALE_UP_AND_DOWN: AutoPartitioningStrategy +AUTO_PARTITIONING_STRATEGY_UNSPECIFIED: AutoPartitioningStrategy +CODEC_CUSTOM: Codec +CODEC_GZIP: Codec +CODEC_LZOP: Codec +CODEC_RAW: Codec +CODEC_UNSPECIFIED: Codec +CODEC_ZSTD: Codec +DESCRIPTOR: _descriptor.FileDescriptor +METERING_MODE_REQUEST_UNITS: MeteringMode +METERING_MODE_RESERVED_CAPACITY: MeteringMode +METERING_MODE_UNSPECIFIED: MeteringMode + +class AlterAutoPartitioningSettings(_message.Message): + __slots__ = ["set_partition_write_speed", "set_strategy"] + SET_PARTITION_WRITE_SPEED_FIELD_NUMBER: _ClassVar[int] + SET_STRATEGY_FIELD_NUMBER: _ClassVar[int] + set_partition_write_speed: AlterAutoPartitioningWriteSpeedStrategy + set_strategy: AutoPartitioningStrategy + def __init__(self, set_strategy: _Optional[_Union[AutoPartitioningStrategy, str]] = ..., set_partition_write_speed: _Optional[_Union[AlterAutoPartitioningWriteSpeedStrategy, _Mapping]] = ...) -> None: ... + +class AlterAutoPartitioningWriteSpeedStrategy(_message.Message): + __slots__ = ["set_down_utilization_percent", "set_stabilization_window", "set_up_utilization_percent"] + SET_DOWN_UTILIZATION_PERCENT_FIELD_NUMBER: _ClassVar[int] + SET_STABILIZATION_WINDOW_FIELD_NUMBER: _ClassVar[int] + SET_UP_UTILIZATION_PERCENT_FIELD_NUMBER: _ClassVar[int] + set_down_utilization_percent: int + set_stabilization_window: _duration_pb2.Duration + set_up_utilization_percent: int + def __init__(self, set_stabilization_window: _Optional[_Union[_duration_pb2.Duration, _Mapping]] = ..., set_up_utilization_percent: _Optional[int] = ..., set_down_utilization_percent: _Optional[int] = ...) -> None: ... + +class AlterConsumer(_message.Message): + __slots__ = ["alter_attributes", "name", "set_important", "set_read_from", "set_supported_codecs"] + class AlterAttributesEntry(_message.Message): + __slots__ = ["key", "value"] + KEY_FIELD_NUMBER: _ClassVar[int] + VALUE_FIELD_NUMBER: _ClassVar[int] + key: str + value: str + def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ... + ALTER_ATTRIBUTES_FIELD_NUMBER: _ClassVar[int] + NAME_FIELD_NUMBER: _ClassVar[int] + SET_IMPORTANT_FIELD_NUMBER: _ClassVar[int] + SET_READ_FROM_FIELD_NUMBER: _ClassVar[int] + SET_SUPPORTED_CODECS_FIELD_NUMBER: _ClassVar[int] + alter_attributes: _containers.ScalarMap[str, str] + name: str + set_important: bool + set_read_from: _timestamp_pb2.Timestamp + set_supported_codecs: SupportedCodecs + def __init__(self, name: _Optional[str] = ..., set_important: bool = ..., set_read_from: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., set_supported_codecs: _Optional[_Union[SupportedCodecs, _Mapping]] = ..., alter_attributes: _Optional[_Mapping[str, str]] = ...) -> None: ... + +class AlterPartitioningSettings(_message.Message): + __slots__ = ["alter_auto_partitioning_settings", "set_max_active_partitions", "set_min_active_partitions", "set_partition_count_limit"] + ALTER_AUTO_PARTITIONING_SETTINGS_FIELD_NUMBER: _ClassVar[int] + SET_MAX_ACTIVE_PARTITIONS_FIELD_NUMBER: _ClassVar[int] + SET_MIN_ACTIVE_PARTITIONS_FIELD_NUMBER: _ClassVar[int] + SET_PARTITION_COUNT_LIMIT_FIELD_NUMBER: _ClassVar[int] + alter_auto_partitioning_settings: AlterAutoPartitioningSettings + set_max_active_partitions: int + set_min_active_partitions: int + set_partition_count_limit: int + def __init__(self, set_min_active_partitions: _Optional[int] = ..., set_max_active_partitions: _Optional[int] = ..., set_partition_count_limit: _Optional[int] = ..., alter_auto_partitioning_settings: _Optional[_Union[AlterAutoPartitioningSettings, _Mapping]] = ...) -> None: ... + +class AlterTopicRequest(_message.Message): + __slots__ = ["add_consumers", "alter_attributes", "alter_consumers", "alter_partitioning_settings", "drop_consumers", "operation_params", "path", "set_metering_mode", "set_partition_write_burst_bytes", "set_partition_write_speed_bytes_per_second", "set_retention_period", "set_retention_storage_mb", "set_supported_codecs"] + class AlterAttributesEntry(_message.Message): + __slots__ = ["key", "value"] + KEY_FIELD_NUMBER: _ClassVar[int] + VALUE_FIELD_NUMBER: _ClassVar[int] + key: str + value: str + def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ... + ADD_CONSUMERS_FIELD_NUMBER: _ClassVar[int] + ALTER_ATTRIBUTES_FIELD_NUMBER: _ClassVar[int] + ALTER_CONSUMERS_FIELD_NUMBER: _ClassVar[int] + ALTER_PARTITIONING_SETTINGS_FIELD_NUMBER: _ClassVar[int] + DROP_CONSUMERS_FIELD_NUMBER: _ClassVar[int] + OPERATION_PARAMS_FIELD_NUMBER: _ClassVar[int] + PATH_FIELD_NUMBER: _ClassVar[int] + SET_METERING_MODE_FIELD_NUMBER: _ClassVar[int] + SET_PARTITION_WRITE_BURST_BYTES_FIELD_NUMBER: _ClassVar[int] + SET_PARTITION_WRITE_SPEED_BYTES_PER_SECOND_FIELD_NUMBER: _ClassVar[int] + SET_RETENTION_PERIOD_FIELD_NUMBER: _ClassVar[int] + SET_RETENTION_STORAGE_MB_FIELD_NUMBER: _ClassVar[int] + SET_SUPPORTED_CODECS_FIELD_NUMBER: _ClassVar[int] + add_consumers: _containers.RepeatedCompositeFieldContainer[Consumer] + alter_attributes: _containers.ScalarMap[str, str] + alter_consumers: _containers.RepeatedCompositeFieldContainer[AlterConsumer] + alter_partitioning_settings: AlterPartitioningSettings + drop_consumers: _containers.RepeatedScalarFieldContainer[str] + operation_params: _ydb_operation_pb2.OperationParams + path: str + set_metering_mode: MeteringMode + set_partition_write_burst_bytes: int + set_partition_write_speed_bytes_per_second: int + set_retention_period: _duration_pb2.Duration + set_retention_storage_mb: int + set_supported_codecs: SupportedCodecs + def __init__(self, operation_params: _Optional[_Union[_ydb_operation_pb2.OperationParams, _Mapping]] = ..., path: _Optional[str] = ..., alter_partitioning_settings: _Optional[_Union[AlterPartitioningSettings, _Mapping]] = ..., set_retention_period: _Optional[_Union[_duration_pb2.Duration, _Mapping]] = ..., set_retention_storage_mb: _Optional[int] = ..., set_supported_codecs: _Optional[_Union[SupportedCodecs, _Mapping]] = ..., set_partition_write_speed_bytes_per_second: _Optional[int] = ..., set_partition_write_burst_bytes: _Optional[int] = ..., alter_attributes: _Optional[_Mapping[str, str]] = ..., add_consumers: _Optional[_Iterable[_Union[Consumer, _Mapping]]] = ..., drop_consumers: _Optional[_Iterable[str]] = ..., alter_consumers: _Optional[_Iterable[_Union[AlterConsumer, _Mapping]]] = ..., set_metering_mode: _Optional[_Union[MeteringMode, str]] = ...) -> None: ... + +class AlterTopicResponse(_message.Message): + __slots__ = ["operation"] + OPERATION_FIELD_NUMBER: _ClassVar[int] + operation: _ydb_operation_pb2.Operation + def __init__(self, operation: _Optional[_Union[_ydb_operation_pb2.Operation, _Mapping]] = ...) -> None: ... + +class AlterTopicResult(_message.Message): + __slots__ = [] + def __init__(self) -> None: ... + +class AutoPartitioningSettings(_message.Message): + __slots__ = ["partition_write_speed", "strategy"] + PARTITION_WRITE_SPEED_FIELD_NUMBER: _ClassVar[int] + STRATEGY_FIELD_NUMBER: _ClassVar[int] + partition_write_speed: AutoPartitioningWriteSpeedStrategy + strategy: AutoPartitioningStrategy + def __init__(self, strategy: _Optional[_Union[AutoPartitioningStrategy, str]] = ..., partition_write_speed: _Optional[_Union[AutoPartitioningWriteSpeedStrategy, _Mapping]] = ...) -> None: ... + +class AutoPartitioningWriteSpeedStrategy(_message.Message): + __slots__ = ["down_utilization_percent", "stabilization_window", "up_utilization_percent"] + DOWN_UTILIZATION_PERCENT_FIELD_NUMBER: _ClassVar[int] + STABILIZATION_WINDOW_FIELD_NUMBER: _ClassVar[int] + UP_UTILIZATION_PERCENT_FIELD_NUMBER: _ClassVar[int] + down_utilization_percent: int + stabilization_window: _duration_pb2.Duration + up_utilization_percent: int + def __init__(self, stabilization_window: _Optional[_Union[_duration_pb2.Duration, _Mapping]] = ..., up_utilization_percent: _Optional[int] = ..., down_utilization_percent: _Optional[int] = ...) -> None: ... + +class CommitOffsetRequest(_message.Message): + __slots__ = ["consumer", "offset", "operation_params", "partition_id", "path"] + CONSUMER_FIELD_NUMBER: _ClassVar[int] + OFFSET_FIELD_NUMBER: _ClassVar[int] + OPERATION_PARAMS_FIELD_NUMBER: _ClassVar[int] + PARTITION_ID_FIELD_NUMBER: _ClassVar[int] + PATH_FIELD_NUMBER: _ClassVar[int] + consumer: str + offset: int + operation_params: _ydb_operation_pb2.OperationParams + partition_id: int + path: str + def __init__(self, operation_params: _Optional[_Union[_ydb_operation_pb2.OperationParams, _Mapping]] = ..., path: _Optional[str] = ..., partition_id: _Optional[int] = ..., consumer: _Optional[str] = ..., offset: _Optional[int] = ...) -> None: ... + +class CommitOffsetResponse(_message.Message): + __slots__ = ["operation"] + OPERATION_FIELD_NUMBER: _ClassVar[int] + operation: _ydb_operation_pb2.Operation + def __init__(self, operation: _Optional[_Union[_ydb_operation_pb2.Operation, _Mapping]] = ...) -> None: ... + +class CommitOffsetResult(_message.Message): + __slots__ = [] + def __init__(self) -> None: ... + +class Consumer(_message.Message): + __slots__ = ["attributes", "consumer_stats", "important", "name", "read_from", "supported_codecs"] + class AttributesEntry(_message.Message): + __slots__ = ["key", "value"] + KEY_FIELD_NUMBER: _ClassVar[int] + VALUE_FIELD_NUMBER: _ClassVar[int] + key: str + value: str + def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ... + class ConsumerStats(_message.Message): + __slots__ = ["bytes_read", "max_read_time_lag", "max_write_time_lag", "min_partitions_last_read_time"] + BYTES_READ_FIELD_NUMBER: _ClassVar[int] + MAX_READ_TIME_LAG_FIELD_NUMBER: _ClassVar[int] + MAX_WRITE_TIME_LAG_FIELD_NUMBER: _ClassVar[int] + MIN_PARTITIONS_LAST_READ_TIME_FIELD_NUMBER: _ClassVar[int] + bytes_read: MultipleWindowsStat + max_read_time_lag: _duration_pb2.Duration + max_write_time_lag: _duration_pb2.Duration + min_partitions_last_read_time: _timestamp_pb2.Timestamp + def __init__(self, min_partitions_last_read_time: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., max_read_time_lag: _Optional[_Union[_duration_pb2.Duration, _Mapping]] = ..., max_write_time_lag: _Optional[_Union[_duration_pb2.Duration, _Mapping]] = ..., bytes_read: _Optional[_Union[MultipleWindowsStat, _Mapping]] = ...) -> None: ... + ATTRIBUTES_FIELD_NUMBER: _ClassVar[int] + CONSUMER_STATS_FIELD_NUMBER: _ClassVar[int] + IMPORTANT_FIELD_NUMBER: _ClassVar[int] + NAME_FIELD_NUMBER: _ClassVar[int] + READ_FROM_FIELD_NUMBER: _ClassVar[int] + SUPPORTED_CODECS_FIELD_NUMBER: _ClassVar[int] + attributes: _containers.ScalarMap[str, str] + consumer_stats: Consumer.ConsumerStats + important: bool + name: str + read_from: _timestamp_pb2.Timestamp + supported_codecs: SupportedCodecs + def __init__(self, name: _Optional[str] = ..., important: bool = ..., read_from: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., supported_codecs: _Optional[_Union[SupportedCodecs, _Mapping]] = ..., attributes: _Optional[_Mapping[str, str]] = ..., consumer_stats: _Optional[_Union[Consumer.ConsumerStats, _Mapping]] = ...) -> None: ... + +class CreateTopicRequest(_message.Message): + __slots__ = ["attributes", "consumers", "metering_mode", "operation_params", "partition_write_burst_bytes", "partition_write_speed_bytes_per_second", "partitioning_settings", "path", "retention_period", "retention_storage_mb", "supported_codecs"] + class AttributesEntry(_message.Message): + __slots__ = ["key", "value"] + KEY_FIELD_NUMBER: _ClassVar[int] + VALUE_FIELD_NUMBER: _ClassVar[int] + key: str + value: str + def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ... + ATTRIBUTES_FIELD_NUMBER: _ClassVar[int] + CONSUMERS_FIELD_NUMBER: _ClassVar[int] + METERING_MODE_FIELD_NUMBER: _ClassVar[int] + OPERATION_PARAMS_FIELD_NUMBER: _ClassVar[int] + PARTITIONING_SETTINGS_FIELD_NUMBER: _ClassVar[int] + PARTITION_WRITE_BURST_BYTES_FIELD_NUMBER: _ClassVar[int] + PARTITION_WRITE_SPEED_BYTES_PER_SECOND_FIELD_NUMBER: _ClassVar[int] + PATH_FIELD_NUMBER: _ClassVar[int] + RETENTION_PERIOD_FIELD_NUMBER: _ClassVar[int] + RETENTION_STORAGE_MB_FIELD_NUMBER: _ClassVar[int] + SUPPORTED_CODECS_FIELD_NUMBER: _ClassVar[int] + attributes: _containers.ScalarMap[str, str] + consumers: _containers.RepeatedCompositeFieldContainer[Consumer] + metering_mode: MeteringMode + operation_params: _ydb_operation_pb2.OperationParams + partition_write_burst_bytes: int + partition_write_speed_bytes_per_second: int + partitioning_settings: PartitioningSettings + path: str + retention_period: _duration_pb2.Duration + retention_storage_mb: int + supported_codecs: SupportedCodecs + def __init__(self, operation_params: _Optional[_Union[_ydb_operation_pb2.OperationParams, _Mapping]] = ..., path: _Optional[str] = ..., partitioning_settings: _Optional[_Union[PartitioningSettings, _Mapping]] = ..., retention_period: _Optional[_Union[_duration_pb2.Duration, _Mapping]] = ..., retention_storage_mb: _Optional[int] = ..., supported_codecs: _Optional[_Union[SupportedCodecs, _Mapping]] = ..., partition_write_speed_bytes_per_second: _Optional[int] = ..., partition_write_burst_bytes: _Optional[int] = ..., attributes: _Optional[_Mapping[str, str]] = ..., consumers: _Optional[_Iterable[_Union[Consumer, _Mapping]]] = ..., metering_mode: _Optional[_Union[MeteringMode, str]] = ...) -> None: ... + +class CreateTopicResponse(_message.Message): + __slots__ = ["operation"] + OPERATION_FIELD_NUMBER: _ClassVar[int] + operation: _ydb_operation_pb2.Operation + def __init__(self, operation: _Optional[_Union[_ydb_operation_pb2.Operation, _Mapping]] = ...) -> None: ... + +class CreateTopicResult(_message.Message): + __slots__ = [] + def __init__(self) -> None: ... + +class DescribeConsumerRequest(_message.Message): + __slots__ = ["consumer", "include_location", "include_stats", "operation_params", "path"] + CONSUMER_FIELD_NUMBER: _ClassVar[int] + INCLUDE_LOCATION_FIELD_NUMBER: _ClassVar[int] + INCLUDE_STATS_FIELD_NUMBER: _ClassVar[int] + OPERATION_PARAMS_FIELD_NUMBER: _ClassVar[int] + PATH_FIELD_NUMBER: _ClassVar[int] + consumer: str + include_location: bool + include_stats: bool + operation_params: _ydb_operation_pb2.OperationParams + path: str + def __init__(self, operation_params: _Optional[_Union[_ydb_operation_pb2.OperationParams, _Mapping]] = ..., path: _Optional[str] = ..., consumer: _Optional[str] = ..., include_stats: bool = ..., include_location: bool = ...) -> None: ... + +class DescribeConsumerResponse(_message.Message): + __slots__ = ["operation"] + OPERATION_FIELD_NUMBER: _ClassVar[int] + operation: _ydb_operation_pb2.Operation + def __init__(self, operation: _Optional[_Union[_ydb_operation_pb2.Operation, _Mapping]] = ...) -> None: ... + +class DescribeConsumerResult(_message.Message): + __slots__ = ["consumer", "partitions", "self"] + class PartitionConsumerStats(_message.Message): + __slots__ = ["bytes_read", "committed_offset", "connection_node_id", "last_read_offset", "last_read_time", "max_read_time_lag", "max_write_time_lag", "partition_read_session_create_time", "read_session_id", "reader_name"] + BYTES_READ_FIELD_NUMBER: _ClassVar[int] + COMMITTED_OFFSET_FIELD_NUMBER: _ClassVar[int] + CONNECTION_NODE_ID_FIELD_NUMBER: _ClassVar[int] + LAST_READ_OFFSET_FIELD_NUMBER: _ClassVar[int] + LAST_READ_TIME_FIELD_NUMBER: _ClassVar[int] + MAX_READ_TIME_LAG_FIELD_NUMBER: _ClassVar[int] + MAX_WRITE_TIME_LAG_FIELD_NUMBER: _ClassVar[int] + PARTITION_READ_SESSION_CREATE_TIME_FIELD_NUMBER: _ClassVar[int] + READER_NAME_FIELD_NUMBER: _ClassVar[int] + READ_SESSION_ID_FIELD_NUMBER: _ClassVar[int] + bytes_read: MultipleWindowsStat + committed_offset: int + connection_node_id: int + last_read_offset: int + last_read_time: _timestamp_pb2.Timestamp + max_read_time_lag: _duration_pb2.Duration + max_write_time_lag: _duration_pb2.Duration + partition_read_session_create_time: _timestamp_pb2.Timestamp + read_session_id: str + reader_name: str + def __init__(self, last_read_offset: _Optional[int] = ..., committed_offset: _Optional[int] = ..., read_session_id: _Optional[str] = ..., partition_read_session_create_time: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., last_read_time: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., max_read_time_lag: _Optional[_Union[_duration_pb2.Duration, _Mapping]] = ..., max_write_time_lag: _Optional[_Union[_duration_pb2.Duration, _Mapping]] = ..., bytes_read: _Optional[_Union[MultipleWindowsStat, _Mapping]] = ..., reader_name: _Optional[str] = ..., connection_node_id: _Optional[int] = ...) -> None: ... + class PartitionInfo(_message.Message): + __slots__ = ["active", "child_partition_ids", "parent_partition_ids", "partition_consumer_stats", "partition_id", "partition_location", "partition_stats"] + ACTIVE_FIELD_NUMBER: _ClassVar[int] + CHILD_PARTITION_IDS_FIELD_NUMBER: _ClassVar[int] + PARENT_PARTITION_IDS_FIELD_NUMBER: _ClassVar[int] + PARTITION_CONSUMER_STATS_FIELD_NUMBER: _ClassVar[int] + PARTITION_ID_FIELD_NUMBER: _ClassVar[int] + PARTITION_LOCATION_FIELD_NUMBER: _ClassVar[int] + PARTITION_STATS_FIELD_NUMBER: _ClassVar[int] + active: bool + child_partition_ids: _containers.RepeatedScalarFieldContainer[int] + parent_partition_ids: _containers.RepeatedScalarFieldContainer[int] + partition_consumer_stats: DescribeConsumerResult.PartitionConsumerStats + partition_id: int + partition_location: PartitionLocation + partition_stats: PartitionStats + def __init__(self, partition_id: _Optional[int] = ..., active: bool = ..., child_partition_ids: _Optional[_Iterable[int]] = ..., parent_partition_ids: _Optional[_Iterable[int]] = ..., partition_stats: _Optional[_Union[PartitionStats, _Mapping]] = ..., partition_consumer_stats: _Optional[_Union[DescribeConsumerResult.PartitionConsumerStats, _Mapping]] = ..., partition_location: _Optional[_Union[PartitionLocation, _Mapping]] = ...) -> None: ... + CONSUMER_FIELD_NUMBER: _ClassVar[int] + PARTITIONS_FIELD_NUMBER: _ClassVar[int] + SELF_FIELD_NUMBER: _ClassVar[int] + consumer: Consumer + partitions: _containers.RepeatedCompositeFieldContainer[DescribeConsumerResult.PartitionInfo] + self: _ydb_scheme_pb2.Entry + def __init__(self, self_: _Optional[_Union[_ydb_scheme_pb2.Entry, _Mapping]] = ..., consumer: _Optional[_Union[Consumer, _Mapping]] = ..., partitions: _Optional[_Iterable[_Union[DescribeConsumerResult.PartitionInfo, _Mapping]]] = ...) -> None: ... + +class DescribePartitionRequest(_message.Message): + __slots__ = ["include_location", "include_stats", "operation_params", "partition_id", "path"] + INCLUDE_LOCATION_FIELD_NUMBER: _ClassVar[int] + INCLUDE_STATS_FIELD_NUMBER: _ClassVar[int] + OPERATION_PARAMS_FIELD_NUMBER: _ClassVar[int] + PARTITION_ID_FIELD_NUMBER: _ClassVar[int] + PATH_FIELD_NUMBER: _ClassVar[int] + include_location: bool + include_stats: bool + operation_params: _ydb_operation_pb2.OperationParams + partition_id: int + path: str + def __init__(self, operation_params: _Optional[_Union[_ydb_operation_pb2.OperationParams, _Mapping]] = ..., path: _Optional[str] = ..., partition_id: _Optional[int] = ..., include_stats: bool = ..., include_location: bool = ...) -> None: ... + +class DescribePartitionResponse(_message.Message): + __slots__ = ["operation"] + OPERATION_FIELD_NUMBER: _ClassVar[int] + operation: _ydb_operation_pb2.Operation + def __init__(self, operation: _Optional[_Union[_ydb_operation_pb2.Operation, _Mapping]] = ...) -> None: ... + +class DescribePartitionResult(_message.Message): + __slots__ = ["partition"] + PARTITION_FIELD_NUMBER: _ClassVar[int] + partition: DescribeTopicResult.PartitionInfo + def __init__(self, partition: _Optional[_Union[DescribeTopicResult.PartitionInfo, _Mapping]] = ...) -> None: ... + +class DescribeTopicRequest(_message.Message): + __slots__ = ["include_location", "include_stats", "operation_params", "path"] + INCLUDE_LOCATION_FIELD_NUMBER: _ClassVar[int] + INCLUDE_STATS_FIELD_NUMBER: _ClassVar[int] + OPERATION_PARAMS_FIELD_NUMBER: _ClassVar[int] + PATH_FIELD_NUMBER: _ClassVar[int] + include_location: bool + include_stats: bool + operation_params: _ydb_operation_pb2.OperationParams + path: str + def __init__(self, operation_params: _Optional[_Union[_ydb_operation_pb2.OperationParams, _Mapping]] = ..., path: _Optional[str] = ..., include_stats: bool = ..., include_location: bool = ...) -> None: ... + +class DescribeTopicResponse(_message.Message): + __slots__ = ["operation"] + OPERATION_FIELD_NUMBER: _ClassVar[int] + operation: _ydb_operation_pb2.Operation + def __init__(self, operation: _Optional[_Union[_ydb_operation_pb2.Operation, _Mapping]] = ...) -> None: ... + +class DescribeTopicResult(_message.Message): + __slots__ = ["attributes", "consumers", "metering_mode", "partition_consumer_read_speed_bytes_per_second", "partition_total_read_speed_bytes_per_second", "partition_write_burst_bytes", "partition_write_speed_bytes_per_second", "partitioning_settings", "partitions", "retention_period", "retention_storage_mb", "self", "supported_codecs", "topic_stats"] + class AttributesEntry(_message.Message): + __slots__ = ["key", "value"] + KEY_FIELD_NUMBER: _ClassVar[int] + VALUE_FIELD_NUMBER: _ClassVar[int] + key: str + value: str + def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ... + class PartitionInfo(_message.Message): + __slots__ = ["active", "child_partition_ids", "key_range", "parent_partition_ids", "partition_id", "partition_location", "partition_stats"] + ACTIVE_FIELD_NUMBER: _ClassVar[int] + CHILD_PARTITION_IDS_FIELD_NUMBER: _ClassVar[int] + KEY_RANGE_FIELD_NUMBER: _ClassVar[int] + PARENT_PARTITION_IDS_FIELD_NUMBER: _ClassVar[int] + PARTITION_ID_FIELD_NUMBER: _ClassVar[int] + PARTITION_LOCATION_FIELD_NUMBER: _ClassVar[int] + PARTITION_STATS_FIELD_NUMBER: _ClassVar[int] + active: bool + child_partition_ids: _containers.RepeatedScalarFieldContainer[int] + key_range: PartitionKeyRange + parent_partition_ids: _containers.RepeatedScalarFieldContainer[int] + partition_id: int + partition_location: PartitionLocation + partition_stats: PartitionStats + def __init__(self, partition_id: _Optional[int] = ..., active: bool = ..., child_partition_ids: _Optional[_Iterable[int]] = ..., parent_partition_ids: _Optional[_Iterable[int]] = ..., partition_stats: _Optional[_Union[PartitionStats, _Mapping]] = ..., partition_location: _Optional[_Union[PartitionLocation, _Mapping]] = ..., key_range: _Optional[_Union[PartitionKeyRange, _Mapping]] = ...) -> None: ... + class TopicStats(_message.Message): + __slots__ = ["bytes_written", "max_write_time_lag", "min_last_write_time", "store_size_bytes"] + BYTES_WRITTEN_FIELD_NUMBER: _ClassVar[int] + MAX_WRITE_TIME_LAG_FIELD_NUMBER: _ClassVar[int] + MIN_LAST_WRITE_TIME_FIELD_NUMBER: _ClassVar[int] + STORE_SIZE_BYTES_FIELD_NUMBER: _ClassVar[int] + bytes_written: MultipleWindowsStat + max_write_time_lag: _duration_pb2.Duration + min_last_write_time: _timestamp_pb2.Timestamp + store_size_bytes: int + def __init__(self, store_size_bytes: _Optional[int] = ..., min_last_write_time: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., max_write_time_lag: _Optional[_Union[_duration_pb2.Duration, _Mapping]] = ..., bytes_written: _Optional[_Union[MultipleWindowsStat, _Mapping]] = ...) -> None: ... + ATTRIBUTES_FIELD_NUMBER: _ClassVar[int] + CONSUMERS_FIELD_NUMBER: _ClassVar[int] + METERING_MODE_FIELD_NUMBER: _ClassVar[int] + PARTITIONING_SETTINGS_FIELD_NUMBER: _ClassVar[int] + PARTITIONS_FIELD_NUMBER: _ClassVar[int] + PARTITION_CONSUMER_READ_SPEED_BYTES_PER_SECOND_FIELD_NUMBER: _ClassVar[int] + PARTITION_TOTAL_READ_SPEED_BYTES_PER_SECOND_FIELD_NUMBER: _ClassVar[int] + PARTITION_WRITE_BURST_BYTES_FIELD_NUMBER: _ClassVar[int] + PARTITION_WRITE_SPEED_BYTES_PER_SECOND_FIELD_NUMBER: _ClassVar[int] + RETENTION_PERIOD_FIELD_NUMBER: _ClassVar[int] + RETENTION_STORAGE_MB_FIELD_NUMBER: _ClassVar[int] + SELF_FIELD_NUMBER: _ClassVar[int] + SUPPORTED_CODECS_FIELD_NUMBER: _ClassVar[int] + TOPIC_STATS_FIELD_NUMBER: _ClassVar[int] + attributes: _containers.ScalarMap[str, str] + consumers: _containers.RepeatedCompositeFieldContainer[Consumer] + metering_mode: MeteringMode + partition_consumer_read_speed_bytes_per_second: int + partition_total_read_speed_bytes_per_second: int + partition_write_burst_bytes: int + partition_write_speed_bytes_per_second: int + partitioning_settings: PartitioningSettings + partitions: _containers.RepeatedCompositeFieldContainer[DescribeTopicResult.PartitionInfo] + retention_period: _duration_pb2.Duration + retention_storage_mb: int + self: _ydb_scheme_pb2.Entry + supported_codecs: SupportedCodecs + topic_stats: DescribeTopicResult.TopicStats + def __init__(self, self_: _Optional[_Union[_ydb_scheme_pb2.Entry, _Mapping]] = ..., partitioning_settings: _Optional[_Union[PartitioningSettings, _Mapping]] = ..., partitions: _Optional[_Iterable[_Union[DescribeTopicResult.PartitionInfo, _Mapping]]] = ..., retention_period: _Optional[_Union[_duration_pb2.Duration, _Mapping]] = ..., retention_storage_mb: _Optional[int] = ..., supported_codecs: _Optional[_Union[SupportedCodecs, _Mapping]] = ..., partition_write_speed_bytes_per_second: _Optional[int] = ..., partition_total_read_speed_bytes_per_second: _Optional[int] = ..., partition_consumer_read_speed_bytes_per_second: _Optional[int] = ..., partition_write_burst_bytes: _Optional[int] = ..., attributes: _Optional[_Mapping[str, str]] = ..., consumers: _Optional[_Iterable[_Union[Consumer, _Mapping]]] = ..., metering_mode: _Optional[_Union[MeteringMode, str]] = ..., topic_stats: _Optional[_Union[DescribeTopicResult.TopicStats, _Mapping]] = ...) -> None: ... + +class DropTopicRequest(_message.Message): + __slots__ = ["operation_params", "path"] + OPERATION_PARAMS_FIELD_NUMBER: _ClassVar[int] + PATH_FIELD_NUMBER: _ClassVar[int] + operation_params: _ydb_operation_pb2.OperationParams + path: str + def __init__(self, operation_params: _Optional[_Union[_ydb_operation_pb2.OperationParams, _Mapping]] = ..., path: _Optional[str] = ...) -> None: ... + +class DropTopicResponse(_message.Message): + __slots__ = ["operation"] + OPERATION_FIELD_NUMBER: _ClassVar[int] + operation: _ydb_operation_pb2.Operation + def __init__(self, operation: _Optional[_Union[_ydb_operation_pb2.Operation, _Mapping]] = ...) -> None: ... + +class DropTopicResult(_message.Message): + __slots__ = [] + def __init__(self) -> None: ... + +class MetadataItem(_message.Message): + __slots__ = ["key", "value"] + KEY_FIELD_NUMBER: _ClassVar[int] + VALUE_FIELD_NUMBER: _ClassVar[int] + key: str + value: bytes + def __init__(self, key: _Optional[str] = ..., value: _Optional[bytes] = ...) -> None: ... + +class MultipleWindowsStat(_message.Message): + __slots__ = ["per_day", "per_hour", "per_minute"] + PER_DAY_FIELD_NUMBER: _ClassVar[int] + PER_HOUR_FIELD_NUMBER: _ClassVar[int] + PER_MINUTE_FIELD_NUMBER: _ClassVar[int] + per_day: int + per_hour: int + per_minute: int + def __init__(self, per_minute: _Optional[int] = ..., per_hour: _Optional[int] = ..., per_day: _Optional[int] = ...) -> None: ... + +class OffsetsRange(_message.Message): + __slots__ = ["end", "start"] + END_FIELD_NUMBER: _ClassVar[int] + START_FIELD_NUMBER: _ClassVar[int] + end: int + start: int + def __init__(self, start: _Optional[int] = ..., end: _Optional[int] = ...) -> None: ... + +class PartitionKeyRange(_message.Message): + __slots__ = ["from_bound", "to_bound"] + FROM_BOUND_FIELD_NUMBER: _ClassVar[int] + TO_BOUND_FIELD_NUMBER: _ClassVar[int] + from_bound: bytes + to_bound: bytes + def __init__(self, from_bound: _Optional[bytes] = ..., to_bound: _Optional[bytes] = ...) -> None: ... + +class PartitionLocation(_message.Message): + __slots__ = ["generation", "node_id"] + GENERATION_FIELD_NUMBER: _ClassVar[int] + NODE_ID_FIELD_NUMBER: _ClassVar[int] + generation: int + node_id: int + def __init__(self, node_id: _Optional[int] = ..., generation: _Optional[int] = ...) -> None: ... + +class PartitionStats(_message.Message): + __slots__ = ["bytes_written", "last_write_time", "max_write_time_lag", "partition_node_id", "partition_offsets", "store_size_bytes"] + BYTES_WRITTEN_FIELD_NUMBER: _ClassVar[int] + LAST_WRITE_TIME_FIELD_NUMBER: _ClassVar[int] + MAX_WRITE_TIME_LAG_FIELD_NUMBER: _ClassVar[int] + PARTITION_NODE_ID_FIELD_NUMBER: _ClassVar[int] + PARTITION_OFFSETS_FIELD_NUMBER: _ClassVar[int] + STORE_SIZE_BYTES_FIELD_NUMBER: _ClassVar[int] + bytes_written: MultipleWindowsStat + last_write_time: _timestamp_pb2.Timestamp + max_write_time_lag: _duration_pb2.Duration + partition_node_id: int + partition_offsets: OffsetsRange + store_size_bytes: int + def __init__(self, partition_offsets: _Optional[_Union[OffsetsRange, _Mapping]] = ..., store_size_bytes: _Optional[int] = ..., last_write_time: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., max_write_time_lag: _Optional[_Union[_duration_pb2.Duration, _Mapping]] = ..., bytes_written: _Optional[_Union[MultipleWindowsStat, _Mapping]] = ..., partition_node_id: _Optional[int] = ...) -> None: ... + +class PartitionWithGeneration(_message.Message): + __slots__ = ["generation", "partition_id"] + GENERATION_FIELD_NUMBER: _ClassVar[int] + PARTITION_ID_FIELD_NUMBER: _ClassVar[int] + generation: int + partition_id: int + def __init__(self, partition_id: _Optional[int] = ..., generation: _Optional[int] = ...) -> None: ... + +class PartitioningSettings(_message.Message): + __slots__ = ["auto_partitioning_settings", "max_active_partitions", "min_active_partitions", "partition_count_limit"] + AUTO_PARTITIONING_SETTINGS_FIELD_NUMBER: _ClassVar[int] + MAX_ACTIVE_PARTITIONS_FIELD_NUMBER: _ClassVar[int] + MIN_ACTIVE_PARTITIONS_FIELD_NUMBER: _ClassVar[int] + PARTITION_COUNT_LIMIT_FIELD_NUMBER: _ClassVar[int] + auto_partitioning_settings: AutoPartitioningSettings + max_active_partitions: int + min_active_partitions: int + partition_count_limit: int + def __init__(self, min_active_partitions: _Optional[int] = ..., max_active_partitions: _Optional[int] = ..., partition_count_limit: _Optional[int] = ..., auto_partitioning_settings: _Optional[_Union[AutoPartitioningSettings, _Mapping]] = ...) -> None: ... + +class StreamDirectReadMessage(_message.Message): + __slots__ = [] + class DirectReadResponse(_message.Message): + __slots__ = ["direct_read_id", "partition_data", "partition_session_id"] + DIRECT_READ_ID_FIELD_NUMBER: _ClassVar[int] + PARTITION_DATA_FIELD_NUMBER: _ClassVar[int] + PARTITION_SESSION_ID_FIELD_NUMBER: _ClassVar[int] + direct_read_id: int + partition_data: StreamReadMessage.ReadResponse.PartitionData + partition_session_id: int + def __init__(self, partition_session_id: _Optional[int] = ..., direct_read_id: _Optional[int] = ..., partition_data: _Optional[_Union[StreamReadMessage.ReadResponse.PartitionData, _Mapping]] = ...) -> None: ... + class FromClient(_message.Message): + __slots__ = ["init_request", "start_direct_read_partition_session_request", "update_token_request"] + INIT_REQUEST_FIELD_NUMBER: _ClassVar[int] + START_DIRECT_READ_PARTITION_SESSION_REQUEST_FIELD_NUMBER: _ClassVar[int] + UPDATE_TOKEN_REQUEST_FIELD_NUMBER: _ClassVar[int] + init_request: StreamDirectReadMessage.InitRequest + start_direct_read_partition_session_request: StreamDirectReadMessage.StartDirectReadPartitionSessionRequest + update_token_request: UpdateTokenRequest + def __init__(self, init_request: _Optional[_Union[StreamDirectReadMessage.InitRequest, _Mapping]] = ..., start_direct_read_partition_session_request: _Optional[_Union[StreamDirectReadMessage.StartDirectReadPartitionSessionRequest, _Mapping]] = ..., update_token_request: _Optional[_Union[UpdateTokenRequest, _Mapping]] = ...) -> None: ... + class FromServer(_message.Message): + __slots__ = ["direct_read_response", "init_response", "issues", "start_direct_read_partition_session_response", "status", "stop_direct_read_partition_session", "update_token_response"] + DIRECT_READ_RESPONSE_FIELD_NUMBER: _ClassVar[int] + INIT_RESPONSE_FIELD_NUMBER: _ClassVar[int] + ISSUES_FIELD_NUMBER: _ClassVar[int] + START_DIRECT_READ_PARTITION_SESSION_RESPONSE_FIELD_NUMBER: _ClassVar[int] + STATUS_FIELD_NUMBER: _ClassVar[int] + STOP_DIRECT_READ_PARTITION_SESSION_FIELD_NUMBER: _ClassVar[int] + UPDATE_TOKEN_RESPONSE_FIELD_NUMBER: _ClassVar[int] + direct_read_response: StreamDirectReadMessage.DirectReadResponse + init_response: StreamDirectReadMessage.InitResponse + issues: _containers.RepeatedCompositeFieldContainer[_ydb_issue_message_pb2.IssueMessage] + start_direct_read_partition_session_response: StreamDirectReadMessage.StartDirectReadPartitionSessionResponse + status: _ydb_status_codes_pb2.StatusIds.StatusCode + stop_direct_read_partition_session: StreamDirectReadMessage.StopDirectReadPartitionSession + update_token_response: UpdateTokenResponse + def __init__(self, status: _Optional[_Union[_ydb_status_codes_pb2.StatusIds.StatusCode, str]] = ..., issues: _Optional[_Iterable[_Union[_ydb_issue_message_pb2.IssueMessage, _Mapping]]] = ..., init_response: _Optional[_Union[StreamDirectReadMessage.InitResponse, _Mapping]] = ..., start_direct_read_partition_session_response: _Optional[_Union[StreamDirectReadMessage.StartDirectReadPartitionSessionResponse, _Mapping]] = ..., stop_direct_read_partition_session: _Optional[_Union[StreamDirectReadMessage.StopDirectReadPartitionSession, _Mapping]] = ..., direct_read_response: _Optional[_Union[StreamDirectReadMessage.DirectReadResponse, _Mapping]] = ..., update_token_response: _Optional[_Union[UpdateTokenResponse, _Mapping]] = ...) -> None: ... + class InitRequest(_message.Message): + __slots__ = ["consumer", "session_id", "topics_read_settings"] + class TopicReadSettings(_message.Message): + __slots__ = ["path"] + PATH_FIELD_NUMBER: _ClassVar[int] + path: str + def __init__(self, path: _Optional[str] = ...) -> None: ... + CONSUMER_FIELD_NUMBER: _ClassVar[int] + SESSION_ID_FIELD_NUMBER: _ClassVar[int] + TOPICS_READ_SETTINGS_FIELD_NUMBER: _ClassVar[int] + consumer: str + session_id: str + topics_read_settings: _containers.RepeatedCompositeFieldContainer[StreamDirectReadMessage.InitRequest.TopicReadSettings] + def __init__(self, session_id: _Optional[str] = ..., topics_read_settings: _Optional[_Iterable[_Union[StreamDirectReadMessage.InitRequest.TopicReadSettings, _Mapping]]] = ..., consumer: _Optional[str] = ...) -> None: ... + class InitResponse(_message.Message): + __slots__ = [] + def __init__(self) -> None: ... + class StartDirectReadPartitionSessionRequest(_message.Message): + __slots__ = ["generation", "last_direct_read_id", "partition_session_id"] + GENERATION_FIELD_NUMBER: _ClassVar[int] + LAST_DIRECT_READ_ID_FIELD_NUMBER: _ClassVar[int] + PARTITION_SESSION_ID_FIELD_NUMBER: _ClassVar[int] + generation: int + last_direct_read_id: int + partition_session_id: int + def __init__(self, partition_session_id: _Optional[int] = ..., last_direct_read_id: _Optional[int] = ..., generation: _Optional[int] = ...) -> None: ... + class StartDirectReadPartitionSessionResponse(_message.Message): + __slots__ = ["generation", "partition_session_id"] + GENERATION_FIELD_NUMBER: _ClassVar[int] + PARTITION_SESSION_ID_FIELD_NUMBER: _ClassVar[int] + generation: int + partition_session_id: int + def __init__(self, partition_session_id: _Optional[int] = ..., generation: _Optional[int] = ...) -> None: ... + class StopDirectReadPartitionSession(_message.Message): + __slots__ = ["generation", "issues", "partition_session_id", "status"] + GENERATION_FIELD_NUMBER: _ClassVar[int] + ISSUES_FIELD_NUMBER: _ClassVar[int] + PARTITION_SESSION_ID_FIELD_NUMBER: _ClassVar[int] + STATUS_FIELD_NUMBER: _ClassVar[int] + generation: int + issues: _containers.RepeatedCompositeFieldContainer[_ydb_issue_message_pb2.IssueMessage] + partition_session_id: int + status: _ydb_status_codes_pb2.StatusIds.StatusCode + def __init__(self, status: _Optional[_Union[_ydb_status_codes_pb2.StatusIds.StatusCode, str]] = ..., issues: _Optional[_Iterable[_Union[_ydb_issue_message_pb2.IssueMessage, _Mapping]]] = ..., partition_session_id: _Optional[int] = ..., generation: _Optional[int] = ...) -> None: ... + def __init__(self) -> None: ... + +class StreamReadMessage(_message.Message): + __slots__ = [] + class CommitOffsetRequest(_message.Message): + __slots__ = ["commit_offsets"] + class PartitionCommitOffset(_message.Message): + __slots__ = ["offsets", "partition_session_id"] + OFFSETS_FIELD_NUMBER: _ClassVar[int] + PARTITION_SESSION_ID_FIELD_NUMBER: _ClassVar[int] + offsets: _containers.RepeatedCompositeFieldContainer[OffsetsRange] + partition_session_id: int + def __init__(self, partition_session_id: _Optional[int] = ..., offsets: _Optional[_Iterable[_Union[OffsetsRange, _Mapping]]] = ...) -> None: ... + COMMIT_OFFSETS_FIELD_NUMBER: _ClassVar[int] + commit_offsets: _containers.RepeatedCompositeFieldContainer[StreamReadMessage.CommitOffsetRequest.PartitionCommitOffset] + def __init__(self, commit_offsets: _Optional[_Iterable[_Union[StreamReadMessage.CommitOffsetRequest.PartitionCommitOffset, _Mapping]]] = ...) -> None: ... + class CommitOffsetResponse(_message.Message): + __slots__ = ["partitions_committed_offsets"] + class PartitionCommittedOffset(_message.Message): + __slots__ = ["committed_offset", "partition_session_id"] + COMMITTED_OFFSET_FIELD_NUMBER: _ClassVar[int] + PARTITION_SESSION_ID_FIELD_NUMBER: _ClassVar[int] + committed_offset: int + partition_session_id: int + def __init__(self, partition_session_id: _Optional[int] = ..., committed_offset: _Optional[int] = ...) -> None: ... + PARTITIONS_COMMITTED_OFFSETS_FIELD_NUMBER: _ClassVar[int] + partitions_committed_offsets: _containers.RepeatedCompositeFieldContainer[StreamReadMessage.CommitOffsetResponse.PartitionCommittedOffset] + def __init__(self, partitions_committed_offsets: _Optional[_Iterable[_Union[StreamReadMessage.CommitOffsetResponse.PartitionCommittedOffset, _Mapping]]] = ...) -> None: ... + class DirectReadAck(_message.Message): + __slots__ = ["direct_read_id", "partition_session_id"] + DIRECT_READ_ID_FIELD_NUMBER: _ClassVar[int] + PARTITION_SESSION_ID_FIELD_NUMBER: _ClassVar[int] + direct_read_id: int + partition_session_id: int + def __init__(self, partition_session_id: _Optional[int] = ..., direct_read_id: _Optional[int] = ...) -> None: ... + class EndPartitionSession(_message.Message): + __slots__ = ["adjacent_partition_ids", "child_partition_ids", "partition_session_id"] + ADJACENT_PARTITION_IDS_FIELD_NUMBER: _ClassVar[int] + CHILD_PARTITION_IDS_FIELD_NUMBER: _ClassVar[int] + PARTITION_SESSION_ID_FIELD_NUMBER: _ClassVar[int] + adjacent_partition_ids: _containers.RepeatedScalarFieldContainer[int] + child_partition_ids: _containers.RepeatedScalarFieldContainer[int] + partition_session_id: int + def __init__(self, partition_session_id: _Optional[int] = ..., adjacent_partition_ids: _Optional[_Iterable[int]] = ..., child_partition_ids: _Optional[_Iterable[int]] = ...) -> None: ... + class FromClient(_message.Message): + __slots__ = ["commit_offset_request", "direct_read_ack", "init_request", "partition_session_status_request", "read_request", "start_partition_session_response", "stop_partition_session_response", "update_token_request"] + COMMIT_OFFSET_REQUEST_FIELD_NUMBER: _ClassVar[int] + DIRECT_READ_ACK_FIELD_NUMBER: _ClassVar[int] + INIT_REQUEST_FIELD_NUMBER: _ClassVar[int] + PARTITION_SESSION_STATUS_REQUEST_FIELD_NUMBER: _ClassVar[int] + READ_REQUEST_FIELD_NUMBER: _ClassVar[int] + START_PARTITION_SESSION_RESPONSE_FIELD_NUMBER: _ClassVar[int] + STOP_PARTITION_SESSION_RESPONSE_FIELD_NUMBER: _ClassVar[int] + UPDATE_TOKEN_REQUEST_FIELD_NUMBER: _ClassVar[int] + commit_offset_request: StreamReadMessage.CommitOffsetRequest + direct_read_ack: StreamReadMessage.DirectReadAck + init_request: StreamReadMessage.InitRequest + partition_session_status_request: StreamReadMessage.PartitionSessionStatusRequest + read_request: StreamReadMessage.ReadRequest + start_partition_session_response: StreamReadMessage.StartPartitionSessionResponse + stop_partition_session_response: StreamReadMessage.StopPartitionSessionResponse + update_token_request: UpdateTokenRequest + def __init__(self, init_request: _Optional[_Union[StreamReadMessage.InitRequest, _Mapping]] = ..., read_request: _Optional[_Union[StreamReadMessage.ReadRequest, _Mapping]] = ..., commit_offset_request: _Optional[_Union[StreamReadMessage.CommitOffsetRequest, _Mapping]] = ..., partition_session_status_request: _Optional[_Union[StreamReadMessage.PartitionSessionStatusRequest, _Mapping]] = ..., update_token_request: _Optional[_Union[UpdateTokenRequest, _Mapping]] = ..., direct_read_ack: _Optional[_Union[StreamReadMessage.DirectReadAck, _Mapping]] = ..., start_partition_session_response: _Optional[_Union[StreamReadMessage.StartPartitionSessionResponse, _Mapping]] = ..., stop_partition_session_response: _Optional[_Union[StreamReadMessage.StopPartitionSessionResponse, _Mapping]] = ...) -> None: ... + class FromServer(_message.Message): + __slots__ = ["commit_offset_response", "end_partition_session", "init_response", "issues", "partition_session_status_response", "read_response", "start_partition_session_request", "status", "stop_partition_session_request", "update_partition_session", "update_token_response"] + COMMIT_OFFSET_RESPONSE_FIELD_NUMBER: _ClassVar[int] + END_PARTITION_SESSION_FIELD_NUMBER: _ClassVar[int] + INIT_RESPONSE_FIELD_NUMBER: _ClassVar[int] + ISSUES_FIELD_NUMBER: _ClassVar[int] + PARTITION_SESSION_STATUS_RESPONSE_FIELD_NUMBER: _ClassVar[int] + READ_RESPONSE_FIELD_NUMBER: _ClassVar[int] + START_PARTITION_SESSION_REQUEST_FIELD_NUMBER: _ClassVar[int] + STATUS_FIELD_NUMBER: _ClassVar[int] + STOP_PARTITION_SESSION_REQUEST_FIELD_NUMBER: _ClassVar[int] + UPDATE_PARTITION_SESSION_FIELD_NUMBER: _ClassVar[int] + UPDATE_TOKEN_RESPONSE_FIELD_NUMBER: _ClassVar[int] + commit_offset_response: StreamReadMessage.CommitOffsetResponse + end_partition_session: StreamReadMessage.EndPartitionSession + init_response: StreamReadMessage.InitResponse + issues: _containers.RepeatedCompositeFieldContainer[_ydb_issue_message_pb2.IssueMessage] + partition_session_status_response: StreamReadMessage.PartitionSessionStatusResponse + read_response: StreamReadMessage.ReadResponse + start_partition_session_request: StreamReadMessage.StartPartitionSessionRequest + status: _ydb_status_codes_pb2.StatusIds.StatusCode + stop_partition_session_request: StreamReadMessage.StopPartitionSessionRequest + update_partition_session: StreamReadMessage.UpdatePartitionSession + update_token_response: UpdateTokenResponse + def __init__(self, status: _Optional[_Union[_ydb_status_codes_pb2.StatusIds.StatusCode, str]] = ..., issues: _Optional[_Iterable[_Union[_ydb_issue_message_pb2.IssueMessage, _Mapping]]] = ..., init_response: _Optional[_Union[StreamReadMessage.InitResponse, _Mapping]] = ..., read_response: _Optional[_Union[StreamReadMessage.ReadResponse, _Mapping]] = ..., commit_offset_response: _Optional[_Union[StreamReadMessage.CommitOffsetResponse, _Mapping]] = ..., partition_session_status_response: _Optional[_Union[StreamReadMessage.PartitionSessionStatusResponse, _Mapping]] = ..., update_token_response: _Optional[_Union[UpdateTokenResponse, _Mapping]] = ..., start_partition_session_request: _Optional[_Union[StreamReadMessage.StartPartitionSessionRequest, _Mapping]] = ..., stop_partition_session_request: _Optional[_Union[StreamReadMessage.StopPartitionSessionRequest, _Mapping]] = ..., update_partition_session: _Optional[_Union[StreamReadMessage.UpdatePartitionSession, _Mapping]] = ..., end_partition_session: _Optional[_Union[StreamReadMessage.EndPartitionSession, _Mapping]] = ...) -> None: ... + class InitRequest(_message.Message): + __slots__ = ["auto_partitioning_support", "consumer", "direct_read", "reader_name", "topics_read_settings"] + class TopicReadSettings(_message.Message): + __slots__ = ["max_lag", "partition_ids", "path", "read_from"] + MAX_LAG_FIELD_NUMBER: _ClassVar[int] + PARTITION_IDS_FIELD_NUMBER: _ClassVar[int] + PATH_FIELD_NUMBER: _ClassVar[int] + READ_FROM_FIELD_NUMBER: _ClassVar[int] + max_lag: _duration_pb2.Duration + partition_ids: _containers.RepeatedScalarFieldContainer[int] + path: str + read_from: _timestamp_pb2.Timestamp + def __init__(self, path: _Optional[str] = ..., partition_ids: _Optional[_Iterable[int]] = ..., max_lag: _Optional[_Union[_duration_pb2.Duration, _Mapping]] = ..., read_from: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ...) -> None: ... + AUTO_PARTITIONING_SUPPORT_FIELD_NUMBER: _ClassVar[int] + CONSUMER_FIELD_NUMBER: _ClassVar[int] + DIRECT_READ_FIELD_NUMBER: _ClassVar[int] + READER_NAME_FIELD_NUMBER: _ClassVar[int] + TOPICS_READ_SETTINGS_FIELD_NUMBER: _ClassVar[int] + auto_partitioning_support: bool + consumer: str + direct_read: bool + reader_name: str + topics_read_settings: _containers.RepeatedCompositeFieldContainer[StreamReadMessage.InitRequest.TopicReadSettings] + def __init__(self, topics_read_settings: _Optional[_Iterable[_Union[StreamReadMessage.InitRequest.TopicReadSettings, _Mapping]]] = ..., consumer: _Optional[str] = ..., reader_name: _Optional[str] = ..., direct_read: bool = ..., auto_partitioning_support: bool = ...) -> None: ... + class InitResponse(_message.Message): + __slots__ = ["session_id"] + SESSION_ID_FIELD_NUMBER: _ClassVar[int] + session_id: str + def __init__(self, session_id: _Optional[str] = ...) -> None: ... + class PartitionSession(_message.Message): + __slots__ = ["partition_id", "partition_session_id", "path"] + PARTITION_ID_FIELD_NUMBER: _ClassVar[int] + PARTITION_SESSION_ID_FIELD_NUMBER: _ClassVar[int] + PATH_FIELD_NUMBER: _ClassVar[int] + partition_id: int + partition_session_id: int + path: str + def __init__(self, partition_session_id: _Optional[int] = ..., path: _Optional[str] = ..., partition_id: _Optional[int] = ...) -> None: ... + class PartitionSessionStatusRequest(_message.Message): + __slots__ = ["partition_session_id"] + PARTITION_SESSION_ID_FIELD_NUMBER: _ClassVar[int] + partition_session_id: int + def __init__(self, partition_session_id: _Optional[int] = ...) -> None: ... + class PartitionSessionStatusResponse(_message.Message): + __slots__ = ["committed_offset", "partition_offsets", "partition_session_id", "write_time_high_watermark"] + COMMITTED_OFFSET_FIELD_NUMBER: _ClassVar[int] + PARTITION_OFFSETS_FIELD_NUMBER: _ClassVar[int] + PARTITION_SESSION_ID_FIELD_NUMBER: _ClassVar[int] + WRITE_TIME_HIGH_WATERMARK_FIELD_NUMBER: _ClassVar[int] + committed_offset: int + partition_offsets: OffsetsRange + partition_session_id: int + write_time_high_watermark: _timestamp_pb2.Timestamp + def __init__(self, partition_session_id: _Optional[int] = ..., partition_offsets: _Optional[_Union[OffsetsRange, _Mapping]] = ..., committed_offset: _Optional[int] = ..., write_time_high_watermark: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ...) -> None: ... + class ReadRequest(_message.Message): + __slots__ = ["bytes_size"] + BYTES_SIZE_FIELD_NUMBER: _ClassVar[int] + bytes_size: int + def __init__(self, bytes_size: _Optional[int] = ...) -> None: ... + class ReadResponse(_message.Message): + __slots__ = ["bytes_size", "partition_data"] + class Batch(_message.Message): + __slots__ = ["codec", "message_data", "producer_id", "write_session_meta", "written_at"] + class WriteSessionMetaEntry(_message.Message): + __slots__ = ["key", "value"] + KEY_FIELD_NUMBER: _ClassVar[int] + VALUE_FIELD_NUMBER: _ClassVar[int] + key: str + value: str + def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ... + CODEC_FIELD_NUMBER: _ClassVar[int] + MESSAGE_DATA_FIELD_NUMBER: _ClassVar[int] + PRODUCER_ID_FIELD_NUMBER: _ClassVar[int] + WRITE_SESSION_META_FIELD_NUMBER: _ClassVar[int] + WRITTEN_AT_FIELD_NUMBER: _ClassVar[int] + codec: int + message_data: _containers.RepeatedCompositeFieldContainer[StreamReadMessage.ReadResponse.MessageData] + producer_id: str + write_session_meta: _containers.ScalarMap[str, str] + written_at: _timestamp_pb2.Timestamp + def __init__(self, message_data: _Optional[_Iterable[_Union[StreamReadMessage.ReadResponse.MessageData, _Mapping]]] = ..., producer_id: _Optional[str] = ..., write_session_meta: _Optional[_Mapping[str, str]] = ..., codec: _Optional[int] = ..., written_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ...) -> None: ... + class MessageData(_message.Message): + __slots__ = ["created_at", "data", "message_group_id", "metadata_items", "offset", "seq_no", "uncompressed_size"] + CREATED_AT_FIELD_NUMBER: _ClassVar[int] + DATA_FIELD_NUMBER: _ClassVar[int] + MESSAGE_GROUP_ID_FIELD_NUMBER: _ClassVar[int] + METADATA_ITEMS_FIELD_NUMBER: _ClassVar[int] + OFFSET_FIELD_NUMBER: _ClassVar[int] + SEQ_NO_FIELD_NUMBER: _ClassVar[int] + UNCOMPRESSED_SIZE_FIELD_NUMBER: _ClassVar[int] + created_at: _timestamp_pb2.Timestamp + data: bytes + message_group_id: str + metadata_items: _containers.RepeatedCompositeFieldContainer[MetadataItem] + offset: int + seq_no: int + uncompressed_size: int + def __init__(self, offset: _Optional[int] = ..., seq_no: _Optional[int] = ..., created_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., data: _Optional[bytes] = ..., uncompressed_size: _Optional[int] = ..., message_group_id: _Optional[str] = ..., metadata_items: _Optional[_Iterable[_Union[MetadataItem, _Mapping]]] = ...) -> None: ... + class PartitionData(_message.Message): + __slots__ = ["batches", "partition_session_id"] + BATCHES_FIELD_NUMBER: _ClassVar[int] + PARTITION_SESSION_ID_FIELD_NUMBER: _ClassVar[int] + batches: _containers.RepeatedCompositeFieldContainer[StreamReadMessage.ReadResponse.Batch] + partition_session_id: int + def __init__(self, partition_session_id: _Optional[int] = ..., batches: _Optional[_Iterable[_Union[StreamReadMessage.ReadResponse.Batch, _Mapping]]] = ...) -> None: ... + BYTES_SIZE_FIELD_NUMBER: _ClassVar[int] + PARTITION_DATA_FIELD_NUMBER: _ClassVar[int] + bytes_size: int + partition_data: _containers.RepeatedCompositeFieldContainer[StreamReadMessage.ReadResponse.PartitionData] + def __init__(self, partition_data: _Optional[_Iterable[_Union[StreamReadMessage.ReadResponse.PartitionData, _Mapping]]] = ..., bytes_size: _Optional[int] = ...) -> None: ... + class StartPartitionSessionRequest(_message.Message): + __slots__ = ["committed_offset", "partition_location", "partition_offsets", "partition_session"] + COMMITTED_OFFSET_FIELD_NUMBER: _ClassVar[int] + PARTITION_LOCATION_FIELD_NUMBER: _ClassVar[int] + PARTITION_OFFSETS_FIELD_NUMBER: _ClassVar[int] + PARTITION_SESSION_FIELD_NUMBER: _ClassVar[int] + committed_offset: int + partition_location: PartitionLocation + partition_offsets: OffsetsRange + partition_session: StreamReadMessage.PartitionSession + def __init__(self, partition_session: _Optional[_Union[StreamReadMessage.PartitionSession, _Mapping]] = ..., committed_offset: _Optional[int] = ..., partition_offsets: _Optional[_Union[OffsetsRange, _Mapping]] = ..., partition_location: _Optional[_Union[PartitionLocation, _Mapping]] = ...) -> None: ... + class StartPartitionSessionResponse(_message.Message): + __slots__ = ["commit_offset", "partition_session_id", "read_offset"] + COMMIT_OFFSET_FIELD_NUMBER: _ClassVar[int] + PARTITION_SESSION_ID_FIELD_NUMBER: _ClassVar[int] + READ_OFFSET_FIELD_NUMBER: _ClassVar[int] + commit_offset: int + partition_session_id: int + read_offset: int + def __init__(self, partition_session_id: _Optional[int] = ..., read_offset: _Optional[int] = ..., commit_offset: _Optional[int] = ...) -> None: ... + class StopPartitionSessionRequest(_message.Message): + __slots__ = ["committed_offset", "graceful", "last_direct_read_id", "partition_session_id"] + COMMITTED_OFFSET_FIELD_NUMBER: _ClassVar[int] + GRACEFUL_FIELD_NUMBER: _ClassVar[int] + LAST_DIRECT_READ_ID_FIELD_NUMBER: _ClassVar[int] + PARTITION_SESSION_ID_FIELD_NUMBER: _ClassVar[int] + committed_offset: int + graceful: bool + last_direct_read_id: int + partition_session_id: int + def __init__(self, partition_session_id: _Optional[int] = ..., graceful: bool = ..., committed_offset: _Optional[int] = ..., last_direct_read_id: _Optional[int] = ...) -> None: ... + class StopPartitionSessionResponse(_message.Message): + __slots__ = ["graceful", "partition_session_id"] + GRACEFUL_FIELD_NUMBER: _ClassVar[int] + PARTITION_SESSION_ID_FIELD_NUMBER: _ClassVar[int] + graceful: bool + partition_session_id: int + def __init__(self, partition_session_id: _Optional[int] = ..., graceful: bool = ...) -> None: ... + class UpdatePartitionSession(_message.Message): + __slots__ = ["partition_location", "partition_session_id"] + PARTITION_LOCATION_FIELD_NUMBER: _ClassVar[int] + PARTITION_SESSION_ID_FIELD_NUMBER: _ClassVar[int] + partition_location: PartitionLocation + partition_session_id: int + def __init__(self, partition_session_id: _Optional[int] = ..., partition_location: _Optional[_Union[PartitionLocation, _Mapping]] = ...) -> None: ... + def __init__(self) -> None: ... + +class StreamWriteMessage(_message.Message): + __slots__ = [] + class FromClient(_message.Message): + __slots__ = ["init_request", "update_token_request", "write_request"] + INIT_REQUEST_FIELD_NUMBER: _ClassVar[int] + UPDATE_TOKEN_REQUEST_FIELD_NUMBER: _ClassVar[int] + WRITE_REQUEST_FIELD_NUMBER: _ClassVar[int] + init_request: StreamWriteMessage.InitRequest + update_token_request: UpdateTokenRequest + write_request: StreamWriteMessage.WriteRequest + def __init__(self, init_request: _Optional[_Union[StreamWriteMessage.InitRequest, _Mapping]] = ..., write_request: _Optional[_Union[StreamWriteMessage.WriteRequest, _Mapping]] = ..., update_token_request: _Optional[_Union[UpdateTokenRequest, _Mapping]] = ...) -> None: ... + class FromServer(_message.Message): + __slots__ = ["init_response", "issues", "status", "update_token_response", "write_response"] + INIT_RESPONSE_FIELD_NUMBER: _ClassVar[int] + ISSUES_FIELD_NUMBER: _ClassVar[int] + STATUS_FIELD_NUMBER: _ClassVar[int] + UPDATE_TOKEN_RESPONSE_FIELD_NUMBER: _ClassVar[int] + WRITE_RESPONSE_FIELD_NUMBER: _ClassVar[int] + init_response: StreamWriteMessage.InitResponse + issues: _containers.RepeatedCompositeFieldContainer[_ydb_issue_message_pb2.IssueMessage] + status: _ydb_status_codes_pb2.StatusIds.StatusCode + update_token_response: UpdateTokenResponse + write_response: StreamWriteMessage.WriteResponse + def __init__(self, status: _Optional[_Union[_ydb_status_codes_pb2.StatusIds.StatusCode, str]] = ..., issues: _Optional[_Iterable[_Union[_ydb_issue_message_pb2.IssueMessage, _Mapping]]] = ..., init_response: _Optional[_Union[StreamWriteMessage.InitResponse, _Mapping]] = ..., write_response: _Optional[_Union[StreamWriteMessage.WriteResponse, _Mapping]] = ..., update_token_response: _Optional[_Union[UpdateTokenResponse, _Mapping]] = ...) -> None: ... + class InitRequest(_message.Message): + __slots__ = ["get_last_seq_no", "message_group_id", "partition_id", "partition_with_generation", "path", "producer_id", "write_session_meta"] + class WriteSessionMetaEntry(_message.Message): + __slots__ = ["key", "value"] + KEY_FIELD_NUMBER: _ClassVar[int] + VALUE_FIELD_NUMBER: _ClassVar[int] + key: str + value: str + def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ... + GET_LAST_SEQ_NO_FIELD_NUMBER: _ClassVar[int] + MESSAGE_GROUP_ID_FIELD_NUMBER: _ClassVar[int] + PARTITION_ID_FIELD_NUMBER: _ClassVar[int] + PARTITION_WITH_GENERATION_FIELD_NUMBER: _ClassVar[int] + PATH_FIELD_NUMBER: _ClassVar[int] + PRODUCER_ID_FIELD_NUMBER: _ClassVar[int] + WRITE_SESSION_META_FIELD_NUMBER: _ClassVar[int] + get_last_seq_no: bool + message_group_id: str + partition_id: int + partition_with_generation: PartitionWithGeneration + path: str + producer_id: str + write_session_meta: _containers.ScalarMap[str, str] + def __init__(self, path: _Optional[str] = ..., producer_id: _Optional[str] = ..., write_session_meta: _Optional[_Mapping[str, str]] = ..., message_group_id: _Optional[str] = ..., partition_id: _Optional[int] = ..., partition_with_generation: _Optional[_Union[PartitionWithGeneration, _Mapping]] = ..., get_last_seq_no: bool = ...) -> None: ... + class InitResponse(_message.Message): + __slots__ = ["last_seq_no", "partition_id", "session_id", "supported_codecs"] + LAST_SEQ_NO_FIELD_NUMBER: _ClassVar[int] + PARTITION_ID_FIELD_NUMBER: _ClassVar[int] + SESSION_ID_FIELD_NUMBER: _ClassVar[int] + SUPPORTED_CODECS_FIELD_NUMBER: _ClassVar[int] + last_seq_no: int + partition_id: int + session_id: str + supported_codecs: SupportedCodecs + def __init__(self, last_seq_no: _Optional[int] = ..., session_id: _Optional[str] = ..., partition_id: _Optional[int] = ..., supported_codecs: _Optional[_Union[SupportedCodecs, _Mapping]] = ...) -> None: ... + class WriteRequest(_message.Message): + __slots__ = ["codec", "messages", "tx"] + class MessageData(_message.Message): + __slots__ = ["created_at", "data", "message_group_id", "metadata_items", "partition_id", "partition_with_generation", "seq_no", "uncompressed_size"] + CREATED_AT_FIELD_NUMBER: _ClassVar[int] + DATA_FIELD_NUMBER: _ClassVar[int] + MESSAGE_GROUP_ID_FIELD_NUMBER: _ClassVar[int] + METADATA_ITEMS_FIELD_NUMBER: _ClassVar[int] + PARTITION_ID_FIELD_NUMBER: _ClassVar[int] + PARTITION_WITH_GENERATION_FIELD_NUMBER: _ClassVar[int] + SEQ_NO_FIELD_NUMBER: _ClassVar[int] + UNCOMPRESSED_SIZE_FIELD_NUMBER: _ClassVar[int] + created_at: _timestamp_pb2.Timestamp + data: bytes + message_group_id: str + metadata_items: _containers.RepeatedCompositeFieldContainer[MetadataItem] + partition_id: int + partition_with_generation: PartitionWithGeneration + seq_no: int + uncompressed_size: int + def __init__(self, seq_no: _Optional[int] = ..., created_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., data: _Optional[bytes] = ..., uncompressed_size: _Optional[int] = ..., message_group_id: _Optional[str] = ..., partition_id: _Optional[int] = ..., partition_with_generation: _Optional[_Union[PartitionWithGeneration, _Mapping]] = ..., metadata_items: _Optional[_Iterable[_Union[MetadataItem, _Mapping]]] = ...) -> None: ... + CODEC_FIELD_NUMBER: _ClassVar[int] + MESSAGES_FIELD_NUMBER: _ClassVar[int] + TX_FIELD_NUMBER: _ClassVar[int] + codec: int + messages: _containers.RepeatedCompositeFieldContainer[StreamWriteMessage.WriteRequest.MessageData] + tx: TransactionIdentity + def __init__(self, messages: _Optional[_Iterable[_Union[StreamWriteMessage.WriteRequest.MessageData, _Mapping]]] = ..., codec: _Optional[int] = ..., tx: _Optional[_Union[TransactionIdentity, _Mapping]] = ...) -> None: ... + class WriteResponse(_message.Message): + __slots__ = ["acks", "partition_id", "write_statistics"] + class WriteAck(_message.Message): + __slots__ = ["seq_no", "skipped", "written", "written_in_tx"] + class Skipped(_message.Message): + __slots__ = ["reason"] + class Reason(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + REASON_ALREADY_WRITTEN: StreamWriteMessage.WriteResponse.WriteAck.Skipped.Reason + REASON_FIELD_NUMBER: _ClassVar[int] + REASON_UNSPECIFIED: StreamWriteMessage.WriteResponse.WriteAck.Skipped.Reason + reason: StreamWriteMessage.WriteResponse.WriteAck.Skipped.Reason + def __init__(self, reason: _Optional[_Union[StreamWriteMessage.WriteResponse.WriteAck.Skipped.Reason, str]] = ...) -> None: ... + class Written(_message.Message): + __slots__ = ["offset"] + OFFSET_FIELD_NUMBER: _ClassVar[int] + offset: int + def __init__(self, offset: _Optional[int] = ...) -> None: ... + class WrittenInTx(_message.Message): + __slots__ = [] + def __init__(self) -> None: ... + SEQ_NO_FIELD_NUMBER: _ClassVar[int] + SKIPPED_FIELD_NUMBER: _ClassVar[int] + WRITTEN_FIELD_NUMBER: _ClassVar[int] + WRITTEN_IN_TX_FIELD_NUMBER: _ClassVar[int] + seq_no: int + skipped: StreamWriteMessage.WriteResponse.WriteAck.Skipped + written: StreamWriteMessage.WriteResponse.WriteAck.Written + written_in_tx: StreamWriteMessage.WriteResponse.WriteAck.WrittenInTx + def __init__(self, seq_no: _Optional[int] = ..., written: _Optional[_Union[StreamWriteMessage.WriteResponse.WriteAck.Written, _Mapping]] = ..., skipped: _Optional[_Union[StreamWriteMessage.WriteResponse.WriteAck.Skipped, _Mapping]] = ..., written_in_tx: _Optional[_Union[StreamWriteMessage.WriteResponse.WriteAck.WrittenInTx, _Mapping]] = ...) -> None: ... + class WriteStatistics(_message.Message): + __slots__ = ["max_queue_wait_time", "min_queue_wait_time", "partition_quota_wait_time", "persisting_time", "topic_quota_wait_time"] + MAX_QUEUE_WAIT_TIME_FIELD_NUMBER: _ClassVar[int] + MIN_QUEUE_WAIT_TIME_FIELD_NUMBER: _ClassVar[int] + PARTITION_QUOTA_WAIT_TIME_FIELD_NUMBER: _ClassVar[int] + PERSISTING_TIME_FIELD_NUMBER: _ClassVar[int] + TOPIC_QUOTA_WAIT_TIME_FIELD_NUMBER: _ClassVar[int] + max_queue_wait_time: _duration_pb2.Duration + min_queue_wait_time: _duration_pb2.Duration + partition_quota_wait_time: _duration_pb2.Duration + persisting_time: _duration_pb2.Duration + topic_quota_wait_time: _duration_pb2.Duration + def __init__(self, persisting_time: _Optional[_Union[_duration_pb2.Duration, _Mapping]] = ..., min_queue_wait_time: _Optional[_Union[_duration_pb2.Duration, _Mapping]] = ..., max_queue_wait_time: _Optional[_Union[_duration_pb2.Duration, _Mapping]] = ..., partition_quota_wait_time: _Optional[_Union[_duration_pb2.Duration, _Mapping]] = ..., topic_quota_wait_time: _Optional[_Union[_duration_pb2.Duration, _Mapping]] = ...) -> None: ... + ACKS_FIELD_NUMBER: _ClassVar[int] + PARTITION_ID_FIELD_NUMBER: _ClassVar[int] + WRITE_STATISTICS_FIELD_NUMBER: _ClassVar[int] + acks: _containers.RepeatedCompositeFieldContainer[StreamWriteMessage.WriteResponse.WriteAck] + partition_id: int + write_statistics: StreamWriteMessage.WriteResponse.WriteStatistics + def __init__(self, acks: _Optional[_Iterable[_Union[StreamWriteMessage.WriteResponse.WriteAck, _Mapping]]] = ..., partition_id: _Optional[int] = ..., write_statistics: _Optional[_Union[StreamWriteMessage.WriteResponse.WriteStatistics, _Mapping]] = ...) -> None: ... + def __init__(self) -> None: ... + +class SupportedCodecs(_message.Message): + __slots__ = ["codecs"] + CODECS_FIELD_NUMBER: _ClassVar[int] + codecs: _containers.RepeatedScalarFieldContainer[int] + def __init__(self, codecs: _Optional[_Iterable[int]] = ...) -> None: ... + +class TransactionIdentity(_message.Message): + __slots__ = ["id", "session"] + ID_FIELD_NUMBER: _ClassVar[int] + SESSION_FIELD_NUMBER: _ClassVar[int] + id: str + session: str + def __init__(self, id: _Optional[str] = ..., session: _Optional[str] = ...) -> None: ... + +class UpdateOffsetsInTransactionRequest(_message.Message): + __slots__ = ["consumer", "operation_params", "topics", "tx"] + class TopicOffsets(_message.Message): + __slots__ = ["partitions", "path"] + class PartitionOffsets(_message.Message): + __slots__ = ["partition_id", "partition_offsets"] + PARTITION_ID_FIELD_NUMBER: _ClassVar[int] + PARTITION_OFFSETS_FIELD_NUMBER: _ClassVar[int] + partition_id: int + partition_offsets: _containers.RepeatedCompositeFieldContainer[OffsetsRange] + def __init__(self, partition_id: _Optional[int] = ..., partition_offsets: _Optional[_Iterable[_Union[OffsetsRange, _Mapping]]] = ...) -> None: ... + PARTITIONS_FIELD_NUMBER: _ClassVar[int] + PATH_FIELD_NUMBER: _ClassVar[int] + partitions: _containers.RepeatedCompositeFieldContainer[UpdateOffsetsInTransactionRequest.TopicOffsets.PartitionOffsets] + path: str + def __init__(self, path: _Optional[str] = ..., partitions: _Optional[_Iterable[_Union[UpdateOffsetsInTransactionRequest.TopicOffsets.PartitionOffsets, _Mapping]]] = ...) -> None: ... + CONSUMER_FIELD_NUMBER: _ClassVar[int] + OPERATION_PARAMS_FIELD_NUMBER: _ClassVar[int] + TOPICS_FIELD_NUMBER: _ClassVar[int] + TX_FIELD_NUMBER: _ClassVar[int] + consumer: str + operation_params: _ydb_operation_pb2.OperationParams + topics: _containers.RepeatedCompositeFieldContainer[UpdateOffsetsInTransactionRequest.TopicOffsets] + tx: TransactionIdentity + def __init__(self, operation_params: _Optional[_Union[_ydb_operation_pb2.OperationParams, _Mapping]] = ..., tx: _Optional[_Union[TransactionIdentity, _Mapping]] = ..., topics: _Optional[_Iterable[_Union[UpdateOffsetsInTransactionRequest.TopicOffsets, _Mapping]]] = ..., consumer: _Optional[str] = ...) -> None: ... + +class UpdateOffsetsInTransactionResponse(_message.Message): + __slots__ = ["operation"] + OPERATION_FIELD_NUMBER: _ClassVar[int] + operation: _ydb_operation_pb2.Operation + def __init__(self, operation: _Optional[_Union[_ydb_operation_pb2.Operation, _Mapping]] = ...) -> None: ... + +class UpdateOffsetsInTransactionResult(_message.Message): + __slots__ = [] + def __init__(self) -> None: ... + +class UpdateTokenRequest(_message.Message): + __slots__ = ["token"] + TOKEN_FIELD_NUMBER: _ClassVar[int] + token: str + def __init__(self, token: _Optional[str] = ...) -> None: ... + +class UpdateTokenResponse(_message.Message): + __slots__ = [] + def __init__(self) -> None: ... + +class Codec(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + +class AutoPartitioningStrategy(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + +class MeteringMode(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] diff --git a/ydb/_grpc/v5/protos/ydb_topic_pb2_grpc.py b/ydb/_grpc/v5/protos/ydb_topic_pb2_grpc.py new file mode 100644 index 00000000..2daafffe --- /dev/null +++ b/ydb/_grpc/v5/protos/ydb_topic_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/ydb/_grpc/v5/protos/ydb_value_pb2.py b/ydb/_grpc/v5/protos/ydb_value_pb2.py new file mode 100644 index 00000000..e12a525c --- /dev/null +++ b/ydb/_grpc/v5/protos/ydb_value_pb2.py @@ -0,0 +1,60 @@ +# -*- coding: utf-8 -*- +# flake8: noqa +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: protos/ydb_value.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.protobuf import struct_pb2 as google_dot_protobuf_dot_struct__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x16protos/ydb_value.proto\x12\x03Ydb\x1a\x1cgoogle/protobuf/struct.proto\"/\n\x0b\x44\x65\x63imalType\x12\x11\n\tprecision\x18\x01 \x01(\r\x12\r\n\x05scale\x18\x02 \x01(\r\"\'\n\x0cOptionalType\x12\x17\n\x04item\x18\x01 \x01(\x0b\x32\t.Ydb.Type\"#\n\x08ListType\x12\x17\n\x04item\x18\x01 \x01(\x0b\x32\t.Ydb.Type\"e\n\x0bVariantType\x12%\n\x0btuple_items\x18\x01 \x01(\x0b\x32\x0e.Ydb.TupleTypeH\x00\x12\'\n\x0cstruct_items\x18\x02 \x01(\x0b\x32\x0f.Ydb.StructTypeH\x00\x42\x06\n\x04type\"(\n\tTupleType\x12\x1b\n\x08\x65lements\x18\x01 \x03(\x0b\x32\t.Ydb.Type\"5\n\x0cStructMember\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x17\n\x04type\x18\x02 \x01(\x0b\x32\t.Ydb.Type\"0\n\nStructType\x12\"\n\x07members\x18\x01 \x03(\x0b\x32\x11.Ydb.StructMember\">\n\x08\x44ictType\x12\x16\n\x03key\x18\x01 \x01(\x0b\x32\t.Ydb.Type\x12\x1a\n\x07payload\x18\x02 \x01(\x0b\x32\t.Ydb.Type\"2\n\nTaggedType\x12\x0b\n\x03tag\x18\x01 \x01(\t\x12\x17\n\x04type\x18\x02 \x01(\x0b\x32\t.Ydb.Type\"_\n\x06PgType\x12\x11\n\ttype_name\x18\n \x01(\t\x12\x15\n\rtype_modifier\x18\x0b \x01(\t\x12\x0b\n\x03oid\x18\x01 \x01(\r\x12\x0e\n\x06typlen\x18\x02 \x01(\x05\x12\x0e\n\x06typmod\x18\x03 \x01(\x05\"\x9f\x08\n\x04Type\x12,\n\x07type_id\x18\x01 \x01(\x0e\x32\x19.Ydb.Type.PrimitiveTypeIdH\x00\x12(\n\x0c\x64\x65\x63imal_type\x18\x02 \x01(\x0b\x32\x10.Ydb.DecimalTypeH\x00\x12*\n\roptional_type\x18\x65 \x01(\x0b\x32\x11.Ydb.OptionalTypeH\x00\x12\"\n\tlist_type\x18\x66 \x01(\x0b\x32\r.Ydb.ListTypeH\x00\x12$\n\ntuple_type\x18g \x01(\x0b\x32\x0e.Ydb.TupleTypeH\x00\x12&\n\x0bstruct_type\x18h \x01(\x0b\x32\x0f.Ydb.StructTypeH\x00\x12\"\n\tdict_type\x18i \x01(\x0b\x32\r.Ydb.DictTypeH\x00\x12(\n\x0cvariant_type\x18j \x01(\x0b\x32\x10.Ydb.VariantTypeH\x00\x12&\n\x0btagged_type\x18k \x01(\x0b\x32\x0f.Ydb.TaggedTypeH\x00\x12\x30\n\tvoid_type\x18\xc9\x01 \x01(\x0e\x32\x1a.google.protobuf.NullValueH\x00\x12\x30\n\tnull_type\x18\xca\x01 \x01(\x0e\x32\x1a.google.protobuf.NullValueH\x00\x12\x36\n\x0f\x65mpty_list_type\x18\xcb\x01 \x01(\x0e\x32\x1a.google.protobuf.NullValueH\x00\x12\x36\n\x0f\x65mpty_dict_type\x18\xcc\x01 \x01(\x0e\x32\x1a.google.protobuf.NullValueH\x00\x12\x1f\n\x07pg_type\x18\xcd\x01 \x01(\x0b\x32\x0b.Ydb.PgTypeH\x00\"\xad\x03\n\x0fPrimitiveTypeId\x12!\n\x1dPRIMITIVE_TYPE_ID_UNSPECIFIED\x10\x00\x12\x08\n\x04\x42OOL\x10\x06\x12\x08\n\x04INT8\x10\x07\x12\t\n\x05UINT8\x10\x05\x12\t\n\x05INT16\x10\x08\x12\n\n\x06UINT16\x10\t\x12\t\n\x05INT32\x10\x01\x12\n\n\x06UINT32\x10\x02\x12\t\n\x05INT64\x10\x03\x12\n\n\x06UINT64\x10\x04\x12\t\n\x05\x46LOAT\x10!\x12\n\n\x06\x44OUBLE\x10 \x12\x08\n\x04\x44\x41TE\x10\x30\x12\x0c\n\x08\x44\x41TETIME\x10\x31\x12\r\n\tTIMESTAMP\x10\x32\x12\x0c\n\x08INTERVAL\x10\x33\x12\x0b\n\x07TZ_DATE\x10\x34\x12\x0f\n\x0bTZ_DATETIME\x10\x35\x12\x10\n\x0cTZ_TIMESTAMP\x10\x36\x12\n\n\x06\x44\x41TE32\x10@\x12\x0e\n\nDATETIME64\x10\x41\x12\x0f\n\x0bTIMESTAMP64\x10\x42\x12\x0e\n\nINTERVAL64\x10\x43\x12\x0b\n\x06STRING\x10\x81 \x12\t\n\x04UTF8\x10\x80$\x12\t\n\x04YSON\x10\x81$\x12\t\n\x04JSON\x10\x82$\x12\t\n\x04UUID\x10\x83$\x12\x12\n\rJSON_DOCUMENT\x10\x84$\x12\r\n\x08\x44YNUMBER\x10\x82&B\x06\n\x04type\"A\n\tValuePair\x12\x17\n\x03key\x18\x01 \x01(\x0b\x32\n.Ydb.Value\x12\x1b\n\x07payload\x18\x02 \x01(\x0b\x32\n.Ydb.Value\"\xb1\x03\n\x05Value\x12\x14\n\nbool_value\x18\x01 \x01(\x08H\x00\x12\x15\n\x0bint32_value\x18\x02 \x01(\x0fH\x00\x12\x16\n\x0cuint32_value\x18\x03 \x01(\x07H\x00\x12\x15\n\x0bint64_value\x18\x04 \x01(\x10H\x00\x12\x16\n\x0cuint64_value\x18\x05 \x01(\x06H\x00\x12\x15\n\x0b\x66loat_value\x18\x06 \x01(\x02H\x00\x12\x16\n\x0c\x64ouble_value\x18\x07 \x01(\x01H\x00\x12\x15\n\x0b\x62ytes_value\x18\x08 \x01(\x0cH\x00\x12\x14\n\ntext_value\x18\t \x01(\tH\x00\x12\x35\n\x0fnull_flag_value\x18\n \x01(\x0e\x32\x1a.google.protobuf.NullValueH\x00\x12\"\n\x0cnested_value\x18\x0b \x01(\x0b\x32\n.Ydb.ValueH\x00\x12\x11\n\x07low_128\x18\x0f \x01(\x06H\x00\x12\x19\n\x05items\x18\x0c \x03(\x0b\x32\n.Ydb.Value\x12\x1d\n\x05pairs\x18\r \x03(\x0b\x32\x0e.Ydb.ValuePair\x12\x15\n\rvariant_index\x18\x0e \x01(\r\x12\x10\n\x08high_128\x18\x10 \x01(\x06\x42\x07\n\x05value\"@\n\nTypedValue\x12\x17\n\x04type\x18\x01 \x01(\x0b\x32\t.Ydb.Type\x12\x19\n\x05value\x18\x02 \x01(\x0b\x32\n.Ydb.Value\"/\n\x06\x43olumn\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x17\n\x04type\x18\x02 \x01(\x0b\x32\t.Ydb.Type\"V\n\tResultSet\x12\x1c\n\x07\x63olumns\x18\x01 \x03(\x0b\x32\x0b.Ydb.Column\x12\x18\n\x04rows\x18\x02 \x03(\x0b\x32\n.Ydb.Value\x12\x11\n\ttruncated\x18\x03 \x01(\x08\x42T\n\x0etech.ydb.protoB\x0bValueProtosZ2github.com/ydb-platform/ydb-go-genproto/protos/Ydb\xf8\x01\x01\x62\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'protos.ydb_value_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\016tech.ydb.protoB\013ValueProtosZ2github.com/ydb-platform/ydb-go-genproto/protos/Ydb\370\001\001' + _DECIMALTYPE._serialized_start=61 + _DECIMALTYPE._serialized_end=108 + _OPTIONALTYPE._serialized_start=110 + _OPTIONALTYPE._serialized_end=149 + _LISTTYPE._serialized_start=151 + _LISTTYPE._serialized_end=186 + _VARIANTTYPE._serialized_start=188 + _VARIANTTYPE._serialized_end=289 + _TUPLETYPE._serialized_start=291 + _TUPLETYPE._serialized_end=331 + _STRUCTMEMBER._serialized_start=333 + _STRUCTMEMBER._serialized_end=386 + _STRUCTTYPE._serialized_start=388 + _STRUCTTYPE._serialized_end=436 + _DICTTYPE._serialized_start=438 + _DICTTYPE._serialized_end=500 + _TAGGEDTYPE._serialized_start=502 + _TAGGEDTYPE._serialized_end=552 + _PGTYPE._serialized_start=554 + _PGTYPE._serialized_end=649 + _TYPE._serialized_start=652 + _TYPE._serialized_end=1707 + _TYPE_PRIMITIVETYPEID._serialized_start=1270 + _TYPE_PRIMITIVETYPEID._serialized_end=1699 + _VALUEPAIR._serialized_start=1709 + _VALUEPAIR._serialized_end=1774 + _VALUE._serialized_start=1777 + _VALUE._serialized_end=2210 + _TYPEDVALUE._serialized_start=2212 + _TYPEDVALUE._serialized_end=2276 + _COLUMN._serialized_start=2278 + _COLUMN._serialized_end=2325 + _RESULTSET._serialized_start=2327 + _RESULTSET._serialized_end=2413 +# @@protoc_insertion_point(module_scope) diff --git a/ydb/_grpc/v5/protos/ydb_value_pb2.pyi b/ydb/_grpc/v5/protos/ydb_value_pb2.pyi new file mode 100644 index 00000000..8382a771 --- /dev/null +++ b/ydb/_grpc/v5/protos/ydb_value_pb2.pyi @@ -0,0 +1,220 @@ +from google.protobuf import struct_pb2 as _struct_pb2 +from google.protobuf.internal import containers as _containers +from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union + +DESCRIPTOR: _descriptor.FileDescriptor + +class Column(_message.Message): + __slots__ = ["name", "type"] + NAME_FIELD_NUMBER: _ClassVar[int] + TYPE_FIELD_NUMBER: _ClassVar[int] + name: str + type: Type + def __init__(self, name: _Optional[str] = ..., type: _Optional[_Union[Type, _Mapping]] = ...) -> None: ... + +class DecimalType(_message.Message): + __slots__ = ["precision", "scale"] + PRECISION_FIELD_NUMBER: _ClassVar[int] + SCALE_FIELD_NUMBER: _ClassVar[int] + precision: int + scale: int + def __init__(self, precision: _Optional[int] = ..., scale: _Optional[int] = ...) -> None: ... + +class DictType(_message.Message): + __slots__ = ["key", "payload"] + KEY_FIELD_NUMBER: _ClassVar[int] + PAYLOAD_FIELD_NUMBER: _ClassVar[int] + key: Type + payload: Type + def __init__(self, key: _Optional[_Union[Type, _Mapping]] = ..., payload: _Optional[_Union[Type, _Mapping]] = ...) -> None: ... + +class ListType(_message.Message): + __slots__ = ["item"] + ITEM_FIELD_NUMBER: _ClassVar[int] + item: Type + def __init__(self, item: _Optional[_Union[Type, _Mapping]] = ...) -> None: ... + +class OptionalType(_message.Message): + __slots__ = ["item"] + ITEM_FIELD_NUMBER: _ClassVar[int] + item: Type + def __init__(self, item: _Optional[_Union[Type, _Mapping]] = ...) -> None: ... + +class PgType(_message.Message): + __slots__ = ["oid", "type_modifier", "type_name", "typlen", "typmod"] + OID_FIELD_NUMBER: _ClassVar[int] + TYPE_MODIFIER_FIELD_NUMBER: _ClassVar[int] + TYPE_NAME_FIELD_NUMBER: _ClassVar[int] + TYPLEN_FIELD_NUMBER: _ClassVar[int] + TYPMOD_FIELD_NUMBER: _ClassVar[int] + oid: int + type_modifier: str + type_name: str + typlen: int + typmod: int + def __init__(self, type_name: _Optional[str] = ..., type_modifier: _Optional[str] = ..., oid: _Optional[int] = ..., typlen: _Optional[int] = ..., typmod: _Optional[int] = ...) -> None: ... + +class ResultSet(_message.Message): + __slots__ = ["columns", "rows", "truncated"] + COLUMNS_FIELD_NUMBER: _ClassVar[int] + ROWS_FIELD_NUMBER: _ClassVar[int] + TRUNCATED_FIELD_NUMBER: _ClassVar[int] + columns: _containers.RepeatedCompositeFieldContainer[Column] + rows: _containers.RepeatedCompositeFieldContainer[Value] + truncated: bool + def __init__(self, columns: _Optional[_Iterable[_Union[Column, _Mapping]]] = ..., rows: _Optional[_Iterable[_Union[Value, _Mapping]]] = ..., truncated: bool = ...) -> None: ... + +class StructMember(_message.Message): + __slots__ = ["name", "type"] + NAME_FIELD_NUMBER: _ClassVar[int] + TYPE_FIELD_NUMBER: _ClassVar[int] + name: str + type: Type + def __init__(self, name: _Optional[str] = ..., type: _Optional[_Union[Type, _Mapping]] = ...) -> None: ... + +class StructType(_message.Message): + __slots__ = ["members"] + MEMBERS_FIELD_NUMBER: _ClassVar[int] + members: _containers.RepeatedCompositeFieldContainer[StructMember] + def __init__(self, members: _Optional[_Iterable[_Union[StructMember, _Mapping]]] = ...) -> None: ... + +class TaggedType(_message.Message): + __slots__ = ["tag", "type"] + TAG_FIELD_NUMBER: _ClassVar[int] + TYPE_FIELD_NUMBER: _ClassVar[int] + tag: str + type: Type + def __init__(self, tag: _Optional[str] = ..., type: _Optional[_Union[Type, _Mapping]] = ...) -> None: ... + +class TupleType(_message.Message): + __slots__ = ["elements"] + ELEMENTS_FIELD_NUMBER: _ClassVar[int] + elements: _containers.RepeatedCompositeFieldContainer[Type] + def __init__(self, elements: _Optional[_Iterable[_Union[Type, _Mapping]]] = ...) -> None: ... + +class Type(_message.Message): + __slots__ = ["decimal_type", "dict_type", "empty_dict_type", "empty_list_type", "list_type", "null_type", "optional_type", "pg_type", "struct_type", "tagged_type", "tuple_type", "type_id", "variant_type", "void_type"] + class PrimitiveTypeId(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + BOOL: Type.PrimitiveTypeId + DATE: Type.PrimitiveTypeId + DATE32: Type.PrimitiveTypeId + DATETIME: Type.PrimitiveTypeId + DATETIME64: Type.PrimitiveTypeId + DECIMAL_TYPE_FIELD_NUMBER: _ClassVar[int] + DICT_TYPE_FIELD_NUMBER: _ClassVar[int] + DOUBLE: Type.PrimitiveTypeId + DYNUMBER: Type.PrimitiveTypeId + EMPTY_DICT_TYPE_FIELD_NUMBER: _ClassVar[int] + EMPTY_LIST_TYPE_FIELD_NUMBER: _ClassVar[int] + FLOAT: Type.PrimitiveTypeId + INT16: Type.PrimitiveTypeId + INT32: Type.PrimitiveTypeId + INT64: Type.PrimitiveTypeId + INT8: Type.PrimitiveTypeId + INTERVAL: Type.PrimitiveTypeId + INTERVAL64: Type.PrimitiveTypeId + JSON: Type.PrimitiveTypeId + JSON_DOCUMENT: Type.PrimitiveTypeId + LIST_TYPE_FIELD_NUMBER: _ClassVar[int] + NULL_TYPE_FIELD_NUMBER: _ClassVar[int] + OPTIONAL_TYPE_FIELD_NUMBER: _ClassVar[int] + PG_TYPE_FIELD_NUMBER: _ClassVar[int] + PRIMITIVE_TYPE_ID_UNSPECIFIED: Type.PrimitiveTypeId + STRING: Type.PrimitiveTypeId + STRUCT_TYPE_FIELD_NUMBER: _ClassVar[int] + TAGGED_TYPE_FIELD_NUMBER: _ClassVar[int] + TIMESTAMP: Type.PrimitiveTypeId + TIMESTAMP64: Type.PrimitiveTypeId + TUPLE_TYPE_FIELD_NUMBER: _ClassVar[int] + TYPE_ID_FIELD_NUMBER: _ClassVar[int] + TZ_DATE: Type.PrimitiveTypeId + TZ_DATETIME: Type.PrimitiveTypeId + TZ_TIMESTAMP: Type.PrimitiveTypeId + UINT16: Type.PrimitiveTypeId + UINT32: Type.PrimitiveTypeId + UINT64: Type.PrimitiveTypeId + UINT8: Type.PrimitiveTypeId + UTF8: Type.PrimitiveTypeId + UUID: Type.PrimitiveTypeId + VARIANT_TYPE_FIELD_NUMBER: _ClassVar[int] + VOID_TYPE_FIELD_NUMBER: _ClassVar[int] + YSON: Type.PrimitiveTypeId + decimal_type: DecimalType + dict_type: DictType + empty_dict_type: _struct_pb2.NullValue + empty_list_type: _struct_pb2.NullValue + list_type: ListType + null_type: _struct_pb2.NullValue + optional_type: OptionalType + pg_type: PgType + struct_type: StructType + tagged_type: TaggedType + tuple_type: TupleType + type_id: Type.PrimitiveTypeId + variant_type: VariantType + void_type: _struct_pb2.NullValue + def __init__(self, type_id: _Optional[_Union[Type.PrimitiveTypeId, str]] = ..., decimal_type: _Optional[_Union[DecimalType, _Mapping]] = ..., optional_type: _Optional[_Union[OptionalType, _Mapping]] = ..., list_type: _Optional[_Union[ListType, _Mapping]] = ..., tuple_type: _Optional[_Union[TupleType, _Mapping]] = ..., struct_type: _Optional[_Union[StructType, _Mapping]] = ..., dict_type: _Optional[_Union[DictType, _Mapping]] = ..., variant_type: _Optional[_Union[VariantType, _Mapping]] = ..., tagged_type: _Optional[_Union[TaggedType, _Mapping]] = ..., void_type: _Optional[_Union[_struct_pb2.NullValue, str]] = ..., null_type: _Optional[_Union[_struct_pb2.NullValue, str]] = ..., empty_list_type: _Optional[_Union[_struct_pb2.NullValue, str]] = ..., empty_dict_type: _Optional[_Union[_struct_pb2.NullValue, str]] = ..., pg_type: _Optional[_Union[PgType, _Mapping]] = ...) -> None: ... + +class TypedValue(_message.Message): + __slots__ = ["type", "value"] + TYPE_FIELD_NUMBER: _ClassVar[int] + VALUE_FIELD_NUMBER: _ClassVar[int] + type: Type + value: Value + def __init__(self, type: _Optional[_Union[Type, _Mapping]] = ..., value: _Optional[_Union[Value, _Mapping]] = ...) -> None: ... + +class Value(_message.Message): + __slots__ = ["bool_value", "bytes_value", "double_value", "float_value", "high_128", "int32_value", "int64_value", "items", "low_128", "nested_value", "null_flag_value", "pairs", "text_value", "uint32_value", "uint64_value", "variant_index"] + BOOL_VALUE_FIELD_NUMBER: _ClassVar[int] + BYTES_VALUE_FIELD_NUMBER: _ClassVar[int] + DOUBLE_VALUE_FIELD_NUMBER: _ClassVar[int] + FLOAT_VALUE_FIELD_NUMBER: _ClassVar[int] + HIGH_128_FIELD_NUMBER: _ClassVar[int] + INT32_VALUE_FIELD_NUMBER: _ClassVar[int] + INT64_VALUE_FIELD_NUMBER: _ClassVar[int] + ITEMS_FIELD_NUMBER: _ClassVar[int] + LOW_128_FIELD_NUMBER: _ClassVar[int] + NESTED_VALUE_FIELD_NUMBER: _ClassVar[int] + NULL_FLAG_VALUE_FIELD_NUMBER: _ClassVar[int] + PAIRS_FIELD_NUMBER: _ClassVar[int] + TEXT_VALUE_FIELD_NUMBER: _ClassVar[int] + UINT32_VALUE_FIELD_NUMBER: _ClassVar[int] + UINT64_VALUE_FIELD_NUMBER: _ClassVar[int] + VARIANT_INDEX_FIELD_NUMBER: _ClassVar[int] + bool_value: bool + bytes_value: bytes + double_value: float + float_value: float + high_128: int + int32_value: int + int64_value: int + items: _containers.RepeatedCompositeFieldContainer[Value] + low_128: int + nested_value: Value + null_flag_value: _struct_pb2.NullValue + pairs: _containers.RepeatedCompositeFieldContainer[ValuePair] + text_value: str + uint32_value: int + uint64_value: int + variant_index: int + def __init__(self, bool_value: bool = ..., int32_value: _Optional[int] = ..., uint32_value: _Optional[int] = ..., int64_value: _Optional[int] = ..., uint64_value: _Optional[int] = ..., float_value: _Optional[float] = ..., double_value: _Optional[float] = ..., bytes_value: _Optional[bytes] = ..., text_value: _Optional[str] = ..., null_flag_value: _Optional[_Union[_struct_pb2.NullValue, str]] = ..., nested_value: _Optional[_Union[Value, _Mapping]] = ..., low_128: _Optional[int] = ..., items: _Optional[_Iterable[_Union[Value, _Mapping]]] = ..., pairs: _Optional[_Iterable[_Union[ValuePair, _Mapping]]] = ..., variant_index: _Optional[int] = ..., high_128: _Optional[int] = ...) -> None: ... + +class ValuePair(_message.Message): + __slots__ = ["key", "payload"] + KEY_FIELD_NUMBER: _ClassVar[int] + PAYLOAD_FIELD_NUMBER: _ClassVar[int] + key: Value + payload: Value + def __init__(self, key: _Optional[_Union[Value, _Mapping]] = ..., payload: _Optional[_Union[Value, _Mapping]] = ...) -> None: ... + +class VariantType(_message.Message): + __slots__ = ["struct_items", "tuple_items"] + STRUCT_ITEMS_FIELD_NUMBER: _ClassVar[int] + TUPLE_ITEMS_FIELD_NUMBER: _ClassVar[int] + struct_items: StructType + tuple_items: TupleType + def __init__(self, tuple_items: _Optional[_Union[TupleType, _Mapping]] = ..., struct_items: _Optional[_Union[StructType, _Mapping]] = ...) -> None: ... diff --git a/ydb/_grpc/v5/protos/ydb_value_pb2_grpc.py b/ydb/_grpc/v5/protos/ydb_value_pb2_grpc.py new file mode 100644 index 00000000..2daafffe --- /dev/null +++ b/ydb/_grpc/v5/protos/ydb_value_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/ydb/_grpc/v5/ydb_auth_v1_pb2.py b/ydb/_grpc/v5/ydb_auth_v1_pb2.py new file mode 100644 index 00000000..ec4e9027 --- /dev/null +++ b/ydb/_grpc/v5/ydb_auth_v1_pb2.py @@ -0,0 +1,28 @@ +# -*- coding: utf-8 -*- +# flake8: noqa +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: ydb_auth_v1.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from ydb._grpc.v5.protos import ydb_auth_pb2 as protos_dot_ydb__auth__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x11ydb_auth_v1.proto\x12\x0bYdb.Auth.V1\x1a\x15protos/ydb_auth.proto2G\n\x0b\x41uthService\x12\x38\n\x05Login\x12\x16.Ydb.Auth.LoginRequest\x1a\x17.Ydb.Auth.LoginResponseBM\n\x16tech.ydb.proto.auth.v1Z3github.com/ydb-platform/ydb-go-genproto/Ydb_Auth_V1b\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'ydb_auth_v1_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\026tech.ydb.proto.auth.v1Z3github.com/ydb-platform/ydb-go-genproto/Ydb_Auth_V1' + _AUTHSERVICE._serialized_start=57 + _AUTHSERVICE._serialized_end=128 +# @@protoc_insertion_point(module_scope) diff --git a/ydb/_grpc/v5/ydb_auth_v1_pb2.pyi b/ydb/_grpc/v5/ydb_auth_v1_pb2.pyi new file mode 100644 index 00000000..d0d39926 --- /dev/null +++ b/ydb/_grpc/v5/ydb_auth_v1_pb2.pyi @@ -0,0 +1,5 @@ +from protos import ydb_auth_pb2 as _ydb_auth_pb2 +from google.protobuf import descriptor as _descriptor +from typing import ClassVar as _ClassVar + +DESCRIPTOR: _descriptor.FileDescriptor diff --git a/ydb/_grpc/v5/ydb_auth_v1_pb2_grpc.py b/ydb/_grpc/v5/ydb_auth_v1_pb2_grpc.py new file mode 100644 index 00000000..91d9543a --- /dev/null +++ b/ydb/_grpc/v5/ydb_auth_v1_pb2_grpc.py @@ -0,0 +1,67 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + +from ydb._grpc.v5.protos import ydb_auth_pb2 as protos_dot_ydb__auth__pb2 + + +class AuthServiceStub(object): + """Missing associated documentation comment in .proto file.""" + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.Login = channel.unary_unary( + '/Ydb.Auth.V1.AuthService/Login', + request_serializer=protos_dot_ydb__auth__pb2.LoginRequest.SerializeToString, + response_deserializer=protos_dot_ydb__auth__pb2.LoginResponse.FromString, + ) + + +class AuthServiceServicer(object): + """Missing associated documentation comment in .proto file.""" + + def Login(self, request, context): + """Perform login using built-in auth system + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_AuthServiceServicer_to_server(servicer, server): + rpc_method_handlers = { + 'Login': grpc.unary_unary_rpc_method_handler( + servicer.Login, + request_deserializer=protos_dot_ydb__auth__pb2.LoginRequest.FromString, + response_serializer=protos_dot_ydb__auth__pb2.LoginResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'Ydb.Auth.V1.AuthService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + + + # This class is part of an EXPERIMENTAL API. +class AuthService(object): + """Missing associated documentation comment in .proto file.""" + + @staticmethod + def Login(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/Ydb.Auth.V1.AuthService/Login', + protos_dot_ydb__auth__pb2.LoginRequest.SerializeToString, + protos_dot_ydb__auth__pb2.LoginResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/ydb/_grpc/v5/ydb_cms_v1_pb2.py b/ydb/_grpc/v5/ydb_cms_v1_pb2.py new file mode 100644 index 00000000..b883b3c2 --- /dev/null +++ b/ydb/_grpc/v5/ydb_cms_v1_pb2.py @@ -0,0 +1,28 @@ +# -*- coding: utf-8 -*- +# flake8: noqa +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: ydb_cms_v1.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from ydb._grpc.v5.protos import ydb_cms_pb2 as protos_dot_ydb__cms__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x10ydb_cms_v1.proto\x12\nYdb.Cms.V1\x1a\x14protos/ydb_cms.proto2\x9c\x04\n\nCmsService\x12Q\n\x0e\x43reateDatabase\x12\x1e.Ydb.Cms.CreateDatabaseRequest\x1a\x1f.Ydb.Cms.CreateDatabaseResponse\x12Z\n\x11GetDatabaseStatus\x12!.Ydb.Cms.GetDatabaseStatusRequest\x1a\".Ydb.Cms.GetDatabaseStatusResponse\x12N\n\rAlterDatabase\x12\x1d.Ydb.Cms.AlterDatabaseRequest\x1a\x1e.Ydb.Cms.AlterDatabaseResponse\x12N\n\rListDatabases\x12\x1d.Ydb.Cms.ListDatabasesRequest\x1a\x1e.Ydb.Cms.ListDatabasesResponse\x12Q\n\x0eRemoveDatabase\x12\x1e.Ydb.Cms.RemoveDatabaseRequest\x1a\x1f.Ydb.Cms.RemoveDatabaseResponse\x12l\n\x17\x44\x65scribeDatabaseOptions\x12\'.Ydb.Cms.DescribeDatabaseOptionsRequest\x1a(.Ydb.Cms.DescribeDatabaseOptionsResponseBK\n\x15tech.ydb.proto.cms.v1Z2github.com/ydb-platform/ydb-go-genproto/Ydb_Cms_V1b\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'ydb_cms_v1_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\025tech.ydb.proto.cms.v1Z2github.com/ydb-platform/ydb-go-genproto/Ydb_Cms_V1' + _CMSSERVICE._serialized_start=55 + _CMSSERVICE._serialized_end=595 +# @@protoc_insertion_point(module_scope) diff --git a/ydb/_grpc/v5/ydb_cms_v1_pb2.pyi b/ydb/_grpc/v5/ydb_cms_v1_pb2.pyi new file mode 100644 index 00000000..1923a252 --- /dev/null +++ b/ydb/_grpc/v5/ydb_cms_v1_pb2.pyi @@ -0,0 +1,5 @@ +from protos import ydb_cms_pb2 as _ydb_cms_pb2 +from google.protobuf import descriptor as _descriptor +from typing import ClassVar as _ClassVar + +DESCRIPTOR: _descriptor.FileDescriptor diff --git a/ydb/_grpc/v5/ydb_cms_v1_pb2_grpc.py b/ydb/_grpc/v5/ydb_cms_v1_pb2_grpc.py new file mode 100644 index 00000000..2547d580 --- /dev/null +++ b/ydb/_grpc/v5/ydb_cms_v1_pb2_grpc.py @@ -0,0 +1,249 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + +from ydb._grpc.v5.protos import ydb_cms_pb2 as protos_dot_ydb__cms__pb2 + + +class CmsServiceStub(object): + """CMS stands for Cluster Management System. CmsService provides some + functionality for managing cluster, i.e. managing YDB Database + instances for example. + + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.CreateDatabase = channel.unary_unary( + '/Ydb.Cms.V1.CmsService/CreateDatabase', + request_serializer=protos_dot_ydb__cms__pb2.CreateDatabaseRequest.SerializeToString, + response_deserializer=protos_dot_ydb__cms__pb2.CreateDatabaseResponse.FromString, + ) + self.GetDatabaseStatus = channel.unary_unary( + '/Ydb.Cms.V1.CmsService/GetDatabaseStatus', + request_serializer=protos_dot_ydb__cms__pb2.GetDatabaseStatusRequest.SerializeToString, + response_deserializer=protos_dot_ydb__cms__pb2.GetDatabaseStatusResponse.FromString, + ) + self.AlterDatabase = channel.unary_unary( + '/Ydb.Cms.V1.CmsService/AlterDatabase', + request_serializer=protos_dot_ydb__cms__pb2.AlterDatabaseRequest.SerializeToString, + response_deserializer=protos_dot_ydb__cms__pb2.AlterDatabaseResponse.FromString, + ) + self.ListDatabases = channel.unary_unary( + '/Ydb.Cms.V1.CmsService/ListDatabases', + request_serializer=protos_dot_ydb__cms__pb2.ListDatabasesRequest.SerializeToString, + response_deserializer=protos_dot_ydb__cms__pb2.ListDatabasesResponse.FromString, + ) + self.RemoveDatabase = channel.unary_unary( + '/Ydb.Cms.V1.CmsService/RemoveDatabase', + request_serializer=protos_dot_ydb__cms__pb2.RemoveDatabaseRequest.SerializeToString, + response_deserializer=protos_dot_ydb__cms__pb2.RemoveDatabaseResponse.FromString, + ) + self.DescribeDatabaseOptions = channel.unary_unary( + '/Ydb.Cms.V1.CmsService/DescribeDatabaseOptions', + request_serializer=protos_dot_ydb__cms__pb2.DescribeDatabaseOptionsRequest.SerializeToString, + response_deserializer=protos_dot_ydb__cms__pb2.DescribeDatabaseOptionsResponse.FromString, + ) + + +class CmsServiceServicer(object): + """CMS stands for Cluster Management System. CmsService provides some + functionality for managing cluster, i.e. managing YDB Database + instances for example. + + """ + + def CreateDatabase(self, request, context): + """Create a new database. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetDatabaseStatus(self, request, context): + """Get current database's status. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def AlterDatabase(self, request, context): + """Alter database resources. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ListDatabases(self, request, context): + """List all databases. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def RemoveDatabase(self, request, context): + """Remove database. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def DescribeDatabaseOptions(self, request, context): + """Describe supported database options. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_CmsServiceServicer_to_server(servicer, server): + rpc_method_handlers = { + 'CreateDatabase': grpc.unary_unary_rpc_method_handler( + servicer.CreateDatabase, + request_deserializer=protos_dot_ydb__cms__pb2.CreateDatabaseRequest.FromString, + response_serializer=protos_dot_ydb__cms__pb2.CreateDatabaseResponse.SerializeToString, + ), + 'GetDatabaseStatus': grpc.unary_unary_rpc_method_handler( + servicer.GetDatabaseStatus, + request_deserializer=protos_dot_ydb__cms__pb2.GetDatabaseStatusRequest.FromString, + response_serializer=protos_dot_ydb__cms__pb2.GetDatabaseStatusResponse.SerializeToString, + ), + 'AlterDatabase': grpc.unary_unary_rpc_method_handler( + servicer.AlterDatabase, + request_deserializer=protos_dot_ydb__cms__pb2.AlterDatabaseRequest.FromString, + response_serializer=protos_dot_ydb__cms__pb2.AlterDatabaseResponse.SerializeToString, + ), + 'ListDatabases': grpc.unary_unary_rpc_method_handler( + servicer.ListDatabases, + request_deserializer=protos_dot_ydb__cms__pb2.ListDatabasesRequest.FromString, + response_serializer=protos_dot_ydb__cms__pb2.ListDatabasesResponse.SerializeToString, + ), + 'RemoveDatabase': grpc.unary_unary_rpc_method_handler( + servicer.RemoveDatabase, + request_deserializer=protos_dot_ydb__cms__pb2.RemoveDatabaseRequest.FromString, + response_serializer=protos_dot_ydb__cms__pb2.RemoveDatabaseResponse.SerializeToString, + ), + 'DescribeDatabaseOptions': grpc.unary_unary_rpc_method_handler( + servicer.DescribeDatabaseOptions, + request_deserializer=protos_dot_ydb__cms__pb2.DescribeDatabaseOptionsRequest.FromString, + response_serializer=protos_dot_ydb__cms__pb2.DescribeDatabaseOptionsResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'Ydb.Cms.V1.CmsService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + + + # This class is part of an EXPERIMENTAL API. +class CmsService(object): + """CMS stands for Cluster Management System. CmsService provides some + functionality for managing cluster, i.e. managing YDB Database + instances for example. + + """ + + @staticmethod + def CreateDatabase(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/Ydb.Cms.V1.CmsService/CreateDatabase', + protos_dot_ydb__cms__pb2.CreateDatabaseRequest.SerializeToString, + protos_dot_ydb__cms__pb2.CreateDatabaseResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetDatabaseStatus(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/Ydb.Cms.V1.CmsService/GetDatabaseStatus', + protos_dot_ydb__cms__pb2.GetDatabaseStatusRequest.SerializeToString, + protos_dot_ydb__cms__pb2.GetDatabaseStatusResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def AlterDatabase(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/Ydb.Cms.V1.CmsService/AlterDatabase', + protos_dot_ydb__cms__pb2.AlterDatabaseRequest.SerializeToString, + protos_dot_ydb__cms__pb2.AlterDatabaseResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ListDatabases(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/Ydb.Cms.V1.CmsService/ListDatabases', + protos_dot_ydb__cms__pb2.ListDatabasesRequest.SerializeToString, + protos_dot_ydb__cms__pb2.ListDatabasesResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def RemoveDatabase(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/Ydb.Cms.V1.CmsService/RemoveDatabase', + protos_dot_ydb__cms__pb2.RemoveDatabaseRequest.SerializeToString, + protos_dot_ydb__cms__pb2.RemoveDatabaseResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def DescribeDatabaseOptions(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/Ydb.Cms.V1.CmsService/DescribeDatabaseOptions', + protos_dot_ydb__cms__pb2.DescribeDatabaseOptionsRequest.SerializeToString, + protos_dot_ydb__cms__pb2.DescribeDatabaseOptionsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/ydb/_grpc/v5/ydb_coordination_v1_pb2.py b/ydb/_grpc/v5/ydb_coordination_v1_pb2.py new file mode 100644 index 00000000..eb8586f4 --- /dev/null +++ b/ydb/_grpc/v5/ydb_coordination_v1_pb2.py @@ -0,0 +1,28 @@ +# -*- coding: utf-8 -*- +# flake8: noqa +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: ydb_coordination_v1.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from ydb._grpc.v5.protos import ydb_coordination_pb2 as protos_dot_ydb__coordination__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x19ydb_coordination_v1.proto\x12\x13Ydb.Coordination.V1\x1a\x1dprotos/ydb_coordination.proto2\xca\x03\n\x13\x43oordinationService\x12R\n\x07Session\x12 .Ydb.Coordination.SessionRequest\x1a!.Ydb.Coordination.SessionResponse(\x01\x30\x01\x12W\n\nCreateNode\x12#.Ydb.Coordination.CreateNodeRequest\x1a$.Ydb.Coordination.CreateNodeResponse\x12T\n\tAlterNode\x12\".Ydb.Coordination.AlterNodeRequest\x1a#.Ydb.Coordination.AlterNodeResponse\x12Q\n\x08\x44ropNode\x12!.Ydb.Coordination.DropNodeRequest\x1a\".Ydb.Coordination.DropNodeResponse\x12]\n\x0c\x44\x65scribeNode\x12%.Ydb.Coordination.DescribeNodeRequest\x1a&.Ydb.Coordination.DescribeNodeResponseBq\n\x1etech.ydb.proto.coordination.v1B\x10\x43oordinationGrpcP\x01Z;github.com/ydb-platform/ydb-go-genproto/Ydb_Coordination_V1b\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'ydb_coordination_v1_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\036tech.ydb.proto.coordination.v1B\020CoordinationGrpcP\001Z;github.com/ydb-platform/ydb-go-genproto/Ydb_Coordination_V1' + _COORDINATIONSERVICE._serialized_start=82 + _COORDINATIONSERVICE._serialized_end=540 +# @@protoc_insertion_point(module_scope) diff --git a/ydb/_grpc/v5/ydb_coordination_v1_pb2.pyi b/ydb/_grpc/v5/ydb_coordination_v1_pb2.pyi new file mode 100644 index 00000000..b4ceeeee --- /dev/null +++ b/ydb/_grpc/v5/ydb_coordination_v1_pb2.pyi @@ -0,0 +1,5 @@ +from protos import ydb_coordination_pb2 as _ydb_coordination_pb2 +from google.protobuf import descriptor as _descriptor +from typing import ClassVar as _ClassVar + +DESCRIPTOR: _descriptor.FileDescriptor diff --git a/ydb/_grpc/v5/ydb_coordination_v1_pb2_grpc.py b/ydb/_grpc/v5/ydb_coordination_v1_pb2_grpc.py new file mode 100644 index 00000000..c1c72ec2 --- /dev/null +++ b/ydb/_grpc/v5/ydb_coordination_v1_pb2_grpc.py @@ -0,0 +1,210 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + +from ydb._grpc.v5.protos import ydb_coordination_pb2 as protos_dot_ydb__coordination__pb2 + + +class CoordinationServiceStub(object): + """Missing associated documentation comment in .proto file.""" + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.Session = channel.stream_stream( + '/Ydb.Coordination.V1.CoordinationService/Session', + request_serializer=protos_dot_ydb__coordination__pb2.SessionRequest.SerializeToString, + response_deserializer=protos_dot_ydb__coordination__pb2.SessionResponse.FromString, + ) + self.CreateNode = channel.unary_unary( + '/Ydb.Coordination.V1.CoordinationService/CreateNode', + request_serializer=protos_dot_ydb__coordination__pb2.CreateNodeRequest.SerializeToString, + response_deserializer=protos_dot_ydb__coordination__pb2.CreateNodeResponse.FromString, + ) + self.AlterNode = channel.unary_unary( + '/Ydb.Coordination.V1.CoordinationService/AlterNode', + request_serializer=protos_dot_ydb__coordination__pb2.AlterNodeRequest.SerializeToString, + response_deserializer=protos_dot_ydb__coordination__pb2.AlterNodeResponse.FromString, + ) + self.DropNode = channel.unary_unary( + '/Ydb.Coordination.V1.CoordinationService/DropNode', + request_serializer=protos_dot_ydb__coordination__pb2.DropNodeRequest.SerializeToString, + response_deserializer=protos_dot_ydb__coordination__pb2.DropNodeResponse.FromString, + ) + self.DescribeNode = channel.unary_unary( + '/Ydb.Coordination.V1.CoordinationService/DescribeNode', + request_serializer=protos_dot_ydb__coordination__pb2.DescribeNodeRequest.SerializeToString, + response_deserializer=protos_dot_ydb__coordination__pb2.DescribeNodeResponse.FromString, + ) + + +class CoordinationServiceServicer(object): + """Missing associated documentation comment in .proto file.""" + + def Session(self, request_iterator, context): + """* + Bidirectional stream used to establish a session with a coordination node + + Relevant APIs for managing semaphores, distributed locking, creating or + restoring a previously established session are described using nested + messages in SessionRequest and SessionResponse. Session is established + with a specific coordination node (previously created using CreateNode + below) and semaphores are local to that coordination node. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def CreateNode(self, request, context): + """Creates a new coordination node + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def AlterNode(self, request, context): + """Modifies settings of a coordination node + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def DropNode(self, request, context): + """Drops a coordination node + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def DescribeNode(self, request, context): + """Describes a coordination node + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_CoordinationServiceServicer_to_server(servicer, server): + rpc_method_handlers = { + 'Session': grpc.stream_stream_rpc_method_handler( + servicer.Session, + request_deserializer=protos_dot_ydb__coordination__pb2.SessionRequest.FromString, + response_serializer=protos_dot_ydb__coordination__pb2.SessionResponse.SerializeToString, + ), + 'CreateNode': grpc.unary_unary_rpc_method_handler( + servicer.CreateNode, + request_deserializer=protos_dot_ydb__coordination__pb2.CreateNodeRequest.FromString, + response_serializer=protos_dot_ydb__coordination__pb2.CreateNodeResponse.SerializeToString, + ), + 'AlterNode': grpc.unary_unary_rpc_method_handler( + servicer.AlterNode, + request_deserializer=protos_dot_ydb__coordination__pb2.AlterNodeRequest.FromString, + response_serializer=protos_dot_ydb__coordination__pb2.AlterNodeResponse.SerializeToString, + ), + 'DropNode': grpc.unary_unary_rpc_method_handler( + servicer.DropNode, + request_deserializer=protos_dot_ydb__coordination__pb2.DropNodeRequest.FromString, + response_serializer=protos_dot_ydb__coordination__pb2.DropNodeResponse.SerializeToString, + ), + 'DescribeNode': grpc.unary_unary_rpc_method_handler( + servicer.DescribeNode, + request_deserializer=protos_dot_ydb__coordination__pb2.DescribeNodeRequest.FromString, + response_serializer=protos_dot_ydb__coordination__pb2.DescribeNodeResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'Ydb.Coordination.V1.CoordinationService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + + + # This class is part of an EXPERIMENTAL API. +class CoordinationService(object): + """Missing associated documentation comment in .proto file.""" + + @staticmethod + def Session(request_iterator, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.stream_stream(request_iterator, target, '/Ydb.Coordination.V1.CoordinationService/Session', + protos_dot_ydb__coordination__pb2.SessionRequest.SerializeToString, + protos_dot_ydb__coordination__pb2.SessionResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def CreateNode(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/Ydb.Coordination.V1.CoordinationService/CreateNode', + protos_dot_ydb__coordination__pb2.CreateNodeRequest.SerializeToString, + protos_dot_ydb__coordination__pb2.CreateNodeResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def AlterNode(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/Ydb.Coordination.V1.CoordinationService/AlterNode', + protos_dot_ydb__coordination__pb2.AlterNodeRequest.SerializeToString, + protos_dot_ydb__coordination__pb2.AlterNodeResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def DropNode(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/Ydb.Coordination.V1.CoordinationService/DropNode', + protos_dot_ydb__coordination__pb2.DropNodeRequest.SerializeToString, + protos_dot_ydb__coordination__pb2.DropNodeResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def DescribeNode(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/Ydb.Coordination.V1.CoordinationService/DescribeNode', + protos_dot_ydb__coordination__pb2.DescribeNodeRequest.SerializeToString, + protos_dot_ydb__coordination__pb2.DescribeNodeResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/ydb/_grpc/v5/ydb_discovery_v1_pb2.py b/ydb/_grpc/v5/ydb_discovery_v1_pb2.py new file mode 100644 index 00000000..ce661c89 --- /dev/null +++ b/ydb/_grpc/v5/ydb_discovery_v1_pb2.py @@ -0,0 +1,28 @@ +# -*- coding: utf-8 -*- +# flake8: noqa +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: ydb_discovery_v1.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from ydb._grpc.v5.protos import ydb_discovery_pb2 as protos_dot_ydb__discovery__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x16ydb_discovery_v1.proto\x12\x10Ydb.Discovery.V1\x1a\x1aprotos/ydb_discovery.proto2\xb5\x01\n\x10\x44iscoveryService\x12Z\n\rListEndpoints\x12#.Ydb.Discovery.ListEndpointsRequest\x1a$.Ydb.Discovery.ListEndpointsResponse\x12\x45\n\x06WhoAmI\x12\x1c.Ydb.Discovery.WhoAmIRequest\x1a\x1d.Ydb.Discovery.WhoAmIResponseBW\n\x1btech.ydb.proto.discovery.v1Z8github.com/ydb-platform/ydb-go-genproto/Ydb_Discovery_V1b\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'ydb_discovery_v1_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\033tech.ydb.proto.discovery.v1Z8github.com/ydb-platform/ydb-go-genproto/Ydb_Discovery_V1' + _DISCOVERYSERVICE._serialized_start=73 + _DISCOVERYSERVICE._serialized_end=254 +# @@protoc_insertion_point(module_scope) diff --git a/ydb/_grpc/v5/ydb_discovery_v1_pb2.pyi b/ydb/_grpc/v5/ydb_discovery_v1_pb2.pyi new file mode 100644 index 00000000..96e5859a --- /dev/null +++ b/ydb/_grpc/v5/ydb_discovery_v1_pb2.pyi @@ -0,0 +1,5 @@ +from protos import ydb_discovery_pb2 as _ydb_discovery_pb2 +from google.protobuf import descriptor as _descriptor +from typing import ClassVar as _ClassVar + +DESCRIPTOR: _descriptor.FileDescriptor diff --git a/ydb/_grpc/v5/ydb_discovery_v1_pb2_grpc.py b/ydb/_grpc/v5/ydb_discovery_v1_pb2_grpc.py new file mode 100644 index 00000000..65da34c7 --- /dev/null +++ b/ydb/_grpc/v5/ydb_discovery_v1_pb2_grpc.py @@ -0,0 +1,99 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + +from ydb._grpc.v5.protos import ydb_discovery_pb2 as protos_dot_ydb__discovery__pb2 + + +class DiscoveryServiceStub(object): + """Missing associated documentation comment in .proto file.""" + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.ListEndpoints = channel.unary_unary( + '/Ydb.Discovery.V1.DiscoveryService/ListEndpoints', + request_serializer=protos_dot_ydb__discovery__pb2.ListEndpointsRequest.SerializeToString, + response_deserializer=protos_dot_ydb__discovery__pb2.ListEndpointsResponse.FromString, + ) + self.WhoAmI = channel.unary_unary( + '/Ydb.Discovery.V1.DiscoveryService/WhoAmI', + request_serializer=protos_dot_ydb__discovery__pb2.WhoAmIRequest.SerializeToString, + response_deserializer=protos_dot_ydb__discovery__pb2.WhoAmIResponse.FromString, + ) + + +class DiscoveryServiceServicer(object): + """Missing associated documentation comment in .proto file.""" + + def ListEndpoints(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def WhoAmI(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_DiscoveryServiceServicer_to_server(servicer, server): + rpc_method_handlers = { + 'ListEndpoints': grpc.unary_unary_rpc_method_handler( + servicer.ListEndpoints, + request_deserializer=protos_dot_ydb__discovery__pb2.ListEndpointsRequest.FromString, + response_serializer=protos_dot_ydb__discovery__pb2.ListEndpointsResponse.SerializeToString, + ), + 'WhoAmI': grpc.unary_unary_rpc_method_handler( + servicer.WhoAmI, + request_deserializer=protos_dot_ydb__discovery__pb2.WhoAmIRequest.FromString, + response_serializer=protos_dot_ydb__discovery__pb2.WhoAmIResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'Ydb.Discovery.V1.DiscoveryService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + + + # This class is part of an EXPERIMENTAL API. +class DiscoveryService(object): + """Missing associated documentation comment in .proto file.""" + + @staticmethod + def ListEndpoints(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/Ydb.Discovery.V1.DiscoveryService/ListEndpoints', + protos_dot_ydb__discovery__pb2.ListEndpointsRequest.SerializeToString, + protos_dot_ydb__discovery__pb2.ListEndpointsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def WhoAmI(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/Ydb.Discovery.V1.DiscoveryService/WhoAmI', + protos_dot_ydb__discovery__pb2.WhoAmIRequest.SerializeToString, + protos_dot_ydb__discovery__pb2.WhoAmIResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/ydb/_grpc/v5/ydb_export_v1_pb2.py b/ydb/_grpc/v5/ydb_export_v1_pb2.py new file mode 100644 index 00000000..de125567 --- /dev/null +++ b/ydb/_grpc/v5/ydb_export_v1_pb2.py @@ -0,0 +1,28 @@ +# -*- coding: utf-8 -*- +# flake8: noqa +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: ydb_export_v1.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from ydb._grpc.v5.protos import ydb_export_pb2 as protos_dot_ydb__export__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x13ydb_export_v1.proto\x12\rYdb.Export.V1\x1a\x17protos/ydb_export.proto2\xa9\x01\n\rExportService\x12K\n\nExportToYt\x12\x1d.Ydb.Export.ExportToYtRequest\x1a\x1e.Ydb.Export.ExportToYtResponse\x12K\n\nExportToS3\x12\x1d.Ydb.Export.ExportToS3Request\x1a\x1e.Ydb.Export.ExportToS3ResponseBQ\n\x18tech.ydb.proto.export.v1Z5github.com/ydb-platform/ydb-go-genproto/Ydb_Export_V1b\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'ydb_export_v1_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\030tech.ydb.proto.export.v1Z5github.com/ydb-platform/ydb-go-genproto/Ydb_Export_V1' + _EXPORTSERVICE._serialized_start=64 + _EXPORTSERVICE._serialized_end=233 +# @@protoc_insertion_point(module_scope) diff --git a/ydb/_grpc/v5/ydb_export_v1_pb2.pyi b/ydb/_grpc/v5/ydb_export_v1_pb2.pyi new file mode 100644 index 00000000..9085c886 --- /dev/null +++ b/ydb/_grpc/v5/ydb_export_v1_pb2.pyi @@ -0,0 +1,5 @@ +from protos import ydb_export_pb2 as _ydb_export_pb2 +from google.protobuf import descriptor as _descriptor +from typing import ClassVar as _ClassVar + +DESCRIPTOR: _descriptor.FileDescriptor diff --git a/ydb/_grpc/v5/ydb_export_v1_pb2_grpc.py b/ydb/_grpc/v5/ydb_export_v1_pb2_grpc.py new file mode 100644 index 00000000..34820dec --- /dev/null +++ b/ydb/_grpc/v5/ydb_export_v1_pb2_grpc.py @@ -0,0 +1,103 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + +from ydb._grpc.v5.protos import ydb_export_pb2 as protos_dot_ydb__export__pb2 + + +class ExportServiceStub(object): + """Missing associated documentation comment in .proto file.""" + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.ExportToYt = channel.unary_unary( + '/Ydb.Export.V1.ExportService/ExportToYt', + request_serializer=protos_dot_ydb__export__pb2.ExportToYtRequest.SerializeToString, + response_deserializer=protos_dot_ydb__export__pb2.ExportToYtResponse.FromString, + ) + self.ExportToS3 = channel.unary_unary( + '/Ydb.Export.V1.ExportService/ExportToS3', + request_serializer=protos_dot_ydb__export__pb2.ExportToS3Request.SerializeToString, + response_deserializer=protos_dot_ydb__export__pb2.ExportToS3Response.FromString, + ) + + +class ExportServiceServicer(object): + """Missing associated documentation comment in .proto file.""" + + def ExportToYt(self, request, context): + """Exports data to YT. + Method starts an asynchronous operation that can be cancelled while it is in progress. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ExportToS3(self, request, context): + """Exports data to S3. + Method starts an asynchronous operation that can be cancelled while it is in progress. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_ExportServiceServicer_to_server(servicer, server): + rpc_method_handlers = { + 'ExportToYt': grpc.unary_unary_rpc_method_handler( + servicer.ExportToYt, + request_deserializer=protos_dot_ydb__export__pb2.ExportToYtRequest.FromString, + response_serializer=protos_dot_ydb__export__pb2.ExportToYtResponse.SerializeToString, + ), + 'ExportToS3': grpc.unary_unary_rpc_method_handler( + servicer.ExportToS3, + request_deserializer=protos_dot_ydb__export__pb2.ExportToS3Request.FromString, + response_serializer=protos_dot_ydb__export__pb2.ExportToS3Response.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'Ydb.Export.V1.ExportService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + + + # This class is part of an EXPERIMENTAL API. +class ExportService(object): + """Missing associated documentation comment in .proto file.""" + + @staticmethod + def ExportToYt(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/Ydb.Export.V1.ExportService/ExportToYt', + protos_dot_ydb__export__pb2.ExportToYtRequest.SerializeToString, + protos_dot_ydb__export__pb2.ExportToYtResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ExportToS3(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/Ydb.Export.V1.ExportService/ExportToS3', + protos_dot_ydb__export__pb2.ExportToS3Request.SerializeToString, + protos_dot_ydb__export__pb2.ExportToS3Response.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/ydb/_grpc/v5/ydb_federation_discovery_v1_pb2.py b/ydb/_grpc/v5/ydb_federation_discovery_v1_pb2.py new file mode 100644 index 00000000..f8caf2eb --- /dev/null +++ b/ydb/_grpc/v5/ydb_federation_discovery_v1_pb2.py @@ -0,0 +1,28 @@ +# -*- coding: utf-8 -*- +# flake8: noqa +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: ydb_federation_discovery_v1.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from ydb._grpc.v5.protos import ydb_federation_discovery_pb2 as protos_dot_ydb__federation__discovery__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n!ydb_federation_discovery_v1.proto\x12\x1aYdb.FederationDiscovery.V1\x1a%protos/ydb_federation_discovery.proto2\xab\x01\n\x1a\x46\x65\x64\x65rationDiscoveryService\x12\x8c\x01\n\x17ListFederationDatabases\x12\x37.Ydb.FederationDiscovery.ListFederationDatabasesRequest\x1a\x38.Ydb.FederationDiscovery.ListFederationDatabasesResponseBl\n&tech.ydb.proto.federation.discovery.v1ZBgithub.com/ydb-platform/ydb-go-genproto/Ydb_FederationDiscovery_V1b\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'ydb_federation_discovery_v1_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n&tech.ydb.proto.federation.discovery.v1ZBgithub.com/ydb-platform/ydb-go-genproto/Ydb_FederationDiscovery_V1' + _FEDERATIONDISCOVERYSERVICE._serialized_start=105 + _FEDERATIONDISCOVERYSERVICE._serialized_end=276 +# @@protoc_insertion_point(module_scope) diff --git a/ydb/_grpc/v5/ydb_federation_discovery_v1_pb2.pyi b/ydb/_grpc/v5/ydb_federation_discovery_v1_pb2.pyi new file mode 100644 index 00000000..82f43ca2 --- /dev/null +++ b/ydb/_grpc/v5/ydb_federation_discovery_v1_pb2.pyi @@ -0,0 +1,5 @@ +from protos import ydb_federation_discovery_pb2 as _ydb_federation_discovery_pb2 +from google.protobuf import descriptor as _descriptor +from typing import ClassVar as _ClassVar + +DESCRIPTOR: _descriptor.FileDescriptor diff --git a/ydb/_grpc/v5/ydb_federation_discovery_v1_pb2_grpc.py b/ydb/_grpc/v5/ydb_federation_discovery_v1_pb2_grpc.py new file mode 100644 index 00000000..b161dd5c --- /dev/null +++ b/ydb/_grpc/v5/ydb_federation_discovery_v1_pb2_grpc.py @@ -0,0 +1,67 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + +from ydb._grpc.v5.protos import ydb_federation_discovery_pb2 as protos_dot_ydb__federation__discovery__pb2 + + +class FederationDiscoveryServiceStub(object): + """Missing associated documentation comment in .proto file.""" + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.ListFederationDatabases = channel.unary_unary( + '/Ydb.FederationDiscovery.V1.FederationDiscoveryService/ListFederationDatabases', + request_serializer=protos_dot_ydb__federation__discovery__pb2.ListFederationDatabasesRequest.SerializeToString, + response_deserializer=protos_dot_ydb__federation__discovery__pb2.ListFederationDatabasesResponse.FromString, + ) + + +class FederationDiscoveryServiceServicer(object): + """Missing associated documentation comment in .proto file.""" + + def ListFederationDatabases(self, request, context): + """Get list of databases. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_FederationDiscoveryServiceServicer_to_server(servicer, server): + rpc_method_handlers = { + 'ListFederationDatabases': grpc.unary_unary_rpc_method_handler( + servicer.ListFederationDatabases, + request_deserializer=protos_dot_ydb__federation__discovery__pb2.ListFederationDatabasesRequest.FromString, + response_serializer=protos_dot_ydb__federation__discovery__pb2.ListFederationDatabasesResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'Ydb.FederationDiscovery.V1.FederationDiscoveryService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + + + # This class is part of an EXPERIMENTAL API. +class FederationDiscoveryService(object): + """Missing associated documentation comment in .proto file.""" + + @staticmethod + def ListFederationDatabases(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/Ydb.FederationDiscovery.V1.FederationDiscoveryService/ListFederationDatabases', + protos_dot_ydb__federation__discovery__pb2.ListFederationDatabasesRequest.SerializeToString, + protos_dot_ydb__federation__discovery__pb2.ListFederationDatabasesResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/ydb/_grpc/v5/ydb_import_v1_pb2.py b/ydb/_grpc/v5/ydb_import_v1_pb2.py new file mode 100644 index 00000000..78bef56e --- /dev/null +++ b/ydb/_grpc/v5/ydb_import_v1_pb2.py @@ -0,0 +1,28 @@ +# -*- coding: utf-8 -*- +# flake8: noqa +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: ydb_import_v1.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from ydb._grpc.v5.protos import ydb_import_pb2 as protos_dot_ydb__import__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x13ydb_import_v1.proto\x12\rYdb.Import.V1\x1a\x17protos/ydb_import.proto2\xaf\x01\n\rImportService\x12Q\n\x0cImportFromS3\x12\x1f.Ydb.Import.ImportFromS3Request\x1a .Ydb.Import.ImportFromS3Response\x12K\n\nImportData\x12\x1d.Ydb.Import.ImportDataRequest\x1a\x1e.Ydb.Import.ImportDataResponseBR\n\x19tech.ydb.proto.import_.v1Z5github.com/ydb-platform/ydb-go-genproto/Ydb_Import_V1b\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'ydb_import_v1_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\031tech.ydb.proto.import_.v1Z5github.com/ydb-platform/ydb-go-genproto/Ydb_Import_V1' + _IMPORTSERVICE._serialized_start=64 + _IMPORTSERVICE._serialized_end=239 +# @@protoc_insertion_point(module_scope) diff --git a/ydb/_grpc/v5/ydb_import_v1_pb2.pyi b/ydb/_grpc/v5/ydb_import_v1_pb2.pyi new file mode 100644 index 00000000..51293778 --- /dev/null +++ b/ydb/_grpc/v5/ydb_import_v1_pb2.pyi @@ -0,0 +1,5 @@ +from protos import ydb_import_pb2 as _ydb_import_pb2 +from google.protobuf import descriptor as _descriptor +from typing import ClassVar as _ClassVar + +DESCRIPTOR: _descriptor.FileDescriptor diff --git a/ydb/_grpc/v5/ydb_import_v1_pb2_grpc.py b/ydb/_grpc/v5/ydb_import_v1_pb2_grpc.py new file mode 100644 index 00000000..0c3c1503 --- /dev/null +++ b/ydb/_grpc/v5/ydb_import_v1_pb2_grpc.py @@ -0,0 +1,103 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + +from ydb._grpc.v5.protos import ydb_import_pb2 as protos_dot_ydb__import__pb2 + + +class ImportServiceStub(object): + """Missing associated documentation comment in .proto file.""" + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.ImportFromS3 = channel.unary_unary( + '/Ydb.Import.V1.ImportService/ImportFromS3', + request_serializer=protos_dot_ydb__import__pb2.ImportFromS3Request.SerializeToString, + response_deserializer=protos_dot_ydb__import__pb2.ImportFromS3Response.FromString, + ) + self.ImportData = channel.unary_unary( + '/Ydb.Import.V1.ImportService/ImportData', + request_serializer=protos_dot_ydb__import__pb2.ImportDataRequest.SerializeToString, + response_deserializer=protos_dot_ydb__import__pb2.ImportDataResponse.FromString, + ) + + +class ImportServiceServicer(object): + """Missing associated documentation comment in .proto file.""" + + def ImportFromS3(self, request, context): + """Imports data from S3. + Method starts an asynchronous operation that can be cancelled while it is in progress. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ImportData(self, request, context): + """Writes data to a table. + Method accepts serialized data in the selected format and writes it non-transactionally. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_ImportServiceServicer_to_server(servicer, server): + rpc_method_handlers = { + 'ImportFromS3': grpc.unary_unary_rpc_method_handler( + servicer.ImportFromS3, + request_deserializer=protos_dot_ydb__import__pb2.ImportFromS3Request.FromString, + response_serializer=protos_dot_ydb__import__pb2.ImportFromS3Response.SerializeToString, + ), + 'ImportData': grpc.unary_unary_rpc_method_handler( + servicer.ImportData, + request_deserializer=protos_dot_ydb__import__pb2.ImportDataRequest.FromString, + response_serializer=protos_dot_ydb__import__pb2.ImportDataResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'Ydb.Import.V1.ImportService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + + + # This class is part of an EXPERIMENTAL API. +class ImportService(object): + """Missing associated documentation comment in .proto file.""" + + @staticmethod + def ImportFromS3(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/Ydb.Import.V1.ImportService/ImportFromS3', + protos_dot_ydb__import__pb2.ImportFromS3Request.SerializeToString, + protos_dot_ydb__import__pb2.ImportFromS3Response.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ImportData(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/Ydb.Import.V1.ImportService/ImportData', + protos_dot_ydb__import__pb2.ImportDataRequest.SerializeToString, + protos_dot_ydb__import__pb2.ImportDataResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/ydb/_grpc/v5/ydb_monitoring_v1_pb2.py b/ydb/_grpc/v5/ydb_monitoring_v1_pb2.py new file mode 100644 index 00000000..06a00d77 --- /dev/null +++ b/ydb/_grpc/v5/ydb_monitoring_v1_pb2.py @@ -0,0 +1,28 @@ +# -*- coding: utf-8 -*- +# flake8: noqa +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: ydb_monitoring_v1.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from ydb._grpc.v5.protos import ydb_monitoring_pb2 as protos_dot_ydb__monitoring__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x17ydb_monitoring_v1.proto\x12\x11Ydb.Monitoring.V1\x1a\x1bprotos/ydb_monitoring.proto2\xb7\x01\n\x11MonitoringService\x12P\n\tSelfCheck\x12 .Ydb.Monitoring.SelfCheckRequest\x1a!.Ydb.Monitoring.SelfCheckResponse\x12P\n\tNodeCheck\x12 .Ydb.Monitoring.NodeCheckRequest\x1a!.Ydb.Monitoring.NodeCheckResponseBY\n\x1ctech.ydb.proto.monitoring.v1Z9github.com/ydb-platform/ydb-go-genproto/Ydb_Monitoring_V1b\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'ydb_monitoring_v1_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\034tech.ydb.proto.monitoring.v1Z9github.com/ydb-platform/ydb-go-genproto/Ydb_Monitoring_V1' + _MONITORINGSERVICE._serialized_start=76 + _MONITORINGSERVICE._serialized_end=259 +# @@protoc_insertion_point(module_scope) diff --git a/ydb/_grpc/v5/ydb_monitoring_v1_pb2.pyi b/ydb/_grpc/v5/ydb_monitoring_v1_pb2.pyi new file mode 100644 index 00000000..e7579128 --- /dev/null +++ b/ydb/_grpc/v5/ydb_monitoring_v1_pb2.pyi @@ -0,0 +1,5 @@ +from protos import ydb_monitoring_pb2 as _ydb_monitoring_pb2 +from google.protobuf import descriptor as _descriptor +from typing import ClassVar as _ClassVar + +DESCRIPTOR: _descriptor.FileDescriptor diff --git a/ydb/_grpc/v5/ydb_monitoring_v1_pb2_grpc.py b/ydb/_grpc/v5/ydb_monitoring_v1_pb2_grpc.py new file mode 100644 index 00000000..4aa45169 --- /dev/null +++ b/ydb/_grpc/v5/ydb_monitoring_v1_pb2_grpc.py @@ -0,0 +1,101 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + +from ydb._grpc.v5.protos import ydb_monitoring_pb2 as protos_dot_ydb__monitoring__pb2 + + +class MonitoringServiceStub(object): + """Missing associated documentation comment in .proto file.""" + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.SelfCheck = channel.unary_unary( + '/Ydb.Monitoring.V1.MonitoringService/SelfCheck', + request_serializer=protos_dot_ydb__monitoring__pb2.SelfCheckRequest.SerializeToString, + response_deserializer=protos_dot_ydb__monitoring__pb2.SelfCheckResponse.FromString, + ) + self.NodeCheck = channel.unary_unary( + '/Ydb.Monitoring.V1.MonitoringService/NodeCheck', + request_serializer=protos_dot_ydb__monitoring__pb2.NodeCheckRequest.SerializeToString, + response_deserializer=protos_dot_ydb__monitoring__pb2.NodeCheckResponse.FromString, + ) + + +class MonitoringServiceServicer(object): + """Missing associated documentation comment in .proto file.""" + + def SelfCheck(self, request, context): + """Gets the health status of the database. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def NodeCheck(self, request, context): + """Checks current node health + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_MonitoringServiceServicer_to_server(servicer, server): + rpc_method_handlers = { + 'SelfCheck': grpc.unary_unary_rpc_method_handler( + servicer.SelfCheck, + request_deserializer=protos_dot_ydb__monitoring__pb2.SelfCheckRequest.FromString, + response_serializer=protos_dot_ydb__monitoring__pb2.SelfCheckResponse.SerializeToString, + ), + 'NodeCheck': grpc.unary_unary_rpc_method_handler( + servicer.NodeCheck, + request_deserializer=protos_dot_ydb__monitoring__pb2.NodeCheckRequest.FromString, + response_serializer=protos_dot_ydb__monitoring__pb2.NodeCheckResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'Ydb.Monitoring.V1.MonitoringService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + + + # This class is part of an EXPERIMENTAL API. +class MonitoringService(object): + """Missing associated documentation comment in .proto file.""" + + @staticmethod + def SelfCheck(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/Ydb.Monitoring.V1.MonitoringService/SelfCheck', + protos_dot_ydb__monitoring__pb2.SelfCheckRequest.SerializeToString, + protos_dot_ydb__monitoring__pb2.SelfCheckResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def NodeCheck(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/Ydb.Monitoring.V1.MonitoringService/NodeCheck', + protos_dot_ydb__monitoring__pb2.NodeCheckRequest.SerializeToString, + protos_dot_ydb__monitoring__pb2.NodeCheckResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/ydb/_grpc/v5/ydb_operation_v1_pb2.py b/ydb/_grpc/v5/ydb_operation_v1_pb2.py new file mode 100644 index 00000000..9b2ea106 --- /dev/null +++ b/ydb/_grpc/v5/ydb_operation_v1_pb2.py @@ -0,0 +1,28 @@ +# -*- coding: utf-8 -*- +# flake8: noqa +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: ydb_operation_v1.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from ydb._grpc.v5.protos import ydb_operation_pb2 as protos_dot_ydb__operation__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x16ydb_operation_v1.proto\x12\x10Ydb.Operation.V1\x1a\x1aprotos/ydb_operation.proto2\x96\x03\n\x10OperationService\x12Y\n\x0cGetOperation\x12#.Ydb.Operations.GetOperationRequest\x1a$.Ydb.Operations.GetOperationResponse\x12\x62\n\x0f\x43\x61ncelOperation\x12&.Ydb.Operations.CancelOperationRequest\x1a\'.Ydb.Operations.CancelOperationResponse\x12\x62\n\x0f\x46orgetOperation\x12&.Ydb.Operations.ForgetOperationRequest\x1a\'.Ydb.Operations.ForgetOperationResponse\x12_\n\x0eListOperations\x12%.Ydb.Operations.ListOperationsRequest\x1a&.Ydb.Operations.ListOperationsResponseBW\n\x1btech.ydb.proto.operation.v1Z8github.com/ydb-platform/ydb-go-genproto/Ydb_Operation_V1b\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'ydb_operation_v1_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\033tech.ydb.proto.operation.v1Z8github.com/ydb-platform/ydb-go-genproto/Ydb_Operation_V1' + _OPERATIONSERVICE._serialized_start=73 + _OPERATIONSERVICE._serialized_end=479 +# @@protoc_insertion_point(module_scope) diff --git a/ydb/_grpc/v5/ydb_operation_v1_pb2.pyi b/ydb/_grpc/v5/ydb_operation_v1_pb2.pyi new file mode 100644 index 00000000..36f4061f --- /dev/null +++ b/ydb/_grpc/v5/ydb_operation_v1_pb2.pyi @@ -0,0 +1,5 @@ +from protos import ydb_operation_pb2 as _ydb_operation_pb2 +from google.protobuf import descriptor as _descriptor +from typing import ClassVar as _ClassVar + +DESCRIPTOR: _descriptor.FileDescriptor diff --git a/ydb/_grpc/v5/ydb_operation_v1_pb2_grpc.py b/ydb/_grpc/v5/ydb_operation_v1_pb2_grpc.py new file mode 100644 index 00000000..eb10e0b4 --- /dev/null +++ b/ydb/_grpc/v5/ydb_operation_v1_pb2_grpc.py @@ -0,0 +1,217 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + +from ydb._grpc.v5.protos import ydb_operation_pb2 as protos_dot_ydb__operation__pb2 + + +class OperationServiceStub(object): + """All rpc calls to YDB are allowed to be asynchronous. Response message + of an rpc call contains Operation structure and OperationService + is used for polling operation completion. + + Operation has a field 'ready' to notify client if operation has been + completed or not. If result is ready a client has to handle 'result' field, + otherwise it is expected that client continues polling result via + GetOperation rpc of OperationService. Polling is made via unique + operation id provided in 'id' field of Operation. + + Note: Currently some operations have synchronous implementation and their result + is available when response is obtained. But a client must not make any + assumptions about synchronous or asynchronous nature of any operation and + be ready to poll operation status. + + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.GetOperation = channel.unary_unary( + '/Ydb.Operation.V1.OperationService/GetOperation', + request_serializer=protos_dot_ydb__operation__pb2.GetOperationRequest.SerializeToString, + response_deserializer=protos_dot_ydb__operation__pb2.GetOperationResponse.FromString, + ) + self.CancelOperation = channel.unary_unary( + '/Ydb.Operation.V1.OperationService/CancelOperation', + request_serializer=protos_dot_ydb__operation__pb2.CancelOperationRequest.SerializeToString, + response_deserializer=protos_dot_ydb__operation__pb2.CancelOperationResponse.FromString, + ) + self.ForgetOperation = channel.unary_unary( + '/Ydb.Operation.V1.OperationService/ForgetOperation', + request_serializer=protos_dot_ydb__operation__pb2.ForgetOperationRequest.SerializeToString, + response_deserializer=protos_dot_ydb__operation__pb2.ForgetOperationResponse.FromString, + ) + self.ListOperations = channel.unary_unary( + '/Ydb.Operation.V1.OperationService/ListOperations', + request_serializer=protos_dot_ydb__operation__pb2.ListOperationsRequest.SerializeToString, + response_deserializer=protos_dot_ydb__operation__pb2.ListOperationsResponse.FromString, + ) + + +class OperationServiceServicer(object): + """All rpc calls to YDB are allowed to be asynchronous. Response message + of an rpc call contains Operation structure and OperationService + is used for polling operation completion. + + Operation has a field 'ready' to notify client if operation has been + completed or not. If result is ready a client has to handle 'result' field, + otherwise it is expected that client continues polling result via + GetOperation rpc of OperationService. Polling is made via unique + operation id provided in 'id' field of Operation. + + Note: Currently some operations have synchronous implementation and their result + is available when response is obtained. But a client must not make any + assumptions about synchronous or asynchronous nature of any operation and + be ready to poll operation status. + + """ + + def GetOperation(self, request, context): + """Check status for a given operation. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def CancelOperation(self, request, context): + """Starts cancellation of a long-running operation, + Clients can use GetOperation to check whether the cancellation succeeded + or whether the operation completed despite cancellation. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ForgetOperation(self, request, context): + """Forgets long-running operation. It does not cancel the operation and returns + an error if operation was not completed. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ListOperations(self, request, context): + """Lists operations that match the specified filter in the request. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_OperationServiceServicer_to_server(servicer, server): + rpc_method_handlers = { + 'GetOperation': grpc.unary_unary_rpc_method_handler( + servicer.GetOperation, + request_deserializer=protos_dot_ydb__operation__pb2.GetOperationRequest.FromString, + response_serializer=protos_dot_ydb__operation__pb2.GetOperationResponse.SerializeToString, + ), + 'CancelOperation': grpc.unary_unary_rpc_method_handler( + servicer.CancelOperation, + request_deserializer=protos_dot_ydb__operation__pb2.CancelOperationRequest.FromString, + response_serializer=protos_dot_ydb__operation__pb2.CancelOperationResponse.SerializeToString, + ), + 'ForgetOperation': grpc.unary_unary_rpc_method_handler( + servicer.ForgetOperation, + request_deserializer=protos_dot_ydb__operation__pb2.ForgetOperationRequest.FromString, + response_serializer=protos_dot_ydb__operation__pb2.ForgetOperationResponse.SerializeToString, + ), + 'ListOperations': grpc.unary_unary_rpc_method_handler( + servicer.ListOperations, + request_deserializer=protos_dot_ydb__operation__pb2.ListOperationsRequest.FromString, + response_serializer=protos_dot_ydb__operation__pb2.ListOperationsResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'Ydb.Operation.V1.OperationService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + + + # This class is part of an EXPERIMENTAL API. +class OperationService(object): + """All rpc calls to YDB are allowed to be asynchronous. Response message + of an rpc call contains Operation structure and OperationService + is used for polling operation completion. + + Operation has a field 'ready' to notify client if operation has been + completed or not. If result is ready a client has to handle 'result' field, + otherwise it is expected that client continues polling result via + GetOperation rpc of OperationService. Polling is made via unique + operation id provided in 'id' field of Operation. + + Note: Currently some operations have synchronous implementation and their result + is available when response is obtained. But a client must not make any + assumptions about synchronous or asynchronous nature of any operation and + be ready to poll operation status. + + """ + + @staticmethod + def GetOperation(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/Ydb.Operation.V1.OperationService/GetOperation', + protos_dot_ydb__operation__pb2.GetOperationRequest.SerializeToString, + protos_dot_ydb__operation__pb2.GetOperationResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def CancelOperation(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/Ydb.Operation.V1.OperationService/CancelOperation', + protos_dot_ydb__operation__pb2.CancelOperationRequest.SerializeToString, + protos_dot_ydb__operation__pb2.CancelOperationResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ForgetOperation(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/Ydb.Operation.V1.OperationService/ForgetOperation', + protos_dot_ydb__operation__pb2.ForgetOperationRequest.SerializeToString, + protos_dot_ydb__operation__pb2.ForgetOperationResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ListOperations(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/Ydb.Operation.V1.OperationService/ListOperations', + protos_dot_ydb__operation__pb2.ListOperationsRequest.SerializeToString, + protos_dot_ydb__operation__pb2.ListOperationsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/ydb/_grpc/v5/ydb_query_v1_pb2.py b/ydb/_grpc/v5/ydb_query_v1_pb2.py new file mode 100644 index 00000000..a312cab2 --- /dev/null +++ b/ydb/_grpc/v5/ydb_query_v1_pb2.py @@ -0,0 +1,29 @@ +# -*- coding: utf-8 -*- +# flake8: noqa +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: ydb_query_v1.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from ydb._grpc.v5.protos import ydb_operation_pb2 as protos_dot_ydb__operation__pb2 +from ydb._grpc.v5.protos import ydb_query_pb2 as protos_dot_ydb__query__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x12ydb_query_v1.proto\x12\x0cYdb.Query.V1\x1a\x1aprotos/ydb_operation.proto\x1a\x16protos/ydb_query.proto2\xad\x06\n\x0cQueryService\x12R\n\rCreateSession\x12\x1f.Ydb.Query.CreateSessionRequest\x1a .Ydb.Query.CreateSessionResponse\x12R\n\rDeleteSession\x12\x1f.Ydb.Query.DeleteSessionRequest\x1a .Ydb.Query.DeleteSessionResponse\x12K\n\rAttachSession\x12\x1f.Ydb.Query.AttachSessionRequest\x1a\x17.Ydb.Query.SessionState0\x01\x12[\n\x10\x42\x65ginTransaction\x12\".Ydb.Query.BeginTransactionRequest\x1a#.Ydb.Query.BeginTransactionResponse\x12^\n\x11\x43ommitTransaction\x12#.Ydb.Query.CommitTransactionRequest\x1a$.Ydb.Query.CommitTransactionResponse\x12\x64\n\x13RollbackTransaction\x12%.Ydb.Query.RollbackTransactionRequest\x1a&.Ydb.Query.RollbackTransactionResponse\x12U\n\x0c\x45xecuteQuery\x12\x1e.Ydb.Query.ExecuteQueryRequest\x1a#.Ydb.Query.ExecuteQueryResponsePart0\x01\x12K\n\rExecuteScript\x12\x1f.Ydb.Query.ExecuteScriptRequest\x1a\x19.Ydb.Operations.Operation\x12\x61\n\x12\x46\x65tchScriptResults\x12$.Ydb.Query.FetchScriptResultsRequest\x1a%.Ydb.Query.FetchScriptResultsResponseBO\n\x17tech.ydb.proto.query.v1Z4github.com/ydb-platform/ydb-go-genproto/Ydb_Query_V1b\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'ydb_query_v1_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\027tech.ydb.proto.query.v1Z4github.com/ydb-platform/ydb-go-genproto/Ydb_Query_V1' + _QUERYSERVICE._serialized_start=89 + _QUERYSERVICE._serialized_end=902 +# @@protoc_insertion_point(module_scope) diff --git a/ydb/_grpc/v5/ydb_query_v1_pb2.pyi b/ydb/_grpc/v5/ydb_query_v1_pb2.pyi new file mode 100644 index 00000000..e127517a --- /dev/null +++ b/ydb/_grpc/v5/ydb_query_v1_pb2.pyi @@ -0,0 +1,6 @@ +from protos import ydb_operation_pb2 as _ydb_operation_pb2 +from protos import ydb_query_pb2 as _ydb_query_pb2 +from google.protobuf import descriptor as _descriptor +from typing import ClassVar as _ClassVar + +DESCRIPTOR: _descriptor.FileDescriptor diff --git a/ydb/_grpc/v5/ydb_query_v1_pb2_grpc.py b/ydb/_grpc/v5/ydb_query_v1_pb2_grpc.py new file mode 100644 index 00000000..2ef0d12d --- /dev/null +++ b/ydb/_grpc/v5/ydb_query_v1_pb2_grpc.py @@ -0,0 +1,375 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + +from ydb._grpc.v5.protos import ydb_operation_pb2 as protos_dot_ydb__operation__pb2 +from ydb._grpc.v5.protos import ydb_query_pb2 as protos_dot_ydb__query__pb2 + + +class QueryServiceStub(object): + """! WARNING: Experimental API + ! This API is currently in experimental state and is a subject for changes. + ! No backward and/or forward compatibility guarantees are provided. + ! DO NOT USE for production workloads. + + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.CreateSession = channel.unary_unary( + '/Ydb.Query.V1.QueryService/CreateSession', + request_serializer=protos_dot_ydb__query__pb2.CreateSessionRequest.SerializeToString, + response_deserializer=protos_dot_ydb__query__pb2.CreateSessionResponse.FromString, + ) + self.DeleteSession = channel.unary_unary( + '/Ydb.Query.V1.QueryService/DeleteSession', + request_serializer=protos_dot_ydb__query__pb2.DeleteSessionRequest.SerializeToString, + response_deserializer=protos_dot_ydb__query__pb2.DeleteSessionResponse.FromString, + ) + self.AttachSession = channel.unary_stream( + '/Ydb.Query.V1.QueryService/AttachSession', + request_serializer=protos_dot_ydb__query__pb2.AttachSessionRequest.SerializeToString, + response_deserializer=protos_dot_ydb__query__pb2.SessionState.FromString, + ) + self.BeginTransaction = channel.unary_unary( + '/Ydb.Query.V1.QueryService/BeginTransaction', + request_serializer=protos_dot_ydb__query__pb2.BeginTransactionRequest.SerializeToString, + response_deserializer=protos_dot_ydb__query__pb2.BeginTransactionResponse.FromString, + ) + self.CommitTransaction = channel.unary_unary( + '/Ydb.Query.V1.QueryService/CommitTransaction', + request_serializer=protos_dot_ydb__query__pb2.CommitTransactionRequest.SerializeToString, + response_deserializer=protos_dot_ydb__query__pb2.CommitTransactionResponse.FromString, + ) + self.RollbackTransaction = channel.unary_unary( + '/Ydb.Query.V1.QueryService/RollbackTransaction', + request_serializer=protos_dot_ydb__query__pb2.RollbackTransactionRequest.SerializeToString, + response_deserializer=protos_dot_ydb__query__pb2.RollbackTransactionResponse.FromString, + ) + self.ExecuteQuery = channel.unary_stream( + '/Ydb.Query.V1.QueryService/ExecuteQuery', + request_serializer=protos_dot_ydb__query__pb2.ExecuteQueryRequest.SerializeToString, + response_deserializer=protos_dot_ydb__query__pb2.ExecuteQueryResponsePart.FromString, + ) + self.ExecuteScript = channel.unary_unary( + '/Ydb.Query.V1.QueryService/ExecuteScript', + request_serializer=protos_dot_ydb__query__pb2.ExecuteScriptRequest.SerializeToString, + response_deserializer=protos_dot_ydb__operation__pb2.Operation.FromString, + ) + self.FetchScriptResults = channel.unary_unary( + '/Ydb.Query.V1.QueryService/FetchScriptResults', + request_serializer=protos_dot_ydb__query__pb2.FetchScriptResultsRequest.SerializeToString, + response_deserializer=protos_dot_ydb__query__pb2.FetchScriptResultsResponse.FromString, + ) + + +class QueryServiceServicer(object): + """! WARNING: Experimental API + ! This API is currently in experimental state and is a subject for changes. + ! No backward and/or forward compatibility guarantees are provided. + ! DO NOT USE for production workloads. + + """ + + def CreateSession(self, request, context): + """Sessions are basic primitives for communicating with YDB Query Service. The are similar to + connections for classic relational DBs. Sessions serve three main purposes: + 1. Provide a flow control for DB requests with limited number of active channels. + 2. Distribute load evenly across multiple DB nodes. + 3. Store state for volatile stateful operations, such as short-living transactions. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def DeleteSession(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def AttachSession(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def BeginTransaction(self, request, context): + """Short-living transactions allow transactional execution of several queries, including support + for interactive transactions. Transaction control can be implemented via flags in ExecuteQuery + call (recommended), or via explicit calls to Begin/Commit/RollbackTransaction. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def CommitTransaction(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def RollbackTransaction(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ExecuteQuery(self, request, context): + """Execute interactive query in a specified short-living transaction. + YDB query can contain DML, DDL and DCL statements. Supported mix of different statement types depends + on the chosen transaction type. + In case of error, including transport errors such as interrupted stream, whole transaction + needs to be retried. For non-idempotent transaction, a custom client logic is required to + retry conditionally retriable statuses, when transaction execution state is unknown. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ExecuteScript(self, request, context): + """Execute long-running script. + YDB scripts can contain all type of statements, including TCL statements. This way you can execute multiple + transactions in a single YDB script. + ExecuteScript call returns long-running Ydb.Operation object with: + operation.metadata = ExecuteScriptMetadata + operation.result = Empty + Script execution metadata contains all information about current execution state, including + execution_id, execution statistics and result sets info. + You can use standard operation methods such as Get/Cancel/Forget/ListOperations to work with script executions. + Script can be executed as persistent, in which case all execution information and results will be stored + persistently and available after successful or unsuccessful execution. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def FetchScriptResults(self, request, context): + """Fetch results for script execution using fetch_token for continuation. + For script with multiple result sets, parts of different results sets are interleaved in responses. + For persistent scripts, you can fetch results in specific position of specific result set using + position instead of fetch_token. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_QueryServiceServicer_to_server(servicer, server): + rpc_method_handlers = { + 'CreateSession': grpc.unary_unary_rpc_method_handler( + servicer.CreateSession, + request_deserializer=protos_dot_ydb__query__pb2.CreateSessionRequest.FromString, + response_serializer=protos_dot_ydb__query__pb2.CreateSessionResponse.SerializeToString, + ), + 'DeleteSession': grpc.unary_unary_rpc_method_handler( + servicer.DeleteSession, + request_deserializer=protos_dot_ydb__query__pb2.DeleteSessionRequest.FromString, + response_serializer=protos_dot_ydb__query__pb2.DeleteSessionResponse.SerializeToString, + ), + 'AttachSession': grpc.unary_stream_rpc_method_handler( + servicer.AttachSession, + request_deserializer=protos_dot_ydb__query__pb2.AttachSessionRequest.FromString, + response_serializer=protos_dot_ydb__query__pb2.SessionState.SerializeToString, + ), + 'BeginTransaction': grpc.unary_unary_rpc_method_handler( + servicer.BeginTransaction, + request_deserializer=protos_dot_ydb__query__pb2.BeginTransactionRequest.FromString, + response_serializer=protos_dot_ydb__query__pb2.BeginTransactionResponse.SerializeToString, + ), + 'CommitTransaction': grpc.unary_unary_rpc_method_handler( + servicer.CommitTransaction, + request_deserializer=protos_dot_ydb__query__pb2.CommitTransactionRequest.FromString, + response_serializer=protos_dot_ydb__query__pb2.CommitTransactionResponse.SerializeToString, + ), + 'RollbackTransaction': grpc.unary_unary_rpc_method_handler( + servicer.RollbackTransaction, + request_deserializer=protos_dot_ydb__query__pb2.RollbackTransactionRequest.FromString, + response_serializer=protos_dot_ydb__query__pb2.RollbackTransactionResponse.SerializeToString, + ), + 'ExecuteQuery': grpc.unary_stream_rpc_method_handler( + servicer.ExecuteQuery, + request_deserializer=protos_dot_ydb__query__pb2.ExecuteQueryRequest.FromString, + response_serializer=protos_dot_ydb__query__pb2.ExecuteQueryResponsePart.SerializeToString, + ), + 'ExecuteScript': grpc.unary_unary_rpc_method_handler( + servicer.ExecuteScript, + request_deserializer=protos_dot_ydb__query__pb2.ExecuteScriptRequest.FromString, + response_serializer=protos_dot_ydb__operation__pb2.Operation.SerializeToString, + ), + 'FetchScriptResults': grpc.unary_unary_rpc_method_handler( + servicer.FetchScriptResults, + request_deserializer=protos_dot_ydb__query__pb2.FetchScriptResultsRequest.FromString, + response_serializer=protos_dot_ydb__query__pb2.FetchScriptResultsResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'Ydb.Query.V1.QueryService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + + + # This class is part of an EXPERIMENTAL API. +class QueryService(object): + """! WARNING: Experimental API + ! This API is currently in experimental state and is a subject for changes. + ! No backward and/or forward compatibility guarantees are provided. + ! DO NOT USE for production workloads. + + """ + + @staticmethod + def CreateSession(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/Ydb.Query.V1.QueryService/CreateSession', + protos_dot_ydb__query__pb2.CreateSessionRequest.SerializeToString, + protos_dot_ydb__query__pb2.CreateSessionResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def DeleteSession(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/Ydb.Query.V1.QueryService/DeleteSession', + protos_dot_ydb__query__pb2.DeleteSessionRequest.SerializeToString, + protos_dot_ydb__query__pb2.DeleteSessionResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def AttachSession(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_stream(request, target, '/Ydb.Query.V1.QueryService/AttachSession', + protos_dot_ydb__query__pb2.AttachSessionRequest.SerializeToString, + protos_dot_ydb__query__pb2.SessionState.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def BeginTransaction(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/Ydb.Query.V1.QueryService/BeginTransaction', + protos_dot_ydb__query__pb2.BeginTransactionRequest.SerializeToString, + protos_dot_ydb__query__pb2.BeginTransactionResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def CommitTransaction(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/Ydb.Query.V1.QueryService/CommitTransaction', + protos_dot_ydb__query__pb2.CommitTransactionRequest.SerializeToString, + protos_dot_ydb__query__pb2.CommitTransactionResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def RollbackTransaction(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/Ydb.Query.V1.QueryService/RollbackTransaction', + protos_dot_ydb__query__pb2.RollbackTransactionRequest.SerializeToString, + protos_dot_ydb__query__pb2.RollbackTransactionResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ExecuteQuery(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_stream(request, target, '/Ydb.Query.V1.QueryService/ExecuteQuery', + protos_dot_ydb__query__pb2.ExecuteQueryRequest.SerializeToString, + protos_dot_ydb__query__pb2.ExecuteQueryResponsePart.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ExecuteScript(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/Ydb.Query.V1.QueryService/ExecuteScript', + protos_dot_ydb__query__pb2.ExecuteScriptRequest.SerializeToString, + protos_dot_ydb__operation__pb2.Operation.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def FetchScriptResults(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/Ydb.Query.V1.QueryService/FetchScriptResults', + protos_dot_ydb__query__pb2.FetchScriptResultsRequest.SerializeToString, + protos_dot_ydb__query__pb2.FetchScriptResultsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/ydb/_grpc/v5/ydb_rate_limiter_v1_pb2.py b/ydb/_grpc/v5/ydb_rate_limiter_v1_pb2.py new file mode 100644 index 00000000..0c8fc00b --- /dev/null +++ b/ydb/_grpc/v5/ydb_rate_limiter_v1_pb2.py @@ -0,0 +1,28 @@ +# -*- coding: utf-8 -*- +# flake8: noqa +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: ydb_rate_limiter_v1.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from ydb._grpc.v5.protos import ydb_rate_limiter_pb2 as protos_dot_ydb__rate__limiter__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x19ydb_rate_limiter_v1.proto\x12\x12Ydb.RateLimiter.V1\x1a\x1dprotos/ydb_rate_limiter.proto2\xe3\x04\n\x12RateLimiterService\x12\x61\n\x0e\x43reateResource\x12&.Ydb.RateLimiter.CreateResourceRequest\x1a\'.Ydb.RateLimiter.CreateResourceResponse\x12^\n\rAlterResource\x12%.Ydb.RateLimiter.AlterResourceRequest\x1a&.Ydb.RateLimiter.AlterResourceResponse\x12[\n\x0c\x44ropResource\x12$.Ydb.RateLimiter.DropResourceRequest\x1a%.Ydb.RateLimiter.DropResourceResponse\x12^\n\rListResources\x12%.Ydb.RateLimiter.ListResourcesRequest\x1a&.Ydb.RateLimiter.ListResourcesResponse\x12g\n\x10\x44\x65scribeResource\x12(.Ydb.RateLimiter.DescribeResourceRequest\x1a).Ydb.RateLimiter.DescribeResourceResponse\x12\x64\n\x0f\x41\x63quireResource\x12\'.Ydb.RateLimiter.AcquireResourceRequest\x1a(.Ydb.RateLimiter.AcquireResourceResponseBo\n\x1etech.ydb.proto.rate_limiter.v1B\x0fRateLimiterGrpcP\x01Z:github.com/ydb-platform/ydb-go-genproto/Ydb_RateLimiter_V1b\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'ydb_rate_limiter_v1_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\036tech.ydb.proto.rate_limiter.v1B\017RateLimiterGrpcP\001Z:github.com/ydb-platform/ydb-go-genproto/Ydb_RateLimiter_V1' + _RATELIMITERSERVICE._serialized_start=81 + _RATELIMITERSERVICE._serialized_end=692 +# @@protoc_insertion_point(module_scope) diff --git a/ydb/_grpc/v5/ydb_rate_limiter_v1_pb2.pyi b/ydb/_grpc/v5/ydb_rate_limiter_v1_pb2.pyi new file mode 100644 index 00000000..6e9b2e3e --- /dev/null +++ b/ydb/_grpc/v5/ydb_rate_limiter_v1_pb2.pyi @@ -0,0 +1,5 @@ +from protos import ydb_rate_limiter_pb2 as _ydb_rate_limiter_pb2 +from google.protobuf import descriptor as _descriptor +from typing import ClassVar as _ClassVar + +DESCRIPTOR: _descriptor.FileDescriptor diff --git a/ydb/_grpc/v5/ydb_rate_limiter_v1_pb2_grpc.py b/ydb/_grpc/v5/ydb_rate_limiter_v1_pb2_grpc.py new file mode 100644 index 00000000..e26f3335 --- /dev/null +++ b/ydb/_grpc/v5/ydb_rate_limiter_v1_pb2_grpc.py @@ -0,0 +1,252 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + +from ydb._grpc.v5.protos import ydb_rate_limiter_pb2 as protos_dot_ydb__rate__limiter__pb2 + + +class RateLimiterServiceStub(object): + """Service that implements distributed rate limiting. + + To use rate limiter functionality you need an existing coordination node. + + Control plane API + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.CreateResource = channel.unary_unary( + '/Ydb.RateLimiter.V1.RateLimiterService/CreateResource', + request_serializer=protos_dot_ydb__rate__limiter__pb2.CreateResourceRequest.SerializeToString, + response_deserializer=protos_dot_ydb__rate__limiter__pb2.CreateResourceResponse.FromString, + ) + self.AlterResource = channel.unary_unary( + '/Ydb.RateLimiter.V1.RateLimiterService/AlterResource', + request_serializer=protos_dot_ydb__rate__limiter__pb2.AlterResourceRequest.SerializeToString, + response_deserializer=protos_dot_ydb__rate__limiter__pb2.AlterResourceResponse.FromString, + ) + self.DropResource = channel.unary_unary( + '/Ydb.RateLimiter.V1.RateLimiterService/DropResource', + request_serializer=protos_dot_ydb__rate__limiter__pb2.DropResourceRequest.SerializeToString, + response_deserializer=protos_dot_ydb__rate__limiter__pb2.DropResourceResponse.FromString, + ) + self.ListResources = channel.unary_unary( + '/Ydb.RateLimiter.V1.RateLimiterService/ListResources', + request_serializer=protos_dot_ydb__rate__limiter__pb2.ListResourcesRequest.SerializeToString, + response_deserializer=protos_dot_ydb__rate__limiter__pb2.ListResourcesResponse.FromString, + ) + self.DescribeResource = channel.unary_unary( + '/Ydb.RateLimiter.V1.RateLimiterService/DescribeResource', + request_serializer=protos_dot_ydb__rate__limiter__pb2.DescribeResourceRequest.SerializeToString, + response_deserializer=protos_dot_ydb__rate__limiter__pb2.DescribeResourceResponse.FromString, + ) + self.AcquireResource = channel.unary_unary( + '/Ydb.RateLimiter.V1.RateLimiterService/AcquireResource', + request_serializer=protos_dot_ydb__rate__limiter__pb2.AcquireResourceRequest.SerializeToString, + response_deserializer=protos_dot_ydb__rate__limiter__pb2.AcquireResourceResponse.FromString, + ) + + +class RateLimiterServiceServicer(object): + """Service that implements distributed rate limiting. + + To use rate limiter functionality you need an existing coordination node. + + Control plane API + """ + + def CreateResource(self, request, context): + """Create a new resource in existing coordination node. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def AlterResource(self, request, context): + """Update a resource in coordination node. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def DropResource(self, request, context): + """Delete a resource from coordination node. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ListResources(self, request, context): + """List resources in given coordination node. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def DescribeResource(self, request, context): + """Describe properties of resource in coordination node. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def AcquireResource(self, request, context): + """Take units for usage of a resource in coordination node. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_RateLimiterServiceServicer_to_server(servicer, server): + rpc_method_handlers = { + 'CreateResource': grpc.unary_unary_rpc_method_handler( + servicer.CreateResource, + request_deserializer=protos_dot_ydb__rate__limiter__pb2.CreateResourceRequest.FromString, + response_serializer=protos_dot_ydb__rate__limiter__pb2.CreateResourceResponse.SerializeToString, + ), + 'AlterResource': grpc.unary_unary_rpc_method_handler( + servicer.AlterResource, + request_deserializer=protos_dot_ydb__rate__limiter__pb2.AlterResourceRequest.FromString, + response_serializer=protos_dot_ydb__rate__limiter__pb2.AlterResourceResponse.SerializeToString, + ), + 'DropResource': grpc.unary_unary_rpc_method_handler( + servicer.DropResource, + request_deserializer=protos_dot_ydb__rate__limiter__pb2.DropResourceRequest.FromString, + response_serializer=protos_dot_ydb__rate__limiter__pb2.DropResourceResponse.SerializeToString, + ), + 'ListResources': grpc.unary_unary_rpc_method_handler( + servicer.ListResources, + request_deserializer=protos_dot_ydb__rate__limiter__pb2.ListResourcesRequest.FromString, + response_serializer=protos_dot_ydb__rate__limiter__pb2.ListResourcesResponse.SerializeToString, + ), + 'DescribeResource': grpc.unary_unary_rpc_method_handler( + servicer.DescribeResource, + request_deserializer=protos_dot_ydb__rate__limiter__pb2.DescribeResourceRequest.FromString, + response_serializer=protos_dot_ydb__rate__limiter__pb2.DescribeResourceResponse.SerializeToString, + ), + 'AcquireResource': grpc.unary_unary_rpc_method_handler( + servicer.AcquireResource, + request_deserializer=protos_dot_ydb__rate__limiter__pb2.AcquireResourceRequest.FromString, + response_serializer=protos_dot_ydb__rate__limiter__pb2.AcquireResourceResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'Ydb.RateLimiter.V1.RateLimiterService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + + + # This class is part of an EXPERIMENTAL API. +class RateLimiterService(object): + """Service that implements distributed rate limiting. + + To use rate limiter functionality you need an existing coordination node. + + Control plane API + """ + + @staticmethod + def CreateResource(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/Ydb.RateLimiter.V1.RateLimiterService/CreateResource', + protos_dot_ydb__rate__limiter__pb2.CreateResourceRequest.SerializeToString, + protos_dot_ydb__rate__limiter__pb2.CreateResourceResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def AlterResource(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/Ydb.RateLimiter.V1.RateLimiterService/AlterResource', + protos_dot_ydb__rate__limiter__pb2.AlterResourceRequest.SerializeToString, + protos_dot_ydb__rate__limiter__pb2.AlterResourceResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def DropResource(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/Ydb.RateLimiter.V1.RateLimiterService/DropResource', + protos_dot_ydb__rate__limiter__pb2.DropResourceRequest.SerializeToString, + protos_dot_ydb__rate__limiter__pb2.DropResourceResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ListResources(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/Ydb.RateLimiter.V1.RateLimiterService/ListResources', + protos_dot_ydb__rate__limiter__pb2.ListResourcesRequest.SerializeToString, + protos_dot_ydb__rate__limiter__pb2.ListResourcesResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def DescribeResource(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/Ydb.RateLimiter.V1.RateLimiterService/DescribeResource', + protos_dot_ydb__rate__limiter__pb2.DescribeResourceRequest.SerializeToString, + protos_dot_ydb__rate__limiter__pb2.DescribeResourceResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def AcquireResource(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/Ydb.RateLimiter.V1.RateLimiterService/AcquireResource', + protos_dot_ydb__rate__limiter__pb2.AcquireResourceRequest.SerializeToString, + protos_dot_ydb__rate__limiter__pb2.AcquireResourceResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/ydb/_grpc/v5/ydb_scheme_v1_pb2.py b/ydb/_grpc/v5/ydb_scheme_v1_pb2.py new file mode 100644 index 00000000..45218d59 --- /dev/null +++ b/ydb/_grpc/v5/ydb_scheme_v1_pb2.py @@ -0,0 +1,28 @@ +# -*- coding: utf-8 -*- +# flake8: noqa +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: ydb_scheme_v1.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from ydb._grpc.v5.protos import ydb_scheme_pb2 as protos_dot_ydb__scheme__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x13ydb_scheme_v1.proto\x12\rYdb.Scheme.V1\x1a\x17protos/ydb_scheme.proto2\xcc\x03\n\rSchemeService\x12T\n\rMakeDirectory\x12 .Ydb.Scheme.MakeDirectoryRequest\x1a!.Ydb.Scheme.MakeDirectoryResponse\x12Z\n\x0fRemoveDirectory\x12\".Ydb.Scheme.RemoveDirectoryRequest\x1a#.Ydb.Scheme.RemoveDirectoryResponse\x12T\n\rListDirectory\x12 .Ydb.Scheme.ListDirectoryRequest\x1a!.Ydb.Scheme.ListDirectoryResponse\x12Q\n\x0c\x44\x65scribePath\x12\x1f.Ydb.Scheme.DescribePathRequest\x1a .Ydb.Scheme.DescribePathResponse\x12`\n\x11ModifyPermissions\x12$.Ydb.Scheme.ModifyPermissionsRequest\x1a%.Ydb.Scheme.ModifyPermissionsResponseBQ\n\x18tech.ydb.proto.scheme.v1Z5github.com/ydb-platform/ydb-go-genproto/Ydb_Scheme_V1b\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'ydb_scheme_v1_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\030tech.ydb.proto.scheme.v1Z5github.com/ydb-platform/ydb-go-genproto/Ydb_Scheme_V1' + _SCHEMESERVICE._serialized_start=64 + _SCHEMESERVICE._serialized_end=524 +# @@protoc_insertion_point(module_scope) diff --git a/ydb/_grpc/v5/ydb_scheme_v1_pb2.pyi b/ydb/_grpc/v5/ydb_scheme_v1_pb2.pyi new file mode 100644 index 00000000..78aeaac3 --- /dev/null +++ b/ydb/_grpc/v5/ydb_scheme_v1_pb2.pyi @@ -0,0 +1,5 @@ +from protos import ydb_scheme_pb2 as _ydb_scheme_pb2 +from google.protobuf import descriptor as _descriptor +from typing import ClassVar as _ClassVar + +DESCRIPTOR: _descriptor.FileDescriptor diff --git a/ydb/_grpc/v5/ydb_scheme_v1_pb2_grpc.py b/ydb/_grpc/v5/ydb_scheme_v1_pb2_grpc.py new file mode 100644 index 00000000..8b1b6c14 --- /dev/null +++ b/ydb/_grpc/v5/ydb_scheme_v1_pb2_grpc.py @@ -0,0 +1,224 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + +from ydb._grpc.v5.protos import ydb_scheme_pb2 as protos_dot_ydb__scheme__pb2 + + +class SchemeServiceStub(object): + """Every YDB Database Instance has set of objects organized a tree. + SchemeService provides some functionality to browse and modify + this tree. + + SchemeService provides a generic tree functionality, to create specific + objects like YDB Table or Persistent Queue use corresponding services. + + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.MakeDirectory = channel.unary_unary( + '/Ydb.Scheme.V1.SchemeService/MakeDirectory', + request_serializer=protos_dot_ydb__scheme__pb2.MakeDirectoryRequest.SerializeToString, + response_deserializer=protos_dot_ydb__scheme__pb2.MakeDirectoryResponse.FromString, + ) + self.RemoveDirectory = channel.unary_unary( + '/Ydb.Scheme.V1.SchemeService/RemoveDirectory', + request_serializer=protos_dot_ydb__scheme__pb2.RemoveDirectoryRequest.SerializeToString, + response_deserializer=protos_dot_ydb__scheme__pb2.RemoveDirectoryResponse.FromString, + ) + self.ListDirectory = channel.unary_unary( + '/Ydb.Scheme.V1.SchemeService/ListDirectory', + request_serializer=protos_dot_ydb__scheme__pb2.ListDirectoryRequest.SerializeToString, + response_deserializer=protos_dot_ydb__scheme__pb2.ListDirectoryResponse.FromString, + ) + self.DescribePath = channel.unary_unary( + '/Ydb.Scheme.V1.SchemeService/DescribePath', + request_serializer=protos_dot_ydb__scheme__pb2.DescribePathRequest.SerializeToString, + response_deserializer=protos_dot_ydb__scheme__pb2.DescribePathResponse.FromString, + ) + self.ModifyPermissions = channel.unary_unary( + '/Ydb.Scheme.V1.SchemeService/ModifyPermissions', + request_serializer=protos_dot_ydb__scheme__pb2.ModifyPermissionsRequest.SerializeToString, + response_deserializer=protos_dot_ydb__scheme__pb2.ModifyPermissionsResponse.FromString, + ) + + +class SchemeServiceServicer(object): + """Every YDB Database Instance has set of objects organized a tree. + SchemeService provides some functionality to browse and modify + this tree. + + SchemeService provides a generic tree functionality, to create specific + objects like YDB Table or Persistent Queue use corresponding services. + + """ + + def MakeDirectory(self, request, context): + """Make Directory. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def RemoveDirectory(self, request, context): + """Remove Directory. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ListDirectory(self, request, context): + """Returns information about given directory and objects inside it. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def DescribePath(self, request, context): + """Returns information about object with given path. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ModifyPermissions(self, request, context): + """Modify permissions. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_SchemeServiceServicer_to_server(servicer, server): + rpc_method_handlers = { + 'MakeDirectory': grpc.unary_unary_rpc_method_handler( + servicer.MakeDirectory, + request_deserializer=protos_dot_ydb__scheme__pb2.MakeDirectoryRequest.FromString, + response_serializer=protos_dot_ydb__scheme__pb2.MakeDirectoryResponse.SerializeToString, + ), + 'RemoveDirectory': grpc.unary_unary_rpc_method_handler( + servicer.RemoveDirectory, + request_deserializer=protos_dot_ydb__scheme__pb2.RemoveDirectoryRequest.FromString, + response_serializer=protos_dot_ydb__scheme__pb2.RemoveDirectoryResponse.SerializeToString, + ), + 'ListDirectory': grpc.unary_unary_rpc_method_handler( + servicer.ListDirectory, + request_deserializer=protos_dot_ydb__scheme__pb2.ListDirectoryRequest.FromString, + response_serializer=protos_dot_ydb__scheme__pb2.ListDirectoryResponse.SerializeToString, + ), + 'DescribePath': grpc.unary_unary_rpc_method_handler( + servicer.DescribePath, + request_deserializer=protos_dot_ydb__scheme__pb2.DescribePathRequest.FromString, + response_serializer=protos_dot_ydb__scheme__pb2.DescribePathResponse.SerializeToString, + ), + 'ModifyPermissions': grpc.unary_unary_rpc_method_handler( + servicer.ModifyPermissions, + request_deserializer=protos_dot_ydb__scheme__pb2.ModifyPermissionsRequest.FromString, + response_serializer=protos_dot_ydb__scheme__pb2.ModifyPermissionsResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'Ydb.Scheme.V1.SchemeService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + + + # This class is part of an EXPERIMENTAL API. +class SchemeService(object): + """Every YDB Database Instance has set of objects organized a tree. + SchemeService provides some functionality to browse and modify + this tree. + + SchemeService provides a generic tree functionality, to create specific + objects like YDB Table or Persistent Queue use corresponding services. + + """ + + @staticmethod + def MakeDirectory(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/Ydb.Scheme.V1.SchemeService/MakeDirectory', + protos_dot_ydb__scheme__pb2.MakeDirectoryRequest.SerializeToString, + protos_dot_ydb__scheme__pb2.MakeDirectoryResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def RemoveDirectory(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/Ydb.Scheme.V1.SchemeService/RemoveDirectory', + protos_dot_ydb__scheme__pb2.RemoveDirectoryRequest.SerializeToString, + protos_dot_ydb__scheme__pb2.RemoveDirectoryResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ListDirectory(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/Ydb.Scheme.V1.SchemeService/ListDirectory', + protos_dot_ydb__scheme__pb2.ListDirectoryRequest.SerializeToString, + protos_dot_ydb__scheme__pb2.ListDirectoryResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def DescribePath(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/Ydb.Scheme.V1.SchemeService/DescribePath', + protos_dot_ydb__scheme__pb2.DescribePathRequest.SerializeToString, + protos_dot_ydb__scheme__pb2.DescribePathResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ModifyPermissions(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/Ydb.Scheme.V1.SchemeService/ModifyPermissions', + protos_dot_ydb__scheme__pb2.ModifyPermissionsRequest.SerializeToString, + protos_dot_ydb__scheme__pb2.ModifyPermissionsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/ydb/_grpc/v5/ydb_scripting_v1_pb2.py b/ydb/_grpc/v5/ydb_scripting_v1_pb2.py new file mode 100644 index 00000000..988578d8 --- /dev/null +++ b/ydb/_grpc/v5/ydb_scripting_v1_pb2.py @@ -0,0 +1,28 @@ +# -*- coding: utf-8 -*- +# flake8: noqa +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: ydb_scripting_v1.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from ydb._grpc.v5.protos import ydb_scripting_pb2 as protos_dot_ydb__scripting__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x16ydb_scripting_v1.proto\x12\x10Ydb.Scripting.V1\x1a\x1aprotos/ydb_scripting.proto2\x9a\x02\n\x10ScriptingService\x12Q\n\nExecuteYql\x12 .Ydb.Scripting.ExecuteYqlRequest\x1a!.Ydb.Scripting.ExecuteYqlResponse\x12`\n\x10StreamExecuteYql\x12 .Ydb.Scripting.ExecuteYqlRequest\x1a(.Ydb.Scripting.ExecuteYqlPartialResponse0\x01\x12Q\n\nExplainYql\x12 .Ydb.Scripting.ExplainYqlRequest\x1a!.Ydb.Scripting.ExplainYqlResponseBW\n\x1btech.ydb.proto.scripting.v1Z8github.com/ydb-platform/ydb-go-genproto/Ydb_Scripting_V1b\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'ydb_scripting_v1_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\033tech.ydb.proto.scripting.v1Z8github.com/ydb-platform/ydb-go-genproto/Ydb_Scripting_V1' + _SCRIPTINGSERVICE._serialized_start=73 + _SCRIPTINGSERVICE._serialized_end=355 +# @@protoc_insertion_point(module_scope) diff --git a/ydb/_grpc/v5/ydb_scripting_v1_pb2.pyi b/ydb/_grpc/v5/ydb_scripting_v1_pb2.pyi new file mode 100644 index 00000000..e6ef7ade --- /dev/null +++ b/ydb/_grpc/v5/ydb_scripting_v1_pb2.pyi @@ -0,0 +1,5 @@ +from protos import ydb_scripting_pb2 as _ydb_scripting_pb2 +from google.protobuf import descriptor as _descriptor +from typing import ClassVar as _ClassVar + +DESCRIPTOR: _descriptor.FileDescriptor diff --git a/ydb/_grpc/v5/ydb_scripting_v1_pb2_grpc.py b/ydb/_grpc/v5/ydb_scripting_v1_pb2_grpc.py new file mode 100644 index 00000000..efc6ca2d --- /dev/null +++ b/ydb/_grpc/v5/ydb_scripting_v1_pb2_grpc.py @@ -0,0 +1,133 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + +from ydb._grpc.v5.protos import ydb_scripting_pb2 as protos_dot_ydb__scripting__pb2 + + +class ScriptingServiceStub(object): + """Missing associated documentation comment in .proto file.""" + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.ExecuteYql = channel.unary_unary( + '/Ydb.Scripting.V1.ScriptingService/ExecuteYql', + request_serializer=protos_dot_ydb__scripting__pb2.ExecuteYqlRequest.SerializeToString, + response_deserializer=protos_dot_ydb__scripting__pb2.ExecuteYqlResponse.FromString, + ) + self.StreamExecuteYql = channel.unary_stream( + '/Ydb.Scripting.V1.ScriptingService/StreamExecuteYql', + request_serializer=protos_dot_ydb__scripting__pb2.ExecuteYqlRequest.SerializeToString, + response_deserializer=protos_dot_ydb__scripting__pb2.ExecuteYqlPartialResponse.FromString, + ) + self.ExplainYql = channel.unary_unary( + '/Ydb.Scripting.V1.ScriptingService/ExplainYql', + request_serializer=protos_dot_ydb__scripting__pb2.ExplainYqlRequest.SerializeToString, + response_deserializer=protos_dot_ydb__scripting__pb2.ExplainYqlResponse.FromString, + ) + + +class ScriptingServiceServicer(object): + """Missing associated documentation comment in .proto file.""" + + def ExecuteYql(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def StreamExecuteYql(self, request, context): + """Executes yql request with streaming result. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ExplainYql(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_ScriptingServiceServicer_to_server(servicer, server): + rpc_method_handlers = { + 'ExecuteYql': grpc.unary_unary_rpc_method_handler( + servicer.ExecuteYql, + request_deserializer=protos_dot_ydb__scripting__pb2.ExecuteYqlRequest.FromString, + response_serializer=protos_dot_ydb__scripting__pb2.ExecuteYqlResponse.SerializeToString, + ), + 'StreamExecuteYql': grpc.unary_stream_rpc_method_handler( + servicer.StreamExecuteYql, + request_deserializer=protos_dot_ydb__scripting__pb2.ExecuteYqlRequest.FromString, + response_serializer=protos_dot_ydb__scripting__pb2.ExecuteYqlPartialResponse.SerializeToString, + ), + 'ExplainYql': grpc.unary_unary_rpc_method_handler( + servicer.ExplainYql, + request_deserializer=protos_dot_ydb__scripting__pb2.ExplainYqlRequest.FromString, + response_serializer=protos_dot_ydb__scripting__pb2.ExplainYqlResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'Ydb.Scripting.V1.ScriptingService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + + + # This class is part of an EXPERIMENTAL API. +class ScriptingService(object): + """Missing associated documentation comment in .proto file.""" + + @staticmethod + def ExecuteYql(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/Ydb.Scripting.V1.ScriptingService/ExecuteYql', + protos_dot_ydb__scripting__pb2.ExecuteYqlRequest.SerializeToString, + protos_dot_ydb__scripting__pb2.ExecuteYqlResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def StreamExecuteYql(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_stream(request, target, '/Ydb.Scripting.V1.ScriptingService/StreamExecuteYql', + protos_dot_ydb__scripting__pb2.ExecuteYqlRequest.SerializeToString, + protos_dot_ydb__scripting__pb2.ExecuteYqlPartialResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ExplainYql(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/Ydb.Scripting.V1.ScriptingService/ExplainYql', + protos_dot_ydb__scripting__pb2.ExplainYqlRequest.SerializeToString, + protos_dot_ydb__scripting__pb2.ExplainYqlResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/ydb/_grpc/v5/ydb_table_v1_pb2.py b/ydb/_grpc/v5/ydb_table_v1_pb2.py new file mode 100644 index 00000000..d5e17a7d --- /dev/null +++ b/ydb/_grpc/v5/ydb_table_v1_pb2.py @@ -0,0 +1,28 @@ +# -*- coding: utf-8 -*- +# flake8: noqa +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: ydb_table_v1.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from ydb._grpc.v5.protos import ydb_table_pb2 as protos_dot_ydb__table__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x12ydb_table_v1.proto\x12\x0cYdb.Table.V1\x1a\x16protos/ydb_table.proto2\xe9\x0e\n\x0cTableService\x12R\n\rCreateSession\x12\x1f.Ydb.Table.CreateSessionRequest\x1a .Ydb.Table.CreateSessionResponse\x12R\n\rDeleteSession\x12\x1f.Ydb.Table.DeleteSessionRequest\x1a .Ydb.Table.DeleteSessionResponse\x12\x46\n\tKeepAlive\x12\x1b.Ydb.Table.KeepAliveRequest\x1a\x1c.Ydb.Table.KeepAliveResponse\x12L\n\x0b\x43reateTable\x12\x1d.Ydb.Table.CreateTableRequest\x1a\x1e.Ydb.Table.CreateTableResponse\x12\x46\n\tDropTable\x12\x1b.Ydb.Table.DropTableRequest\x1a\x1c.Ydb.Table.DropTableResponse\x12I\n\nAlterTable\x12\x1c.Ydb.Table.AlterTableRequest\x1a\x1d.Ydb.Table.AlterTableResponse\x12\x46\n\tCopyTable\x12\x1b.Ydb.Table.CopyTableRequest\x1a\x1c.Ydb.Table.CopyTableResponse\x12I\n\nCopyTables\x12\x1c.Ydb.Table.CopyTablesRequest\x1a\x1d.Ydb.Table.CopyTablesResponse\x12O\n\x0cRenameTables\x12\x1e.Ydb.Table.RenameTablesRequest\x1a\x1f.Ydb.Table.RenameTablesResponse\x12R\n\rDescribeTable\x12\x1f.Ydb.Table.DescribeTableRequest\x1a .Ydb.Table.DescribeTableResponse\x12[\n\x10\x45xplainDataQuery\x12\".Ydb.Table.ExplainDataQueryRequest\x1a#.Ydb.Table.ExplainDataQueryResponse\x12[\n\x10PrepareDataQuery\x12\".Ydb.Table.PrepareDataQueryRequest\x1a#.Ydb.Table.PrepareDataQueryResponse\x12[\n\x10\x45xecuteDataQuery\x12\".Ydb.Table.ExecuteDataQueryRequest\x1a#.Ydb.Table.ExecuteDataQueryResponse\x12\x61\n\x12\x45xecuteSchemeQuery\x12$.Ydb.Table.ExecuteSchemeQueryRequest\x1a%.Ydb.Table.ExecuteSchemeQueryResponse\x12[\n\x10\x42\x65ginTransaction\x12\".Ydb.Table.BeginTransactionRequest\x1a#.Ydb.Table.BeginTransactionResponse\x12^\n\x11\x43ommitTransaction\x12#.Ydb.Table.CommitTransactionRequest\x1a$.Ydb.Table.CommitTransactionResponse\x12\x64\n\x13RollbackTransaction\x12%.Ydb.Table.RollbackTransactionRequest\x1a&.Ydb.Table.RollbackTransactionResponse\x12g\n\x14\x44\x65scribeTableOptions\x12&.Ydb.Table.DescribeTableOptionsRequest\x1a\'.Ydb.Table.DescribeTableOptionsResponse\x12N\n\x0fStreamReadTable\x12\x1b.Ydb.Table.ReadTableRequest\x1a\x1c.Ydb.Table.ReadTableResponse0\x01\x12\x43\n\x08ReadRows\x12\x1a.Ydb.Table.ReadRowsRequest\x1a\x1b.Ydb.Table.ReadRowsResponse\x12I\n\nBulkUpsert\x12\x1c.Ydb.Table.BulkUpsertRequest\x1a\x1d.Ydb.Table.BulkUpsertResponse\x12j\n\x16StreamExecuteScanQuery\x12\".Ydb.Table.ExecuteScanQueryRequest\x1a*.Ydb.Table.ExecuteScanQueryPartialResponse0\x01\x42O\n\x17tech.ydb.proto.table.v1Z4github.com/ydb-platform/ydb-go-genproto/Ydb_Table_V1b\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'ydb_table_v1_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\027tech.ydb.proto.table.v1Z4github.com/ydb-platform/ydb-go-genproto/Ydb_Table_V1' + _TABLESERVICE._serialized_start=61 + _TABLESERVICE._serialized_end=1958 +# @@protoc_insertion_point(module_scope) diff --git a/ydb/_grpc/v5/ydb_table_v1_pb2.pyi b/ydb/_grpc/v5/ydb_table_v1_pb2.pyi new file mode 100644 index 00000000..5608ae88 --- /dev/null +++ b/ydb/_grpc/v5/ydb_table_v1_pb2.pyi @@ -0,0 +1,5 @@ +from protos import ydb_table_pb2 as _ydb_table_pb2 +from google.protobuf import descriptor as _descriptor +from typing import ClassVar as _ClassVar + +DESCRIPTOR: _descriptor.FileDescriptor diff --git a/ydb/_grpc/v5/ydb_table_v1_pb2_grpc.py b/ydb/_grpc/v5/ydb_table_v1_pb2_grpc.py new file mode 100644 index 00000000..7c5fe20b --- /dev/null +++ b/ydb/_grpc/v5/ydb_table_v1_pb2_grpc.py @@ -0,0 +1,793 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + +from ydb._grpc.v5.protos import ydb_table_pb2 as protos_dot_ydb__table__pb2 + + +class TableServiceStub(object): + """Missing associated documentation comment in .proto file.""" + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.CreateSession = channel.unary_unary( + '/Ydb.Table.V1.TableService/CreateSession', + request_serializer=protos_dot_ydb__table__pb2.CreateSessionRequest.SerializeToString, + response_deserializer=protos_dot_ydb__table__pb2.CreateSessionResponse.FromString, + ) + self.DeleteSession = channel.unary_unary( + '/Ydb.Table.V1.TableService/DeleteSession', + request_serializer=protos_dot_ydb__table__pb2.DeleteSessionRequest.SerializeToString, + response_deserializer=protos_dot_ydb__table__pb2.DeleteSessionResponse.FromString, + ) + self.KeepAlive = channel.unary_unary( + '/Ydb.Table.V1.TableService/KeepAlive', + request_serializer=protos_dot_ydb__table__pb2.KeepAliveRequest.SerializeToString, + response_deserializer=protos_dot_ydb__table__pb2.KeepAliveResponse.FromString, + ) + self.CreateTable = channel.unary_unary( + '/Ydb.Table.V1.TableService/CreateTable', + request_serializer=protos_dot_ydb__table__pb2.CreateTableRequest.SerializeToString, + response_deserializer=protos_dot_ydb__table__pb2.CreateTableResponse.FromString, + ) + self.DropTable = channel.unary_unary( + '/Ydb.Table.V1.TableService/DropTable', + request_serializer=protos_dot_ydb__table__pb2.DropTableRequest.SerializeToString, + response_deserializer=protos_dot_ydb__table__pb2.DropTableResponse.FromString, + ) + self.AlterTable = channel.unary_unary( + '/Ydb.Table.V1.TableService/AlterTable', + request_serializer=protos_dot_ydb__table__pb2.AlterTableRequest.SerializeToString, + response_deserializer=protos_dot_ydb__table__pb2.AlterTableResponse.FromString, + ) + self.CopyTable = channel.unary_unary( + '/Ydb.Table.V1.TableService/CopyTable', + request_serializer=protos_dot_ydb__table__pb2.CopyTableRequest.SerializeToString, + response_deserializer=protos_dot_ydb__table__pb2.CopyTableResponse.FromString, + ) + self.CopyTables = channel.unary_unary( + '/Ydb.Table.V1.TableService/CopyTables', + request_serializer=protos_dot_ydb__table__pb2.CopyTablesRequest.SerializeToString, + response_deserializer=protos_dot_ydb__table__pb2.CopyTablesResponse.FromString, + ) + self.RenameTables = channel.unary_unary( + '/Ydb.Table.V1.TableService/RenameTables', + request_serializer=protos_dot_ydb__table__pb2.RenameTablesRequest.SerializeToString, + response_deserializer=protos_dot_ydb__table__pb2.RenameTablesResponse.FromString, + ) + self.DescribeTable = channel.unary_unary( + '/Ydb.Table.V1.TableService/DescribeTable', + request_serializer=protos_dot_ydb__table__pb2.DescribeTableRequest.SerializeToString, + response_deserializer=protos_dot_ydb__table__pb2.DescribeTableResponse.FromString, + ) + self.ExplainDataQuery = channel.unary_unary( + '/Ydb.Table.V1.TableService/ExplainDataQuery', + request_serializer=protos_dot_ydb__table__pb2.ExplainDataQueryRequest.SerializeToString, + response_deserializer=protos_dot_ydb__table__pb2.ExplainDataQueryResponse.FromString, + ) + self.PrepareDataQuery = channel.unary_unary( + '/Ydb.Table.V1.TableService/PrepareDataQuery', + request_serializer=protos_dot_ydb__table__pb2.PrepareDataQueryRequest.SerializeToString, + response_deserializer=protos_dot_ydb__table__pb2.PrepareDataQueryResponse.FromString, + ) + self.ExecuteDataQuery = channel.unary_unary( + '/Ydb.Table.V1.TableService/ExecuteDataQuery', + request_serializer=protos_dot_ydb__table__pb2.ExecuteDataQueryRequest.SerializeToString, + response_deserializer=protos_dot_ydb__table__pb2.ExecuteDataQueryResponse.FromString, + ) + self.ExecuteSchemeQuery = channel.unary_unary( + '/Ydb.Table.V1.TableService/ExecuteSchemeQuery', + request_serializer=protos_dot_ydb__table__pb2.ExecuteSchemeQueryRequest.SerializeToString, + response_deserializer=protos_dot_ydb__table__pb2.ExecuteSchemeQueryResponse.FromString, + ) + self.BeginTransaction = channel.unary_unary( + '/Ydb.Table.V1.TableService/BeginTransaction', + request_serializer=protos_dot_ydb__table__pb2.BeginTransactionRequest.SerializeToString, + response_deserializer=protos_dot_ydb__table__pb2.BeginTransactionResponse.FromString, + ) + self.CommitTransaction = channel.unary_unary( + '/Ydb.Table.V1.TableService/CommitTransaction', + request_serializer=protos_dot_ydb__table__pb2.CommitTransactionRequest.SerializeToString, + response_deserializer=protos_dot_ydb__table__pb2.CommitTransactionResponse.FromString, + ) + self.RollbackTransaction = channel.unary_unary( + '/Ydb.Table.V1.TableService/RollbackTransaction', + request_serializer=protos_dot_ydb__table__pb2.RollbackTransactionRequest.SerializeToString, + response_deserializer=protos_dot_ydb__table__pb2.RollbackTransactionResponse.FromString, + ) + self.DescribeTableOptions = channel.unary_unary( + '/Ydb.Table.V1.TableService/DescribeTableOptions', + request_serializer=protos_dot_ydb__table__pb2.DescribeTableOptionsRequest.SerializeToString, + response_deserializer=protos_dot_ydb__table__pb2.DescribeTableOptionsResponse.FromString, + ) + self.StreamReadTable = channel.unary_stream( + '/Ydb.Table.V1.TableService/StreamReadTable', + request_serializer=protos_dot_ydb__table__pb2.ReadTableRequest.SerializeToString, + response_deserializer=protos_dot_ydb__table__pb2.ReadTableResponse.FromString, + ) + self.ReadRows = channel.unary_unary( + '/Ydb.Table.V1.TableService/ReadRows', + request_serializer=protos_dot_ydb__table__pb2.ReadRowsRequest.SerializeToString, + response_deserializer=protos_dot_ydb__table__pb2.ReadRowsResponse.FromString, + ) + self.BulkUpsert = channel.unary_unary( + '/Ydb.Table.V1.TableService/BulkUpsert', + request_serializer=protos_dot_ydb__table__pb2.BulkUpsertRequest.SerializeToString, + response_deserializer=protos_dot_ydb__table__pb2.BulkUpsertResponse.FromString, + ) + self.StreamExecuteScanQuery = channel.unary_stream( + '/Ydb.Table.V1.TableService/StreamExecuteScanQuery', + request_serializer=protos_dot_ydb__table__pb2.ExecuteScanQueryRequest.SerializeToString, + response_deserializer=protos_dot_ydb__table__pb2.ExecuteScanQueryPartialResponse.FromString, + ) + + +class TableServiceServicer(object): + """Missing associated documentation comment in .proto file.""" + + def CreateSession(self, request, context): + """Create new session. Implicit session creation is forbidden, + so user must create new session before execute any query, + otherwise BAD_SESSION status will be returned. + Simultaneous execution of requests are forbiden. + Sessions are volatile, can be invalidated by server, for example in case + of fatal errors. All requests with this session will fail with BAD_SESSION status. + So, client must be able to handle BAD_SESSION status. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def DeleteSession(self, request, context): + """Ends a session, releasing server resources associated with it. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def KeepAlive(self, request, context): + """Idle sessions can be kept alive by calling KeepAlive periodically. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def CreateTable(self, request, context): + """Creates new table. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def DropTable(self, request, context): + """Drop table. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def AlterTable(self, request, context): + """Modifies schema of given table. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def CopyTable(self, request, context): + """Creates copy of given table. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def CopyTables(self, request, context): + """Creates consistent copy of given tables. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def RenameTables(self, request, context): + """Creates consistent move of given tables. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def DescribeTable(self, request, context): + """Returns information about given table (metadata). + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ExplainDataQuery(self, request, context): + """Explains data query. + SessionId of previously created session must be provided. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def PrepareDataQuery(self, request, context): + """Prepares data query, returns query id. + SessionId of previously created session must be provided. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ExecuteDataQuery(self, request, context): + """Executes data query. + SessionId of previously created session must be provided. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ExecuteSchemeQuery(self, request, context): + """Executes scheme query. + SessionId of previously created session must be provided. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def BeginTransaction(self, request, context): + """Begins new transaction. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def CommitTransaction(self, request, context): + """Commits specified active transaction. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def RollbackTransaction(self, request, context): + """Performs a rollback of the specified active transaction. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def DescribeTableOptions(self, request, context): + """Describe supported table options. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def StreamReadTable(self, request, context): + """Streaming read table + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ReadRows(self, request, context): + """Reads specified keys non-transactionally from a single table + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def BulkUpsert(self, request, context): + """Upserts a batch of rows non-transactionally. + Returns success only when all rows were successfully upserted. In case of an error some rows might + be upserted and some might not. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def StreamExecuteScanQuery(self, request, context): + """Executes scan query with streaming result. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_TableServiceServicer_to_server(servicer, server): + rpc_method_handlers = { + 'CreateSession': grpc.unary_unary_rpc_method_handler( + servicer.CreateSession, + request_deserializer=protos_dot_ydb__table__pb2.CreateSessionRequest.FromString, + response_serializer=protos_dot_ydb__table__pb2.CreateSessionResponse.SerializeToString, + ), + 'DeleteSession': grpc.unary_unary_rpc_method_handler( + servicer.DeleteSession, + request_deserializer=protos_dot_ydb__table__pb2.DeleteSessionRequest.FromString, + response_serializer=protos_dot_ydb__table__pb2.DeleteSessionResponse.SerializeToString, + ), + 'KeepAlive': grpc.unary_unary_rpc_method_handler( + servicer.KeepAlive, + request_deserializer=protos_dot_ydb__table__pb2.KeepAliveRequest.FromString, + response_serializer=protos_dot_ydb__table__pb2.KeepAliveResponse.SerializeToString, + ), + 'CreateTable': grpc.unary_unary_rpc_method_handler( + servicer.CreateTable, + request_deserializer=protos_dot_ydb__table__pb2.CreateTableRequest.FromString, + response_serializer=protos_dot_ydb__table__pb2.CreateTableResponse.SerializeToString, + ), + 'DropTable': grpc.unary_unary_rpc_method_handler( + servicer.DropTable, + request_deserializer=protos_dot_ydb__table__pb2.DropTableRequest.FromString, + response_serializer=protos_dot_ydb__table__pb2.DropTableResponse.SerializeToString, + ), + 'AlterTable': grpc.unary_unary_rpc_method_handler( + servicer.AlterTable, + request_deserializer=protos_dot_ydb__table__pb2.AlterTableRequest.FromString, + response_serializer=protos_dot_ydb__table__pb2.AlterTableResponse.SerializeToString, + ), + 'CopyTable': grpc.unary_unary_rpc_method_handler( + servicer.CopyTable, + request_deserializer=protos_dot_ydb__table__pb2.CopyTableRequest.FromString, + response_serializer=protos_dot_ydb__table__pb2.CopyTableResponse.SerializeToString, + ), + 'CopyTables': grpc.unary_unary_rpc_method_handler( + servicer.CopyTables, + request_deserializer=protos_dot_ydb__table__pb2.CopyTablesRequest.FromString, + response_serializer=protos_dot_ydb__table__pb2.CopyTablesResponse.SerializeToString, + ), + 'RenameTables': grpc.unary_unary_rpc_method_handler( + servicer.RenameTables, + request_deserializer=protos_dot_ydb__table__pb2.RenameTablesRequest.FromString, + response_serializer=protos_dot_ydb__table__pb2.RenameTablesResponse.SerializeToString, + ), + 'DescribeTable': grpc.unary_unary_rpc_method_handler( + servicer.DescribeTable, + request_deserializer=protos_dot_ydb__table__pb2.DescribeTableRequest.FromString, + response_serializer=protos_dot_ydb__table__pb2.DescribeTableResponse.SerializeToString, + ), + 'ExplainDataQuery': grpc.unary_unary_rpc_method_handler( + servicer.ExplainDataQuery, + request_deserializer=protos_dot_ydb__table__pb2.ExplainDataQueryRequest.FromString, + response_serializer=protos_dot_ydb__table__pb2.ExplainDataQueryResponse.SerializeToString, + ), + 'PrepareDataQuery': grpc.unary_unary_rpc_method_handler( + servicer.PrepareDataQuery, + request_deserializer=protos_dot_ydb__table__pb2.PrepareDataQueryRequest.FromString, + response_serializer=protos_dot_ydb__table__pb2.PrepareDataQueryResponse.SerializeToString, + ), + 'ExecuteDataQuery': grpc.unary_unary_rpc_method_handler( + servicer.ExecuteDataQuery, + request_deserializer=protos_dot_ydb__table__pb2.ExecuteDataQueryRequest.FromString, + response_serializer=protos_dot_ydb__table__pb2.ExecuteDataQueryResponse.SerializeToString, + ), + 'ExecuteSchemeQuery': grpc.unary_unary_rpc_method_handler( + servicer.ExecuteSchemeQuery, + request_deserializer=protos_dot_ydb__table__pb2.ExecuteSchemeQueryRequest.FromString, + response_serializer=protos_dot_ydb__table__pb2.ExecuteSchemeQueryResponse.SerializeToString, + ), + 'BeginTransaction': grpc.unary_unary_rpc_method_handler( + servicer.BeginTransaction, + request_deserializer=protos_dot_ydb__table__pb2.BeginTransactionRequest.FromString, + response_serializer=protos_dot_ydb__table__pb2.BeginTransactionResponse.SerializeToString, + ), + 'CommitTransaction': grpc.unary_unary_rpc_method_handler( + servicer.CommitTransaction, + request_deserializer=protos_dot_ydb__table__pb2.CommitTransactionRequest.FromString, + response_serializer=protos_dot_ydb__table__pb2.CommitTransactionResponse.SerializeToString, + ), + 'RollbackTransaction': grpc.unary_unary_rpc_method_handler( + servicer.RollbackTransaction, + request_deserializer=protos_dot_ydb__table__pb2.RollbackTransactionRequest.FromString, + response_serializer=protos_dot_ydb__table__pb2.RollbackTransactionResponse.SerializeToString, + ), + 'DescribeTableOptions': grpc.unary_unary_rpc_method_handler( + servicer.DescribeTableOptions, + request_deserializer=protos_dot_ydb__table__pb2.DescribeTableOptionsRequest.FromString, + response_serializer=protos_dot_ydb__table__pb2.DescribeTableOptionsResponse.SerializeToString, + ), + 'StreamReadTable': grpc.unary_stream_rpc_method_handler( + servicer.StreamReadTable, + request_deserializer=protos_dot_ydb__table__pb2.ReadTableRequest.FromString, + response_serializer=protos_dot_ydb__table__pb2.ReadTableResponse.SerializeToString, + ), + 'ReadRows': grpc.unary_unary_rpc_method_handler( + servicer.ReadRows, + request_deserializer=protos_dot_ydb__table__pb2.ReadRowsRequest.FromString, + response_serializer=protos_dot_ydb__table__pb2.ReadRowsResponse.SerializeToString, + ), + 'BulkUpsert': grpc.unary_unary_rpc_method_handler( + servicer.BulkUpsert, + request_deserializer=protos_dot_ydb__table__pb2.BulkUpsertRequest.FromString, + response_serializer=protos_dot_ydb__table__pb2.BulkUpsertResponse.SerializeToString, + ), + 'StreamExecuteScanQuery': grpc.unary_stream_rpc_method_handler( + servicer.StreamExecuteScanQuery, + request_deserializer=protos_dot_ydb__table__pb2.ExecuteScanQueryRequest.FromString, + response_serializer=protos_dot_ydb__table__pb2.ExecuteScanQueryPartialResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'Ydb.Table.V1.TableService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + + + # This class is part of an EXPERIMENTAL API. +class TableService(object): + """Missing associated documentation comment in .proto file.""" + + @staticmethod + def CreateSession(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/Ydb.Table.V1.TableService/CreateSession', + protos_dot_ydb__table__pb2.CreateSessionRequest.SerializeToString, + protos_dot_ydb__table__pb2.CreateSessionResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def DeleteSession(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/Ydb.Table.V1.TableService/DeleteSession', + protos_dot_ydb__table__pb2.DeleteSessionRequest.SerializeToString, + protos_dot_ydb__table__pb2.DeleteSessionResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def KeepAlive(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/Ydb.Table.V1.TableService/KeepAlive', + protos_dot_ydb__table__pb2.KeepAliveRequest.SerializeToString, + protos_dot_ydb__table__pb2.KeepAliveResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def CreateTable(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/Ydb.Table.V1.TableService/CreateTable', + protos_dot_ydb__table__pb2.CreateTableRequest.SerializeToString, + protos_dot_ydb__table__pb2.CreateTableResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def DropTable(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/Ydb.Table.V1.TableService/DropTable', + protos_dot_ydb__table__pb2.DropTableRequest.SerializeToString, + protos_dot_ydb__table__pb2.DropTableResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def AlterTable(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/Ydb.Table.V1.TableService/AlterTable', + protos_dot_ydb__table__pb2.AlterTableRequest.SerializeToString, + protos_dot_ydb__table__pb2.AlterTableResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def CopyTable(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/Ydb.Table.V1.TableService/CopyTable', + protos_dot_ydb__table__pb2.CopyTableRequest.SerializeToString, + protos_dot_ydb__table__pb2.CopyTableResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def CopyTables(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/Ydb.Table.V1.TableService/CopyTables', + protos_dot_ydb__table__pb2.CopyTablesRequest.SerializeToString, + protos_dot_ydb__table__pb2.CopyTablesResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def RenameTables(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/Ydb.Table.V1.TableService/RenameTables', + protos_dot_ydb__table__pb2.RenameTablesRequest.SerializeToString, + protos_dot_ydb__table__pb2.RenameTablesResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def DescribeTable(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/Ydb.Table.V1.TableService/DescribeTable', + protos_dot_ydb__table__pb2.DescribeTableRequest.SerializeToString, + protos_dot_ydb__table__pb2.DescribeTableResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ExplainDataQuery(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/Ydb.Table.V1.TableService/ExplainDataQuery', + protos_dot_ydb__table__pb2.ExplainDataQueryRequest.SerializeToString, + protos_dot_ydb__table__pb2.ExplainDataQueryResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def PrepareDataQuery(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/Ydb.Table.V1.TableService/PrepareDataQuery', + protos_dot_ydb__table__pb2.PrepareDataQueryRequest.SerializeToString, + protos_dot_ydb__table__pb2.PrepareDataQueryResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ExecuteDataQuery(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/Ydb.Table.V1.TableService/ExecuteDataQuery', + protos_dot_ydb__table__pb2.ExecuteDataQueryRequest.SerializeToString, + protos_dot_ydb__table__pb2.ExecuteDataQueryResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ExecuteSchemeQuery(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/Ydb.Table.V1.TableService/ExecuteSchemeQuery', + protos_dot_ydb__table__pb2.ExecuteSchemeQueryRequest.SerializeToString, + protos_dot_ydb__table__pb2.ExecuteSchemeQueryResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def BeginTransaction(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/Ydb.Table.V1.TableService/BeginTransaction', + protos_dot_ydb__table__pb2.BeginTransactionRequest.SerializeToString, + protos_dot_ydb__table__pb2.BeginTransactionResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def CommitTransaction(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/Ydb.Table.V1.TableService/CommitTransaction', + protos_dot_ydb__table__pb2.CommitTransactionRequest.SerializeToString, + protos_dot_ydb__table__pb2.CommitTransactionResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def RollbackTransaction(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/Ydb.Table.V1.TableService/RollbackTransaction', + protos_dot_ydb__table__pb2.RollbackTransactionRequest.SerializeToString, + protos_dot_ydb__table__pb2.RollbackTransactionResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def DescribeTableOptions(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/Ydb.Table.V1.TableService/DescribeTableOptions', + protos_dot_ydb__table__pb2.DescribeTableOptionsRequest.SerializeToString, + protos_dot_ydb__table__pb2.DescribeTableOptionsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def StreamReadTable(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_stream(request, target, '/Ydb.Table.V1.TableService/StreamReadTable', + protos_dot_ydb__table__pb2.ReadTableRequest.SerializeToString, + protos_dot_ydb__table__pb2.ReadTableResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ReadRows(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/Ydb.Table.V1.TableService/ReadRows', + protos_dot_ydb__table__pb2.ReadRowsRequest.SerializeToString, + protos_dot_ydb__table__pb2.ReadRowsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def BulkUpsert(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/Ydb.Table.V1.TableService/BulkUpsert', + protos_dot_ydb__table__pb2.BulkUpsertRequest.SerializeToString, + protos_dot_ydb__table__pb2.BulkUpsertResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def StreamExecuteScanQuery(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_stream(request, target, '/Ydb.Table.V1.TableService/StreamExecuteScanQuery', + protos_dot_ydb__table__pb2.ExecuteScanQueryRequest.SerializeToString, + protos_dot_ydb__table__pb2.ExecuteScanQueryPartialResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/ydb/_grpc/v5/ydb_topic_v1_pb2.py b/ydb/_grpc/v5/ydb_topic_v1_pb2.py new file mode 100644 index 00000000..54efc1e3 --- /dev/null +++ b/ydb/_grpc/v5/ydb_topic_v1_pb2.py @@ -0,0 +1,28 @@ +# -*- coding: utf-8 -*- +# flake8: noqa +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: ydb_topic_v1.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from ydb._grpc.v5.protos import ydb_topic_pb2 as protos_dot_ydb__topic__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x12ydb_topic_v1.proto\x12\x0cYdb.Topic.V1\x1a\x16protos/ydb_topic.proto2\xb7\x06\n\x0cTopicService\x12\x65\n\x0bStreamWrite\x12(.Ydb.Topic.StreamWriteMessage.FromClient\x1a(.Ydb.Topic.StreamWriteMessage.FromServer(\x01\x30\x01\x12\x62\n\nStreamRead\x12\'.Ydb.Topic.StreamReadMessage.FromClient\x1a\'.Ydb.Topic.StreamReadMessage.FromServer(\x01\x30\x01\x12O\n\x0c\x43ommitOffset\x12\x1e.Ydb.Topic.CommitOffsetRequest\x1a\x1f.Ydb.Topic.CommitOffsetResponse\x12y\n\x1aUpdateOffsetsInTransaction\x12,.Ydb.Topic.UpdateOffsetsInTransactionRequest\x1a-.Ydb.Topic.UpdateOffsetsInTransactionResponse\x12L\n\x0b\x43reateTopic\x12\x1d.Ydb.Topic.CreateTopicRequest\x1a\x1e.Ydb.Topic.CreateTopicResponse\x12R\n\rDescribeTopic\x12\x1f.Ydb.Topic.DescribeTopicRequest\x1a .Ydb.Topic.DescribeTopicResponse\x12[\n\x10\x44\x65scribeConsumer\x12\".Ydb.Topic.DescribeConsumerRequest\x1a#.Ydb.Topic.DescribeConsumerResponse\x12I\n\nAlterTopic\x12\x1c.Ydb.Topic.AlterTopicRequest\x1a\x1d.Ydb.Topic.AlterTopicResponse\x12\x46\n\tDropTopic\x12\x1b.Ydb.Topic.DropTopicRequest\x1a\x1c.Ydb.Topic.DropTopicResponseBR\n\x17tech.ydb.proto.topic.v1Z4github.com/ydb-platform/ydb-go-genproto/Ydb_Topic_V1\xf8\x01\x01\x62\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'ydb_topic_v1_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\027tech.ydb.proto.topic.v1Z4github.com/ydb-platform/ydb-go-genproto/Ydb_Topic_V1\370\001\001' + _TOPICSERVICE._serialized_start=61 + _TOPICSERVICE._serialized_end=884 +# @@protoc_insertion_point(module_scope) diff --git a/ydb/_grpc/v5/ydb_topic_v1_pb2.pyi b/ydb/_grpc/v5/ydb_topic_v1_pb2.pyi new file mode 100644 index 00000000..c463e198 --- /dev/null +++ b/ydb/_grpc/v5/ydb_topic_v1_pb2.pyi @@ -0,0 +1,5 @@ +from protos import ydb_topic_pb2 as _ydb_topic_pb2 +from google.protobuf import descriptor as _descriptor +from typing import ClassVar as _ClassVar + +DESCRIPTOR: _descriptor.FileDescriptor diff --git a/ydb/_grpc/v5/ydb_topic_v1_pb2_grpc.py b/ydb/_grpc/v5/ydb_topic_v1_pb2_grpc.py new file mode 100644 index 00000000..a66732da --- /dev/null +++ b/ydb/_grpc/v5/ydb_topic_v1_pb2_grpc.py @@ -0,0 +1,389 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + +from ydb._grpc.v5.protos import ydb_topic_pb2 as protos_dot_ydb__topic__pb2 + + +class TopicServiceStub(object): + """Missing associated documentation comment in .proto file.""" + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.StreamWrite = channel.stream_stream( + '/Ydb.Topic.V1.TopicService/StreamWrite', + request_serializer=protos_dot_ydb__topic__pb2.StreamWriteMessage.FromClient.SerializeToString, + response_deserializer=protos_dot_ydb__topic__pb2.StreamWriteMessage.FromServer.FromString, + ) + self.StreamRead = channel.stream_stream( + '/Ydb.Topic.V1.TopicService/StreamRead', + request_serializer=protos_dot_ydb__topic__pb2.StreamReadMessage.FromClient.SerializeToString, + response_deserializer=protos_dot_ydb__topic__pb2.StreamReadMessage.FromServer.FromString, + ) + self.CommitOffset = channel.unary_unary( + '/Ydb.Topic.V1.TopicService/CommitOffset', + request_serializer=protos_dot_ydb__topic__pb2.CommitOffsetRequest.SerializeToString, + response_deserializer=protos_dot_ydb__topic__pb2.CommitOffsetResponse.FromString, + ) + self.UpdateOffsetsInTransaction = channel.unary_unary( + '/Ydb.Topic.V1.TopicService/UpdateOffsetsInTransaction', + request_serializer=protos_dot_ydb__topic__pb2.UpdateOffsetsInTransactionRequest.SerializeToString, + response_deserializer=protos_dot_ydb__topic__pb2.UpdateOffsetsInTransactionResponse.FromString, + ) + self.CreateTopic = channel.unary_unary( + '/Ydb.Topic.V1.TopicService/CreateTopic', + request_serializer=protos_dot_ydb__topic__pb2.CreateTopicRequest.SerializeToString, + response_deserializer=protos_dot_ydb__topic__pb2.CreateTopicResponse.FromString, + ) + self.DescribeTopic = channel.unary_unary( + '/Ydb.Topic.V1.TopicService/DescribeTopic', + request_serializer=protos_dot_ydb__topic__pb2.DescribeTopicRequest.SerializeToString, + response_deserializer=protos_dot_ydb__topic__pb2.DescribeTopicResponse.FromString, + ) + self.DescribeConsumer = channel.unary_unary( + '/Ydb.Topic.V1.TopicService/DescribeConsumer', + request_serializer=protos_dot_ydb__topic__pb2.DescribeConsumerRequest.SerializeToString, + response_deserializer=protos_dot_ydb__topic__pb2.DescribeConsumerResponse.FromString, + ) + self.AlterTopic = channel.unary_unary( + '/Ydb.Topic.V1.TopicService/AlterTopic', + request_serializer=protos_dot_ydb__topic__pb2.AlterTopicRequest.SerializeToString, + response_deserializer=protos_dot_ydb__topic__pb2.AlterTopicResponse.FromString, + ) + self.DropTopic = channel.unary_unary( + '/Ydb.Topic.V1.TopicService/DropTopic', + request_serializer=protos_dot_ydb__topic__pb2.DropTopicRequest.SerializeToString, + response_deserializer=protos_dot_ydb__topic__pb2.DropTopicResponse.FromString, + ) + + +class TopicServiceServicer(object): + """Missing associated documentation comment in .proto file.""" + + def StreamWrite(self, request_iterator, context): + """Create Write Session + Pipeline example: + client server + InitRequest(Topic, MessageGroupID, ...) + ----------------> + InitResponse(Partition, MaxSeqNo, ...) + <---------------- + WriteRequest(data1, seqNo1) + ----------------> + WriteRequest(data2, seqNo2) + ----------------> + WriteResponse(seqNo1, offset1, ...) + <---------------- + WriteRequest(data3, seqNo3) + ----------------> + WriteResponse(seqNo2, offset2, ...) + <---------------- + [something went wrong] (status != SUCCESS, issues not empty) + <---------------- + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def StreamRead(self, request_iterator, context): + """Create Read Session + Pipeline: + client server + InitRequest(Topics, ClientId, ...) + ----------------> + InitResponse(SessionId) + <---------------- + ReadRequest + ----------------> + ReadRequest + ----------------> + StartPartitionSessionRequest(Topic1, Partition1, PartitionSessionID1, ...) + <---------------- + StartPartitionSessionRequest(Topic2, Partition2, PartitionSessionID2, ...) + <---------------- + StartPartitionSessionResponse(PartitionSessionID1, ...) + client must respond with this message to actually start recieving data messages from this partition + ----------------> + StopPartitionSessionRequest(PartitionSessionID1, ...) + <---------------- + StopPartitionSessionResponse(PartitionSessionID1, ...) + only after this response server will give this parittion to other session. + ----------------> + StartPartitionSessionResponse(PartitionSession2, ...) + ----------------> + ReadResponse(data, ...) + <---------------- + CommitRequest(PartitionCommit1, ...) + ----------------> + CommitResponse(PartitionCommitAck1, ...) + <---------------- + [something went wrong] (status != SUCCESS, issues not empty) + <---------------- + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def CommitOffset(self, request, context): + """Single commit offset request. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def UpdateOffsetsInTransaction(self, request, context): + """Add information about offset ranges to the transaction. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def CreateTopic(self, request, context): + """Create topic command. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def DescribeTopic(self, request, context): + """Describe topic command. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def DescribeConsumer(self, request, context): + """Describe topic's consumer command. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def AlterTopic(self, request, context): + """Alter topic command. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def DropTopic(self, request, context): + """Drop topic command. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_TopicServiceServicer_to_server(servicer, server): + rpc_method_handlers = { + 'StreamWrite': grpc.stream_stream_rpc_method_handler( + servicer.StreamWrite, + request_deserializer=protos_dot_ydb__topic__pb2.StreamWriteMessage.FromClient.FromString, + response_serializer=protos_dot_ydb__topic__pb2.StreamWriteMessage.FromServer.SerializeToString, + ), + 'StreamRead': grpc.stream_stream_rpc_method_handler( + servicer.StreamRead, + request_deserializer=protos_dot_ydb__topic__pb2.StreamReadMessage.FromClient.FromString, + response_serializer=protos_dot_ydb__topic__pb2.StreamReadMessage.FromServer.SerializeToString, + ), + 'CommitOffset': grpc.unary_unary_rpc_method_handler( + servicer.CommitOffset, + request_deserializer=protos_dot_ydb__topic__pb2.CommitOffsetRequest.FromString, + response_serializer=protos_dot_ydb__topic__pb2.CommitOffsetResponse.SerializeToString, + ), + 'UpdateOffsetsInTransaction': grpc.unary_unary_rpc_method_handler( + servicer.UpdateOffsetsInTransaction, + request_deserializer=protos_dot_ydb__topic__pb2.UpdateOffsetsInTransactionRequest.FromString, + response_serializer=protos_dot_ydb__topic__pb2.UpdateOffsetsInTransactionResponse.SerializeToString, + ), + 'CreateTopic': grpc.unary_unary_rpc_method_handler( + servicer.CreateTopic, + request_deserializer=protos_dot_ydb__topic__pb2.CreateTopicRequest.FromString, + response_serializer=protos_dot_ydb__topic__pb2.CreateTopicResponse.SerializeToString, + ), + 'DescribeTopic': grpc.unary_unary_rpc_method_handler( + servicer.DescribeTopic, + request_deserializer=protos_dot_ydb__topic__pb2.DescribeTopicRequest.FromString, + response_serializer=protos_dot_ydb__topic__pb2.DescribeTopicResponse.SerializeToString, + ), + 'DescribeConsumer': grpc.unary_unary_rpc_method_handler( + servicer.DescribeConsumer, + request_deserializer=protos_dot_ydb__topic__pb2.DescribeConsumerRequest.FromString, + response_serializer=protos_dot_ydb__topic__pb2.DescribeConsumerResponse.SerializeToString, + ), + 'AlterTopic': grpc.unary_unary_rpc_method_handler( + servicer.AlterTopic, + request_deserializer=protos_dot_ydb__topic__pb2.AlterTopicRequest.FromString, + response_serializer=protos_dot_ydb__topic__pb2.AlterTopicResponse.SerializeToString, + ), + 'DropTopic': grpc.unary_unary_rpc_method_handler( + servicer.DropTopic, + request_deserializer=protos_dot_ydb__topic__pb2.DropTopicRequest.FromString, + response_serializer=protos_dot_ydb__topic__pb2.DropTopicResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'Ydb.Topic.V1.TopicService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + + + # This class is part of an EXPERIMENTAL API. +class TopicService(object): + """Missing associated documentation comment in .proto file.""" + + @staticmethod + def StreamWrite(request_iterator, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.stream_stream(request_iterator, target, '/Ydb.Topic.V1.TopicService/StreamWrite', + protos_dot_ydb__topic__pb2.StreamWriteMessage.FromClient.SerializeToString, + protos_dot_ydb__topic__pb2.StreamWriteMessage.FromServer.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def StreamRead(request_iterator, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.stream_stream(request_iterator, target, '/Ydb.Topic.V1.TopicService/StreamRead', + protos_dot_ydb__topic__pb2.StreamReadMessage.FromClient.SerializeToString, + protos_dot_ydb__topic__pb2.StreamReadMessage.FromServer.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def CommitOffset(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/Ydb.Topic.V1.TopicService/CommitOffset', + protos_dot_ydb__topic__pb2.CommitOffsetRequest.SerializeToString, + protos_dot_ydb__topic__pb2.CommitOffsetResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def UpdateOffsetsInTransaction(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/Ydb.Topic.V1.TopicService/UpdateOffsetsInTransaction', + protos_dot_ydb__topic__pb2.UpdateOffsetsInTransactionRequest.SerializeToString, + protos_dot_ydb__topic__pb2.UpdateOffsetsInTransactionResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def CreateTopic(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/Ydb.Topic.V1.TopicService/CreateTopic', + protos_dot_ydb__topic__pb2.CreateTopicRequest.SerializeToString, + protos_dot_ydb__topic__pb2.CreateTopicResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def DescribeTopic(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/Ydb.Topic.V1.TopicService/DescribeTopic', + protos_dot_ydb__topic__pb2.DescribeTopicRequest.SerializeToString, + protos_dot_ydb__topic__pb2.DescribeTopicResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def DescribeConsumer(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/Ydb.Topic.V1.TopicService/DescribeConsumer', + protos_dot_ydb__topic__pb2.DescribeConsumerRequest.SerializeToString, + protos_dot_ydb__topic__pb2.DescribeConsumerResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def AlterTopic(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/Ydb.Topic.V1.TopicService/AlterTopic', + protos_dot_ydb__topic__pb2.AlterTopicRequest.SerializeToString, + protos_dot_ydb__topic__pb2.AlterTopicResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def DropTopic(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/Ydb.Topic.V1.TopicService/DropTopic', + protos_dot_ydb__topic__pb2.DropTopicRequest.SerializeToString, + protos_dot_ydb__topic__pb2.DropTopicResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata)