sift-stack-py 0.3.2__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.
- google/__init__.py +1 -0
- google/api/__init__.py +0 -0
- google/api/annotations_pb2.py +27 -0
- google/api/annotations_pb2.pyi +29 -0
- google/api/annotations_pb2_grpc.py +4 -0
- google/api/annotations_pb2_grpc.pyi +30 -0
- google/api/field_behavior_pb2.py +30 -0
- google/api/field_behavior_pb2.pyi +175 -0
- google/api/field_behavior_pb2_grpc.py +4 -0
- google/api/field_behavior_pb2_grpc.pyi +30 -0
- google/api/http_pb2.py +31 -0
- google/api/http_pb2.pyi +433 -0
- google/api/http_pb2_grpc.py +4 -0
- google/api/http_pb2_grpc.pyi +30 -0
- protoc_gen_openapiv2/__init__.py +0 -0
- protoc_gen_openapiv2/options/__init__.py +0 -0
- protoc_gen_openapiv2/options/annotations_pb2.py +27 -0
- protoc_gen_openapiv2/options/annotations_pb2.pyi +48 -0
- protoc_gen_openapiv2/options/annotations_pb2_grpc.py +4 -0
- protoc_gen_openapiv2/options/annotations_pb2_grpc.pyi +17 -0
- protoc_gen_openapiv2/options/openapiv2_pb2.py +132 -0
- protoc_gen_openapiv2/options/openapiv2_pb2.pyi +1533 -0
- protoc_gen_openapiv2/options/openapiv2_pb2_grpc.py +4 -0
- protoc_gen_openapiv2/options/openapiv2_pb2_grpc.pyi +17 -0
- sift/__init__.py +0 -0
- sift/annotation_logs/__init__.py +0 -0
- sift/annotation_logs/v1/__init__.py +0 -0
- sift/annotation_logs/v1/annotation_logs_pb2.py +115 -0
- sift/annotation_logs/v1/annotation_logs_pb2.pyi +370 -0
- sift/annotation_logs/v1/annotation_logs_pb2_grpc.py +135 -0
- sift/annotation_logs/v1/annotation_logs_pb2_grpc.pyi +84 -0
- sift/annotations/__init__.py +0 -0
- sift/annotations/v1/__init__.py +0 -0
- sift/annotations/v1/annotations_pb2.py +180 -0
- sift/annotations/v1/annotations_pb2.pyi +539 -0
- sift/annotations/v1/annotations_pb2_grpc.py +237 -0
- sift/annotations/v1/annotations_pb2_grpc.pyi +144 -0
- sift/assets/__init__.py +0 -0
- sift/assets/v1/__init__.py +0 -0
- sift/assets/v1/assets_pb2.py +90 -0
- sift/assets/v1/assets_pb2.pyi +235 -0
- sift/assets/v1/assets_pb2_grpc.py +168 -0
- sift/assets/v1/assets_pb2_grpc.pyi +101 -0
- sift/calculated_channels/__init__.py +0 -0
- sift/calculated_channels/v1/__init__.py +0 -0
- sift/calculated_channels/v1/calculated_channels_pb2.py +99 -0
- sift/calculated_channels/v1/calculated_channels_pb2.pyi +280 -0
- sift/calculated_channels/v1/calculated_channels_pb2_grpc.py +101 -0
- sift/calculated_channels/v1/calculated_channels_pb2_grpc.pyi +64 -0
- sift/campaigns/__init__.py +0 -0
- sift/campaigns/v1/__init__.py +0 -0
- sift/campaigns/v1/campaigns_pb2.py +144 -0
- sift/campaigns/v1/campaigns_pb2.pyi +383 -0
- sift/campaigns/v1/campaigns_pb2_grpc.py +169 -0
- sift/campaigns/v1/campaigns_pb2_grpc.pyi +104 -0
- sift/channel_schemas/__init__.py +0 -0
- sift/channel_schemas/v1/__init__.py +0 -0
- sift/channel_schemas/v1/channel_schemas_pb2.py +69 -0
- sift/channel_schemas/v1/channel_schemas_pb2.pyi +117 -0
- sift/channel_schemas/v1/channel_schemas_pb2_grpc.py +101 -0
- sift/channel_schemas/v1/channel_schemas_pb2_grpc.pyi +64 -0
- sift/channels/__init__.py +0 -0
- sift/channels/v2/__init__.py +0 -0
- sift/channels/v2/channels_pb2.py +88 -0
- sift/channels/v2/channels_pb2.pyi +183 -0
- sift/channels/v2/channels_pb2_grpc.py +101 -0
- sift/channels/v2/channels_pb2_grpc.pyi +64 -0
- sift/common/__init__.py +0 -0
- sift/common/type/__init__.py +0 -0
- sift/common/type/v1/__init__.py +0 -0
- sift/common/type/v1/channel_bit_field_element_pb2.py +34 -0
- sift/common/type/v1/channel_bit_field_element_pb2.pyi +33 -0
- sift/common/type/v1/channel_bit_field_element_pb2_grpc.py +4 -0
- sift/common/type/v1/channel_bit_field_element_pb2_grpc.pyi +17 -0
- sift/common/type/v1/channel_data_type_pb2.py +29 -0
- sift/common/type/v1/channel_data_type_pb2.pyi +50 -0
- sift/common/type/v1/channel_data_type_pb2_grpc.py +4 -0
- sift/common/type/v1/channel_data_type_pb2_grpc.pyi +17 -0
- sift/common/type/v1/channel_enum_type_pb2.py +32 -0
- sift/common/type/v1/channel_enum_type_pb2.pyi +29 -0
- sift/common/type/v1/channel_enum_type_pb2_grpc.py +4 -0
- sift/common/type/v1/channel_enum_type_pb2_grpc.pyi +17 -0
- sift/common/type/v1/organization_pb2.py +27 -0
- sift/common/type/v1/organization_pb2.pyi +29 -0
- sift/common/type/v1/organization_pb2_grpc.py +4 -0
- sift/common/type/v1/organization_pb2_grpc.pyi +17 -0
- sift/common/type/v1/resource_identifier_pb2.py +46 -0
- sift/common/type/v1/resource_identifier_pb2.pyi +145 -0
- sift/common/type/v1/resource_identifier_pb2_grpc.py +4 -0
- sift/common/type/v1/resource_identifier_pb2_grpc.pyi +17 -0
- sift/common/type/v1/user_pb2.py +33 -0
- sift/common/type/v1/user_pb2.pyi +36 -0
- sift/common/type/v1/user_pb2_grpc.py +4 -0
- sift/common/type/v1/user_pb2_grpc.pyi +17 -0
- sift/data/__init__.py +0 -0
- sift/data/v1/__init__.py +0 -0
- sift/data/v1/data_pb2.py +212 -0
- sift/data/v1/data_pb2.pyi +745 -0
- sift/data/v1/data_pb2_grpc.py +67 -0
- sift/data/v1/data_pb2_grpc.pyi +44 -0
- sift/ingest/__init__.py +0 -0
- sift/ingest/v1/__init__.py +0 -0
- sift/ingest/v1/ingest_pb2.py +35 -0
- sift/ingest/v1/ingest_pb2.pyi +118 -0
- sift/ingest/v1/ingest_pb2_grpc.py +66 -0
- sift/ingest/v1/ingest_pb2_grpc.pyi +41 -0
- sift/ingestion_configs/__init__.py +0 -0
- sift/ingestion_configs/v1/__init__.py +0 -0
- sift/ingestion_configs/v1/ingestion_configs_pb2.py +115 -0
- sift/ingestion_configs/v1/ingestion_configs_pb2.pyi +332 -0
- sift/ingestion_configs/v1/ingestion_configs_pb2_grpc.py +203 -0
- sift/ingestion_configs/v1/ingestion_configs_pb2_grpc.pyi +124 -0
- sift/notifications/__init__.py +0 -0
- sift/notifications/v1/__init__.py +0 -0
- sift/notifications/v1/notifications_pb2.py +64 -0
- sift/notifications/v1/notifications_pb2.pyi +225 -0
- sift/notifications/v1/notifications_pb2_grpc.py +101 -0
- sift/notifications/v1/notifications_pb2_grpc.pyi +64 -0
- sift/ping/__init__.py +0 -0
- sift/ping/v1/__init__.py +0 -0
- sift/ping/v1/ping_pb2.py +38 -0
- sift/ping/v1/ping_pb2.pyi +36 -0
- sift/ping/v1/ping_pb2_grpc.py +66 -0
- sift/ping/v1/ping_pb2_grpc.pyi +41 -0
- sift/remote_files/__init__.py +0 -0
- sift/remote_files/v1/__init__.py +0 -0
- sift/remote_files/v1/remote_files_pb2.py +174 -0
- sift/remote_files/v1/remote_files_pb2.pyi +472 -0
- sift/remote_files/v1/remote_files_pb2_grpc.py +271 -0
- sift/remote_files/v1/remote_files_pb2_grpc.pyi +164 -0
- sift/report_templates/__init__.py +0 -0
- sift/report_templates/v1/__init__.py +0 -0
- sift/report_templates/v1/report_templates_pb2.py +146 -0
- sift/report_templates/v1/report_templates_pb2.pyi +381 -0
- sift/report_templates/v1/report_templates_pb2_grpc.py +169 -0
- sift/report_templates/v1/report_templates_pb2_grpc.pyi +104 -0
- sift/reports/__init__.py +0 -0
- sift/reports/v1/__init__.py +0 -0
- sift/reports/v1/reports_pb2.py +193 -0
- sift/reports/v1/reports_pb2.pyi +562 -0
- sift/reports/v1/reports_pb2_grpc.py +205 -0
- sift/reports/v1/reports_pb2_grpc.pyi +136 -0
- sift/rule_evaluation/__init__.py +0 -0
- sift/rule_evaluation/v1/__init__.py +0 -0
- sift/rule_evaluation/v1/rule_evaluation_pb2.py +89 -0
- sift/rule_evaluation/v1/rule_evaluation_pb2.pyi +263 -0
- sift/rule_evaluation/v1/rule_evaluation_pb2_grpc.py +101 -0
- sift/rule_evaluation/v1/rule_evaluation_pb2_grpc.pyi +64 -0
- sift/rules/__init__.py +0 -0
- sift/rules/v1/__init__.py +0 -0
- sift/rules/v1/rules_pb2.py +420 -0
- sift/rules/v1/rules_pb2.pyi +1355 -0
- sift/rules/v1/rules_pb2_grpc.py +577 -0
- sift/rules/v1/rules_pb2_grpc.pyi +351 -0
- sift/runs/__init__.py +0 -0
- sift/runs/v2/__init__.py +0 -0
- sift/runs/v2/runs_pb2.py +150 -0
- sift/runs/v2/runs_pb2.pyi +413 -0
- sift/runs/v2/runs_pb2_grpc.py +271 -0
- sift/runs/v2/runs_pb2_grpc.pyi +164 -0
- sift/saved_searches/__init__.py +0 -0
- sift/saved_searches/v1/__init__.py +0 -0
- sift/saved_searches/v1/saved_searches_pb2.py +144 -0
- sift/saved_searches/v1/saved_searches_pb2.pyi +385 -0
- sift/saved_searches/v1/saved_searches_pb2_grpc.py +237 -0
- sift/saved_searches/v1/saved_searches_pb2_grpc.pyi +144 -0
- sift/tags/__init__.py +0 -0
- sift/tags/v1/__init__.py +0 -0
- sift/tags/v1/tags_pb2.py +49 -0
- sift/tags/v1/tags_pb2.pyi +71 -0
- sift/tags/v1/tags_pb2_grpc.py +4 -0
- sift/tags/v1/tags_pb2_grpc.pyi +17 -0
- sift/users/__init__.py +0 -0
- sift/users/v2/__init__.py +0 -0
- sift/users/v2/users_pb2.py +61 -0
- sift/users/v2/users_pb2.pyi +142 -0
- sift/users/v2/users_pb2_grpc.py +135 -0
- sift/users/v2/users_pb2_grpc.pyi +84 -0
- sift/views/__init__.py +0 -0
- sift/views/v1/__init__.py +0 -0
- sift/views/v1/views_pb2.py +130 -0
- sift/views/v1/views_pb2.pyi +466 -0
- sift/views/v1/views_pb2_grpc.py +305 -0
- sift/views/v1/views_pb2_grpc.pyi +184 -0
- sift_grafana/py.typed +0 -0
- sift_grafana/sift_query_model.py +64 -0
- sift_py/__init__.py +923 -0
- sift_py/_internal/__init__.py +5 -0
- sift_py/_internal/cel.py +18 -0
- sift_py/_internal/channel.py +42 -0
- sift_py/_internal/convert/__init__.py +3 -0
- sift_py/_internal/convert/json.py +24 -0
- sift_py/_internal/convert/protobuf.py +34 -0
- sift_py/_internal/convert/timestamp.py +9 -0
- sift_py/_internal/test_util/__init__.py +0 -0
- sift_py/_internal/test_util/channel.py +136 -0
- sift_py/_internal/test_util/fn.py +14 -0
- sift_py/_internal/test_util/server_interceptor.py +62 -0
- sift_py/_internal/time.py +48 -0
- sift_py/_internal/user.py +39 -0
- sift_py/data/__init__.py +171 -0
- sift_py/data/_channel.py +38 -0
- sift_py/data/_deserialize.py +208 -0
- sift_py/data/_deserialize_test.py +134 -0
- sift_py/data/_service_test.py +276 -0
- sift_py/data/_validate.py +10 -0
- sift_py/data/error.py +5 -0
- sift_py/data/query.py +299 -0
- sift_py/data/service.py +497 -0
- sift_py/data_import/__init__.py +130 -0
- sift_py/data_import/_config.py +167 -0
- sift_py/data_import/_config_test.py +166 -0
- sift_py/data_import/_csv_test.py +395 -0
- sift_py/data_import/_status_test.py +176 -0
- sift_py/data_import/_tdms_test.py +238 -0
- sift_py/data_import/ch10.py +157 -0
- sift_py/data_import/config.py +19 -0
- sift_py/data_import/csv.py +259 -0
- sift_py/data_import/status.py +113 -0
- sift_py/data_import/tdms.py +206 -0
- sift_py/data_import/tempfile.py +30 -0
- sift_py/data_import/time_format.py +39 -0
- sift_py/error.py +11 -0
- sift_py/file_attachment/__init__.py +88 -0
- sift_py/file_attachment/_internal/__init__.py +0 -0
- sift_py/file_attachment/_internal/download.py +13 -0
- sift_py/file_attachment/_internal/upload.py +100 -0
- sift_py/file_attachment/_service_test.py +161 -0
- sift_py/file_attachment/entity.py +30 -0
- sift_py/file_attachment/metadata.py +107 -0
- sift_py/file_attachment/service.py +142 -0
- sift_py/grpc/__init__.py +15 -0
- sift_py/grpc/_async_interceptors/__init__.py +0 -0
- sift_py/grpc/_async_interceptors/base.py +72 -0
- sift_py/grpc/_async_interceptors/metadata.py +36 -0
- sift_py/grpc/_interceptors/__init__.py +0 -0
- sift_py/grpc/_interceptors/base.py +61 -0
- sift_py/grpc/_interceptors/context.py +25 -0
- sift_py/grpc/_interceptors/metadata.py +33 -0
- sift_py/grpc/_retry.py +70 -0
- sift_py/grpc/keepalive.py +34 -0
- sift_py/grpc/transport.py +250 -0
- sift_py/grpc/transport_test.py +170 -0
- sift_py/ingestion/__init__.py +6 -0
- sift_py/ingestion/_internal/__init__.py +6 -0
- sift_py/ingestion/_internal/channel.py +12 -0
- sift_py/ingestion/_internal/error.py +10 -0
- sift_py/ingestion/_internal/ingest.py +350 -0
- sift_py/ingestion/_internal/ingest_test.py +357 -0
- sift_py/ingestion/_internal/ingestion_config.py +130 -0
- sift_py/ingestion/_internal/run.py +46 -0
- sift_py/ingestion/_service_test.py +478 -0
- sift_py/ingestion/buffer.py +189 -0
- sift_py/ingestion/channel.py +422 -0
- sift_py/ingestion/config/__init__.py +3 -0
- sift_py/ingestion/config/telemetry.py +281 -0
- sift_py/ingestion/config/telemetry_test.py +405 -0
- sift_py/ingestion/config/yaml/__init__.py +0 -0
- sift_py/ingestion/config/yaml/error.py +44 -0
- sift_py/ingestion/config/yaml/load.py +126 -0
- sift_py/ingestion/config/yaml/spec.py +58 -0
- sift_py/ingestion/config/yaml/test_load.py +25 -0
- sift_py/ingestion/flow.py +73 -0
- sift_py/ingestion/manager.py +99 -0
- sift_py/ingestion/rule/__init__.py +4 -0
- sift_py/ingestion/rule/config.py +11 -0
- sift_py/ingestion/service.py +237 -0
- sift_py/py.typed +0 -0
- sift_py/report_templates/__init__.py +0 -0
- sift_py/report_templates/_config_test.py +34 -0
- sift_py/report_templates/_service_test.py +94 -0
- sift_py/report_templates/config.py +36 -0
- sift_py/report_templates/service.py +171 -0
- sift_py/rest.py +29 -0
- sift_py/rule/__init__.py +0 -0
- sift_py/rule/_config_test.py +109 -0
- sift_py/rule/_service_test.py +168 -0
- sift_py/rule/config.py +229 -0
- sift_py/rule/service.py +484 -0
- sift_py/yaml/__init__.py +0 -0
- sift_py/yaml/_channel_test.py +169 -0
- sift_py/yaml/_rule_test.py +207 -0
- sift_py/yaml/channel.py +224 -0
- sift_py/yaml/report_templates.py +73 -0
- sift_py/yaml/rule.py +321 -0
- sift_py/yaml/utils.py +15 -0
- sift_stack_py-0.3.2.dist-info/LICENSE +7 -0
- sift_stack_py-0.3.2.dist-info/METADATA +109 -0
- sift_stack_py-0.3.2.dist-info/RECORD +291 -0
- sift_stack_py-0.3.2.dist-info/WHEEL +5 -0
- sift_stack_py-0.3.2.dist-info/top_level.txt +5 -0
|
@@ -0,0 +1,101 @@
|
|
|
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 sift.channels.v2 import channels_pb2 as sift_dot_channels_dot_v2_dot_channels__pb2
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class ChannelServiceStub(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.GetChannel = channel.unary_unary(
|
|
18
|
+
'/sift.channels.v2.ChannelService/GetChannel',
|
|
19
|
+
request_serializer=sift_dot_channels_dot_v2_dot_channels__pb2.GetChannelRequest.SerializeToString,
|
|
20
|
+
response_deserializer=sift_dot_channels_dot_v2_dot_channels__pb2.GetChannelResponse.FromString,
|
|
21
|
+
)
|
|
22
|
+
self.ListChannels = channel.unary_unary(
|
|
23
|
+
'/sift.channels.v2.ChannelService/ListChannels',
|
|
24
|
+
request_serializer=sift_dot_channels_dot_v2_dot_channels__pb2.ListChannelsRequest.SerializeToString,
|
|
25
|
+
response_deserializer=sift_dot_channels_dot_v2_dot_channels__pb2.ListChannelsResponse.FromString,
|
|
26
|
+
)
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
class ChannelServiceServicer(object):
|
|
30
|
+
"""Missing associated documentation comment in .proto file."""
|
|
31
|
+
|
|
32
|
+
def GetChannel(self, request, context):
|
|
33
|
+
"""Retrieve a channel
|
|
34
|
+
"""
|
|
35
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
36
|
+
context.set_details('Method not implemented!')
|
|
37
|
+
raise NotImplementedError('Method not implemented!')
|
|
38
|
+
|
|
39
|
+
def ListChannels(self, request, context):
|
|
40
|
+
"""Retrieve channels using an optional filter.
|
|
41
|
+
"""
|
|
42
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
43
|
+
context.set_details('Method not implemented!')
|
|
44
|
+
raise NotImplementedError('Method not implemented!')
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
def add_ChannelServiceServicer_to_server(servicer, server):
|
|
48
|
+
rpc_method_handlers = {
|
|
49
|
+
'GetChannel': grpc.unary_unary_rpc_method_handler(
|
|
50
|
+
servicer.GetChannel,
|
|
51
|
+
request_deserializer=sift_dot_channels_dot_v2_dot_channels__pb2.GetChannelRequest.FromString,
|
|
52
|
+
response_serializer=sift_dot_channels_dot_v2_dot_channels__pb2.GetChannelResponse.SerializeToString,
|
|
53
|
+
),
|
|
54
|
+
'ListChannels': grpc.unary_unary_rpc_method_handler(
|
|
55
|
+
servicer.ListChannels,
|
|
56
|
+
request_deserializer=sift_dot_channels_dot_v2_dot_channels__pb2.ListChannelsRequest.FromString,
|
|
57
|
+
response_serializer=sift_dot_channels_dot_v2_dot_channels__pb2.ListChannelsResponse.SerializeToString,
|
|
58
|
+
),
|
|
59
|
+
}
|
|
60
|
+
generic_handler = grpc.method_handlers_generic_handler(
|
|
61
|
+
'sift.channels.v2.ChannelService', rpc_method_handlers)
|
|
62
|
+
server.add_generic_rpc_handlers((generic_handler,))
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
# This class is part of an EXPERIMENTAL API.
|
|
66
|
+
class ChannelService(object):
|
|
67
|
+
"""Missing associated documentation comment in .proto file."""
|
|
68
|
+
|
|
69
|
+
@staticmethod
|
|
70
|
+
def GetChannel(request,
|
|
71
|
+
target,
|
|
72
|
+
options=(),
|
|
73
|
+
channel_credentials=None,
|
|
74
|
+
call_credentials=None,
|
|
75
|
+
insecure=False,
|
|
76
|
+
compression=None,
|
|
77
|
+
wait_for_ready=None,
|
|
78
|
+
timeout=None,
|
|
79
|
+
metadata=None):
|
|
80
|
+
return grpc.experimental.unary_unary(request, target, '/sift.channels.v2.ChannelService/GetChannel',
|
|
81
|
+
sift_dot_channels_dot_v2_dot_channels__pb2.GetChannelRequest.SerializeToString,
|
|
82
|
+
sift_dot_channels_dot_v2_dot_channels__pb2.GetChannelResponse.FromString,
|
|
83
|
+
options, channel_credentials,
|
|
84
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
85
|
+
|
|
86
|
+
@staticmethod
|
|
87
|
+
def ListChannels(request,
|
|
88
|
+
target,
|
|
89
|
+
options=(),
|
|
90
|
+
channel_credentials=None,
|
|
91
|
+
call_credentials=None,
|
|
92
|
+
insecure=False,
|
|
93
|
+
compression=None,
|
|
94
|
+
wait_for_ready=None,
|
|
95
|
+
timeout=None,
|
|
96
|
+
metadata=None):
|
|
97
|
+
return grpc.experimental.unary_unary(request, target, '/sift.channels.v2.ChannelService/ListChannels',
|
|
98
|
+
sift_dot_channels_dot_v2_dot_channels__pb2.ListChannelsRequest.SerializeToString,
|
|
99
|
+
sift_dot_channels_dot_v2_dot_channels__pb2.ListChannelsResponse.FromString,
|
|
100
|
+
options, channel_credentials,
|
|
101
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"""
|
|
2
|
+
@generated by mypy-protobuf. Do not edit manually!
|
|
3
|
+
isort:skip_file
|
|
4
|
+
"""
|
|
5
|
+
|
|
6
|
+
import abc
|
|
7
|
+
import collections.abc
|
|
8
|
+
import grpc
|
|
9
|
+
import grpc.aio
|
|
10
|
+
import sift.channels.v2.channels_pb2
|
|
11
|
+
import typing
|
|
12
|
+
|
|
13
|
+
_T = typing.TypeVar("_T")
|
|
14
|
+
|
|
15
|
+
class _MaybeAsyncIterator(collections.abc.AsyncIterator[_T], collections.abc.Iterator[_T], metaclass=abc.ABCMeta): ...
|
|
16
|
+
|
|
17
|
+
class _ServicerContext(grpc.ServicerContext, grpc.aio.ServicerContext): # type: ignore[misc, type-arg]
|
|
18
|
+
...
|
|
19
|
+
|
|
20
|
+
class ChannelServiceStub:
|
|
21
|
+
def __init__(self, channel: typing.Union[grpc.Channel, grpc.aio.Channel]) -> None: ...
|
|
22
|
+
GetChannel: grpc.UnaryUnaryMultiCallable[
|
|
23
|
+
sift.channels.v2.channels_pb2.GetChannelRequest,
|
|
24
|
+
sift.channels.v2.channels_pb2.GetChannelResponse,
|
|
25
|
+
]
|
|
26
|
+
"""Retrieve a channel"""
|
|
27
|
+
|
|
28
|
+
ListChannels: grpc.UnaryUnaryMultiCallable[
|
|
29
|
+
sift.channels.v2.channels_pb2.ListChannelsRequest,
|
|
30
|
+
sift.channels.v2.channels_pb2.ListChannelsResponse,
|
|
31
|
+
]
|
|
32
|
+
"""Retrieve channels using an optional filter."""
|
|
33
|
+
|
|
34
|
+
class ChannelServiceAsyncStub:
|
|
35
|
+
GetChannel: grpc.aio.UnaryUnaryMultiCallable[
|
|
36
|
+
sift.channels.v2.channels_pb2.GetChannelRequest,
|
|
37
|
+
sift.channels.v2.channels_pb2.GetChannelResponse,
|
|
38
|
+
]
|
|
39
|
+
"""Retrieve a channel"""
|
|
40
|
+
|
|
41
|
+
ListChannels: grpc.aio.UnaryUnaryMultiCallable[
|
|
42
|
+
sift.channels.v2.channels_pb2.ListChannelsRequest,
|
|
43
|
+
sift.channels.v2.channels_pb2.ListChannelsResponse,
|
|
44
|
+
]
|
|
45
|
+
"""Retrieve channels using an optional filter."""
|
|
46
|
+
|
|
47
|
+
class ChannelServiceServicer(metaclass=abc.ABCMeta):
|
|
48
|
+
@abc.abstractmethod
|
|
49
|
+
def GetChannel(
|
|
50
|
+
self,
|
|
51
|
+
request: sift.channels.v2.channels_pb2.GetChannelRequest,
|
|
52
|
+
context: _ServicerContext,
|
|
53
|
+
) -> typing.Union[sift.channels.v2.channels_pb2.GetChannelResponse, collections.abc.Awaitable[sift.channels.v2.channels_pb2.GetChannelResponse]]:
|
|
54
|
+
"""Retrieve a channel"""
|
|
55
|
+
|
|
56
|
+
@abc.abstractmethod
|
|
57
|
+
def ListChannels(
|
|
58
|
+
self,
|
|
59
|
+
request: sift.channels.v2.channels_pb2.ListChannelsRequest,
|
|
60
|
+
context: _ServicerContext,
|
|
61
|
+
) -> typing.Union[sift.channels.v2.channels_pb2.ListChannelsResponse, collections.abc.Awaitable[sift.channels.v2.channels_pb2.ListChannelsResponse]]:
|
|
62
|
+
"""Retrieve channels using an optional filter."""
|
|
63
|
+
|
|
64
|
+
def add_ChannelServiceServicer_to_server(servicer: ChannelServiceServicer, server: typing.Union[grpc.Server, grpc.aio.Server]) -> None: ...
|
sift/common/__init__.py
ADDED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: sift/common/type/v1/channel_bit_field_element.proto
|
|
4
|
+
# Protobuf Python Version: 5.26.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.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n3sift/common/type/v1/channel_bit_field_element.proto\x12\x13sift.common.type.v1\x1a\x1fgoogle/api/field_behavior.proto\"n\n\x16\x43hannelBitFieldElement\x12\x17\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02R\x04name\x12\x19\n\x05index\x18\x02 \x01(\x05\x42\x03\xe0\x41\x02R\x05index\x12 \n\tbit_count\x18\x03 \x01(\rB\x03\xe0\x41\x02R\x08\x62itCountB\xa5\x01\n\x17\x63om.sift.common.type.v1B\x1b\x43hannelBitFieldElementProtoP\x01\xa2\x02\x03SCT\xaa\x02\x13Sift.Common.Type.V1\xca\x02\x13Sift\\Common\\Type\\V1\xe2\x02\x1fSift\\Common\\Type\\V1\\GPBMetadata\xea\x02\x16Sift::Common::Type::V1b\x06proto3')
|
|
19
|
+
|
|
20
|
+
_globals = globals()
|
|
21
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
22
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'sift.common.type.v1.channel_bit_field_element_pb2', _globals)
|
|
23
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
|
24
|
+
_globals['DESCRIPTOR']._loaded_options = None
|
|
25
|
+
_globals['DESCRIPTOR']._serialized_options = b'\n\027com.sift.common.type.v1B\033ChannelBitFieldElementProtoP\001\242\002\003SCT\252\002\023Sift.Common.Type.V1\312\002\023Sift\\Common\\Type\\V1\342\002\037Sift\\Common\\Type\\V1\\GPBMetadata\352\002\026Sift::Common::Type::V1'
|
|
26
|
+
_globals['_CHANNELBITFIELDELEMENT'].fields_by_name['name']._loaded_options = None
|
|
27
|
+
_globals['_CHANNELBITFIELDELEMENT'].fields_by_name['name']._serialized_options = b'\340A\002'
|
|
28
|
+
_globals['_CHANNELBITFIELDELEMENT'].fields_by_name['index']._loaded_options = None
|
|
29
|
+
_globals['_CHANNELBITFIELDELEMENT'].fields_by_name['index']._serialized_options = b'\340A\002'
|
|
30
|
+
_globals['_CHANNELBITFIELDELEMENT'].fields_by_name['bit_count']._loaded_options = None
|
|
31
|
+
_globals['_CHANNELBITFIELDELEMENT'].fields_by_name['bit_count']._serialized_options = b'\340A\002'
|
|
32
|
+
_globals['_CHANNELBITFIELDELEMENT']._serialized_start=109
|
|
33
|
+
_globals['_CHANNELBITFIELDELEMENT']._serialized_end=219
|
|
34
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"""
|
|
2
|
+
@generated by mypy-protobuf. Do not edit manually!
|
|
3
|
+
isort:skip_file
|
|
4
|
+
"""
|
|
5
|
+
|
|
6
|
+
import builtins
|
|
7
|
+
import google.protobuf.descriptor
|
|
8
|
+
import google.protobuf.message
|
|
9
|
+
import typing
|
|
10
|
+
|
|
11
|
+
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
|
|
12
|
+
|
|
13
|
+
@typing.final
|
|
14
|
+
class ChannelBitFieldElement(google.protobuf.message.Message):
|
|
15
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
16
|
+
|
|
17
|
+
NAME_FIELD_NUMBER: builtins.int
|
|
18
|
+
INDEX_FIELD_NUMBER: builtins.int
|
|
19
|
+
BIT_COUNT_FIELD_NUMBER: builtins.int
|
|
20
|
+
name: builtins.str
|
|
21
|
+
index: builtins.int
|
|
22
|
+
"""The index of this element's first bit in the logical bit field array."""
|
|
23
|
+
bit_count: builtins.int
|
|
24
|
+
def __init__(
|
|
25
|
+
self,
|
|
26
|
+
*,
|
|
27
|
+
name: builtins.str = ...,
|
|
28
|
+
index: builtins.int = ...,
|
|
29
|
+
bit_count: builtins.int = ...,
|
|
30
|
+
) -> None: ...
|
|
31
|
+
def ClearField(self, field_name: typing.Literal["bit_count", b"bit_count", "index", b"index", "name", b"name"]) -> None: ...
|
|
32
|
+
|
|
33
|
+
global___ChannelBitFieldElement = ChannelBitFieldElement
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"""
|
|
2
|
+
@generated by mypy-protobuf. Do not edit manually!
|
|
3
|
+
isort:skip_file
|
|
4
|
+
"""
|
|
5
|
+
|
|
6
|
+
import abc
|
|
7
|
+
import collections.abc
|
|
8
|
+
import grpc
|
|
9
|
+
import grpc.aio
|
|
10
|
+
import typing
|
|
11
|
+
|
|
12
|
+
_T = typing.TypeVar("_T")
|
|
13
|
+
|
|
14
|
+
class _MaybeAsyncIterator(collections.abc.AsyncIterator[_T], collections.abc.Iterator[_T], metaclass=abc.ABCMeta): ...
|
|
15
|
+
|
|
16
|
+
class _ServicerContext(grpc.ServicerContext, grpc.aio.ServicerContext): # type: ignore[misc, type-arg]
|
|
17
|
+
...
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: sift/common/type/v1/channel_data_type.proto
|
|
4
|
+
# Protobuf Python Version: 5.26.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'\n+sift/common/type/v1/channel_data_type.proto\x12\x13sift.common.type.v1*\xe4\x02\n\x0f\x43hannelDataType\x12%\n\x1d\x43HANNEL_DATA_TYPE_UNSPECIFIED\x10\x00\x1a\x02\x08\x01\x12\x1c\n\x18\x43HANNEL_DATA_TYPE_DOUBLE\x10\x01\x12\x1c\n\x18\x43HANNEL_DATA_TYPE_STRING\x10\x02\x12\x1a\n\x16\x43HANNEL_DATA_TYPE_ENUM\x10\x03\x12\x1f\n\x1b\x43HANNEL_DATA_TYPE_BIT_FIELD\x10\x04\x12\x1a\n\x16\x43HANNEL_DATA_TYPE_BOOL\x10\x05\x12\x1b\n\x17\x43HANNEL_DATA_TYPE_FLOAT\x10\x06\x12\x1c\n\x18\x43HANNEL_DATA_TYPE_INT_32\x10\x07\x12\x1d\n\x19\x43HANNEL_DATA_TYPE_UINT_32\x10\x08\x12\x1c\n\x18\x43HANNEL_DATA_TYPE_INT_64\x10\t\x12\x1d\n\x19\x43HANNEL_DATA_TYPE_UINT_64\x10\nB\x9e\x01\n\x17\x63om.sift.common.type.v1B\x14\x43hannelDataTypeProtoP\x01\xa2\x02\x03SCT\xaa\x02\x13Sift.Common.Type.V1\xca\x02\x13Sift\\Common\\Type\\V1\xe2\x02\x1fSift\\Common\\Type\\V1\\GPBMetadata\xea\x02\x16Sift::Common::Type::V1b\x06proto3')
|
|
18
|
+
|
|
19
|
+
_globals = globals()
|
|
20
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
21
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'sift.common.type.v1.channel_data_type_pb2', _globals)
|
|
22
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
|
23
|
+
_globals['DESCRIPTOR']._loaded_options = None
|
|
24
|
+
_globals['DESCRIPTOR']._serialized_options = b'\n\027com.sift.common.type.v1B\024ChannelDataTypeProtoP\001\242\002\003SCT\252\002\023Sift.Common.Type.V1\312\002\023Sift\\Common\\Type\\V1\342\002\037Sift\\Common\\Type\\V1\\GPBMetadata\352\002\026Sift::Common::Type::V1'
|
|
25
|
+
_globals['_CHANNELDATATYPE'].values_by_name["CHANNEL_DATA_TYPE_UNSPECIFIED"]._loaded_options = None
|
|
26
|
+
_globals['_CHANNELDATATYPE'].values_by_name["CHANNEL_DATA_TYPE_UNSPECIFIED"]._serialized_options = b'\010\001'
|
|
27
|
+
_globals['_CHANNELDATATYPE']._serialized_start=69
|
|
28
|
+
_globals['_CHANNELDATATYPE']._serialized_end=425
|
|
29
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"""
|
|
2
|
+
@generated by mypy-protobuf. Do not edit manually!
|
|
3
|
+
isort:skip_file
|
|
4
|
+
"""
|
|
5
|
+
|
|
6
|
+
import builtins
|
|
7
|
+
import google.protobuf.descriptor
|
|
8
|
+
import google.protobuf.internal.enum_type_wrapper
|
|
9
|
+
import sys
|
|
10
|
+
import typing
|
|
11
|
+
|
|
12
|
+
if sys.version_info >= (3, 10):
|
|
13
|
+
import typing as typing_extensions
|
|
14
|
+
else:
|
|
15
|
+
import typing_extensions
|
|
16
|
+
|
|
17
|
+
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
|
|
18
|
+
|
|
19
|
+
class _ChannelDataType:
|
|
20
|
+
ValueType = typing.NewType("ValueType", builtins.int)
|
|
21
|
+
V: typing_extensions.TypeAlias = ValueType
|
|
22
|
+
|
|
23
|
+
class _ChannelDataTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_ChannelDataType.ValueType], builtins.type):
|
|
24
|
+
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
|
|
25
|
+
CHANNEL_DATA_TYPE_UNSPECIFIED: _ChannelDataType.ValueType # 0
|
|
26
|
+
CHANNEL_DATA_TYPE_DOUBLE: _ChannelDataType.ValueType # 1
|
|
27
|
+
CHANNEL_DATA_TYPE_STRING: _ChannelDataType.ValueType # 2
|
|
28
|
+
CHANNEL_DATA_TYPE_ENUM: _ChannelDataType.ValueType # 3
|
|
29
|
+
CHANNEL_DATA_TYPE_BIT_FIELD: _ChannelDataType.ValueType # 4
|
|
30
|
+
CHANNEL_DATA_TYPE_BOOL: _ChannelDataType.ValueType # 5
|
|
31
|
+
CHANNEL_DATA_TYPE_FLOAT: _ChannelDataType.ValueType # 6
|
|
32
|
+
CHANNEL_DATA_TYPE_INT_32: _ChannelDataType.ValueType # 7
|
|
33
|
+
CHANNEL_DATA_TYPE_UINT_32: _ChannelDataType.ValueType # 8
|
|
34
|
+
CHANNEL_DATA_TYPE_INT_64: _ChannelDataType.ValueType # 9
|
|
35
|
+
CHANNEL_DATA_TYPE_UINT_64: _ChannelDataType.ValueType # 10
|
|
36
|
+
|
|
37
|
+
class ChannelDataType(_ChannelDataType, metaclass=_ChannelDataTypeEnumTypeWrapper): ...
|
|
38
|
+
|
|
39
|
+
CHANNEL_DATA_TYPE_UNSPECIFIED: ChannelDataType.ValueType # 0
|
|
40
|
+
CHANNEL_DATA_TYPE_DOUBLE: ChannelDataType.ValueType # 1
|
|
41
|
+
CHANNEL_DATA_TYPE_STRING: ChannelDataType.ValueType # 2
|
|
42
|
+
CHANNEL_DATA_TYPE_ENUM: ChannelDataType.ValueType # 3
|
|
43
|
+
CHANNEL_DATA_TYPE_BIT_FIELD: ChannelDataType.ValueType # 4
|
|
44
|
+
CHANNEL_DATA_TYPE_BOOL: ChannelDataType.ValueType # 5
|
|
45
|
+
CHANNEL_DATA_TYPE_FLOAT: ChannelDataType.ValueType # 6
|
|
46
|
+
CHANNEL_DATA_TYPE_INT_32: ChannelDataType.ValueType # 7
|
|
47
|
+
CHANNEL_DATA_TYPE_UINT_32: ChannelDataType.ValueType # 8
|
|
48
|
+
CHANNEL_DATA_TYPE_INT_64: ChannelDataType.ValueType # 9
|
|
49
|
+
CHANNEL_DATA_TYPE_UINT_64: ChannelDataType.ValueType # 10
|
|
50
|
+
global___ChannelDataType = ChannelDataType
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"""
|
|
2
|
+
@generated by mypy-protobuf. Do not edit manually!
|
|
3
|
+
isort:skip_file
|
|
4
|
+
"""
|
|
5
|
+
|
|
6
|
+
import abc
|
|
7
|
+
import collections.abc
|
|
8
|
+
import grpc
|
|
9
|
+
import grpc.aio
|
|
10
|
+
import typing
|
|
11
|
+
|
|
12
|
+
_T = typing.TypeVar("_T")
|
|
13
|
+
|
|
14
|
+
class _MaybeAsyncIterator(collections.abc.AsyncIterator[_T], collections.abc.Iterator[_T], metaclass=abc.ABCMeta): ...
|
|
15
|
+
|
|
16
|
+
class _ServicerContext(grpc.ServicerContext, grpc.aio.ServicerContext): # type: ignore[misc, type-arg]
|
|
17
|
+
...
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: sift/common/type/v1/channel_enum_type.proto
|
|
4
|
+
# Protobuf Python Version: 5.26.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.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n+sift/common/type/v1/channel_enum_type.proto\x12\x13sift.common.type.v1\x1a\x1fgoogle/api/field_behavior.proto\"A\n\x0f\x43hannelEnumType\x12\x17\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02R\x04name\x12\x15\n\x03key\x18\x02 \x01(\rB\x03\xe0\x41\x02R\x03keyB\x9e\x01\n\x17\x63om.sift.common.type.v1B\x14\x43hannelEnumTypeProtoP\x01\xa2\x02\x03SCT\xaa\x02\x13Sift.Common.Type.V1\xca\x02\x13Sift\\Common\\Type\\V1\xe2\x02\x1fSift\\Common\\Type\\V1\\GPBMetadata\xea\x02\x16Sift::Common::Type::V1b\x06proto3')
|
|
19
|
+
|
|
20
|
+
_globals = globals()
|
|
21
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
22
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'sift.common.type.v1.channel_enum_type_pb2', _globals)
|
|
23
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
|
24
|
+
_globals['DESCRIPTOR']._loaded_options = None
|
|
25
|
+
_globals['DESCRIPTOR']._serialized_options = b'\n\027com.sift.common.type.v1B\024ChannelEnumTypeProtoP\001\242\002\003SCT\252\002\023Sift.Common.Type.V1\312\002\023Sift\\Common\\Type\\V1\342\002\037Sift\\Common\\Type\\V1\\GPBMetadata\352\002\026Sift::Common::Type::V1'
|
|
26
|
+
_globals['_CHANNELENUMTYPE'].fields_by_name['name']._loaded_options = None
|
|
27
|
+
_globals['_CHANNELENUMTYPE'].fields_by_name['name']._serialized_options = b'\340A\002'
|
|
28
|
+
_globals['_CHANNELENUMTYPE'].fields_by_name['key']._loaded_options = None
|
|
29
|
+
_globals['_CHANNELENUMTYPE'].fields_by_name['key']._serialized_options = b'\340A\002'
|
|
30
|
+
_globals['_CHANNELENUMTYPE']._serialized_start=101
|
|
31
|
+
_globals['_CHANNELENUMTYPE']._serialized_end=166
|
|
32
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"""
|
|
2
|
+
@generated by mypy-protobuf. Do not edit manually!
|
|
3
|
+
isort:skip_file
|
|
4
|
+
"""
|
|
5
|
+
|
|
6
|
+
import builtins
|
|
7
|
+
import google.protobuf.descriptor
|
|
8
|
+
import google.protobuf.message
|
|
9
|
+
import typing
|
|
10
|
+
|
|
11
|
+
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
|
|
12
|
+
|
|
13
|
+
@typing.final
|
|
14
|
+
class ChannelEnumType(google.protobuf.message.Message):
|
|
15
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
16
|
+
|
|
17
|
+
NAME_FIELD_NUMBER: builtins.int
|
|
18
|
+
KEY_FIELD_NUMBER: builtins.int
|
|
19
|
+
name: builtins.str
|
|
20
|
+
key: builtins.int
|
|
21
|
+
def __init__(
|
|
22
|
+
self,
|
|
23
|
+
*,
|
|
24
|
+
name: builtins.str = ...,
|
|
25
|
+
key: builtins.int = ...,
|
|
26
|
+
) -> None: ...
|
|
27
|
+
def ClearField(self, field_name: typing.Literal["key", b"key", "name", b"name"]) -> None: ...
|
|
28
|
+
|
|
29
|
+
global___ChannelEnumType = ChannelEnumType
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"""
|
|
2
|
+
@generated by mypy-protobuf. Do not edit manually!
|
|
3
|
+
isort:skip_file
|
|
4
|
+
"""
|
|
5
|
+
|
|
6
|
+
import abc
|
|
7
|
+
import collections.abc
|
|
8
|
+
import grpc
|
|
9
|
+
import grpc.aio
|
|
10
|
+
import typing
|
|
11
|
+
|
|
12
|
+
_T = typing.TypeVar("_T")
|
|
13
|
+
|
|
14
|
+
class _MaybeAsyncIterator(collections.abc.AsyncIterator[_T], collections.abc.Iterator[_T], metaclass=abc.ABCMeta): ...
|
|
15
|
+
|
|
16
|
+
class _ServicerContext(grpc.ServicerContext, grpc.aio.ServicerContext): # type: ignore[misc, type-arg]
|
|
17
|
+
...
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: sift/common/type/v1/organization.proto
|
|
4
|
+
# Protobuf Python Version: 5.26.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'\n&sift/common/type/v1/organization.proto\x12\x13sift.common.type.v1\"d\n\x0cOrganization\x12\'\n\x0forganization_id\x18\x01 \x01(\tR\x0eorganizationId\x12+\n\x11organization_name\x18\x02 \x01(\tR\x10organizationNameB\x9b\x01\n\x17\x63om.sift.common.type.v1B\x11OrganizationProtoP\x01\xa2\x02\x03SCT\xaa\x02\x13Sift.Common.Type.V1\xca\x02\x13Sift\\Common\\Type\\V1\xe2\x02\x1fSift\\Common\\Type\\V1\\GPBMetadata\xea\x02\x16Sift::Common::Type::V1b\x06proto3')
|
|
18
|
+
|
|
19
|
+
_globals = globals()
|
|
20
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
21
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'sift.common.type.v1.organization_pb2', _globals)
|
|
22
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
|
23
|
+
_globals['DESCRIPTOR']._loaded_options = None
|
|
24
|
+
_globals['DESCRIPTOR']._serialized_options = b'\n\027com.sift.common.type.v1B\021OrganizationProtoP\001\242\002\003SCT\252\002\023Sift.Common.Type.V1\312\002\023Sift\\Common\\Type\\V1\342\002\037Sift\\Common\\Type\\V1\\GPBMetadata\352\002\026Sift::Common::Type::V1'
|
|
25
|
+
_globals['_ORGANIZATION']._serialized_start=63
|
|
26
|
+
_globals['_ORGANIZATION']._serialized_end=163
|
|
27
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"""
|
|
2
|
+
@generated by mypy-protobuf. Do not edit manually!
|
|
3
|
+
isort:skip_file
|
|
4
|
+
"""
|
|
5
|
+
|
|
6
|
+
import builtins
|
|
7
|
+
import google.protobuf.descriptor
|
|
8
|
+
import google.protobuf.message
|
|
9
|
+
import typing
|
|
10
|
+
|
|
11
|
+
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
|
|
12
|
+
|
|
13
|
+
@typing.final
|
|
14
|
+
class Organization(google.protobuf.message.Message):
|
|
15
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
16
|
+
|
|
17
|
+
ORGANIZATION_ID_FIELD_NUMBER: builtins.int
|
|
18
|
+
ORGANIZATION_NAME_FIELD_NUMBER: builtins.int
|
|
19
|
+
organization_id: builtins.str
|
|
20
|
+
organization_name: builtins.str
|
|
21
|
+
def __init__(
|
|
22
|
+
self,
|
|
23
|
+
*,
|
|
24
|
+
organization_id: builtins.str = ...,
|
|
25
|
+
organization_name: builtins.str = ...,
|
|
26
|
+
) -> None: ...
|
|
27
|
+
def ClearField(self, field_name: typing.Literal["organization_id", b"organization_id", "organization_name", b"organization_name"]) -> None: ...
|
|
28
|
+
|
|
29
|
+
global___Organization = Organization
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"""
|
|
2
|
+
@generated by mypy-protobuf. Do not edit manually!
|
|
3
|
+
isort:skip_file
|
|
4
|
+
"""
|
|
5
|
+
|
|
6
|
+
import abc
|
|
7
|
+
import collections.abc
|
|
8
|
+
import grpc
|
|
9
|
+
import grpc.aio
|
|
10
|
+
import typing
|
|
11
|
+
|
|
12
|
+
_T = typing.TypeVar("_T")
|
|
13
|
+
|
|
14
|
+
class _MaybeAsyncIterator(collections.abc.AsyncIterator[_T], collections.abc.Iterator[_T], metaclass=abc.ABCMeta): ...
|
|
15
|
+
|
|
16
|
+
class _ServicerContext(grpc.ServicerContext, grpc.aio.ServicerContext): # type: ignore[misc, type-arg]
|
|
17
|
+
...
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: sift/common/type/v1/resource_identifier.proto
|
|
4
|
+
# Protobuf Python Version: 5.26.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.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n-sift/common/type/v1/resource_identifier.proto\x12\x13sift.common.type.v1\x1a\x1fgoogle/api/field_behavior.proto\"U\n\x12ResourceIdentifier\x12\x10\n\x02id\x18\x01 \x01(\tH\x00R\x02id\x12\x1f\n\nclient_key\x18\x02 \x01(\tH\x00R\tclientKeyB\x0c\n\nidentifier\"C\n\rNamedResource\x12\x10\n\x02id\x18\x01 \x01(\tH\x00R\x02id\x12\x14\n\x04name\x18\x02 \x01(\tH\x00R\x04nameB\n\n\x08resource\"\x96\x01\n\x13ResourceIdentifiers\x12,\n\x03ids\x18\x01 \x01(\x0b\x32\x18.sift.common.type.v1.IdsH\x00R\x03ids\x12\x42\n\x0b\x63lient_keys\x18\x02 \x01(\x0b\x32\x1f.sift.common.type.v1.ClientKeysH\x00R\nclientKeysB\r\n\x0bidentifiers\"\x7f\n\x0eNamedResources\x12,\n\x03ids\x18\x01 \x01(\x0b\x32\x18.sift.common.type.v1.IdsH\x00R\x03ids\x12\x32\n\x05names\x18\x02 \x01(\x0b\x32\x1a.sift.common.type.v1.NamesH\x00R\x05namesB\x0b\n\tresources\"\x1c\n\x03Ids\x12\x15\n\x03ids\x18\x01 \x03(\tB\x03\xe0\x41\x02R\x03ids\"2\n\nClientKeys\x12$\n\x0b\x63lient_keys\x18\x01 \x03(\tB\x03\xe0\x41\x02R\nclientKeys\"\"\n\x05Names\x12\x19\n\x05names\x18\x01 \x03(\tB\x03\xe0\x41\x02R\x05namesB\xa1\x01\n\x17\x63om.sift.common.type.v1B\x17ResourceIdentifierProtoP\x01\xa2\x02\x03SCT\xaa\x02\x13Sift.Common.Type.V1\xca\x02\x13Sift\\Common\\Type\\V1\xe2\x02\x1fSift\\Common\\Type\\V1\\GPBMetadata\xea\x02\x16Sift::Common::Type::V1b\x06proto3')
|
|
19
|
+
|
|
20
|
+
_globals = globals()
|
|
21
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
22
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'sift.common.type.v1.resource_identifier_pb2', _globals)
|
|
23
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
|
24
|
+
_globals['DESCRIPTOR']._loaded_options = None
|
|
25
|
+
_globals['DESCRIPTOR']._serialized_options = b'\n\027com.sift.common.type.v1B\027ResourceIdentifierProtoP\001\242\002\003SCT\252\002\023Sift.Common.Type.V1\312\002\023Sift\\Common\\Type\\V1\342\002\037Sift\\Common\\Type\\V1\\GPBMetadata\352\002\026Sift::Common::Type::V1'
|
|
26
|
+
_globals['_IDS'].fields_by_name['ids']._loaded_options = None
|
|
27
|
+
_globals['_IDS'].fields_by_name['ids']._serialized_options = b'\340A\002'
|
|
28
|
+
_globals['_CLIENTKEYS'].fields_by_name['client_keys']._loaded_options = None
|
|
29
|
+
_globals['_CLIENTKEYS'].fields_by_name['client_keys']._serialized_options = b'\340A\002'
|
|
30
|
+
_globals['_NAMES'].fields_by_name['names']._loaded_options = None
|
|
31
|
+
_globals['_NAMES'].fields_by_name['names']._serialized_options = b'\340A\002'
|
|
32
|
+
_globals['_RESOURCEIDENTIFIER']._serialized_start=103
|
|
33
|
+
_globals['_RESOURCEIDENTIFIER']._serialized_end=188
|
|
34
|
+
_globals['_NAMEDRESOURCE']._serialized_start=190
|
|
35
|
+
_globals['_NAMEDRESOURCE']._serialized_end=257
|
|
36
|
+
_globals['_RESOURCEIDENTIFIERS']._serialized_start=260
|
|
37
|
+
_globals['_RESOURCEIDENTIFIERS']._serialized_end=410
|
|
38
|
+
_globals['_NAMEDRESOURCES']._serialized_start=412
|
|
39
|
+
_globals['_NAMEDRESOURCES']._serialized_end=539
|
|
40
|
+
_globals['_IDS']._serialized_start=541
|
|
41
|
+
_globals['_IDS']._serialized_end=569
|
|
42
|
+
_globals['_CLIENTKEYS']._serialized_start=571
|
|
43
|
+
_globals['_CLIENTKEYS']._serialized_end=621
|
|
44
|
+
_globals['_NAMES']._serialized_start=623
|
|
45
|
+
_globals['_NAMES']._serialized_end=657
|
|
46
|
+
# @@protoc_insertion_point(module_scope)
|