diff --git a/Pipfile b/Pipfile index 129d991..aa5049e 100644 --- a/Pipfile +++ b/Pipfile @@ -5,6 +5,8 @@ name = "pypi" [packages] black = "==20.8b1" +# Locked because upgrading to 1.31.3 leads to incompatible version requirements on the protobuf library. +google-api-core = "==1.31.2" grpcio = "*" isort = "*" mypy = "*" diff --git a/Pipfile.lock b/Pipfile.lock index c88c074..0779c43 100644 --- a/Pipfile.lock +++ b/Pipfile.lock @@ -1,7 +1,7 @@ { "_meta": { "hash": { - "sha256": "14a90f833e569583d8ad7cca4119758c134ef38ed6a0af5d864e9c78624725b8" + "sha256": "eccaf0089780b8e02b0fafeff4864b1383ec330358945f302781ab2c6ebc2cd9" }, "pipfile-spec": 6, "requires": { @@ -46,6 +46,14 @@ "markers": "python_version >= '3.6'", "version": "==4.1.0" }, + "cachetools": { + "hashes": [ + "sha256:89ea6f1b638d5a73a4f9226be57ac5e4f399d22770b92355f92dcb0f7f001693", + "sha256:92971d3cb7d2a97efff7c7bb1657f21a8f5fb309a37530537c71b1774189f2d1" + ], + "markers": "python_version ~= '3.5'", + "version": "==4.2.4" + }, "certifi": { "hashes": [ "sha256:2bbf76fd432960138b3ef6dda3dde0544f27cbf8546c458e60baf371917ba9ee", @@ -166,6 +174,30 @@ "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4'", "version": "==0.17.1" }, + "google-api-core": { + "hashes": [ + "sha256:384459a0dc98c1c8cd90b28dc5800b8705e0275a673a7144a513ae80fc77950b", + "sha256:8500aded318fdb235130bf183c726a05a9cb7c4b09c266bd5119b86cdb8a4d10" + ], + "index": "pypi", + "version": "==1.31.2" + }, + "google-auth": { + "hashes": [ + "sha256:997516b42ecb5b63e8d80f5632c1a61dddf41d2a4c2748057837e06e00014258", + "sha256:b7033be9028c188ee30200b204ea00ed82ea1162e8ac1df4aa6ded19a191d88e" + ], + "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4, 3.5'", + "version": "==1.35.0" + }, + "googleapis-common-protos": { + "hashes": [ + "sha256:a4031d6ec6c2b1b6dc3e0be7e10a1bd72fb0b18b07ef9be7b51f2c1004ce2437", + "sha256:e54345a2add15dc5e1a7891c27731ff347b4c33765d79b5ed7026a6c0c7cbcae" + ], + "markers": "python_version >= '3.6'", + "version": "==1.54.0" + }, "grpcio": { "hashes": [ "sha256:005fe14e67291498989da67d454d805be31d57a988af28ed3a2a0a7cabb05c53", @@ -460,6 +492,42 @@ "index": "pypi", "version": "==3.17.3" }, + "pyasn1": { + "hashes": [ + "sha256:014c0e9976956a08139dc0712ae195324a75e142284d5f87f1a87ee1b068a359", + "sha256:03840c999ba71680a131cfaee6fab142e1ed9bbd9c693e285cc6aca0d555e576", + "sha256:0458773cfe65b153891ac249bcf1b5f8f320b7c2ce462151f8fa74de8934becf", + "sha256:08c3c53b75eaa48d71cf8c710312316392ed40899cb34710d092e96745a358b7", + "sha256:39c7e2ec30515947ff4e87fb6f456dfc6e84857d34be479c9d4a4ba4bf46aa5d", + "sha256:5c9414dcfede6e441f7e8f81b43b34e834731003427e5b09e4e00e3172a10f00", + "sha256:6e7545f1a61025a4e58bb336952c5061697da694db1cae97b116e9c46abcf7c8", + "sha256:78fa6da68ed2727915c4767bb386ab32cdba863caa7dbe473eaae45f9959da86", + "sha256:7ab8a544af125fb704feadb008c99a88805126fb525280b2270bb25cc1d78a12", + "sha256:99fcc3c8d804d1bc6d9a099921e39d827026409a58f2a720dcdb89374ea0c776", + "sha256:aef77c9fb94a3ac588e87841208bdec464471d9871bd5050a287cc9a475cd0ba", + "sha256:e89bf84b5437b532b0803ba5c9a5e054d21fec423a89952a74f87fa2c9b7bce2", + "sha256:fec3e9d8e36808a28efb59b489e4528c10ad0f480e57dcc32b4de5c9d8c9fdf3" + ], + "version": "==0.4.8" + }, + "pyasn1-modules": { + "hashes": [ + "sha256:0845a5582f6a02bb3e1bde9ecfc4bfcae6ec3210dd270522fee602365430c3f8", + "sha256:0fe1b68d1e486a1ed5473f1302bd991c1611d319bba158e98b106ff86e1d7199", + "sha256:15b7c67fabc7fc240d87fb9aabf999cf82311a6d6fb2c70d00d3d0604878c811", + "sha256:426edb7a5e8879f1ec54a1864f16b882c2837bfd06eee62f2c982315ee2473ed", + "sha256:65cebbaffc913f4fe9e4808735c95ea22d7a7775646ab690518c056784bc21b4", + "sha256:905f84c712230b2c592c19470d3ca8d552de726050d1d1716282a1f6146be65e", + "sha256:a50b808ffeb97cb3601dd25981f6b016cbb3d31fbf57a8b8a87428e6158d0c74", + "sha256:a99324196732f53093a84c4369c996713eb8c89d360a496b599fb1a9c47fc3eb", + "sha256:b80486a6c77252ea3a3e9b1e360bc9cf28eaac41263d173c032581ad2f20fe45", + "sha256:c29a5e5cc7a3f05926aff34e097e84f8589cd790ce0ed41b67aed6857b26aafd", + "sha256:cbac4bc38d117f2a49aeedec4407d23e8866ea4ac27ff2cf7fb3e5b570df19e0", + "sha256:f39edd8c4ecaa4556e989147ebf219227e2cd2e8a43c7e7fcb1f1c18c5fd6a3d", + "sha256:fe0644d9ab041506b62782e92b06b8c68cca799e1a9636ec398675459e031405" + ], + "version": "==0.2.8" + }, "pycodestyle": { "hashes": [ "sha256:514f76d918fcc0b55c6680472f0a37970994e07bbb80725808c17089be302068", @@ -590,6 +658,14 @@ ], "version": "==1.5.0" }, + "rsa": { + "hashes": [ + "sha256:5c6bd9dc7a543b7fe4304a631f8a8a3b674e2bbfc49c2ae96200cdbe55df6b17", + "sha256:95c5d300c4e879ee69708c428ba566c59478fd653cc3a22243eeb8ed846950bb" + ], + "markers": "python_version >= '3.6'", + "version": "==4.8" + }, "secretstorage": { "hashes": [ "sha256:422d82c36172d88d6a0ed5afdec956514b189ddbfb72fefab0c8a1cee4eaf71f", @@ -598,6 +674,14 @@ "markers": "sys_platform == 'linux'", "version": "==3.3.1" }, + "setuptools": { + "hashes": [ + "sha256:6d10741ff20b89cd8c6a536ee9dc90d3002dec0226c78fb98605bfb9ef8a7adf", + "sha256:d144f85102f999444d06f9c0e8c737fd0194f10f2f7e5fdb77573f6e2fa4fad0" + ], + "index": "pypi", + "version": "==59.5.0" + }, "six": { "hashes": [ "sha256:1e61c37477a1626458e36f7b1d82aa5c9b094fa4802892072e49de9c60c4c926", diff --git a/exabel_data_sdk/stubs/exabel/api/data/v1/all_pb2.py b/exabel_data_sdk/stubs/exabel/api/data/v1/all_pb2.py index 0908b78..743be65 100644 --- a/exabel_data_sdk/stubs/exabel/api/data/v1/all_pb2.py +++ b/exabel_data_sdk/stubs/exabel/api/data/v1/all_pb2.py @@ -1,6 +1,8 @@ # Generated by generate_protobuf_stubs.sh. # Contains all messages in *_pb2.py in a single module. +from exabel_data_sdk.stubs.exabel.api.data.v1.data_set_messages_pb2 import * +from exabel_data_sdk.stubs.exabel.api.data.v1.data_set_service_pb2 import * from exabel_data_sdk.stubs.exabel.api.data.v1.entity_messages_pb2 import * from exabel_data_sdk.stubs.exabel.api.data.v1.entity_service_pb2 import * from exabel_data_sdk.stubs.exabel.api.data.v1.internal_entity_service_pb2 import * diff --git a/exabel_data_sdk/stubs/exabel/api/data/v1/all_pb2_grpc.py b/exabel_data_sdk/stubs/exabel/api/data/v1/all_pb2_grpc.py index 51806b3..37bf506 100644 --- a/exabel_data_sdk/stubs/exabel/api/data/v1/all_pb2_grpc.py +++ b/exabel_data_sdk/stubs/exabel/api/data/v1/all_pb2_grpc.py @@ -1,6 +1,8 @@ # Generated by generate_protobuf_stubs.sh. # Contains all messages in *_pb2_grpc.py in a single module. +from exabel_data_sdk.stubs.exabel.api.data.v1.data_set_messages_pb2_grpc import * +from exabel_data_sdk.stubs.exabel.api.data.v1.data_set_service_pb2_grpc import * from exabel_data_sdk.stubs.exabel.api.data.v1.entity_messages_pb2_grpc import * from exabel_data_sdk.stubs.exabel.api.data.v1.entity_service_pb2_grpc import * from exabel_data_sdk.stubs.exabel.api.data.v1.internal_entity_service_pb2_grpc import * diff --git a/exabel_data_sdk/stubs/exabel/api/data/v1/data_set_messages_pb2.py b/exabel_data_sdk/stubs/exabel/api/data/v1/data_set_messages_pb2.py new file mode 100644 index 0000000..579ed62 --- /dev/null +++ b/exabel_data_sdk/stubs/exabel/api/data/v1/data_set_messages_pb2.py @@ -0,0 +1,97 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: exabel/api/data/v1/data_set_messages.proto +"""Generated protocol buffer code.""" +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='exabel/api/data/v1/data_set_messages.proto', + package='exabel.api.data.v1', + syntax='proto3', + serialized_options=b'\n\026com.exabel.api.data.v1B\024DataSetMessagesProtoP\001', + create_key=_descriptor._internal_create_key, + serialized_pb=b'\n*exabel/api/data/v1/data_set_messages.proto\x12\x12\x65xabel.api.data.v1\x1a\x1fgoogle/api/field_behavior.proto\"e\n\x07\x44\x61taSet\x12\x14\n\x04name\x18\x01 \x01(\tB\x06\xe0\x41\x05\xe0\x41\x02\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12\x14\n\x07signals\x18\x04 \x03(\tB\x03\xe0\x41\x06\x42\x30\n\x16\x63om.exabel.api.data.v1B\x14\x44\x61taSetMessagesProtoP\x01\x62\x06proto3' + , + dependencies=[google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,]) + + + + +_DATASET = _descriptor.Descriptor( + name='DataSet', + full_name='exabel.api.data.v1.DataSet', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='name', full_name='exabel.api.data.v1.DataSet.name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=b'\340A\005\340A\002', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='display_name', full_name='exabel.api.data.v1.DataSet.display_name', index=1, + number=2, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=b'\340A\002', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='description', full_name='exabel.api.data.v1.DataSet.description', index=2, + number=3, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='signals', full_name='exabel.api.data.v1.DataSet.signals', index=3, + number=4, type=9, cpp_type=9, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=b'\340A\006', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=99, + serialized_end=200, +) + +DESCRIPTOR.message_types_by_name['DataSet'] = _DATASET +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +DataSet = _reflection.GeneratedProtocolMessageType('DataSet', (_message.Message,), { + 'DESCRIPTOR' : _DATASET, + '__module__' : 'exabel.api.data.v1.data_set_messages_pb2' + # @@protoc_insertion_point(class_scope:exabel.api.data.v1.DataSet) + }) +_sym_db.RegisterMessage(DataSet) + + +DESCRIPTOR._options = None +_DATASET.fields_by_name['name']._options = None +_DATASET.fields_by_name['display_name']._options = None +_DATASET.fields_by_name['signals']._options = None +# @@protoc_insertion_point(module_scope) diff --git a/exabel_data_sdk/stubs/exabel/api/data/v1/data_set_messages_pb2.pyi b/exabel_data_sdk/stubs/exabel/api/data/v1/data_set_messages_pb2.pyi new file mode 100644 index 0000000..6f18ac6 --- /dev/null +++ b/exabel_data_sdk/stubs/exabel/api/data/v1/data_set_messages_pb2.pyi @@ -0,0 +1,52 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +from google.protobuf.descriptor import ( + Descriptor as google___protobuf___descriptor___Descriptor, + FileDescriptor as google___protobuf___descriptor___FileDescriptor, +) + +from google.protobuf.internal.containers import ( + RepeatedScalarFieldContainer as google___protobuf___internal___containers___RepeatedScalarFieldContainer, +) + +from google.protobuf.message import ( + Message as google___protobuf___message___Message, +) + +from typing import ( + Iterable as typing___Iterable, + Optional as typing___Optional, + Text as typing___Text, +) + +from typing_extensions import ( + Literal as typing_extensions___Literal, +) + + +builtin___bool = bool +builtin___bytes = bytes +builtin___float = float +builtin___int = int + + +DESCRIPTOR: google___protobuf___descriptor___FileDescriptor = ... + +class DataSet(google___protobuf___message___Message): + DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... + name: typing___Text = ... + display_name: typing___Text = ... + description: typing___Text = ... + signals: google___protobuf___internal___containers___RepeatedScalarFieldContainer[typing___Text] = ... + + def __init__(self, + *, + name : typing___Optional[typing___Text] = None, + display_name : typing___Optional[typing___Text] = None, + description : typing___Optional[typing___Text] = None, + signals : typing___Optional[typing___Iterable[typing___Text]] = None, + ) -> None: ... + def ClearField(self, field_name: typing_extensions___Literal[u"description",b"description",u"display_name",b"display_name",u"name",b"name",u"signals",b"signals"]) -> None: ... +type___DataSet = DataSet diff --git a/exabel_data_sdk/stubs/google/api/annotations_pb2_grpc.py b/exabel_data_sdk/stubs/exabel/api/data/v1/data_set_messages_pb2_grpc.py similarity index 100% rename from exabel_data_sdk/stubs/google/api/annotations_pb2_grpc.py rename to exabel_data_sdk/stubs/exabel/api/data/v1/data_set_messages_pb2_grpc.py diff --git a/exabel_data_sdk/stubs/exabel/api/data/v1/data_set_service_pb2.py b/exabel_data_sdk/stubs/exabel/api/data/v1/data_set_service_pb2.py new file mode 100644 index 0000000..8d2f06b --- /dev/null +++ b/exabel_data_sdk/stubs/exabel/api/data/v1/data_set_service_pb2.py @@ -0,0 +1,351 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: exabel/api/data/v1/data_set_service.proto +"""Generated protocol buffer code.""" +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from exabel_data_sdk.stubs.exabel.api.data.v1 import data_set_messages_pb2 as exabel_dot_api_dot_data_dot_v1_dot_data__set__messages__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 +from google.protobuf import field_mask_pb2 as google_dot_protobuf_dot_field__mask__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='exabel/api/data/v1/data_set_service.proto', + package='exabel.api.data.v1', + syntax='proto3', + serialized_options=b'\n\026com.exabel.api.data.v1B\023DataSetServiceProtoP\001', + create_key=_descriptor._internal_create_key, + serialized_pb=b'\n)exabel/api/data/v1/data_set_service.proto\x12\x12\x65xabel.api.data.v1\x1a*exabel/api/data/v1/data_set_messages.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\"\x15\n\x13ListDataSetsRequest\"F\n\x14ListDataSetsResponse\x12.\n\tdata_sets\x18\x01 \x03(\x0b\x32\x1b.exabel.api.data.v1.DataSet\"&\n\x11GetDataSetRequest\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\"J\n\x14\x43reateDataSetRequest\x12\x32\n\x08\x64\x61ta_set\x18\x01 \x01(\x0b\x32\x1b.exabel.api.data.v1.DataSetB\x03\xe0\x41\x02\"{\n\x14UpdateDataSetRequest\x12\x32\n\x08\x64\x61ta_set\x18\x01 \x01(\x0b\x32\x1b.exabel.api.data.v1.DataSetB\x03\xe0\x41\x02\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\")\n\x14\x44\x65leteDataSetRequest\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x32\xef\x04\n\x0e\x44\x61taSetService\x12w\n\x0cListDataSets\x12\'.exabel.api.data.v1.ListDataSetsRequest\x1a(.exabel.api.data.v1.ListDataSetsResponse\"\x14\x82\xd3\xe4\x93\x02\x0e\x12\x0c/v1/dataSets\x12o\n\nGetDataSet\x12%.exabel.api.data.v1.GetDataSetRequest\x1a\x1b.exabel.api.data.v1.DataSet\"\x1d\x82\xd3\xe4\x93\x02\x17\x12\x15/v1/{name=dataSets/*}\x12v\n\rCreateDataSet\x12(.exabel.api.data.v1.CreateDataSetRequest\x1a\x1b.exabel.api.data.v1.DataSet\"\x1e\x82\xd3\xe4\x93\x02\x18\"\x0c/v1/dataSets:\x08\x64\x61ta_set\x12\x88\x01\n\rUpdateDataSet\x12(.exabel.api.data.v1.UpdateDataSetRequest\x1a\x1b.exabel.api.data.v1.DataSet\"0\x82\xd3\xe4\x93\x02*2\x1e/v1/{data_set.name=dataSets/*}:\x08\x64\x61ta_set\x12p\n\rDeleteDataSet\x12(.exabel.api.data.v1.DeleteDataSetRequest\x1a\x16.google.protobuf.Empty\"\x1d\x82\xd3\xe4\x93\x02\x17*\x15/v1/{name=dataSets/*}B/\n\x16\x63om.exabel.api.data.v1B\x13\x44\x61taSetServiceProtoP\x01\x62\x06proto3' + , + dependencies=[exabel_dot_api_dot_data_dot_v1_dot_data__set__messages__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_protobuf_dot_empty__pb2.DESCRIPTOR,google_dot_protobuf_dot_field__mask__pb2.DESCRIPTOR,]) + + + + +_LISTDATASETSREQUEST = _descriptor.Descriptor( + name='ListDataSetsRequest', + full_name='exabel.api.data.v1.ListDataSetsRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=235, + serialized_end=256, +) + + +_LISTDATASETSRESPONSE = _descriptor.Descriptor( + name='ListDataSetsResponse', + full_name='exabel.api.data.v1.ListDataSetsResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='data_sets', full_name='exabel.api.data.v1.ListDataSetsResponse.data_sets', index=0, + number=1, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=258, + serialized_end=328, +) + + +_GETDATASETREQUEST = _descriptor.Descriptor( + name='GetDataSetRequest', + full_name='exabel.api.data.v1.GetDataSetRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='name', full_name='exabel.api.data.v1.GetDataSetRequest.name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=b'\340A\002', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=330, + serialized_end=368, +) + + +_CREATEDATASETREQUEST = _descriptor.Descriptor( + name='CreateDataSetRequest', + full_name='exabel.api.data.v1.CreateDataSetRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='data_set', full_name='exabel.api.data.v1.CreateDataSetRequest.data_set', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=b'\340A\002', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=370, + serialized_end=444, +) + + +_UPDATEDATASETREQUEST = _descriptor.Descriptor( + name='UpdateDataSetRequest', + full_name='exabel.api.data.v1.UpdateDataSetRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='data_set', full_name='exabel.api.data.v1.UpdateDataSetRequest.data_set', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=b'\340A\002', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='update_mask', full_name='exabel.api.data.v1.UpdateDataSetRequest.update_mask', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=446, + serialized_end=569, +) + + +_DELETEDATASETREQUEST = _descriptor.Descriptor( + name='DeleteDataSetRequest', + full_name='exabel.api.data.v1.DeleteDataSetRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='name', full_name='exabel.api.data.v1.DeleteDataSetRequest.name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=b'\340A\002', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=571, + serialized_end=612, +) + +_LISTDATASETSRESPONSE.fields_by_name['data_sets'].message_type = exabel_dot_api_dot_data_dot_v1_dot_data__set__messages__pb2._DATASET +_CREATEDATASETREQUEST.fields_by_name['data_set'].message_type = exabel_dot_api_dot_data_dot_v1_dot_data__set__messages__pb2._DATASET +_UPDATEDATASETREQUEST.fields_by_name['data_set'].message_type = exabel_dot_api_dot_data_dot_v1_dot_data__set__messages__pb2._DATASET +_UPDATEDATASETREQUEST.fields_by_name['update_mask'].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK +DESCRIPTOR.message_types_by_name['ListDataSetsRequest'] = _LISTDATASETSREQUEST +DESCRIPTOR.message_types_by_name['ListDataSetsResponse'] = _LISTDATASETSRESPONSE +DESCRIPTOR.message_types_by_name['GetDataSetRequest'] = _GETDATASETREQUEST +DESCRIPTOR.message_types_by_name['CreateDataSetRequest'] = _CREATEDATASETREQUEST +DESCRIPTOR.message_types_by_name['UpdateDataSetRequest'] = _UPDATEDATASETREQUEST +DESCRIPTOR.message_types_by_name['DeleteDataSetRequest'] = _DELETEDATASETREQUEST +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +ListDataSetsRequest = _reflection.GeneratedProtocolMessageType('ListDataSetsRequest', (_message.Message,), { + 'DESCRIPTOR' : _LISTDATASETSREQUEST, + '__module__' : 'exabel.api.data.v1.data_set_service_pb2' + # @@protoc_insertion_point(class_scope:exabel.api.data.v1.ListDataSetsRequest) + }) +_sym_db.RegisterMessage(ListDataSetsRequest) + +ListDataSetsResponse = _reflection.GeneratedProtocolMessageType('ListDataSetsResponse', (_message.Message,), { + 'DESCRIPTOR' : _LISTDATASETSRESPONSE, + '__module__' : 'exabel.api.data.v1.data_set_service_pb2' + # @@protoc_insertion_point(class_scope:exabel.api.data.v1.ListDataSetsResponse) + }) +_sym_db.RegisterMessage(ListDataSetsResponse) + +GetDataSetRequest = _reflection.GeneratedProtocolMessageType('GetDataSetRequest', (_message.Message,), { + 'DESCRIPTOR' : _GETDATASETREQUEST, + '__module__' : 'exabel.api.data.v1.data_set_service_pb2' + # @@protoc_insertion_point(class_scope:exabel.api.data.v1.GetDataSetRequest) + }) +_sym_db.RegisterMessage(GetDataSetRequest) + +CreateDataSetRequest = _reflection.GeneratedProtocolMessageType('CreateDataSetRequest', (_message.Message,), { + 'DESCRIPTOR' : _CREATEDATASETREQUEST, + '__module__' : 'exabel.api.data.v1.data_set_service_pb2' + # @@protoc_insertion_point(class_scope:exabel.api.data.v1.CreateDataSetRequest) + }) +_sym_db.RegisterMessage(CreateDataSetRequest) + +UpdateDataSetRequest = _reflection.GeneratedProtocolMessageType('UpdateDataSetRequest', (_message.Message,), { + 'DESCRIPTOR' : _UPDATEDATASETREQUEST, + '__module__' : 'exabel.api.data.v1.data_set_service_pb2' + # @@protoc_insertion_point(class_scope:exabel.api.data.v1.UpdateDataSetRequest) + }) +_sym_db.RegisterMessage(UpdateDataSetRequest) + +DeleteDataSetRequest = _reflection.GeneratedProtocolMessageType('DeleteDataSetRequest', (_message.Message,), { + 'DESCRIPTOR' : _DELETEDATASETREQUEST, + '__module__' : 'exabel.api.data.v1.data_set_service_pb2' + # @@protoc_insertion_point(class_scope:exabel.api.data.v1.DeleteDataSetRequest) + }) +_sym_db.RegisterMessage(DeleteDataSetRequest) + + +DESCRIPTOR._options = None +_GETDATASETREQUEST.fields_by_name['name']._options = None +_CREATEDATASETREQUEST.fields_by_name['data_set']._options = None +_UPDATEDATASETREQUEST.fields_by_name['data_set']._options = None +_DELETEDATASETREQUEST.fields_by_name['name']._options = None + +_DATASETSERVICE = _descriptor.ServiceDescriptor( + name='DataSetService', + full_name='exabel.api.data.v1.DataSetService', + file=DESCRIPTOR, + index=0, + serialized_options=None, + create_key=_descriptor._internal_create_key, + serialized_start=615, + serialized_end=1238, + methods=[ + _descriptor.MethodDescriptor( + name='ListDataSets', + full_name='exabel.api.data.v1.DataSetService.ListDataSets', + index=0, + containing_service=None, + input_type=_LISTDATASETSREQUEST, + output_type=_LISTDATASETSRESPONSE, + serialized_options=b'\202\323\344\223\002\016\022\014/v1/dataSets', + create_key=_descriptor._internal_create_key, + ), + _descriptor.MethodDescriptor( + name='GetDataSet', + full_name='exabel.api.data.v1.DataSetService.GetDataSet', + index=1, + containing_service=None, + input_type=_GETDATASETREQUEST, + output_type=exabel_dot_api_dot_data_dot_v1_dot_data__set__messages__pb2._DATASET, + serialized_options=b'\202\323\344\223\002\027\022\025/v1/{name=dataSets/*}', + create_key=_descriptor._internal_create_key, + ), + _descriptor.MethodDescriptor( + name='CreateDataSet', + full_name='exabel.api.data.v1.DataSetService.CreateDataSet', + index=2, + containing_service=None, + input_type=_CREATEDATASETREQUEST, + output_type=exabel_dot_api_dot_data_dot_v1_dot_data__set__messages__pb2._DATASET, + serialized_options=b'\202\323\344\223\002\030\"\014/v1/dataSets:\010data_set', + create_key=_descriptor._internal_create_key, + ), + _descriptor.MethodDescriptor( + name='UpdateDataSet', + full_name='exabel.api.data.v1.DataSetService.UpdateDataSet', + index=3, + containing_service=None, + input_type=_UPDATEDATASETREQUEST, + output_type=exabel_dot_api_dot_data_dot_v1_dot_data__set__messages__pb2._DATASET, + serialized_options=b'\202\323\344\223\002*2\036/v1/{data_set.name=dataSets/*}:\010data_set', + create_key=_descriptor._internal_create_key, + ), + _descriptor.MethodDescriptor( + name='DeleteDataSet', + full_name='exabel.api.data.v1.DataSetService.DeleteDataSet', + index=4, + containing_service=None, + input_type=_DELETEDATASETREQUEST, + output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, + serialized_options=b'\202\323\344\223\002\027*\025/v1/{name=dataSets/*}', + create_key=_descriptor._internal_create_key, + ), +]) +_sym_db.RegisterServiceDescriptor(_DATASETSERVICE) + +DESCRIPTOR.services_by_name['DataSetService'] = _DATASETSERVICE + +# @@protoc_insertion_point(module_scope) diff --git a/exabel_data_sdk/stubs/exabel/api/data/v1/data_set_service_pb2.pyi b/exabel_data_sdk/stubs/exabel/api/data/v1/data_set_service_pb2.pyi new file mode 100644 index 0000000..e7b3f25 --- /dev/null +++ b/exabel_data_sdk/stubs/exabel/api/data/v1/data_set_service_pb2.pyi @@ -0,0 +1,117 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +from exabel_data_sdk.stubs.exabel.api.data.v1.data_set_messages_pb2 import ( + DataSet as exabel___api___data___v1___data_set_messages_pb2___DataSet, +) + +from google.protobuf.descriptor import ( + Descriptor as google___protobuf___descriptor___Descriptor, + FileDescriptor as google___protobuf___descriptor___FileDescriptor, +) + +from google.protobuf.field_mask_pb2 import ( + FieldMask as google___protobuf___field_mask_pb2___FieldMask, +) + +from google.protobuf.internal.containers import ( + RepeatedCompositeFieldContainer as google___protobuf___internal___containers___RepeatedCompositeFieldContainer, +) + +from google.protobuf.message import ( + Message as google___protobuf___message___Message, +) + +from typing import ( + Iterable as typing___Iterable, + Optional as typing___Optional, + Text as typing___Text, +) + +from typing_extensions import ( + Literal as typing_extensions___Literal, +) + + +builtin___bool = bool +builtin___bytes = bytes +builtin___float = float +builtin___int = int + + +DESCRIPTOR: google___protobuf___descriptor___FileDescriptor = ... + +class ListDataSetsRequest(google___protobuf___message___Message): + DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... + + def __init__(self, + ) -> None: ... +type___ListDataSetsRequest = ListDataSetsRequest + +class ListDataSetsResponse(google___protobuf___message___Message): + DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... + + @property + def data_sets(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[exabel___api___data___v1___data_set_messages_pb2___DataSet]: ... + + def __init__(self, + *, + data_sets : typing___Optional[typing___Iterable[exabel___api___data___v1___data_set_messages_pb2___DataSet]] = None, + ) -> None: ... + def ClearField(self, field_name: typing_extensions___Literal[u"data_sets",b"data_sets"]) -> None: ... +type___ListDataSetsResponse = ListDataSetsResponse + +class GetDataSetRequest(google___protobuf___message___Message): + DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... + name: typing___Text = ... + + def __init__(self, + *, + name : typing___Optional[typing___Text] = None, + ) -> None: ... + def ClearField(self, field_name: typing_extensions___Literal[u"name",b"name"]) -> None: ... +type___GetDataSetRequest = GetDataSetRequest + +class CreateDataSetRequest(google___protobuf___message___Message): + DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... + + @property + def data_set(self) -> exabel___api___data___v1___data_set_messages_pb2___DataSet: ... + + def __init__(self, + *, + data_set : typing___Optional[exabel___api___data___v1___data_set_messages_pb2___DataSet] = None, + ) -> None: ... + def HasField(self, field_name: typing_extensions___Literal[u"data_set",b"data_set"]) -> builtin___bool: ... + def ClearField(self, field_name: typing_extensions___Literal[u"data_set",b"data_set"]) -> None: ... +type___CreateDataSetRequest = CreateDataSetRequest + +class UpdateDataSetRequest(google___protobuf___message___Message): + DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... + + @property + def data_set(self) -> exabel___api___data___v1___data_set_messages_pb2___DataSet: ... + + @property + def update_mask(self) -> google___protobuf___field_mask_pb2___FieldMask: ... + + def __init__(self, + *, + data_set : typing___Optional[exabel___api___data___v1___data_set_messages_pb2___DataSet] = None, + update_mask : typing___Optional[google___protobuf___field_mask_pb2___FieldMask] = None, + ) -> None: ... + def HasField(self, field_name: typing_extensions___Literal[u"data_set",b"data_set",u"update_mask",b"update_mask"]) -> builtin___bool: ... + def ClearField(self, field_name: typing_extensions___Literal[u"data_set",b"data_set",u"update_mask",b"update_mask"]) -> None: ... +type___UpdateDataSetRequest = UpdateDataSetRequest + +class DeleteDataSetRequest(google___protobuf___message___Message): + DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... + name: typing___Text = ... + + def __init__(self, + *, + name : typing___Optional[typing___Text] = None, + ) -> None: ... + def ClearField(self, field_name: typing_extensions___Literal[u"name",b"name"]) -> None: ... +type___DeleteDataSetRequest = DeleteDataSetRequest diff --git a/exabel_data_sdk/stubs/exabel/api/data/v1/data_set_service_pb2_grpc.py b/exabel_data_sdk/stubs/exabel/api/data/v1/data_set_service_pb2_grpc.py new file mode 100644 index 0000000..ee54353 --- /dev/null +++ b/exabel_data_sdk/stubs/exabel/api/data/v1/data_set_service_pb2_grpc.py @@ -0,0 +1,208 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + +from exabel_data_sdk.stubs.exabel.api.data.v1 import data_set_messages_pb2 as exabel_dot_api_dot_data_dot_v1_dot_data__set__messages__pb2 +from exabel_data_sdk.stubs.exabel.api.data.v1 import data_set_service_pb2 as exabel_dot_api_dot_data_dot_v1_dot_data__set__service__pb2 +from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 + + +class DataSetServiceStub(object): + """Manages data sets in the Data API. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.ListDataSets = channel.unary_unary( + '/exabel.api.data.v1.DataSetService/ListDataSets', + request_serializer=exabel_dot_api_dot_data_dot_v1_dot_data__set__service__pb2.ListDataSetsRequest.SerializeToString, + response_deserializer=exabel_dot_api_dot_data_dot_v1_dot_data__set__service__pb2.ListDataSetsResponse.FromString, + ) + self.GetDataSet = channel.unary_unary( + '/exabel.api.data.v1.DataSetService/GetDataSet', + request_serializer=exabel_dot_api_dot_data_dot_v1_dot_data__set__service__pb2.GetDataSetRequest.SerializeToString, + response_deserializer=exabel_dot_api_dot_data_dot_v1_dot_data__set__messages__pb2.DataSet.FromString, + ) + self.CreateDataSet = channel.unary_unary( + '/exabel.api.data.v1.DataSetService/CreateDataSet', + request_serializer=exabel_dot_api_dot_data_dot_v1_dot_data__set__service__pb2.CreateDataSetRequest.SerializeToString, + response_deserializer=exabel_dot_api_dot_data_dot_v1_dot_data__set__messages__pb2.DataSet.FromString, + ) + self.UpdateDataSet = channel.unary_unary( + '/exabel.api.data.v1.DataSetService/UpdateDataSet', + request_serializer=exabel_dot_api_dot_data_dot_v1_dot_data__set__service__pb2.UpdateDataSetRequest.SerializeToString, + response_deserializer=exabel_dot_api_dot_data_dot_v1_dot_data__set__messages__pb2.DataSet.FromString, + ) + self.DeleteDataSet = channel.unary_unary( + '/exabel.api.data.v1.DataSetService/DeleteDataSet', + request_serializer=exabel_dot_api_dot_data_dot_v1_dot_data__set__service__pb2.DeleteDataSetRequest.SerializeToString, + response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, + ) + + +class DataSetServiceServicer(object): + """Manages data sets in the Data API. + """ + + def ListDataSets(self, request, context): + """Lists all data sets. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetDataSet(self, request, context): + """Gets one data set. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def CreateDataSet(self, request, context): + """Creates one data set and returns it. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def UpdateDataSet(self, request, context): + """Updates one data set and returns it. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def DeleteDataSet(self, request, context): + """Deletes one data set. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_DataSetServiceServicer_to_server(servicer, server): + rpc_method_handlers = { + 'ListDataSets': grpc.unary_unary_rpc_method_handler( + servicer.ListDataSets, + request_deserializer=exabel_dot_api_dot_data_dot_v1_dot_data__set__service__pb2.ListDataSetsRequest.FromString, + response_serializer=exabel_dot_api_dot_data_dot_v1_dot_data__set__service__pb2.ListDataSetsResponse.SerializeToString, + ), + 'GetDataSet': grpc.unary_unary_rpc_method_handler( + servicer.GetDataSet, + request_deserializer=exabel_dot_api_dot_data_dot_v1_dot_data__set__service__pb2.GetDataSetRequest.FromString, + response_serializer=exabel_dot_api_dot_data_dot_v1_dot_data__set__messages__pb2.DataSet.SerializeToString, + ), + 'CreateDataSet': grpc.unary_unary_rpc_method_handler( + servicer.CreateDataSet, + request_deserializer=exabel_dot_api_dot_data_dot_v1_dot_data__set__service__pb2.CreateDataSetRequest.FromString, + response_serializer=exabel_dot_api_dot_data_dot_v1_dot_data__set__messages__pb2.DataSet.SerializeToString, + ), + 'UpdateDataSet': grpc.unary_unary_rpc_method_handler( + servicer.UpdateDataSet, + request_deserializer=exabel_dot_api_dot_data_dot_v1_dot_data__set__service__pb2.UpdateDataSetRequest.FromString, + response_serializer=exabel_dot_api_dot_data_dot_v1_dot_data__set__messages__pb2.DataSet.SerializeToString, + ), + 'DeleteDataSet': grpc.unary_unary_rpc_method_handler( + servicer.DeleteDataSet, + request_deserializer=exabel_dot_api_dot_data_dot_v1_dot_data__set__service__pb2.DeleteDataSetRequest.FromString, + response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'exabel.api.data.v1.DataSetService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + + + # This class is part of an EXPERIMENTAL API. +class DataSetService(object): + """Manages data sets in the Data API. + """ + + @staticmethod + def ListDataSets(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/exabel.api.data.v1.DataSetService/ListDataSets', + exabel_dot_api_dot_data_dot_v1_dot_data__set__service__pb2.ListDataSetsRequest.SerializeToString, + exabel_dot_api_dot_data_dot_v1_dot_data__set__service__pb2.ListDataSetsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetDataSet(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/exabel.api.data.v1.DataSetService/GetDataSet', + exabel_dot_api_dot_data_dot_v1_dot_data__set__service__pb2.GetDataSetRequest.SerializeToString, + exabel_dot_api_dot_data_dot_v1_dot_data__set__messages__pb2.DataSet.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def CreateDataSet(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/exabel.api.data.v1.DataSetService/CreateDataSet', + exabel_dot_api_dot_data_dot_v1_dot_data__set__service__pb2.CreateDataSetRequest.SerializeToString, + exabel_dot_api_dot_data_dot_v1_dot_data__set__messages__pb2.DataSet.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def UpdateDataSet(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/exabel.api.data.v1.DataSetService/UpdateDataSet', + exabel_dot_api_dot_data_dot_v1_dot_data__set__service__pb2.UpdateDataSetRequest.SerializeToString, + exabel_dot_api_dot_data_dot_v1_dot_data__set__messages__pb2.DataSet.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def DeleteDataSet(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/exabel.api.data.v1.DataSetService/DeleteDataSet', + exabel_dot_api_dot_data_dot_v1_dot_data__set__service__pb2.DeleteDataSetRequest.SerializeToString, + google_dot_protobuf_dot_empty__pb2.Empty.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/exabel_data_sdk/stubs/exabel/api/data/v1/entity_messages_pb2.py b/exabel_data_sdk/stubs/exabel/api/data/v1/entity_messages_pb2.py index 1d71aeb..0d9674d 100644 --- a/exabel_data_sdk/stubs/exabel/api/data/v1/entity_messages_pb2.py +++ b/exabel_data_sdk/stubs/exabel/api/data/v1/entity_messages_pb2.py @@ -11,6 +11,7 @@ _sym_db = _symbol_database.Default() +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 from google.protobuf import struct_pb2 as google_dot_protobuf_dot_struct__pb2 @@ -20,9 +21,9 @@ syntax='proto3', serialized_options=b'\n\026com.exabel.api.data.v1B\023EntityMessagesProtoP\001', create_key=_descriptor._internal_create_key, - serialized_pb=b'\n(exabel/api/data/v1/entity_messages.proto\x12\x12\x65xabel.api.data.v1\x1a\x1cgoogle/protobuf/struct.proto\"X\n\nEntityType\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12\x11\n\tread_only\x18\x04 \x01(\x08\"\x81\x01\n\x06\x45ntity\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12\x11\n\tread_only\x18\x04 \x01(\x08\x12+\n\nproperties\x18\x64 \x01(\x0b\x32\x17.google.protobuf.StructB/\n\x16\x63om.exabel.api.data.v1B\x13\x45ntityMessagesProtoP\x01\x62\x06proto3' + serialized_pb=b'\n(exabel/api/data/v1/entity_messages.proto\x12\x12\x65xabel.api.data.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1cgoogle/protobuf/struct.proto\"\x82\x01\n\nEntityType\x12\x14\n\x04name\x18\x01 \x01(\tB\x06\xe0\x41\x05\xe0\x41\x02\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12\x16\n\tread_only\x18\x04 \x01(\x08\x42\x03\xe0\x41\x03\x12\x16\n\x0eis_associative\x18\x05 \x01(\x08\"\x93\x01\n\x06\x45ntity\x12\x14\n\x04name\x18\x01 \x01(\tB\x06\xe0\x41\x05\xe0\x41\x02\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12\x16\n\tread_only\x18\x04 \x01(\x08\x42\x03\xe0\x41\x03\x12+\n\nproperties\x18\x64 \x01(\x0b\x32\x17.google.protobuf.StructB/\n\x16\x63om.exabel.api.data.v1B\x13\x45ntityMessagesProtoP\x01\x62\x06proto3' , - dependencies=[google_dot_protobuf_dot_struct__pb2.DESCRIPTOR,]) + dependencies=[google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_protobuf_dot_struct__pb2.DESCRIPTOR,]) @@ -41,14 +42,14 @@ has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + serialized_options=b'\340A\005\340A\002', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='display_name', full_name='exabel.api.data.v1.EntityType.display_name', index=1, number=2, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + serialized_options=b'\340A\002', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='description', full_name='exabel.api.data.v1.EntityType.description', index=2, number=3, type=9, cpp_type=9, label=1, @@ -62,6 +63,13 @@ has_default_value=False, default_value=False, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, + serialized_options=b'\340A\003', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='is_associative', full_name='exabel.api.data.v1.EntityType.is_associative', index=4, + number=5, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ @@ -75,8 +83,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=94, - serialized_end=182, + serialized_start=128, + serialized_end=258, ) @@ -94,14 +102,14 @@ has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + serialized_options=b'\340A\005\340A\002', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='display_name', full_name='exabel.api.data.v1.Entity.display_name', index=1, number=2, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + serialized_options=b'\340A\002', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='description', full_name='exabel.api.data.v1.Entity.description', index=2, number=3, type=9, cpp_type=9, label=1, @@ -115,7 +123,7 @@ has_default_value=False, default_value=False, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + serialized_options=b'\340A\003', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='properties', full_name='exabel.api.data.v1.Entity.properties', index=4, number=100, type=11, cpp_type=10, label=1, @@ -135,8 +143,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=185, - serialized_end=314, + serialized_start=261, + serialized_end=408, ) _ENTITY.fields_by_name['properties'].message_type = google_dot_protobuf_dot_struct__pb2._STRUCT @@ -160,4 +168,10 @@ DESCRIPTOR._options = None +_ENTITYTYPE.fields_by_name['name']._options = None +_ENTITYTYPE.fields_by_name['display_name']._options = None +_ENTITYTYPE.fields_by_name['read_only']._options = None +_ENTITY.fields_by_name['name']._options = None +_ENTITY.fields_by_name['display_name']._options = None +_ENTITY.fields_by_name['read_only']._options = None # @@protoc_insertion_point(module_scope) diff --git a/exabel_data_sdk/stubs/exabel/api/data/v1/entity_messages_pb2.pyi b/exabel_data_sdk/stubs/exabel/api/data/v1/entity_messages_pb2.pyi index 0b32c67..5481573 100644 --- a/exabel_data_sdk/stubs/exabel/api/data/v1/entity_messages_pb2.pyi +++ b/exabel_data_sdk/stubs/exabel/api/data/v1/entity_messages_pb2.pyi @@ -39,6 +39,7 @@ class EntityType(google___protobuf___message___Message): display_name: typing___Text = ... description: typing___Text = ... read_only: builtin___bool = ... + is_associative: builtin___bool = ... def __init__(self, *, @@ -46,8 +47,9 @@ class EntityType(google___protobuf___message___Message): display_name : typing___Optional[typing___Text] = None, description : typing___Optional[typing___Text] = None, read_only : typing___Optional[builtin___bool] = None, + is_associative : typing___Optional[builtin___bool] = None, ) -> None: ... - def ClearField(self, field_name: typing_extensions___Literal[u"description",b"description",u"display_name",b"display_name",u"name",b"name",u"read_only",b"read_only"]) -> None: ... + def ClearField(self, field_name: typing_extensions___Literal[u"description",b"description",u"display_name",b"display_name",u"is_associative",b"is_associative",u"name",b"name",u"read_only",b"read_only"]) -> None: ... type___EntityType = EntityType class Entity(google___protobuf___message___Message): diff --git a/exabel_data_sdk/stubs/exabel/api/data/v1/entity_service_pb2.py b/exabel_data_sdk/stubs/exabel/api/data/v1/entity_service_pb2.py index 89a9e36..056af86 100644 --- a/exabel_data_sdk/stubs/exabel/api/data/v1/entity_service_pb2.py +++ b/exabel_data_sdk/stubs/exabel/api/data/v1/entity_service_pb2.py @@ -13,7 +13,8 @@ from exabel_data_sdk.stubs.exabel.api.data.v1 import entity_messages_pb2 as exabel_dot_api_dot_data_dot_v1_dot_entity__messages__pb2 from exabel_data_sdk.stubs.exabel.api.data.v1 import search_messages_pb2 as exabel_dot_api_dot_data_dot_v1_dot_search__messages__pb2 -from exabel_data_sdk.stubs.google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 from google.protobuf import field_mask_pb2 as google_dot_protobuf_dot_field__mask__pb2 @@ -24,9 +25,9 @@ syntax='proto3', serialized_options=b'\n\026com.exabel.api.data.v1B\022EntityServiceProtoP\001', create_key=_descriptor._internal_create_key, - serialized_pb=b'\n\'exabel/api/data/v1/entity_service.proto\x12\x12\x65xabel.api.data.v1\x1a(exabel/api/data/v1/entity_messages.proto\x1a(exabel/api/data/v1/search_messages.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\"?\n\x16ListEntityTypesRequest\x12\x11\n\tpage_size\x18\x01 \x01(\x05\x12\x12\n\npage_token\x18\x02 \x01(\t\"|\n\x17ListEntityTypesResponse\x12\x34\n\x0c\x65ntity_types\x18\x01 \x03(\x0b\x32\x1e.exabel.api.data.v1.EntityType\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x12\n\ntotal_size\x18\x03 \x01(\x05\"$\n\x14GetEntityTypeRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\"L\n\x13ListEntitiesRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"q\n\x14ListEntitiesResponse\x12,\n\x08\x65ntities\x18\x01 \x03(\x0b\x32\x1a.exabel.api.data.v1.Entity\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x12\n\ntotal_size\x18\x03 \x01(\x05\" \n\x10GetEntityRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\"Q\n\x13\x43reateEntityRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12*\n\x06\x65ntity\x18\x02 \x01(\x0b\x32\x1a.exabel.api.data.v1.Entity\"r\n\x13UpdateEntityRequest\x12*\n\x06\x65ntity\x18\x01 \x01(\x0b\x32\x1a.exabel.api.data.v1.Entity\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"#\n\x13\x44\x65leteEntityRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\"}\n\x15SearchEntitiesRequest\x12\x0e\n\x06parent\x18\x04 \x01(\t\x12-\n\x05terms\x18\x01 \x03(\x0b\x32\x1e.exabel.api.data.v1.SearchTerm\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"\x96\x02\n\x16SearchEntitiesResponse\x12H\n\x07results\x18\x03 \x03(\x0b\x32\x37.exabel.api.data.v1.SearchEntitiesResponse.SearchResult\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12,\n\x08\x65ntities\x18\x01 \x03(\x0b\x32\x1a.exabel.api.data.v1.Entity\x1ak\n\x0cSearchResult\x12-\n\x05terms\x18\x01 \x03(\x0b\x32\x1e.exabel.api.data.v1.SearchTerm\x12,\n\x08\x65ntities\x18\x02 \x03(\x0b\x32\x1a.exabel.api.data.v1.Entity2\xdb\x08\n\rEntityService\x12\x83\x01\n\x0fListEntityTypes\x12*.exabel.api.data.v1.ListEntityTypesRequest\x1a+.exabel.api.data.v1.ListEntityTypesResponse\"\x17\x82\xd3\xe4\x93\x02\x11\x12\x0f/v1/entityTypes\x12{\n\rGetEntityType\x12(.exabel.api.data.v1.GetEntityTypeRequest\x1a\x1e.exabel.api.data.v1.EntityType\" \x82\xd3\xe4\x93\x02\x1a\x12\x18/v1/{name=entityTypes/*}\x12\x8e\x01\n\x0cListEntities\x12\'.exabel.api.data.v1.ListEntitiesRequest\x1a(.exabel.api.data.v1.ListEntitiesResponse\"+\x82\xd3\xe4\x93\x02%\x12#/v1/{parent=entityTypes/*}/entities\x12z\n\tGetEntity\x12$.exabel.api.data.v1.GetEntityRequest\x1a\x1a.exabel.api.data.v1.Entity\"+\x82\xd3\xe4\x93\x02%\x12#/v1/{name=entityTypes/*/entities/*}\x12\x88\x01\n\x0c\x43reateEntity\x12\'.exabel.api.data.v1.CreateEntityRequest\x1a\x1a.exabel.api.data.v1.Entity\"3\x82\xd3\xe4\x93\x02-\"#/v1/{parent=entityTypes/*}/entities:\x06\x65ntity\x12\x8f\x01\n\x0cUpdateEntity\x12\'.exabel.api.data.v1.UpdateEntityRequest\x1a\x1a.exabel.api.data.v1.Entity\":\x82\xd3\xe4\x93\x02\x34\x32*/v1/{entity.name=entityTypes/*/entities/*}:\x06\x65ntity\x12|\n\x0c\x44\x65leteEntity\x12\'.exabel.api.data.v1.DeleteEntityRequest\x1a\x16.google.protobuf.Empty\"+\x82\xd3\xe4\x93\x02%*#/v1/{name=entityTypes/*/entities/*}\x12\x9e\x01\n\x0eSearchEntities\x12).exabel.api.data.v1.SearchEntitiesRequest\x1a*.exabel.api.data.v1.SearchEntitiesResponse\"5\x82\xd3\xe4\x93\x02/\"*/v1/{parent=entityTypes/*}/entities:search:\x01*B.\n\x16\x63om.exabel.api.data.v1B\x12\x45ntityServiceProtoP\x01\x62\x06proto3' + serialized_pb=b'\n\'exabel/api/data/v1/entity_service.proto\x12\x12\x65xabel.api.data.v1\x1a(exabel/api/data/v1/entity_messages.proto\x1a(exabel/api/data/v1/search_messages.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\"?\n\x16ListEntityTypesRequest\x12\x11\n\tpage_size\x18\x01 \x01(\x05\x12\x12\n\npage_token\x18\x02 \x01(\t\"|\n\x17ListEntityTypesResponse\x12\x34\n\x0c\x65ntity_types\x18\x01 \x03(\x0b\x32\x1e.exabel.api.data.v1.EntityType\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x12\n\ntotal_size\x18\x03 \x01(\x05\")\n\x14GetEntityTypeRequest\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\"Q\n\x13ListEntitiesRequest\x12\x13\n\x06parent\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"q\n\x14ListEntitiesResponse\x12,\n\x08\x65ntities\x18\x01 \x03(\x0b\x32\x1a.exabel.api.data.v1.Entity\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x12\n\ntotal_size\x18\x03 \x01(\x05\"%\n\x10GetEntityRequest\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\"[\n\x13\x43reateEntityRequest\x12\x13\n\x06parent\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12/\n\x06\x65ntity\x18\x02 \x01(\x0b\x32\x1a.exabel.api.data.v1.EntityB\x03\xe0\x41\x02\"w\n\x13UpdateEntityRequest\x12/\n\x06\x65ntity\x18\x01 \x01(\x0b\x32\x1a.exabel.api.data.v1.EntityB\x03\xe0\x41\x02\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"(\n\x13\x44\x65leteEntityRequest\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\"\x87\x01\n\x15SearchEntitiesRequest\x12\x13\n\x06parent\x18\x04 \x01(\tB\x03\xe0\x41\x02\x12\x32\n\x05terms\x18\x01 \x03(\x0b\x32\x1e.exabel.api.data.v1.SearchTermB\x03\xe0\x41\x02\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"\x96\x02\n\x16SearchEntitiesResponse\x12H\n\x07results\x18\x03 \x03(\x0b\x32\x37.exabel.api.data.v1.SearchEntitiesResponse.SearchResult\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12,\n\x08\x65ntities\x18\x01 \x03(\x0b\x32\x1a.exabel.api.data.v1.Entity\x1ak\n\x0cSearchResult\x12-\n\x05terms\x18\x01 \x03(\x0b\x32\x1e.exabel.api.data.v1.SearchTerm\x12,\n\x08\x65ntities\x18\x02 \x03(\x0b\x32\x1a.exabel.api.data.v1.Entity2\xdb\x08\n\rEntityService\x12\x83\x01\n\x0fListEntityTypes\x12*.exabel.api.data.v1.ListEntityTypesRequest\x1a+.exabel.api.data.v1.ListEntityTypesResponse\"\x17\x82\xd3\xe4\x93\x02\x11\x12\x0f/v1/entityTypes\x12{\n\rGetEntityType\x12(.exabel.api.data.v1.GetEntityTypeRequest\x1a\x1e.exabel.api.data.v1.EntityType\" \x82\xd3\xe4\x93\x02\x1a\x12\x18/v1/{name=entityTypes/*}\x12\x8e\x01\n\x0cListEntities\x12\'.exabel.api.data.v1.ListEntitiesRequest\x1a(.exabel.api.data.v1.ListEntitiesResponse\"+\x82\xd3\xe4\x93\x02%\x12#/v1/{parent=entityTypes/*}/entities\x12z\n\tGetEntity\x12$.exabel.api.data.v1.GetEntityRequest\x1a\x1a.exabel.api.data.v1.Entity\"+\x82\xd3\xe4\x93\x02%\x12#/v1/{name=entityTypes/*/entities/*}\x12\x88\x01\n\x0c\x43reateEntity\x12\'.exabel.api.data.v1.CreateEntityRequest\x1a\x1a.exabel.api.data.v1.Entity\"3\x82\xd3\xe4\x93\x02-\"#/v1/{parent=entityTypes/*}/entities:\x06\x65ntity\x12\x8f\x01\n\x0cUpdateEntity\x12\'.exabel.api.data.v1.UpdateEntityRequest\x1a\x1a.exabel.api.data.v1.Entity\":\x82\xd3\xe4\x93\x02\x34\x32*/v1/{entity.name=entityTypes/*/entities/*}:\x06\x65ntity\x12|\n\x0c\x44\x65leteEntity\x12\'.exabel.api.data.v1.DeleteEntityRequest\x1a\x16.google.protobuf.Empty\"+\x82\xd3\xe4\x93\x02%*#/v1/{name=entityTypes/*/entities/*}\x12\x9e\x01\n\x0eSearchEntities\x12).exabel.api.data.v1.SearchEntitiesRequest\x1a*.exabel.api.data.v1.SearchEntitiesResponse\"5\x82\xd3\xe4\x93\x02/\"*/v1/{parent=entityTypes/*}/entities:search:\x01*B.\n\x16\x63om.exabel.api.data.v1B\x12\x45ntityServiceProtoP\x01\x62\x06proto3' , - dependencies=[exabel_dot_api_dot_data_dot_v1_dot_entity__messages__pb2.DESCRIPTOR,exabel_dot_api_dot_data_dot_v1_dot_search__messages__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_protobuf_dot_empty__pb2.DESCRIPTOR,google_dot_protobuf_dot_field__mask__pb2.DESCRIPTOR,]) + dependencies=[exabel_dot_api_dot_data_dot_v1_dot_entity__messages__pb2.DESCRIPTOR,exabel_dot_api_dot_data_dot_v1_dot_search__messages__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_protobuf_dot_empty__pb2.DESCRIPTOR,google_dot_protobuf_dot_field__mask__pb2.DESCRIPTOR,]) @@ -65,8 +66,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=240, - serialized_end=303, + serialized_start=273, + serialized_end=336, ) @@ -111,8 +112,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=305, - serialized_end=429, + serialized_start=338, + serialized_end=462, ) @@ -130,7 +131,7 @@ has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + serialized_options=b'\340A\002', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], @@ -143,8 +144,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=431, - serialized_end=467, + serialized_start=464, + serialized_end=505, ) @@ -162,7 +163,7 @@ has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + serialized_options=b'\340A\002', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='page_size', full_name='exabel.api.data.v1.ListEntitiesRequest.page_size', index=1, number=2, type=5, cpp_type=1, label=1, @@ -189,8 +190,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=469, - serialized_end=545, + serialized_start=507, + serialized_end=588, ) @@ -235,8 +236,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=547, - serialized_end=660, + serialized_start=590, + serialized_end=703, ) @@ -254,7 +255,7 @@ has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + serialized_options=b'\340A\002', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], @@ -267,8 +268,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=662, - serialized_end=694, + serialized_start=705, + serialized_end=742, ) @@ -286,14 +287,14 @@ has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + serialized_options=b'\340A\002', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='entity', full_name='exabel.api.data.v1.CreateEntityRequest.entity', index=1, number=2, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + serialized_options=b'\340A\002', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], @@ -306,8 +307,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=696, - serialized_end=777, + serialized_start=744, + serialized_end=835, ) @@ -325,7 +326,7 @@ has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + serialized_options=b'\340A\002', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='update_mask', full_name='exabel.api.data.v1.UpdateEntityRequest.update_mask', index=1, number=2, type=11, cpp_type=10, label=1, @@ -345,8 +346,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=779, - serialized_end=893, + serialized_start=837, + serialized_end=956, ) @@ -364,7 +365,7 @@ has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + serialized_options=b'\340A\002', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], @@ -377,8 +378,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=895, - serialized_end=930, + serialized_start=958, + serialized_end=998, ) @@ -396,14 +397,14 @@ has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + serialized_options=b'\340A\002', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='terms', full_name='exabel.api.data.v1.SearchEntitiesRequest.terms', index=1, number=1, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + serialized_options=b'\340A\002', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='page_size', full_name='exabel.api.data.v1.SearchEntitiesRequest.page_size', index=2, number=2, type=5, cpp_type=1, label=1, @@ -430,8 +431,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=932, - serialized_end=1057, + serialized_start=1001, + serialized_end=1136, ) @@ -469,8 +470,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1231, - serialized_end=1338, + serialized_start=1310, + serialized_end=1417, ) _SEARCHENTITIESRESPONSE = _descriptor.Descriptor( @@ -514,8 +515,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1060, - serialized_end=1338, + serialized_start=1139, + serialized_end=1417, ) _LISTENTITYTYPESRESPONSE.fields_by_name['entity_types'].message_type = exabel_dot_api_dot_data_dot_v1_dot_entity__messages__pb2._ENTITYTYPE @@ -629,6 +630,15 @@ DESCRIPTOR._options = None +_GETENTITYTYPEREQUEST.fields_by_name['name']._options = None +_LISTENTITIESREQUEST.fields_by_name['parent']._options = None +_GETENTITYREQUEST.fields_by_name['name']._options = None +_CREATEENTITYREQUEST.fields_by_name['parent']._options = None +_CREATEENTITYREQUEST.fields_by_name['entity']._options = None +_UPDATEENTITYREQUEST.fields_by_name['entity']._options = None +_DELETEENTITYREQUEST.fields_by_name['name']._options = None +_SEARCHENTITIESREQUEST.fields_by_name['parent']._options = None +_SEARCHENTITIESREQUEST.fields_by_name['terms']._options = None _ENTITYSERVICE = _descriptor.ServiceDescriptor( name='EntityService', @@ -637,8 +647,8 @@ index=0, serialized_options=None, create_key=_descriptor._internal_create_key, - serialized_start=1341, - serialized_end=2456, + serialized_start=1420, + serialized_end=2535, methods=[ _descriptor.MethodDescriptor( name='ListEntityTypes', diff --git a/exabel_data_sdk/stubs/exabel/api/data/v1/internal_entity_service_pb2.py b/exabel_data_sdk/stubs/exabel/api/data/v1/internal_entity_service_pb2.py index 6b41c58..51e217e 100644 --- a/exabel_data_sdk/stubs/exabel/api/data/v1/internal_entity_service_pb2.py +++ b/exabel_data_sdk/stubs/exabel/api/data/v1/internal_entity_service_pb2.py @@ -12,7 +12,8 @@ from exabel_data_sdk.stubs.exabel.api.data.v1 import entity_messages_pb2 as exabel_dot_api_dot_data_dot_v1_dot_entity__messages__pb2 -from exabel_data_sdk.stubs.google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 from google.protobuf import field_mask_pb2 as google_dot_protobuf_dot_field__mask__pb2 @@ -22,9 +23,9 @@ syntax='proto3', serialized_options=b'\n\026com.exabel.api.data.v1B\032InternalEntityServiceProtoP\001', create_key=_descriptor._internal_create_key, - serialized_pb=b'\n0exabel/api/data/v1/internal_entity_service.proto\x12\x12\x65xabel.api.data.v1\x1a(exabel/api/data/v1/entity_messages.proto\x1a\x1cgoogle/api/annotations.proto\x1a google/protobuf/field_mask.proto\"N\n\x17\x43reateEntityTypeRequest\x12\x33\n\x0b\x65ntity_type\x18\x01 \x01(\x0b\x32\x1e.exabel.api.data.v1.EntityType\"\x7f\n\x17UpdateEntityTypeRequest\x12\x33\n\x0b\x65ntity_type\x18\x01 \x01(\x0b\x32\x1e.exabel.api.data.v1.EntityType\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask2\xbc\x02\n\x15InternalEntityService\x12\x85\x01\n\x10\x43reateEntityType\x12+.exabel.api.data.v1.CreateEntityTypeRequest\x1a\x1e.exabel.api.data.v1.EntityType\"$\x82\xd3\xe4\x93\x02\x1e\"\x0f/v1/entityTypes:\x0b\x65ntity_type\x12\x9a\x01\n\x10UpdateEntityType\x12+.exabel.api.data.v1.UpdateEntityTypeRequest\x1a\x1e.exabel.api.data.v1.EntityType\"9\x82\xd3\xe4\x93\x02\x33\x32$/v1/{entity_type.name=entityTypes/*}:\x0b\x65ntity_typeB6\n\x16\x63om.exabel.api.data.v1B\x1aInternalEntityServiceProtoP\x01\x62\x06proto3' + serialized_pb=b'\n0exabel/api/data/v1/internal_entity_service.proto\x12\x12\x65xabel.api.data.v1\x1a(exabel/api/data/v1/entity_messages.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a google/protobuf/field_mask.proto\"S\n\x17\x43reateEntityTypeRequest\x12\x38\n\x0b\x65ntity_type\x18\x01 \x01(\x0b\x32\x1e.exabel.api.data.v1.EntityTypeB\x03\xe0\x41\x02\"\x84\x01\n\x17UpdateEntityTypeRequest\x12\x38\n\x0b\x65ntity_type\x18\x01 \x01(\x0b\x32\x1e.exabel.api.data.v1.EntityTypeB\x03\xe0\x41\x02\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask2\xbc\x02\n\x15InternalEntityService\x12\x85\x01\n\x10\x43reateEntityType\x12+.exabel.api.data.v1.CreateEntityTypeRequest\x1a\x1e.exabel.api.data.v1.EntityType\"$\x82\xd3\xe4\x93\x02\x1e\"\x0f/v1/entityTypes:\x0b\x65ntity_type\x12\x9a\x01\n\x10UpdateEntityType\x12+.exabel.api.data.v1.UpdateEntityTypeRequest\x1a\x1e.exabel.api.data.v1.EntityType\"9\x82\xd3\xe4\x93\x02\x33\x32$/v1/{entity_type.name=entityTypes/*}:\x0b\x65ntity_typeB6\n\x16\x63om.exabel.api.data.v1B\x1aInternalEntityServiceProtoP\x01\x62\x06proto3' , - dependencies=[exabel_dot_api_dot_data_dot_v1_dot_entity__messages__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_protobuf_dot_field__mask__pb2.DESCRIPTOR,]) + dependencies=[exabel_dot_api_dot_data_dot_v1_dot_entity__messages__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_protobuf_dot_field__mask__pb2.DESCRIPTOR,]) @@ -43,7 +44,7 @@ has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + serialized_options=b'\340A\002', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], @@ -56,8 +57,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=178, - serialized_end=256, + serialized_start=211, + serialized_end=294, ) @@ -75,7 +76,7 @@ has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + serialized_options=b'\340A\002', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='update_mask', full_name='exabel.api.data.v1.UpdateEntityTypeRequest.update_mask', index=1, number=2, type=11, cpp_type=10, label=1, @@ -95,8 +96,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=258, - serialized_end=385, + serialized_start=297, + serialized_end=429, ) _CREATEENTITYTYPEREQUEST.fields_by_name['entity_type'].message_type = exabel_dot_api_dot_data_dot_v1_dot_entity__messages__pb2._ENTITYTYPE @@ -122,6 +123,8 @@ DESCRIPTOR._options = None +_CREATEENTITYTYPEREQUEST.fields_by_name['entity_type']._options = None +_UPDATEENTITYTYPEREQUEST.fields_by_name['entity_type']._options = None _INTERNALENTITYSERVICE = _descriptor.ServiceDescriptor( name='InternalEntityService', @@ -130,8 +133,8 @@ index=0, serialized_options=None, create_key=_descriptor._internal_create_key, - serialized_start=388, - serialized_end=704, + serialized_start=432, + serialized_end=748, methods=[ _descriptor.MethodDescriptor( name='CreateEntityType', diff --git a/exabel_data_sdk/stubs/exabel/api/data/v1/relationship_messages_pb2.py b/exabel_data_sdk/stubs/exabel/api/data/v1/relationship_messages_pb2.py index aeb6e20..1093bce 100644 --- a/exabel_data_sdk/stubs/exabel/api/data/v1/relationship_messages_pb2.py +++ b/exabel_data_sdk/stubs/exabel/api/data/v1/relationship_messages_pb2.py @@ -11,6 +11,7 @@ _sym_db = _symbol_database.Default() +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 from google.protobuf import struct_pb2 as google_dot_protobuf_dot_struct__pb2 @@ -20,9 +21,9 @@ syntax='proto3', serialized_options=b'\n\026com.exabel.api.data.v1B\031RelationshipMessagesProtoP\001', create_key=_descriptor._internal_create_key, - serialized_pb=b'\n.exabel/api/data/v1/relationship_messages.proto\x12\x12\x65xabel.api.data.v1\x1a\x1cgoogle/protobuf/struct.proto\"u\n\x10RelationshipType\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x11\n\tread_only\x18\x03 \x01(\x08\x12+\n\nproperties\x18\x64 \x01(\x0b\x32\x17.google.protobuf.Struct\"\x9b\x01\n\x0cRelationship\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x13\n\x0b\x66rom_entity\x18\x02 \x01(\t\x12\x11\n\tto_entity\x18\x03 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x04 \x01(\t\x12\x11\n\tread_only\x18\x05 \x01(\x08\x12+\n\nproperties\x18\x64 \x01(\x0b\x32\x17.google.protobuf.StructB5\n\x16\x63om.exabel.api.data.v1B\x19RelationshipMessagesProtoP\x01\x62\x06proto3' + serialized_pb=b'\n.exabel/api/data/v1/relationship_messages.proto\x12\x12\x65xabel.api.data.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1cgoogle/protobuf/struct.proto\"\x98\x01\n\x10RelationshipType\x12\x14\n\x04name\x18\x01 \x01(\tB\x06\xe0\x41\x05\xe0\x41\x02\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x16\n\tread_only\x18\x03 \x01(\x08\x42\x03\xe0\x41\x03\x12\x14\n\x0cis_ownership\x18\x04 \x01(\x08\x12+\n\nproperties\x18\x64 \x01(\x0b\x32\x17.google.protobuf.Struct\"\xaf\x01\n\x0cRelationship\x12\x13\n\x06parent\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x18\n\x0b\x66rom_entity\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x16\n\tto_entity\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x0b\x64\x65scription\x18\x04 \x01(\t\x12\x16\n\tread_only\x18\x05 \x01(\x08\x42\x03\xe0\x41\x03\x12+\n\nproperties\x18\x64 \x01(\x0b\x32\x17.google.protobuf.StructB5\n\x16\x63om.exabel.api.data.v1B\x19RelationshipMessagesProtoP\x01\x62\x06proto3' , - dependencies=[google_dot_protobuf_dot_struct__pb2.DESCRIPTOR,]) + dependencies=[google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_protobuf_dot_struct__pb2.DESCRIPTOR,]) @@ -41,7 +42,7 @@ has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + serialized_options=b'\340A\005\340A\002', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='description', full_name='exabel.api.data.v1.RelationshipType.description', index=1, number=2, type=9, cpp_type=9, label=1, @@ -55,9 +56,16 @@ has_default_value=False, default_value=False, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, + serialized_options=b'\340A\003', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='is_ownership', full_name='exabel.api.data.v1.RelationshipType.is_ownership', index=3, + number=4, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( - name='properties', full_name='exabel.api.data.v1.RelationshipType.properties', index=3, + name='properties', full_name='exabel.api.data.v1.RelationshipType.properties', index=4, number=100, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, @@ -75,8 +83,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=100, - serialized_end=217, + serialized_start=134, + serialized_end=286, ) @@ -94,21 +102,21 @@ has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + serialized_options=b'\340A\002', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='from_entity', full_name='exabel.api.data.v1.Relationship.from_entity', index=1, number=2, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + serialized_options=b'\340A\002', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='to_entity', full_name='exabel.api.data.v1.Relationship.to_entity', index=2, number=3, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + serialized_options=b'\340A\002', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='description', full_name='exabel.api.data.v1.Relationship.description', index=3, number=4, type=9, cpp_type=9, label=1, @@ -122,7 +130,7 @@ has_default_value=False, default_value=False, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + serialized_options=b'\340A\003', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='properties', full_name='exabel.api.data.v1.Relationship.properties', index=5, number=100, type=11, cpp_type=10, label=1, @@ -142,8 +150,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=220, - serialized_end=375, + serialized_start=289, + serialized_end=464, ) _RELATIONSHIPTYPE.fields_by_name['properties'].message_type = google_dot_protobuf_dot_struct__pb2._STRUCT @@ -168,4 +176,10 @@ DESCRIPTOR._options = None +_RELATIONSHIPTYPE.fields_by_name['name']._options = None +_RELATIONSHIPTYPE.fields_by_name['read_only']._options = None +_RELATIONSHIP.fields_by_name['parent']._options = None +_RELATIONSHIP.fields_by_name['from_entity']._options = None +_RELATIONSHIP.fields_by_name['to_entity']._options = None +_RELATIONSHIP.fields_by_name['read_only']._options = None # @@protoc_insertion_point(module_scope) diff --git a/exabel_data_sdk/stubs/exabel/api/data/v1/relationship_messages_pb2.pyi b/exabel_data_sdk/stubs/exabel/api/data/v1/relationship_messages_pb2.pyi index 9180354..944bab3 100644 --- a/exabel_data_sdk/stubs/exabel/api/data/v1/relationship_messages_pb2.pyi +++ b/exabel_data_sdk/stubs/exabel/api/data/v1/relationship_messages_pb2.pyi @@ -38,6 +38,7 @@ class RelationshipType(google___protobuf___message___Message): name: typing___Text = ... description: typing___Text = ... read_only: builtin___bool = ... + is_ownership: builtin___bool = ... @property def properties(self) -> google___protobuf___struct_pb2___Struct: ... @@ -47,10 +48,11 @@ class RelationshipType(google___protobuf___message___Message): name : typing___Optional[typing___Text] = None, description : typing___Optional[typing___Text] = None, read_only : typing___Optional[builtin___bool] = None, + is_ownership : typing___Optional[builtin___bool] = None, properties : typing___Optional[google___protobuf___struct_pb2___Struct] = None, ) -> None: ... def HasField(self, field_name: typing_extensions___Literal[u"properties",b"properties"]) -> builtin___bool: ... - def ClearField(self, field_name: typing_extensions___Literal[u"description",b"description",u"name",b"name",u"properties",b"properties",u"read_only",b"read_only"]) -> None: ... + def ClearField(self, field_name: typing_extensions___Literal[u"description",b"description",u"is_ownership",b"is_ownership",u"name",b"name",u"properties",b"properties",u"read_only",b"read_only"]) -> None: ... type___RelationshipType = RelationshipType class Relationship(google___protobuf___message___Message): diff --git a/exabel_data_sdk/stubs/exabel/api/data/v1/relationship_service_pb2.py b/exabel_data_sdk/stubs/exabel/api/data/v1/relationship_service_pb2.py index 7af49eb..3571d8d 100644 --- a/exabel_data_sdk/stubs/exabel/api/data/v1/relationship_service_pb2.py +++ b/exabel_data_sdk/stubs/exabel/api/data/v1/relationship_service_pb2.py @@ -12,7 +12,8 @@ from exabel_data_sdk.stubs.exabel.api.data.v1 import relationship_messages_pb2 as exabel_dot_api_dot_data_dot_v1_dot_relationship__messages__pb2 -from exabel_data_sdk.stubs.google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 from google.protobuf import field_mask_pb2 as google_dot_protobuf_dot_field__mask__pb2 @@ -23,9 +24,9 @@ syntax='proto3', serialized_options=b'\n\026com.exabel.api.data.v1B\030RelationshipServiceProtoP\001', create_key=_descriptor._internal_create_key, - serialized_pb=b'\n-exabel/api/data/v1/relationship_service.proto\x12\x12\x65xabel.api.data.v1\x1a.exabel/api/data/v1/relationship_messages.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\"E\n\x1cListRelationshipTypesRequest\x12\x11\n\tpage_size\x18\x01 \x01(\x05\x12\x12\n\npage_token\x18\x02 \x01(\t\"\x8e\x01\n\x1dListRelationshipTypesResponse\x12@\n\x12relationship_types\x18\x01 \x03(\x0b\x32$.exabel.api.data.v1.RelationshipType\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x12\n\ntotal_size\x18\x03 \x01(\x05\"`\n\x1d\x43reateRelationshipTypeRequest\x12?\n\x11relationship_type\x18\x01 \x01(\x0b\x32$.exabel.api.data.v1.RelationshipType\"\x91\x01\n\x1dUpdateRelationshipTypeRequest\x12?\n\x11relationship_type\x18\x01 \x01(\x0b\x32$.exabel.api.data.v1.RelationshipType\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"-\n\x1d\x44\x65leteRelationshipTypeRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\"*\n\x1aGetRelationshipTypeRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\"y\n\x18ListRelationshipsRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x13\n\x0b\x66rom_entity\x18\x02 \x01(\t\x12\x11\n\tto_entity\x18\x03 \x01(\t\x12\x11\n\tpage_size\x18\x04 \x01(\x05\x12\x12\n\npage_token\x18\x05 \x01(\t\"\x81\x01\n\x19ListRelationshipsResponse\x12\x37\n\rrelationships\x18\x01 \x03(\x0b\x32 .exabel.api.data.v1.Relationship\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x12\n\ntotal_size\x18\x03 \x01(\x05\"P\n\x16GetRelationshipRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x13\n\x0b\x66rom_entity\x18\x02 \x01(\t\x12\x11\n\tto_entity\x18\x03 \x01(\t\"S\n\x19\x43reateRelationshipRequest\x12\x36\n\x0crelationship\x18\x01 \x01(\x0b\x32 .exabel.api.data.v1.Relationship\"\x84\x01\n\x19UpdateRelationshipRequest\x12\x36\n\x0crelationship\x18\x01 \x01(\x0b\x32 .exabel.api.data.v1.Relationship\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"S\n\x19\x44\x65leteRelationshipRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x13\n\x0b\x66rom_entity\x18\x02 \x01(\t\x12\x11\n\tto_entity\x18\x03 \x01(\t2\x8f\r\n\x13RelationshipService\x12\x9b\x01\n\x15ListRelationshipTypes\x12\x30.exabel.api.data.v1.ListRelationshipTypesRequest\x1a\x31.exabel.api.data.v1.ListRelationshipTypesResponse\"\x1d\x82\xd3\xe4\x93\x02\x17\x12\x15/v1/relationshipTypes\x12\x93\x01\n\x13GetRelationshipType\x12..exabel.api.data.v1.GetRelationshipTypeRequest\x1a$.exabel.api.data.v1.RelationshipType\"&\x82\xd3\xe4\x93\x02 \x12\x1e/v1/{name=relationshipTypes/*}\x12\xa3\x01\n\x16\x43reateRelationshipType\x12\x31.exabel.api.data.v1.CreateRelationshipTypeRequest\x1a$.exabel.api.data.v1.RelationshipType\"0\x82\xd3\xe4\x93\x02*\"\x15/v1/relationshipTypes:\x11relationship_type\x12\xbe\x01\n\x16UpdateRelationshipType\x12\x31.exabel.api.data.v1.UpdateRelationshipTypeRequest\x1a$.exabel.api.data.v1.RelationshipType\"K\x82\xd3\xe4\x93\x02\x45\x32\x30/v1/{relationship_type.name=relationshipTypes/*}:\x11relationship_type\x12\x8b\x01\n\x16\x44\x65leteRelationshipType\x12\x31.exabel.api.data.v1.DeleteRelationshipTypeRequest\x1a\x16.google.protobuf.Empty\"&\x82\xd3\xe4\x93\x02 *\x1e/v1/{name=relationshipTypes/*}\x12\xa8\x01\n\x11ListRelationships\x12,.exabel.api.data.v1.ListRelationshipsRequest\x1a-.exabel.api.data.v1.ListRelationshipsResponse\"6\x82\xd3\xe4\x93\x02\x30\x12./v1/{parent=relationshipTypes/*}/relationships\x12\x97\x01\n\x0fGetRelationship\x12*.exabel.api.data.v1.GetRelationshipRequest\x1a .exabel.api.data.v1.Relationship\"6\x82\xd3\xe4\x93\x02\x30\x12./v1/{parent=relationshipTypes/*}/relationships\x12\xb8\x01\n\x12\x43reateRelationship\x12-.exabel.api.data.v1.CreateRelationshipRequest\x1a .exabel.api.data.v1.Relationship\"Q\x82\xd3\xe4\x93\x02K\";/v1/{relationship.parent=relationshipTypes/*}/relationships:\x0crelationship\x12\xb8\x01\n\x12UpdateRelationship\x12-.exabel.api.data.v1.UpdateRelationshipRequest\x1a .exabel.api.data.v1.Relationship\"Q\x82\xd3\xe4\x93\x02K2;/v1/{relationship.parent=relationshipTypes/*}/relationships:\x0crelationship\x12\x93\x01\n\x12\x44\x65leteRelationship\x12-.exabel.api.data.v1.DeleteRelationshipRequest\x1a\x16.google.protobuf.Empty\"6\x82\xd3\xe4\x93\x02\x30*./v1/{parent=relationshipTypes/*}/relationshipsB4\n\x16\x63om.exabel.api.data.v1B\x18RelationshipServiceProtoP\x01\x62\x06proto3' + serialized_pb=b'\n-exabel/api/data/v1/relationship_service.proto\x12\x12\x65xabel.api.data.v1\x1a.exabel/api/data/v1/relationship_messages.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\"E\n\x1cListRelationshipTypesRequest\x12\x11\n\tpage_size\x18\x01 \x01(\x05\x12\x12\n\npage_token\x18\x02 \x01(\t\"\x8e\x01\n\x1dListRelationshipTypesResponse\x12@\n\x12relationship_types\x18\x01 \x03(\x0b\x32$.exabel.api.data.v1.RelationshipType\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x12\n\ntotal_size\x18\x03 \x01(\x05\"e\n\x1d\x43reateRelationshipTypeRequest\x12\x44\n\x11relationship_type\x18\x01 \x01(\x0b\x32$.exabel.api.data.v1.RelationshipTypeB\x03\xe0\x41\x02\"\x96\x01\n\x1dUpdateRelationshipTypeRequest\x12\x44\n\x11relationship_type\x18\x01 \x01(\x0b\x32$.exabel.api.data.v1.RelationshipTypeB\x03\xe0\x41\x02\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"2\n\x1d\x44\x65leteRelationshipTypeRequest\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\"/\n\x1aGetRelationshipTypeRequest\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\"~\n\x18ListRelationshipsRequest\x12\x13\n\x06parent\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x0b\x66rom_entity\x18\x02 \x01(\t\x12\x11\n\tto_entity\x18\x03 \x01(\t\x12\x11\n\tpage_size\x18\x04 \x01(\x05\x12\x12\n\npage_token\x18\x05 \x01(\t\"\x81\x01\n\x19ListRelationshipsResponse\x12\x37\n\rrelationships\x18\x01 \x03(\x0b\x32 .exabel.api.data.v1.Relationship\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x12\n\ntotal_size\x18\x03 \x01(\x05\"_\n\x16GetRelationshipRequest\x12\x13\n\x06parent\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x18\n\x0b\x66rom_entity\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x16\n\tto_entity\x18\x03 \x01(\tB\x03\xe0\x41\x02\"X\n\x19\x43reateRelationshipRequest\x12;\n\x0crelationship\x18\x01 \x01(\x0b\x32 .exabel.api.data.v1.RelationshipB\x03\xe0\x41\x02\"\x89\x01\n\x19UpdateRelationshipRequest\x12;\n\x0crelationship\x18\x01 \x01(\x0b\x32 .exabel.api.data.v1.RelationshipB\x03\xe0\x41\x02\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"b\n\x19\x44\x65leteRelationshipRequest\x12\x13\n\x06parent\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x18\n\x0b\x66rom_entity\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x16\n\tto_entity\x18\x03 \x01(\tB\x03\xe0\x41\x02\x32\x8f\r\n\x13RelationshipService\x12\x9b\x01\n\x15ListRelationshipTypes\x12\x30.exabel.api.data.v1.ListRelationshipTypesRequest\x1a\x31.exabel.api.data.v1.ListRelationshipTypesResponse\"\x1d\x82\xd3\xe4\x93\x02\x17\x12\x15/v1/relationshipTypes\x12\x93\x01\n\x13GetRelationshipType\x12..exabel.api.data.v1.GetRelationshipTypeRequest\x1a$.exabel.api.data.v1.RelationshipType\"&\x82\xd3\xe4\x93\x02 \x12\x1e/v1/{name=relationshipTypes/*}\x12\xa3\x01\n\x16\x43reateRelationshipType\x12\x31.exabel.api.data.v1.CreateRelationshipTypeRequest\x1a$.exabel.api.data.v1.RelationshipType\"0\x82\xd3\xe4\x93\x02*\"\x15/v1/relationshipTypes:\x11relationship_type\x12\xbe\x01\n\x16UpdateRelationshipType\x12\x31.exabel.api.data.v1.UpdateRelationshipTypeRequest\x1a$.exabel.api.data.v1.RelationshipType\"K\x82\xd3\xe4\x93\x02\x45\x32\x30/v1/{relationship_type.name=relationshipTypes/*}:\x11relationship_type\x12\x8b\x01\n\x16\x44\x65leteRelationshipType\x12\x31.exabel.api.data.v1.DeleteRelationshipTypeRequest\x1a\x16.google.protobuf.Empty\"&\x82\xd3\xe4\x93\x02 *\x1e/v1/{name=relationshipTypes/*}\x12\xa8\x01\n\x11ListRelationships\x12,.exabel.api.data.v1.ListRelationshipsRequest\x1a-.exabel.api.data.v1.ListRelationshipsResponse\"6\x82\xd3\xe4\x93\x02\x30\x12./v1/{parent=relationshipTypes/*}/relationships\x12\x97\x01\n\x0fGetRelationship\x12*.exabel.api.data.v1.GetRelationshipRequest\x1a .exabel.api.data.v1.Relationship\"6\x82\xd3\xe4\x93\x02\x30\x12./v1/{parent=relationshipTypes/*}/relationships\x12\xb8\x01\n\x12\x43reateRelationship\x12-.exabel.api.data.v1.CreateRelationshipRequest\x1a .exabel.api.data.v1.Relationship\"Q\x82\xd3\xe4\x93\x02K\";/v1/{relationship.parent=relationshipTypes/*}/relationships:\x0crelationship\x12\xb8\x01\n\x12UpdateRelationship\x12-.exabel.api.data.v1.UpdateRelationshipRequest\x1a .exabel.api.data.v1.Relationship\"Q\x82\xd3\xe4\x93\x02K2;/v1/{relationship.parent=relationshipTypes/*}/relationships:\x0crelationship\x12\x93\x01\n\x12\x44\x65leteRelationship\x12-.exabel.api.data.v1.DeleteRelationshipRequest\x1a\x16.google.protobuf.Empty\"6\x82\xd3\xe4\x93\x02\x30*./v1/{parent=relationshipTypes/*}/relationshipsB4\n\x16\x63om.exabel.api.data.v1B\x18RelationshipServiceProtoP\x01\x62\x06proto3' , - dependencies=[exabel_dot_api_dot_data_dot_v1_dot_relationship__messages__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_protobuf_dot_empty__pb2.DESCRIPTOR,google_dot_protobuf_dot_field__mask__pb2.DESCRIPTOR,]) + dependencies=[exabel_dot_api_dot_data_dot_v1_dot_relationship__messages__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_protobuf_dot_empty__pb2.DESCRIPTOR,google_dot_protobuf_dot_field__mask__pb2.DESCRIPTOR,]) @@ -64,8 +65,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=210, - serialized_end=279, + serialized_start=243, + serialized_end=312, ) @@ -110,8 +111,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=282, - serialized_end=424, + serialized_start=315, + serialized_end=457, ) @@ -129,7 +130,7 @@ has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + serialized_options=b'\340A\002', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], @@ -142,8 +143,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=426, - serialized_end=522, + serialized_start=459, + serialized_end=560, ) @@ -161,7 +162,7 @@ has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + serialized_options=b'\340A\002', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='update_mask', full_name='exabel.api.data.v1.UpdateRelationshipTypeRequest.update_mask', index=1, number=2, type=11, cpp_type=10, label=1, @@ -181,8 +182,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=525, - serialized_end=670, + serialized_start=563, + serialized_end=713, ) @@ -200,7 +201,7 @@ has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + serialized_options=b'\340A\002', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], @@ -213,8 +214,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=672, - serialized_end=717, + serialized_start=715, + serialized_end=765, ) @@ -232,7 +233,7 @@ has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + serialized_options=b'\340A\002', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], @@ -245,8 +246,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=719, - serialized_end=761, + serialized_start=767, + serialized_end=814, ) @@ -264,7 +265,7 @@ has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + serialized_options=b'\340A\002', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='from_entity', full_name='exabel.api.data.v1.ListRelationshipsRequest.from_entity', index=1, number=2, type=9, cpp_type=9, label=1, @@ -305,8 +306,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=763, - serialized_end=884, + serialized_start=816, + serialized_end=942, ) @@ -351,8 +352,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=887, - serialized_end=1016, + serialized_start=945, + serialized_end=1074, ) @@ -370,21 +371,21 @@ has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + serialized_options=b'\340A\002', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='from_entity', full_name='exabel.api.data.v1.GetRelationshipRequest.from_entity', index=1, number=2, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + serialized_options=b'\340A\002', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='to_entity', full_name='exabel.api.data.v1.GetRelationshipRequest.to_entity', index=2, number=3, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + serialized_options=b'\340A\002', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], @@ -397,8 +398,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1018, - serialized_end=1098, + serialized_start=1076, + serialized_end=1171, ) @@ -416,7 +417,7 @@ has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + serialized_options=b'\340A\002', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], @@ -429,8 +430,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1100, - serialized_end=1183, + serialized_start=1173, + serialized_end=1261, ) @@ -448,7 +449,7 @@ has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + serialized_options=b'\340A\002', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='update_mask', full_name='exabel.api.data.v1.UpdateRelationshipRequest.update_mask', index=1, number=2, type=11, cpp_type=10, label=1, @@ -468,8 +469,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1186, - serialized_end=1318, + serialized_start=1264, + serialized_end=1401, ) @@ -487,21 +488,21 @@ has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + serialized_options=b'\340A\002', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='from_entity', full_name='exabel.api.data.v1.DeleteRelationshipRequest.from_entity', index=1, number=2, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + serialized_options=b'\340A\002', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='to_entity', full_name='exabel.api.data.v1.DeleteRelationshipRequest.to_entity', index=2, number=3, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + serialized_options=b'\340A\002', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], @@ -514,8 +515,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1320, - serialized_end=1403, + serialized_start=1403, + serialized_end=1501, ) _LISTRELATIONSHIPTYPESRESPONSE.fields_by_name['relationship_types'].message_type = exabel_dot_api_dot_data_dot_v1_dot_relationship__messages__pb2._RELATIONSHIPTYPE @@ -626,6 +627,19 @@ DESCRIPTOR._options = None +_CREATERELATIONSHIPTYPEREQUEST.fields_by_name['relationship_type']._options = None +_UPDATERELATIONSHIPTYPEREQUEST.fields_by_name['relationship_type']._options = None +_DELETERELATIONSHIPTYPEREQUEST.fields_by_name['name']._options = None +_GETRELATIONSHIPTYPEREQUEST.fields_by_name['name']._options = None +_LISTRELATIONSHIPSREQUEST.fields_by_name['parent']._options = None +_GETRELATIONSHIPREQUEST.fields_by_name['parent']._options = None +_GETRELATIONSHIPREQUEST.fields_by_name['from_entity']._options = None +_GETRELATIONSHIPREQUEST.fields_by_name['to_entity']._options = None +_CREATERELATIONSHIPREQUEST.fields_by_name['relationship']._options = None +_UPDATERELATIONSHIPREQUEST.fields_by_name['relationship']._options = None +_DELETERELATIONSHIPREQUEST.fields_by_name['parent']._options = None +_DELETERELATIONSHIPREQUEST.fields_by_name['from_entity']._options = None +_DELETERELATIONSHIPREQUEST.fields_by_name['to_entity']._options = None _RELATIONSHIPSERVICE = _descriptor.ServiceDescriptor( name='RelationshipService', @@ -634,8 +648,8 @@ index=0, serialized_options=None, create_key=_descriptor._internal_create_key, - serialized_start=1406, - serialized_end=3085, + serialized_start=1504, + serialized_end=3183, methods=[ _descriptor.MethodDescriptor( name='ListRelationshipTypes', diff --git a/exabel_data_sdk/stubs/exabel/api/data/v1/search_messages_pb2.py b/exabel_data_sdk/stubs/exabel/api/data/v1/search_messages_pb2.py index bfa9746..6e74bfc 100644 --- a/exabel_data_sdk/stubs/exabel/api/data/v1/search_messages_pb2.py +++ b/exabel_data_sdk/stubs/exabel/api/data/v1/search_messages_pb2.py @@ -11,6 +11,7 @@ _sym_db = _symbol_database.Default() +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 DESCRIPTOR = _descriptor.FileDescriptor( @@ -19,8 +20,9 @@ syntax='proto3', serialized_options=b'\n\026com.exabel.api.data.v1B\023SearchMessagesProtoP\001', create_key=_descriptor._internal_create_key, - serialized_pb=b'\n(exabel/api/data/v1/search_messages.proto\x12\x12\x65xabel.api.data.v1\"*\n\nSearchTerm\x12\r\n\x05\x66ield\x18\x01 \x01(\t\x12\r\n\x05query\x18\x02 \x01(\tB/\n\x16\x63om.exabel.api.data.v1B\x13SearchMessagesProtoP\x01\x62\x06proto3' -) + serialized_pb=b'\n(exabel/api/data/v1/search_messages.proto\x12\x12\x65xabel.api.data.v1\x1a\x1fgoogle/api/field_behavior.proto\"4\n\nSearchTerm\x12\x12\n\x05\x66ield\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x12\n\x05query\x18\x02 \x01(\tB\x03\xe0\x41\x02\x42/\n\x16\x63om.exabel.api.data.v1B\x13SearchMessagesProtoP\x01\x62\x06proto3' + , + dependencies=[google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,]) @@ -39,14 +41,14 @@ has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + serialized_options=b'\340A\002', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='query', full_name='exabel.api.data.v1.SearchTerm.query', index=1, number=2, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + serialized_options=b'\340A\002', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], @@ -59,8 +61,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=64, - serialized_end=106, + serialized_start=97, + serialized_end=149, ) DESCRIPTOR.message_types_by_name['SearchTerm'] = _SEARCHTERM @@ -75,4 +77,6 @@ DESCRIPTOR._options = None +_SEARCHTERM.fields_by_name['field']._options = None +_SEARCHTERM.fields_by_name['query']._options = None # @@protoc_insertion_point(module_scope) diff --git a/exabel_data_sdk/stubs/exabel/api/data/v1/signal_messages_pb2.py b/exabel_data_sdk/stubs/exabel/api/data/v1/signal_messages_pb2.py index 89ab099..50f87ac 100644 --- a/exabel_data_sdk/stubs/exabel/api/data/v1/signal_messages_pb2.py +++ b/exabel_data_sdk/stubs/exabel/api/data/v1/signal_messages_pb2.py @@ -12,6 +12,7 @@ from exabel_data_sdk.stubs.exabel.api.math import aggregation_pb2 as exabel_dot_api_dot_math_dot_aggregation__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 DESCRIPTOR = _descriptor.FileDescriptor( @@ -20,9 +21,9 @@ syntax='proto3', serialized_options=b'\n\026com.exabel.api.data.v1B\023SignalMessagesProtoP\001', create_key=_descriptor._internal_create_key, - serialized_pb=b'\n(exabel/api/data/v1/signal_messages.proto\x12\x12\x65xabel.api.data.v1\x1a!exabel/api/math/aggregation.proto\"\xbe\x01\n\x06Signal\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x17\n\x0b\x65ntity_type\x18\x02 \x01(\tB\x02\x18\x01\x12\x14\n\x0c\x64isplay_name\x18\x03 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x04 \x01(\t\x12\x39\n\x13\x64ownsampling_method\x18\x05 \x01(\x0e\x32\x1c.exabel.api.math.Aggregation\x12\x11\n\tread_only\x18\x06 \x01(\x08\x12\x14\n\x0c\x65ntity_types\x18\x07 \x03(\tB/\n\x16\x63om.exabel.api.data.v1B\x13SignalMessagesProtoP\x01\x62\x06proto3' + serialized_pb=b'\n(exabel/api/data/v1/signal_messages.proto\x12\x12\x65xabel.api.data.v1\x1a!exabel/api/math/aggregation.proto\x1a\x1fgoogle/api/field_behavior.proto\"\xd5\x01\n\x06Signal\x12\x14\n\x04name\x18\x01 \x01(\tB\x06\xe0\x41\x05\xe0\x41\x02\x12\x17\n\x0b\x65ntity_type\x18\x02 \x01(\tB\x02\x18\x01\x12\x19\n\x0c\x64isplay_name\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x0b\x64\x65scription\x18\x04 \x01(\t\x12\x39\n\x13\x64ownsampling_method\x18\x05 \x01(\x0e\x32\x1c.exabel.api.math.Aggregation\x12\x16\n\tread_only\x18\x06 \x01(\x08\x42\x03\xe0\x41\x03\x12\x19\n\x0c\x65ntity_types\x18\x07 \x03(\tB\x03\xe0\x41\x03\x42/\n\x16\x63om.exabel.api.data.v1B\x13SignalMessagesProtoP\x01\x62\x06proto3' , - dependencies=[exabel_dot_api_dot_math_dot_aggregation__pb2.DESCRIPTOR,]) + dependencies=[exabel_dot_api_dot_math_dot_aggregation__pb2.DESCRIPTOR,google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,]) @@ -41,7 +42,7 @@ has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + serialized_options=b'\340A\005\340A\002', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='entity_type', full_name='exabel.api.data.v1.Signal.entity_type', index=1, number=2, type=9, cpp_type=9, label=1, @@ -55,7 +56,7 @@ has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + serialized_options=b'\340A\002', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='description', full_name='exabel.api.data.v1.Signal.description', index=3, number=4, type=9, cpp_type=9, label=1, @@ -76,14 +77,14 @@ has_default_value=False, default_value=False, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + serialized_options=b'\340A\003', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='entity_types', full_name='exabel.api.data.v1.Signal.entity_types', index=6, number=7, type=9, cpp_type=9, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + serialized_options=b'\340A\003', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], @@ -96,8 +97,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=100, - serialized_end=290, + serialized_start=133, + serialized_end=346, ) _SIGNAL.fields_by_name['downsampling_method'].enum_type = exabel_dot_api_dot_math_dot_aggregation__pb2._AGGREGATION @@ -113,5 +114,9 @@ DESCRIPTOR._options = None +_SIGNAL.fields_by_name['name']._options = None _SIGNAL.fields_by_name['entity_type']._options = None +_SIGNAL.fields_by_name['display_name']._options = None +_SIGNAL.fields_by_name['read_only']._options = None +_SIGNAL.fields_by_name['entity_types']._options = None # @@protoc_insertion_point(module_scope) diff --git a/exabel_data_sdk/stubs/exabel/api/data/v1/signal_service_pb2.py b/exabel_data_sdk/stubs/exabel/api/data/v1/signal_service_pb2.py index abcd868..7b3c5b3 100644 --- a/exabel_data_sdk/stubs/exabel/api/data/v1/signal_service_pb2.py +++ b/exabel_data_sdk/stubs/exabel/api/data/v1/signal_service_pb2.py @@ -12,7 +12,8 @@ from exabel_data_sdk.stubs.exabel.api.data.v1 import signal_messages_pb2 as exabel_dot_api_dot_data_dot_v1_dot_signal__messages__pb2 -from exabel_data_sdk.stubs.google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 from google.protobuf import field_mask_pb2 as google_dot_protobuf_dot_field__mask__pb2 @@ -23,9 +24,9 @@ syntax='proto3', serialized_options=b'\n\026com.exabel.api.data.v1B\022SignalServiceProtoP\001', create_key=_descriptor._internal_create_key, - serialized_pb=b'\n\'exabel/api/data/v1/signal_service.proto\x12\x12\x65xabel.api.data.v1\x1a(exabel/api/data/v1/signal_messages.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\";\n\x12ListSignalsRequest\x12\x11\n\tpage_size\x18\x01 \x01(\x05\x12\x12\n\npage_token\x18\x02 \x01(\t\"o\n\x13ListSignalsResponse\x12+\n\x07signals\x18\x01 \x03(\x0b\x32\x1a.exabel.api.data.v1.Signal\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x12\n\ntotal_size\x18\x03 \x01(\x05\" \n\x10GetSignalRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\"`\n\x13\x43reateSignalRequest\x12*\n\x06signal\x18\x01 \x01(\x0b\x32\x1a.exabel.api.data.v1.Signal\x12\x1d\n\x15\x63reate_library_signal\x18\x02 \x01(\x08\"r\n\x13UpdateSignalRequest\x12*\n\x06signal\x18\x01 \x01(\x0b\x32\x1a.exabel.api.data.v1.Signal\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"#\n\x13\x44\x65leteSignalRequest\x12\x0c\n\x04name\x18\x01 \x01(\t2\xd5\x04\n\rSignalService\x12s\n\x0bListSignals\x12&.exabel.api.data.v1.ListSignalsRequest\x1a\'.exabel.api.data.v1.ListSignalsResponse\"\x13\x82\xd3\xe4\x93\x02\r\x12\x0b/v1/signals\x12k\n\tGetSignal\x12$.exabel.api.data.v1.GetSignalRequest\x1a\x1a.exabel.api.data.v1.Signal\"\x1c\x82\xd3\xe4\x93\x02\x16\x12\x14/v1/{name=signals/*}\x12p\n\x0c\x43reateSignal\x12\'.exabel.api.data.v1.CreateSignalRequest\x1a\x1a.exabel.api.data.v1.Signal\"\x1b\x82\xd3\xe4\x93\x02\x15\"\x0b/v1/signals:\x06signal\x12\x80\x01\n\x0cUpdateSignal\x12\'.exabel.api.data.v1.UpdateSignalRequest\x1a\x1a.exabel.api.data.v1.Signal\"+\x82\xd3\xe4\x93\x02%2\x1b/v1/{signal.name=signals/*}:\x06signal\x12m\n\x0c\x44\x65leteSignal\x12\'.exabel.api.data.v1.DeleteSignalRequest\x1a\x16.google.protobuf.Empty\"\x1c\x82\xd3\xe4\x93\x02\x16*\x14/v1/{name=signals/*}B.\n\x16\x63om.exabel.api.data.v1B\x12SignalServiceProtoP\x01\x62\x06proto3' + serialized_pb=b'\n\'exabel/api/data/v1/signal_service.proto\x12\x12\x65xabel.api.data.v1\x1a(exabel/api/data/v1/signal_messages.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\";\n\x12ListSignalsRequest\x12\x11\n\tpage_size\x18\x01 \x01(\x05\x12\x12\n\npage_token\x18\x02 \x01(\t\"o\n\x13ListSignalsResponse\x12+\n\x07signals\x18\x01 \x03(\x0b\x32\x1a.exabel.api.data.v1.Signal\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x12\n\ntotal_size\x18\x03 \x01(\x05\"%\n\x10GetSignalRequest\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\"e\n\x13\x43reateSignalRequest\x12/\n\x06signal\x18\x01 \x01(\x0b\x32\x1a.exabel.api.data.v1.SignalB\x03\xe0\x41\x02\x12\x1d\n\x15\x63reate_library_signal\x18\x02 \x01(\x08\"w\n\x13UpdateSignalRequest\x12/\n\x06signal\x18\x01 \x01(\x0b\x32\x1a.exabel.api.data.v1.SignalB\x03\xe0\x41\x02\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"(\n\x13\x44\x65leteSignalRequest\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x32\xd5\x04\n\rSignalService\x12s\n\x0bListSignals\x12&.exabel.api.data.v1.ListSignalsRequest\x1a\'.exabel.api.data.v1.ListSignalsResponse\"\x13\x82\xd3\xe4\x93\x02\r\x12\x0b/v1/signals\x12k\n\tGetSignal\x12$.exabel.api.data.v1.GetSignalRequest\x1a\x1a.exabel.api.data.v1.Signal\"\x1c\x82\xd3\xe4\x93\x02\x16\x12\x14/v1/{name=signals/*}\x12p\n\x0c\x43reateSignal\x12\'.exabel.api.data.v1.CreateSignalRequest\x1a\x1a.exabel.api.data.v1.Signal\"\x1b\x82\xd3\xe4\x93\x02\x15\"\x0b/v1/signals:\x06signal\x12\x80\x01\n\x0cUpdateSignal\x12\'.exabel.api.data.v1.UpdateSignalRequest\x1a\x1a.exabel.api.data.v1.Signal\"+\x82\xd3\xe4\x93\x02%2\x1b/v1/{signal.name=signals/*}:\x06signal\x12m\n\x0c\x44\x65leteSignal\x12\'.exabel.api.data.v1.DeleteSignalRequest\x1a\x16.google.protobuf.Empty\"\x1c\x82\xd3\xe4\x93\x02\x16*\x14/v1/{name=signals/*}B.\n\x16\x63om.exabel.api.data.v1B\x12SignalServiceProtoP\x01\x62\x06proto3' , - dependencies=[exabel_dot_api_dot_data_dot_v1_dot_signal__messages__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_protobuf_dot_empty__pb2.DESCRIPTOR,google_dot_protobuf_dot_field__mask__pb2.DESCRIPTOR,]) + dependencies=[exabel_dot_api_dot_data_dot_v1_dot_signal__messages__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_protobuf_dot_empty__pb2.DESCRIPTOR,google_dot_protobuf_dot_field__mask__pb2.DESCRIPTOR,]) @@ -64,8 +65,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=198, - serialized_end=257, + serialized_start=231, + serialized_end=290, ) @@ -110,8 +111,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=259, - serialized_end=370, + serialized_start=292, + serialized_end=403, ) @@ -129,7 +130,7 @@ has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + serialized_options=b'\340A\002', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], @@ -142,8 +143,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=372, - serialized_end=404, + serialized_start=405, + serialized_end=442, ) @@ -161,7 +162,7 @@ has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + serialized_options=b'\340A\002', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='create_library_signal', full_name='exabel.api.data.v1.CreateSignalRequest.create_library_signal', index=1, number=2, type=8, cpp_type=7, label=1, @@ -181,8 +182,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=406, - serialized_end=502, + serialized_start=444, + serialized_end=545, ) @@ -200,7 +201,7 @@ has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + serialized_options=b'\340A\002', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='update_mask', full_name='exabel.api.data.v1.UpdateSignalRequest.update_mask', index=1, number=2, type=11, cpp_type=10, label=1, @@ -220,8 +221,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=504, - serialized_end=618, + serialized_start=547, + serialized_end=666, ) @@ -239,7 +240,7 @@ has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + serialized_options=b'\340A\002', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], @@ -252,8 +253,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=620, - serialized_end=655, + serialized_start=668, + serialized_end=708, ) _LISTSIGNALSRESPONSE.fields_by_name['signals'].message_type = exabel_dot_api_dot_data_dot_v1_dot_signal__messages__pb2._SIGNAL @@ -312,6 +313,10 @@ DESCRIPTOR._options = None +_GETSIGNALREQUEST.fields_by_name['name']._options = None +_CREATESIGNALREQUEST.fields_by_name['signal']._options = None +_UPDATESIGNALREQUEST.fields_by_name['signal']._options = None +_DELETESIGNALREQUEST.fields_by_name['name']._options = None _SIGNALSERVICE = _descriptor.ServiceDescriptor( name='SignalService', @@ -320,8 +325,8 @@ index=0, serialized_options=None, create_key=_descriptor._internal_create_key, - serialized_start=658, - serialized_end=1255, + serialized_start=711, + serialized_end=1308, methods=[ _descriptor.MethodDescriptor( name='ListSignals', diff --git a/exabel_data_sdk/stubs/exabel/api/data/v1/time_series_messages_pb2.py b/exabel_data_sdk/stubs/exabel/api/data/v1/time_series_messages_pb2.py index f2de40e..1b2fc51 100644 --- a/exabel_data_sdk/stubs/exabel/api/data/v1/time_series_messages_pb2.py +++ b/exabel_data_sdk/stubs/exabel/api/data/v1/time_series_messages_pb2.py @@ -12,6 +12,7 @@ from exabel_data_sdk.stubs.exabel.api.time import time_range_pb2 as exabel_dot_api_dot_time_dot_time__range__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 from google.protobuf import duration_pb2 as google_dot_protobuf_dot_duration__pb2 from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 @@ -23,9 +24,9 @@ syntax='proto3', serialized_options=b'\n\026com.exabel.api.data.v1B\027TimeSeriesMessagesProtoP\001', create_key=_descriptor._internal_create_key, - serialized_pb=b'\n-exabel/api/data/v1/time_series_messages.proto\x12\x12\x65xabel.api.data.v1\x1a exabel/api/time/time_range.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1egoogle/protobuf/wrappers.proto\"b\n\nTimeSeries\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x33\n\x06points\x18\x02 \x03(\x0b\x32#.exabel.api.data.v1.TimeSeriesPoint\x12\x11\n\tread_only\x18\x03 \x01(\x08\"\x98\x01\n\x0fTimeSeriesPoint\x12(\n\x04time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12+\n\x05value\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12.\n\nknown_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"p\n\x0eTimeSeriesView\x12.\n\ntime_range\x18\x01 \x01(\x0b\x32\x1a.exabel.api.time.TimeRange\x12.\n\nknown_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\x9f\x01\n\x10\x44\x65\x66\x61ultKnownTime\x12\x16\n\x0c\x63urrent_time\x18\x01 \x01(\x08H\x00\x12\x30\n\nknown_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x00\x12\x30\n\x0btime_offset\x18\x03 \x01(\x0b\x32\x19.google.protobuf.DurationH\x00\x42\x0f\n\rspecificationB3\n\x16\x63om.exabel.api.data.v1B\x17TimeSeriesMessagesProtoP\x01\x62\x06proto3' + serialized_pb=b'\n-exabel/api/data/v1/time_series_messages.proto\x12\x12\x65xabel.api.data.v1\x1a exabel/api/time/time_range.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1egoogle/protobuf/wrappers.proto\"o\n\nTimeSeries\x12\x14\n\x04name\x18\x01 \x01(\tB\x06\xe0\x41\x05\xe0\x41\x02\x12\x33\n\x06points\x18\x02 \x03(\x0b\x32#.exabel.api.data.v1.TimeSeriesPoint\x12\x16\n\tread_only\x18\x03 \x01(\x08\x42\x03\xe0\x41\x03\"\xa2\x01\n\x0fTimeSeriesPoint\x12-\n\x04time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x02\x12+\n\x05value\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12\x33\n\nknown_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x04\"u\n\x0eTimeSeriesView\x12.\n\ntime_range\x18\x01 \x01(\x0b\x32\x1a.exabel.api.time.TimeRange\x12\x33\n\nknown_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x01\"\x9f\x01\n\x10\x44\x65\x66\x61ultKnownTime\x12\x16\n\x0c\x63urrent_time\x18\x01 \x01(\x08H\x00\x12\x30\n\nknown_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x00\x12\x30\n\x0btime_offset\x18\x03 \x01(\x0b\x32\x19.google.protobuf.DurationH\x00\x42\x0f\n\rspecificationB3\n\x16\x63om.exabel.api.data.v1B\x17TimeSeriesMessagesProtoP\x01\x62\x06proto3' , - dependencies=[exabel_dot_api_dot_time_dot_time__range__pb2.DESCRIPTOR,google_dot_protobuf_dot_duration__pb2.DESCRIPTOR,google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,]) + dependencies=[exabel_dot_api_dot_time_dot_time__range__pb2.DESCRIPTOR,google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_protobuf_dot_duration__pb2.DESCRIPTOR,google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,]) @@ -44,7 +45,7 @@ has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + serialized_options=b'\340A\005\340A\002', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='points', full_name='exabel.api.data.v1.TimeSeries.points', index=1, number=2, type=11, cpp_type=10, label=3, @@ -58,7 +59,7 @@ has_default_value=False, default_value=False, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + serialized_options=b'\340A\003', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], @@ -71,8 +72,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=200, - serialized_end=298, + serialized_start=233, + serialized_end=344, ) @@ -90,7 +91,7 @@ has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + serialized_options=b'\340A\002', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='value', full_name='exabel.api.data.v1.TimeSeriesPoint.value', index=1, number=2, type=11, cpp_type=10, label=1, @@ -104,7 +105,7 @@ has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + serialized_options=b'\340A\004', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], @@ -117,8 +118,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=301, - serialized_end=453, + serialized_start=347, + serialized_end=509, ) @@ -143,7 +144,7 @@ has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + serialized_options=b'\340A\001', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], @@ -156,8 +157,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=455, - serialized_end=567, + serialized_start=511, + serialized_end=628, ) @@ -207,8 +208,8 @@ create_key=_descriptor._internal_create_key, fields=[]), ], - serialized_start=570, - serialized_end=729, + serialized_start=631, + serialized_end=790, ) _TIMESERIES.fields_by_name['points'].message_type = _TIMESERIESPOINT @@ -264,4 +265,9 @@ DESCRIPTOR._options = None +_TIMESERIES.fields_by_name['name']._options = None +_TIMESERIES.fields_by_name['read_only']._options = None +_TIMESERIESPOINT.fields_by_name['time']._options = None +_TIMESERIESPOINT.fields_by_name['known_time']._options = None +_TIMESERIESVIEW.fields_by_name['known_time']._options = None # @@protoc_insertion_point(module_scope) diff --git a/exabel_data_sdk/stubs/exabel/api/data/v1/time_series_service_pb2.py b/exabel_data_sdk/stubs/exabel/api/data/v1/time_series_service_pb2.py index b5092d5..8402a1d 100644 --- a/exabel_data_sdk/stubs/exabel/api/data/v1/time_series_service_pb2.py +++ b/exabel_data_sdk/stubs/exabel/api/data/v1/time_series_service_pb2.py @@ -13,7 +13,8 @@ from exabel_data_sdk.stubs.exabel.api.data.v1 import time_series_messages_pb2 as exabel_dot_api_dot_data_dot_v1_dot_time__series__messages__pb2 from exabel_data_sdk.stubs.exabel.api.time import time_range_pb2 as exabel_dot_api_dot_time_dot_time__range__pb2 -from exabel_data_sdk.stubs.google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 @@ -23,9 +24,9 @@ syntax='proto3', serialized_options=b'\n\026com.exabel.api.data.v1B\026TimeSeriesServiceProtoP\001', create_key=_descriptor._internal_create_key, - serialized_pb=b'\n,exabel/api/data/v1/time_series_service.proto\x12\x12\x65xabel.api.data.v1\x1a-exabel/api/data/v1/time_series_messages.proto\x1a exabel/api/time/time_range.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x1bgoogle/protobuf/empty.proto\"N\n\x15ListTimeSeriesRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"z\n\x16ListTimeSeriesResponse\x12\x33\n\x0btime_series\x18\x01 \x03(\x0b\x32\x1e.exabel.api.data.v1.TimeSeries\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x12\n\ntotal_size\x18\x03 \x01(\x05\"V\n\x14GetTimeSeriesRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x30\n\x04view\x18\x02 \x01(\x0b\x32\".exabel.api.data.v1.TimeSeriesView\"\xd6\x01\n\x17\x43reateTimeSeriesRequest\x12\x33\n\x0btime_series\x18\x01 \x01(\x0b\x32\x1e.exabel.api.data.v1.TimeSeries\x12\x30\n\x04view\x18\x02 \x01(\x0b\x32\".exabel.api.data.v1.TimeSeriesView\x12@\n\x12\x64\x65\x66\x61ult_known_time\x18\x03 \x01(\x0b\x32$.exabel.api.data.v1.DefaultKnownTime\x12\x12\n\ncreate_tag\x18\x04 \x01(\x08\"\xc2\x01\n\x17UpdateTimeSeriesRequest\x12\x33\n\x0btime_series\x18\x01 \x01(\x0b\x32\x1e.exabel.api.data.v1.TimeSeries\x12\x30\n\x04view\x18\x02 \x01(\x0b\x32\".exabel.api.data.v1.TimeSeriesView\x12@\n\x12\x64\x65\x66\x61ult_known_time\x18\x03 \x01(\x0b\x32$.exabel.api.data.v1.DefaultKnownTime\"\'\n\x17\x44\x65leteTimeSeriesRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\"c\n\"BatchDeleteTimeSeriesPointsRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12/\n\x0btime_ranges\x18\x02 \x03(\x0b\x32\x1a.exabel.api.time.TimeRange2\xe4\n\n\x11TimeSeriesService\x12\xc6\x01\n\x0eListTimeSeries\x12).exabel.api.data.v1.ListTimeSeriesRequest\x1a*.exabel.api.data.v1.ListTimeSeriesResponse\"]\x82\xd3\xe4\x93\x02W\x12\x30/v1/{parent=entityTypes/*/entities/*}/timeSeriesZ#\x12!/v1/{parent=signals/*}/timeSeries\x12\xc1\x01\n\rGetTimeSeries\x12(.exabel.api.data.v1.GetTimeSeriesRequest\x1a\x1e.exabel.api.data.v1.TimeSeries\"f\x82\xd3\xe4\x93\x02`\x12-/v1/{name=entityTypes/*/entities/*/signals/*}Z/\x12-/v1/{name=signals/*/entityTypes/*/entities/*}\x12\xfb\x01\n\x10\x43reateTimeSeries\x12+.exabel.api.data.v1.CreateTimeSeriesRequest\x1a\x1e.exabel.api.data.v1.TimeSeries\"\x99\x01\x82\xd3\xe4\x93\x02\x92\x01\"9/v1/{time_series.name=entityTypes/*/entities/*/signals/*}:\x0btime_seriesZH\"9/v1/{time_series.name=signals/*/entityTypes/*/entities/*}:\x0btime_series\x12\xfb\x01\n\x10UpdateTimeSeries\x12+.exabel.api.data.v1.UpdateTimeSeriesRequest\x1a\x1e.exabel.api.data.v1.TimeSeries\"\x99\x01\x82\xd3\xe4\x93\x02\x92\x01\x32\x39/v1/{time_series.name=entityTypes/*/entities/*/signals/*}:\x0btime_seriesZH\"9/v1/{time_series.name=signals/*/entityTypes/*/entities/*}:\x0btime_series\x12\xbf\x01\n\x10\x44\x65leteTimeSeries\x12+.exabel.api.data.v1.DeleteTimeSeriesRequest\x1a\x16.google.protobuf.Empty\"f\x82\xd3\xe4\x93\x02`*-/v1/{name=entityTypes/*/entities/*/signals/*}Z/*-/v1/{name=signals/*/entityTypes/*/entities/*}\x12\x83\x02\n\x1b\x42\x61tchDeleteTimeSeriesPoints\x12\x36.exabel.api.data.v1.BatchDeleteTimeSeriesPointsRequest\x1a\x16.google.protobuf.Empty\"\x93\x01\x82\xd3\xe4\x93\x02\x8c\x01\"@/v1/{name=entityTypes/*/entities/*/signals/*}/points:batchDelete:\x01*ZE\"@/v1/{name=signals/*/entityTypes/*/entities/*}/points:batchDelete:\x01*B2\n\x16\x63om.exabel.api.data.v1B\x16TimeSeriesServiceProtoP\x01\x62\x06proto3' + serialized_pb=b'\n,exabel/api/data/v1/time_series_service.proto\x12\x12\x65xabel.api.data.v1\x1a-exabel/api/data/v1/time_series_messages.proto\x1a exabel/api/time/time_range.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1bgoogle/protobuf/empty.proto\"S\n\x15ListTimeSeriesRequest\x12\x13\n\x06parent\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"z\n\x16ListTimeSeriesResponse\x12\x33\n\x0btime_series\x18\x01 \x03(\x0b\x32\x1e.exabel.api.data.v1.TimeSeries\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x12\n\ntotal_size\x18\x03 \x01(\x05\"[\n\x14GetTimeSeriesRequest\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x30\n\x04view\x18\x02 \x01(\x0b\x32\".exabel.api.data.v1.TimeSeriesView\"\xdb\x01\n\x17\x43reateTimeSeriesRequest\x12\x38\n\x0btime_series\x18\x01 \x01(\x0b\x32\x1e.exabel.api.data.v1.TimeSeriesB\x03\xe0\x41\x02\x12\x30\n\x04view\x18\x02 \x01(\x0b\x32\".exabel.api.data.v1.TimeSeriesView\x12@\n\x12\x64\x65\x66\x61ult_known_time\x18\x03 \x01(\x0b\x32$.exabel.api.data.v1.DefaultKnownTime\x12\x12\n\ncreate_tag\x18\x04 \x01(\x08\"\xc7\x01\n\x17UpdateTimeSeriesRequest\x12\x38\n\x0btime_series\x18\x01 \x01(\x0b\x32\x1e.exabel.api.data.v1.TimeSeriesB\x03\xe0\x41\x02\x12\x30\n\x04view\x18\x02 \x01(\x0b\x32\".exabel.api.data.v1.TimeSeriesView\x12@\n\x12\x64\x65\x66\x61ult_known_time\x18\x03 \x01(\x0b\x32$.exabel.api.data.v1.DefaultKnownTime\",\n\x17\x44\x65leteTimeSeriesRequest\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\"h\n\"BatchDeleteTimeSeriesPointsRequest\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12/\n\x0btime_ranges\x18\x02 \x03(\x0b\x32\x1a.exabel.api.time.TimeRange2\xe4\n\n\x11TimeSeriesService\x12\xc6\x01\n\x0eListTimeSeries\x12).exabel.api.data.v1.ListTimeSeriesRequest\x1a*.exabel.api.data.v1.ListTimeSeriesResponse\"]\x82\xd3\xe4\x93\x02W\x12\x30/v1/{parent=entityTypes/*/entities/*}/timeSeriesZ#\x12!/v1/{parent=signals/*}/timeSeries\x12\xc1\x01\n\rGetTimeSeries\x12(.exabel.api.data.v1.GetTimeSeriesRequest\x1a\x1e.exabel.api.data.v1.TimeSeries\"f\x82\xd3\xe4\x93\x02`\x12-/v1/{name=entityTypes/*/entities/*/signals/*}Z/\x12-/v1/{name=signals/*/entityTypes/*/entities/*}\x12\xfb\x01\n\x10\x43reateTimeSeries\x12+.exabel.api.data.v1.CreateTimeSeriesRequest\x1a\x1e.exabel.api.data.v1.TimeSeries\"\x99\x01\x82\xd3\xe4\x93\x02\x92\x01\"9/v1/{time_series.name=entityTypes/*/entities/*/signals/*}:\x0btime_seriesZH\"9/v1/{time_series.name=signals/*/entityTypes/*/entities/*}:\x0btime_series\x12\xfb\x01\n\x10UpdateTimeSeries\x12+.exabel.api.data.v1.UpdateTimeSeriesRequest\x1a\x1e.exabel.api.data.v1.TimeSeries\"\x99\x01\x82\xd3\xe4\x93\x02\x92\x01\x32\x39/v1/{time_series.name=entityTypes/*/entities/*/signals/*}:\x0btime_seriesZH\"9/v1/{time_series.name=signals/*/entityTypes/*/entities/*}:\x0btime_series\x12\xbf\x01\n\x10\x44\x65leteTimeSeries\x12+.exabel.api.data.v1.DeleteTimeSeriesRequest\x1a\x16.google.protobuf.Empty\"f\x82\xd3\xe4\x93\x02`*-/v1/{name=entityTypes/*/entities/*/signals/*}Z/*-/v1/{name=signals/*/entityTypes/*/entities/*}\x12\x83\x02\n\x1b\x42\x61tchDeleteTimeSeriesPoints\x12\x36.exabel.api.data.v1.BatchDeleteTimeSeriesPointsRequest\x1a\x16.google.protobuf.Empty\"\x93\x01\x82\xd3\xe4\x93\x02\x8c\x01\"@/v1/{name=entityTypes/*/entities/*/signals/*}/points:batchDelete:\x01*ZE\"@/v1/{name=signals/*/entityTypes/*/entities/*}/points:batchDelete:\x01*B2\n\x16\x63om.exabel.api.data.v1B\x16TimeSeriesServiceProtoP\x01\x62\x06proto3' , - dependencies=[exabel_dot_api_dot_data_dot_v1_dot_time__series__messages__pb2.DESCRIPTOR,exabel_dot_api_dot_time_dot_time__range__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_protobuf_dot_empty__pb2.DESCRIPTOR,]) + dependencies=[exabel_dot_api_dot_data_dot_v1_dot_time__series__messages__pb2.DESCRIPTOR,exabel_dot_api_dot_time_dot_time__range__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_protobuf_dot_empty__pb2.DESCRIPTOR,]) @@ -44,7 +45,7 @@ has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + serialized_options=b'\340A\002', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='page_size', full_name='exabel.api.data.v1.ListTimeSeriesRequest.page_size', index=1, number=2, type=5, cpp_type=1, label=1, @@ -71,8 +72,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=208, - serialized_end=286, + serialized_start=241, + serialized_end=324, ) @@ -117,8 +118,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=288, - serialized_end=410, + serialized_start=326, + serialized_end=448, ) @@ -136,7 +137,7 @@ has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + serialized_options=b'\340A\002', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='view', full_name='exabel.api.data.v1.GetTimeSeriesRequest.view', index=1, number=2, type=11, cpp_type=10, label=1, @@ -156,8 +157,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=412, - serialized_end=498, + serialized_start=450, + serialized_end=541, ) @@ -175,7 +176,7 @@ has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + serialized_options=b'\340A\002', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='view', full_name='exabel.api.data.v1.CreateTimeSeriesRequest.view', index=1, number=2, type=11, cpp_type=10, label=1, @@ -209,8 +210,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=501, - serialized_end=715, + serialized_start=544, + serialized_end=763, ) @@ -228,7 +229,7 @@ has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + serialized_options=b'\340A\002', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='view', full_name='exabel.api.data.v1.UpdateTimeSeriesRequest.view', index=1, number=2, type=11, cpp_type=10, label=1, @@ -255,8 +256,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=718, - serialized_end=912, + serialized_start=766, + serialized_end=965, ) @@ -274,7 +275,7 @@ has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + serialized_options=b'\340A\002', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], @@ -287,8 +288,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=914, - serialized_end=953, + serialized_start=967, + serialized_end=1011, ) @@ -306,7 +307,7 @@ has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + serialized_options=b'\340A\002', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='time_ranges', full_name='exabel.api.data.v1.BatchDeleteTimeSeriesPointsRequest.time_ranges', index=1, number=2, type=11, cpp_type=10, label=3, @@ -326,8 +327,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=955, - serialized_end=1054, + serialized_start=1013, + serialized_end=1117, ) _LISTTIMESERIESRESPONSE.fields_by_name['time_series'].message_type = exabel_dot_api_dot_data_dot_v1_dot_time__series__messages__pb2._TIMESERIES @@ -399,6 +400,12 @@ DESCRIPTOR._options = None +_LISTTIMESERIESREQUEST.fields_by_name['parent']._options = None +_GETTIMESERIESREQUEST.fields_by_name['name']._options = None +_CREATETIMESERIESREQUEST.fields_by_name['time_series']._options = None +_UPDATETIMESERIESREQUEST.fields_by_name['time_series']._options = None +_DELETETIMESERIESREQUEST.fields_by_name['name']._options = None +_BATCHDELETETIMESERIESPOINTSREQUEST.fields_by_name['name']._options = None _TIMESERIESSERVICE = _descriptor.ServiceDescriptor( name='TimeSeriesService', @@ -407,8 +414,8 @@ index=0, serialized_options=None, create_key=_descriptor._internal_create_key, - serialized_start=1057, - serialized_end=2437, + serialized_start=1120, + serialized_end=2500, methods=[ _descriptor.MethodDescriptor( name='ListTimeSeries', diff --git a/exabel_data_sdk/stubs/google/__init__.py b/exabel_data_sdk/stubs/google/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/exabel_data_sdk/stubs/google/api/__init__.py b/exabel_data_sdk/stubs/google/api/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/exabel_data_sdk/stubs/google/api/annotations_pb2.py b/exabel_data_sdk/stubs/google/api/annotations_pb2.py deleted file mode 100644 index 4144728..0000000 --- a/exabel_data_sdk/stubs/google/api/annotations_pb2.py +++ /dev/null @@ -1,45 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/api/annotations.proto -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from exabel_data_sdk.stubs.google.api import http_pb2 as google_dot_api_dot_http__pb2 -from google.protobuf import descriptor_pb2 as google_dot_protobuf_dot_descriptor__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/api/annotations.proto', - package='google.api', - syntax='proto3', - serialized_options=b'\n\016com.google.apiB\020AnnotationsProtoP\001ZAgoogle.golang.org/genproto/googleapis/api/annotations;annotations\242\002\004GAPI', - create_key=_descriptor._internal_create_key, - serialized_pb=b'\n\x1cgoogle/api/annotations.proto\x12\ngoogle.api\x1a\x15google/api/http.proto\x1a google/protobuf/descriptor.proto:E\n\x04http\x12\x1e.google.protobuf.MethodOptions\x18\xb0\xca\xbc\" \x01(\x0b\x32\x14.google.api.HttpRuleBn\n\x0e\x63om.google.apiB\x10\x41nnotationsProtoP\x01ZAgoogle.golang.org/genproto/googleapis/api/annotations;annotations\xa2\x02\x04GAPIb\x06proto3' - , - dependencies=[google_dot_api_dot_http__pb2.DESCRIPTOR,google_dot_protobuf_dot_descriptor__pb2.DESCRIPTOR,]) - - -HTTP_FIELD_NUMBER = 72295728 -http = _descriptor.FieldDescriptor( - name='http', full_name='google.api.http', index=0, - number=72295728, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=True, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key) - -DESCRIPTOR.extensions_by_name['http'] = http -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -http.message_type = google_dot_api_dot_http__pb2._HTTPRULE -google_dot_protobuf_dot_descriptor__pb2.MethodOptions.RegisterExtension(http) - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/exabel_data_sdk/stubs/google/api/annotations_pb2.pyi b/exabel_data_sdk/stubs/google/api/annotations_pb2.pyi deleted file mode 100644 index 6019238..0000000 --- a/exabel_data_sdk/stubs/google/api/annotations_pb2.pyi +++ /dev/null @@ -1,17 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" -from google.protobuf.descriptor import ( - FieldDescriptor as google___protobuf___descriptor___FieldDescriptor, - FileDescriptor as google___protobuf___descriptor___FileDescriptor, -) - -from google.protobuf.message import ( - Message as google___protobuf___message___Message, -) - - -DESCRIPTOR: google___protobuf___descriptor___FileDescriptor = ... - -http: google___protobuf___descriptor___FieldDescriptor = ... diff --git a/exabel_data_sdk/stubs/google/api/http_pb2.py b/exabel_data_sdk/stubs/google/api/http_pb2.py deleted file mode 100644 index 759822b..0000000 --- a/exabel_data_sdk/stubs/google/api/http_pb2.py +++ /dev/null @@ -1,254 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/api/http.proto -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/api/http.proto', - package='google.api', - syntax='proto3', - serialized_options=b'\n\016com.google.apiB\tHttpProtoP\001ZAgoogle.golang.org/genproto/googleapis/api/annotations;annotations\370\001\001\242\002\004GAPI', - create_key=_descriptor._internal_create_key, - serialized_pb=b'\n\x15google/api/http.proto\x12\ngoogle.api\"T\n\x04Http\x12#\n\x05rules\x18\x01 \x03(\x0b\x32\x14.google.api.HttpRule\x12\'\n\x1f\x66ully_decode_reserved_expansion\x18\x02 \x01(\x08\"\x81\x02\n\x08HttpRule\x12\x10\n\x08selector\x18\x01 \x01(\t\x12\r\n\x03get\x18\x02 \x01(\tH\x00\x12\r\n\x03put\x18\x03 \x01(\tH\x00\x12\x0e\n\x04post\x18\x04 \x01(\tH\x00\x12\x10\n\x06\x64\x65lete\x18\x05 \x01(\tH\x00\x12\x0f\n\x05patch\x18\x06 \x01(\tH\x00\x12/\n\x06\x63ustom\x18\x08 \x01(\x0b\x32\x1d.google.api.CustomHttpPatternH\x00\x12\x0c\n\x04\x62ody\x18\x07 \x01(\t\x12\x15\n\rresponse_body\x18\x0c \x01(\t\x12\x31\n\x13\x61\x64\x64itional_bindings\x18\x0b \x03(\x0b\x32\x14.google.api.HttpRuleB\t\n\x07pattern\"/\n\x11\x43ustomHttpPattern\x12\x0c\n\x04kind\x18\x01 \x01(\t\x12\x0c\n\x04path\x18\x02 \x01(\tBj\n\x0e\x63om.google.apiB\tHttpProtoP\x01ZAgoogle.golang.org/genproto/googleapis/api/annotations;annotations\xf8\x01\x01\xa2\x02\x04GAPIb\x06proto3' -) - - - - -_HTTP = _descriptor.Descriptor( - name='Http', - full_name='google.api.Http', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='rules', full_name='google.api.Http.rules', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='fully_decode_reserved_expansion', full_name='google.api.Http.fully_decode_reserved_expansion', index=1, - number=2, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=37, - serialized_end=121, -) - - -_HTTPRULE = _descriptor.Descriptor( - name='HttpRule', - full_name='google.api.HttpRule', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='selector', full_name='google.api.HttpRule.selector', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='get', full_name='google.api.HttpRule.get', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='put', full_name='google.api.HttpRule.put', index=2, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='post', full_name='google.api.HttpRule.post', index=3, - number=4, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='delete', full_name='google.api.HttpRule.delete', index=4, - number=5, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='patch', full_name='google.api.HttpRule.patch', index=5, - number=6, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='custom', full_name='google.api.HttpRule.custom', index=6, - number=8, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='body', full_name='google.api.HttpRule.body', index=7, - number=7, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='response_body', full_name='google.api.HttpRule.response_body', index=8, - number=12, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='additional_bindings', full_name='google.api.HttpRule.additional_bindings', index=9, - number=11, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='pattern', full_name='google.api.HttpRule.pattern', - index=0, containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[]), - ], - serialized_start=124, - serialized_end=381, -) - - -_CUSTOMHTTPPATTERN = _descriptor.Descriptor( - name='CustomHttpPattern', - full_name='google.api.CustomHttpPattern', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='kind', full_name='google.api.CustomHttpPattern.kind', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='path', full_name='google.api.CustomHttpPattern.path', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=383, - serialized_end=430, -) - -_HTTP.fields_by_name['rules'].message_type = _HTTPRULE -_HTTPRULE.fields_by_name['custom'].message_type = _CUSTOMHTTPPATTERN -_HTTPRULE.fields_by_name['additional_bindings'].message_type = _HTTPRULE -_HTTPRULE.oneofs_by_name['pattern'].fields.append( - _HTTPRULE.fields_by_name['get']) -_HTTPRULE.fields_by_name['get'].containing_oneof = _HTTPRULE.oneofs_by_name['pattern'] -_HTTPRULE.oneofs_by_name['pattern'].fields.append( - _HTTPRULE.fields_by_name['put']) -_HTTPRULE.fields_by_name['put'].containing_oneof = _HTTPRULE.oneofs_by_name['pattern'] -_HTTPRULE.oneofs_by_name['pattern'].fields.append( - _HTTPRULE.fields_by_name['post']) -_HTTPRULE.fields_by_name['post'].containing_oneof = _HTTPRULE.oneofs_by_name['pattern'] -_HTTPRULE.oneofs_by_name['pattern'].fields.append( - _HTTPRULE.fields_by_name['delete']) -_HTTPRULE.fields_by_name['delete'].containing_oneof = _HTTPRULE.oneofs_by_name['pattern'] -_HTTPRULE.oneofs_by_name['pattern'].fields.append( - _HTTPRULE.fields_by_name['patch']) -_HTTPRULE.fields_by_name['patch'].containing_oneof = _HTTPRULE.oneofs_by_name['pattern'] -_HTTPRULE.oneofs_by_name['pattern'].fields.append( - _HTTPRULE.fields_by_name['custom']) -_HTTPRULE.fields_by_name['custom'].containing_oneof = _HTTPRULE.oneofs_by_name['pattern'] -DESCRIPTOR.message_types_by_name['Http'] = _HTTP -DESCRIPTOR.message_types_by_name['HttpRule'] = _HTTPRULE -DESCRIPTOR.message_types_by_name['CustomHttpPattern'] = _CUSTOMHTTPPATTERN -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -Http = _reflection.GeneratedProtocolMessageType('Http', (_message.Message,), { - 'DESCRIPTOR' : _HTTP, - '__module__' : 'google.api.http_pb2' - # @@protoc_insertion_point(class_scope:google.api.Http) - }) -_sym_db.RegisterMessage(Http) - -HttpRule = _reflection.GeneratedProtocolMessageType('HttpRule', (_message.Message,), { - 'DESCRIPTOR' : _HTTPRULE, - '__module__' : 'google.api.http_pb2' - # @@protoc_insertion_point(class_scope:google.api.HttpRule) - }) -_sym_db.RegisterMessage(HttpRule) - -CustomHttpPattern = _reflection.GeneratedProtocolMessageType('CustomHttpPattern', (_message.Message,), { - 'DESCRIPTOR' : _CUSTOMHTTPPATTERN, - '__module__' : 'google.api.http_pb2' - # @@protoc_insertion_point(class_scope:google.api.CustomHttpPattern) - }) -_sym_db.RegisterMessage(CustomHttpPattern) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/exabel_data_sdk/stubs/google/api/http_pb2.pyi b/exabel_data_sdk/stubs/google/api/http_pb2.pyi deleted file mode 100644 index d28ff3f..0000000 --- a/exabel_data_sdk/stubs/google/api/http_pb2.pyi +++ /dev/null @@ -1,98 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" -from google.protobuf.descriptor import ( - Descriptor as google___protobuf___descriptor___Descriptor, - FileDescriptor as google___protobuf___descriptor___FileDescriptor, -) - -from google.protobuf.internal.containers import ( - RepeatedCompositeFieldContainer as google___protobuf___internal___containers___RepeatedCompositeFieldContainer, -) - -from google.protobuf.message import ( - Message as google___protobuf___message___Message, -) - -from typing import ( - Iterable as typing___Iterable, - Optional as typing___Optional, - Text as typing___Text, -) - -from typing_extensions import ( - Literal as typing_extensions___Literal, -) - - -builtin___bool = bool -builtin___bytes = bytes -builtin___float = float -builtin___int = int - - -DESCRIPTOR: google___protobuf___descriptor___FileDescriptor = ... - -class Http(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - fully_decode_reserved_expansion: builtin___bool = ... - - @property - def rules(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[type___HttpRule]: ... - - def __init__(self, - *, - rules : typing___Optional[typing___Iterable[type___HttpRule]] = None, - fully_decode_reserved_expansion : typing___Optional[builtin___bool] = None, - ) -> None: ... - def ClearField(self, field_name: typing_extensions___Literal[u"fully_decode_reserved_expansion",b"fully_decode_reserved_expansion",u"rules",b"rules"]) -> None: ... -type___Http = Http - -class HttpRule(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - selector: typing___Text = ... - get: typing___Text = ... - put: typing___Text = ... - post: typing___Text = ... - delete: typing___Text = ... - patch: typing___Text = ... - body: typing___Text = ... - response_body: typing___Text = ... - - @property - def custom(self) -> type___CustomHttpPattern: ... - - @property - def additional_bindings(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[type___HttpRule]: ... - - def __init__(self, - *, - selector : typing___Optional[typing___Text] = None, - get : typing___Optional[typing___Text] = None, - put : typing___Optional[typing___Text] = None, - post : typing___Optional[typing___Text] = None, - delete : typing___Optional[typing___Text] = None, - patch : typing___Optional[typing___Text] = None, - custom : typing___Optional[type___CustomHttpPattern] = None, - body : typing___Optional[typing___Text] = None, - response_body : typing___Optional[typing___Text] = None, - additional_bindings : typing___Optional[typing___Iterable[type___HttpRule]] = None, - ) -> None: ... - def HasField(self, field_name: typing_extensions___Literal[u"custom",b"custom",u"delete",b"delete",u"get",b"get",u"patch",b"patch",u"pattern",b"pattern",u"post",b"post",u"put",b"put"]) -> builtin___bool: ... - def ClearField(self, field_name: typing_extensions___Literal[u"additional_bindings",b"additional_bindings",u"body",b"body",u"custom",b"custom",u"delete",b"delete",u"get",b"get",u"patch",b"patch",u"pattern",b"pattern",u"post",b"post",u"put",b"put",u"response_body",b"response_body",u"selector",b"selector"]) -> None: ... - def WhichOneof(self, oneof_group: typing_extensions___Literal[u"pattern",b"pattern"]) -> typing_extensions___Literal["get","put","post","delete","patch","custom"]: ... -type___HttpRule = HttpRule - -class CustomHttpPattern(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - kind: typing___Text = ... - path: typing___Text = ... - - def __init__(self, - *, - kind : typing___Optional[typing___Text] = None, - path : typing___Optional[typing___Text] = None, - ) -> None: ... - def ClearField(self, field_name: typing_extensions___Literal[u"kind",b"kind",u"path",b"path"]) -> None: ... -type___CustomHttpPattern = CustomHttpPattern diff --git a/exabel_data_sdk/stubs/google/api/http_pb2_grpc.py b/exabel_data_sdk/stubs/google/api/http_pb2_grpc.py deleted file mode 100644 index 2daafff..0000000 --- a/exabel_data_sdk/stubs/google/api/http_pb2_grpc.py +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - diff --git a/setup.py b/setup.py index 12cbcb1..88c4226 100644 --- a/setup.py +++ b/setup.py @@ -19,6 +19,7 @@ packages=setuptools.find_packages(), install_requires=[ 'dataclasses == 0.8; python_version <= "3.6"', + "google-api-core==1.31.2", "grpcio", "pandas", "protobuf",