From 06f4d8a4cd2f2d9845776f04f8188a7152e6df92 Mon Sep 17 00:00:00 2001 From: KirillKurdyukov Date: Fri, 5 Jun 2026 12:22:04 +0300 Subject: [PATCH 1/7] feat: supported attach hint --- CHANGELOG.md | 2 + tests/query/test_query_session_hints.py | 72 +++++++++++++++++++++++++ ydb/aio/query/session.py | 2 +- ydb/query/session.py | 51 +++++++++++++++++- 4 files changed, 125 insertions(+), 2 deletions(-) create mode 100644 tests/query/test_query_session_hints.py diff --git a/CHANGELOG.md b/CHANGELOG.md index 23662f0a9..fe8d5fc74 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,5 @@ +* Query session attach stream handles `NodeShutdown` and `SessionShutdown` session hints: on `NodeShutdown` the session's node connection is pessimized and the session is retired, on `SessionShutdown` the session is retired without touching the node +* Bumped `ydb-api-protos` and regenerated gRPC/protobuf stubs (v3–v6) to include query service session hints * Fix incompatibility with protobuf 6.30–6.31.0: regenerate v6 stubs with the lowest 6.x gencode floor (6.30.0) instead of 6.31.1 ## 3.29.4 ## diff --git a/tests/query/test_query_session_hints.py b/tests/query/test_query_session_hints.py new file mode 100644 index 000000000..fee755062 --- /dev/null +++ b/tests/query/test_query_session_hints.py @@ -0,0 +1,72 @@ +from unittest import mock + +import pytest + +from ydb._grpc.common.protos import ydb_query_pb2 +from ydb.query.session import QuerySession + + +def _make_session(node_id=42): + driver = mock.Mock() + driver._store = mock.Mock() + driver._store.connections_by_node_id = {node_id: mock.Mock()} + driver._on_disconnected = mock.Mock(return_value=None) + session = QuerySession(driver) + session._session_id = "test-session" + session._node_id = node_id + return session, driver + + +class TestQuerySessionAttachHints: + def test_node_shutdown_pessimizes_node_and_invalidates_session(self): + session, driver = _make_session(node_id=42) + connection = driver._store.connections_by_node_id[42] + + session._handle_attach_session_state( + ydb_query_pb2.SessionState( + status=0, + node_shutdown=ydb_query_pb2.NodeShutdownHint(), + ) + ) + + driver._on_disconnected.assert_called_once_with(connection) + assert session._invalidated + assert session._closed + + def test_session_shutdown_invalidates_without_pessimizing_node(self): + session, driver = _make_session(node_id=42) + + session._handle_attach_session_state( + ydb_query_pb2.SessionState( + status=0, + session_shutdown=ydb_query_pb2.SessionShutdownHint(), + ) + ) + + driver._on_disconnected.assert_not_called() + assert session._invalidated + assert session._closed + + def test_node_shutdown_with_zero_node_id_skips_pessimization(self): + session, driver = _make_session(node_id=0) + + session._handle_attach_session_state( + ydb_query_pb2.SessionState( + status=0, + node_shutdown=ydb_query_pb2.NodeShutdownHint(), + ) + ) + + driver._on_disconnected.assert_not_called() + assert session._invalidated + + def test_no_hint_does_not_invalidate(self): + session, driver = _make_session() + + session._handle_attach_session_state( + ydb_query_pb2.SessionState(status=0), + ) + + driver._on_disconnected.assert_not_called() + assert not session._invalidated + assert not session._closed diff --git a/ydb/aio/query/session.py b/ydb/aio/query/session.py index b776b6382..52dbed172 100644 --- a/ydb/aio/query/session.py +++ b/ydb/aio/query/session.py @@ -53,7 +53,7 @@ async def _attach(self) -> None: self._stream = await self._attach_call() self._status_stream = _utilities.AsyncResponseIterator( self._stream, - lambda response: common_utils.ServerStatus.from_proto(response), + self._attach_stream_wrapper, ) try: diff --git a/ydb/query/session.py b/ydb/query/session.py index a9c1b4a50..9f522b0e8 100644 --- a/ydb/query/session.py +++ b/ydb/query/session.py @@ -1,4 +1,5 @@ import abc +import asyncio import json import logging import threading @@ -156,6 +157,54 @@ def _check_session_ready_to_use(self) -> None: if self._closed: raise RuntimeError(f"Session is not active, session_id: {self._session_id}, closed: {self._closed}") + def _attach_stream_wrapper(self, response_pb): + """Map attach-stream protobuf frames to ServerStatus and handle session hints.""" + self._handle_attach_session_state(response_pb) + return common_utils.ServerStatus.from_proto(response_pb) + + def _handle_attach_session_state(self, response_pb) -> None: + """Retire the session when the server sends a shutdown hint on the attach stream.""" + if response_pb is None: + return + + hint = response_pb.WhichOneof("session_hint") + if hint == "node_shutdown": + self._pessimize_node_by_id(self._node_id) + self._close_session(invalidate=True) + elif hint == "session_shutdown": + self._close_session(invalidate=True) + + def _pessimize_node_by_id(self, node_id: Optional[int]) -> None: + """Deprioritize the node's connection (same effect as a transport failure).""" + if node_id is None or node_id <= 0: + return + + store = getattr(self._driver, "_store", None) + if store is None: + return + + connection = getattr(store, "connections_by_node_id", {}).get(node_id) + if connection is None: + return + + on_disconnected = getattr(self._driver, "_on_disconnected", None) + if on_disconnected is None: + connection.close() + return + + disconnect_cb = on_disconnected(connection) + if disconnect_cb is None: + return + + if asyncio.iscoroutinefunction(disconnect_cb): + loop = getattr(self, "_loop", None) + if loop is not None and loop.is_running(): + loop.create_task(disconnect_cb()) + return + + if callable(disconnect_cb): + disconnect_cb() + def _close_session(self, invalidate: bool = False) -> None: if self._closed: return @@ -362,7 +411,7 @@ def _attach(self, first_resp_timeout: int = DEFAULT_INITIAL_RESPONSE_TIMEOUT) -> self._stream = self._attach_call() status_stream = _utilities.SyncResponseIterator( self._stream, - lambda response: common_utils.ServerStatus.from_proto(response), + self._attach_stream_wrapper, ) try: From c428f77e84c9ae394e070963119078eecf6d72f9 Mon Sep 17 00:00:00 2001 From: KirillKurdyukov Date: Fri, 5 Jun 2026 12:35:49 +0300 Subject: [PATCH 2/7] fix linter --- tests/query/test_query_session_hints.py | 2 -- ydb/aio/query/session.py | 1 - 2 files changed, 3 deletions(-) diff --git a/tests/query/test_query_session_hints.py b/tests/query/test_query_session_hints.py index fee755062..f44aa6e52 100644 --- a/tests/query/test_query_session_hints.py +++ b/tests/query/test_query_session_hints.py @@ -1,7 +1,5 @@ from unittest import mock -import pytest - from ydb._grpc.common.protos import ydb_query_pb2 from ydb.query.session import QuerySession diff --git a/ydb/aio/query/session.py b/ydb/aio/query/session.py index 52dbed172..1c0db50ad 100644 --- a/ydb/aio/query/session.py +++ b/ydb/aio/query/session.py @@ -14,7 +14,6 @@ from .. import _utilities from ... import issues from ...settings import BaseRequestSettings -from ..._grpc.grpcwrapper import common_utils from ..._grpc.grpcwrapper import ydb_query_public_types as _ydb_query_public from ...query import base From 5880c2c39f5e6af89f98e639dec11b1bb3d2ff15 Mon Sep 17 00:00:00 2001 From: KirillKurdyukov Date: Mon, 8 Jun 2026 15:46:04 +0300 Subject: [PATCH 3/7] Move node pessimation to connection pools Co-authored-by: Cursor --- tests/query/test_query_session_hints.py | 60 +++++++++++++++++++++---- ydb/aio/pool.py | 11 ++++- ydb/pool.py | 9 ++++ ydb/query/session.py | 34 +------------- 4 files changed, 71 insertions(+), 43 deletions(-) diff --git a/tests/query/test_query_session_hints.py b/tests/query/test_query_session_hints.py index f44aa6e52..7da4965a0 100644 --- a/tests/query/test_query_session_hints.py +++ b/tests/query/test_query_session_hints.py @@ -1,14 +1,17 @@ +import asyncio from unittest import mock +import pytest + from ydb._grpc.common.protos import ydb_query_pb2 +from ydb.aio.pool import ConnectionPool as AsyncConnectionPool +from ydb.pool import ConnectionPool from ydb.query.session import QuerySession def _make_session(node_id=42): driver = mock.Mock() - driver._store = mock.Mock() - driver._store.connections_by_node_id = {node_id: mock.Mock()} - driver._on_disconnected = mock.Mock(return_value=None) + driver._pessimize_node = mock.Mock() session = QuerySession(driver) session._session_id = "test-session" session._node_id = node_id @@ -18,7 +21,6 @@ def _make_session(node_id=42): class TestQuerySessionAttachHints: def test_node_shutdown_pessimizes_node_and_invalidates_session(self): session, driver = _make_session(node_id=42) - connection = driver._store.connections_by_node_id[42] session._handle_attach_session_state( ydb_query_pb2.SessionState( @@ -27,7 +29,7 @@ def test_node_shutdown_pessimizes_node_and_invalidates_session(self): ) ) - driver._on_disconnected.assert_called_once_with(connection) + driver._pessimize_node.assert_called_once_with(42) assert session._invalidated assert session._closed @@ -41,11 +43,11 @@ def test_session_shutdown_invalidates_without_pessimizing_node(self): ) ) - driver._on_disconnected.assert_not_called() + driver._pessimize_node.assert_not_called() assert session._invalidated assert session._closed - def test_node_shutdown_with_zero_node_id_skips_pessimization(self): + def test_node_shutdown_with_zero_node_id_delegates_to_driver(self): session, driver = _make_session(node_id=0) session._handle_attach_session_state( @@ -55,7 +57,7 @@ def test_node_shutdown_with_zero_node_id_skips_pessimization(self): ) ) - driver._on_disconnected.assert_not_called() + driver._pessimize_node.assert_called_once_with(0) assert session._invalidated def test_no_hint_does_not_invalidate(self): @@ -65,6 +67,46 @@ def test_no_hint_does_not_invalidate(self): ydb_query_pb2.SessionState(status=0), ) - driver._on_disconnected.assert_not_called() + driver._pessimize_node.assert_not_called() assert not session._invalidated assert not session._closed + + +class TestConnectionPoolAttachHintPessimization: + def test_sync_pool_pessimizes_node_connection(self): + pool = ConnectionPool.__new__(ConnectionPool) + connection = mock.Mock() + pool._store = mock.Mock() + pool._store.connections_by_node_id = {42: connection} + pool._on_disconnected = mock.Mock() + + pool._pessimize_node(42) + + pool._on_disconnected.assert_called_once_with(connection) + + def test_sync_pool_ignores_missing_node_connection(self): + pool = ConnectionPool.__new__(ConnectionPool) + pool._store = mock.Mock() + pool._store.connections_by_node_id = {} + pool._on_disconnected = mock.Mock() + + pool._pessimize_node(42) + pool._pessimize_node(0) + pool._pessimize_node(None) + + pool._on_disconnected.assert_not_called() + + @pytest.mark.asyncio + async def test_async_pool_pessimizes_node_connection(self): + pool = AsyncConnectionPool.__new__(AsyncConnectionPool) + connection = mock.Mock() + disconnect = mock.AsyncMock() + pool._store = mock.Mock() + pool._store.connections_by_node_id = {42: connection} + pool._on_disconnected = mock.Mock(return_value=disconnect) + + pool._pessimize_node(42) + await asyncio.sleep(0) + + pool._on_disconnected.assert_called_once_with(connection) + disconnect.assert_awaited_once_with() diff --git a/ydb/aio/pool.py b/ydb/aio/pool.py index 4d952086c..9374eaf3c 100644 --- a/ydb/aio/pool.py +++ b/ydb/aio/pool.py @@ -3,7 +3,7 @@ import asyncio import logging import random -from typing import Any, Callable, Optional, Tuple, TYPE_CHECKING +from typing import Any, Callable, Optional, Tuple, TYPE_CHECKING, cast from ydb import issues from ydb.opentelemetry.tracing import SpanName, create_ydb_span @@ -311,6 +311,15 @@ async def __wrapper__() -> None: return __wrapper__ + def _pessimize_node(self, node_id: Optional[int]) -> None: + """Deprioritize the connection attached to the given YDB node.""" + if node_id is None or node_id <= 0: + return + + connection = cast(Optional[Connection], self._store.connections_by_node_id.get(node_id)) + if connection is not None: + asyncio.get_running_loop().create_task(self._on_disconnected(connection)()) + async def wait(self, timeout: Optional[float] = 7.0, fail_fast: bool = False) -> None: # type: ignore[override] # async override of sync method with create_ydb_span(SpanName.DRIVER_INITIALIZE, self._driver_config, kind="internal").attach_context(): await self._store.get(fast_fail=fail_fast, wait_timeout=timeout if timeout is not None else 7.0) diff --git a/ydb/pool.py b/ydb/pool.py index f1a4bdf94..5ccd1d478 100644 --- a/ydb/pool.py +++ b/ydb/pool.py @@ -494,6 +494,15 @@ def _on_disconnected(self, connection: Connection) -> None: if self._discovery_thread: self._discovery_thread.notify_disconnected() + def _pessimize_node(self, node_id: Optional[int]) -> None: + """Deprioritize the connection attached to the given YDB node.""" + if node_id is None or node_id <= 0: + return + + connection = self._store.connections_by_node_id.get(node_id) + if connection is not None: + self._on_disconnected(connection) + def discovery_debug_details(self) -> str: """ Returns debug string about last errors diff --git a/ydb/query/session.py b/ydb/query/session.py index 9f522b0e8..73f1b7b85 100644 --- a/ydb/query/session.py +++ b/ydb/query/session.py @@ -1,5 +1,4 @@ import abc -import asyncio import json import logging import threading @@ -169,42 +168,11 @@ def _handle_attach_session_state(self, response_pb) -> None: hint = response_pb.WhichOneof("session_hint") if hint == "node_shutdown": - self._pessimize_node_by_id(self._node_id) + self._driver._pessimize_node(self._node_id) self._close_session(invalidate=True) elif hint == "session_shutdown": self._close_session(invalidate=True) - def _pessimize_node_by_id(self, node_id: Optional[int]) -> None: - """Deprioritize the node's connection (same effect as a transport failure).""" - if node_id is None or node_id <= 0: - return - - store = getattr(self._driver, "_store", None) - if store is None: - return - - connection = getattr(store, "connections_by_node_id", {}).get(node_id) - if connection is None: - return - - on_disconnected = getattr(self._driver, "_on_disconnected", None) - if on_disconnected is None: - connection.close() - return - - disconnect_cb = on_disconnected(connection) - if disconnect_cb is None: - return - - if asyncio.iscoroutinefunction(disconnect_cb): - loop = getattr(self, "_loop", None) - if loop is not None and loop.is_running(): - loop.create_task(disconnect_cb()) - return - - if callable(disconnect_cb): - disconnect_cb() - def _close_session(self, invalidate: bool = False) -> None: if self._closed: return From 719b56ed14e0f6183769baa91ca85e138bfda7f8 Mon Sep 17 00:00:00 2001 From: KirillKurdyukov Date: Thu, 11 Jun 2026 13:40:59 +0300 Subject: [PATCH 4/7] Require non-optional node id in _pessimize_node Move the missing-node-id check to the session and tighten the connection pool contract to accept a concrete int node id. Co-authored-by: Cursor --- tests/query/test_query_session_hints.py | 15 ++++++++++++++- ydb/aio/pool.py | 4 ++-- ydb/pool.py | 4 ++-- ydb/query/session.py | 3 ++- 4 files changed, 20 insertions(+), 6 deletions(-) diff --git a/tests/query/test_query_session_hints.py b/tests/query/test_query_session_hints.py index 7da4965a0..93fbda489 100644 --- a/tests/query/test_query_session_hints.py +++ b/tests/query/test_query_session_hints.py @@ -60,6 +60,20 @@ def test_node_shutdown_with_zero_node_id_delegates_to_driver(self): driver._pessimize_node.assert_called_once_with(0) assert session._invalidated + def test_node_shutdown_without_node_id_skips_pessimization(self): + session, driver = _make_session(node_id=None) + + session._handle_attach_session_state( + ydb_query_pb2.SessionState( + status=0, + node_shutdown=ydb_query_pb2.NodeShutdownHint(), + ) + ) + + driver._pessimize_node.assert_not_called() + assert session._invalidated + assert session._closed + def test_no_hint_does_not_invalidate(self): session, driver = _make_session() @@ -92,7 +106,6 @@ def test_sync_pool_ignores_missing_node_connection(self): pool._pessimize_node(42) pool._pessimize_node(0) - pool._pessimize_node(None) pool._on_disconnected.assert_not_called() diff --git a/ydb/aio/pool.py b/ydb/aio/pool.py index 9374eaf3c..91243e277 100644 --- a/ydb/aio/pool.py +++ b/ydb/aio/pool.py @@ -311,9 +311,9 @@ async def __wrapper__() -> None: return __wrapper__ - def _pessimize_node(self, node_id: Optional[int]) -> None: + def _pessimize_node(self, node_id: int) -> None: """Deprioritize the connection attached to the given YDB node.""" - if node_id is None or node_id <= 0: + if node_id <= 0: return connection = cast(Optional[Connection], self._store.connections_by_node_id.get(node_id)) diff --git a/ydb/pool.py b/ydb/pool.py index 5ccd1d478..ca6a5b4c1 100644 --- a/ydb/pool.py +++ b/ydb/pool.py @@ -494,9 +494,9 @@ def _on_disconnected(self, connection: Connection) -> None: if self._discovery_thread: self._discovery_thread.notify_disconnected() - def _pessimize_node(self, node_id: Optional[int]) -> None: + def _pessimize_node(self, node_id: int) -> None: """Deprioritize the connection attached to the given YDB node.""" - if node_id is None or node_id <= 0: + if node_id <= 0: return connection = self._store.connections_by_node_id.get(node_id) diff --git a/ydb/query/session.py b/ydb/query/session.py index 73f1b7b85..661e24011 100644 --- a/ydb/query/session.py +++ b/ydb/query/session.py @@ -168,7 +168,8 @@ def _handle_attach_session_state(self, response_pb) -> None: hint = response_pb.WhichOneof("session_hint") if hint == "node_shutdown": - self._driver._pessimize_node(self._node_id) + if self._node_id is not None: + self._driver._pessimize_node(self._node_id) self._close_session(invalidate=True) elif hint == "session_shutdown": self._close_session(invalidate=True) From df4f0a46fa73db7125f4392be9e6a2dedf676464 Mon Sep 17 00:00:00 2001 From: KirillKurdyukov Date: Thu, 11 Jun 2026 14:24:14 +0300 Subject: [PATCH 5/7] Fix Copilot review issues for attach hint PR Look up node connections under ConnectionsCache lock when pessimizing after NodeShutdown hints, and strip grpcio-tools version gates from v6 gRPC stubs so imports work with grpcio>=1.42.0. Co-authored-by: Cursor --- CHANGELOG.md | 1 + generate_protoc.py | 48 ++++++++++++++++++- tests/query/test_query_session_hints.py | 8 ++-- .../protos/ydb_dynamic_config_pb2_grpc.py | 3 ++ .../protos/ydb_federated_query_pb2_grpc.py | 3 ++ .../v6/draft/protos/ydb_keyvalue_pb2_grpc.py | 3 ++ .../draft/protos/ydb_maintenance_pb2_grpc.py | 3 ++ .../protos/ydb_object_storage_pb2_grpc.py | 3 ++ .../draft/ydb_dynamic_config_v1_pb2_grpc.py | 4 +- .../draft/ydb_federated_query_v1_pb2_grpc.py | 4 +- .../v6/draft/ydb_keyvalue_v1_pb2_grpc.py | 4 +- .../v6/draft/ydb_maintenance_v1_pb2_grpc.py | 4 +- .../draft/ydb_object_storage_v1_pb2_grpc.py | 4 +- .../protos/annotations/sensitive_pb2_grpc.py | 3 ++ .../protos/annotations/validation_pb2_grpc.py | 3 ++ ydb/_grpc/v6/protos/ydb_auth_pb2_grpc.py | 3 ++ ydb/_grpc/v6/protos/ydb_cms_pb2_grpc.py | 3 ++ ydb/_grpc/v6/protos/ydb_common_pb2_grpc.py | 3 ++ .../v6/protos/ydb_coordination_pb2_grpc.py | 3 ++ ydb/_grpc/v6/protos/ydb_discovery_pb2_grpc.py | 3 ++ ydb/_grpc/v6/protos/ydb_export_pb2_grpc.py | 3 ++ .../ydb_federation_discovery_pb2_grpc.py | 3 ++ ydb/_grpc/v6/protos/ydb_formats_pb2_grpc.py | 3 ++ ydb/_grpc/v6/protos/ydb_import_pb2_grpc.py | 3 ++ .../v6/protos/ydb_issue_message_pb2_grpc.py | 3 ++ .../v6/protos/ydb_monitoring_pb2_grpc.py | 3 ++ ydb/_grpc/v6/protos/ydb_operation_pb2_grpc.py | 3 ++ ydb/_grpc/v6/protos/ydb_query_pb2_grpc.py | 3 ++ .../v6/protos/ydb_query_stats_pb2_grpc.py | 3 ++ .../v6/protos/ydb_rate_limiter_pb2_grpc.py | 3 ++ ydb/_grpc/v6/protos/ydb_scheme_pb2_grpc.py | 3 ++ ydb/_grpc/v6/protos/ydb_scripting_pb2_grpc.py | 3 ++ .../v6/protos/ydb_status_codes_pb2_grpc.py | 3 ++ ydb/_grpc/v6/protos/ydb_table_pb2_grpc.py | 3 ++ ydb/_grpc/v6/protos/ydb_topic_pb2_grpc.py | 3 ++ ydb/_grpc/v6/protos/ydb_value_pb2_grpc.py | 3 ++ ydb/_grpc/v6/ydb_auth_v1_pb2_grpc.py | 4 +- ydb/_grpc/v6/ydb_cms_v1_pb2_grpc.py | 4 +- ydb/_grpc/v6/ydb_coordination_v1_pb2_grpc.py | 4 +- ydb/_grpc/v6/ydb_discovery_v1_pb2_grpc.py | 4 +- ydb/_grpc/v6/ydb_export_v1_pb2_grpc.py | 4 +- .../ydb_federation_discovery_v1_pb2_grpc.py | 4 +- ydb/_grpc/v6/ydb_import_v1_pb2_grpc.py | 4 +- ydb/_grpc/v6/ydb_monitoring_v1_pb2_grpc.py | 4 +- ydb/_grpc/v6/ydb_operation_v1_pb2_grpc.py | 4 +- ydb/_grpc/v6/ydb_query_v1_pb2_grpc.py | 4 +- ydb/_grpc/v6/ydb_rate_limiter_v1_pb2_grpc.py | 4 +- ydb/_grpc/v6/ydb_scheme_v1_pb2_grpc.py | 4 +- ydb/_grpc/v6/ydb_scripting_v1_pb2_grpc.py | 4 +- ydb/_grpc/v6/ydb_table_v1_pb2_grpc.py | 4 +- ydb/_grpc/v6/ydb_topic_v1_pb2_grpc.py | 4 +- ydb/aio/pool.py | 2 +- ydb/pool.py | 6 ++- 53 files changed, 203 insertions(+), 26 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fe8d5fc74..725c203d9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,7 @@ * Query session attach stream handles `NodeShutdown` and `SessionShutdown` session hints: on `NodeShutdown` the session's node connection is pessimized and the session is retired, on `SessionShutdown` the session is retired without touching the node * Bumped `ydb-api-protos` and regenerated gRPC/protobuf stubs (v3–v6) to include query service session hints * Fix incompatibility with protobuf 6.30–6.31.0: regenerate v6 stubs with the lowest 6.x gencode floor (6.30.0) instead of 6.31.1 +* Query session attach stream handles `NodeShutdown` and `SessionShutdown` session hints: on `NodeShutdown` the session's node connection is pessimized and the session is retired, on `SessionShutdown` the session is retired without touching the node ## 3.29.4 ## * Fix leaked topic reader stream when close interrupts stream creation during reconnect diff --git a/generate_protoc.py b/generate_protoc.py index d69260285..8269b6696 100644 --- a/generate_protoc.py +++ b/generate_protoc.py @@ -1,11 +1,50 @@ import os import pathlib +import re import shutil from typing import List from argparse import ArgumentParser -from grpc_tools import command +_GRPC_VERSION_GATE_RE = re.compile( + r"GRPC_GENERATED_VERSION = '[^']+'\n" + r"GRPC_VERSION = grpc\.__version__\n" + r"_version_not_supported = False\n\n" + r"try:\n" + r" from grpc\._utilities import first_version_is_lower\n" + r" _version_not_supported = first_version_is_lower\(GRPC_VERSION, GRPC_GENERATED_VERSION\)\n" + r"except ImportError:\n" + r" _version_not_supported = True\n\n" + r"if _version_not_supported:\n" + r" raise RuntimeError\(\n" + r"(?: .+\n)+" + r" \)\n" +) + + +def strip_grpc_version_gate(content: str) -> str: + """Remove grpcio-tools version gate from generated *_grpc.py stubs.""" + updated = _GRPC_VERSION_GATE_RE.sub("", content) + if updated != content: + updated = updated.replace("import warnings\n", "") + return updated + + +def strip_grpc_version_gate_from_tree(rootdir: str) -> None: + for dirpath, _, fnames in os.walk(rootdir): + for fname in fnames: + if not fname.endswith("_grpc.py"): + continue + + path = os.path.join(dirpath, fname) + with open(path, "r+t") as f: + content = f.read() + updated = strip_grpc_version_gate(content) + if updated == content: + continue + f.seek(0) + f.write(updated) + f.truncate() def files_filter(dir, items: List[str]) -> List[str]: @@ -56,11 +95,18 @@ def fix_file_contents(rootdir, protobuf_version: str): # Add ignore style check content = content.replace("# -*- coding: utf-8 -*-", "# -*- coding: utf-8 -*-\n" + flake_ignore_line) + + if fname.endswith("_grpc.py"): + content = strip_grpc_version_gate(content) + f.seek(0) f.write(content) + f.truncate() def generate_protobuf(src_proto_dir: str, dst_dir, protobuf_version: str): + from grpc_tools import command + shutil.rmtree(dst_dir, ignore_errors=True) shutil.copytree(src_proto_dir, dst_dir, ignore=files_filter) diff --git a/tests/query/test_query_session_hints.py b/tests/query/test_query_session_hints.py index 93fbda489..ad9c4bce2 100644 --- a/tests/query/test_query_session_hints.py +++ b/tests/query/test_query_session_hints.py @@ -91,17 +91,18 @@ def test_sync_pool_pessimizes_node_connection(self): pool = ConnectionPool.__new__(ConnectionPool) connection = mock.Mock() pool._store = mock.Mock() - pool._store.connections_by_node_id = {42: connection} + pool._store.get_connection_by_node_id.return_value = connection pool._on_disconnected = mock.Mock() pool._pessimize_node(42) + pool._store.get_connection_by_node_id.assert_called_once_with(42) pool._on_disconnected.assert_called_once_with(connection) def test_sync_pool_ignores_missing_node_connection(self): pool = ConnectionPool.__new__(ConnectionPool) pool._store = mock.Mock() - pool._store.connections_by_node_id = {} + pool._store.get_connection_by_node_id.return_value = None pool._on_disconnected = mock.Mock() pool._pessimize_node(42) @@ -115,11 +116,12 @@ async def test_async_pool_pessimizes_node_connection(self): connection = mock.Mock() disconnect = mock.AsyncMock() pool._store = mock.Mock() - pool._store.connections_by_node_id = {42: connection} + pool._store.get_connection_by_node_id.return_value = connection pool._on_disconnected = mock.Mock(return_value=disconnect) pool._pessimize_node(42) await asyncio.sleep(0) + pool._store.get_connection_by_node_id.assert_called_once_with(42) pool._on_disconnected.assert_called_once_with(connection) disconnect.assert_awaited_once_with() diff --git a/ydb/_grpc/v6/draft/protos/ydb_dynamic_config_pb2_grpc.py b/ydb/_grpc/v6/draft/protos/ydb_dynamic_config_pb2_grpc.py index 869475c80..9f1cc6e97 100644 --- a/ydb/_grpc/v6/draft/protos/ydb_dynamic_config_pb2_grpc.py +++ b/ydb/_grpc/v6/draft/protos/ydb_dynamic_config_pb2_grpc.py @@ -1,6 +1,7 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc +<<<<<<< HEAD import warnings @@ -22,3 +23,5 @@ + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' ) +======= +>>>>>>> 989b70e (Fix Copilot review issues for attach hint PR) diff --git a/ydb/_grpc/v6/draft/protos/ydb_federated_query_pb2_grpc.py b/ydb/_grpc/v6/draft/protos/ydb_federated_query_pb2_grpc.py index 902dae95b..03082533a 100644 --- a/ydb/_grpc/v6/draft/protos/ydb_federated_query_pb2_grpc.py +++ b/ydb/_grpc/v6/draft/protos/ydb_federated_query_pb2_grpc.py @@ -1,6 +1,7 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc +<<<<<<< HEAD import warnings @@ -22,3 +23,5 @@ + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' ) +======= +>>>>>>> 989b70e (Fix Copilot review issues for attach hint PR) diff --git a/ydb/_grpc/v6/draft/protos/ydb_keyvalue_pb2_grpc.py b/ydb/_grpc/v6/draft/protos/ydb_keyvalue_pb2_grpc.py index 762dc7db4..19dcda230 100644 --- a/ydb/_grpc/v6/draft/protos/ydb_keyvalue_pb2_grpc.py +++ b/ydb/_grpc/v6/draft/protos/ydb_keyvalue_pb2_grpc.py @@ -1,6 +1,7 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc +<<<<<<< HEAD import warnings @@ -22,3 +23,5 @@ + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' ) +======= +>>>>>>> 989b70e (Fix Copilot review issues for attach hint PR) diff --git a/ydb/_grpc/v6/draft/protos/ydb_maintenance_pb2_grpc.py b/ydb/_grpc/v6/draft/protos/ydb_maintenance_pb2_grpc.py index 43fa1abc6..ffeb2c3e4 100644 --- a/ydb/_grpc/v6/draft/protos/ydb_maintenance_pb2_grpc.py +++ b/ydb/_grpc/v6/draft/protos/ydb_maintenance_pb2_grpc.py @@ -1,6 +1,7 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc +<<<<<<< HEAD import warnings @@ -22,3 +23,5 @@ + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' ) +======= +>>>>>>> 989b70e (Fix Copilot review issues for attach hint PR) diff --git a/ydb/_grpc/v6/draft/protos/ydb_object_storage_pb2_grpc.py b/ydb/_grpc/v6/draft/protos/ydb_object_storage_pb2_grpc.py index 506fec9d5..98110f0e7 100644 --- a/ydb/_grpc/v6/draft/protos/ydb_object_storage_pb2_grpc.py +++ b/ydb/_grpc/v6/draft/protos/ydb_object_storage_pb2_grpc.py @@ -1,6 +1,7 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc +<<<<<<< HEAD import warnings @@ -22,3 +23,5 @@ + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' ) +======= +>>>>>>> 989b70e (Fix Copilot review issues for attach hint PR) diff --git a/ydb/_grpc/v6/draft/ydb_dynamic_config_v1_pb2_grpc.py b/ydb/_grpc/v6/draft/ydb_dynamic_config_v1_pb2_grpc.py index cadd585d8..63cb9a9a3 100644 --- a/ydb/_grpc/v6/draft/ydb_dynamic_config_v1_pb2_grpc.py +++ b/ydb/_grpc/v6/draft/ydb_dynamic_config_v1_pb2_grpc.py @@ -1,10 +1,10 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc -import warnings from ydb._grpc.v6.draft.protos import ydb_dynamic_config_pb2 as draft_dot_protos_dot_ydb__dynamic__config__pb2 +<<<<<<< HEAD GRPC_GENERATED_VERSION = '1.72.1' GRPC_VERSION = grpc.__version__ _version_not_supported = False @@ -23,6 +23,8 @@ + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' ) +======= +>>>>>>> 989b70e (Fix Copilot review issues for attach hint PR) class DynamicConfigServiceStub(object): diff --git a/ydb/_grpc/v6/draft/ydb_federated_query_v1_pb2_grpc.py b/ydb/_grpc/v6/draft/ydb_federated_query_v1_pb2_grpc.py index 302976193..0db42215a 100644 --- a/ydb/_grpc/v6/draft/ydb_federated_query_v1_pb2_grpc.py +++ b/ydb/_grpc/v6/draft/ydb_federated_query_v1_pb2_grpc.py @@ -1,10 +1,10 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc -import warnings from ydb._grpc.v6.draft.protos import ydb_federated_query_pb2 as draft_dot_protos_dot_ydb__federated__query__pb2 +<<<<<<< HEAD GRPC_GENERATED_VERSION = '1.72.1' GRPC_VERSION = grpc.__version__ _version_not_supported = False @@ -23,6 +23,8 @@ + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' ) +======= +>>>>>>> 989b70e (Fix Copilot review issues for attach hint PR) class FederatedQueryServiceStub(object): diff --git a/ydb/_grpc/v6/draft/ydb_keyvalue_v1_pb2_grpc.py b/ydb/_grpc/v6/draft/ydb_keyvalue_v1_pb2_grpc.py index 84f291c8e..b6b9091b2 100644 --- a/ydb/_grpc/v6/draft/ydb_keyvalue_v1_pb2_grpc.py +++ b/ydb/_grpc/v6/draft/ydb_keyvalue_v1_pb2_grpc.py @@ -1,10 +1,10 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc -import warnings from ydb._grpc.v6.draft.protos import ydb_keyvalue_pb2 as draft_dot_protos_dot_ydb__keyvalue__pb2 +<<<<<<< HEAD GRPC_GENERATED_VERSION = '1.72.1' GRPC_VERSION = grpc.__version__ _version_not_supported = False @@ -23,6 +23,8 @@ + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' ) +======= +>>>>>>> 989b70e (Fix Copilot review issues for attach hint PR) class KeyValueServiceStub(object): diff --git a/ydb/_grpc/v6/draft/ydb_maintenance_v1_pb2_grpc.py b/ydb/_grpc/v6/draft/ydb_maintenance_v1_pb2_grpc.py index 4bd07d380..241e25fa6 100644 --- a/ydb/_grpc/v6/draft/ydb_maintenance_v1_pb2_grpc.py +++ b/ydb/_grpc/v6/draft/ydb_maintenance_v1_pb2_grpc.py @@ -1,10 +1,10 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc -import warnings from ydb._grpc.v6.draft.protos import ydb_maintenance_pb2 as draft_dot_protos_dot_ydb__maintenance__pb2 +<<<<<<< HEAD GRPC_GENERATED_VERSION = '1.72.1' GRPC_VERSION = grpc.__version__ _version_not_supported = False @@ -23,6 +23,8 @@ + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' ) +======= +>>>>>>> 989b70e (Fix Copilot review issues for attach hint PR) class MaintenanceServiceStub(object): diff --git a/ydb/_grpc/v6/draft/ydb_object_storage_v1_pb2_grpc.py b/ydb/_grpc/v6/draft/ydb_object_storage_v1_pb2_grpc.py index df15264cc..494cc9c2c 100644 --- a/ydb/_grpc/v6/draft/ydb_object_storage_v1_pb2_grpc.py +++ b/ydb/_grpc/v6/draft/ydb_object_storage_v1_pb2_grpc.py @@ -1,10 +1,10 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc -import warnings from ydb._grpc.v6.draft.protos import ydb_object_storage_pb2 as draft_dot_protos_dot_ydb__object__storage__pb2 +<<<<<<< HEAD GRPC_GENERATED_VERSION = '1.72.1' GRPC_VERSION = grpc.__version__ _version_not_supported = False @@ -23,6 +23,8 @@ + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' ) +======= +>>>>>>> 989b70e (Fix Copilot review issues for attach hint PR) class ObjectStorageServiceStub(object): diff --git a/ydb/_grpc/v6/protos/annotations/sensitive_pb2_grpc.py b/ydb/_grpc/v6/protos/annotations/sensitive_pb2_grpc.py index bb37e51cd..69002f14a 100644 --- a/ydb/_grpc/v6/protos/annotations/sensitive_pb2_grpc.py +++ b/ydb/_grpc/v6/protos/annotations/sensitive_pb2_grpc.py @@ -1,6 +1,7 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc +<<<<<<< HEAD import warnings @@ -22,3 +23,5 @@ + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' ) +======= +>>>>>>> 989b70e (Fix Copilot review issues for attach hint PR) diff --git a/ydb/_grpc/v6/protos/annotations/validation_pb2_grpc.py b/ydb/_grpc/v6/protos/annotations/validation_pb2_grpc.py index 6ae367ba4..873c97102 100644 --- a/ydb/_grpc/v6/protos/annotations/validation_pb2_grpc.py +++ b/ydb/_grpc/v6/protos/annotations/validation_pb2_grpc.py @@ -1,6 +1,7 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc +<<<<<<< HEAD import warnings @@ -22,3 +23,5 @@ + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' ) +======= +>>>>>>> 989b70e (Fix Copilot review issues for attach hint PR) diff --git a/ydb/_grpc/v6/protos/ydb_auth_pb2_grpc.py b/ydb/_grpc/v6/protos/ydb_auth_pb2_grpc.py index a091ef131..8aeb46566 100644 --- a/ydb/_grpc/v6/protos/ydb_auth_pb2_grpc.py +++ b/ydb/_grpc/v6/protos/ydb_auth_pb2_grpc.py @@ -1,6 +1,7 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc +<<<<<<< HEAD import warnings @@ -22,3 +23,5 @@ + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' ) +======= +>>>>>>> 989b70e (Fix Copilot review issues for attach hint PR) diff --git a/ydb/_grpc/v6/protos/ydb_cms_pb2_grpc.py b/ydb/_grpc/v6/protos/ydb_cms_pb2_grpc.py index dc24facd1..be7c4fb0e 100644 --- a/ydb/_grpc/v6/protos/ydb_cms_pb2_grpc.py +++ b/ydb/_grpc/v6/protos/ydb_cms_pb2_grpc.py @@ -1,6 +1,7 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc +<<<<<<< HEAD import warnings @@ -22,3 +23,5 @@ + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' ) +======= +>>>>>>> 989b70e (Fix Copilot review issues for attach hint PR) diff --git a/ydb/_grpc/v6/protos/ydb_common_pb2_grpc.py b/ydb/_grpc/v6/protos/ydb_common_pb2_grpc.py index ec15acd36..37060f6da 100644 --- a/ydb/_grpc/v6/protos/ydb_common_pb2_grpc.py +++ b/ydb/_grpc/v6/protos/ydb_common_pb2_grpc.py @@ -1,6 +1,7 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc +<<<<<<< HEAD import warnings @@ -22,3 +23,5 @@ + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' ) +======= +>>>>>>> 989b70e (Fix Copilot review issues for attach hint PR) diff --git a/ydb/_grpc/v6/protos/ydb_coordination_pb2_grpc.py b/ydb/_grpc/v6/protos/ydb_coordination_pb2_grpc.py index 84e13a8be..9d4efcc7e 100644 --- a/ydb/_grpc/v6/protos/ydb_coordination_pb2_grpc.py +++ b/ydb/_grpc/v6/protos/ydb_coordination_pb2_grpc.py @@ -1,6 +1,7 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc +<<<<<<< HEAD import warnings @@ -22,3 +23,5 @@ + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' ) +======= +>>>>>>> 989b70e (Fix Copilot review issues for attach hint PR) diff --git a/ydb/_grpc/v6/protos/ydb_discovery_pb2_grpc.py b/ydb/_grpc/v6/protos/ydb_discovery_pb2_grpc.py index 0b277cbd7..40fcd1625 100644 --- a/ydb/_grpc/v6/protos/ydb_discovery_pb2_grpc.py +++ b/ydb/_grpc/v6/protos/ydb_discovery_pb2_grpc.py @@ -1,6 +1,7 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc +<<<<<<< HEAD import warnings @@ -22,3 +23,5 @@ + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' ) +======= +>>>>>>> 989b70e (Fix Copilot review issues for attach hint PR) diff --git a/ydb/_grpc/v6/protos/ydb_export_pb2_grpc.py b/ydb/_grpc/v6/protos/ydb_export_pb2_grpc.py index b404798f8..d8697bec0 100644 --- a/ydb/_grpc/v6/protos/ydb_export_pb2_grpc.py +++ b/ydb/_grpc/v6/protos/ydb_export_pb2_grpc.py @@ -1,6 +1,7 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc +<<<<<<< HEAD import warnings @@ -22,3 +23,5 @@ + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' ) +======= +>>>>>>> 989b70e (Fix Copilot review issues for attach hint PR) diff --git a/ydb/_grpc/v6/protos/ydb_federation_discovery_pb2_grpc.py b/ydb/_grpc/v6/protos/ydb_federation_discovery_pb2_grpc.py index ac7195804..98d469782 100644 --- a/ydb/_grpc/v6/protos/ydb_federation_discovery_pb2_grpc.py +++ b/ydb/_grpc/v6/protos/ydb_federation_discovery_pb2_grpc.py @@ -1,6 +1,7 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc +<<<<<<< HEAD import warnings @@ -22,3 +23,5 @@ + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' ) +======= +>>>>>>> 989b70e (Fix Copilot review issues for attach hint PR) diff --git a/ydb/_grpc/v6/protos/ydb_formats_pb2_grpc.py b/ydb/_grpc/v6/protos/ydb_formats_pb2_grpc.py index 3d1c7f0f9..b5c0df7cf 100644 --- a/ydb/_grpc/v6/protos/ydb_formats_pb2_grpc.py +++ b/ydb/_grpc/v6/protos/ydb_formats_pb2_grpc.py @@ -1,6 +1,7 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc +<<<<<<< HEAD import warnings @@ -22,3 +23,5 @@ + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' ) +======= +>>>>>>> 989b70e (Fix Copilot review issues for attach hint PR) diff --git a/ydb/_grpc/v6/protos/ydb_import_pb2_grpc.py b/ydb/_grpc/v6/protos/ydb_import_pb2_grpc.py index 23b9c3cb6..a9776fe9f 100644 --- a/ydb/_grpc/v6/protos/ydb_import_pb2_grpc.py +++ b/ydb/_grpc/v6/protos/ydb_import_pb2_grpc.py @@ -1,6 +1,7 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc +<<<<<<< HEAD import warnings @@ -22,3 +23,5 @@ + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' ) +======= +>>>>>>> 989b70e (Fix Copilot review issues for attach hint PR) diff --git a/ydb/_grpc/v6/protos/ydb_issue_message_pb2_grpc.py b/ydb/_grpc/v6/protos/ydb_issue_message_pb2_grpc.py index 050215132..ececa6a4c 100644 --- a/ydb/_grpc/v6/protos/ydb_issue_message_pb2_grpc.py +++ b/ydb/_grpc/v6/protos/ydb_issue_message_pb2_grpc.py @@ -1,6 +1,7 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc +<<<<<<< HEAD import warnings @@ -22,3 +23,5 @@ + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' ) +======= +>>>>>>> 989b70e (Fix Copilot review issues for attach hint PR) diff --git a/ydb/_grpc/v6/protos/ydb_monitoring_pb2_grpc.py b/ydb/_grpc/v6/protos/ydb_monitoring_pb2_grpc.py index 2eb612567..b3fa55f51 100644 --- a/ydb/_grpc/v6/protos/ydb_monitoring_pb2_grpc.py +++ b/ydb/_grpc/v6/protos/ydb_monitoring_pb2_grpc.py @@ -1,6 +1,7 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc +<<<<<<< HEAD import warnings @@ -22,3 +23,5 @@ + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' ) +======= +>>>>>>> 989b70e (Fix Copilot review issues for attach hint PR) diff --git a/ydb/_grpc/v6/protos/ydb_operation_pb2_grpc.py b/ydb/_grpc/v6/protos/ydb_operation_pb2_grpc.py index e75b91d8b..d2f5a3a64 100644 --- a/ydb/_grpc/v6/protos/ydb_operation_pb2_grpc.py +++ b/ydb/_grpc/v6/protos/ydb_operation_pb2_grpc.py @@ -1,6 +1,7 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc +<<<<<<< HEAD import warnings @@ -22,3 +23,5 @@ + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' ) +======= +>>>>>>> 989b70e (Fix Copilot review issues for attach hint PR) diff --git a/ydb/_grpc/v6/protos/ydb_query_pb2_grpc.py b/ydb/_grpc/v6/protos/ydb_query_pb2_grpc.py index 774c2ad50..9b2acd6f2 100644 --- a/ydb/_grpc/v6/protos/ydb_query_pb2_grpc.py +++ b/ydb/_grpc/v6/protos/ydb_query_pb2_grpc.py @@ -1,6 +1,7 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc +<<<<<<< HEAD import warnings @@ -22,3 +23,5 @@ + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' ) +======= +>>>>>>> 989b70e (Fix Copilot review issues for attach hint PR) diff --git a/ydb/_grpc/v6/protos/ydb_query_stats_pb2_grpc.py b/ydb/_grpc/v6/protos/ydb_query_stats_pb2_grpc.py index 722604719..1fabc0466 100644 --- a/ydb/_grpc/v6/protos/ydb_query_stats_pb2_grpc.py +++ b/ydb/_grpc/v6/protos/ydb_query_stats_pb2_grpc.py @@ -1,6 +1,7 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc +<<<<<<< HEAD import warnings @@ -22,3 +23,5 @@ + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' ) +======= +>>>>>>> 989b70e (Fix Copilot review issues for attach hint PR) diff --git a/ydb/_grpc/v6/protos/ydb_rate_limiter_pb2_grpc.py b/ydb/_grpc/v6/protos/ydb_rate_limiter_pb2_grpc.py index baaa670b9..0b49afd76 100644 --- a/ydb/_grpc/v6/protos/ydb_rate_limiter_pb2_grpc.py +++ b/ydb/_grpc/v6/protos/ydb_rate_limiter_pb2_grpc.py @@ -1,6 +1,7 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc +<<<<<<< HEAD import warnings @@ -22,3 +23,5 @@ + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' ) +======= +>>>>>>> 989b70e (Fix Copilot review issues for attach hint PR) diff --git a/ydb/_grpc/v6/protos/ydb_scheme_pb2_grpc.py b/ydb/_grpc/v6/protos/ydb_scheme_pb2_grpc.py index ceaed6798..c9b72cb80 100644 --- a/ydb/_grpc/v6/protos/ydb_scheme_pb2_grpc.py +++ b/ydb/_grpc/v6/protos/ydb_scheme_pb2_grpc.py @@ -1,6 +1,7 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc +<<<<<<< HEAD import warnings @@ -22,3 +23,5 @@ + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' ) +======= +>>>>>>> 989b70e (Fix Copilot review issues for attach hint PR) diff --git a/ydb/_grpc/v6/protos/ydb_scripting_pb2_grpc.py b/ydb/_grpc/v6/protos/ydb_scripting_pb2_grpc.py index 82cae9f10..768cfaf01 100644 --- a/ydb/_grpc/v6/protos/ydb_scripting_pb2_grpc.py +++ b/ydb/_grpc/v6/protos/ydb_scripting_pb2_grpc.py @@ -1,6 +1,7 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc +<<<<<<< HEAD import warnings @@ -22,3 +23,5 @@ + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' ) +======= +>>>>>>> 989b70e (Fix Copilot review issues for attach hint PR) diff --git a/ydb/_grpc/v6/protos/ydb_status_codes_pb2_grpc.py b/ydb/_grpc/v6/protos/ydb_status_codes_pb2_grpc.py index e78b6b5fb..7c6e655ab 100644 --- a/ydb/_grpc/v6/protos/ydb_status_codes_pb2_grpc.py +++ b/ydb/_grpc/v6/protos/ydb_status_codes_pb2_grpc.py @@ -1,6 +1,7 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc +<<<<<<< HEAD import warnings @@ -22,3 +23,5 @@ + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' ) +======= +>>>>>>> 989b70e (Fix Copilot review issues for attach hint PR) diff --git a/ydb/_grpc/v6/protos/ydb_table_pb2_grpc.py b/ydb/_grpc/v6/protos/ydb_table_pb2_grpc.py index 418e64f9c..1658b2196 100644 --- a/ydb/_grpc/v6/protos/ydb_table_pb2_grpc.py +++ b/ydb/_grpc/v6/protos/ydb_table_pb2_grpc.py @@ -1,6 +1,7 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc +<<<<<<< HEAD import warnings @@ -22,3 +23,5 @@ + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' ) +======= +>>>>>>> 989b70e (Fix Copilot review issues for attach hint PR) diff --git a/ydb/_grpc/v6/protos/ydb_topic_pb2_grpc.py b/ydb/_grpc/v6/protos/ydb_topic_pb2_grpc.py index e4925a4b6..8e2976562 100644 --- a/ydb/_grpc/v6/protos/ydb_topic_pb2_grpc.py +++ b/ydb/_grpc/v6/protos/ydb_topic_pb2_grpc.py @@ -1,6 +1,7 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc +<<<<<<< HEAD import warnings @@ -22,3 +23,5 @@ + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' ) +======= +>>>>>>> 989b70e (Fix Copilot review issues for attach hint PR) diff --git a/ydb/_grpc/v6/protos/ydb_value_pb2_grpc.py b/ydb/_grpc/v6/protos/ydb_value_pb2_grpc.py index 2897a6762..88ea94203 100644 --- a/ydb/_grpc/v6/protos/ydb_value_pb2_grpc.py +++ b/ydb/_grpc/v6/protos/ydb_value_pb2_grpc.py @@ -1,6 +1,7 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc +<<<<<<< HEAD import warnings @@ -22,3 +23,5 @@ + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' ) +======= +>>>>>>> 989b70e (Fix Copilot review issues for attach hint PR) diff --git a/ydb/_grpc/v6/ydb_auth_v1_pb2_grpc.py b/ydb/_grpc/v6/ydb_auth_v1_pb2_grpc.py index 2dc445baf..1c6c3bca2 100644 --- a/ydb/_grpc/v6/ydb_auth_v1_pb2_grpc.py +++ b/ydb/_grpc/v6/ydb_auth_v1_pb2_grpc.py @@ -1,10 +1,10 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc -import warnings from ydb._grpc.v6.protos import ydb_auth_pb2 as protos_dot_ydb__auth__pb2 +<<<<<<< HEAD GRPC_GENERATED_VERSION = '1.72.1' GRPC_VERSION = grpc.__version__ _version_not_supported = False @@ -23,6 +23,8 @@ + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' ) +======= +>>>>>>> 989b70e (Fix Copilot review issues for attach hint PR) class AuthServiceStub(object): diff --git a/ydb/_grpc/v6/ydb_cms_v1_pb2_grpc.py b/ydb/_grpc/v6/ydb_cms_v1_pb2_grpc.py index 8857c17ba..a4f1522ea 100644 --- a/ydb/_grpc/v6/ydb_cms_v1_pb2_grpc.py +++ b/ydb/_grpc/v6/ydb_cms_v1_pb2_grpc.py @@ -1,10 +1,10 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc -import warnings from ydb._grpc.v6.protos import ydb_cms_pb2 as protos_dot_ydb__cms__pb2 +<<<<<<< HEAD GRPC_GENERATED_VERSION = '1.72.1' GRPC_VERSION = grpc.__version__ _version_not_supported = False @@ -23,6 +23,8 @@ + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' ) +======= +>>>>>>> 989b70e (Fix Copilot review issues for attach hint PR) class CmsServiceStub(object): diff --git a/ydb/_grpc/v6/ydb_coordination_v1_pb2_grpc.py b/ydb/_grpc/v6/ydb_coordination_v1_pb2_grpc.py index 60d310d6b..3446ea045 100644 --- a/ydb/_grpc/v6/ydb_coordination_v1_pb2_grpc.py +++ b/ydb/_grpc/v6/ydb_coordination_v1_pb2_grpc.py @@ -1,10 +1,10 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc -import warnings from ydb._grpc.v6.protos import ydb_coordination_pb2 as protos_dot_ydb__coordination__pb2 +<<<<<<< HEAD GRPC_GENERATED_VERSION = '1.72.1' GRPC_VERSION = grpc.__version__ _version_not_supported = False @@ -23,6 +23,8 @@ + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' ) +======= +>>>>>>> 989b70e (Fix Copilot review issues for attach hint PR) class CoordinationServiceStub(object): diff --git a/ydb/_grpc/v6/ydb_discovery_v1_pb2_grpc.py b/ydb/_grpc/v6/ydb_discovery_v1_pb2_grpc.py index 6cfacdae0..eef054fcd 100644 --- a/ydb/_grpc/v6/ydb_discovery_v1_pb2_grpc.py +++ b/ydb/_grpc/v6/ydb_discovery_v1_pb2_grpc.py @@ -1,10 +1,10 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc -import warnings from ydb._grpc.v6.protos import ydb_discovery_pb2 as protos_dot_ydb__discovery__pb2 +<<<<<<< HEAD GRPC_GENERATED_VERSION = '1.72.1' GRPC_VERSION = grpc.__version__ _version_not_supported = False @@ -23,6 +23,8 @@ + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' ) +======= +>>>>>>> 989b70e (Fix Copilot review issues for attach hint PR) class DiscoveryServiceStub(object): diff --git a/ydb/_grpc/v6/ydb_export_v1_pb2_grpc.py b/ydb/_grpc/v6/ydb_export_v1_pb2_grpc.py index 4d2a062b9..509b34d73 100644 --- a/ydb/_grpc/v6/ydb_export_v1_pb2_grpc.py +++ b/ydb/_grpc/v6/ydb_export_v1_pb2_grpc.py @@ -1,10 +1,10 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc -import warnings from ydb._grpc.v6.protos import ydb_export_pb2 as protos_dot_ydb__export__pb2 +<<<<<<< HEAD GRPC_GENERATED_VERSION = '1.72.1' GRPC_VERSION = grpc.__version__ _version_not_supported = False @@ -23,6 +23,8 @@ + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' ) +======= +>>>>>>> 989b70e (Fix Copilot review issues for attach hint PR) class ExportServiceStub(object): diff --git a/ydb/_grpc/v6/ydb_federation_discovery_v1_pb2_grpc.py b/ydb/_grpc/v6/ydb_federation_discovery_v1_pb2_grpc.py index 2c7ae0963..16a43df5b 100644 --- a/ydb/_grpc/v6/ydb_federation_discovery_v1_pb2_grpc.py +++ b/ydb/_grpc/v6/ydb_federation_discovery_v1_pb2_grpc.py @@ -1,10 +1,10 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc -import warnings from ydb._grpc.v6.protos import ydb_federation_discovery_pb2 as protos_dot_ydb__federation__discovery__pb2 +<<<<<<< HEAD GRPC_GENERATED_VERSION = '1.72.1' GRPC_VERSION = grpc.__version__ _version_not_supported = False @@ -23,6 +23,8 @@ + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' ) +======= +>>>>>>> 989b70e (Fix Copilot review issues for attach hint PR) class FederationDiscoveryServiceStub(object): diff --git a/ydb/_grpc/v6/ydb_import_v1_pb2_grpc.py b/ydb/_grpc/v6/ydb_import_v1_pb2_grpc.py index 82d83f97c..7b49fbb87 100644 --- a/ydb/_grpc/v6/ydb_import_v1_pb2_grpc.py +++ b/ydb/_grpc/v6/ydb_import_v1_pb2_grpc.py @@ -1,10 +1,10 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc -import warnings from ydb._grpc.v6.protos import ydb_import_pb2 as protos_dot_ydb__import__pb2 +<<<<<<< HEAD GRPC_GENERATED_VERSION = '1.72.1' GRPC_VERSION = grpc.__version__ _version_not_supported = False @@ -23,6 +23,8 @@ + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' ) +======= +>>>>>>> 989b70e (Fix Copilot review issues for attach hint PR) class ImportServiceStub(object): diff --git a/ydb/_grpc/v6/ydb_monitoring_v1_pb2_grpc.py b/ydb/_grpc/v6/ydb_monitoring_v1_pb2_grpc.py index 48642afc8..398a42fd5 100644 --- a/ydb/_grpc/v6/ydb_monitoring_v1_pb2_grpc.py +++ b/ydb/_grpc/v6/ydb_monitoring_v1_pb2_grpc.py @@ -1,10 +1,10 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc -import warnings from ydb._grpc.v6.protos import ydb_monitoring_pb2 as protos_dot_ydb__monitoring__pb2 +<<<<<<< HEAD GRPC_GENERATED_VERSION = '1.72.1' GRPC_VERSION = grpc.__version__ _version_not_supported = False @@ -23,6 +23,8 @@ + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' ) +======= +>>>>>>> 989b70e (Fix Copilot review issues for attach hint PR) class MonitoringServiceStub(object): diff --git a/ydb/_grpc/v6/ydb_operation_v1_pb2_grpc.py b/ydb/_grpc/v6/ydb_operation_v1_pb2_grpc.py index d8c0dc907..46deaefa4 100644 --- a/ydb/_grpc/v6/ydb_operation_v1_pb2_grpc.py +++ b/ydb/_grpc/v6/ydb_operation_v1_pb2_grpc.py @@ -1,10 +1,10 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc -import warnings from ydb._grpc.v6.protos import ydb_operation_pb2 as protos_dot_ydb__operation__pb2 +<<<<<<< HEAD GRPC_GENERATED_VERSION = '1.72.1' GRPC_VERSION = grpc.__version__ _version_not_supported = False @@ -23,6 +23,8 @@ + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' ) +======= +>>>>>>> 989b70e (Fix Copilot review issues for attach hint PR) class OperationServiceStub(object): diff --git a/ydb/_grpc/v6/ydb_query_v1_pb2_grpc.py b/ydb/_grpc/v6/ydb_query_v1_pb2_grpc.py index 5ff3ce81e..802b0189a 100644 --- a/ydb/_grpc/v6/ydb_query_v1_pb2_grpc.py +++ b/ydb/_grpc/v6/ydb_query_v1_pb2_grpc.py @@ -1,11 +1,11 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc -import warnings from ydb._grpc.v6.protos import ydb_operation_pb2 as protos_dot_ydb__operation__pb2 from ydb._grpc.v6.protos import ydb_query_pb2 as protos_dot_ydb__query__pb2 +<<<<<<< HEAD GRPC_GENERATED_VERSION = '1.72.1' GRPC_VERSION = grpc.__version__ _version_not_supported = False @@ -24,6 +24,8 @@ + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' ) +======= +>>>>>>> 989b70e (Fix Copilot review issues for attach hint PR) class QueryServiceStub(object): diff --git a/ydb/_grpc/v6/ydb_rate_limiter_v1_pb2_grpc.py b/ydb/_grpc/v6/ydb_rate_limiter_v1_pb2_grpc.py index 0b8225ec2..434703c5e 100644 --- a/ydb/_grpc/v6/ydb_rate_limiter_v1_pb2_grpc.py +++ b/ydb/_grpc/v6/ydb_rate_limiter_v1_pb2_grpc.py @@ -1,10 +1,10 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc -import warnings from ydb._grpc.v6.protos import ydb_rate_limiter_pb2 as protos_dot_ydb__rate__limiter__pb2 +<<<<<<< HEAD GRPC_GENERATED_VERSION = '1.72.1' GRPC_VERSION = grpc.__version__ _version_not_supported = False @@ -23,6 +23,8 @@ + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' ) +======= +>>>>>>> 989b70e (Fix Copilot review issues for attach hint PR) class RateLimiterServiceStub(object): diff --git a/ydb/_grpc/v6/ydb_scheme_v1_pb2_grpc.py b/ydb/_grpc/v6/ydb_scheme_v1_pb2_grpc.py index 58c206a51..5c06b64ec 100644 --- a/ydb/_grpc/v6/ydb_scheme_v1_pb2_grpc.py +++ b/ydb/_grpc/v6/ydb_scheme_v1_pb2_grpc.py @@ -1,10 +1,10 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc -import warnings from ydb._grpc.v6.protos import ydb_scheme_pb2 as protos_dot_ydb__scheme__pb2 +<<<<<<< HEAD GRPC_GENERATED_VERSION = '1.72.1' GRPC_VERSION = grpc.__version__ _version_not_supported = False @@ -23,6 +23,8 @@ + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' ) +======= +>>>>>>> 989b70e (Fix Copilot review issues for attach hint PR) class SchemeServiceStub(object): diff --git a/ydb/_grpc/v6/ydb_scripting_v1_pb2_grpc.py b/ydb/_grpc/v6/ydb_scripting_v1_pb2_grpc.py index 4a4b7cb36..b4bf8a816 100644 --- a/ydb/_grpc/v6/ydb_scripting_v1_pb2_grpc.py +++ b/ydb/_grpc/v6/ydb_scripting_v1_pb2_grpc.py @@ -1,10 +1,10 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc -import warnings from ydb._grpc.v6.protos import ydb_scripting_pb2 as protos_dot_ydb__scripting__pb2 +<<<<<<< HEAD GRPC_GENERATED_VERSION = '1.72.1' GRPC_VERSION = grpc.__version__ _version_not_supported = False @@ -23,6 +23,8 @@ + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' ) +======= +>>>>>>> 989b70e (Fix Copilot review issues for attach hint PR) class ScriptingServiceStub(object): diff --git a/ydb/_grpc/v6/ydb_table_v1_pb2_grpc.py b/ydb/_grpc/v6/ydb_table_v1_pb2_grpc.py index 84c27faa6..254ea52ec 100644 --- a/ydb/_grpc/v6/ydb_table_v1_pb2_grpc.py +++ b/ydb/_grpc/v6/ydb_table_v1_pb2_grpc.py @@ -1,10 +1,10 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc -import warnings from ydb._grpc.v6.protos import ydb_table_pb2 as protos_dot_ydb__table__pb2 +<<<<<<< HEAD GRPC_GENERATED_VERSION = '1.72.1' GRPC_VERSION = grpc.__version__ _version_not_supported = False @@ -23,6 +23,8 @@ + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' ) +======= +>>>>>>> 989b70e (Fix Copilot review issues for attach hint PR) class TableServiceStub(object): diff --git a/ydb/_grpc/v6/ydb_topic_v1_pb2_grpc.py b/ydb/_grpc/v6/ydb_topic_v1_pb2_grpc.py index 446b677c7..d3d1238bf 100644 --- a/ydb/_grpc/v6/ydb_topic_v1_pb2_grpc.py +++ b/ydb/_grpc/v6/ydb_topic_v1_pb2_grpc.py @@ -1,10 +1,10 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc -import warnings from ydb._grpc.v6.protos import ydb_topic_pb2 as protos_dot_ydb__topic__pb2 +<<<<<<< HEAD GRPC_GENERATED_VERSION = '1.72.1' GRPC_VERSION = grpc.__version__ _version_not_supported = False @@ -23,6 +23,8 @@ + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' ) +======= +>>>>>>> 989b70e (Fix Copilot review issues for attach hint PR) class TopicServiceStub(object): diff --git a/ydb/aio/pool.py b/ydb/aio/pool.py index 91243e277..8d5b0b227 100644 --- a/ydb/aio/pool.py +++ b/ydb/aio/pool.py @@ -316,7 +316,7 @@ def _pessimize_node(self, node_id: int) -> None: if node_id <= 0: return - connection = cast(Optional[Connection], self._store.connections_by_node_id.get(node_id)) + connection = cast(Optional[Connection], self._store.get_connection_by_node_id(node_id)) if connection is not None: asyncio.get_running_loop().create_task(self._on_disconnected(connection)()) diff --git a/ydb/pool.py b/ydb/pool.py index ca6a5b4c1..a77359c23 100644 --- a/ydb/pool.py +++ b/ydb/pool.py @@ -160,6 +160,10 @@ def remove(self, connection: Connection) -> None: self.connections.pop(connection.endpoint, None) self.outdated.pop(connection.endpoint, None) + def get_connection_by_node_id(self, node_id: Optional[int]) -> Optional[Connection]: + with self.lock: + return self.connections_by_node_id.get(node_id) + class Discovery(threading.Thread): def __init__(self, store: ConnectionsCache, driver_config: "DriverConfig") -> None: @@ -499,7 +503,7 @@ def _pessimize_node(self, node_id: int) -> None: if node_id <= 0: return - connection = self._store.connections_by_node_id.get(node_id) + connection = self._store.get_connection_by_node_id(node_id) if connection is not None: self._on_disconnected(connection) From 3a583b12e651e2c77b1b985e524513181e508bd6 Mon Sep 17 00:00:00 2001 From: KirillKurdyukov Date: Mon, 29 Jun 2026 12:19:55 +0300 Subject: [PATCH 6/7] Fix v6 gRPC stubs after rebase conflict resolution Restore stubs from main and strip grpcio version gates via generate_protoc, instead of leaving broken conflict markers or truncated files. Co-authored-by: Cursor --- .../protos/ydb_dynamic_config_pb2_grpc.py | 22 ------------------- .../protos/ydb_federated_query_pb2_grpc.py | 22 ------------------- .../v6/draft/protos/ydb_keyvalue_pb2_grpc.py | 22 ------------------- .../draft/protos/ydb_maintenance_pb2_grpc.py | 22 ------------------- .../protos/ydb_object_storage_pb2_grpc.py | 22 ------------------- .../draft/protos/ydb_replication_pb2_grpc.py | 19 ---------------- .../v6/draft/protos/ydb_view_pb2_grpc.py | 19 ---------------- .../draft/ydb_dynamic_config_v1_pb2_grpc.py | 21 ------------------ .../draft/ydb_federated_query_v1_pb2_grpc.py | 21 ------------------ .../v6/draft/ydb_keyvalue_v1_pb2_grpc.py | 21 ------------------ .../v6/draft/ydb_maintenance_v1_pb2_grpc.py | 21 ------------------ .../draft/ydb_object_storage_v1_pb2_grpc.py | 21 ------------------ .../v6/draft/ydb_replication_v1_pb2_grpc.py | 19 ---------------- ydb/_grpc/v6/draft/ydb_view_v1_pb2_grpc.py | 19 ---------------- .../protos/annotations/sensitive_pb2_grpc.py | 22 ------------------- .../protos/annotations/validation_pb2_grpc.py | 22 ------------------- ydb/_grpc/v6/protos/ydb_auth_pb2_grpc.py | 22 ------------------- ydb/_grpc/v6/protos/ydb_cms_pb2_grpc.py | 22 ------------------- ydb/_grpc/v6/protos/ydb_common_pb2_grpc.py | 22 ------------------- .../v6/protos/ydb_coordination_pb2_grpc.py | 22 ------------------- ydb/_grpc/v6/protos/ydb_discovery_pb2_grpc.py | 22 ------------------- ydb/_grpc/v6/protos/ydb_export_pb2_grpc.py | 22 ------------------- .../ydb_federation_discovery_pb2_grpc.py | 22 ------------------- ydb/_grpc/v6/protos/ydb_formats_pb2_grpc.py | 22 ------------------- ydb/_grpc/v6/protos/ydb_import_pb2_grpc.py | 22 ------------------- .../v6/protos/ydb_issue_message_pb2_grpc.py | 22 ------------------- .../v6/protos/ydb_monitoring_pb2_grpc.py | 22 ------------------- ydb/_grpc/v6/protos/ydb_operation_pb2_grpc.py | 22 ------------------- ydb/_grpc/v6/protos/ydb_query_pb2_grpc.py | 22 ------------------- .../v6/protos/ydb_query_stats_pb2_grpc.py | 22 ------------------- .../v6/protos/ydb_rate_limiter_pb2_grpc.py | 22 ------------------- ydb/_grpc/v6/protos/ydb_scheme_pb2_grpc.py | 22 ------------------- ydb/_grpc/v6/protos/ydb_scripting_pb2_grpc.py | 22 ------------------- .../v6/protos/ydb_status_codes_pb2_grpc.py | 22 ------------------- ydb/_grpc/v6/protos/ydb_table_pb2_grpc.py | 22 ------------------- ydb/_grpc/v6/protos/ydb_topic_pb2_grpc.py | 22 ------------------- ydb/_grpc/v6/protos/ydb_value_pb2_grpc.py | 22 ------------------- ydb/_grpc/v6/ydb_auth_v1_pb2_grpc.py | 21 ------------------ ydb/_grpc/v6/ydb_cms_v1_pb2_grpc.py | 21 ------------------ ydb/_grpc/v6/ydb_coordination_v1_pb2_grpc.py | 21 ------------------ ydb/_grpc/v6/ydb_discovery_v1_pb2_grpc.py | 21 ------------------ ydb/_grpc/v6/ydb_export_v1_pb2_grpc.py | 21 ------------------ .../ydb_federation_discovery_v1_pb2_grpc.py | 21 ------------------ ydb/_grpc/v6/ydb_import_v1_pb2_grpc.py | 21 ------------------ ydb/_grpc/v6/ydb_monitoring_v1_pb2_grpc.py | 21 ------------------ ydb/_grpc/v6/ydb_operation_v1_pb2_grpc.py | 21 ------------------ ydb/_grpc/v6/ydb_query_v1_pb2_grpc.py | 21 ------------------ ydb/_grpc/v6/ydb_rate_limiter_v1_pb2_grpc.py | 21 ------------------ ydb/_grpc/v6/ydb_scheme_v1_pb2_grpc.py | 21 ------------------ ydb/_grpc/v6/ydb_scripting_v1_pb2_grpc.py | 21 ------------------ ydb/_grpc/v6/ydb_table_v1_pb2_grpc.py | 21 ------------------ ydb/_grpc/v6/ydb_topic_v1_pb2_grpc.py | 21 ------------------ 52 files changed, 1112 deletions(-) diff --git a/ydb/_grpc/v6/draft/protos/ydb_dynamic_config_pb2_grpc.py b/ydb/_grpc/v6/draft/protos/ydb_dynamic_config_pb2_grpc.py index 9f1cc6e97..0324772a9 100644 --- a/ydb/_grpc/v6/draft/protos/ydb_dynamic_config_pb2_grpc.py +++ b/ydb/_grpc/v6/draft/protos/ydb_dynamic_config_pb2_grpc.py @@ -1,27 +1,5 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc -<<<<<<< HEAD -import warnings -GRPC_GENERATED_VERSION = '1.72.1' -GRPC_VERSION = grpc.__version__ -_version_not_supported = False - -try: - from grpc._utilities import first_version_is_lower - _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) -except ImportError: - _version_not_supported = True - -if _version_not_supported: - raise RuntimeError( - f'The grpc package installed is at version {GRPC_VERSION},' - + f' but the generated code in draft/protos/ydb_dynamic_config_pb2_grpc.py depends on' - + f' grpcio>={GRPC_GENERATED_VERSION}.' - + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' - + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' - ) -======= ->>>>>>> 989b70e (Fix Copilot review issues for attach hint PR) diff --git a/ydb/_grpc/v6/draft/protos/ydb_federated_query_pb2_grpc.py b/ydb/_grpc/v6/draft/protos/ydb_federated_query_pb2_grpc.py index 03082533a..0324772a9 100644 --- a/ydb/_grpc/v6/draft/protos/ydb_federated_query_pb2_grpc.py +++ b/ydb/_grpc/v6/draft/protos/ydb_federated_query_pb2_grpc.py @@ -1,27 +1,5 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc -<<<<<<< HEAD -import warnings -GRPC_GENERATED_VERSION = '1.72.1' -GRPC_VERSION = grpc.__version__ -_version_not_supported = False - -try: - from grpc._utilities import first_version_is_lower - _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) -except ImportError: - _version_not_supported = True - -if _version_not_supported: - raise RuntimeError( - f'The grpc package installed is at version {GRPC_VERSION},' - + f' but the generated code in draft/protos/ydb_federated_query_pb2_grpc.py depends on' - + f' grpcio>={GRPC_GENERATED_VERSION}.' - + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' - + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' - ) -======= ->>>>>>> 989b70e (Fix Copilot review issues for attach hint PR) diff --git a/ydb/_grpc/v6/draft/protos/ydb_keyvalue_pb2_grpc.py b/ydb/_grpc/v6/draft/protos/ydb_keyvalue_pb2_grpc.py index 19dcda230..0324772a9 100644 --- a/ydb/_grpc/v6/draft/protos/ydb_keyvalue_pb2_grpc.py +++ b/ydb/_grpc/v6/draft/protos/ydb_keyvalue_pb2_grpc.py @@ -1,27 +1,5 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc -<<<<<<< HEAD -import warnings -GRPC_GENERATED_VERSION = '1.72.1' -GRPC_VERSION = grpc.__version__ -_version_not_supported = False - -try: - from grpc._utilities import first_version_is_lower - _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) -except ImportError: - _version_not_supported = True - -if _version_not_supported: - raise RuntimeError( - f'The grpc package installed is at version {GRPC_VERSION},' - + f' but the generated code in draft/protos/ydb_keyvalue_pb2_grpc.py depends on' - + f' grpcio>={GRPC_GENERATED_VERSION}.' - + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' - + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' - ) -======= ->>>>>>> 989b70e (Fix Copilot review issues for attach hint PR) diff --git a/ydb/_grpc/v6/draft/protos/ydb_maintenance_pb2_grpc.py b/ydb/_grpc/v6/draft/protos/ydb_maintenance_pb2_grpc.py index ffeb2c3e4..0324772a9 100644 --- a/ydb/_grpc/v6/draft/protos/ydb_maintenance_pb2_grpc.py +++ b/ydb/_grpc/v6/draft/protos/ydb_maintenance_pb2_grpc.py @@ -1,27 +1,5 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc -<<<<<<< HEAD -import warnings -GRPC_GENERATED_VERSION = '1.72.1' -GRPC_VERSION = grpc.__version__ -_version_not_supported = False - -try: - from grpc._utilities import first_version_is_lower - _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) -except ImportError: - _version_not_supported = True - -if _version_not_supported: - raise RuntimeError( - f'The grpc package installed is at version {GRPC_VERSION},' - + f' but the generated code in draft/protos/ydb_maintenance_pb2_grpc.py depends on' - + f' grpcio>={GRPC_GENERATED_VERSION}.' - + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' - + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' - ) -======= ->>>>>>> 989b70e (Fix Copilot review issues for attach hint PR) diff --git a/ydb/_grpc/v6/draft/protos/ydb_object_storage_pb2_grpc.py b/ydb/_grpc/v6/draft/protos/ydb_object_storage_pb2_grpc.py index 98110f0e7..0324772a9 100644 --- a/ydb/_grpc/v6/draft/protos/ydb_object_storage_pb2_grpc.py +++ b/ydb/_grpc/v6/draft/protos/ydb_object_storage_pb2_grpc.py @@ -1,27 +1,5 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc -<<<<<<< HEAD -import warnings -GRPC_GENERATED_VERSION = '1.72.1' -GRPC_VERSION = grpc.__version__ -_version_not_supported = False - -try: - from grpc._utilities import first_version_is_lower - _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) -except ImportError: - _version_not_supported = True - -if _version_not_supported: - raise RuntimeError( - f'The grpc package installed is at version {GRPC_VERSION},' - + f' but the generated code in draft/protos/ydb_object_storage_pb2_grpc.py depends on' - + f' grpcio>={GRPC_GENERATED_VERSION}.' - + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' - + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' - ) -======= ->>>>>>> 989b70e (Fix Copilot review issues for attach hint PR) diff --git a/ydb/_grpc/v6/draft/protos/ydb_replication_pb2_grpc.py b/ydb/_grpc/v6/draft/protos/ydb_replication_pb2_grpc.py index e0c14b73a..0324772a9 100644 --- a/ydb/_grpc/v6/draft/protos/ydb_replication_pb2_grpc.py +++ b/ydb/_grpc/v6/draft/protos/ydb_replication_pb2_grpc.py @@ -1,24 +1,5 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc -import warnings -GRPC_GENERATED_VERSION = '1.72.1' -GRPC_VERSION = grpc.__version__ -_version_not_supported = False - -try: - from grpc._utilities import first_version_is_lower - _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) -except ImportError: - _version_not_supported = True - -if _version_not_supported: - raise RuntimeError( - f'The grpc package installed is at version {GRPC_VERSION},' - + f' but the generated code in draft/protos/ydb_replication_pb2_grpc.py depends on' - + f' grpcio>={GRPC_GENERATED_VERSION}.' - + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' - + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' - ) diff --git a/ydb/_grpc/v6/draft/protos/ydb_view_pb2_grpc.py b/ydb/_grpc/v6/draft/protos/ydb_view_pb2_grpc.py index b490dd20a..0324772a9 100644 --- a/ydb/_grpc/v6/draft/protos/ydb_view_pb2_grpc.py +++ b/ydb/_grpc/v6/draft/protos/ydb_view_pb2_grpc.py @@ -1,24 +1,5 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc -import warnings -GRPC_GENERATED_VERSION = '1.72.1' -GRPC_VERSION = grpc.__version__ -_version_not_supported = False - -try: - from grpc._utilities import first_version_is_lower - _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) -except ImportError: - _version_not_supported = True - -if _version_not_supported: - raise RuntimeError( - f'The grpc package installed is at version {GRPC_VERSION},' - + f' but the generated code in draft/protos/ydb_view_pb2_grpc.py depends on' - + f' grpcio>={GRPC_GENERATED_VERSION}.' - + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' - + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' - ) diff --git a/ydb/_grpc/v6/draft/ydb_dynamic_config_v1_pb2_grpc.py b/ydb/_grpc/v6/draft/ydb_dynamic_config_v1_pb2_grpc.py index 63cb9a9a3..086d5eb03 100644 --- a/ydb/_grpc/v6/draft/ydb_dynamic_config_v1_pb2_grpc.py +++ b/ydb/_grpc/v6/draft/ydb_dynamic_config_v1_pb2_grpc.py @@ -4,27 +4,6 @@ from ydb._grpc.v6.draft.protos import ydb_dynamic_config_pb2 as draft_dot_protos_dot_ydb__dynamic__config__pb2 -<<<<<<< HEAD -GRPC_GENERATED_VERSION = '1.72.1' -GRPC_VERSION = grpc.__version__ -_version_not_supported = False - -try: - from grpc._utilities import first_version_is_lower - _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) -except ImportError: - _version_not_supported = True - -if _version_not_supported: - raise RuntimeError( - f'The grpc package installed is at version {GRPC_VERSION},' - + f' but the generated code in draft/ydb_dynamic_config_v1_pb2_grpc.py depends on' - + f' grpcio>={GRPC_GENERATED_VERSION}.' - + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' - + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' - ) -======= ->>>>>>> 989b70e (Fix Copilot review issues for attach hint PR) class DynamicConfigServiceStub(object): diff --git a/ydb/_grpc/v6/draft/ydb_federated_query_v1_pb2_grpc.py b/ydb/_grpc/v6/draft/ydb_federated_query_v1_pb2_grpc.py index 0db42215a..e4a24c90a 100644 --- a/ydb/_grpc/v6/draft/ydb_federated_query_v1_pb2_grpc.py +++ b/ydb/_grpc/v6/draft/ydb_federated_query_v1_pb2_grpc.py @@ -4,27 +4,6 @@ from ydb._grpc.v6.draft.protos import ydb_federated_query_pb2 as draft_dot_protos_dot_ydb__federated__query__pb2 -<<<<<<< HEAD -GRPC_GENERATED_VERSION = '1.72.1' -GRPC_VERSION = grpc.__version__ -_version_not_supported = False - -try: - from grpc._utilities import first_version_is_lower - _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) -except ImportError: - _version_not_supported = True - -if _version_not_supported: - raise RuntimeError( - f'The grpc package installed is at version {GRPC_VERSION},' - + f' but the generated code in draft/ydb_federated_query_v1_pb2_grpc.py depends on' - + f' grpcio>={GRPC_GENERATED_VERSION}.' - + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' - + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' - ) -======= ->>>>>>> 989b70e (Fix Copilot review issues for attach hint PR) class FederatedQueryServiceStub(object): diff --git a/ydb/_grpc/v6/draft/ydb_keyvalue_v1_pb2_grpc.py b/ydb/_grpc/v6/draft/ydb_keyvalue_v1_pb2_grpc.py index b6b9091b2..39d67612a 100644 --- a/ydb/_grpc/v6/draft/ydb_keyvalue_v1_pb2_grpc.py +++ b/ydb/_grpc/v6/draft/ydb_keyvalue_v1_pb2_grpc.py @@ -4,27 +4,6 @@ from ydb._grpc.v6.draft.protos import ydb_keyvalue_pb2 as draft_dot_protos_dot_ydb__keyvalue__pb2 -<<<<<<< HEAD -GRPC_GENERATED_VERSION = '1.72.1' -GRPC_VERSION = grpc.__version__ -_version_not_supported = False - -try: - from grpc._utilities import first_version_is_lower - _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) -except ImportError: - _version_not_supported = True - -if _version_not_supported: - raise RuntimeError( - f'The grpc package installed is at version {GRPC_VERSION},' - + f' but the generated code in draft/ydb_keyvalue_v1_pb2_grpc.py depends on' - + f' grpcio>={GRPC_GENERATED_VERSION}.' - + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' - + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' - ) -======= ->>>>>>> 989b70e (Fix Copilot review issues for attach hint PR) class KeyValueServiceStub(object): diff --git a/ydb/_grpc/v6/draft/ydb_maintenance_v1_pb2_grpc.py b/ydb/_grpc/v6/draft/ydb_maintenance_v1_pb2_grpc.py index 241e25fa6..58203c618 100644 --- a/ydb/_grpc/v6/draft/ydb_maintenance_v1_pb2_grpc.py +++ b/ydb/_grpc/v6/draft/ydb_maintenance_v1_pb2_grpc.py @@ -4,27 +4,6 @@ from ydb._grpc.v6.draft.protos import ydb_maintenance_pb2 as draft_dot_protos_dot_ydb__maintenance__pb2 -<<<<<<< HEAD -GRPC_GENERATED_VERSION = '1.72.1' -GRPC_VERSION = grpc.__version__ -_version_not_supported = False - -try: - from grpc._utilities import first_version_is_lower - _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) -except ImportError: - _version_not_supported = True - -if _version_not_supported: - raise RuntimeError( - f'The grpc package installed is at version {GRPC_VERSION},' - + f' but the generated code in draft/ydb_maintenance_v1_pb2_grpc.py depends on' - + f' grpcio>={GRPC_GENERATED_VERSION}.' - + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' - + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' - ) -======= ->>>>>>> 989b70e (Fix Copilot review issues for attach hint PR) class MaintenanceServiceStub(object): diff --git a/ydb/_grpc/v6/draft/ydb_object_storage_v1_pb2_grpc.py b/ydb/_grpc/v6/draft/ydb_object_storage_v1_pb2_grpc.py index 494cc9c2c..49b6295ff 100644 --- a/ydb/_grpc/v6/draft/ydb_object_storage_v1_pb2_grpc.py +++ b/ydb/_grpc/v6/draft/ydb_object_storage_v1_pb2_grpc.py @@ -4,27 +4,6 @@ from ydb._grpc.v6.draft.protos import ydb_object_storage_pb2 as draft_dot_protos_dot_ydb__object__storage__pb2 -<<<<<<< HEAD -GRPC_GENERATED_VERSION = '1.72.1' -GRPC_VERSION = grpc.__version__ -_version_not_supported = False - -try: - from grpc._utilities import first_version_is_lower - _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) -except ImportError: - _version_not_supported = True - -if _version_not_supported: - raise RuntimeError( - f'The grpc package installed is at version {GRPC_VERSION},' - + f' but the generated code in draft/ydb_object_storage_v1_pb2_grpc.py depends on' - + f' grpcio>={GRPC_GENERATED_VERSION}.' - + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' - + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' - ) -======= ->>>>>>> 989b70e (Fix Copilot review issues for attach hint PR) class ObjectStorageServiceStub(object): diff --git a/ydb/_grpc/v6/draft/ydb_replication_v1_pb2_grpc.py b/ydb/_grpc/v6/draft/ydb_replication_v1_pb2_grpc.py index df08f4f0b..464e5100c 100644 --- a/ydb/_grpc/v6/draft/ydb_replication_v1_pb2_grpc.py +++ b/ydb/_grpc/v6/draft/ydb_replication_v1_pb2_grpc.py @@ -1,28 +1,9 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc -import warnings from ydb._grpc.v6.draft.protos import ydb_replication_pb2 as draft_dot_protos_dot_ydb__replication__pb2 -GRPC_GENERATED_VERSION = '1.72.1' -GRPC_VERSION = grpc.__version__ -_version_not_supported = False - -try: - from grpc._utilities import first_version_is_lower - _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) -except ImportError: - _version_not_supported = True - -if _version_not_supported: - raise RuntimeError( - f'The grpc package installed is at version {GRPC_VERSION},' - + f' but the generated code in draft/ydb_replication_v1_pb2_grpc.py depends on' - + f' grpcio>={GRPC_GENERATED_VERSION}.' - + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' - + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' - ) class ReplicationServiceStub(object): diff --git a/ydb/_grpc/v6/draft/ydb_view_v1_pb2_grpc.py b/ydb/_grpc/v6/draft/ydb_view_v1_pb2_grpc.py index 1a0222d11..b6df29602 100644 --- a/ydb/_grpc/v6/draft/ydb_view_v1_pb2_grpc.py +++ b/ydb/_grpc/v6/draft/ydb_view_v1_pb2_grpc.py @@ -1,28 +1,9 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc -import warnings from ydb._grpc.v6.draft.protos import ydb_view_pb2 as draft_dot_protos_dot_ydb__view__pb2 -GRPC_GENERATED_VERSION = '1.72.1' -GRPC_VERSION = grpc.__version__ -_version_not_supported = False - -try: - from grpc._utilities import first_version_is_lower - _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) -except ImportError: - _version_not_supported = True - -if _version_not_supported: - raise RuntimeError( - f'The grpc package installed is at version {GRPC_VERSION},' - + f' but the generated code in draft/ydb_view_v1_pb2_grpc.py depends on' - + f' grpcio>={GRPC_GENERATED_VERSION}.' - + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' - + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' - ) class ViewServiceStub(object): diff --git a/ydb/_grpc/v6/protos/annotations/sensitive_pb2_grpc.py b/ydb/_grpc/v6/protos/annotations/sensitive_pb2_grpc.py index 69002f14a..0324772a9 100644 --- a/ydb/_grpc/v6/protos/annotations/sensitive_pb2_grpc.py +++ b/ydb/_grpc/v6/protos/annotations/sensitive_pb2_grpc.py @@ -1,27 +1,5 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc -<<<<<<< HEAD -import warnings -GRPC_GENERATED_VERSION = '1.72.1' -GRPC_VERSION = grpc.__version__ -_version_not_supported = False - -try: - from grpc._utilities import first_version_is_lower - _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) -except ImportError: - _version_not_supported = True - -if _version_not_supported: - raise RuntimeError( - f'The grpc package installed is at version {GRPC_VERSION},' - + f' but the generated code in protos/annotations/sensitive_pb2_grpc.py depends on' - + f' grpcio>={GRPC_GENERATED_VERSION}.' - + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' - + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' - ) -======= ->>>>>>> 989b70e (Fix Copilot review issues for attach hint PR) diff --git a/ydb/_grpc/v6/protos/annotations/validation_pb2_grpc.py b/ydb/_grpc/v6/protos/annotations/validation_pb2_grpc.py index 873c97102..0324772a9 100644 --- a/ydb/_grpc/v6/protos/annotations/validation_pb2_grpc.py +++ b/ydb/_grpc/v6/protos/annotations/validation_pb2_grpc.py @@ -1,27 +1,5 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc -<<<<<<< HEAD -import warnings -GRPC_GENERATED_VERSION = '1.72.1' -GRPC_VERSION = grpc.__version__ -_version_not_supported = False - -try: - from grpc._utilities import first_version_is_lower - _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) -except ImportError: - _version_not_supported = True - -if _version_not_supported: - raise RuntimeError( - f'The grpc package installed is at version {GRPC_VERSION},' - + f' but the generated code in protos/annotations/validation_pb2_grpc.py depends on' - + f' grpcio>={GRPC_GENERATED_VERSION}.' - + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' - + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' - ) -======= ->>>>>>> 989b70e (Fix Copilot review issues for attach hint PR) diff --git a/ydb/_grpc/v6/protos/ydb_auth_pb2_grpc.py b/ydb/_grpc/v6/protos/ydb_auth_pb2_grpc.py index 8aeb46566..0324772a9 100644 --- a/ydb/_grpc/v6/protos/ydb_auth_pb2_grpc.py +++ b/ydb/_grpc/v6/protos/ydb_auth_pb2_grpc.py @@ -1,27 +1,5 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc -<<<<<<< HEAD -import warnings -GRPC_GENERATED_VERSION = '1.72.1' -GRPC_VERSION = grpc.__version__ -_version_not_supported = False - -try: - from grpc._utilities import first_version_is_lower - _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) -except ImportError: - _version_not_supported = True - -if _version_not_supported: - raise RuntimeError( - f'The grpc package installed is at version {GRPC_VERSION},' - + f' but the generated code in protos/ydb_auth_pb2_grpc.py depends on' - + f' grpcio>={GRPC_GENERATED_VERSION}.' - + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' - + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' - ) -======= ->>>>>>> 989b70e (Fix Copilot review issues for attach hint PR) diff --git a/ydb/_grpc/v6/protos/ydb_cms_pb2_grpc.py b/ydb/_grpc/v6/protos/ydb_cms_pb2_grpc.py index be7c4fb0e..0324772a9 100644 --- a/ydb/_grpc/v6/protos/ydb_cms_pb2_grpc.py +++ b/ydb/_grpc/v6/protos/ydb_cms_pb2_grpc.py @@ -1,27 +1,5 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc -<<<<<<< HEAD -import warnings -GRPC_GENERATED_VERSION = '1.72.1' -GRPC_VERSION = grpc.__version__ -_version_not_supported = False - -try: - from grpc._utilities import first_version_is_lower - _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) -except ImportError: - _version_not_supported = True - -if _version_not_supported: - raise RuntimeError( - f'The grpc package installed is at version {GRPC_VERSION},' - + f' but the generated code in protos/ydb_cms_pb2_grpc.py depends on' - + f' grpcio>={GRPC_GENERATED_VERSION}.' - + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' - + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' - ) -======= ->>>>>>> 989b70e (Fix Copilot review issues for attach hint PR) diff --git a/ydb/_grpc/v6/protos/ydb_common_pb2_grpc.py b/ydb/_grpc/v6/protos/ydb_common_pb2_grpc.py index 37060f6da..0324772a9 100644 --- a/ydb/_grpc/v6/protos/ydb_common_pb2_grpc.py +++ b/ydb/_grpc/v6/protos/ydb_common_pb2_grpc.py @@ -1,27 +1,5 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc -<<<<<<< HEAD -import warnings -GRPC_GENERATED_VERSION = '1.72.1' -GRPC_VERSION = grpc.__version__ -_version_not_supported = False - -try: - from grpc._utilities import first_version_is_lower - _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) -except ImportError: - _version_not_supported = True - -if _version_not_supported: - raise RuntimeError( - f'The grpc package installed is at version {GRPC_VERSION},' - + f' but the generated code in protos/ydb_common_pb2_grpc.py depends on' - + f' grpcio>={GRPC_GENERATED_VERSION}.' - + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' - + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' - ) -======= ->>>>>>> 989b70e (Fix Copilot review issues for attach hint PR) diff --git a/ydb/_grpc/v6/protos/ydb_coordination_pb2_grpc.py b/ydb/_grpc/v6/protos/ydb_coordination_pb2_grpc.py index 9d4efcc7e..0324772a9 100644 --- a/ydb/_grpc/v6/protos/ydb_coordination_pb2_grpc.py +++ b/ydb/_grpc/v6/protos/ydb_coordination_pb2_grpc.py @@ -1,27 +1,5 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc -<<<<<<< HEAD -import warnings -GRPC_GENERATED_VERSION = '1.72.1' -GRPC_VERSION = grpc.__version__ -_version_not_supported = False - -try: - from grpc._utilities import first_version_is_lower - _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) -except ImportError: - _version_not_supported = True - -if _version_not_supported: - raise RuntimeError( - f'The grpc package installed is at version {GRPC_VERSION},' - + f' but the generated code in protos/ydb_coordination_pb2_grpc.py depends on' - + f' grpcio>={GRPC_GENERATED_VERSION}.' - + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' - + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' - ) -======= ->>>>>>> 989b70e (Fix Copilot review issues for attach hint PR) diff --git a/ydb/_grpc/v6/protos/ydb_discovery_pb2_grpc.py b/ydb/_grpc/v6/protos/ydb_discovery_pb2_grpc.py index 40fcd1625..0324772a9 100644 --- a/ydb/_grpc/v6/protos/ydb_discovery_pb2_grpc.py +++ b/ydb/_grpc/v6/protos/ydb_discovery_pb2_grpc.py @@ -1,27 +1,5 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc -<<<<<<< HEAD -import warnings -GRPC_GENERATED_VERSION = '1.72.1' -GRPC_VERSION = grpc.__version__ -_version_not_supported = False - -try: - from grpc._utilities import first_version_is_lower - _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) -except ImportError: - _version_not_supported = True - -if _version_not_supported: - raise RuntimeError( - f'The grpc package installed is at version {GRPC_VERSION},' - + f' but the generated code in protos/ydb_discovery_pb2_grpc.py depends on' - + f' grpcio>={GRPC_GENERATED_VERSION}.' - + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' - + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' - ) -======= ->>>>>>> 989b70e (Fix Copilot review issues for attach hint PR) diff --git a/ydb/_grpc/v6/protos/ydb_export_pb2_grpc.py b/ydb/_grpc/v6/protos/ydb_export_pb2_grpc.py index d8697bec0..0324772a9 100644 --- a/ydb/_grpc/v6/protos/ydb_export_pb2_grpc.py +++ b/ydb/_grpc/v6/protos/ydb_export_pb2_grpc.py @@ -1,27 +1,5 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc -<<<<<<< HEAD -import warnings -GRPC_GENERATED_VERSION = '1.72.1' -GRPC_VERSION = grpc.__version__ -_version_not_supported = False - -try: - from grpc._utilities import first_version_is_lower - _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) -except ImportError: - _version_not_supported = True - -if _version_not_supported: - raise RuntimeError( - f'The grpc package installed is at version {GRPC_VERSION},' - + f' but the generated code in protos/ydb_export_pb2_grpc.py depends on' - + f' grpcio>={GRPC_GENERATED_VERSION}.' - + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' - + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' - ) -======= ->>>>>>> 989b70e (Fix Copilot review issues for attach hint PR) diff --git a/ydb/_grpc/v6/protos/ydb_federation_discovery_pb2_grpc.py b/ydb/_grpc/v6/protos/ydb_federation_discovery_pb2_grpc.py index 98d469782..0324772a9 100644 --- a/ydb/_grpc/v6/protos/ydb_federation_discovery_pb2_grpc.py +++ b/ydb/_grpc/v6/protos/ydb_federation_discovery_pb2_grpc.py @@ -1,27 +1,5 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc -<<<<<<< HEAD -import warnings -GRPC_GENERATED_VERSION = '1.72.1' -GRPC_VERSION = grpc.__version__ -_version_not_supported = False - -try: - from grpc._utilities import first_version_is_lower - _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) -except ImportError: - _version_not_supported = True - -if _version_not_supported: - raise RuntimeError( - f'The grpc package installed is at version {GRPC_VERSION},' - + f' but the generated code in protos/ydb_federation_discovery_pb2_grpc.py depends on' - + f' grpcio>={GRPC_GENERATED_VERSION}.' - + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' - + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' - ) -======= ->>>>>>> 989b70e (Fix Copilot review issues for attach hint PR) diff --git a/ydb/_grpc/v6/protos/ydb_formats_pb2_grpc.py b/ydb/_grpc/v6/protos/ydb_formats_pb2_grpc.py index b5c0df7cf..0324772a9 100644 --- a/ydb/_grpc/v6/protos/ydb_formats_pb2_grpc.py +++ b/ydb/_grpc/v6/protos/ydb_formats_pb2_grpc.py @@ -1,27 +1,5 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc -<<<<<<< HEAD -import warnings -GRPC_GENERATED_VERSION = '1.72.1' -GRPC_VERSION = grpc.__version__ -_version_not_supported = False - -try: - from grpc._utilities import first_version_is_lower - _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) -except ImportError: - _version_not_supported = True - -if _version_not_supported: - raise RuntimeError( - f'The grpc package installed is at version {GRPC_VERSION},' - + f' but the generated code in protos/ydb_formats_pb2_grpc.py depends on' - + f' grpcio>={GRPC_GENERATED_VERSION}.' - + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' - + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' - ) -======= ->>>>>>> 989b70e (Fix Copilot review issues for attach hint PR) diff --git a/ydb/_grpc/v6/protos/ydb_import_pb2_grpc.py b/ydb/_grpc/v6/protos/ydb_import_pb2_grpc.py index a9776fe9f..0324772a9 100644 --- a/ydb/_grpc/v6/protos/ydb_import_pb2_grpc.py +++ b/ydb/_grpc/v6/protos/ydb_import_pb2_grpc.py @@ -1,27 +1,5 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc -<<<<<<< HEAD -import warnings -GRPC_GENERATED_VERSION = '1.72.1' -GRPC_VERSION = grpc.__version__ -_version_not_supported = False - -try: - from grpc._utilities import first_version_is_lower - _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) -except ImportError: - _version_not_supported = True - -if _version_not_supported: - raise RuntimeError( - f'The grpc package installed is at version {GRPC_VERSION},' - + f' but the generated code in protos/ydb_import_pb2_grpc.py depends on' - + f' grpcio>={GRPC_GENERATED_VERSION}.' - + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' - + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' - ) -======= ->>>>>>> 989b70e (Fix Copilot review issues for attach hint PR) diff --git a/ydb/_grpc/v6/protos/ydb_issue_message_pb2_grpc.py b/ydb/_grpc/v6/protos/ydb_issue_message_pb2_grpc.py index ececa6a4c..0324772a9 100644 --- a/ydb/_grpc/v6/protos/ydb_issue_message_pb2_grpc.py +++ b/ydb/_grpc/v6/protos/ydb_issue_message_pb2_grpc.py @@ -1,27 +1,5 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc -<<<<<<< HEAD -import warnings -GRPC_GENERATED_VERSION = '1.72.1' -GRPC_VERSION = grpc.__version__ -_version_not_supported = False - -try: - from grpc._utilities import first_version_is_lower - _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) -except ImportError: - _version_not_supported = True - -if _version_not_supported: - raise RuntimeError( - f'The grpc package installed is at version {GRPC_VERSION},' - + f' but the generated code in protos/ydb_issue_message_pb2_grpc.py depends on' - + f' grpcio>={GRPC_GENERATED_VERSION}.' - + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' - + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' - ) -======= ->>>>>>> 989b70e (Fix Copilot review issues for attach hint PR) diff --git a/ydb/_grpc/v6/protos/ydb_monitoring_pb2_grpc.py b/ydb/_grpc/v6/protos/ydb_monitoring_pb2_grpc.py index b3fa55f51..0324772a9 100644 --- a/ydb/_grpc/v6/protos/ydb_monitoring_pb2_grpc.py +++ b/ydb/_grpc/v6/protos/ydb_monitoring_pb2_grpc.py @@ -1,27 +1,5 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc -<<<<<<< HEAD -import warnings -GRPC_GENERATED_VERSION = '1.72.1' -GRPC_VERSION = grpc.__version__ -_version_not_supported = False - -try: - from grpc._utilities import first_version_is_lower - _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) -except ImportError: - _version_not_supported = True - -if _version_not_supported: - raise RuntimeError( - f'The grpc package installed is at version {GRPC_VERSION},' - + f' but the generated code in protos/ydb_monitoring_pb2_grpc.py depends on' - + f' grpcio>={GRPC_GENERATED_VERSION}.' - + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' - + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' - ) -======= ->>>>>>> 989b70e (Fix Copilot review issues for attach hint PR) diff --git a/ydb/_grpc/v6/protos/ydb_operation_pb2_grpc.py b/ydb/_grpc/v6/protos/ydb_operation_pb2_grpc.py index d2f5a3a64..0324772a9 100644 --- a/ydb/_grpc/v6/protos/ydb_operation_pb2_grpc.py +++ b/ydb/_grpc/v6/protos/ydb_operation_pb2_grpc.py @@ -1,27 +1,5 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc -<<<<<<< HEAD -import warnings -GRPC_GENERATED_VERSION = '1.72.1' -GRPC_VERSION = grpc.__version__ -_version_not_supported = False - -try: - from grpc._utilities import first_version_is_lower - _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) -except ImportError: - _version_not_supported = True - -if _version_not_supported: - raise RuntimeError( - f'The grpc package installed is at version {GRPC_VERSION},' - + f' but the generated code in protos/ydb_operation_pb2_grpc.py depends on' - + f' grpcio>={GRPC_GENERATED_VERSION}.' - + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' - + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' - ) -======= ->>>>>>> 989b70e (Fix Copilot review issues for attach hint PR) diff --git a/ydb/_grpc/v6/protos/ydb_query_pb2_grpc.py b/ydb/_grpc/v6/protos/ydb_query_pb2_grpc.py index 9b2acd6f2..0324772a9 100644 --- a/ydb/_grpc/v6/protos/ydb_query_pb2_grpc.py +++ b/ydb/_grpc/v6/protos/ydb_query_pb2_grpc.py @@ -1,27 +1,5 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc -<<<<<<< HEAD -import warnings -GRPC_GENERATED_VERSION = '1.72.1' -GRPC_VERSION = grpc.__version__ -_version_not_supported = False - -try: - from grpc._utilities import first_version_is_lower - _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) -except ImportError: - _version_not_supported = True - -if _version_not_supported: - raise RuntimeError( - f'The grpc package installed is at version {GRPC_VERSION},' - + f' but the generated code in protos/ydb_query_pb2_grpc.py depends on' - + f' grpcio>={GRPC_GENERATED_VERSION}.' - + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' - + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' - ) -======= ->>>>>>> 989b70e (Fix Copilot review issues for attach hint PR) diff --git a/ydb/_grpc/v6/protos/ydb_query_stats_pb2_grpc.py b/ydb/_grpc/v6/protos/ydb_query_stats_pb2_grpc.py index 1fabc0466..0324772a9 100644 --- a/ydb/_grpc/v6/protos/ydb_query_stats_pb2_grpc.py +++ b/ydb/_grpc/v6/protos/ydb_query_stats_pb2_grpc.py @@ -1,27 +1,5 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc -<<<<<<< HEAD -import warnings -GRPC_GENERATED_VERSION = '1.72.1' -GRPC_VERSION = grpc.__version__ -_version_not_supported = False - -try: - from grpc._utilities import first_version_is_lower - _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) -except ImportError: - _version_not_supported = True - -if _version_not_supported: - raise RuntimeError( - f'The grpc package installed is at version {GRPC_VERSION},' - + f' but the generated code in protos/ydb_query_stats_pb2_grpc.py depends on' - + f' grpcio>={GRPC_GENERATED_VERSION}.' - + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' - + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' - ) -======= ->>>>>>> 989b70e (Fix Copilot review issues for attach hint PR) diff --git a/ydb/_grpc/v6/protos/ydb_rate_limiter_pb2_grpc.py b/ydb/_grpc/v6/protos/ydb_rate_limiter_pb2_grpc.py index 0b49afd76..0324772a9 100644 --- a/ydb/_grpc/v6/protos/ydb_rate_limiter_pb2_grpc.py +++ b/ydb/_grpc/v6/protos/ydb_rate_limiter_pb2_grpc.py @@ -1,27 +1,5 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc -<<<<<<< HEAD -import warnings -GRPC_GENERATED_VERSION = '1.72.1' -GRPC_VERSION = grpc.__version__ -_version_not_supported = False - -try: - from grpc._utilities import first_version_is_lower - _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) -except ImportError: - _version_not_supported = True - -if _version_not_supported: - raise RuntimeError( - f'The grpc package installed is at version {GRPC_VERSION},' - + f' but the generated code in protos/ydb_rate_limiter_pb2_grpc.py depends on' - + f' grpcio>={GRPC_GENERATED_VERSION}.' - + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' - + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' - ) -======= ->>>>>>> 989b70e (Fix Copilot review issues for attach hint PR) diff --git a/ydb/_grpc/v6/protos/ydb_scheme_pb2_grpc.py b/ydb/_grpc/v6/protos/ydb_scheme_pb2_grpc.py index c9b72cb80..0324772a9 100644 --- a/ydb/_grpc/v6/protos/ydb_scheme_pb2_grpc.py +++ b/ydb/_grpc/v6/protos/ydb_scheme_pb2_grpc.py @@ -1,27 +1,5 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc -<<<<<<< HEAD -import warnings -GRPC_GENERATED_VERSION = '1.72.1' -GRPC_VERSION = grpc.__version__ -_version_not_supported = False - -try: - from grpc._utilities import first_version_is_lower - _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) -except ImportError: - _version_not_supported = True - -if _version_not_supported: - raise RuntimeError( - f'The grpc package installed is at version {GRPC_VERSION},' - + f' but the generated code in protos/ydb_scheme_pb2_grpc.py depends on' - + f' grpcio>={GRPC_GENERATED_VERSION}.' - + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' - + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' - ) -======= ->>>>>>> 989b70e (Fix Copilot review issues for attach hint PR) diff --git a/ydb/_grpc/v6/protos/ydb_scripting_pb2_grpc.py b/ydb/_grpc/v6/protos/ydb_scripting_pb2_grpc.py index 768cfaf01..0324772a9 100644 --- a/ydb/_grpc/v6/protos/ydb_scripting_pb2_grpc.py +++ b/ydb/_grpc/v6/protos/ydb_scripting_pb2_grpc.py @@ -1,27 +1,5 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc -<<<<<<< HEAD -import warnings -GRPC_GENERATED_VERSION = '1.72.1' -GRPC_VERSION = grpc.__version__ -_version_not_supported = False - -try: - from grpc._utilities import first_version_is_lower - _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) -except ImportError: - _version_not_supported = True - -if _version_not_supported: - raise RuntimeError( - f'The grpc package installed is at version {GRPC_VERSION},' - + f' but the generated code in protos/ydb_scripting_pb2_grpc.py depends on' - + f' grpcio>={GRPC_GENERATED_VERSION}.' - + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' - + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' - ) -======= ->>>>>>> 989b70e (Fix Copilot review issues for attach hint PR) diff --git a/ydb/_grpc/v6/protos/ydb_status_codes_pb2_grpc.py b/ydb/_grpc/v6/protos/ydb_status_codes_pb2_grpc.py index 7c6e655ab..0324772a9 100644 --- a/ydb/_grpc/v6/protos/ydb_status_codes_pb2_grpc.py +++ b/ydb/_grpc/v6/protos/ydb_status_codes_pb2_grpc.py @@ -1,27 +1,5 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc -<<<<<<< HEAD -import warnings -GRPC_GENERATED_VERSION = '1.72.1' -GRPC_VERSION = grpc.__version__ -_version_not_supported = False - -try: - from grpc._utilities import first_version_is_lower - _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) -except ImportError: - _version_not_supported = True - -if _version_not_supported: - raise RuntimeError( - f'The grpc package installed is at version {GRPC_VERSION},' - + f' but the generated code in protos/ydb_status_codes_pb2_grpc.py depends on' - + f' grpcio>={GRPC_GENERATED_VERSION}.' - + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' - + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' - ) -======= ->>>>>>> 989b70e (Fix Copilot review issues for attach hint PR) diff --git a/ydb/_grpc/v6/protos/ydb_table_pb2_grpc.py b/ydb/_grpc/v6/protos/ydb_table_pb2_grpc.py index 1658b2196..0324772a9 100644 --- a/ydb/_grpc/v6/protos/ydb_table_pb2_grpc.py +++ b/ydb/_grpc/v6/protos/ydb_table_pb2_grpc.py @@ -1,27 +1,5 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc -<<<<<<< HEAD -import warnings -GRPC_GENERATED_VERSION = '1.72.1' -GRPC_VERSION = grpc.__version__ -_version_not_supported = False - -try: - from grpc._utilities import first_version_is_lower - _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) -except ImportError: - _version_not_supported = True - -if _version_not_supported: - raise RuntimeError( - f'The grpc package installed is at version {GRPC_VERSION},' - + f' but the generated code in protos/ydb_table_pb2_grpc.py depends on' - + f' grpcio>={GRPC_GENERATED_VERSION}.' - + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' - + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' - ) -======= ->>>>>>> 989b70e (Fix Copilot review issues for attach hint PR) diff --git a/ydb/_grpc/v6/protos/ydb_topic_pb2_grpc.py b/ydb/_grpc/v6/protos/ydb_topic_pb2_grpc.py index 8e2976562..0324772a9 100644 --- a/ydb/_grpc/v6/protos/ydb_topic_pb2_grpc.py +++ b/ydb/_grpc/v6/protos/ydb_topic_pb2_grpc.py @@ -1,27 +1,5 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc -<<<<<<< HEAD -import warnings -GRPC_GENERATED_VERSION = '1.72.1' -GRPC_VERSION = grpc.__version__ -_version_not_supported = False - -try: - from grpc._utilities import first_version_is_lower - _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) -except ImportError: - _version_not_supported = True - -if _version_not_supported: - raise RuntimeError( - f'The grpc package installed is at version {GRPC_VERSION},' - + f' but the generated code in protos/ydb_topic_pb2_grpc.py depends on' - + f' grpcio>={GRPC_GENERATED_VERSION}.' - + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' - + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' - ) -======= ->>>>>>> 989b70e (Fix Copilot review issues for attach hint PR) diff --git a/ydb/_grpc/v6/protos/ydb_value_pb2_grpc.py b/ydb/_grpc/v6/protos/ydb_value_pb2_grpc.py index 88ea94203..0324772a9 100644 --- a/ydb/_grpc/v6/protos/ydb_value_pb2_grpc.py +++ b/ydb/_grpc/v6/protos/ydb_value_pb2_grpc.py @@ -1,27 +1,5 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc -<<<<<<< HEAD -import warnings -GRPC_GENERATED_VERSION = '1.72.1' -GRPC_VERSION = grpc.__version__ -_version_not_supported = False - -try: - from grpc._utilities import first_version_is_lower - _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) -except ImportError: - _version_not_supported = True - -if _version_not_supported: - raise RuntimeError( - f'The grpc package installed is at version {GRPC_VERSION},' - + f' but the generated code in protos/ydb_value_pb2_grpc.py depends on' - + f' grpcio>={GRPC_GENERATED_VERSION}.' - + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' - + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' - ) -======= ->>>>>>> 989b70e (Fix Copilot review issues for attach hint PR) diff --git a/ydb/_grpc/v6/ydb_auth_v1_pb2_grpc.py b/ydb/_grpc/v6/ydb_auth_v1_pb2_grpc.py index 1c6c3bca2..6f28c3af2 100644 --- a/ydb/_grpc/v6/ydb_auth_v1_pb2_grpc.py +++ b/ydb/_grpc/v6/ydb_auth_v1_pb2_grpc.py @@ -4,27 +4,6 @@ from ydb._grpc.v6.protos import ydb_auth_pb2 as protos_dot_ydb__auth__pb2 -<<<<<<< HEAD -GRPC_GENERATED_VERSION = '1.72.1' -GRPC_VERSION = grpc.__version__ -_version_not_supported = False - -try: - from grpc._utilities import first_version_is_lower - _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) -except ImportError: - _version_not_supported = True - -if _version_not_supported: - raise RuntimeError( - f'The grpc package installed is at version {GRPC_VERSION},' - + f' but the generated code in ydb_auth_v1_pb2_grpc.py depends on' - + f' grpcio>={GRPC_GENERATED_VERSION}.' - + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' - + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' - ) -======= ->>>>>>> 989b70e (Fix Copilot review issues for attach hint PR) class AuthServiceStub(object): diff --git a/ydb/_grpc/v6/ydb_cms_v1_pb2_grpc.py b/ydb/_grpc/v6/ydb_cms_v1_pb2_grpc.py index a4f1522ea..b8e937f76 100644 --- a/ydb/_grpc/v6/ydb_cms_v1_pb2_grpc.py +++ b/ydb/_grpc/v6/ydb_cms_v1_pb2_grpc.py @@ -4,27 +4,6 @@ from ydb._grpc.v6.protos import ydb_cms_pb2 as protos_dot_ydb__cms__pb2 -<<<<<<< HEAD -GRPC_GENERATED_VERSION = '1.72.1' -GRPC_VERSION = grpc.__version__ -_version_not_supported = False - -try: - from grpc._utilities import first_version_is_lower - _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) -except ImportError: - _version_not_supported = True - -if _version_not_supported: - raise RuntimeError( - f'The grpc package installed is at version {GRPC_VERSION},' - + f' but the generated code in ydb_cms_v1_pb2_grpc.py depends on' - + f' grpcio>={GRPC_GENERATED_VERSION}.' - + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' - + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' - ) -======= ->>>>>>> 989b70e (Fix Copilot review issues for attach hint PR) class CmsServiceStub(object): diff --git a/ydb/_grpc/v6/ydb_coordination_v1_pb2_grpc.py b/ydb/_grpc/v6/ydb_coordination_v1_pb2_grpc.py index 3446ea045..fd43d9a1f 100644 --- a/ydb/_grpc/v6/ydb_coordination_v1_pb2_grpc.py +++ b/ydb/_grpc/v6/ydb_coordination_v1_pb2_grpc.py @@ -4,27 +4,6 @@ from ydb._grpc.v6.protos import ydb_coordination_pb2 as protos_dot_ydb__coordination__pb2 -<<<<<<< HEAD -GRPC_GENERATED_VERSION = '1.72.1' -GRPC_VERSION = grpc.__version__ -_version_not_supported = False - -try: - from grpc._utilities import first_version_is_lower - _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) -except ImportError: - _version_not_supported = True - -if _version_not_supported: - raise RuntimeError( - f'The grpc package installed is at version {GRPC_VERSION},' - + f' but the generated code in ydb_coordination_v1_pb2_grpc.py depends on' - + f' grpcio>={GRPC_GENERATED_VERSION}.' - + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' - + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' - ) -======= ->>>>>>> 989b70e (Fix Copilot review issues for attach hint PR) class CoordinationServiceStub(object): diff --git a/ydb/_grpc/v6/ydb_discovery_v1_pb2_grpc.py b/ydb/_grpc/v6/ydb_discovery_v1_pb2_grpc.py index eef054fcd..2774d24eb 100644 --- a/ydb/_grpc/v6/ydb_discovery_v1_pb2_grpc.py +++ b/ydb/_grpc/v6/ydb_discovery_v1_pb2_grpc.py @@ -4,27 +4,6 @@ from ydb._grpc.v6.protos import ydb_discovery_pb2 as protos_dot_ydb__discovery__pb2 -<<<<<<< HEAD -GRPC_GENERATED_VERSION = '1.72.1' -GRPC_VERSION = grpc.__version__ -_version_not_supported = False - -try: - from grpc._utilities import first_version_is_lower - _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) -except ImportError: - _version_not_supported = True - -if _version_not_supported: - raise RuntimeError( - f'The grpc package installed is at version {GRPC_VERSION},' - + f' but the generated code in ydb_discovery_v1_pb2_grpc.py depends on' - + f' grpcio>={GRPC_GENERATED_VERSION}.' - + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' - + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' - ) -======= ->>>>>>> 989b70e (Fix Copilot review issues for attach hint PR) class DiscoveryServiceStub(object): diff --git a/ydb/_grpc/v6/ydb_export_v1_pb2_grpc.py b/ydb/_grpc/v6/ydb_export_v1_pb2_grpc.py index 509b34d73..721263d5a 100644 --- a/ydb/_grpc/v6/ydb_export_v1_pb2_grpc.py +++ b/ydb/_grpc/v6/ydb_export_v1_pb2_grpc.py @@ -4,27 +4,6 @@ from ydb._grpc.v6.protos import ydb_export_pb2 as protos_dot_ydb__export__pb2 -<<<<<<< HEAD -GRPC_GENERATED_VERSION = '1.72.1' -GRPC_VERSION = grpc.__version__ -_version_not_supported = False - -try: - from grpc._utilities import first_version_is_lower - _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) -except ImportError: - _version_not_supported = True - -if _version_not_supported: - raise RuntimeError( - f'The grpc package installed is at version {GRPC_VERSION},' - + f' but the generated code in ydb_export_v1_pb2_grpc.py depends on' - + f' grpcio>={GRPC_GENERATED_VERSION}.' - + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' - + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' - ) -======= ->>>>>>> 989b70e (Fix Copilot review issues for attach hint PR) class ExportServiceStub(object): diff --git a/ydb/_grpc/v6/ydb_federation_discovery_v1_pb2_grpc.py b/ydb/_grpc/v6/ydb_federation_discovery_v1_pb2_grpc.py index 16a43df5b..e60fecfeb 100644 --- a/ydb/_grpc/v6/ydb_federation_discovery_v1_pb2_grpc.py +++ b/ydb/_grpc/v6/ydb_federation_discovery_v1_pb2_grpc.py @@ -4,27 +4,6 @@ from ydb._grpc.v6.protos import ydb_federation_discovery_pb2 as protos_dot_ydb__federation__discovery__pb2 -<<<<<<< HEAD -GRPC_GENERATED_VERSION = '1.72.1' -GRPC_VERSION = grpc.__version__ -_version_not_supported = False - -try: - from grpc._utilities import first_version_is_lower - _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) -except ImportError: - _version_not_supported = True - -if _version_not_supported: - raise RuntimeError( - f'The grpc package installed is at version {GRPC_VERSION},' - + f' but the generated code in ydb_federation_discovery_v1_pb2_grpc.py depends on' - + f' grpcio>={GRPC_GENERATED_VERSION}.' - + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' - + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' - ) -======= ->>>>>>> 989b70e (Fix Copilot review issues for attach hint PR) class FederationDiscoveryServiceStub(object): diff --git a/ydb/_grpc/v6/ydb_import_v1_pb2_grpc.py b/ydb/_grpc/v6/ydb_import_v1_pb2_grpc.py index 7b49fbb87..fe79d2184 100644 --- a/ydb/_grpc/v6/ydb_import_v1_pb2_grpc.py +++ b/ydb/_grpc/v6/ydb_import_v1_pb2_grpc.py @@ -4,27 +4,6 @@ from ydb._grpc.v6.protos import ydb_import_pb2 as protos_dot_ydb__import__pb2 -<<<<<<< HEAD -GRPC_GENERATED_VERSION = '1.72.1' -GRPC_VERSION = grpc.__version__ -_version_not_supported = False - -try: - from grpc._utilities import first_version_is_lower - _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) -except ImportError: - _version_not_supported = True - -if _version_not_supported: - raise RuntimeError( - f'The grpc package installed is at version {GRPC_VERSION},' - + f' but the generated code in ydb_import_v1_pb2_grpc.py depends on' - + f' grpcio>={GRPC_GENERATED_VERSION}.' - + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' - + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' - ) -======= ->>>>>>> 989b70e (Fix Copilot review issues for attach hint PR) class ImportServiceStub(object): diff --git a/ydb/_grpc/v6/ydb_monitoring_v1_pb2_grpc.py b/ydb/_grpc/v6/ydb_monitoring_v1_pb2_grpc.py index 398a42fd5..060012488 100644 --- a/ydb/_grpc/v6/ydb_monitoring_v1_pb2_grpc.py +++ b/ydb/_grpc/v6/ydb_monitoring_v1_pb2_grpc.py @@ -4,27 +4,6 @@ from ydb._grpc.v6.protos import ydb_monitoring_pb2 as protos_dot_ydb__monitoring__pb2 -<<<<<<< HEAD -GRPC_GENERATED_VERSION = '1.72.1' -GRPC_VERSION = grpc.__version__ -_version_not_supported = False - -try: - from grpc._utilities import first_version_is_lower - _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) -except ImportError: - _version_not_supported = True - -if _version_not_supported: - raise RuntimeError( - f'The grpc package installed is at version {GRPC_VERSION},' - + f' but the generated code in ydb_monitoring_v1_pb2_grpc.py depends on' - + f' grpcio>={GRPC_GENERATED_VERSION}.' - + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' - + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' - ) -======= ->>>>>>> 989b70e (Fix Copilot review issues for attach hint PR) class MonitoringServiceStub(object): diff --git a/ydb/_grpc/v6/ydb_operation_v1_pb2_grpc.py b/ydb/_grpc/v6/ydb_operation_v1_pb2_grpc.py index 46deaefa4..4ddb50266 100644 --- a/ydb/_grpc/v6/ydb_operation_v1_pb2_grpc.py +++ b/ydb/_grpc/v6/ydb_operation_v1_pb2_grpc.py @@ -4,27 +4,6 @@ from ydb._grpc.v6.protos import ydb_operation_pb2 as protos_dot_ydb__operation__pb2 -<<<<<<< HEAD -GRPC_GENERATED_VERSION = '1.72.1' -GRPC_VERSION = grpc.__version__ -_version_not_supported = False - -try: - from grpc._utilities import first_version_is_lower - _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) -except ImportError: - _version_not_supported = True - -if _version_not_supported: - raise RuntimeError( - f'The grpc package installed is at version {GRPC_VERSION},' - + f' but the generated code in ydb_operation_v1_pb2_grpc.py depends on' - + f' grpcio>={GRPC_GENERATED_VERSION}.' - + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' - + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' - ) -======= ->>>>>>> 989b70e (Fix Copilot review issues for attach hint PR) class OperationServiceStub(object): diff --git a/ydb/_grpc/v6/ydb_query_v1_pb2_grpc.py b/ydb/_grpc/v6/ydb_query_v1_pb2_grpc.py index 802b0189a..77bab75d5 100644 --- a/ydb/_grpc/v6/ydb_query_v1_pb2_grpc.py +++ b/ydb/_grpc/v6/ydb_query_v1_pb2_grpc.py @@ -5,27 +5,6 @@ from ydb._grpc.v6.protos import ydb_operation_pb2 as protos_dot_ydb__operation__pb2 from ydb._grpc.v6.protos import ydb_query_pb2 as protos_dot_ydb__query__pb2 -<<<<<<< HEAD -GRPC_GENERATED_VERSION = '1.72.1' -GRPC_VERSION = grpc.__version__ -_version_not_supported = False - -try: - from grpc._utilities import first_version_is_lower - _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) -except ImportError: - _version_not_supported = True - -if _version_not_supported: - raise RuntimeError( - f'The grpc package installed is at version {GRPC_VERSION},' - + f' but the generated code in ydb_query_v1_pb2_grpc.py depends on' - + f' grpcio>={GRPC_GENERATED_VERSION}.' - + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' - + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' - ) -======= ->>>>>>> 989b70e (Fix Copilot review issues for attach hint PR) class QueryServiceStub(object): diff --git a/ydb/_grpc/v6/ydb_rate_limiter_v1_pb2_grpc.py b/ydb/_grpc/v6/ydb_rate_limiter_v1_pb2_grpc.py index 434703c5e..44f1e0f88 100644 --- a/ydb/_grpc/v6/ydb_rate_limiter_v1_pb2_grpc.py +++ b/ydb/_grpc/v6/ydb_rate_limiter_v1_pb2_grpc.py @@ -4,27 +4,6 @@ from ydb._grpc.v6.protos import ydb_rate_limiter_pb2 as protos_dot_ydb__rate__limiter__pb2 -<<<<<<< HEAD -GRPC_GENERATED_VERSION = '1.72.1' -GRPC_VERSION = grpc.__version__ -_version_not_supported = False - -try: - from grpc._utilities import first_version_is_lower - _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) -except ImportError: - _version_not_supported = True - -if _version_not_supported: - raise RuntimeError( - f'The grpc package installed is at version {GRPC_VERSION},' - + f' but the generated code in ydb_rate_limiter_v1_pb2_grpc.py depends on' - + f' grpcio>={GRPC_GENERATED_VERSION}.' - + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' - + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' - ) -======= ->>>>>>> 989b70e (Fix Copilot review issues for attach hint PR) class RateLimiterServiceStub(object): diff --git a/ydb/_grpc/v6/ydb_scheme_v1_pb2_grpc.py b/ydb/_grpc/v6/ydb_scheme_v1_pb2_grpc.py index 5c06b64ec..c50cc5d59 100644 --- a/ydb/_grpc/v6/ydb_scheme_v1_pb2_grpc.py +++ b/ydb/_grpc/v6/ydb_scheme_v1_pb2_grpc.py @@ -4,27 +4,6 @@ from ydb._grpc.v6.protos import ydb_scheme_pb2 as protos_dot_ydb__scheme__pb2 -<<<<<<< HEAD -GRPC_GENERATED_VERSION = '1.72.1' -GRPC_VERSION = grpc.__version__ -_version_not_supported = False - -try: - from grpc._utilities import first_version_is_lower - _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) -except ImportError: - _version_not_supported = True - -if _version_not_supported: - raise RuntimeError( - f'The grpc package installed is at version {GRPC_VERSION},' - + f' but the generated code in ydb_scheme_v1_pb2_grpc.py depends on' - + f' grpcio>={GRPC_GENERATED_VERSION}.' - + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' - + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' - ) -======= ->>>>>>> 989b70e (Fix Copilot review issues for attach hint PR) class SchemeServiceStub(object): diff --git a/ydb/_grpc/v6/ydb_scripting_v1_pb2_grpc.py b/ydb/_grpc/v6/ydb_scripting_v1_pb2_grpc.py index b4bf8a816..a44024151 100644 --- a/ydb/_grpc/v6/ydb_scripting_v1_pb2_grpc.py +++ b/ydb/_grpc/v6/ydb_scripting_v1_pb2_grpc.py @@ -4,27 +4,6 @@ from ydb._grpc.v6.protos import ydb_scripting_pb2 as protos_dot_ydb__scripting__pb2 -<<<<<<< HEAD -GRPC_GENERATED_VERSION = '1.72.1' -GRPC_VERSION = grpc.__version__ -_version_not_supported = False - -try: - from grpc._utilities import first_version_is_lower - _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) -except ImportError: - _version_not_supported = True - -if _version_not_supported: - raise RuntimeError( - f'The grpc package installed is at version {GRPC_VERSION},' - + f' but the generated code in ydb_scripting_v1_pb2_grpc.py depends on' - + f' grpcio>={GRPC_GENERATED_VERSION}.' - + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' - + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' - ) -======= ->>>>>>> 989b70e (Fix Copilot review issues for attach hint PR) class ScriptingServiceStub(object): diff --git a/ydb/_grpc/v6/ydb_table_v1_pb2_grpc.py b/ydb/_grpc/v6/ydb_table_v1_pb2_grpc.py index 254ea52ec..781317d99 100644 --- a/ydb/_grpc/v6/ydb_table_v1_pb2_grpc.py +++ b/ydb/_grpc/v6/ydb_table_v1_pb2_grpc.py @@ -4,27 +4,6 @@ from ydb._grpc.v6.protos import ydb_table_pb2 as protos_dot_ydb__table__pb2 -<<<<<<< HEAD -GRPC_GENERATED_VERSION = '1.72.1' -GRPC_VERSION = grpc.__version__ -_version_not_supported = False - -try: - from grpc._utilities import first_version_is_lower - _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) -except ImportError: - _version_not_supported = True - -if _version_not_supported: - raise RuntimeError( - f'The grpc package installed is at version {GRPC_VERSION},' - + f' but the generated code in ydb_table_v1_pb2_grpc.py depends on' - + f' grpcio>={GRPC_GENERATED_VERSION}.' - + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' - + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' - ) -======= ->>>>>>> 989b70e (Fix Copilot review issues for attach hint PR) class TableServiceStub(object): diff --git a/ydb/_grpc/v6/ydb_topic_v1_pb2_grpc.py b/ydb/_grpc/v6/ydb_topic_v1_pb2_grpc.py index d3d1238bf..b5fb1106c 100644 --- a/ydb/_grpc/v6/ydb_topic_v1_pb2_grpc.py +++ b/ydb/_grpc/v6/ydb_topic_v1_pb2_grpc.py @@ -4,27 +4,6 @@ from ydb._grpc.v6.protos import ydb_topic_pb2 as protos_dot_ydb__topic__pb2 -<<<<<<< HEAD -GRPC_GENERATED_VERSION = '1.72.1' -GRPC_VERSION = grpc.__version__ -_version_not_supported = False - -try: - from grpc._utilities import first_version_is_lower - _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) -except ImportError: - _version_not_supported = True - -if _version_not_supported: - raise RuntimeError( - f'The grpc package installed is at version {GRPC_VERSION},' - + f' but the generated code in ydb_topic_v1_pb2_grpc.py depends on' - + f' grpcio>={GRPC_GENERATED_VERSION}.' - + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' - + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' - ) -======= ->>>>>>> 989b70e (Fix Copilot review issues for attach hint PR) class TopicServiceStub(object): From 80fb11aa0f6e55d28edfa75580a5126831a0e3cd Mon Sep 17 00:00:00 2001 From: KirillKurdyukov Date: Mon, 29 Jun 2026 12:27:24 +0300 Subject: [PATCH 7/7] Revert unintended v6 gRPC stub changes. Restore auto-generated stubs and generate_protoc.py to match main. Co-authored-by: Cursor --- generate_protoc.py | 48 +------------------ .../protos/ydb_dynamic_config_pb2_grpc.py | 19 ++++++++ .../protos/ydb_federated_query_pb2_grpc.py | 19 ++++++++ .../v6/draft/protos/ydb_keyvalue_pb2_grpc.py | 19 ++++++++ .../draft/protos/ydb_maintenance_pb2_grpc.py | 19 ++++++++ .../protos/ydb_object_storage_pb2_grpc.py | 19 ++++++++ .../draft/protos/ydb_replication_pb2_grpc.py | 19 ++++++++ .../v6/draft/protos/ydb_view_pb2_grpc.py | 19 ++++++++ .../draft/ydb_dynamic_config_v1_pb2_grpc.py | 19 ++++++++ .../draft/ydb_federated_query_v1_pb2_grpc.py | 19 ++++++++ .../v6/draft/ydb_keyvalue_v1_pb2_grpc.py | 19 ++++++++ .../v6/draft/ydb_maintenance_v1_pb2_grpc.py | 19 ++++++++ .../draft/ydb_object_storage_v1_pb2_grpc.py | 19 ++++++++ .../v6/draft/ydb_replication_v1_pb2_grpc.py | 19 ++++++++ ydb/_grpc/v6/draft/ydb_view_v1_pb2_grpc.py | 19 ++++++++ .../protos/annotations/sensitive_pb2_grpc.py | 19 ++++++++ .../protos/annotations/validation_pb2_grpc.py | 19 ++++++++ ydb/_grpc/v6/protos/ydb_auth_pb2_grpc.py | 19 ++++++++ ydb/_grpc/v6/protos/ydb_cms_pb2_grpc.py | 19 ++++++++ ydb/_grpc/v6/protos/ydb_common_pb2_grpc.py | 19 ++++++++ .../v6/protos/ydb_coordination_pb2_grpc.py | 19 ++++++++ ydb/_grpc/v6/protos/ydb_discovery_pb2_grpc.py | 19 ++++++++ ydb/_grpc/v6/protos/ydb_export_pb2_grpc.py | 19 ++++++++ .../ydb_federation_discovery_pb2_grpc.py | 19 ++++++++ ydb/_grpc/v6/protos/ydb_formats_pb2_grpc.py | 19 ++++++++ ydb/_grpc/v6/protos/ydb_import_pb2_grpc.py | 19 ++++++++ .../v6/protos/ydb_issue_message_pb2_grpc.py | 19 ++++++++ .../v6/protos/ydb_monitoring_pb2_grpc.py | 19 ++++++++ ydb/_grpc/v6/protos/ydb_operation_pb2_grpc.py | 19 ++++++++ ydb/_grpc/v6/protos/ydb_query_pb2_grpc.py | 19 ++++++++ .../v6/protos/ydb_query_stats_pb2_grpc.py | 19 ++++++++ .../v6/protos/ydb_rate_limiter_pb2_grpc.py | 19 ++++++++ ydb/_grpc/v6/protos/ydb_scheme_pb2_grpc.py | 19 ++++++++ ydb/_grpc/v6/protos/ydb_scripting_pb2_grpc.py | 19 ++++++++ .../v6/protos/ydb_status_codes_pb2_grpc.py | 19 ++++++++ ydb/_grpc/v6/protos/ydb_table_pb2_grpc.py | 19 ++++++++ ydb/_grpc/v6/protos/ydb_topic_pb2_grpc.py | 19 ++++++++ ydb/_grpc/v6/protos/ydb_value_pb2_grpc.py | 19 ++++++++ ydb/_grpc/v6/ydb_auth_v1_pb2_grpc.py | 19 ++++++++ ydb/_grpc/v6/ydb_cms_v1_pb2_grpc.py | 19 ++++++++ ydb/_grpc/v6/ydb_coordination_v1_pb2_grpc.py | 19 ++++++++ ydb/_grpc/v6/ydb_discovery_v1_pb2_grpc.py | 19 ++++++++ ydb/_grpc/v6/ydb_export_v1_pb2_grpc.py | 19 ++++++++ .../ydb_federation_discovery_v1_pb2_grpc.py | 19 ++++++++ ydb/_grpc/v6/ydb_import_v1_pb2_grpc.py | 19 ++++++++ ydb/_grpc/v6/ydb_monitoring_v1_pb2_grpc.py | 19 ++++++++ ydb/_grpc/v6/ydb_operation_v1_pb2_grpc.py | 19 ++++++++ ydb/_grpc/v6/ydb_query_v1_pb2_grpc.py | 19 ++++++++ ydb/_grpc/v6/ydb_rate_limiter_v1_pb2_grpc.py | 19 ++++++++ ydb/_grpc/v6/ydb_scheme_v1_pb2_grpc.py | 19 ++++++++ ydb/_grpc/v6/ydb_scripting_v1_pb2_grpc.py | 19 ++++++++ ydb/_grpc/v6/ydb_table_v1_pb2_grpc.py | 19 ++++++++ ydb/_grpc/v6/ydb_topic_v1_pb2_grpc.py | 19 ++++++++ 53 files changed, 989 insertions(+), 47 deletions(-) diff --git a/generate_protoc.py b/generate_protoc.py index 8269b6696..d69260285 100644 --- a/generate_protoc.py +++ b/generate_protoc.py @@ -1,50 +1,11 @@ import os import pathlib -import re import shutil from typing import List from argparse import ArgumentParser -_GRPC_VERSION_GATE_RE = re.compile( - r"GRPC_GENERATED_VERSION = '[^']+'\n" - r"GRPC_VERSION = grpc\.__version__\n" - r"_version_not_supported = False\n\n" - r"try:\n" - r" from grpc\._utilities import first_version_is_lower\n" - r" _version_not_supported = first_version_is_lower\(GRPC_VERSION, GRPC_GENERATED_VERSION\)\n" - r"except ImportError:\n" - r" _version_not_supported = True\n\n" - r"if _version_not_supported:\n" - r" raise RuntimeError\(\n" - r"(?: .+\n)+" - r" \)\n" -) - - -def strip_grpc_version_gate(content: str) -> str: - """Remove grpcio-tools version gate from generated *_grpc.py stubs.""" - updated = _GRPC_VERSION_GATE_RE.sub("", content) - if updated != content: - updated = updated.replace("import warnings\n", "") - return updated - - -def strip_grpc_version_gate_from_tree(rootdir: str) -> None: - for dirpath, _, fnames in os.walk(rootdir): - for fname in fnames: - if not fname.endswith("_grpc.py"): - continue - - path = os.path.join(dirpath, fname) - with open(path, "r+t") as f: - content = f.read() - updated = strip_grpc_version_gate(content) - if updated == content: - continue - f.seek(0) - f.write(updated) - f.truncate() +from grpc_tools import command def files_filter(dir, items: List[str]) -> List[str]: @@ -95,18 +56,11 @@ def fix_file_contents(rootdir, protobuf_version: str): # Add ignore style check content = content.replace("# -*- coding: utf-8 -*-", "# -*- coding: utf-8 -*-\n" + flake_ignore_line) - - if fname.endswith("_grpc.py"): - content = strip_grpc_version_gate(content) - f.seek(0) f.write(content) - f.truncate() def generate_protobuf(src_proto_dir: str, dst_dir, protobuf_version: str): - from grpc_tools import command - shutil.rmtree(dst_dir, ignore_errors=True) shutil.copytree(src_proto_dir, dst_dir, ignore=files_filter) diff --git a/ydb/_grpc/v6/draft/protos/ydb_dynamic_config_pb2_grpc.py b/ydb/_grpc/v6/draft/protos/ydb_dynamic_config_pb2_grpc.py index 0324772a9..869475c80 100644 --- a/ydb/_grpc/v6/draft/protos/ydb_dynamic_config_pb2_grpc.py +++ b/ydb/_grpc/v6/draft/protos/ydb_dynamic_config_pb2_grpc.py @@ -1,5 +1,24 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc +import warnings +GRPC_GENERATED_VERSION = '1.72.1' +GRPC_VERSION = grpc.__version__ +_version_not_supported = False + +try: + from grpc._utilities import first_version_is_lower + _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) +except ImportError: + _version_not_supported = True + +if _version_not_supported: + raise RuntimeError( + f'The grpc package installed is at version {GRPC_VERSION},' + + f' but the generated code in draft/protos/ydb_dynamic_config_pb2_grpc.py depends on' + + f' grpcio>={GRPC_GENERATED_VERSION}.' + + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' + + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' + ) diff --git a/ydb/_grpc/v6/draft/protos/ydb_federated_query_pb2_grpc.py b/ydb/_grpc/v6/draft/protos/ydb_federated_query_pb2_grpc.py index 0324772a9..902dae95b 100644 --- a/ydb/_grpc/v6/draft/protos/ydb_federated_query_pb2_grpc.py +++ b/ydb/_grpc/v6/draft/protos/ydb_federated_query_pb2_grpc.py @@ -1,5 +1,24 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc +import warnings +GRPC_GENERATED_VERSION = '1.72.1' +GRPC_VERSION = grpc.__version__ +_version_not_supported = False + +try: + from grpc._utilities import first_version_is_lower + _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) +except ImportError: + _version_not_supported = True + +if _version_not_supported: + raise RuntimeError( + f'The grpc package installed is at version {GRPC_VERSION},' + + f' but the generated code in draft/protos/ydb_federated_query_pb2_grpc.py depends on' + + f' grpcio>={GRPC_GENERATED_VERSION}.' + + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' + + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' + ) diff --git a/ydb/_grpc/v6/draft/protos/ydb_keyvalue_pb2_grpc.py b/ydb/_grpc/v6/draft/protos/ydb_keyvalue_pb2_grpc.py index 0324772a9..762dc7db4 100644 --- a/ydb/_grpc/v6/draft/protos/ydb_keyvalue_pb2_grpc.py +++ b/ydb/_grpc/v6/draft/protos/ydb_keyvalue_pb2_grpc.py @@ -1,5 +1,24 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc +import warnings +GRPC_GENERATED_VERSION = '1.72.1' +GRPC_VERSION = grpc.__version__ +_version_not_supported = False + +try: + from grpc._utilities import first_version_is_lower + _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) +except ImportError: + _version_not_supported = True + +if _version_not_supported: + raise RuntimeError( + f'The grpc package installed is at version {GRPC_VERSION},' + + f' but the generated code in draft/protos/ydb_keyvalue_pb2_grpc.py depends on' + + f' grpcio>={GRPC_GENERATED_VERSION}.' + + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' + + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' + ) diff --git a/ydb/_grpc/v6/draft/protos/ydb_maintenance_pb2_grpc.py b/ydb/_grpc/v6/draft/protos/ydb_maintenance_pb2_grpc.py index 0324772a9..43fa1abc6 100644 --- a/ydb/_grpc/v6/draft/protos/ydb_maintenance_pb2_grpc.py +++ b/ydb/_grpc/v6/draft/protos/ydb_maintenance_pb2_grpc.py @@ -1,5 +1,24 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc +import warnings +GRPC_GENERATED_VERSION = '1.72.1' +GRPC_VERSION = grpc.__version__ +_version_not_supported = False + +try: + from grpc._utilities import first_version_is_lower + _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) +except ImportError: + _version_not_supported = True + +if _version_not_supported: + raise RuntimeError( + f'The grpc package installed is at version {GRPC_VERSION},' + + f' but the generated code in draft/protos/ydb_maintenance_pb2_grpc.py depends on' + + f' grpcio>={GRPC_GENERATED_VERSION}.' + + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' + + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' + ) diff --git a/ydb/_grpc/v6/draft/protos/ydb_object_storage_pb2_grpc.py b/ydb/_grpc/v6/draft/protos/ydb_object_storage_pb2_grpc.py index 0324772a9..506fec9d5 100644 --- a/ydb/_grpc/v6/draft/protos/ydb_object_storage_pb2_grpc.py +++ b/ydb/_grpc/v6/draft/protos/ydb_object_storage_pb2_grpc.py @@ -1,5 +1,24 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc +import warnings +GRPC_GENERATED_VERSION = '1.72.1' +GRPC_VERSION = grpc.__version__ +_version_not_supported = False + +try: + from grpc._utilities import first_version_is_lower + _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) +except ImportError: + _version_not_supported = True + +if _version_not_supported: + raise RuntimeError( + f'The grpc package installed is at version {GRPC_VERSION},' + + f' but the generated code in draft/protos/ydb_object_storage_pb2_grpc.py depends on' + + f' grpcio>={GRPC_GENERATED_VERSION}.' + + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' + + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' + ) diff --git a/ydb/_grpc/v6/draft/protos/ydb_replication_pb2_grpc.py b/ydb/_grpc/v6/draft/protos/ydb_replication_pb2_grpc.py index 0324772a9..e0c14b73a 100644 --- a/ydb/_grpc/v6/draft/protos/ydb_replication_pb2_grpc.py +++ b/ydb/_grpc/v6/draft/protos/ydb_replication_pb2_grpc.py @@ -1,5 +1,24 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc +import warnings +GRPC_GENERATED_VERSION = '1.72.1' +GRPC_VERSION = grpc.__version__ +_version_not_supported = False + +try: + from grpc._utilities import first_version_is_lower + _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) +except ImportError: + _version_not_supported = True + +if _version_not_supported: + raise RuntimeError( + f'The grpc package installed is at version {GRPC_VERSION},' + + f' but the generated code in draft/protos/ydb_replication_pb2_grpc.py depends on' + + f' grpcio>={GRPC_GENERATED_VERSION}.' + + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' + + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' + ) diff --git a/ydb/_grpc/v6/draft/protos/ydb_view_pb2_grpc.py b/ydb/_grpc/v6/draft/protos/ydb_view_pb2_grpc.py index 0324772a9..b490dd20a 100644 --- a/ydb/_grpc/v6/draft/protos/ydb_view_pb2_grpc.py +++ b/ydb/_grpc/v6/draft/protos/ydb_view_pb2_grpc.py @@ -1,5 +1,24 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc +import warnings +GRPC_GENERATED_VERSION = '1.72.1' +GRPC_VERSION = grpc.__version__ +_version_not_supported = False + +try: + from grpc._utilities import first_version_is_lower + _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) +except ImportError: + _version_not_supported = True + +if _version_not_supported: + raise RuntimeError( + f'The grpc package installed is at version {GRPC_VERSION},' + + f' but the generated code in draft/protos/ydb_view_pb2_grpc.py depends on' + + f' grpcio>={GRPC_GENERATED_VERSION}.' + + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' + + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' + ) diff --git a/ydb/_grpc/v6/draft/ydb_dynamic_config_v1_pb2_grpc.py b/ydb/_grpc/v6/draft/ydb_dynamic_config_v1_pb2_grpc.py index 086d5eb03..cadd585d8 100644 --- a/ydb/_grpc/v6/draft/ydb_dynamic_config_v1_pb2_grpc.py +++ b/ydb/_grpc/v6/draft/ydb_dynamic_config_v1_pb2_grpc.py @@ -1,9 +1,28 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc +import warnings from ydb._grpc.v6.draft.protos import ydb_dynamic_config_pb2 as draft_dot_protos_dot_ydb__dynamic__config__pb2 +GRPC_GENERATED_VERSION = '1.72.1' +GRPC_VERSION = grpc.__version__ +_version_not_supported = False + +try: + from grpc._utilities import first_version_is_lower + _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) +except ImportError: + _version_not_supported = True + +if _version_not_supported: + raise RuntimeError( + f'The grpc package installed is at version {GRPC_VERSION},' + + f' but the generated code in draft/ydb_dynamic_config_v1_pb2_grpc.py depends on' + + f' grpcio>={GRPC_GENERATED_VERSION}.' + + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' + + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' + ) class DynamicConfigServiceStub(object): diff --git a/ydb/_grpc/v6/draft/ydb_federated_query_v1_pb2_grpc.py b/ydb/_grpc/v6/draft/ydb_federated_query_v1_pb2_grpc.py index e4a24c90a..302976193 100644 --- a/ydb/_grpc/v6/draft/ydb_federated_query_v1_pb2_grpc.py +++ b/ydb/_grpc/v6/draft/ydb_federated_query_v1_pb2_grpc.py @@ -1,9 +1,28 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc +import warnings from ydb._grpc.v6.draft.protos import ydb_federated_query_pb2 as draft_dot_protos_dot_ydb__federated__query__pb2 +GRPC_GENERATED_VERSION = '1.72.1' +GRPC_VERSION = grpc.__version__ +_version_not_supported = False + +try: + from grpc._utilities import first_version_is_lower + _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) +except ImportError: + _version_not_supported = True + +if _version_not_supported: + raise RuntimeError( + f'The grpc package installed is at version {GRPC_VERSION},' + + f' but the generated code in draft/ydb_federated_query_v1_pb2_grpc.py depends on' + + f' grpcio>={GRPC_GENERATED_VERSION}.' + + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' + + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' + ) class FederatedQueryServiceStub(object): diff --git a/ydb/_grpc/v6/draft/ydb_keyvalue_v1_pb2_grpc.py b/ydb/_grpc/v6/draft/ydb_keyvalue_v1_pb2_grpc.py index 39d67612a..84f291c8e 100644 --- a/ydb/_grpc/v6/draft/ydb_keyvalue_v1_pb2_grpc.py +++ b/ydb/_grpc/v6/draft/ydb_keyvalue_v1_pb2_grpc.py @@ -1,9 +1,28 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc +import warnings from ydb._grpc.v6.draft.protos import ydb_keyvalue_pb2 as draft_dot_protos_dot_ydb__keyvalue__pb2 +GRPC_GENERATED_VERSION = '1.72.1' +GRPC_VERSION = grpc.__version__ +_version_not_supported = False + +try: + from grpc._utilities import first_version_is_lower + _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) +except ImportError: + _version_not_supported = True + +if _version_not_supported: + raise RuntimeError( + f'The grpc package installed is at version {GRPC_VERSION},' + + f' but the generated code in draft/ydb_keyvalue_v1_pb2_grpc.py depends on' + + f' grpcio>={GRPC_GENERATED_VERSION}.' + + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' + + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' + ) class KeyValueServiceStub(object): diff --git a/ydb/_grpc/v6/draft/ydb_maintenance_v1_pb2_grpc.py b/ydb/_grpc/v6/draft/ydb_maintenance_v1_pb2_grpc.py index 58203c618..4bd07d380 100644 --- a/ydb/_grpc/v6/draft/ydb_maintenance_v1_pb2_grpc.py +++ b/ydb/_grpc/v6/draft/ydb_maintenance_v1_pb2_grpc.py @@ -1,9 +1,28 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc +import warnings from ydb._grpc.v6.draft.protos import ydb_maintenance_pb2 as draft_dot_protos_dot_ydb__maintenance__pb2 +GRPC_GENERATED_VERSION = '1.72.1' +GRPC_VERSION = grpc.__version__ +_version_not_supported = False + +try: + from grpc._utilities import first_version_is_lower + _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) +except ImportError: + _version_not_supported = True + +if _version_not_supported: + raise RuntimeError( + f'The grpc package installed is at version {GRPC_VERSION},' + + f' but the generated code in draft/ydb_maintenance_v1_pb2_grpc.py depends on' + + f' grpcio>={GRPC_GENERATED_VERSION}.' + + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' + + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' + ) class MaintenanceServiceStub(object): diff --git a/ydb/_grpc/v6/draft/ydb_object_storage_v1_pb2_grpc.py b/ydb/_grpc/v6/draft/ydb_object_storage_v1_pb2_grpc.py index 49b6295ff..df15264cc 100644 --- a/ydb/_grpc/v6/draft/ydb_object_storage_v1_pb2_grpc.py +++ b/ydb/_grpc/v6/draft/ydb_object_storage_v1_pb2_grpc.py @@ -1,9 +1,28 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc +import warnings from ydb._grpc.v6.draft.protos import ydb_object_storage_pb2 as draft_dot_protos_dot_ydb__object__storage__pb2 +GRPC_GENERATED_VERSION = '1.72.1' +GRPC_VERSION = grpc.__version__ +_version_not_supported = False + +try: + from grpc._utilities import first_version_is_lower + _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) +except ImportError: + _version_not_supported = True + +if _version_not_supported: + raise RuntimeError( + f'The grpc package installed is at version {GRPC_VERSION},' + + f' but the generated code in draft/ydb_object_storage_v1_pb2_grpc.py depends on' + + f' grpcio>={GRPC_GENERATED_VERSION}.' + + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' + + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' + ) class ObjectStorageServiceStub(object): diff --git a/ydb/_grpc/v6/draft/ydb_replication_v1_pb2_grpc.py b/ydb/_grpc/v6/draft/ydb_replication_v1_pb2_grpc.py index 464e5100c..df08f4f0b 100644 --- a/ydb/_grpc/v6/draft/ydb_replication_v1_pb2_grpc.py +++ b/ydb/_grpc/v6/draft/ydb_replication_v1_pb2_grpc.py @@ -1,9 +1,28 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc +import warnings from ydb._grpc.v6.draft.protos import ydb_replication_pb2 as draft_dot_protos_dot_ydb__replication__pb2 +GRPC_GENERATED_VERSION = '1.72.1' +GRPC_VERSION = grpc.__version__ +_version_not_supported = False + +try: + from grpc._utilities import first_version_is_lower + _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) +except ImportError: + _version_not_supported = True + +if _version_not_supported: + raise RuntimeError( + f'The grpc package installed is at version {GRPC_VERSION},' + + f' but the generated code in draft/ydb_replication_v1_pb2_grpc.py depends on' + + f' grpcio>={GRPC_GENERATED_VERSION}.' + + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' + + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' + ) class ReplicationServiceStub(object): diff --git a/ydb/_grpc/v6/draft/ydb_view_v1_pb2_grpc.py b/ydb/_grpc/v6/draft/ydb_view_v1_pb2_grpc.py index b6df29602..1a0222d11 100644 --- a/ydb/_grpc/v6/draft/ydb_view_v1_pb2_grpc.py +++ b/ydb/_grpc/v6/draft/ydb_view_v1_pb2_grpc.py @@ -1,9 +1,28 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc +import warnings from ydb._grpc.v6.draft.protos import ydb_view_pb2 as draft_dot_protos_dot_ydb__view__pb2 +GRPC_GENERATED_VERSION = '1.72.1' +GRPC_VERSION = grpc.__version__ +_version_not_supported = False + +try: + from grpc._utilities import first_version_is_lower + _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) +except ImportError: + _version_not_supported = True + +if _version_not_supported: + raise RuntimeError( + f'The grpc package installed is at version {GRPC_VERSION},' + + f' but the generated code in draft/ydb_view_v1_pb2_grpc.py depends on' + + f' grpcio>={GRPC_GENERATED_VERSION}.' + + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' + + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' + ) class ViewServiceStub(object): diff --git a/ydb/_grpc/v6/protos/annotations/sensitive_pb2_grpc.py b/ydb/_grpc/v6/protos/annotations/sensitive_pb2_grpc.py index 0324772a9..bb37e51cd 100644 --- a/ydb/_grpc/v6/protos/annotations/sensitive_pb2_grpc.py +++ b/ydb/_grpc/v6/protos/annotations/sensitive_pb2_grpc.py @@ -1,5 +1,24 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc +import warnings +GRPC_GENERATED_VERSION = '1.72.1' +GRPC_VERSION = grpc.__version__ +_version_not_supported = False + +try: + from grpc._utilities import first_version_is_lower + _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) +except ImportError: + _version_not_supported = True + +if _version_not_supported: + raise RuntimeError( + f'The grpc package installed is at version {GRPC_VERSION},' + + f' but the generated code in protos/annotations/sensitive_pb2_grpc.py depends on' + + f' grpcio>={GRPC_GENERATED_VERSION}.' + + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' + + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' + ) diff --git a/ydb/_grpc/v6/protos/annotations/validation_pb2_grpc.py b/ydb/_grpc/v6/protos/annotations/validation_pb2_grpc.py index 0324772a9..6ae367ba4 100644 --- a/ydb/_grpc/v6/protos/annotations/validation_pb2_grpc.py +++ b/ydb/_grpc/v6/protos/annotations/validation_pb2_grpc.py @@ -1,5 +1,24 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc +import warnings +GRPC_GENERATED_VERSION = '1.72.1' +GRPC_VERSION = grpc.__version__ +_version_not_supported = False + +try: + from grpc._utilities import first_version_is_lower + _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) +except ImportError: + _version_not_supported = True + +if _version_not_supported: + raise RuntimeError( + f'The grpc package installed is at version {GRPC_VERSION},' + + f' but the generated code in protos/annotations/validation_pb2_grpc.py depends on' + + f' grpcio>={GRPC_GENERATED_VERSION}.' + + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' + + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' + ) diff --git a/ydb/_grpc/v6/protos/ydb_auth_pb2_grpc.py b/ydb/_grpc/v6/protos/ydb_auth_pb2_grpc.py index 0324772a9..a091ef131 100644 --- a/ydb/_grpc/v6/protos/ydb_auth_pb2_grpc.py +++ b/ydb/_grpc/v6/protos/ydb_auth_pb2_grpc.py @@ -1,5 +1,24 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc +import warnings +GRPC_GENERATED_VERSION = '1.72.1' +GRPC_VERSION = grpc.__version__ +_version_not_supported = False + +try: + from grpc._utilities import first_version_is_lower + _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) +except ImportError: + _version_not_supported = True + +if _version_not_supported: + raise RuntimeError( + f'The grpc package installed is at version {GRPC_VERSION},' + + f' but the generated code in protos/ydb_auth_pb2_grpc.py depends on' + + f' grpcio>={GRPC_GENERATED_VERSION}.' + + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' + + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' + ) diff --git a/ydb/_grpc/v6/protos/ydb_cms_pb2_grpc.py b/ydb/_grpc/v6/protos/ydb_cms_pb2_grpc.py index 0324772a9..dc24facd1 100644 --- a/ydb/_grpc/v6/protos/ydb_cms_pb2_grpc.py +++ b/ydb/_grpc/v6/protos/ydb_cms_pb2_grpc.py @@ -1,5 +1,24 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc +import warnings +GRPC_GENERATED_VERSION = '1.72.1' +GRPC_VERSION = grpc.__version__ +_version_not_supported = False + +try: + from grpc._utilities import first_version_is_lower + _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) +except ImportError: + _version_not_supported = True + +if _version_not_supported: + raise RuntimeError( + f'The grpc package installed is at version {GRPC_VERSION},' + + f' but the generated code in protos/ydb_cms_pb2_grpc.py depends on' + + f' grpcio>={GRPC_GENERATED_VERSION}.' + + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' + + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' + ) diff --git a/ydb/_grpc/v6/protos/ydb_common_pb2_grpc.py b/ydb/_grpc/v6/protos/ydb_common_pb2_grpc.py index 0324772a9..ec15acd36 100644 --- a/ydb/_grpc/v6/protos/ydb_common_pb2_grpc.py +++ b/ydb/_grpc/v6/protos/ydb_common_pb2_grpc.py @@ -1,5 +1,24 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc +import warnings +GRPC_GENERATED_VERSION = '1.72.1' +GRPC_VERSION = grpc.__version__ +_version_not_supported = False + +try: + from grpc._utilities import first_version_is_lower + _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) +except ImportError: + _version_not_supported = True + +if _version_not_supported: + raise RuntimeError( + f'The grpc package installed is at version {GRPC_VERSION},' + + f' but the generated code in protos/ydb_common_pb2_grpc.py depends on' + + f' grpcio>={GRPC_GENERATED_VERSION}.' + + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' + + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' + ) diff --git a/ydb/_grpc/v6/protos/ydb_coordination_pb2_grpc.py b/ydb/_grpc/v6/protos/ydb_coordination_pb2_grpc.py index 0324772a9..84e13a8be 100644 --- a/ydb/_grpc/v6/protos/ydb_coordination_pb2_grpc.py +++ b/ydb/_grpc/v6/protos/ydb_coordination_pb2_grpc.py @@ -1,5 +1,24 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc +import warnings +GRPC_GENERATED_VERSION = '1.72.1' +GRPC_VERSION = grpc.__version__ +_version_not_supported = False + +try: + from grpc._utilities import first_version_is_lower + _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) +except ImportError: + _version_not_supported = True + +if _version_not_supported: + raise RuntimeError( + f'The grpc package installed is at version {GRPC_VERSION},' + + f' but the generated code in protos/ydb_coordination_pb2_grpc.py depends on' + + f' grpcio>={GRPC_GENERATED_VERSION}.' + + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' + + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' + ) diff --git a/ydb/_grpc/v6/protos/ydb_discovery_pb2_grpc.py b/ydb/_grpc/v6/protos/ydb_discovery_pb2_grpc.py index 0324772a9..0b277cbd7 100644 --- a/ydb/_grpc/v6/protos/ydb_discovery_pb2_grpc.py +++ b/ydb/_grpc/v6/protos/ydb_discovery_pb2_grpc.py @@ -1,5 +1,24 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc +import warnings +GRPC_GENERATED_VERSION = '1.72.1' +GRPC_VERSION = grpc.__version__ +_version_not_supported = False + +try: + from grpc._utilities import first_version_is_lower + _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) +except ImportError: + _version_not_supported = True + +if _version_not_supported: + raise RuntimeError( + f'The grpc package installed is at version {GRPC_VERSION},' + + f' but the generated code in protos/ydb_discovery_pb2_grpc.py depends on' + + f' grpcio>={GRPC_GENERATED_VERSION}.' + + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' + + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' + ) diff --git a/ydb/_grpc/v6/protos/ydb_export_pb2_grpc.py b/ydb/_grpc/v6/protos/ydb_export_pb2_grpc.py index 0324772a9..b404798f8 100644 --- a/ydb/_grpc/v6/protos/ydb_export_pb2_grpc.py +++ b/ydb/_grpc/v6/protos/ydb_export_pb2_grpc.py @@ -1,5 +1,24 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc +import warnings +GRPC_GENERATED_VERSION = '1.72.1' +GRPC_VERSION = grpc.__version__ +_version_not_supported = False + +try: + from grpc._utilities import first_version_is_lower + _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) +except ImportError: + _version_not_supported = True + +if _version_not_supported: + raise RuntimeError( + f'The grpc package installed is at version {GRPC_VERSION},' + + f' but the generated code in protos/ydb_export_pb2_grpc.py depends on' + + f' grpcio>={GRPC_GENERATED_VERSION}.' + + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' + + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' + ) diff --git a/ydb/_grpc/v6/protos/ydb_federation_discovery_pb2_grpc.py b/ydb/_grpc/v6/protos/ydb_federation_discovery_pb2_grpc.py index 0324772a9..ac7195804 100644 --- a/ydb/_grpc/v6/protos/ydb_federation_discovery_pb2_grpc.py +++ b/ydb/_grpc/v6/protos/ydb_federation_discovery_pb2_grpc.py @@ -1,5 +1,24 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc +import warnings +GRPC_GENERATED_VERSION = '1.72.1' +GRPC_VERSION = grpc.__version__ +_version_not_supported = False + +try: + from grpc._utilities import first_version_is_lower + _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) +except ImportError: + _version_not_supported = True + +if _version_not_supported: + raise RuntimeError( + f'The grpc package installed is at version {GRPC_VERSION},' + + f' but the generated code in protos/ydb_federation_discovery_pb2_grpc.py depends on' + + f' grpcio>={GRPC_GENERATED_VERSION}.' + + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' + + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' + ) diff --git a/ydb/_grpc/v6/protos/ydb_formats_pb2_grpc.py b/ydb/_grpc/v6/protos/ydb_formats_pb2_grpc.py index 0324772a9..3d1c7f0f9 100644 --- a/ydb/_grpc/v6/protos/ydb_formats_pb2_grpc.py +++ b/ydb/_grpc/v6/protos/ydb_formats_pb2_grpc.py @@ -1,5 +1,24 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc +import warnings +GRPC_GENERATED_VERSION = '1.72.1' +GRPC_VERSION = grpc.__version__ +_version_not_supported = False + +try: + from grpc._utilities import first_version_is_lower + _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) +except ImportError: + _version_not_supported = True + +if _version_not_supported: + raise RuntimeError( + f'The grpc package installed is at version {GRPC_VERSION},' + + f' but the generated code in protos/ydb_formats_pb2_grpc.py depends on' + + f' grpcio>={GRPC_GENERATED_VERSION}.' + + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' + + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' + ) diff --git a/ydb/_grpc/v6/protos/ydb_import_pb2_grpc.py b/ydb/_grpc/v6/protos/ydb_import_pb2_grpc.py index 0324772a9..23b9c3cb6 100644 --- a/ydb/_grpc/v6/protos/ydb_import_pb2_grpc.py +++ b/ydb/_grpc/v6/protos/ydb_import_pb2_grpc.py @@ -1,5 +1,24 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc +import warnings +GRPC_GENERATED_VERSION = '1.72.1' +GRPC_VERSION = grpc.__version__ +_version_not_supported = False + +try: + from grpc._utilities import first_version_is_lower + _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) +except ImportError: + _version_not_supported = True + +if _version_not_supported: + raise RuntimeError( + f'The grpc package installed is at version {GRPC_VERSION},' + + f' but the generated code in protos/ydb_import_pb2_grpc.py depends on' + + f' grpcio>={GRPC_GENERATED_VERSION}.' + + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' + + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' + ) diff --git a/ydb/_grpc/v6/protos/ydb_issue_message_pb2_grpc.py b/ydb/_grpc/v6/protos/ydb_issue_message_pb2_grpc.py index 0324772a9..050215132 100644 --- a/ydb/_grpc/v6/protos/ydb_issue_message_pb2_grpc.py +++ b/ydb/_grpc/v6/protos/ydb_issue_message_pb2_grpc.py @@ -1,5 +1,24 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc +import warnings +GRPC_GENERATED_VERSION = '1.72.1' +GRPC_VERSION = grpc.__version__ +_version_not_supported = False + +try: + from grpc._utilities import first_version_is_lower + _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) +except ImportError: + _version_not_supported = True + +if _version_not_supported: + raise RuntimeError( + f'The grpc package installed is at version {GRPC_VERSION},' + + f' but the generated code in protos/ydb_issue_message_pb2_grpc.py depends on' + + f' grpcio>={GRPC_GENERATED_VERSION}.' + + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' + + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' + ) diff --git a/ydb/_grpc/v6/protos/ydb_monitoring_pb2_grpc.py b/ydb/_grpc/v6/protos/ydb_monitoring_pb2_grpc.py index 0324772a9..2eb612567 100644 --- a/ydb/_grpc/v6/protos/ydb_monitoring_pb2_grpc.py +++ b/ydb/_grpc/v6/protos/ydb_monitoring_pb2_grpc.py @@ -1,5 +1,24 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc +import warnings +GRPC_GENERATED_VERSION = '1.72.1' +GRPC_VERSION = grpc.__version__ +_version_not_supported = False + +try: + from grpc._utilities import first_version_is_lower + _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) +except ImportError: + _version_not_supported = True + +if _version_not_supported: + raise RuntimeError( + f'The grpc package installed is at version {GRPC_VERSION},' + + f' but the generated code in protos/ydb_monitoring_pb2_grpc.py depends on' + + f' grpcio>={GRPC_GENERATED_VERSION}.' + + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' + + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' + ) diff --git a/ydb/_grpc/v6/protos/ydb_operation_pb2_grpc.py b/ydb/_grpc/v6/protos/ydb_operation_pb2_grpc.py index 0324772a9..e75b91d8b 100644 --- a/ydb/_grpc/v6/protos/ydb_operation_pb2_grpc.py +++ b/ydb/_grpc/v6/protos/ydb_operation_pb2_grpc.py @@ -1,5 +1,24 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc +import warnings +GRPC_GENERATED_VERSION = '1.72.1' +GRPC_VERSION = grpc.__version__ +_version_not_supported = False + +try: + from grpc._utilities import first_version_is_lower + _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) +except ImportError: + _version_not_supported = True + +if _version_not_supported: + raise RuntimeError( + f'The grpc package installed is at version {GRPC_VERSION},' + + f' but the generated code in protos/ydb_operation_pb2_grpc.py depends on' + + f' grpcio>={GRPC_GENERATED_VERSION}.' + + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' + + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' + ) diff --git a/ydb/_grpc/v6/protos/ydb_query_pb2_grpc.py b/ydb/_grpc/v6/protos/ydb_query_pb2_grpc.py index 0324772a9..774c2ad50 100644 --- a/ydb/_grpc/v6/protos/ydb_query_pb2_grpc.py +++ b/ydb/_grpc/v6/protos/ydb_query_pb2_grpc.py @@ -1,5 +1,24 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc +import warnings +GRPC_GENERATED_VERSION = '1.72.1' +GRPC_VERSION = grpc.__version__ +_version_not_supported = False + +try: + from grpc._utilities import first_version_is_lower + _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) +except ImportError: + _version_not_supported = True + +if _version_not_supported: + raise RuntimeError( + f'The grpc package installed is at version {GRPC_VERSION},' + + f' but the generated code in protos/ydb_query_pb2_grpc.py depends on' + + f' grpcio>={GRPC_GENERATED_VERSION}.' + + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' + + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' + ) diff --git a/ydb/_grpc/v6/protos/ydb_query_stats_pb2_grpc.py b/ydb/_grpc/v6/protos/ydb_query_stats_pb2_grpc.py index 0324772a9..722604719 100644 --- a/ydb/_grpc/v6/protos/ydb_query_stats_pb2_grpc.py +++ b/ydb/_grpc/v6/protos/ydb_query_stats_pb2_grpc.py @@ -1,5 +1,24 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc +import warnings +GRPC_GENERATED_VERSION = '1.72.1' +GRPC_VERSION = grpc.__version__ +_version_not_supported = False + +try: + from grpc._utilities import first_version_is_lower + _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) +except ImportError: + _version_not_supported = True + +if _version_not_supported: + raise RuntimeError( + f'The grpc package installed is at version {GRPC_VERSION},' + + f' but the generated code in protos/ydb_query_stats_pb2_grpc.py depends on' + + f' grpcio>={GRPC_GENERATED_VERSION}.' + + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' + + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' + ) diff --git a/ydb/_grpc/v6/protos/ydb_rate_limiter_pb2_grpc.py b/ydb/_grpc/v6/protos/ydb_rate_limiter_pb2_grpc.py index 0324772a9..baaa670b9 100644 --- a/ydb/_grpc/v6/protos/ydb_rate_limiter_pb2_grpc.py +++ b/ydb/_grpc/v6/protos/ydb_rate_limiter_pb2_grpc.py @@ -1,5 +1,24 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc +import warnings +GRPC_GENERATED_VERSION = '1.72.1' +GRPC_VERSION = grpc.__version__ +_version_not_supported = False + +try: + from grpc._utilities import first_version_is_lower + _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) +except ImportError: + _version_not_supported = True + +if _version_not_supported: + raise RuntimeError( + f'The grpc package installed is at version {GRPC_VERSION},' + + f' but the generated code in protos/ydb_rate_limiter_pb2_grpc.py depends on' + + f' grpcio>={GRPC_GENERATED_VERSION}.' + + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' + + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' + ) diff --git a/ydb/_grpc/v6/protos/ydb_scheme_pb2_grpc.py b/ydb/_grpc/v6/protos/ydb_scheme_pb2_grpc.py index 0324772a9..ceaed6798 100644 --- a/ydb/_grpc/v6/protos/ydb_scheme_pb2_grpc.py +++ b/ydb/_grpc/v6/protos/ydb_scheme_pb2_grpc.py @@ -1,5 +1,24 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc +import warnings +GRPC_GENERATED_VERSION = '1.72.1' +GRPC_VERSION = grpc.__version__ +_version_not_supported = False + +try: + from grpc._utilities import first_version_is_lower + _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) +except ImportError: + _version_not_supported = True + +if _version_not_supported: + raise RuntimeError( + f'The grpc package installed is at version {GRPC_VERSION},' + + f' but the generated code in protos/ydb_scheme_pb2_grpc.py depends on' + + f' grpcio>={GRPC_GENERATED_VERSION}.' + + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' + + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' + ) diff --git a/ydb/_grpc/v6/protos/ydb_scripting_pb2_grpc.py b/ydb/_grpc/v6/protos/ydb_scripting_pb2_grpc.py index 0324772a9..82cae9f10 100644 --- a/ydb/_grpc/v6/protos/ydb_scripting_pb2_grpc.py +++ b/ydb/_grpc/v6/protos/ydb_scripting_pb2_grpc.py @@ -1,5 +1,24 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc +import warnings +GRPC_GENERATED_VERSION = '1.72.1' +GRPC_VERSION = grpc.__version__ +_version_not_supported = False + +try: + from grpc._utilities import first_version_is_lower + _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) +except ImportError: + _version_not_supported = True + +if _version_not_supported: + raise RuntimeError( + f'The grpc package installed is at version {GRPC_VERSION},' + + f' but the generated code in protos/ydb_scripting_pb2_grpc.py depends on' + + f' grpcio>={GRPC_GENERATED_VERSION}.' + + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' + + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' + ) diff --git a/ydb/_grpc/v6/protos/ydb_status_codes_pb2_grpc.py b/ydb/_grpc/v6/protos/ydb_status_codes_pb2_grpc.py index 0324772a9..e78b6b5fb 100644 --- a/ydb/_grpc/v6/protos/ydb_status_codes_pb2_grpc.py +++ b/ydb/_grpc/v6/protos/ydb_status_codes_pb2_grpc.py @@ -1,5 +1,24 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc +import warnings +GRPC_GENERATED_VERSION = '1.72.1' +GRPC_VERSION = grpc.__version__ +_version_not_supported = False + +try: + from grpc._utilities import first_version_is_lower + _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) +except ImportError: + _version_not_supported = True + +if _version_not_supported: + raise RuntimeError( + f'The grpc package installed is at version {GRPC_VERSION},' + + f' but the generated code in protos/ydb_status_codes_pb2_grpc.py depends on' + + f' grpcio>={GRPC_GENERATED_VERSION}.' + + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' + + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' + ) diff --git a/ydb/_grpc/v6/protos/ydb_table_pb2_grpc.py b/ydb/_grpc/v6/protos/ydb_table_pb2_grpc.py index 0324772a9..418e64f9c 100644 --- a/ydb/_grpc/v6/protos/ydb_table_pb2_grpc.py +++ b/ydb/_grpc/v6/protos/ydb_table_pb2_grpc.py @@ -1,5 +1,24 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc +import warnings +GRPC_GENERATED_VERSION = '1.72.1' +GRPC_VERSION = grpc.__version__ +_version_not_supported = False + +try: + from grpc._utilities import first_version_is_lower + _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) +except ImportError: + _version_not_supported = True + +if _version_not_supported: + raise RuntimeError( + f'The grpc package installed is at version {GRPC_VERSION},' + + f' but the generated code in protos/ydb_table_pb2_grpc.py depends on' + + f' grpcio>={GRPC_GENERATED_VERSION}.' + + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' + + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' + ) diff --git a/ydb/_grpc/v6/protos/ydb_topic_pb2_grpc.py b/ydb/_grpc/v6/protos/ydb_topic_pb2_grpc.py index 0324772a9..e4925a4b6 100644 --- a/ydb/_grpc/v6/protos/ydb_topic_pb2_grpc.py +++ b/ydb/_grpc/v6/protos/ydb_topic_pb2_grpc.py @@ -1,5 +1,24 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc +import warnings +GRPC_GENERATED_VERSION = '1.72.1' +GRPC_VERSION = grpc.__version__ +_version_not_supported = False + +try: + from grpc._utilities import first_version_is_lower + _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) +except ImportError: + _version_not_supported = True + +if _version_not_supported: + raise RuntimeError( + f'The grpc package installed is at version {GRPC_VERSION},' + + f' but the generated code in protos/ydb_topic_pb2_grpc.py depends on' + + f' grpcio>={GRPC_GENERATED_VERSION}.' + + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' + + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' + ) diff --git a/ydb/_grpc/v6/protos/ydb_value_pb2_grpc.py b/ydb/_grpc/v6/protos/ydb_value_pb2_grpc.py index 0324772a9..2897a6762 100644 --- a/ydb/_grpc/v6/protos/ydb_value_pb2_grpc.py +++ b/ydb/_grpc/v6/protos/ydb_value_pb2_grpc.py @@ -1,5 +1,24 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc +import warnings +GRPC_GENERATED_VERSION = '1.72.1' +GRPC_VERSION = grpc.__version__ +_version_not_supported = False + +try: + from grpc._utilities import first_version_is_lower + _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) +except ImportError: + _version_not_supported = True + +if _version_not_supported: + raise RuntimeError( + f'The grpc package installed is at version {GRPC_VERSION},' + + f' but the generated code in protos/ydb_value_pb2_grpc.py depends on' + + f' grpcio>={GRPC_GENERATED_VERSION}.' + + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' + + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' + ) diff --git a/ydb/_grpc/v6/ydb_auth_v1_pb2_grpc.py b/ydb/_grpc/v6/ydb_auth_v1_pb2_grpc.py index 6f28c3af2..2dc445baf 100644 --- a/ydb/_grpc/v6/ydb_auth_v1_pb2_grpc.py +++ b/ydb/_grpc/v6/ydb_auth_v1_pb2_grpc.py @@ -1,9 +1,28 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc +import warnings from ydb._grpc.v6.protos import ydb_auth_pb2 as protos_dot_ydb__auth__pb2 +GRPC_GENERATED_VERSION = '1.72.1' +GRPC_VERSION = grpc.__version__ +_version_not_supported = False + +try: + from grpc._utilities import first_version_is_lower + _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) +except ImportError: + _version_not_supported = True + +if _version_not_supported: + raise RuntimeError( + f'The grpc package installed is at version {GRPC_VERSION},' + + f' but the generated code in ydb_auth_v1_pb2_grpc.py depends on' + + f' grpcio>={GRPC_GENERATED_VERSION}.' + + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' + + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' + ) class AuthServiceStub(object): diff --git a/ydb/_grpc/v6/ydb_cms_v1_pb2_grpc.py b/ydb/_grpc/v6/ydb_cms_v1_pb2_grpc.py index b8e937f76..8857c17ba 100644 --- a/ydb/_grpc/v6/ydb_cms_v1_pb2_grpc.py +++ b/ydb/_grpc/v6/ydb_cms_v1_pb2_grpc.py @@ -1,9 +1,28 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc +import warnings from ydb._grpc.v6.protos import ydb_cms_pb2 as protos_dot_ydb__cms__pb2 +GRPC_GENERATED_VERSION = '1.72.1' +GRPC_VERSION = grpc.__version__ +_version_not_supported = False + +try: + from grpc._utilities import first_version_is_lower + _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) +except ImportError: + _version_not_supported = True + +if _version_not_supported: + raise RuntimeError( + f'The grpc package installed is at version {GRPC_VERSION},' + + f' but the generated code in ydb_cms_v1_pb2_grpc.py depends on' + + f' grpcio>={GRPC_GENERATED_VERSION}.' + + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' + + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' + ) class CmsServiceStub(object): diff --git a/ydb/_grpc/v6/ydb_coordination_v1_pb2_grpc.py b/ydb/_grpc/v6/ydb_coordination_v1_pb2_grpc.py index fd43d9a1f..60d310d6b 100644 --- a/ydb/_grpc/v6/ydb_coordination_v1_pb2_grpc.py +++ b/ydb/_grpc/v6/ydb_coordination_v1_pb2_grpc.py @@ -1,9 +1,28 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc +import warnings from ydb._grpc.v6.protos import ydb_coordination_pb2 as protos_dot_ydb__coordination__pb2 +GRPC_GENERATED_VERSION = '1.72.1' +GRPC_VERSION = grpc.__version__ +_version_not_supported = False + +try: + from grpc._utilities import first_version_is_lower + _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) +except ImportError: + _version_not_supported = True + +if _version_not_supported: + raise RuntimeError( + f'The grpc package installed is at version {GRPC_VERSION},' + + f' but the generated code in ydb_coordination_v1_pb2_grpc.py depends on' + + f' grpcio>={GRPC_GENERATED_VERSION}.' + + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' + + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' + ) class CoordinationServiceStub(object): diff --git a/ydb/_grpc/v6/ydb_discovery_v1_pb2_grpc.py b/ydb/_grpc/v6/ydb_discovery_v1_pb2_grpc.py index 2774d24eb..6cfacdae0 100644 --- a/ydb/_grpc/v6/ydb_discovery_v1_pb2_grpc.py +++ b/ydb/_grpc/v6/ydb_discovery_v1_pb2_grpc.py @@ -1,9 +1,28 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc +import warnings from ydb._grpc.v6.protos import ydb_discovery_pb2 as protos_dot_ydb__discovery__pb2 +GRPC_GENERATED_VERSION = '1.72.1' +GRPC_VERSION = grpc.__version__ +_version_not_supported = False + +try: + from grpc._utilities import first_version_is_lower + _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) +except ImportError: + _version_not_supported = True + +if _version_not_supported: + raise RuntimeError( + f'The grpc package installed is at version {GRPC_VERSION},' + + f' but the generated code in ydb_discovery_v1_pb2_grpc.py depends on' + + f' grpcio>={GRPC_GENERATED_VERSION}.' + + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' + + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' + ) class DiscoveryServiceStub(object): diff --git a/ydb/_grpc/v6/ydb_export_v1_pb2_grpc.py b/ydb/_grpc/v6/ydb_export_v1_pb2_grpc.py index 721263d5a..4d2a062b9 100644 --- a/ydb/_grpc/v6/ydb_export_v1_pb2_grpc.py +++ b/ydb/_grpc/v6/ydb_export_v1_pb2_grpc.py @@ -1,9 +1,28 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc +import warnings from ydb._grpc.v6.protos import ydb_export_pb2 as protos_dot_ydb__export__pb2 +GRPC_GENERATED_VERSION = '1.72.1' +GRPC_VERSION = grpc.__version__ +_version_not_supported = False + +try: + from grpc._utilities import first_version_is_lower + _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) +except ImportError: + _version_not_supported = True + +if _version_not_supported: + raise RuntimeError( + f'The grpc package installed is at version {GRPC_VERSION},' + + f' but the generated code in ydb_export_v1_pb2_grpc.py depends on' + + f' grpcio>={GRPC_GENERATED_VERSION}.' + + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' + + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' + ) class ExportServiceStub(object): diff --git a/ydb/_grpc/v6/ydb_federation_discovery_v1_pb2_grpc.py b/ydb/_grpc/v6/ydb_federation_discovery_v1_pb2_grpc.py index e60fecfeb..2c7ae0963 100644 --- a/ydb/_grpc/v6/ydb_federation_discovery_v1_pb2_grpc.py +++ b/ydb/_grpc/v6/ydb_federation_discovery_v1_pb2_grpc.py @@ -1,9 +1,28 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc +import warnings from ydb._grpc.v6.protos import ydb_federation_discovery_pb2 as protos_dot_ydb__federation__discovery__pb2 +GRPC_GENERATED_VERSION = '1.72.1' +GRPC_VERSION = grpc.__version__ +_version_not_supported = False + +try: + from grpc._utilities import first_version_is_lower + _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) +except ImportError: + _version_not_supported = True + +if _version_not_supported: + raise RuntimeError( + f'The grpc package installed is at version {GRPC_VERSION},' + + f' but the generated code in ydb_federation_discovery_v1_pb2_grpc.py depends on' + + f' grpcio>={GRPC_GENERATED_VERSION}.' + + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' + + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' + ) class FederationDiscoveryServiceStub(object): diff --git a/ydb/_grpc/v6/ydb_import_v1_pb2_grpc.py b/ydb/_grpc/v6/ydb_import_v1_pb2_grpc.py index fe79d2184..82d83f97c 100644 --- a/ydb/_grpc/v6/ydb_import_v1_pb2_grpc.py +++ b/ydb/_grpc/v6/ydb_import_v1_pb2_grpc.py @@ -1,9 +1,28 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc +import warnings from ydb._grpc.v6.protos import ydb_import_pb2 as protos_dot_ydb__import__pb2 +GRPC_GENERATED_VERSION = '1.72.1' +GRPC_VERSION = grpc.__version__ +_version_not_supported = False + +try: + from grpc._utilities import first_version_is_lower + _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) +except ImportError: + _version_not_supported = True + +if _version_not_supported: + raise RuntimeError( + f'The grpc package installed is at version {GRPC_VERSION},' + + f' but the generated code in ydb_import_v1_pb2_grpc.py depends on' + + f' grpcio>={GRPC_GENERATED_VERSION}.' + + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' + + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' + ) class ImportServiceStub(object): diff --git a/ydb/_grpc/v6/ydb_monitoring_v1_pb2_grpc.py b/ydb/_grpc/v6/ydb_monitoring_v1_pb2_grpc.py index 060012488..48642afc8 100644 --- a/ydb/_grpc/v6/ydb_monitoring_v1_pb2_grpc.py +++ b/ydb/_grpc/v6/ydb_monitoring_v1_pb2_grpc.py @@ -1,9 +1,28 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc +import warnings from ydb._grpc.v6.protos import ydb_monitoring_pb2 as protos_dot_ydb__monitoring__pb2 +GRPC_GENERATED_VERSION = '1.72.1' +GRPC_VERSION = grpc.__version__ +_version_not_supported = False + +try: + from grpc._utilities import first_version_is_lower + _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) +except ImportError: + _version_not_supported = True + +if _version_not_supported: + raise RuntimeError( + f'The grpc package installed is at version {GRPC_VERSION},' + + f' but the generated code in ydb_monitoring_v1_pb2_grpc.py depends on' + + f' grpcio>={GRPC_GENERATED_VERSION}.' + + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' + + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' + ) class MonitoringServiceStub(object): diff --git a/ydb/_grpc/v6/ydb_operation_v1_pb2_grpc.py b/ydb/_grpc/v6/ydb_operation_v1_pb2_grpc.py index 4ddb50266..d8c0dc907 100644 --- a/ydb/_grpc/v6/ydb_operation_v1_pb2_grpc.py +++ b/ydb/_grpc/v6/ydb_operation_v1_pb2_grpc.py @@ -1,9 +1,28 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc +import warnings from ydb._grpc.v6.protos import ydb_operation_pb2 as protos_dot_ydb__operation__pb2 +GRPC_GENERATED_VERSION = '1.72.1' +GRPC_VERSION = grpc.__version__ +_version_not_supported = False + +try: + from grpc._utilities import first_version_is_lower + _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) +except ImportError: + _version_not_supported = True + +if _version_not_supported: + raise RuntimeError( + f'The grpc package installed is at version {GRPC_VERSION},' + + f' but the generated code in ydb_operation_v1_pb2_grpc.py depends on' + + f' grpcio>={GRPC_GENERATED_VERSION}.' + + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' + + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' + ) class OperationServiceStub(object): diff --git a/ydb/_grpc/v6/ydb_query_v1_pb2_grpc.py b/ydb/_grpc/v6/ydb_query_v1_pb2_grpc.py index 77bab75d5..5ff3ce81e 100644 --- a/ydb/_grpc/v6/ydb_query_v1_pb2_grpc.py +++ b/ydb/_grpc/v6/ydb_query_v1_pb2_grpc.py @@ -1,10 +1,29 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc +import warnings from ydb._grpc.v6.protos import ydb_operation_pb2 as protos_dot_ydb__operation__pb2 from ydb._grpc.v6.protos import ydb_query_pb2 as protos_dot_ydb__query__pb2 +GRPC_GENERATED_VERSION = '1.72.1' +GRPC_VERSION = grpc.__version__ +_version_not_supported = False + +try: + from grpc._utilities import first_version_is_lower + _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) +except ImportError: + _version_not_supported = True + +if _version_not_supported: + raise RuntimeError( + f'The grpc package installed is at version {GRPC_VERSION},' + + f' but the generated code in ydb_query_v1_pb2_grpc.py depends on' + + f' grpcio>={GRPC_GENERATED_VERSION}.' + + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' + + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' + ) class QueryServiceStub(object): diff --git a/ydb/_grpc/v6/ydb_rate_limiter_v1_pb2_grpc.py b/ydb/_grpc/v6/ydb_rate_limiter_v1_pb2_grpc.py index 44f1e0f88..0b8225ec2 100644 --- a/ydb/_grpc/v6/ydb_rate_limiter_v1_pb2_grpc.py +++ b/ydb/_grpc/v6/ydb_rate_limiter_v1_pb2_grpc.py @@ -1,9 +1,28 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc +import warnings from ydb._grpc.v6.protos import ydb_rate_limiter_pb2 as protos_dot_ydb__rate__limiter__pb2 +GRPC_GENERATED_VERSION = '1.72.1' +GRPC_VERSION = grpc.__version__ +_version_not_supported = False + +try: + from grpc._utilities import first_version_is_lower + _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) +except ImportError: + _version_not_supported = True + +if _version_not_supported: + raise RuntimeError( + f'The grpc package installed is at version {GRPC_VERSION},' + + f' but the generated code in ydb_rate_limiter_v1_pb2_grpc.py depends on' + + f' grpcio>={GRPC_GENERATED_VERSION}.' + + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' + + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' + ) class RateLimiterServiceStub(object): diff --git a/ydb/_grpc/v6/ydb_scheme_v1_pb2_grpc.py b/ydb/_grpc/v6/ydb_scheme_v1_pb2_grpc.py index c50cc5d59..58c206a51 100644 --- a/ydb/_grpc/v6/ydb_scheme_v1_pb2_grpc.py +++ b/ydb/_grpc/v6/ydb_scheme_v1_pb2_grpc.py @@ -1,9 +1,28 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc +import warnings from ydb._grpc.v6.protos import ydb_scheme_pb2 as protos_dot_ydb__scheme__pb2 +GRPC_GENERATED_VERSION = '1.72.1' +GRPC_VERSION = grpc.__version__ +_version_not_supported = False + +try: + from grpc._utilities import first_version_is_lower + _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) +except ImportError: + _version_not_supported = True + +if _version_not_supported: + raise RuntimeError( + f'The grpc package installed is at version {GRPC_VERSION},' + + f' but the generated code in ydb_scheme_v1_pb2_grpc.py depends on' + + f' grpcio>={GRPC_GENERATED_VERSION}.' + + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' + + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' + ) class SchemeServiceStub(object): diff --git a/ydb/_grpc/v6/ydb_scripting_v1_pb2_grpc.py b/ydb/_grpc/v6/ydb_scripting_v1_pb2_grpc.py index a44024151..4a4b7cb36 100644 --- a/ydb/_grpc/v6/ydb_scripting_v1_pb2_grpc.py +++ b/ydb/_grpc/v6/ydb_scripting_v1_pb2_grpc.py @@ -1,9 +1,28 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc +import warnings from ydb._grpc.v6.protos import ydb_scripting_pb2 as protos_dot_ydb__scripting__pb2 +GRPC_GENERATED_VERSION = '1.72.1' +GRPC_VERSION = grpc.__version__ +_version_not_supported = False + +try: + from grpc._utilities import first_version_is_lower + _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) +except ImportError: + _version_not_supported = True + +if _version_not_supported: + raise RuntimeError( + f'The grpc package installed is at version {GRPC_VERSION},' + + f' but the generated code in ydb_scripting_v1_pb2_grpc.py depends on' + + f' grpcio>={GRPC_GENERATED_VERSION}.' + + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' + + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' + ) class ScriptingServiceStub(object): diff --git a/ydb/_grpc/v6/ydb_table_v1_pb2_grpc.py b/ydb/_grpc/v6/ydb_table_v1_pb2_grpc.py index 781317d99..84c27faa6 100644 --- a/ydb/_grpc/v6/ydb_table_v1_pb2_grpc.py +++ b/ydb/_grpc/v6/ydb_table_v1_pb2_grpc.py @@ -1,9 +1,28 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc +import warnings from ydb._grpc.v6.protos import ydb_table_pb2 as protos_dot_ydb__table__pb2 +GRPC_GENERATED_VERSION = '1.72.1' +GRPC_VERSION = grpc.__version__ +_version_not_supported = False + +try: + from grpc._utilities import first_version_is_lower + _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) +except ImportError: + _version_not_supported = True + +if _version_not_supported: + raise RuntimeError( + f'The grpc package installed is at version {GRPC_VERSION},' + + f' but the generated code in ydb_table_v1_pb2_grpc.py depends on' + + f' grpcio>={GRPC_GENERATED_VERSION}.' + + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' + + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' + ) class TableServiceStub(object): diff --git a/ydb/_grpc/v6/ydb_topic_v1_pb2_grpc.py b/ydb/_grpc/v6/ydb_topic_v1_pb2_grpc.py index b5fb1106c..446b677c7 100644 --- a/ydb/_grpc/v6/ydb_topic_v1_pb2_grpc.py +++ b/ydb/_grpc/v6/ydb_topic_v1_pb2_grpc.py @@ -1,9 +1,28 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc +import warnings from ydb._grpc.v6.protos import ydb_topic_pb2 as protos_dot_ydb__topic__pb2 +GRPC_GENERATED_VERSION = '1.72.1' +GRPC_VERSION = grpc.__version__ +_version_not_supported = False + +try: + from grpc._utilities import first_version_is_lower + _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) +except ImportError: + _version_not_supported = True + +if _version_not_supported: + raise RuntimeError( + f'The grpc package installed is at version {GRPC_VERSION},' + + f' but the generated code in ydb_topic_v1_pb2_grpc.py depends on' + + f' grpcio>={GRPC_GENERATED_VERSION}.' + + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' + + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' + ) class TopicServiceStub(object):