cloudquery-plugin-pb 0.0.55__py3-none-any.whl
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.
- cloudquery/discovery_v1/__init__.py +0 -0
- cloudquery/discovery_v1/discovery_pb2.py +43 -0
- cloudquery/discovery_v1/discovery_pb2.pyi +19 -0
- cloudquery/discovery_v1/discovery_pb2_grpc.py +98 -0
- cloudquery/discovery_v1/py.typed +0 -0
- cloudquery/plugin_v3/__init__.py +0 -0
- cloudquery/plugin_v3/arrow.py +51 -0
- cloudquery/plugin_v3/plugin_pb2.py +162 -0
- cloudquery/plugin_v3/plugin_pb2.pyi +413 -0
- cloudquery/plugin_v3/plugin_pb2_grpc.py +678 -0
- cloudquery/plugin_v3/py.typed +0 -0
- cloudquery_plugin_pb-0.0.55.dist-info/METADATA +49 -0
- cloudquery_plugin_pb-0.0.55.dist-info/RECORD +16 -0
- cloudquery_plugin_pb-0.0.55.dist-info/WHEEL +5 -0
- cloudquery_plugin_pb-0.0.55.dist-info/licenses/LICENSE +355 -0
- cloudquery_plugin_pb-0.0.55.dist-info/top_level.txt +1 -0
|
File without changes
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
|
+
# source: cloudquery/discovery_v1/discovery.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
|
+
'cloudquery/discovery_v1/discovery.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'\n\'cloudquery/discovery_v1/discovery.proto\x12\x17\x63loudquery.discovery.v1\"6\n\x0bGetVersions\x1a\t\n\x07Request\x1a\x1c\n\x08Response\x12\x10\n\x08versions\x18\x01 \x03(\x05\x32w\n\tDiscovery\x12j\n\x0bGetVersions\x12,.cloudquery.discovery.v1.GetVersions.Request\x1a-.cloudquery.discovery.v1.GetVersions.ResponseB\\\n\x1aio.cloudquery.discovery.v1P\x01Z<github.com/cloudquery/plugin-pb-go/pb/discovery/v1;discoveryb\x06proto3')
|
|
28
|
+
|
|
29
|
+
_globals = globals()
|
|
30
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
31
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'cloudquery.discovery_v1.discovery_pb2', _globals)
|
|
32
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
|
33
|
+
_globals['DESCRIPTOR']._loaded_options = None
|
|
34
|
+
_globals['DESCRIPTOR']._serialized_options = b'\n\032io.cloudquery.discovery.v1P\001Z<github.com/cloudquery/plugin-pb-go/pb/discovery/v1;discovery'
|
|
35
|
+
_globals['_GETVERSIONS']._serialized_start=68
|
|
36
|
+
_globals['_GETVERSIONS']._serialized_end=122
|
|
37
|
+
_globals['_GETVERSIONS_REQUEST']._serialized_start=83
|
|
38
|
+
_globals['_GETVERSIONS_REQUEST']._serialized_end=92
|
|
39
|
+
_globals['_GETVERSIONS_RESPONSE']._serialized_start=94
|
|
40
|
+
_globals['_GETVERSIONS_RESPONSE']._serialized_end=122
|
|
41
|
+
_globals['_DISCOVERY']._serialized_start=124
|
|
42
|
+
_globals['_DISCOVERY']._serialized_end=243
|
|
43
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
from google.protobuf.internal import containers as _containers
|
|
2
|
+
from google.protobuf import descriptor as _descriptor
|
|
3
|
+
from google.protobuf import message as _message
|
|
4
|
+
from collections.abc import Iterable as _Iterable
|
|
5
|
+
from typing import ClassVar as _ClassVar, Optional as _Optional
|
|
6
|
+
|
|
7
|
+
DESCRIPTOR: _descriptor.FileDescriptor
|
|
8
|
+
|
|
9
|
+
class GetVersions(_message.Message):
|
|
10
|
+
__slots__ = ()
|
|
11
|
+
class Request(_message.Message):
|
|
12
|
+
__slots__ = ()
|
|
13
|
+
def __init__(self) -> None: ...
|
|
14
|
+
class Response(_message.Message):
|
|
15
|
+
__slots__ = ("versions",)
|
|
16
|
+
VERSIONS_FIELD_NUMBER: _ClassVar[int]
|
|
17
|
+
versions: _containers.RepeatedScalarFieldContainer[int]
|
|
18
|
+
def __init__(self, versions: _Optional[_Iterable[int]] = ...) -> None: ...
|
|
19
|
+
def __init__(self) -> None: ...
|
|
@@ -0,0 +1,98 @@
|
|
|
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 cloudquery.discovery_v1 import discovery_pb2 as cloudquery_dot_discovery__v1_dot_discovery__pb2
|
|
7
|
+
|
|
8
|
+
GRPC_GENERATED_VERSION = '1.78.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 cloudquery/discovery_v1/discovery_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 DiscoveryStub(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.GetVersions = channel.unary_unary(
|
|
38
|
+
'/cloudquery.discovery.v1.Discovery/GetVersions',
|
|
39
|
+
request_serializer=cloudquery_dot_discovery__v1_dot_discovery__pb2.GetVersions.Request.SerializeToString,
|
|
40
|
+
response_deserializer=cloudquery_dot_discovery__v1_dot_discovery__pb2.GetVersions.Response.FromString,
|
|
41
|
+
_registered_method=True)
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
class DiscoveryServicer(object):
|
|
45
|
+
"""Missing associated documentation comment in .proto file."""
|
|
46
|
+
|
|
47
|
+
def GetVersions(self, request, context):
|
|
48
|
+
"""Get the name of the plugin
|
|
49
|
+
"""
|
|
50
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
51
|
+
context.set_details('Method not implemented!')
|
|
52
|
+
raise NotImplementedError('Method not implemented!')
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
def add_DiscoveryServicer_to_server(servicer, server):
|
|
56
|
+
rpc_method_handlers = {
|
|
57
|
+
'GetVersions': grpc.unary_unary_rpc_method_handler(
|
|
58
|
+
servicer.GetVersions,
|
|
59
|
+
request_deserializer=cloudquery_dot_discovery__v1_dot_discovery__pb2.GetVersions.Request.FromString,
|
|
60
|
+
response_serializer=cloudquery_dot_discovery__v1_dot_discovery__pb2.GetVersions.Response.SerializeToString,
|
|
61
|
+
),
|
|
62
|
+
}
|
|
63
|
+
generic_handler = grpc.method_handlers_generic_handler(
|
|
64
|
+
'cloudquery.discovery.v1.Discovery', rpc_method_handlers)
|
|
65
|
+
server.add_generic_rpc_handlers((generic_handler,))
|
|
66
|
+
server.add_registered_method_handlers('cloudquery.discovery.v1.Discovery', rpc_method_handlers)
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
# This class is part of an EXPERIMENTAL API.
|
|
70
|
+
class Discovery(object):
|
|
71
|
+
"""Missing associated documentation comment in .proto file."""
|
|
72
|
+
|
|
73
|
+
@staticmethod
|
|
74
|
+
def GetVersions(request,
|
|
75
|
+
target,
|
|
76
|
+
options=(),
|
|
77
|
+
channel_credentials=None,
|
|
78
|
+
call_credentials=None,
|
|
79
|
+
insecure=False,
|
|
80
|
+
compression=None,
|
|
81
|
+
wait_for_ready=None,
|
|
82
|
+
timeout=None,
|
|
83
|
+
metadata=None):
|
|
84
|
+
return grpc.experimental.unary_unary(
|
|
85
|
+
request,
|
|
86
|
+
target,
|
|
87
|
+
'/cloudquery.discovery.v1.Discovery/GetVersions',
|
|
88
|
+
cloudquery_dot_discovery__v1_dot_discovery__pb2.GetVersions.Request.SerializeToString,
|
|
89
|
+
cloudquery_dot_discovery__v1_dot_discovery__pb2.GetVersions.Response.FromString,
|
|
90
|
+
options,
|
|
91
|
+
channel_credentials,
|
|
92
|
+
insecure,
|
|
93
|
+
call_credentials,
|
|
94
|
+
compression,
|
|
95
|
+
wait_for_ready,
|
|
96
|
+
timeout,
|
|
97
|
+
metadata,
|
|
98
|
+
_registered_method=True)
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
from pyarrow import ipc
|
|
2
|
+
import pyarrow as pa
|
|
3
|
+
from typing import List
|
|
4
|
+
|
|
5
|
+
def schema_to_bytes(sc) -> bytes:
|
|
6
|
+
"""
|
|
7
|
+
Convert a schema to bytes
|
|
8
|
+
"""
|
|
9
|
+
sink = pa.BufferOutputStream()
|
|
10
|
+
try:
|
|
11
|
+
with pa.ipc.new_stream(sink, sc) as writer:
|
|
12
|
+
pass
|
|
13
|
+
return sink.getvalue().to_pybytes()
|
|
14
|
+
finally:
|
|
15
|
+
sink.close()
|
|
16
|
+
|
|
17
|
+
def new_schema_from_bytes(buf: bytes) -> pa.Schema:
|
|
18
|
+
"""
|
|
19
|
+
Convert bytes to schema
|
|
20
|
+
"""
|
|
21
|
+
schema = None
|
|
22
|
+
with pa.ipc.open_stream(buf) as reader:
|
|
23
|
+
schema = reader.schema
|
|
24
|
+
return schema
|
|
25
|
+
|
|
26
|
+
def schemas_to_bytes(schemas: List[pa.Schema]):
|
|
27
|
+
res : List[bytes] = []
|
|
28
|
+
for schema in schemas:
|
|
29
|
+
res.append(schema_to_bytes(schema))
|
|
30
|
+
return res
|
|
31
|
+
|
|
32
|
+
def new_schemas_from_bytes(bufs: List[bytes]) -> List[pa.Schema]:
|
|
33
|
+
res : List[pa.Schema] = []
|
|
34
|
+
for buf in bufs:
|
|
35
|
+
res.append(new_schema_from_bytes(buf))
|
|
36
|
+
return res
|
|
37
|
+
|
|
38
|
+
def record_to_bytes(rec: pa.RecordBatch) -> bytes:
|
|
39
|
+
sink = pa.BufferOutputStream()
|
|
40
|
+
try:
|
|
41
|
+
with pa.ipc.new_stream(sink, rec.schema) as writer:
|
|
42
|
+
writer.write_batch(rec)
|
|
43
|
+
return sink.getvalue().to_pybytes()
|
|
44
|
+
finally:
|
|
45
|
+
sink.close()
|
|
46
|
+
|
|
47
|
+
def new_record_from_bytes(buf :bytes) -> pa.RecordBatch:
|
|
48
|
+
rec = None
|
|
49
|
+
with pa.ipc.open_stream(buf) as reader:
|
|
50
|
+
rec = reader.read_next_batch()
|
|
51
|
+
return rec
|
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
|
+
# source: cloudquery/plugin_v3/plugin.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
|
+
'cloudquery/plugin_v3/plugin.proto'
|
|
19
|
+
)
|
|
20
|
+
# @@protoc_insertion_point(imports)
|
|
21
|
+
|
|
22
|
+
_sym_db = _symbol_database.Default()
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n!cloudquery/plugin_v3/plugin.proto\x12\x14\x63loudquery.plugin.v3\x1a\x1fgoogle/protobuf/timestamp.proto\".\n\x07GetName\x1a\t\n\x07Request\x1a\x18\n\x08Response\x12\x0c\n\x04name\x18\x01 \x01(\t\"4\n\nGetVersion\x1a\t\n\x07Request\x1a\x1b\n\x08Response\x12\x0f\n\x07version\x18\x01 \x01(\t\"P\n\rGetSpecSchema\x1a\t\n\x07Request\x1a\x34\n\x08Response\x12\x18\n\x0bjson_schema\x18\x01 \x01(\tH\x00\x88\x01\x01\x42\x0e\n\x0c_json_schema\"q\n\x04Init\x1a\x45\n\x07Request\x12\x0c\n\x04spec\x18\x01 \x01(\x0c\x12\x15\n\rno_connection\x18\x02 \x01(\x08\x12\x15\n\rinvocation_id\x18\x03 \x01(\t\x1a\"\n\x08Response\x12\x16\n\x0esupports_flush\x18\x01 \x01(\x08\"v\n\tGetTables\x1aM\n\x07Request\x12\x0e\n\x06tables\x18\x01 \x03(\t\x12\x13\n\x0bskip_tables\x18\x02 \x03(\t\x12\x1d\n\x15skip_dependent_tables\x18\x03 \x01(\x08\x1a\x1a\n\x08Response\x12\x0e\n\x06tables\x18\x01 \x03(\x0c\"\xb9\x08\n\x04Sync\x1a\x1f\n\rMessageInsert\x12\x0e\n\x06record\x18\x01 \x01(\x0c\x1a$\n\x13MessageMigrateTable\x12\r\n\x05table\x18\x01 \x01(\x0c\x1a\xa4\x01\n\x13MessageDeleteRecord\x12\x12\n\ntable_name\x18\x01 \x01(\t\x12;\n\x0cwhere_clause\x18\x02 \x03(\x0b\x32%.cloudquery.plugin.v3.PredicatesGroup\x12<\n\x0ftable_relations\x18\x03 \x03(\x0b\x32#.cloudquery.plugin.v3.TableRelation\x1a\x31\n\x0cMessageError\x12\x12\n\ntable_name\x18\x01 \x01(\t\x12\r\n\x05\x65rror\x18\x02 \x01(\t\x1a#\n\x11MessageCheckpoint\x12\x0e\n\x06record\x18\x01 \x01(\x0c\x1a\x38\n\x0e\x42\x61\x63kendOptions\x12\x12\n\ntable_name\x18\x01 \x01(\t\x12\x12\n\nconnection\x18\x02 \x01(\t\x1a\xcc\x02\n\x07Request\x12\x0e\n\x06tables\x18\x01 \x03(\t\x12\x13\n\x0bskip_tables\x18\x02 \x03(\t\x12\x1d\n\x15skip_dependent_tables\x18\x03 \x01(\x08\x12\x1b\n\x13\x64\x65terministic_cq_id\x18\x04 \x01(\x08\x12:\n\x07\x62\x61\x63kend\x18\x05 \x01(\x0b\x32).cloudquery.plugin.v3.Sync.BackendOptions\x12<\n\x05shard\x18\x06 \x01(\x0b\x32(.cloudquery.plugin.v3.Sync.Request.ShardH\x00\x88\x01\x01\x12\x19\n\x11withErrorMessages\x18\x07 \x01(\x08\x12\x1c\n\x14supports_checkpoints\x18\x08 \x01(\x08\x1a#\n\x05Shard\x12\x0b\n\x03num\x18\x01 \x01(\x05\x12\r\n\x05total\x18\x02 \x01(\x05\x42\x08\n\x06_shard\x1a\xe1\x02\n\x08Response\x12G\n\rmigrate_table\x18\x01 \x01(\x0b\x32..cloudquery.plugin.v3.Sync.MessageMigrateTableH\x00\x12:\n\x06insert\x18\x02 \x01(\x0b\x32(.cloudquery.plugin.v3.Sync.MessageInsertH\x00\x12G\n\rdelete_record\x18\x03 \x01(\x0b\x32..cloudquery.plugin.v3.Sync.MessageDeleteRecordH\x00\x12\x38\n\x05\x65rror\x18\x04 \x01(\x0b\x32\'.cloudquery.plugin.v3.Sync.MessageErrorH\x00\x12\x42\n\ncheckpoint\x18\x05 \x01(\x0b\x32,.cloudquery.plugin.v3.Sync.MessageCheckpointH\x00\x42\t\n\x07message\"<\n\x04Read\x1a\x18\n\x07Request\x12\r\n\x05table\x18\x01 \x01(\x0c\x1a\x1a\n\x08Response\x12\x0e\n\x06record\x18\x01 \x01(\x0c\"9\n\rTableRelation\x12\x12\n\ntable_name\x18\x01 \x01(\t\x12\x14\n\x0cparent_table\x18\x02 \x01(\t\"{\n\tPredicate\x12:\n\x08operator\x18\x01 \x01(\x0e\x32(.cloudquery.plugin.v3.Predicate.Operator\x12\x0e\n\x06\x63olumn\x18\x02 \x01(\t\x12\x0e\n\x06record\x18\x03 \x01(\x0c\"\x12\n\x08Operator\x12\x06\n\x02\x45Q\x10\x00\"\xb2\x01\n\x0fPredicatesGroup\x12I\n\rgrouping_type\x18\x01 \x01(\x0e\x32\x32.cloudquery.plugin.v3.PredicatesGroup.GroupingType\x12\x33\n\npredicates\x18\x02 \x03(\x0b\x32\x1f.cloudquery.plugin.v3.Predicate\"\x1f\n\x0cGroupingType\x12\x07\n\x03\x41ND\x10\x00\x12\x06\n\x02OR\x10\x01\"\xd8\x06\n\x05Write\x1a;\n\x13MessageMigrateTable\x12\r\n\x05table\x18\x01 \x01(\x0c\x12\x15\n\rmigrate_force\x18\x02 \x01(\x08\x1a\x1f\n\rMessageInsert\x12\x0e\n\x06record\x18\x01 \x01(\x0c\x1a\x7f\n\x12MessageDeleteStale\x12\x11\n\x05table\x18\x01 \x01(\x0c\x42\x02\x18\x01\x12\x13\n\x0bsource_name\x18\x02 \x01(\t\x12-\n\tsync_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x12\n\ntable_name\x18\x04 \x01(\t\x1a\xa4\x01\n\x13MessageDeleteRecord\x12\x12\n\ntable_name\x18\x01 \x01(\t\x12;\n\x0cwhere_clause\x18\x02 \x03(\x0b\x32%.cloudquery.plugin.v3.PredicatesGroup\x12<\n\x0ftable_relations\x18\x03 \x03(\x0b\x32#.cloudquery.plugin.v3.TableRelation\x1a\x1a\n\x0cMessageFlush\x12\n\n\x02id\x18\x01 \x01(\x04\x1a\xe2\x02\n\x07Request\x12H\n\rmigrate_table\x18\x01 \x01(\x0b\x32/.cloudquery.plugin.v3.Write.MessageMigrateTableH\x00\x12;\n\x06insert\x18\x02 \x01(\x0b\x32).cloudquery.plugin.v3.Write.MessageInsertH\x00\x12@\n\x06\x64\x65lete\x18\x03 \x01(\x0b\x32..cloudquery.plugin.v3.Write.MessageDeleteStaleH\x00\x12H\n\rdelete_record\x18\x04 \x01(\x0b\x32/.cloudquery.plugin.v3.Write.MessageDeleteRecordH\x00\x12\x39\n\x05\x66lush\x18\x05 \x01(\x0b\x32(.cloudquery.plugin.v3.Write.MessageFlushH\x00\x42\t\n\x07message\x1aH\n\x08Response\x12\x10\n\x08\x66lush_id\x18\x01 \x01(\x04\x12\x13\n\x0b\x66lush_error\x18\x02 \x01(\t\x12\x15\n\rfailed_tables\x18\x03 \x03(\t\"B\n\tTransform\x1a\x19\n\x07Request\x12\x0e\n\x06record\x18\x01 \x01(\x0c\x1a\x1a\n\x08Response\x12\x0e\n\x06record\x18\x01 \x01(\x0c\"H\n\x0fTransformSchema\x1a\x19\n\x07Request\x12\x0e\n\x06schema\x18\x01 \x01(\x0c\x1a\x1a\n\x08Response\x12\x0e\n\x06schema\x18\x01 \x01(\x0c\"\x1e\n\x05\x43lose\x1a\t\n\x07Request\x1a\n\n\x08Response\"y\n\x0eTestConnection\x1a\x17\n\x07Request\x12\x0c\n\x04spec\x18\x01 \x01(\x0c\x1aN\n\x08Response\x12\x0f\n\x07success\x18\x01 \x01(\x08\x12\x14\n\x0c\x66\x61ilure_code\x18\x02 \x01(\t\x12\x1b\n\x13\x66\x61ilure_description\x18\x03 \x01(\t\"\xc1\x08\n\x0c\x41ssessTables\x1a\x31\n\tTablePair\x12\x11\n\told_table\x18\x01 \x01(\x0c\x12\x11\n\tnew_table\x18\x02 \x01(\x0c\x1a\x42\n\x08\x45vidence\x12\x17\n\x0fsynthetic_value\x18\x01 \x01(\t\x12\x0e\n\x06\x62\x65\x66ore\x18\x02 \x01(\t\x12\r\n\x05\x61\x66ter\x18\x03 \x01(\t\x1a\x80\x02\n\rColumnFinding\x12\x13\n\x0b\x63olumn_name\x18\x01 \x01(\t\x12=\n\x08\x63\x61tegory\x18\x02 \x01(\x0e\x32+.cloudquery.plugin.v3.AssessTables.Category\x12\x10\n\x08old_type\x18\x03 \x01(\t\x12\x10\n\x08new_type\x18\x04 \x01(\t\x12\x1a\n\x12safe_mode_behavior\x18\x05 \x01(\t\x12\x1c\n\x14\x66orced_mode_behavior\x18\x06 \x01(\t\x12=\n\x08\x65vidence\x18\x07 \x03(\x0b\x32+.cloudquery.plugin.v3.AssessTables.Evidence\x1a\xc1\x02\n\x0cTableFinding\x12\x12\n\ntable_name\x18\x01 \x01(\t\x12=\n\x08\x63\x61tegory\x18\x02 \x01(\x0e\x32+.cloudquery.plugin.v3.AssessTables.Category\x12\x1a\n\x12safe_mode_behavior\x18\x03 \x01(\t\x12\x1c\n\x14\x66orced_mode_behavior\x18\x04 \x01(\t\x12\x41\n\x07\x63olumns\x18\x05 \x03(\x0b\x32\x30.cloudquery.plugin.v3.AssessTables.ColumnFinding\x12=\n\x08\x65vidence\x18\x06 \x03(\x0b\x32+.cloudquery.plugin.v3.AssessTables.Evidence\x12\"\n\x1aincomplete_coverage_reason\x18\x07 \x01(\t\x1a^\n\x07Request\x12<\n\x06tables\x18\x01 \x03(\x0b\x32,.cloudquery.plugin.v3.AssessTables.TablePair\x12\x15\n\rmigrate_force\x18\x02 \x01(\x08\x1aK\n\x08Response\x12?\n\x06tables\x18\x01 \x03(\x0b\x32/.cloudquery.plugin.v3.AssessTables.TableFinding\"\xc5\x01\n\x08\x43\x61tegory\x12\x14\n\x10\x43\x41TEGORY_UNKNOWN\x10\x00\x12\x16\n\x12\x43\x41TEGORY_NO_CHANGE\x10\x01\x12%\n!CATEGORY_AUTOMATICALLY_MIGRATABLE\x10\x02\x12&\n\"CATEGORY_MANUAL_MIGRATION_REQUIRED\x10\x03\x12\x1a\n\x16\x43\x41TEGORY_TABLE_REMOVED\x10\x04\x12 \n\x1c\x43\x41TEGORY_FILE_SCHEMA_CHANGED\x10\x05\x32\xbe\n\n\x06Plugin\x12X\n\x07GetName\x12%.cloudquery.plugin.v3.GetName.Request\x1a&.cloudquery.plugin.v3.GetName.Response\x12\x61\n\nGetVersion\x12(.cloudquery.plugin.v3.GetVersion.Request\x1a).cloudquery.plugin.v3.GetVersion.Response\x12j\n\rGetSpecSchema\x12+.cloudquery.plugin.v3.GetSpecSchema.Request\x1a,.cloudquery.plugin.v3.GetSpecSchema.Response\x12O\n\x04Init\x12\".cloudquery.plugin.v3.Init.Request\x1a#.cloudquery.plugin.v3.Init.Response\x12^\n\tGetTables\x12\'.cloudquery.plugin.v3.GetTables.Request\x1a(.cloudquery.plugin.v3.GetTables.Response\x12Q\n\x04Sync\x12\".cloudquery.plugin.v3.Sync.Request\x1a#.cloudquery.plugin.v3.Sync.Response0\x01\x12Q\n\x04Read\x12\".cloudquery.plugin.v3.Read.Request\x1a#.cloudquery.plugin.v3.Read.Response0\x01\x12T\n\x05Write\x12#.cloudquery.plugin.v3.Write.Request\x1a$.cloudquery.plugin.v3.Write.Response(\x01\x12\x62\n\tTransform\x12\'.cloudquery.plugin.v3.Transform.Request\x1a(.cloudquery.plugin.v3.Transform.Response(\x01\x30\x01\x12p\n\x0fTransformSchema\x12-.cloudquery.plugin.v3.TransformSchema.Request\x1a..cloudquery.plugin.v3.TransformSchema.Response\x12R\n\x05\x43lose\x12#.cloudquery.plugin.v3.Close.Request\x1a$.cloudquery.plugin.v3.Close.Response\x12m\n\x0eTestConnection\x12,.cloudquery.plugin.v3.TestConnection.Request\x1a-.cloudquery.plugin.v3.TestConnection.Response\x12g\n\x0c\x41ssessTables\x12*.cloudquery.plugin.v3.AssessTables.Request\x1a+.cloudquery.plugin.v3.AssessTables.Response\x12\\\n\x0bWriteStream\x12#.cloudquery.plugin.v3.Write.Request\x1a$.cloudquery.plugin.v3.Write.Response(\x01\x30\x01\x42S\n\x17io.cloudquery.plugin.v3P\x01Z6github.com/cloudquery/plugin-pb-go/pb/plugin/v3;pluginb\x06proto3')
|
|
29
|
+
|
|
30
|
+
_globals = globals()
|
|
31
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
32
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'cloudquery.plugin_v3.plugin_pb2', _globals)
|
|
33
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
|
34
|
+
_globals['DESCRIPTOR']._loaded_options = None
|
|
35
|
+
_globals['DESCRIPTOR']._serialized_options = b'\n\027io.cloudquery.plugin.v3P\001Z6github.com/cloudquery/plugin-pb-go/pb/plugin/v3;plugin'
|
|
36
|
+
_globals['_WRITE_MESSAGEDELETESTALE'].fields_by_name['table']._loaded_options = None
|
|
37
|
+
_globals['_WRITE_MESSAGEDELETESTALE'].fields_by_name['table']._serialized_options = b'\030\001'
|
|
38
|
+
_globals['_GETNAME']._serialized_start=92
|
|
39
|
+
_globals['_GETNAME']._serialized_end=138
|
|
40
|
+
_globals['_GETNAME_REQUEST']._serialized_start=103
|
|
41
|
+
_globals['_GETNAME_REQUEST']._serialized_end=112
|
|
42
|
+
_globals['_GETNAME_RESPONSE']._serialized_start=114
|
|
43
|
+
_globals['_GETNAME_RESPONSE']._serialized_end=138
|
|
44
|
+
_globals['_GETVERSION']._serialized_start=140
|
|
45
|
+
_globals['_GETVERSION']._serialized_end=192
|
|
46
|
+
_globals['_GETVERSION_REQUEST']._serialized_start=103
|
|
47
|
+
_globals['_GETVERSION_REQUEST']._serialized_end=112
|
|
48
|
+
_globals['_GETVERSION_RESPONSE']._serialized_start=165
|
|
49
|
+
_globals['_GETVERSION_RESPONSE']._serialized_end=192
|
|
50
|
+
_globals['_GETSPECSCHEMA']._serialized_start=194
|
|
51
|
+
_globals['_GETSPECSCHEMA']._serialized_end=274
|
|
52
|
+
_globals['_GETSPECSCHEMA_REQUEST']._serialized_start=103
|
|
53
|
+
_globals['_GETSPECSCHEMA_REQUEST']._serialized_end=112
|
|
54
|
+
_globals['_GETSPECSCHEMA_RESPONSE']._serialized_start=222
|
|
55
|
+
_globals['_GETSPECSCHEMA_RESPONSE']._serialized_end=274
|
|
56
|
+
_globals['_INIT']._serialized_start=276
|
|
57
|
+
_globals['_INIT']._serialized_end=389
|
|
58
|
+
_globals['_INIT_REQUEST']._serialized_start=284
|
|
59
|
+
_globals['_INIT_REQUEST']._serialized_end=353
|
|
60
|
+
_globals['_INIT_RESPONSE']._serialized_start=355
|
|
61
|
+
_globals['_INIT_RESPONSE']._serialized_end=389
|
|
62
|
+
_globals['_GETTABLES']._serialized_start=391
|
|
63
|
+
_globals['_GETTABLES']._serialized_end=509
|
|
64
|
+
_globals['_GETTABLES_REQUEST']._serialized_start=404
|
|
65
|
+
_globals['_GETTABLES_REQUEST']._serialized_end=481
|
|
66
|
+
_globals['_GETTABLES_RESPONSE']._serialized_start=483
|
|
67
|
+
_globals['_GETTABLES_RESPONSE']._serialized_end=509
|
|
68
|
+
_globals['_SYNC']._serialized_start=512
|
|
69
|
+
_globals['_SYNC']._serialized_end=1593
|
|
70
|
+
_globals['_SYNC_MESSAGEINSERT']._serialized_start=520
|
|
71
|
+
_globals['_SYNC_MESSAGEINSERT']._serialized_end=551
|
|
72
|
+
_globals['_SYNC_MESSAGEMIGRATETABLE']._serialized_start=553
|
|
73
|
+
_globals['_SYNC_MESSAGEMIGRATETABLE']._serialized_end=589
|
|
74
|
+
_globals['_SYNC_MESSAGEDELETERECORD']._serialized_start=592
|
|
75
|
+
_globals['_SYNC_MESSAGEDELETERECORD']._serialized_end=756
|
|
76
|
+
_globals['_SYNC_MESSAGEERROR']._serialized_start=758
|
|
77
|
+
_globals['_SYNC_MESSAGEERROR']._serialized_end=807
|
|
78
|
+
_globals['_SYNC_MESSAGECHECKPOINT']._serialized_start=809
|
|
79
|
+
_globals['_SYNC_MESSAGECHECKPOINT']._serialized_end=844
|
|
80
|
+
_globals['_SYNC_BACKENDOPTIONS']._serialized_start=846
|
|
81
|
+
_globals['_SYNC_BACKENDOPTIONS']._serialized_end=902
|
|
82
|
+
_globals['_SYNC_REQUEST']._serialized_start=905
|
|
83
|
+
_globals['_SYNC_REQUEST']._serialized_end=1237
|
|
84
|
+
_globals['_SYNC_REQUEST_SHARD']._serialized_start=1192
|
|
85
|
+
_globals['_SYNC_REQUEST_SHARD']._serialized_end=1227
|
|
86
|
+
_globals['_SYNC_RESPONSE']._serialized_start=1240
|
|
87
|
+
_globals['_SYNC_RESPONSE']._serialized_end=1593
|
|
88
|
+
_globals['_READ']._serialized_start=1595
|
|
89
|
+
_globals['_READ']._serialized_end=1655
|
|
90
|
+
_globals['_READ_REQUEST']._serialized_start=1603
|
|
91
|
+
_globals['_READ_REQUEST']._serialized_end=1627
|
|
92
|
+
_globals['_READ_RESPONSE']._serialized_start=1629
|
|
93
|
+
_globals['_READ_RESPONSE']._serialized_end=1655
|
|
94
|
+
_globals['_TABLERELATION']._serialized_start=1657
|
|
95
|
+
_globals['_TABLERELATION']._serialized_end=1714
|
|
96
|
+
_globals['_PREDICATE']._serialized_start=1716
|
|
97
|
+
_globals['_PREDICATE']._serialized_end=1839
|
|
98
|
+
_globals['_PREDICATE_OPERATOR']._serialized_start=1821
|
|
99
|
+
_globals['_PREDICATE_OPERATOR']._serialized_end=1839
|
|
100
|
+
_globals['_PREDICATESGROUP']._serialized_start=1842
|
|
101
|
+
_globals['_PREDICATESGROUP']._serialized_end=2020
|
|
102
|
+
_globals['_PREDICATESGROUP_GROUPINGTYPE']._serialized_start=1989
|
|
103
|
+
_globals['_PREDICATESGROUP_GROUPINGTYPE']._serialized_end=2020
|
|
104
|
+
_globals['_WRITE']._serialized_start=2023
|
|
105
|
+
_globals['_WRITE']._serialized_end=2879
|
|
106
|
+
_globals['_WRITE_MESSAGEMIGRATETABLE']._serialized_start=2032
|
|
107
|
+
_globals['_WRITE_MESSAGEMIGRATETABLE']._serialized_end=2091
|
|
108
|
+
_globals['_WRITE_MESSAGEINSERT']._serialized_start=520
|
|
109
|
+
_globals['_WRITE_MESSAGEINSERT']._serialized_end=551
|
|
110
|
+
_globals['_WRITE_MESSAGEDELETESTALE']._serialized_start=2126
|
|
111
|
+
_globals['_WRITE_MESSAGEDELETESTALE']._serialized_end=2253
|
|
112
|
+
_globals['_WRITE_MESSAGEDELETERECORD']._serialized_start=592
|
|
113
|
+
_globals['_WRITE_MESSAGEDELETERECORD']._serialized_end=756
|
|
114
|
+
_globals['_WRITE_MESSAGEFLUSH']._serialized_start=2422
|
|
115
|
+
_globals['_WRITE_MESSAGEFLUSH']._serialized_end=2448
|
|
116
|
+
_globals['_WRITE_REQUEST']._serialized_start=2451
|
|
117
|
+
_globals['_WRITE_REQUEST']._serialized_end=2805
|
|
118
|
+
_globals['_WRITE_RESPONSE']._serialized_start=2807
|
|
119
|
+
_globals['_WRITE_RESPONSE']._serialized_end=2879
|
|
120
|
+
_globals['_TRANSFORM']._serialized_start=2881
|
|
121
|
+
_globals['_TRANSFORM']._serialized_end=2947
|
|
122
|
+
_globals['_TRANSFORM_REQUEST']._serialized_start=2894
|
|
123
|
+
_globals['_TRANSFORM_REQUEST']._serialized_end=2919
|
|
124
|
+
_globals['_TRANSFORM_RESPONSE']._serialized_start=1629
|
|
125
|
+
_globals['_TRANSFORM_RESPONSE']._serialized_end=1655
|
|
126
|
+
_globals['_TRANSFORMSCHEMA']._serialized_start=2949
|
|
127
|
+
_globals['_TRANSFORMSCHEMA']._serialized_end=3021
|
|
128
|
+
_globals['_TRANSFORMSCHEMA_REQUEST']._serialized_start=2968
|
|
129
|
+
_globals['_TRANSFORMSCHEMA_REQUEST']._serialized_end=2993
|
|
130
|
+
_globals['_TRANSFORMSCHEMA_RESPONSE']._serialized_start=2995
|
|
131
|
+
_globals['_TRANSFORMSCHEMA_RESPONSE']._serialized_end=3021
|
|
132
|
+
_globals['_CLOSE']._serialized_start=3023
|
|
133
|
+
_globals['_CLOSE']._serialized_end=3053
|
|
134
|
+
_globals['_CLOSE_REQUEST']._serialized_start=103
|
|
135
|
+
_globals['_CLOSE_REQUEST']._serialized_end=112
|
|
136
|
+
_globals['_CLOSE_RESPONSE']._serialized_start=114
|
|
137
|
+
_globals['_CLOSE_RESPONSE']._serialized_end=124
|
|
138
|
+
_globals['_TESTCONNECTION']._serialized_start=3055
|
|
139
|
+
_globals['_TESTCONNECTION']._serialized_end=3176
|
|
140
|
+
_globals['_TESTCONNECTION_REQUEST']._serialized_start=284
|
|
141
|
+
_globals['_TESTCONNECTION_REQUEST']._serialized_end=307
|
|
142
|
+
_globals['_TESTCONNECTION_RESPONSE']._serialized_start=3098
|
|
143
|
+
_globals['_TESTCONNECTION_RESPONSE']._serialized_end=3176
|
|
144
|
+
_globals['_ASSESSTABLES']._serialized_start=3179
|
|
145
|
+
_globals['_ASSESSTABLES']._serialized_end=4268
|
|
146
|
+
_globals['_ASSESSTABLES_TABLEPAIR']._serialized_start=3195
|
|
147
|
+
_globals['_ASSESSTABLES_TABLEPAIR']._serialized_end=3244
|
|
148
|
+
_globals['_ASSESSTABLES_EVIDENCE']._serialized_start=3246
|
|
149
|
+
_globals['_ASSESSTABLES_EVIDENCE']._serialized_end=3312
|
|
150
|
+
_globals['_ASSESSTABLES_COLUMNFINDING']._serialized_start=3315
|
|
151
|
+
_globals['_ASSESSTABLES_COLUMNFINDING']._serialized_end=3571
|
|
152
|
+
_globals['_ASSESSTABLES_TABLEFINDING']._serialized_start=3574
|
|
153
|
+
_globals['_ASSESSTABLES_TABLEFINDING']._serialized_end=3895
|
|
154
|
+
_globals['_ASSESSTABLES_REQUEST']._serialized_start=3897
|
|
155
|
+
_globals['_ASSESSTABLES_REQUEST']._serialized_end=3991
|
|
156
|
+
_globals['_ASSESSTABLES_RESPONSE']._serialized_start=3993
|
|
157
|
+
_globals['_ASSESSTABLES_RESPONSE']._serialized_end=4068
|
|
158
|
+
_globals['_ASSESSTABLES_CATEGORY']._serialized_start=4071
|
|
159
|
+
_globals['_ASSESSTABLES_CATEGORY']._serialized_end=4268
|
|
160
|
+
_globals['_PLUGIN']._serialized_start=4271
|
|
161
|
+
_globals['_PLUGIN']._serialized_end=5613
|
|
162
|
+
# @@protoc_insertion_point(module_scope)
|