query-cache-protobuf 2.11.0__tar.gz → 2.13.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {query_cache_protobuf-2.11.0 → query_cache_protobuf-2.13.0}/PKG-INFO +2 -2
- {query_cache_protobuf-2.11.0 → query_cache_protobuf-2.13.0}/pyproject.toml +1 -1
- {query_cache_protobuf-2.11.0 → query_cache_protobuf-2.13.0}/src/query_cache_protobuf/__init__.py +3 -3
- query_cache_protobuf-2.13.0/src/query_cache_protobuf/_proto5/query_cache_protobuf/query_cache/services/sql_analysis_service_pb2.py +44 -0
- query_cache_protobuf-2.13.0/src/query_cache_protobuf/_proto5/query_cache_protobuf/query_cache/services/sql_analysis_service_pb2_grpc.py +97 -0
- query_cache_protobuf-2.13.0/src/query_cache_protobuf/query_cache/services/sql_analysis_service_pb2.py +44 -0
- query_cache_protobuf-2.13.0/src/query_cache_protobuf/query_cache/services/sql_analysis_service_pb2.pyi +95 -0
- query_cache_protobuf-2.13.0/src/query_cache_protobuf/query_cache/services/sql_analysis_service_pb2_grpc.py +97 -0
- query_cache_protobuf-2.11.0/src/query_cache_protobuf/_proto4/query_cache_protobuf/query_cache/services/client_telemetry_service_pb2.py +0 -55
- query_cache_protobuf-2.11.0/src/query_cache_protobuf/_proto4/query_cache_protobuf/query_cache/services/client_telemetry_service_pb2_grpc.py +0 -99
- query_cache_protobuf-2.11.0/src/query_cache_protobuf/_proto4/query_cache_protobuf/query_cache/services/client_validation_service_pb2.py +0 -30
- query_cache_protobuf-2.11.0/src/query_cache_protobuf/_proto4/query_cache_protobuf/query_cache/services/client_validation_service_pb2_grpc.py +0 -66
- query_cache_protobuf-2.11.0/src/query_cache_protobuf/_proto4/query_cache_protobuf/query_cache/services/clone_service_pb2.py +0 -60
- query_cache_protobuf-2.11.0/src/query_cache_protobuf/_proto4/query_cache_protobuf/query_cache/services/clone_service_pb2_grpc.py +0 -66
- query_cache_protobuf-2.11.0/src/query_cache_protobuf/_proto4/query_cache_protobuf/query_cache/services/execution_service_pb2.py +0 -76
- query_cache_protobuf-2.11.0/src/query_cache_protobuf/_proto4/query_cache_protobuf/query_cache/services/execution_service_pb2_grpc.py +0 -165
- query_cache_protobuf-2.11.0/src/query_cache_protobuf/_proto4/query_cache_protobuf/query_cache/services/explain_service_pb2.py +0 -45
- query_cache_protobuf-2.11.0/src/query_cache_protobuf/_proto4/query_cache_protobuf/query_cache/services/explain_service_pb2_grpc.py +0 -99
- query_cache_protobuf-2.11.0/src/query_cache_protobuf/_proto4/query_cache_protobuf/query_cache/services/health_service_pb2.py +0 -32
- query_cache_protobuf-2.11.0/src/query_cache_protobuf/_proto4/query_cache_protobuf/query_cache/services/health_service_pb2_grpc.py +0 -99
- query_cache_protobuf-2.11.0/src/query_cache_protobuf/_proto4/query_cache_protobuf/query_cache/services/selector_service_pb2.py +0 -34
- query_cache_protobuf-2.11.0/src/query_cache_protobuf/_proto4/query_cache_protobuf/query_cache/services/selector_service_pb2_grpc.py +0 -66
- query_cache_protobuf-2.11.0/src/query_cache_protobuf/_proto4/query_cache_protobuf/query_cache/services/sql_service_pb2.py +0 -71
- query_cache_protobuf-2.11.0/src/query_cache_protobuf/_proto4/query_cache_protobuf/query_cache/services/sql_service_pb2_grpc.py +0 -132
- query_cache_protobuf-2.11.0/src/query_cache_protobuf/_proto4/query_cache_protobuf/query_cache/shared_pb2.py +0 -54
- query_cache_protobuf-2.11.0/src/query_cache_protobuf/_proto4/query_cache_protobuf/query_cache/shared_pb2_grpc.py +0 -4
- query_cache_protobuf-2.11.0/src/query_cache_protobuf/_proto4/query_cache_protobuf/query_cache/struct_pb2.py +0 -36
- query_cache_protobuf-2.11.0/src/query_cache_protobuf/_proto4/query_cache_protobuf/query_cache/struct_pb2_grpc.py +0 -4
- query_cache_protobuf-2.11.0/src/query_cache_protobuf/_proto5/query_cache_protobuf/query_cache/__init__.py +0 -0
- query_cache_protobuf-2.11.0/src/query_cache_protobuf/_proto5/query_cache_protobuf/query_cache/services/__init__.py +0 -0
- query_cache_protobuf-2.11.0/src/query_cache_protobuf/query_cache/__init__.py +0 -0
- query_cache_protobuf-2.11.0/src/query_cache_protobuf/query_cache/services/__init__.py +0 -0
- {query_cache_protobuf-2.11.0 → query_cache_protobuf-2.13.0}/.gitignore +0 -0
- {query_cache_protobuf-2.11.0/src/query_cache_protobuf/_proto4 → query_cache_protobuf-2.13.0/src/query_cache_protobuf/_proto5}/__init__.py +0 -0
- {query_cache_protobuf-2.11.0/src/query_cache_protobuf/_proto4 → query_cache_protobuf-2.13.0/src/query_cache_protobuf/_proto5}/query_cache_protobuf/__init__.py +0 -0
- {query_cache_protobuf-2.11.0/src/query_cache_protobuf/_proto4 → query_cache_protobuf-2.13.0/src/query_cache_protobuf/_proto5}/query_cache_protobuf/query_cache/__init__.py +0 -0
- {query_cache_protobuf-2.11.0/src/query_cache_protobuf/_proto4 → query_cache_protobuf-2.13.0/src/query_cache_protobuf/_proto5}/query_cache_protobuf/query_cache/services/__init__.py +0 -0
- {query_cache_protobuf-2.11.0 → query_cache_protobuf-2.13.0}/src/query_cache_protobuf/_proto5/query_cache_protobuf/query_cache/services/client_telemetry_service_pb2.py +0 -0
- {query_cache_protobuf-2.11.0 → query_cache_protobuf-2.13.0}/src/query_cache_protobuf/_proto5/query_cache_protobuf/query_cache/services/client_telemetry_service_pb2_grpc.py +0 -0
- {query_cache_protobuf-2.11.0 → query_cache_protobuf-2.13.0}/src/query_cache_protobuf/_proto5/query_cache_protobuf/query_cache/services/client_validation_service_pb2.py +0 -0
- {query_cache_protobuf-2.11.0 → query_cache_protobuf-2.13.0}/src/query_cache_protobuf/_proto5/query_cache_protobuf/query_cache/services/client_validation_service_pb2_grpc.py +0 -0
- {query_cache_protobuf-2.11.0 → query_cache_protobuf-2.13.0}/src/query_cache_protobuf/_proto5/query_cache_protobuf/query_cache/services/clone_service_pb2.py +0 -0
- {query_cache_protobuf-2.11.0 → query_cache_protobuf-2.13.0}/src/query_cache_protobuf/_proto5/query_cache_protobuf/query_cache/services/clone_service_pb2_grpc.py +0 -0
- {query_cache_protobuf-2.11.0 → query_cache_protobuf-2.13.0}/src/query_cache_protobuf/_proto5/query_cache_protobuf/query_cache/services/execution_service_pb2.py +0 -0
- {query_cache_protobuf-2.11.0 → query_cache_protobuf-2.13.0}/src/query_cache_protobuf/_proto5/query_cache_protobuf/query_cache/services/execution_service_pb2_grpc.py +0 -0
- {query_cache_protobuf-2.11.0 → query_cache_protobuf-2.13.0}/src/query_cache_protobuf/_proto5/query_cache_protobuf/query_cache/services/explain_service_pb2.py +0 -0
- {query_cache_protobuf-2.11.0 → query_cache_protobuf-2.13.0}/src/query_cache_protobuf/_proto5/query_cache_protobuf/query_cache/services/explain_service_pb2_grpc.py +0 -0
- {query_cache_protobuf-2.11.0 → query_cache_protobuf-2.13.0}/src/query_cache_protobuf/_proto5/query_cache_protobuf/query_cache/services/health_service_pb2.py +0 -0
- {query_cache_protobuf-2.11.0 → query_cache_protobuf-2.13.0}/src/query_cache_protobuf/_proto5/query_cache_protobuf/query_cache/services/health_service_pb2_grpc.py +0 -0
- {query_cache_protobuf-2.11.0 → query_cache_protobuf-2.13.0}/src/query_cache_protobuf/_proto5/query_cache_protobuf/query_cache/services/selector_service_pb2.py +0 -0
- {query_cache_protobuf-2.11.0 → query_cache_protobuf-2.13.0}/src/query_cache_protobuf/_proto5/query_cache_protobuf/query_cache/services/selector_service_pb2_grpc.py +0 -0
- {query_cache_protobuf-2.11.0 → query_cache_protobuf-2.13.0}/src/query_cache_protobuf/_proto5/query_cache_protobuf/query_cache/services/sql_service_pb2.py +0 -0
- {query_cache_protobuf-2.11.0 → query_cache_protobuf-2.13.0}/src/query_cache_protobuf/_proto5/query_cache_protobuf/query_cache/services/sql_service_pb2_grpc.py +0 -0
- {query_cache_protobuf-2.11.0 → query_cache_protobuf-2.13.0}/src/query_cache_protobuf/_proto5/query_cache_protobuf/query_cache/shared_pb2.py +0 -0
- {query_cache_protobuf-2.11.0 → query_cache_protobuf-2.13.0}/src/query_cache_protobuf/_proto5/query_cache_protobuf/query_cache/shared_pb2_grpc.py +0 -0
- {query_cache_protobuf-2.11.0 → query_cache_protobuf-2.13.0}/src/query_cache_protobuf/_proto5/query_cache_protobuf/query_cache/struct_pb2.py +0 -0
- {query_cache_protobuf-2.11.0 → query_cache_protobuf-2.13.0}/src/query_cache_protobuf/_proto5/query_cache_protobuf/query_cache/struct_pb2_grpc.py +0 -0
- {query_cache_protobuf-2.11.0/src/query_cache_protobuf/_proto5 → query_cache_protobuf-2.13.0/src/query_cache_protobuf/query_cache}/__init__.py +0 -0
- {query_cache_protobuf-2.11.0/src/query_cache_protobuf/_proto5/query_cache_protobuf → query_cache_protobuf-2.13.0/src/query_cache_protobuf/query_cache/services}/__init__.py +0 -0
- {query_cache_protobuf-2.11.0 → query_cache_protobuf-2.13.0}/src/query_cache_protobuf/query_cache/services/client_telemetry_service_pb2.py +0 -0
- {query_cache_protobuf-2.11.0 → query_cache_protobuf-2.13.0}/src/query_cache_protobuf/query_cache/services/client_telemetry_service_pb2.pyi +0 -0
- {query_cache_protobuf-2.11.0 → query_cache_protobuf-2.13.0}/src/query_cache_protobuf/query_cache/services/client_telemetry_service_pb2_grpc.py +0 -0
- {query_cache_protobuf-2.11.0 → query_cache_protobuf-2.13.0}/src/query_cache_protobuf/query_cache/services/client_validation_service_pb2.py +0 -0
- {query_cache_protobuf-2.11.0 → query_cache_protobuf-2.13.0}/src/query_cache_protobuf/query_cache/services/client_validation_service_pb2.pyi +0 -0
- {query_cache_protobuf-2.11.0 → query_cache_protobuf-2.13.0}/src/query_cache_protobuf/query_cache/services/client_validation_service_pb2_grpc.py +0 -0
- {query_cache_protobuf-2.11.0 → query_cache_protobuf-2.13.0}/src/query_cache_protobuf/query_cache/services/clone_service_pb2.py +0 -0
- {query_cache_protobuf-2.11.0 → query_cache_protobuf-2.13.0}/src/query_cache_protobuf/query_cache/services/clone_service_pb2.pyi +0 -0
- {query_cache_protobuf-2.11.0 → query_cache_protobuf-2.13.0}/src/query_cache_protobuf/query_cache/services/clone_service_pb2_grpc.py +0 -0
- {query_cache_protobuf-2.11.0 → query_cache_protobuf-2.13.0}/src/query_cache_protobuf/query_cache/services/execution_service_pb2.py +0 -0
- {query_cache_protobuf-2.11.0 → query_cache_protobuf-2.13.0}/src/query_cache_protobuf/query_cache/services/execution_service_pb2.pyi +0 -0
- {query_cache_protobuf-2.11.0 → query_cache_protobuf-2.13.0}/src/query_cache_protobuf/query_cache/services/execution_service_pb2_grpc.py +0 -0
- {query_cache_protobuf-2.11.0 → query_cache_protobuf-2.13.0}/src/query_cache_protobuf/query_cache/services/explain_service_pb2.py +0 -0
- {query_cache_protobuf-2.11.0 → query_cache_protobuf-2.13.0}/src/query_cache_protobuf/query_cache/services/explain_service_pb2.pyi +0 -0
- {query_cache_protobuf-2.11.0 → query_cache_protobuf-2.13.0}/src/query_cache_protobuf/query_cache/services/explain_service_pb2_grpc.py +0 -0
- {query_cache_protobuf-2.11.0 → query_cache_protobuf-2.13.0}/src/query_cache_protobuf/query_cache/services/health_service_pb2.py +0 -0
- {query_cache_protobuf-2.11.0 → query_cache_protobuf-2.13.0}/src/query_cache_protobuf/query_cache/services/health_service_pb2.pyi +0 -0
- {query_cache_protobuf-2.11.0 → query_cache_protobuf-2.13.0}/src/query_cache_protobuf/query_cache/services/health_service_pb2_grpc.py +0 -0
- {query_cache_protobuf-2.11.0 → query_cache_protobuf-2.13.0}/src/query_cache_protobuf/query_cache/services/selector_service_pb2.py +0 -0
- {query_cache_protobuf-2.11.0 → query_cache_protobuf-2.13.0}/src/query_cache_protobuf/query_cache/services/selector_service_pb2.pyi +0 -0
- {query_cache_protobuf-2.11.0 → query_cache_protobuf-2.13.0}/src/query_cache_protobuf/query_cache/services/selector_service_pb2_grpc.py +0 -0
- {query_cache_protobuf-2.11.0 → query_cache_protobuf-2.13.0}/src/query_cache_protobuf/query_cache/services/sql_service_pb2.py +0 -0
- {query_cache_protobuf-2.11.0 → query_cache_protobuf-2.13.0}/src/query_cache_protobuf/query_cache/services/sql_service_pb2.pyi +0 -0
- {query_cache_protobuf-2.11.0 → query_cache_protobuf-2.13.0}/src/query_cache_protobuf/query_cache/services/sql_service_pb2_grpc.py +0 -0
- {query_cache_protobuf-2.11.0 → query_cache_protobuf-2.13.0}/src/query_cache_protobuf/query_cache/shared_pb2.py +0 -0
- {query_cache_protobuf-2.11.0 → query_cache_protobuf-2.13.0}/src/query_cache_protobuf/query_cache/shared_pb2.pyi +0 -0
- {query_cache_protobuf-2.11.0 → query_cache_protobuf-2.13.0}/src/query_cache_protobuf/query_cache/shared_pb2_grpc.py +0 -0
- {query_cache_protobuf-2.11.0 → query_cache_protobuf-2.13.0}/src/query_cache_protobuf/query_cache/struct_pb2.py +0 -0
- {query_cache_protobuf-2.11.0 → query_cache_protobuf-2.13.0}/src/query_cache_protobuf/query_cache/struct_pb2.pyi +0 -0
- {query_cache_protobuf-2.11.0 → query_cache_protobuf-2.13.0}/src/query_cache_protobuf/query_cache/struct_pb2_grpc.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: query-cache-protobuf
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.13.0
|
|
4
4
|
Summary: Generated protobuf code for Query Cache
|
|
5
5
|
License:
|
|
6
6
|
Apache License
|
|
@@ -206,4 +206,4 @@ License:
|
|
|
206
206
|
limitations under the License.
|
|
207
207
|
Requires-Python: >=3.9
|
|
208
208
|
Requires-Dist: packaging
|
|
209
|
-
Requires-Dist: protobuf>=
|
|
209
|
+
Requires-Dist: protobuf>=5.0.0
|
{query_cache_protobuf-2.11.0 → query_cache_protobuf-2.13.0}/src/query_cache_protobuf/__init__.py
RENAMED
|
@@ -26,16 +26,16 @@ def _import_proto() -> None:
|
|
|
26
26
|
prefix=f"{__name__}._proto{PROTOBUF_MAJOR_VERSION}.query_cache_protobuf.",
|
|
27
27
|
):
|
|
28
28
|
module = importlib.import_module(name)
|
|
29
|
-
# Remap e.g. query_cache_protobuf.
|
|
29
|
+
# Remap e.g. query_cache_protobuf._proto5.query_cache_protobuf.query_cache.shared_pb2
|
|
30
30
|
# -> query_cache_protobuf.query_cache.shared_pb2
|
|
31
31
|
suffix = name.split(f"._proto{PROTOBUF_MAJOR_VERSION}.query_cache_protobuf.", 1)[1]
|
|
32
32
|
sys.modules[f"{__name__}.{suffix}"] = module
|
|
33
33
|
|
|
34
34
|
|
|
35
|
-
if PROTOBUF_MAJOR_VERSION
|
|
35
|
+
if PROTOBUF_MAJOR_VERSION == 5:
|
|
36
36
|
_import_proto()
|
|
37
37
|
elif PROTOBUF_MAJOR_VERSION != 6:
|
|
38
38
|
raise ImportError(
|
|
39
39
|
f"Unsupported protobuf major version: {PROTOBUF_MAJOR_VERSION}. "
|
|
40
|
-
"Supported major versions are
|
|
40
|
+
"Supported major versions are 5 and 6."
|
|
41
41
|
)
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
|
+
# source: query_cache_protobuf/query_cache/services/sql_analysis_service.proto
|
|
5
|
+
# Protobuf Python Version: 5.29.0
|
|
6
|
+
"""Generated protocol buffer code."""
|
|
7
|
+
from google.protobuf import descriptor as _descriptor
|
|
8
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
9
|
+
from google.protobuf import runtime_version as _runtime_version
|
|
10
|
+
from google.protobuf import symbol_database as _symbol_database
|
|
11
|
+
from google.protobuf.internal import builder as _builder
|
|
12
|
+
_runtime_version.ValidateProtobufRuntimeVersion(
|
|
13
|
+
_runtime_version.Domain.PUBLIC,
|
|
14
|
+
5,
|
|
15
|
+
29,
|
|
16
|
+
0,
|
|
17
|
+
'',
|
|
18
|
+
'query_cache_protobuf/query_cache/services/sql_analysis_service.proto'
|
|
19
|
+
)
|
|
20
|
+
# @@protoc_insertion_point(imports)
|
|
21
|
+
|
|
22
|
+
_sym_db = _symbol_database.Default()
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\nDquery_cache_protobuf/query_cache/services/sql_analysis_service.proto\x12\x18\x63om.fivetran.query_cache\">\n\x1d\x45xtractTableReferencesRequest\x12\x0f\n\x07\x64ialect\x18\x01 \x01(\t\x12\x0c\n\x04sqls\x18\x02 \x03(\t\",\n\x0eTableReference\x12\r\n\x05parts\x18\x01 \x03(\t\x12\x0b\n\x03\x66qn\x18\x02 \x01(\t\"b\n\x12SqlTableReferences\x12\x0e\n\x06parsed\x18\x01 \x01(\x08\x12<\n\nreferences\x18\x02 \x03(\x0b\x32(.com.fivetran.query_cache.TableReference\"_\n\x1e\x45xtractTableReferencesResponse\x12=\n\x07results\x18\x01 \x03(\x0b\x32,.com.fivetran.query_cache.SqlTableReferences2\x9b\x01\n\x0bSQLAnalysis\x12\x8b\x01\n\x16\x45xtractTableReferences\x12\x37.com.fivetran.query_cache.ExtractTableReferencesRequest\x1a\x38.com.fivetran.query_cache.ExtractTableReferencesResponseb\x06proto3')
|
|
28
|
+
|
|
29
|
+
_globals = globals()
|
|
30
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
31
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'query_cache_protobuf.query_cache.services.sql_analysis_service_pb2', _globals)
|
|
32
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
|
33
|
+
DESCRIPTOR._loaded_options = None
|
|
34
|
+
_globals['_EXTRACTTABLEREFERENCESREQUEST']._serialized_start=98
|
|
35
|
+
_globals['_EXTRACTTABLEREFERENCESREQUEST']._serialized_end=160
|
|
36
|
+
_globals['_TABLEREFERENCE']._serialized_start=162
|
|
37
|
+
_globals['_TABLEREFERENCE']._serialized_end=206
|
|
38
|
+
_globals['_SQLTABLEREFERENCES']._serialized_start=208
|
|
39
|
+
_globals['_SQLTABLEREFERENCES']._serialized_end=306
|
|
40
|
+
_globals['_EXTRACTTABLEREFERENCESRESPONSE']._serialized_start=308
|
|
41
|
+
_globals['_EXTRACTTABLEREFERENCESRESPONSE']._serialized_end=403
|
|
42
|
+
_globals['_SQLANALYSIS']._serialized_start=406
|
|
43
|
+
_globals['_SQLANALYSIS']._serialized_end=561
|
|
44
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
|
|
2
|
+
"""Client and server classes corresponding to protobuf-defined services."""
|
|
3
|
+
import grpc
|
|
4
|
+
import warnings
|
|
5
|
+
|
|
6
|
+
from query_cache_protobuf.query_cache.services import sql_analysis_service_pb2 as query__cache__protobuf_dot_query__cache_dot_services_dot_sql__analysis__service__pb2
|
|
7
|
+
|
|
8
|
+
GRPC_GENERATED_VERSION = '1.71.2'
|
|
9
|
+
GRPC_VERSION = grpc.__version__
|
|
10
|
+
_version_not_supported = False
|
|
11
|
+
|
|
12
|
+
try:
|
|
13
|
+
from grpc._utilities import first_version_is_lower
|
|
14
|
+
_version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION)
|
|
15
|
+
except ImportError:
|
|
16
|
+
_version_not_supported = True
|
|
17
|
+
|
|
18
|
+
if _version_not_supported:
|
|
19
|
+
raise RuntimeError(
|
|
20
|
+
f'The grpc package installed is at version {GRPC_VERSION},'
|
|
21
|
+
+ f' but the generated code in query_cache_protobuf/query_cache/services/sql_analysis_service_pb2_grpc.py depends on'
|
|
22
|
+
+ f' grpcio>={GRPC_GENERATED_VERSION}.'
|
|
23
|
+
+ f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}'
|
|
24
|
+
+ f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.'
|
|
25
|
+
)
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
class SQLAnalysisStub(object):
|
|
29
|
+
"""Missing associated documentation comment in .proto file."""
|
|
30
|
+
|
|
31
|
+
def __init__(self, channel):
|
|
32
|
+
"""Constructor.
|
|
33
|
+
|
|
34
|
+
Args:
|
|
35
|
+
channel: A grpc.Channel.
|
|
36
|
+
"""
|
|
37
|
+
self.ExtractTableReferences = channel.unary_unary(
|
|
38
|
+
'/com.fivetran.query_cache.SQLAnalysis/ExtractTableReferences',
|
|
39
|
+
request_serializer=query__cache__protobuf_dot_query__cache_dot_services_dot_sql__analysis__service__pb2.ExtractTableReferencesRequest.SerializeToString,
|
|
40
|
+
response_deserializer=query__cache__protobuf_dot_query__cache_dot_services_dot_sql__analysis__service__pb2.ExtractTableReferencesResponse.FromString,
|
|
41
|
+
_registered_method=True)
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
class SQLAnalysisServicer(object):
|
|
45
|
+
"""Missing associated documentation comment in .proto file."""
|
|
46
|
+
|
|
47
|
+
def ExtractTableReferences(self, request, context):
|
|
48
|
+
"""Missing associated documentation comment in .proto file."""
|
|
49
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
50
|
+
context.set_details('Method not implemented!')
|
|
51
|
+
raise NotImplementedError('Method not implemented!')
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
def add_SQLAnalysisServicer_to_server(servicer, server):
|
|
55
|
+
rpc_method_handlers = {
|
|
56
|
+
'ExtractTableReferences': grpc.unary_unary_rpc_method_handler(
|
|
57
|
+
servicer.ExtractTableReferences,
|
|
58
|
+
request_deserializer=query__cache__protobuf_dot_query__cache_dot_services_dot_sql__analysis__service__pb2.ExtractTableReferencesRequest.FromString,
|
|
59
|
+
response_serializer=query__cache__protobuf_dot_query__cache_dot_services_dot_sql__analysis__service__pb2.ExtractTableReferencesResponse.SerializeToString,
|
|
60
|
+
),
|
|
61
|
+
}
|
|
62
|
+
generic_handler = grpc.method_handlers_generic_handler(
|
|
63
|
+
'com.fivetran.query_cache.SQLAnalysis', rpc_method_handlers)
|
|
64
|
+
server.add_generic_rpc_handlers((generic_handler,))
|
|
65
|
+
server.add_registered_method_handlers('com.fivetran.query_cache.SQLAnalysis', rpc_method_handlers)
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
# This class is part of an EXPERIMENTAL API.
|
|
69
|
+
class SQLAnalysis(object):
|
|
70
|
+
"""Missing associated documentation comment in .proto file."""
|
|
71
|
+
|
|
72
|
+
@staticmethod
|
|
73
|
+
def ExtractTableReferences(request,
|
|
74
|
+
target,
|
|
75
|
+
options=(),
|
|
76
|
+
channel_credentials=None,
|
|
77
|
+
call_credentials=None,
|
|
78
|
+
insecure=False,
|
|
79
|
+
compression=None,
|
|
80
|
+
wait_for_ready=None,
|
|
81
|
+
timeout=None,
|
|
82
|
+
metadata=None):
|
|
83
|
+
return grpc.experimental.unary_unary(
|
|
84
|
+
request,
|
|
85
|
+
target,
|
|
86
|
+
'/com.fivetran.query_cache.SQLAnalysis/ExtractTableReferences',
|
|
87
|
+
query__cache__protobuf_dot_query__cache_dot_services_dot_sql__analysis__service__pb2.ExtractTableReferencesRequest.SerializeToString,
|
|
88
|
+
query__cache__protobuf_dot_query__cache_dot_services_dot_sql__analysis__service__pb2.ExtractTableReferencesResponse.FromString,
|
|
89
|
+
options,
|
|
90
|
+
channel_credentials,
|
|
91
|
+
insecure,
|
|
92
|
+
call_credentials,
|
|
93
|
+
compression,
|
|
94
|
+
wait_for_ready,
|
|
95
|
+
timeout,
|
|
96
|
+
metadata,
|
|
97
|
+
_registered_method=True)
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
|
+
# source: query_cache_protobuf/query_cache/services/sql_analysis_service.proto
|
|
5
|
+
# Protobuf Python Version: 6.31.1
|
|
6
|
+
"""Generated protocol buffer code."""
|
|
7
|
+
from google.protobuf import descriptor as _descriptor
|
|
8
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
9
|
+
from google.protobuf import runtime_version as _runtime_version
|
|
10
|
+
from google.protobuf import symbol_database as _symbol_database
|
|
11
|
+
from google.protobuf.internal import builder as _builder
|
|
12
|
+
_runtime_version.ValidateProtobufRuntimeVersion(
|
|
13
|
+
_runtime_version.Domain.PUBLIC,
|
|
14
|
+
6,
|
|
15
|
+
31,
|
|
16
|
+
1,
|
|
17
|
+
'',
|
|
18
|
+
'query_cache_protobuf/query_cache/services/sql_analysis_service.proto'
|
|
19
|
+
)
|
|
20
|
+
# @@protoc_insertion_point(imports)
|
|
21
|
+
|
|
22
|
+
_sym_db = _symbol_database.Default()
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\nDquery_cache_protobuf/query_cache/services/sql_analysis_service.proto\x12\x18\x63om.fivetran.query_cache\">\n\x1d\x45xtractTableReferencesRequest\x12\x0f\n\x07\x64ialect\x18\x01 \x01(\t\x12\x0c\n\x04sqls\x18\x02 \x03(\t\",\n\x0eTableReference\x12\r\n\x05parts\x18\x01 \x03(\t\x12\x0b\n\x03\x66qn\x18\x02 \x01(\t\"b\n\x12SqlTableReferences\x12\x0e\n\x06parsed\x18\x01 \x01(\x08\x12<\n\nreferences\x18\x02 \x03(\x0b\x32(.com.fivetran.query_cache.TableReference\"_\n\x1e\x45xtractTableReferencesResponse\x12=\n\x07results\x18\x01 \x03(\x0b\x32,.com.fivetran.query_cache.SqlTableReferences2\x9b\x01\n\x0bSQLAnalysis\x12\x8b\x01\n\x16\x45xtractTableReferences\x12\x37.com.fivetran.query_cache.ExtractTableReferencesRequest\x1a\x38.com.fivetran.query_cache.ExtractTableReferencesResponseb\x06proto3')
|
|
28
|
+
|
|
29
|
+
_globals = globals()
|
|
30
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
31
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'query_cache_protobuf.query_cache.services.sql_analysis_service_pb2', _globals)
|
|
32
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
|
33
|
+
DESCRIPTOR._loaded_options = None
|
|
34
|
+
_globals['_EXTRACTTABLEREFERENCESREQUEST']._serialized_start=98
|
|
35
|
+
_globals['_EXTRACTTABLEREFERENCESREQUEST']._serialized_end=160
|
|
36
|
+
_globals['_TABLEREFERENCE']._serialized_start=162
|
|
37
|
+
_globals['_TABLEREFERENCE']._serialized_end=206
|
|
38
|
+
_globals['_SQLTABLEREFERENCES']._serialized_start=208
|
|
39
|
+
_globals['_SQLTABLEREFERENCES']._serialized_end=306
|
|
40
|
+
_globals['_EXTRACTTABLEREFERENCESRESPONSE']._serialized_start=308
|
|
41
|
+
_globals['_EXTRACTTABLEREFERENCESRESPONSE']._serialized_end=403
|
|
42
|
+
_globals['_SQLANALYSIS']._serialized_start=406
|
|
43
|
+
_globals['_SQLANALYSIS']._serialized_end=561
|
|
44
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
"""
|
|
2
|
+
@generated by mypy-protobuf. Do not edit manually!
|
|
3
|
+
isort:skip_file
|
|
4
|
+
"""
|
|
5
|
+
|
|
6
|
+
import builtins
|
|
7
|
+
import collections.abc
|
|
8
|
+
import google.protobuf.descriptor
|
|
9
|
+
import google.protobuf.internal.containers
|
|
10
|
+
import google.protobuf.message
|
|
11
|
+
import typing
|
|
12
|
+
|
|
13
|
+
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
|
|
14
|
+
|
|
15
|
+
@typing.final
|
|
16
|
+
class ExtractTableReferencesRequest(google.protobuf.message.Message):
|
|
17
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
18
|
+
|
|
19
|
+
DIALECT_FIELD_NUMBER: builtins.int
|
|
20
|
+
SQLS_FIELD_NUMBER: builtins.int
|
|
21
|
+
dialect: builtins.str
|
|
22
|
+
"""sqlglot dialect used to parse the SQL"""
|
|
23
|
+
@property
|
|
24
|
+
def sqls(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]:
|
|
25
|
+
"""Rendered SQL strings; each may hold several statements"""
|
|
26
|
+
|
|
27
|
+
def __init__(
|
|
28
|
+
self,
|
|
29
|
+
*,
|
|
30
|
+
dialect: builtins.str = ...,
|
|
31
|
+
sqls: collections.abc.Iterable[builtins.str] | None = ...,
|
|
32
|
+
) -> None: ...
|
|
33
|
+
def ClearField(self, field_name: typing.Literal["dialect", b"dialect", "sqls", b"sqls"]) -> None: ...
|
|
34
|
+
|
|
35
|
+
global___ExtractTableReferencesRequest = ExtractTableReferencesRequest
|
|
36
|
+
|
|
37
|
+
@typing.final
|
|
38
|
+
class TableReference(google.protobuf.message.Message):
|
|
39
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
40
|
+
|
|
41
|
+
PARTS_FIELD_NUMBER: builtins.int
|
|
42
|
+
FQN_FIELD_NUMBER: builtins.int
|
|
43
|
+
fqn: builtins.str
|
|
44
|
+
"""Fully qualified, quoted and normalized name, e.g. "db"."schema"."table" """
|
|
45
|
+
@property
|
|
46
|
+
def parts(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]:
|
|
47
|
+
"""Normalized identifier names, e.g. [db, schema, table]"""
|
|
48
|
+
|
|
49
|
+
def __init__(
|
|
50
|
+
self,
|
|
51
|
+
*,
|
|
52
|
+
parts: collections.abc.Iterable[builtins.str] | None = ...,
|
|
53
|
+
fqn: builtins.str = ...,
|
|
54
|
+
) -> None: ...
|
|
55
|
+
def ClearField(self, field_name: typing.Literal["fqn", b"fqn", "parts", b"parts"]) -> None: ...
|
|
56
|
+
|
|
57
|
+
global___TableReference = TableReference
|
|
58
|
+
|
|
59
|
+
@typing.final
|
|
60
|
+
class SqlTableReferences(google.protobuf.message.Message):
|
|
61
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
62
|
+
|
|
63
|
+
PARSED_FIELD_NUMBER: builtins.int
|
|
64
|
+
REFERENCES_FIELD_NUMBER: builtins.int
|
|
65
|
+
parsed: builtins.bool
|
|
66
|
+
"""False if the SQL could not be parsed"""
|
|
67
|
+
@property
|
|
68
|
+
def references(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___TableReference]: ...
|
|
69
|
+
def __init__(
|
|
70
|
+
self,
|
|
71
|
+
*,
|
|
72
|
+
parsed: builtins.bool = ...,
|
|
73
|
+
references: collections.abc.Iterable[global___TableReference] | None = ...,
|
|
74
|
+
) -> None: ...
|
|
75
|
+
def ClearField(self, field_name: typing.Literal["parsed", b"parsed", "references", b"references"]) -> None: ...
|
|
76
|
+
|
|
77
|
+
global___SqlTableReferences = SqlTableReferences
|
|
78
|
+
|
|
79
|
+
@typing.final
|
|
80
|
+
class ExtractTableReferencesResponse(google.protobuf.message.Message):
|
|
81
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
82
|
+
|
|
83
|
+
RESULTS_FIELD_NUMBER: builtins.int
|
|
84
|
+
@property
|
|
85
|
+
def results(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___SqlTableReferences]:
|
|
86
|
+
"""One entry per request SQL, in request order"""
|
|
87
|
+
|
|
88
|
+
def __init__(
|
|
89
|
+
self,
|
|
90
|
+
*,
|
|
91
|
+
results: collections.abc.Iterable[global___SqlTableReferences] | None = ...,
|
|
92
|
+
) -> None: ...
|
|
93
|
+
def ClearField(self, field_name: typing.Literal["results", b"results"]) -> None: ...
|
|
94
|
+
|
|
95
|
+
global___ExtractTableReferencesResponse = ExtractTableReferencesResponse
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
|
|
2
|
+
"""Client and server classes corresponding to protobuf-defined services."""
|
|
3
|
+
import grpc
|
|
4
|
+
import warnings
|
|
5
|
+
|
|
6
|
+
from query_cache_protobuf.query_cache.services import sql_analysis_service_pb2 as query__cache__protobuf_dot_query__cache_dot_services_dot_sql__analysis__service__pb2
|
|
7
|
+
|
|
8
|
+
GRPC_GENERATED_VERSION = '1.76.0'
|
|
9
|
+
GRPC_VERSION = grpc.__version__
|
|
10
|
+
_version_not_supported = False
|
|
11
|
+
|
|
12
|
+
try:
|
|
13
|
+
from grpc._utilities import first_version_is_lower
|
|
14
|
+
_version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION)
|
|
15
|
+
except ImportError:
|
|
16
|
+
_version_not_supported = True
|
|
17
|
+
|
|
18
|
+
if _version_not_supported:
|
|
19
|
+
raise RuntimeError(
|
|
20
|
+
f'The grpc package installed is at version {GRPC_VERSION},'
|
|
21
|
+
+ ' but the generated code in query_cache_protobuf/query_cache/services/sql_analysis_service_pb2_grpc.py depends on'
|
|
22
|
+
+ f' grpcio>={GRPC_GENERATED_VERSION}.'
|
|
23
|
+
+ f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}'
|
|
24
|
+
+ f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.'
|
|
25
|
+
)
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
class SQLAnalysisStub(object):
|
|
29
|
+
"""Missing associated documentation comment in .proto file."""
|
|
30
|
+
|
|
31
|
+
def __init__(self, channel):
|
|
32
|
+
"""Constructor.
|
|
33
|
+
|
|
34
|
+
Args:
|
|
35
|
+
channel: A grpc.Channel.
|
|
36
|
+
"""
|
|
37
|
+
self.ExtractTableReferences = channel.unary_unary(
|
|
38
|
+
'/com.fivetran.query_cache.SQLAnalysis/ExtractTableReferences',
|
|
39
|
+
request_serializer=query__cache__protobuf_dot_query__cache_dot_services_dot_sql__analysis__service__pb2.ExtractTableReferencesRequest.SerializeToString,
|
|
40
|
+
response_deserializer=query__cache__protobuf_dot_query__cache_dot_services_dot_sql__analysis__service__pb2.ExtractTableReferencesResponse.FromString,
|
|
41
|
+
_registered_method=True)
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
class SQLAnalysisServicer(object):
|
|
45
|
+
"""Missing associated documentation comment in .proto file."""
|
|
46
|
+
|
|
47
|
+
def ExtractTableReferences(self, request, context):
|
|
48
|
+
"""Missing associated documentation comment in .proto file."""
|
|
49
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
50
|
+
context.set_details('Method not implemented!')
|
|
51
|
+
raise NotImplementedError('Method not implemented!')
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
def add_SQLAnalysisServicer_to_server(servicer, server):
|
|
55
|
+
rpc_method_handlers = {
|
|
56
|
+
'ExtractTableReferences': grpc.unary_unary_rpc_method_handler(
|
|
57
|
+
servicer.ExtractTableReferences,
|
|
58
|
+
request_deserializer=query__cache__protobuf_dot_query__cache_dot_services_dot_sql__analysis__service__pb2.ExtractTableReferencesRequest.FromString,
|
|
59
|
+
response_serializer=query__cache__protobuf_dot_query__cache_dot_services_dot_sql__analysis__service__pb2.ExtractTableReferencesResponse.SerializeToString,
|
|
60
|
+
),
|
|
61
|
+
}
|
|
62
|
+
generic_handler = grpc.method_handlers_generic_handler(
|
|
63
|
+
'com.fivetran.query_cache.SQLAnalysis', rpc_method_handlers)
|
|
64
|
+
server.add_generic_rpc_handlers((generic_handler,))
|
|
65
|
+
server.add_registered_method_handlers('com.fivetran.query_cache.SQLAnalysis', rpc_method_handlers)
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
# This class is part of an EXPERIMENTAL API.
|
|
69
|
+
class SQLAnalysis(object):
|
|
70
|
+
"""Missing associated documentation comment in .proto file."""
|
|
71
|
+
|
|
72
|
+
@staticmethod
|
|
73
|
+
def ExtractTableReferences(request,
|
|
74
|
+
target,
|
|
75
|
+
options=(),
|
|
76
|
+
channel_credentials=None,
|
|
77
|
+
call_credentials=None,
|
|
78
|
+
insecure=False,
|
|
79
|
+
compression=None,
|
|
80
|
+
wait_for_ready=None,
|
|
81
|
+
timeout=None,
|
|
82
|
+
metadata=None):
|
|
83
|
+
return grpc.experimental.unary_unary(
|
|
84
|
+
request,
|
|
85
|
+
target,
|
|
86
|
+
'/com.fivetran.query_cache.SQLAnalysis/ExtractTableReferences',
|
|
87
|
+
query__cache__protobuf_dot_query__cache_dot_services_dot_sql__analysis__service__pb2.ExtractTableReferencesRequest.SerializeToString,
|
|
88
|
+
query__cache__protobuf_dot_query__cache_dot_services_dot_sql__analysis__service__pb2.ExtractTableReferencesResponse.FromString,
|
|
89
|
+
options,
|
|
90
|
+
channel_credentials,
|
|
91
|
+
insecure,
|
|
92
|
+
call_credentials,
|
|
93
|
+
compression,
|
|
94
|
+
wait_for_ready,
|
|
95
|
+
timeout,
|
|
96
|
+
metadata,
|
|
97
|
+
_registered_method=True)
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
# -*- coding: utf-8 -*-
|
|
2
|
-
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
-
# source: query_cache_protobuf/query_cache/services/client_telemetry_service.proto
|
|
4
|
-
# Protobuf Python Version: 4.25.1
|
|
5
|
-
"""Generated protocol buffer code."""
|
|
6
|
-
from google.protobuf import descriptor as _descriptor
|
|
7
|
-
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
8
|
-
from google.protobuf import symbol_database as _symbol_database
|
|
9
|
-
from google.protobuf.internal import builder as _builder
|
|
10
|
-
# @@protoc_insertion_point(imports)
|
|
11
|
-
|
|
12
|
-
_sym_db = _symbol_database.Default()
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
from google.protobuf import duration_pb2 as google_dot_protobuf_dot_duration__pb2
|
|
16
|
-
from query_cache_protobuf.query_cache import struct_pb2 as query__cache__protobuf_dot_query__cache_dot_struct__pb2
|
|
17
|
-
from query_cache_protobuf.query_cache.services import selector_service_pb2 as query__cache__protobuf_dot_query__cache_dot_services_dot_selector__service__pb2
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\nHquery_cache_protobuf/query_cache/services/client_telemetry_service.proto\x12\x18\x63om.fivetran.query_cache\x1a\x1egoogle/protobuf/duration.proto\x1a-query_cache_protobuf/query_cache/struct.proto\x1a@query_cache_protobuf/query_cache/services/selector_service.proto\"\x9a\x01\n\x13SessionStartRequest\x12\x1d\n\x15\x64\x62t_run_cache_version\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x62t_version\x18\x02 \x01(\t\x12\x17\n\x0fsqlglot_version\x18\x03 \x01(\t\x12\x30\n\x06\x63onfig\x18\x05 \x01(\x0b\x32 .com.fivetran.query_cache.StructJ\x04\x08\x04\x10\x05\"?\n\x14SessionStartResponse\x12\x0f\n\x07success\x18\x01 \x01(\x08\x12\x12\n\nsession_id\x18\x02 \x01(\t:\x02\x18\x01\"\x9a\x02\n\x11SessionEndRequest\x12\x33\n\x10session_duration\x18\x01 \x01(\x0b\x32\x19.google.protobuf.Duration\x12H\n\x06result\x18\x02 \x01(\x0e\x32\x38.com.fivetran.query_cache.SessionEndRequest.ClientResult\x12\x1a\n\x12result_description\x18\x03 \x01(\t\x12\x31\n\x07metrics\x18\x04 \x01(\x0b\x32 .com.fivetran.query_cache.Struct\"7\n\x0c\x43lientResult\x12\x0b\n\x07SUCCESS\x10\x00\x12\x0b\n\x07\x46\x41ILURE\x10\x01\x12\r\n\tCANCELLED\x10\x02\"\xa9\x04\n\x1f\x43lientPrepareEnrichedSQLRequest\x12\x12\n\nrequest_id\x18\x01 \x01(\t\x12\x10\n\x08\x64uration\x18\x02 \x01(\x01\x12\x1d\n\x10target_table_fqn\x18\x03 \x01(\tH\x00\x88\x01\x01\x12\x1d\n\x10num_dependencies\x18\x04 \x01(\x03H\x01\x88\x01\x01\x12\"\n\x15num_view_dependencies\x18\x05 \x01(\x03H\x02\x88\x01\x01\x12\x17\n\nerror_type\x18\x06 \x01(\tH\x03\x88\x01\x01\x12\'\n\x1aview_traversal_duration_ms\x18\x07 \x01(\x03H\x04\x88\x01\x01\x12&\n\x19last_modified_duration_ms\x18\x08 \x01(\x03H\x05\x88\x01\x01\x12U\n\x06labels\x18\t \x03(\x0b\x32\x45.com.fivetran.query_cache.ClientPrepareEnrichedSQLRequest.LabelsEntry\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\x13\n\x11_target_table_fqnB\x13\n\x11_num_dependenciesB\x18\n\x16_num_view_dependenciesB\r\n\x0b_error_typeB\x1d\n\x1b_view_traversal_duration_msB\x1c\n\x1a_last_modified_duration_ms\"\x83\x03\n\x14\x43lientTelemetryEvent\x12Z\n\x15\x65nriched_sql_prepared\x18\x01 \x01(\x0b\x32\x39.com.fivetran.query_cache.ClientPrepareEnrichedSQLRequestH\x00\x12\x46\n\rsession_start\x18\x02 \x01(\x0b\x32-.com.fivetran.query_cache.SessionStartRequestH\x00\x12\x42\n\x0bsession_end\x18\x04 \x01(\x0b\x32+.com.fivetran.query_cache.SessionEndRequestH\x00\x12N\n\x15\x63lient_selector_event\x18\x05 \x01(\x0b\x32-.com.fivetran.query_cache.ClientSelectorEventH\x00\x12\x18\n\x0b\x65vent_order\x18\x03 \x01(\x03H\x01\x88\x01\x01\x42\t\n\x07requestB\x0e\n\x0c_event_order\"]\n\x1bSubmitTelemetryBatchRequest\x12>\n\x06\x65vents\x18\x01 \x03(\x0b\x32..com.fivetran.query_cache.ClientTelemetryEvent\"/\n\x1cSubmitTelemetryBatchResponse\x12\x0f\n\x07success\x18\x01 \x01(\x08\"\xe9\x01\n\x13\x43lientSelectorEvent\x12\x12\n\nrequest_id\x18\x01 \x01(\t\x12\x12\n\nproject_id\x18\x02 \x01(\t\x12\x12\n\ndbt_target\x18\x03 \x01(\t\x12\x45\n\x11selector_criteria\x18\x04 \x01(\x0e\x32*.com.fivetran.query_cache.SelectorCriteria\x12\x11\n\tnum_nodes\x18\x06 \x01(\x03\x12\x1a\n\x12processing_time_ms\x18\x07 \x01(\x03\x12 \n\x18hash_calculation_time_ms\x18\x08 \x01(\x03\x32\x95\x02\n\x0f\x43lientTelemetry\x12z\n\x14RegisterSessionStart\x12-.com.fivetran.query_cache.SessionStartRequest\x1a..com.fivetran.query_cache.SessionStartResponse\"\x03\x88\x02\x01\x12\x85\x01\n\x14SubmitTelemetryBatch\x12\x35.com.fivetran.query_cache.SubmitTelemetryBatchRequest\x1a\x36.com.fivetran.query_cache.SubmitTelemetryBatchResponseb\x06proto3')
|
|
21
|
-
|
|
22
|
-
_globals = globals()
|
|
23
|
-
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
24
|
-
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'query_cache_protobuf.query_cache.services.client_telemetry_service_pb2', _globals)
|
|
25
|
-
if _descriptor._USE_C_DESCRIPTORS == False:
|
|
26
|
-
DESCRIPTOR._options = None
|
|
27
|
-
_globals['_SESSIONSTARTRESPONSE']._options = None
|
|
28
|
-
_globals['_SESSIONSTARTRESPONSE']._serialized_options = b'\030\001'
|
|
29
|
-
_globals['_CLIENTPREPAREENRICHEDSQLREQUEST_LABELSENTRY']._options = None
|
|
30
|
-
_globals['_CLIENTPREPAREENRICHEDSQLREQUEST_LABELSENTRY']._serialized_options = b'8\001'
|
|
31
|
-
_globals['_CLIENTTELEMETRY'].methods_by_name['RegisterSessionStart']._options = None
|
|
32
|
-
_globals['_CLIENTTELEMETRY'].methods_by_name['RegisterSessionStart']._serialized_options = b'\210\002\001'
|
|
33
|
-
_globals['_SESSIONSTARTREQUEST']._serialized_start=248
|
|
34
|
-
_globals['_SESSIONSTARTREQUEST']._serialized_end=402
|
|
35
|
-
_globals['_SESSIONSTARTRESPONSE']._serialized_start=404
|
|
36
|
-
_globals['_SESSIONSTARTRESPONSE']._serialized_end=467
|
|
37
|
-
_globals['_SESSIONENDREQUEST']._serialized_start=470
|
|
38
|
-
_globals['_SESSIONENDREQUEST']._serialized_end=752
|
|
39
|
-
_globals['_SESSIONENDREQUEST_CLIENTRESULT']._serialized_start=697
|
|
40
|
-
_globals['_SESSIONENDREQUEST_CLIENTRESULT']._serialized_end=752
|
|
41
|
-
_globals['_CLIENTPREPAREENRICHEDSQLREQUEST']._serialized_start=755
|
|
42
|
-
_globals['_CLIENTPREPAREENRICHEDSQLREQUEST']._serialized_end=1308
|
|
43
|
-
_globals['_CLIENTPREPAREENRICHEDSQLREQUEST_LABELSENTRY']._serialized_start=1119
|
|
44
|
-
_globals['_CLIENTPREPAREENRICHEDSQLREQUEST_LABELSENTRY']._serialized_end=1164
|
|
45
|
-
_globals['_CLIENTTELEMETRYEVENT']._serialized_start=1311
|
|
46
|
-
_globals['_CLIENTTELEMETRYEVENT']._serialized_end=1698
|
|
47
|
-
_globals['_SUBMITTELEMETRYBATCHREQUEST']._serialized_start=1700
|
|
48
|
-
_globals['_SUBMITTELEMETRYBATCHREQUEST']._serialized_end=1793
|
|
49
|
-
_globals['_SUBMITTELEMETRYBATCHRESPONSE']._serialized_start=1795
|
|
50
|
-
_globals['_SUBMITTELEMETRYBATCHRESPONSE']._serialized_end=1842
|
|
51
|
-
_globals['_CLIENTSELECTOREVENT']._serialized_start=1845
|
|
52
|
-
_globals['_CLIENTSELECTOREVENT']._serialized_end=2078
|
|
53
|
-
_globals['_CLIENTTELEMETRY']._serialized_start=2081
|
|
54
|
-
_globals['_CLIENTTELEMETRY']._serialized_end=2358
|
|
55
|
-
# @@protoc_insertion_point(module_scope)
|
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
|
|
2
|
-
"""Client and server classes corresponding to protobuf-defined services."""
|
|
3
|
-
import grpc
|
|
4
|
-
|
|
5
|
-
from query_cache_protobuf.query_cache.services import client_telemetry_service_pb2 as query__cache__protobuf_dot_query__cache_dot_services_dot_client__telemetry__service__pb2
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
class ClientTelemetryStub(object):
|
|
9
|
-
"""Missing associated documentation comment in .proto file."""
|
|
10
|
-
|
|
11
|
-
def __init__(self, channel):
|
|
12
|
-
"""Constructor.
|
|
13
|
-
|
|
14
|
-
Args:
|
|
15
|
-
channel: A grpc.Channel.
|
|
16
|
-
"""
|
|
17
|
-
self.RegisterSessionStart = channel.unary_unary(
|
|
18
|
-
'/com.fivetran.query_cache.ClientTelemetry/RegisterSessionStart',
|
|
19
|
-
request_serializer=query__cache__protobuf_dot_query__cache_dot_services_dot_client__telemetry__service__pb2.SessionStartRequest.SerializeToString,
|
|
20
|
-
response_deserializer=query__cache__protobuf_dot_query__cache_dot_services_dot_client__telemetry__service__pb2.SessionStartResponse.FromString,
|
|
21
|
-
)
|
|
22
|
-
self.SubmitTelemetryBatch = channel.unary_unary(
|
|
23
|
-
'/com.fivetran.query_cache.ClientTelemetry/SubmitTelemetryBatch',
|
|
24
|
-
request_serializer=query__cache__protobuf_dot_query__cache_dot_services_dot_client__telemetry__service__pb2.SubmitTelemetryBatchRequest.SerializeToString,
|
|
25
|
-
response_deserializer=query__cache__protobuf_dot_query__cache_dot_services_dot_client__telemetry__service__pb2.SubmitTelemetryBatchResponse.FromString,
|
|
26
|
-
)
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
class ClientTelemetryServicer(object):
|
|
30
|
-
"""Missing associated documentation comment in .proto file."""
|
|
31
|
-
|
|
32
|
-
def RegisterSessionStart(self, request, context):
|
|
33
|
-
"""Missing associated documentation comment in .proto file."""
|
|
34
|
-
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
35
|
-
context.set_details('Method not implemented!')
|
|
36
|
-
raise NotImplementedError('Method not implemented!')
|
|
37
|
-
|
|
38
|
-
def SubmitTelemetryBatch(self, request, context):
|
|
39
|
-
"""Missing associated documentation comment in .proto file."""
|
|
40
|
-
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
41
|
-
context.set_details('Method not implemented!')
|
|
42
|
-
raise NotImplementedError('Method not implemented!')
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
def add_ClientTelemetryServicer_to_server(servicer, server):
|
|
46
|
-
rpc_method_handlers = {
|
|
47
|
-
'RegisterSessionStart': grpc.unary_unary_rpc_method_handler(
|
|
48
|
-
servicer.RegisterSessionStart,
|
|
49
|
-
request_deserializer=query__cache__protobuf_dot_query__cache_dot_services_dot_client__telemetry__service__pb2.SessionStartRequest.FromString,
|
|
50
|
-
response_serializer=query__cache__protobuf_dot_query__cache_dot_services_dot_client__telemetry__service__pb2.SessionStartResponse.SerializeToString,
|
|
51
|
-
),
|
|
52
|
-
'SubmitTelemetryBatch': grpc.unary_unary_rpc_method_handler(
|
|
53
|
-
servicer.SubmitTelemetryBatch,
|
|
54
|
-
request_deserializer=query__cache__protobuf_dot_query__cache_dot_services_dot_client__telemetry__service__pb2.SubmitTelemetryBatchRequest.FromString,
|
|
55
|
-
response_serializer=query__cache__protobuf_dot_query__cache_dot_services_dot_client__telemetry__service__pb2.SubmitTelemetryBatchResponse.SerializeToString,
|
|
56
|
-
),
|
|
57
|
-
}
|
|
58
|
-
generic_handler = grpc.method_handlers_generic_handler(
|
|
59
|
-
'com.fivetran.query_cache.ClientTelemetry', rpc_method_handlers)
|
|
60
|
-
server.add_generic_rpc_handlers((generic_handler,))
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
# This class is part of an EXPERIMENTAL API.
|
|
64
|
-
class ClientTelemetry(object):
|
|
65
|
-
"""Missing associated documentation comment in .proto file."""
|
|
66
|
-
|
|
67
|
-
@staticmethod
|
|
68
|
-
def RegisterSessionStart(request,
|
|
69
|
-
target,
|
|
70
|
-
options=(),
|
|
71
|
-
channel_credentials=None,
|
|
72
|
-
call_credentials=None,
|
|
73
|
-
insecure=False,
|
|
74
|
-
compression=None,
|
|
75
|
-
wait_for_ready=None,
|
|
76
|
-
timeout=None,
|
|
77
|
-
metadata=None):
|
|
78
|
-
return grpc.experimental.unary_unary(request, target, '/com.fivetran.query_cache.ClientTelemetry/RegisterSessionStart',
|
|
79
|
-
query__cache__protobuf_dot_query__cache_dot_services_dot_client__telemetry__service__pb2.SessionStartRequest.SerializeToString,
|
|
80
|
-
query__cache__protobuf_dot_query__cache_dot_services_dot_client__telemetry__service__pb2.SessionStartResponse.FromString,
|
|
81
|
-
options, channel_credentials,
|
|
82
|
-
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
83
|
-
|
|
84
|
-
@staticmethod
|
|
85
|
-
def SubmitTelemetryBatch(request,
|
|
86
|
-
target,
|
|
87
|
-
options=(),
|
|
88
|
-
channel_credentials=None,
|
|
89
|
-
call_credentials=None,
|
|
90
|
-
insecure=False,
|
|
91
|
-
compression=None,
|
|
92
|
-
wait_for_ready=None,
|
|
93
|
-
timeout=None,
|
|
94
|
-
metadata=None):
|
|
95
|
-
return grpc.experimental.unary_unary(request, target, '/com.fivetran.query_cache.ClientTelemetry/SubmitTelemetryBatch',
|
|
96
|
-
query__cache__protobuf_dot_query__cache_dot_services_dot_client__telemetry__service__pb2.SubmitTelemetryBatchRequest.SerializeToString,
|
|
97
|
-
query__cache__protobuf_dot_query__cache_dot_services_dot_client__telemetry__service__pb2.SubmitTelemetryBatchResponse.FromString,
|
|
98
|
-
options, channel_credentials,
|
|
99
|
-
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
# -*- coding: utf-8 -*-
|
|
2
|
-
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
-
# source: query_cache_protobuf/query_cache/services/client_validation_service.proto
|
|
4
|
-
# Protobuf Python Version: 4.25.1
|
|
5
|
-
"""Generated protocol buffer code."""
|
|
6
|
-
from google.protobuf import descriptor as _descriptor
|
|
7
|
-
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
8
|
-
from google.protobuf import symbol_database as _symbol_database
|
|
9
|
-
from google.protobuf.internal import builder as _builder
|
|
10
|
-
# @@protoc_insertion_point(imports)
|
|
11
|
-
|
|
12
|
-
_sym_db = _symbol_database.Default()
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\nIquery_cache_protobuf/query_cache/services/client_validation_service.proto\x12\x18\x63om.fivetran.query_cache\"=\n\x1cValidateClientVersionRequest\x12\x1d\n\x15\x64\x62t_run_cache_version\x18\x01 \x01(\t\"5\n\x1dValidateClientVersionResponse\x12\x14\n\x0cis_supported\x18\x01 \x01(\x08\x32\x9d\x01\n\x10\x43lientValidation\x12\x88\x01\n\x15ValidateClientVersion\x12\x36.com.fivetran.query_cache.ValidateClientVersionRequest\x1a\x37.com.fivetran.query_cache.ValidateClientVersionResponseb\x06proto3')
|
|
18
|
-
|
|
19
|
-
_globals = globals()
|
|
20
|
-
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
21
|
-
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'query_cache_protobuf.query_cache.services.client_validation_service_pb2', _globals)
|
|
22
|
-
if _descriptor._USE_C_DESCRIPTORS == False:
|
|
23
|
-
DESCRIPTOR._options = None
|
|
24
|
-
_globals['_VALIDATECLIENTVERSIONREQUEST']._serialized_start=103
|
|
25
|
-
_globals['_VALIDATECLIENTVERSIONREQUEST']._serialized_end=164
|
|
26
|
-
_globals['_VALIDATECLIENTVERSIONRESPONSE']._serialized_start=166
|
|
27
|
-
_globals['_VALIDATECLIENTVERSIONRESPONSE']._serialized_end=219
|
|
28
|
-
_globals['_CLIENTVALIDATION']._serialized_start=222
|
|
29
|
-
_globals['_CLIENTVALIDATION']._serialized_end=379
|
|
30
|
-
# @@protoc_insertion_point(module_scope)
|