diff --git a/exabel_data_sdk/client/api/entity_api.py b/exabel_data_sdk/client/api/entity_api.py index 4021687..def18e1 100644 --- a/exabel_data_sdk/client/api/entity_api.py +++ b/exabel_data_sdk/client/api/entity_api.py @@ -6,6 +6,7 @@ from exabel_data_sdk.client.api.data_classes.entity_type import EntityType from exabel_data_sdk.client.api.data_classes.paging_result import PagingResult from exabel_data_sdk.client.api.data_classes.request_error import ErrorType, RequestError +from exabel_data_sdk.client.api.search_service import SearchService from exabel_data_sdk.client.client_config import ClientConfig from exabel_data_sdk.stubs.exabel.api.data.v1.all_pb2 import ( CreateEntityRequest, @@ -22,10 +23,14 @@ class EntityApi: """ API class for CRUD operations on entities and entity types. + + Attributes: + search: a SearchService which contains a number of utility methods for searching """ def __init__(self, config: ClientConfig, use_json: bool): self.client = (EntityHttpClient if use_json else EntityGrpcClient)(config) + self.search = SearchService(self.client) def list_entity_types( self, page_size: int = 1000, page_token: str = None diff --git a/exabel_data_sdk/client/api/search_service.py b/exabel_data_sdk/client/api/search_service.py new file mode 100644 index 0000000..44f28b1 --- /dev/null +++ b/exabel_data_sdk/client/api/search_service.py @@ -0,0 +1,191 @@ +import itertools +from typing import Mapping, Sequence, Tuple, TypeVar, Union + +from exabel_data_sdk.client.api.api_client.entity_api_client import EntityApiClient +from exabel_data_sdk.client.api.data_classes.entity import Entity +from exabel_data_sdk.stubs.exabel.api.data.v1.all_pb2 import ( + SearchEntitiesRequest, + SearchEntitiesResponse, + SearchTerm, +) + +_COMPANY_ENTITY_TYPE = "entityTypes/company" +_SECURITY_ENTITY_TYPE = "entityTypes/security" +_LISTING_ENTITY_TYPE = "entityTypes/listing" + +TKey = TypeVar("TKey") + + +class SearchService: + """ + Service for entity search. + """ + + def __init__(self, client: EntityApiClient): + self.client = client + + def company_by_isin(self, *isins: str) -> Mapping[str, Entity]: + """ + Look up companies by ISIN (International Securities Identification Number). + + The return value is a dict with the input values as keys and with the corresponding Entity + objects as values. ISINs which did not return any results, are not included. + """ + return self._company_by_field("isin", *isins) + + def security_by_isin(self, *isins: str) -> Mapping[str, Entity]: + """ + Look up securities by ISIN (International Securities Identification Number). + + The return value is a dict with the input values as keys and with the corresponding Entity + objects as values. ISINs which did not return any results, are not included. + """ + return self._security_by_field("isin", *isins) + + def company_by_bloomberg_ticker(self, *tickers: str) -> Mapping[str, Entity]: + """ + Look up companies by Bloomberg tickers. + + The return value is a dict with the input values as keys and with the corresponding Entity + objects as values. Tickers which did not return any results, are not included. + """ + return self._company_by_field("bloomberg_ticker", *tickers) + + def company_by_bloomberg_symbol(self, *symbols: str) -> Mapping[str, Entity]: + """ + Look up companies by Bloomberg symbols. + + The return value is a dict with the input values as keys and with the corresponding Entity + objects as values. Symbols which did not return any results, are not included. + """ + return self._company_by_field("bloomberg_symbol", *symbols) + + def company_by_factset_identifier(self, *identifiers: str) -> Mapping[str, Entity]: + """ + Look up companies by FactSet identifiers. + + The return value is a dict with the input values as keys and with the corresponding Entity + objects as values. Identifiers which did not return any results, are not included. + """ + return self._company_by_field("factset_identifier", *identifiers) + + def companies_by_text(self, *texts: str) -> Mapping[str, Sequence[Entity]]: + """ + Search for companies based on text search. + + The method searches for ISINs, tickers and company names, and if the search term is + sufficiently long, a prefix search is performed. + + A maximum of five companies is returned for each search. + + The return value is a dict with the input values as keys and with a sequence of Entity + objects as values. Search terms which did not return any results, are not included. + """ + return self._companies_by_field("text", *texts) + + def company_by_mic_and_ticker( + self, *mic_and_ticker: Tuple[str, str] + ) -> Mapping[Tuple[str, str], Entity]: + """ + Look up companies by MIC (Market Identifier Code) and ticker. + + The return value is a dict with the input values as keys and with the corresponding Entity + objects as values. MICs and tickers which did not return any results, are not included. + """ + return self._by_mic_and_ticker(_COMPANY_ENTITY_TYPE, *mic_and_ticker) + + def security_by_mic_and_ticker( + self, *mic_and_ticker: Tuple[str, str] + ) -> Mapping[Tuple[str, str], Entity]: + """ + Look up securities by MIC (Market Identifier Code) and ticker. + + The return value is a dict with the input values as keys and with the corresponding Entity + objects as values. MICs and tickers which did not return any results, are not included. + """ + return self._by_mic_and_ticker(_SECURITY_ENTITY_TYPE, *mic_and_ticker) + + def listing_by_mic_and_ticker( + self, *mic_and_ticker: Tuple[str, str] + ) -> Mapping[Tuple[str, str], Entity]: + """ + Look up listings by MIC (Market Identifier Code) and ticker. + + The return value is a dict with the input values as keys and with the corresponding Entity + objects as values. MICs and tickers which did not return any results, are not included. + """ + return self._by_mic_and_ticker(_LISTING_ENTITY_TYPE, *mic_and_ticker) + + def entities_by_terms( + self, entity_type: str, terms: Sequence[Union[SearchTerm, Tuple[str, str]]] + ) -> Sequence[SearchEntitiesResponse.SearchResult]: + """ + Look up entities of a given type based on a series of search terms. + + The searches that are performed are determined by the input terms. In most cases one search + term defines a single query. The exception to this are the 'MIC' and 'ticker' fields, which + must come in pairs, with 'MIC' immediately before 'ticker'. One such pair is treated as one + search query. + + The return value contains one SearchResult for every query. + """ + request = SearchEntitiesRequest( + parent=entity_type, + terms=[ + term if isinstance(term, SearchTerm) else SearchTerm(field=term[0], query=term[1]) + for term in terms + ], + ) + response = self.client.search_entities(request) + return response.results + + def _company_by_field(self, field: str, *values: str) -> Mapping[str, Entity]: + return self._single_result(self._companies_by_field(field, *values)) + + def _companies_by_field(self, field: str, *values: str) -> Mapping[str, Sequence[Entity]]: + return self._by_field(_COMPANY_ENTITY_TYPE, field, *values) + + def _security_by_field(self, field: str, *values: str) -> Mapping[str, Entity]: + return self._single_result(self._by_field(_SECURITY_ENTITY_TYPE, field, *values)) + + def _by_mic_and_ticker( + self, entity_type: str, *mic_and_ticker: Tuple[str, str] + ) -> Mapping[Tuple[str, str], Entity]: + results = self._by_fields(entity_type, ("mic", "ticker"), *itertools.chain(*mic_and_ticker)) + return self._single_result(results) # type: ignore[arg-type] + + def _single_result(self, results: Mapping[TKey, Sequence[Entity]]) -> Mapping[TKey, Entity]: + new_results = {} + for key, value in results.items(): + assert len(value) == 1 + new_results[key] = value[0] + return new_results + + def _by_field( + self, entity_type: str, field: str, *values: str + ) -> Mapping[str, Sequence[Entity]]: + result: Mapping[Tuple[str, ...], Sequence[Entity]] = self._by_fields( + entity_type, [field], *values + ) + return {query[0]: entities for query, entities in result.items()} + + def _by_fields( + self, entity_type: str, fields: Sequence[str], *values: str + ) -> Mapping[Tuple[str, ...], Sequence[Entity]]: + if not values: + raise ValueError("No search terms provided.") + tuples = [] + for field, value in zip(itertools.cycle(fields), values): + tuples.append((field, value)) + results = self.entities_by_terms(entity_type, tuples) + to_return = {} + for result in results: + assert len(result.terms) == len(fields) + assert list(fields) == [ + term.field for term in result.terms + ], f"{fields} != {[term.field for term in result.terms]}" + if result.entities: + to_return[tuple(term.query for term in result.terms)] = [ + Entity.from_proto(e) for e in result.entities + ] + return to_return diff --git a/exabel_data_sdk/scripts/search_entities.py b/exabel_data_sdk/scripts/search_entities.py index 0358377..1544445 100644 --- a/exabel_data_sdk/scripts/search_entities.py +++ b/exabel_data_sdk/scripts/search_entities.py @@ -44,12 +44,24 @@ def __init__(self, argv: Sequence[str], description: str): type=str, help="The Bloomberg ticker", ) + self.parser.add_argument( + "--bloomberg-symbol", + required=False, + type=str, + help="The Bloomberg symbol", + ) self.parser.add_argument( "--factset-identifier", required=False, type=str, help="The FactSet identifier", ) + self.parser.add_argument( + "--text", + required=False, + type=str, + help="Term for free text search", + ) def run_script(self, client: ExabelClient, args: argparse.Namespace) -> None: terms = {} @@ -57,10 +69,16 @@ def run_script(self, client: ExabelClient, args: argparse.Namespace) -> None: terms["mic"] = args.mic if args.ticker is not None: terms["ticker"] = args.ticker + if args.isin is not None: + terms["isin"] = args.isin if args.bloomberg_ticker is not None: terms["bloomberg_ticker"] = args.bloomberg_ticker + if args.bloomberg_symbol is not None: + terms["bloomberg_symbol"] = args.bloomberg_symbol if args.factset_identifier is not None: terms["factset_identifier"] = args.factset_identifier + if args.text is not None: + terms["text"] = args.text entities = client.entity_api.search_for_entities(entity_type=args.entity_type, **terms) 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 33a2bbb..1d71aeb 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 @@ -6,7 +6,6 @@ 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() @@ -14,258 +13,149 @@ from google.protobuf import struct_pb2 as google_dot_protobuf_dot_struct__pb2 + DESCRIPTOR = _descriptor.FileDescriptor( - name="exabel/api/data/v1/entity_messages.proto", - package="exabel.api.data.v1", - 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', - dependencies=[ - google_dot_protobuf_dot_struct__pb2.DESCRIPTOR, - ], -) + name='exabel/api/data/v1/entity_messages.proto', + package='exabel.api.data.v1', + 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' + , + dependencies=[google_dot_protobuf_dot_struct__pb2.DESCRIPTOR,]) + + _ENTITYTYPE = _descriptor.Descriptor( - name="EntityType", - full_name="exabel.api.data.v1.EntityType", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name="name", - full_name="exabel.api.data.v1.EntityType.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=None, - 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, - ), - _descriptor.FieldDescriptor( - name="description", - full_name="exabel.api.data.v1.EntityType.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="read_only", - full_name="exabel.api.data.v1.EntityType.read_only", - 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, - ), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax="proto3", - extension_ranges=[], - oneofs=[], - serialized_start=94, - serialized_end=182, + name='EntityType', + full_name='exabel.api.data.v1.EntityType', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='name', full_name='exabel.api.data.v1.EntityType.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=None, 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), + _descriptor.FieldDescriptor( + name='description', full_name='exabel.api.data.v1.EntityType.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='read_only', full_name='exabel.api.data.v1.EntityType.read_only', 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), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=94, + serialized_end=182, ) _ENTITY = _descriptor.Descriptor( - name="Entity", - full_name="exabel.api.data.v1.Entity", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name="name", - full_name="exabel.api.data.v1.Entity.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=None, - 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, - ), - _descriptor.FieldDescriptor( - name="description", - full_name="exabel.api.data.v1.Entity.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="read_only", - full_name="exabel.api.data.v1.Entity.read_only", - 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.Entity.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, - 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=185, - serialized_end=314, + name='Entity', + full_name='exabel.api.data.v1.Entity', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='name', full_name='exabel.api.data.v1.Entity.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=None, 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), + _descriptor.FieldDescriptor( + name='description', full_name='exabel.api.data.v1.Entity.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='read_only', full_name='exabel.api.data.v1.Entity.read_only', 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.Entity.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, + 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=185, + serialized_end=314, ) -_ENTITY.fields_by_name["properties"].message_type = google_dot_protobuf_dot_struct__pb2._STRUCT -DESCRIPTOR.message_types_by_name["EntityType"] = _ENTITYTYPE -DESCRIPTOR.message_types_by_name["Entity"] = _ENTITY +_ENTITY.fields_by_name['properties'].message_type = google_dot_protobuf_dot_struct__pb2._STRUCT +DESCRIPTOR.message_types_by_name['EntityType'] = _ENTITYTYPE +DESCRIPTOR.message_types_by_name['Entity'] = _ENTITY _sym_db.RegisterFileDescriptor(DESCRIPTOR) -EntityType = _reflection.GeneratedProtocolMessageType( - "EntityType", - (_message.Message,), - { - "DESCRIPTOR": _ENTITYTYPE, - "__module__": "exabel.api.data.v1.entity_messages_pb2" - # @@protoc_insertion_point(class_scope:exabel.api.data.v1.EntityType) - }, -) +EntityType = _reflection.GeneratedProtocolMessageType('EntityType', (_message.Message,), { + 'DESCRIPTOR' : _ENTITYTYPE, + '__module__' : 'exabel.api.data.v1.entity_messages_pb2' + # @@protoc_insertion_point(class_scope:exabel.api.data.v1.EntityType) + }) _sym_db.RegisterMessage(EntityType) -Entity = _reflection.GeneratedProtocolMessageType( - "Entity", - (_message.Message,), - { - "DESCRIPTOR": _ENTITY, - "__module__": "exabel.api.data.v1.entity_messages_pb2" - # @@protoc_insertion_point(class_scope:exabel.api.data.v1.Entity) - }, -) +Entity = _reflection.GeneratedProtocolMessageType('Entity', (_message.Message,), { + 'DESCRIPTOR' : _ENTITY, + '__module__' : 'exabel.api.data.v1.entity_messages_pb2' + # @@protoc_insertion_point(class_scope:exabel.api.data.v1.Entity) + }) _sym_db.RegisterMessage(Entity) 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 7344b66..0b32c67 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 @@ -24,11 +24,13 @@ 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 EntityType(google___protobuf___message___Message): @@ -37,28 +39,15 @@ class EntityType(google___protobuf___message___Message): display_name: typing___Text = ... description: typing___Text = ... read_only: builtin___bool = ... - def __init__( - self, - *, - name: typing___Optional[typing___Text] = None, - display_name: typing___Optional[typing___Text] = None, - description: typing___Optional[typing___Text] = None, - read_only: typing___Optional[builtin___bool] = None, - ) -> None: ... - def ClearField( - self, - field_name: typing_extensions___Literal[ - "description", - b"description", - "display_name", - b"display_name", - "name", - b"name", - "read_only", - b"read_only", - ], - ) -> None: ... + def __init__(self, + *, + name : typing___Optional[typing___Text] = None, + display_name : typing___Optional[typing___Text] = None, + description : typing___Optional[typing___Text] = None, + read_only : 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: ... type___EntityType = EntityType class Entity(google___protobuf___message___Message): @@ -67,34 +56,18 @@ class Entity(google___protobuf___message___Message): display_name: typing___Text = ... description: typing___Text = ... read_only: builtin___bool = ... + @property def properties(self) -> google___protobuf___struct_pb2___Struct: ... - def __init__( - self, - *, - name: typing___Optional[typing___Text] = None, - display_name: typing___Optional[typing___Text] = None, - description: typing___Optional[typing___Text] = None, - read_only: typing___Optional[builtin___bool] = None, - properties: typing___Optional[google___protobuf___struct_pb2___Struct] = None, - ) -> None: ... - def HasField( - self, field_name: typing_extensions___Literal["properties", b"properties"] - ) -> builtin___bool: ... - def ClearField( - self, - field_name: typing_extensions___Literal[ - "description", - b"description", - "display_name", - b"display_name", - "name", - b"name", - "properties", - b"properties", - "read_only", - b"read_only", - ], - ) -> None: ... + def __init__(self, + *, + name : typing___Optional[typing___Text] = None, + display_name : typing___Optional[typing___Text] = None, + description : typing___Optional[typing___Text] = None, + read_only : 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"display_name",b"display_name",u"name",b"name",u"properties",b"properties",u"read_only",b"read_only"]) -> None: ... type___Entity = Entity diff --git a/exabel_data_sdk/stubs/exabel/api/data/v1/entity_messages_pb2_grpc.py b/exabel_data_sdk/stubs/exabel/api/data/v1/entity_messages_pb2_grpc.py index 8a93939..2daafff 100644 --- a/exabel_data_sdk/stubs/exabel/api/data/v1/entity_messages_pb2_grpc.py +++ b/exabel_data_sdk/stubs/exabel/api/data/v1/entity_messages_pb2_grpc.py @@ -1,3 +1,4 @@ # 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/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 d848352..89a9e36 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 @@ -6,989 +6,723 @@ 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 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.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 -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 DESCRIPTOR = _descriptor.FileDescriptor( - name="exabel/api/data/v1/entity_service.proto", - package="exabel.api.data.v1", - 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"_\n\x16SearchEntitiesResponse\x12,\n\x08\x65ntities\x18\x01 \x03(\x0b\x32\x1a.exabel.api.data.v1.Entity\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t2\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, - ], -) + name='exabel/api/data/v1/entity_service.proto', + package='exabel.api.data.v1', + 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' + , + 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,]) + + _LISTENTITYTYPESREQUEST = _descriptor.Descriptor( - name="ListEntityTypesRequest", - full_name="exabel.api.data.v1.ListEntityTypesRequest", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name="page_size", - full_name="exabel.api.data.v1.ListEntityTypesRequest.page_size", - index=0, - number=1, - type=5, - cpp_type=1, - label=1, - has_default_value=False, - default_value=0, - 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="page_token", - full_name="exabel.api.data.v1.ListEntityTypesRequest.page_token", - 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=240, - serialized_end=303, + name='ListEntityTypesRequest', + full_name='exabel.api.data.v1.ListEntityTypesRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='page_size', full_name='exabel.api.data.v1.ListEntityTypesRequest.page_size', index=0, + number=1, type=5, cpp_type=1, label=1, + has_default_value=False, default_value=0, + 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='page_token', full_name='exabel.api.data.v1.ListEntityTypesRequest.page_token', 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=240, + serialized_end=303, ) _LISTENTITYTYPESRESPONSE = _descriptor.Descriptor( - name="ListEntityTypesResponse", - full_name="exabel.api.data.v1.ListEntityTypesResponse", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name="entity_types", - full_name="exabel.api.data.v1.ListEntityTypesResponse.entity_types", - 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="next_page_token", - full_name="exabel.api.data.v1.ListEntityTypesResponse.next_page_token", - 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="total_size", - full_name="exabel.api.data.v1.ListEntityTypesResponse.total_size", - index=2, - number=3, - type=5, - cpp_type=1, - label=1, - has_default_value=False, - default_value=0, - 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=305, - serialized_end=429, + name='ListEntityTypesResponse', + full_name='exabel.api.data.v1.ListEntityTypesResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='entity_types', full_name='exabel.api.data.v1.ListEntityTypesResponse.entity_types', 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='next_page_token', full_name='exabel.api.data.v1.ListEntityTypesResponse.next_page_token', 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='total_size', full_name='exabel.api.data.v1.ListEntityTypesResponse.total_size', index=2, + number=3, type=5, cpp_type=1, label=1, + has_default_value=False, default_value=0, + 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=305, + serialized_end=429, ) _GETENTITYTYPEREQUEST = _descriptor.Descriptor( - name="GetEntityTypeRequest", - full_name="exabel.api.data.v1.GetEntityTypeRequest", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name="name", - full_name="exabel.api.data.v1.GetEntityTypeRequest.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=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=431, - serialized_end=467, + name='GetEntityTypeRequest', + full_name='exabel.api.data.v1.GetEntityTypeRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='name', full_name='exabel.api.data.v1.GetEntityTypeRequest.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=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=431, + serialized_end=467, ) _LISTENTITIESREQUEST = _descriptor.Descriptor( - name="ListEntitiesRequest", - full_name="exabel.api.data.v1.ListEntitiesRequest", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name="parent", - full_name="exabel.api.data.v1.ListEntitiesRequest.parent", - 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="page_size", - full_name="exabel.api.data.v1.ListEntitiesRequest.page_size", - index=1, - number=2, - type=5, - cpp_type=1, - label=1, - has_default_value=False, - default_value=0, - 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="page_token", - full_name="exabel.api.data.v1.ListEntitiesRequest.page_token", - 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, - ), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax="proto3", - extension_ranges=[], - oneofs=[], - serialized_start=469, - serialized_end=545, + name='ListEntitiesRequest', + full_name='exabel.api.data.v1.ListEntitiesRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='parent', full_name='exabel.api.data.v1.ListEntitiesRequest.parent', 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='page_size', full_name='exabel.api.data.v1.ListEntitiesRequest.page_size', index=1, + number=2, type=5, cpp_type=1, label=1, + has_default_value=False, default_value=0, + 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='page_token', full_name='exabel.api.data.v1.ListEntitiesRequest.page_token', 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), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=469, + serialized_end=545, ) _LISTENTITIESRESPONSE = _descriptor.Descriptor( - name="ListEntitiesResponse", - full_name="exabel.api.data.v1.ListEntitiesResponse", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name="entities", - full_name="exabel.api.data.v1.ListEntitiesResponse.entities", - 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="next_page_token", - full_name="exabel.api.data.v1.ListEntitiesResponse.next_page_token", - 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="total_size", - full_name="exabel.api.data.v1.ListEntitiesResponse.total_size", - index=2, - number=3, - type=5, - cpp_type=1, - label=1, - has_default_value=False, - default_value=0, - 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=547, - serialized_end=660, + name='ListEntitiesResponse', + full_name='exabel.api.data.v1.ListEntitiesResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='entities', full_name='exabel.api.data.v1.ListEntitiesResponse.entities', 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='next_page_token', full_name='exabel.api.data.v1.ListEntitiesResponse.next_page_token', 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='total_size', full_name='exabel.api.data.v1.ListEntitiesResponse.total_size', index=2, + number=3, type=5, cpp_type=1, label=1, + has_default_value=False, default_value=0, + 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=547, + serialized_end=660, ) _GETENTITYREQUEST = _descriptor.Descriptor( - name="GetEntityRequest", - full_name="exabel.api.data.v1.GetEntityRequest", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name="name", - full_name="exabel.api.data.v1.GetEntityRequest.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=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=662, - serialized_end=694, + name='GetEntityRequest', + full_name='exabel.api.data.v1.GetEntityRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='name', full_name='exabel.api.data.v1.GetEntityRequest.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=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=662, + serialized_end=694, ) _CREATEENTITYREQUEST = _descriptor.Descriptor( - name="CreateEntityRequest", - full_name="exabel.api.data.v1.CreateEntityRequest", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name="parent", - full_name="exabel.api.data.v1.CreateEntityRequest.parent", - 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="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, - ), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax="proto3", - extension_ranges=[], - oneofs=[], - serialized_start=696, - serialized_end=777, + name='CreateEntityRequest', + full_name='exabel.api.data.v1.CreateEntityRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='parent', full_name='exabel.api.data.v1.CreateEntityRequest.parent', 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='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), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=696, + serialized_end=777, ) _UPDATEENTITYREQUEST = _descriptor.Descriptor( - name="UpdateEntityRequest", - full_name="exabel.api.data.v1.UpdateEntityRequest", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name="entity", - full_name="exabel.api.data.v1.UpdateEntityRequest.entity", - 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=None, - 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, - 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=779, - serialized_end=893, + name='UpdateEntityRequest', + full_name='exabel.api.data.v1.UpdateEntityRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='entity', full_name='exabel.api.data.v1.UpdateEntityRequest.entity', 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=None, 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, + 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=779, + serialized_end=893, ) _DELETEENTITYREQUEST = _descriptor.Descriptor( - name="DeleteEntityRequest", - full_name="exabel.api.data.v1.DeleteEntityRequest", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name="name", - full_name="exabel.api.data.v1.DeleteEntityRequest.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=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=895, - serialized_end=930, + name='DeleteEntityRequest', + full_name='exabel.api.data.v1.DeleteEntityRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='name', full_name='exabel.api.data.v1.DeleteEntityRequest.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=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=895, + serialized_end=930, ) _SEARCHENTITIESREQUEST = _descriptor.Descriptor( - name="SearchEntitiesRequest", - full_name="exabel.api.data.v1.SearchEntitiesRequest", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name="parent", - full_name="exabel.api.data.v1.SearchEntitiesRequest.parent", - index=0, - 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="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, - ), - _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, - has_default_value=False, - default_value=0, - 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="page_token", - full_name="exabel.api.data.v1.SearchEntitiesRequest.page_token", - index=3, - 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, - ), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax="proto3", - extension_ranges=[], - oneofs=[], - serialized_start=932, - serialized_end=1057, + name='SearchEntitiesRequest', + full_name='exabel.api.data.v1.SearchEntitiesRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='parent', full_name='exabel.api.data.v1.SearchEntitiesRequest.parent', index=0, + 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='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), + _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, + has_default_value=False, default_value=0, + 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='page_token', full_name='exabel.api.data.v1.SearchEntitiesRequest.page_token', index=3, + 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), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=932, + serialized_end=1057, ) +_SEARCHENTITIESRESPONSE_SEARCHRESULT = _descriptor.Descriptor( + name='SearchResult', + full_name='exabel.api.data.v1.SearchEntitiesResponse.SearchResult', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='terms', full_name='exabel.api.data.v1.SearchEntitiesResponse.SearchResult.terms', 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='entities', full_name='exabel.api.data.v1.SearchEntitiesResponse.SearchResult.entities', index=1, + number=2, 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=1231, + serialized_end=1338, +) + _SEARCHENTITIESRESPONSE = _descriptor.Descriptor( - name="SearchEntitiesResponse", - full_name="exabel.api.data.v1.SearchEntitiesResponse", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name="entities", - full_name="exabel.api.data.v1.SearchEntitiesResponse.entities", - 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="next_page_token", - full_name="exabel.api.data.v1.SearchEntitiesResponse.next_page_token", - 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=1059, - serialized_end=1154, + name='SearchEntitiesResponse', + full_name='exabel.api.data.v1.SearchEntitiesResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='results', full_name='exabel.api.data.v1.SearchEntitiesResponse.results', index=0, + number=3, 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='next_page_token', full_name='exabel.api.data.v1.SearchEntitiesResponse.next_page_token', 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='entities', full_name='exabel.api.data.v1.SearchEntitiesResponse.entities', index=2, + 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=[_SEARCHENTITIESRESPONSE_SEARCHRESULT, ], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1060, + serialized_end=1338, ) -_LISTENTITYTYPESRESPONSE.fields_by_name[ - "entity_types" -].message_type = exabel_dot_api_dot_data_dot_v1_dot_entity__messages__pb2._ENTITYTYPE -_LISTENTITIESRESPONSE.fields_by_name[ - "entities" -].message_type = exabel_dot_api_dot_data_dot_v1_dot_entity__messages__pb2._ENTITY -_CREATEENTITYREQUEST.fields_by_name[ - "entity" -].message_type = exabel_dot_api_dot_data_dot_v1_dot_entity__messages__pb2._ENTITY -_UPDATEENTITYREQUEST.fields_by_name[ - "entity" -].message_type = exabel_dot_api_dot_data_dot_v1_dot_entity__messages__pb2._ENTITY -_UPDATEENTITYREQUEST.fields_by_name[ - "update_mask" -].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK -_SEARCHENTITIESREQUEST.fields_by_name[ - "terms" -].message_type = exabel_dot_api_dot_data_dot_v1_dot_search__messages__pb2._SEARCHTERM -_SEARCHENTITIESRESPONSE.fields_by_name[ - "entities" -].message_type = exabel_dot_api_dot_data_dot_v1_dot_entity__messages__pb2._ENTITY -DESCRIPTOR.message_types_by_name["ListEntityTypesRequest"] = _LISTENTITYTYPESREQUEST -DESCRIPTOR.message_types_by_name["ListEntityTypesResponse"] = _LISTENTITYTYPESRESPONSE -DESCRIPTOR.message_types_by_name["GetEntityTypeRequest"] = _GETENTITYTYPEREQUEST -DESCRIPTOR.message_types_by_name["ListEntitiesRequest"] = _LISTENTITIESREQUEST -DESCRIPTOR.message_types_by_name["ListEntitiesResponse"] = _LISTENTITIESRESPONSE -DESCRIPTOR.message_types_by_name["GetEntityRequest"] = _GETENTITYREQUEST -DESCRIPTOR.message_types_by_name["CreateEntityRequest"] = _CREATEENTITYREQUEST -DESCRIPTOR.message_types_by_name["UpdateEntityRequest"] = _UPDATEENTITYREQUEST -DESCRIPTOR.message_types_by_name["DeleteEntityRequest"] = _DELETEENTITYREQUEST -DESCRIPTOR.message_types_by_name["SearchEntitiesRequest"] = _SEARCHENTITIESREQUEST -DESCRIPTOR.message_types_by_name["SearchEntitiesResponse"] = _SEARCHENTITIESRESPONSE +_LISTENTITYTYPESRESPONSE.fields_by_name['entity_types'].message_type = exabel_dot_api_dot_data_dot_v1_dot_entity__messages__pb2._ENTITYTYPE +_LISTENTITIESRESPONSE.fields_by_name['entities'].message_type = exabel_dot_api_dot_data_dot_v1_dot_entity__messages__pb2._ENTITY +_CREATEENTITYREQUEST.fields_by_name['entity'].message_type = exabel_dot_api_dot_data_dot_v1_dot_entity__messages__pb2._ENTITY +_UPDATEENTITYREQUEST.fields_by_name['entity'].message_type = exabel_dot_api_dot_data_dot_v1_dot_entity__messages__pb2._ENTITY +_UPDATEENTITYREQUEST.fields_by_name['update_mask'].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK +_SEARCHENTITIESREQUEST.fields_by_name['terms'].message_type = exabel_dot_api_dot_data_dot_v1_dot_search__messages__pb2._SEARCHTERM +_SEARCHENTITIESRESPONSE_SEARCHRESULT.fields_by_name['terms'].message_type = exabel_dot_api_dot_data_dot_v1_dot_search__messages__pb2._SEARCHTERM +_SEARCHENTITIESRESPONSE_SEARCHRESULT.fields_by_name['entities'].message_type = exabel_dot_api_dot_data_dot_v1_dot_entity__messages__pb2._ENTITY +_SEARCHENTITIESRESPONSE_SEARCHRESULT.containing_type = _SEARCHENTITIESRESPONSE +_SEARCHENTITIESRESPONSE.fields_by_name['results'].message_type = _SEARCHENTITIESRESPONSE_SEARCHRESULT +_SEARCHENTITIESRESPONSE.fields_by_name['entities'].message_type = exabel_dot_api_dot_data_dot_v1_dot_entity__messages__pb2._ENTITY +DESCRIPTOR.message_types_by_name['ListEntityTypesRequest'] = _LISTENTITYTYPESREQUEST +DESCRIPTOR.message_types_by_name['ListEntityTypesResponse'] = _LISTENTITYTYPESRESPONSE +DESCRIPTOR.message_types_by_name['GetEntityTypeRequest'] = _GETENTITYTYPEREQUEST +DESCRIPTOR.message_types_by_name['ListEntitiesRequest'] = _LISTENTITIESREQUEST +DESCRIPTOR.message_types_by_name['ListEntitiesResponse'] = _LISTENTITIESRESPONSE +DESCRIPTOR.message_types_by_name['GetEntityRequest'] = _GETENTITYREQUEST +DESCRIPTOR.message_types_by_name['CreateEntityRequest'] = _CREATEENTITYREQUEST +DESCRIPTOR.message_types_by_name['UpdateEntityRequest'] = _UPDATEENTITYREQUEST +DESCRIPTOR.message_types_by_name['DeleteEntityRequest'] = _DELETEENTITYREQUEST +DESCRIPTOR.message_types_by_name['SearchEntitiesRequest'] = _SEARCHENTITIESREQUEST +DESCRIPTOR.message_types_by_name['SearchEntitiesResponse'] = _SEARCHENTITIESRESPONSE _sym_db.RegisterFileDescriptor(DESCRIPTOR) -ListEntityTypesRequest = _reflection.GeneratedProtocolMessageType( - "ListEntityTypesRequest", - (_message.Message,), - { - "DESCRIPTOR": _LISTENTITYTYPESREQUEST, - "__module__": "exabel.api.data.v1.entity_service_pb2" - # @@protoc_insertion_point(class_scope:exabel.api.data.v1.ListEntityTypesRequest) - }, -) +ListEntityTypesRequest = _reflection.GeneratedProtocolMessageType('ListEntityTypesRequest', (_message.Message,), { + 'DESCRIPTOR' : _LISTENTITYTYPESREQUEST, + '__module__' : 'exabel.api.data.v1.entity_service_pb2' + # @@protoc_insertion_point(class_scope:exabel.api.data.v1.ListEntityTypesRequest) + }) _sym_db.RegisterMessage(ListEntityTypesRequest) -ListEntityTypesResponse = _reflection.GeneratedProtocolMessageType( - "ListEntityTypesResponse", - (_message.Message,), - { - "DESCRIPTOR": _LISTENTITYTYPESRESPONSE, - "__module__": "exabel.api.data.v1.entity_service_pb2" - # @@protoc_insertion_point(class_scope:exabel.api.data.v1.ListEntityTypesResponse) - }, -) +ListEntityTypesResponse = _reflection.GeneratedProtocolMessageType('ListEntityTypesResponse', (_message.Message,), { + 'DESCRIPTOR' : _LISTENTITYTYPESRESPONSE, + '__module__' : 'exabel.api.data.v1.entity_service_pb2' + # @@protoc_insertion_point(class_scope:exabel.api.data.v1.ListEntityTypesResponse) + }) _sym_db.RegisterMessage(ListEntityTypesResponse) -GetEntityTypeRequest = _reflection.GeneratedProtocolMessageType( - "GetEntityTypeRequest", - (_message.Message,), - { - "DESCRIPTOR": _GETENTITYTYPEREQUEST, - "__module__": "exabel.api.data.v1.entity_service_pb2" - # @@protoc_insertion_point(class_scope:exabel.api.data.v1.GetEntityTypeRequest) - }, -) +GetEntityTypeRequest = _reflection.GeneratedProtocolMessageType('GetEntityTypeRequest', (_message.Message,), { + 'DESCRIPTOR' : _GETENTITYTYPEREQUEST, + '__module__' : 'exabel.api.data.v1.entity_service_pb2' + # @@protoc_insertion_point(class_scope:exabel.api.data.v1.GetEntityTypeRequest) + }) _sym_db.RegisterMessage(GetEntityTypeRequest) -ListEntitiesRequest = _reflection.GeneratedProtocolMessageType( - "ListEntitiesRequest", - (_message.Message,), - { - "DESCRIPTOR": _LISTENTITIESREQUEST, - "__module__": "exabel.api.data.v1.entity_service_pb2" - # @@protoc_insertion_point(class_scope:exabel.api.data.v1.ListEntitiesRequest) - }, -) +ListEntitiesRequest = _reflection.GeneratedProtocolMessageType('ListEntitiesRequest', (_message.Message,), { + 'DESCRIPTOR' : _LISTENTITIESREQUEST, + '__module__' : 'exabel.api.data.v1.entity_service_pb2' + # @@protoc_insertion_point(class_scope:exabel.api.data.v1.ListEntitiesRequest) + }) _sym_db.RegisterMessage(ListEntitiesRequest) -ListEntitiesResponse = _reflection.GeneratedProtocolMessageType( - "ListEntitiesResponse", - (_message.Message,), - { - "DESCRIPTOR": _LISTENTITIESRESPONSE, - "__module__": "exabel.api.data.v1.entity_service_pb2" - # @@protoc_insertion_point(class_scope:exabel.api.data.v1.ListEntitiesResponse) - }, -) +ListEntitiesResponse = _reflection.GeneratedProtocolMessageType('ListEntitiesResponse', (_message.Message,), { + 'DESCRIPTOR' : _LISTENTITIESRESPONSE, + '__module__' : 'exabel.api.data.v1.entity_service_pb2' + # @@protoc_insertion_point(class_scope:exabel.api.data.v1.ListEntitiesResponse) + }) _sym_db.RegisterMessage(ListEntitiesResponse) -GetEntityRequest = _reflection.GeneratedProtocolMessageType( - "GetEntityRequest", - (_message.Message,), - { - "DESCRIPTOR": _GETENTITYREQUEST, - "__module__": "exabel.api.data.v1.entity_service_pb2" - # @@protoc_insertion_point(class_scope:exabel.api.data.v1.GetEntityRequest) - }, -) +GetEntityRequest = _reflection.GeneratedProtocolMessageType('GetEntityRequest', (_message.Message,), { + 'DESCRIPTOR' : _GETENTITYREQUEST, + '__module__' : 'exabel.api.data.v1.entity_service_pb2' + # @@protoc_insertion_point(class_scope:exabel.api.data.v1.GetEntityRequest) + }) _sym_db.RegisterMessage(GetEntityRequest) -CreateEntityRequest = _reflection.GeneratedProtocolMessageType( - "CreateEntityRequest", - (_message.Message,), - { - "DESCRIPTOR": _CREATEENTITYREQUEST, - "__module__": "exabel.api.data.v1.entity_service_pb2" - # @@protoc_insertion_point(class_scope:exabel.api.data.v1.CreateEntityRequest) - }, -) +CreateEntityRequest = _reflection.GeneratedProtocolMessageType('CreateEntityRequest', (_message.Message,), { + 'DESCRIPTOR' : _CREATEENTITYREQUEST, + '__module__' : 'exabel.api.data.v1.entity_service_pb2' + # @@protoc_insertion_point(class_scope:exabel.api.data.v1.CreateEntityRequest) + }) _sym_db.RegisterMessage(CreateEntityRequest) -UpdateEntityRequest = _reflection.GeneratedProtocolMessageType( - "UpdateEntityRequest", - (_message.Message,), - { - "DESCRIPTOR": _UPDATEENTITYREQUEST, - "__module__": "exabel.api.data.v1.entity_service_pb2" - # @@protoc_insertion_point(class_scope:exabel.api.data.v1.UpdateEntityRequest) - }, -) +UpdateEntityRequest = _reflection.GeneratedProtocolMessageType('UpdateEntityRequest', (_message.Message,), { + 'DESCRIPTOR' : _UPDATEENTITYREQUEST, + '__module__' : 'exabel.api.data.v1.entity_service_pb2' + # @@protoc_insertion_point(class_scope:exabel.api.data.v1.UpdateEntityRequest) + }) _sym_db.RegisterMessage(UpdateEntityRequest) -DeleteEntityRequest = _reflection.GeneratedProtocolMessageType( - "DeleteEntityRequest", - (_message.Message,), - { - "DESCRIPTOR": _DELETEENTITYREQUEST, - "__module__": "exabel.api.data.v1.entity_service_pb2" - # @@protoc_insertion_point(class_scope:exabel.api.data.v1.DeleteEntityRequest) - }, -) +DeleteEntityRequest = _reflection.GeneratedProtocolMessageType('DeleteEntityRequest', (_message.Message,), { + 'DESCRIPTOR' : _DELETEENTITYREQUEST, + '__module__' : 'exabel.api.data.v1.entity_service_pb2' + # @@protoc_insertion_point(class_scope:exabel.api.data.v1.DeleteEntityRequest) + }) _sym_db.RegisterMessage(DeleteEntityRequest) -SearchEntitiesRequest = _reflection.GeneratedProtocolMessageType( - "SearchEntitiesRequest", - (_message.Message,), - { - "DESCRIPTOR": _SEARCHENTITIESREQUEST, - "__module__": "exabel.api.data.v1.entity_service_pb2" - # @@protoc_insertion_point(class_scope:exabel.api.data.v1.SearchEntitiesRequest) - }, -) +SearchEntitiesRequest = _reflection.GeneratedProtocolMessageType('SearchEntitiesRequest', (_message.Message,), { + 'DESCRIPTOR' : _SEARCHENTITIESREQUEST, + '__module__' : 'exabel.api.data.v1.entity_service_pb2' + # @@protoc_insertion_point(class_scope:exabel.api.data.v1.SearchEntitiesRequest) + }) _sym_db.RegisterMessage(SearchEntitiesRequest) -SearchEntitiesResponse = _reflection.GeneratedProtocolMessageType( - "SearchEntitiesResponse", - (_message.Message,), - { - "DESCRIPTOR": _SEARCHENTITIESRESPONSE, - "__module__": "exabel.api.data.v1.entity_service_pb2" - # @@protoc_insertion_point(class_scope:exabel.api.data.v1.SearchEntitiesResponse) - }, -) +SearchEntitiesResponse = _reflection.GeneratedProtocolMessageType('SearchEntitiesResponse', (_message.Message,), { + + 'SearchResult' : _reflection.GeneratedProtocolMessageType('SearchResult', (_message.Message,), { + 'DESCRIPTOR' : _SEARCHENTITIESRESPONSE_SEARCHRESULT, + '__module__' : 'exabel.api.data.v1.entity_service_pb2' + # @@protoc_insertion_point(class_scope:exabel.api.data.v1.SearchEntitiesResponse.SearchResult) + }) + , + 'DESCRIPTOR' : _SEARCHENTITIESRESPONSE, + '__module__' : 'exabel.api.data.v1.entity_service_pb2' + # @@protoc_insertion_point(class_scope:exabel.api.data.v1.SearchEntitiesResponse) + }) _sym_db.RegisterMessage(SearchEntitiesResponse) +_sym_db.RegisterMessage(SearchEntitiesResponse.SearchResult) DESCRIPTOR._options = None _ENTITYSERVICE = _descriptor.ServiceDescriptor( - name="EntityService", - full_name="exabel.api.data.v1.EntityService", - file=DESCRIPTOR, + name='EntityService', + full_name='exabel.api.data.v1.EntityService', + file=DESCRIPTOR, + index=0, + serialized_options=None, + create_key=_descriptor._internal_create_key, + serialized_start=1341, + serialized_end=2456, + methods=[ + _descriptor.MethodDescriptor( + name='ListEntityTypes', + full_name='exabel.api.data.v1.EntityService.ListEntityTypes', index=0, - serialized_options=None, + containing_service=None, + input_type=_LISTENTITYTYPESREQUEST, + output_type=_LISTENTITYTYPESRESPONSE, + serialized_options=b'\202\323\344\223\002\021\022\017/v1/entityTypes', create_key=_descriptor._internal_create_key, - serialized_start=1157, - serialized_end=2272, - methods=[ - _descriptor.MethodDescriptor( - name="ListEntityTypes", - full_name="exabel.api.data.v1.EntityService.ListEntityTypes", - index=0, - containing_service=None, - input_type=_LISTENTITYTYPESREQUEST, - output_type=_LISTENTITYTYPESRESPONSE, - serialized_options=b"\202\323\344\223\002\021\022\017/v1/entityTypes", - create_key=_descriptor._internal_create_key, - ), - _descriptor.MethodDescriptor( - name="GetEntityType", - full_name="exabel.api.data.v1.EntityService.GetEntityType", - index=1, - containing_service=None, - input_type=_GETENTITYTYPEREQUEST, - output_type=exabel_dot_api_dot_data_dot_v1_dot_entity__messages__pb2._ENTITYTYPE, - serialized_options=b"\202\323\344\223\002\032\022\030/v1/{name=entityTypes/*}", - create_key=_descriptor._internal_create_key, - ), - _descriptor.MethodDescriptor( - name="ListEntities", - full_name="exabel.api.data.v1.EntityService.ListEntities", - index=2, - containing_service=None, - input_type=_LISTENTITIESREQUEST, - output_type=_LISTENTITIESRESPONSE, - serialized_options=b"\202\323\344\223\002%\022#/v1/{parent=entityTypes/*}/entities", - create_key=_descriptor._internal_create_key, - ), - _descriptor.MethodDescriptor( - name="GetEntity", - full_name="exabel.api.data.v1.EntityService.GetEntity", - index=3, - containing_service=None, - input_type=_GETENTITYREQUEST, - output_type=exabel_dot_api_dot_data_dot_v1_dot_entity__messages__pb2._ENTITY, - serialized_options=b"\202\323\344\223\002%\022#/v1/{name=entityTypes/*/entities/*}", - create_key=_descriptor._internal_create_key, - ), - _descriptor.MethodDescriptor( - name="CreateEntity", - full_name="exabel.api.data.v1.EntityService.CreateEntity", - index=4, - containing_service=None, - input_type=_CREATEENTITYREQUEST, - output_type=exabel_dot_api_dot_data_dot_v1_dot_entity__messages__pb2._ENTITY, - serialized_options=b'\202\323\344\223\002-"#/v1/{parent=entityTypes/*}/entities:\006entity', - create_key=_descriptor._internal_create_key, - ), - _descriptor.MethodDescriptor( - name="UpdateEntity", - full_name="exabel.api.data.v1.EntityService.UpdateEntity", - index=5, - containing_service=None, - input_type=_UPDATEENTITYREQUEST, - output_type=exabel_dot_api_dot_data_dot_v1_dot_entity__messages__pb2._ENTITY, - serialized_options=b"\202\323\344\223\00242*/v1/{entity.name=entityTypes/*/entities/*}:\006entity", - create_key=_descriptor._internal_create_key, - ), - _descriptor.MethodDescriptor( - name="DeleteEntity", - full_name="exabel.api.data.v1.EntityService.DeleteEntity", - index=6, - containing_service=None, - input_type=_DELETEENTITYREQUEST, - output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, - serialized_options=b"\202\323\344\223\002%*#/v1/{name=entityTypes/*/entities/*}", - create_key=_descriptor._internal_create_key, - ), - _descriptor.MethodDescriptor( - name="SearchEntities", - full_name="exabel.api.data.v1.EntityService.SearchEntities", - index=7, - containing_service=None, - input_type=_SEARCHENTITIESREQUEST, - output_type=_SEARCHENTITIESRESPONSE, - serialized_options=b'\202\323\344\223\002/"*/v1/{parent=entityTypes/*}/entities:search:\001*', - create_key=_descriptor._internal_create_key, - ), - ], -) + ), + _descriptor.MethodDescriptor( + name='GetEntityType', + full_name='exabel.api.data.v1.EntityService.GetEntityType', + index=1, + containing_service=None, + input_type=_GETENTITYTYPEREQUEST, + output_type=exabel_dot_api_dot_data_dot_v1_dot_entity__messages__pb2._ENTITYTYPE, + serialized_options=b'\202\323\344\223\002\032\022\030/v1/{name=entityTypes/*}', + create_key=_descriptor._internal_create_key, + ), + _descriptor.MethodDescriptor( + name='ListEntities', + full_name='exabel.api.data.v1.EntityService.ListEntities', + index=2, + containing_service=None, + input_type=_LISTENTITIESREQUEST, + output_type=_LISTENTITIESRESPONSE, + serialized_options=b'\202\323\344\223\002%\022#/v1/{parent=entityTypes/*}/entities', + create_key=_descriptor._internal_create_key, + ), + _descriptor.MethodDescriptor( + name='GetEntity', + full_name='exabel.api.data.v1.EntityService.GetEntity', + index=3, + containing_service=None, + input_type=_GETENTITYREQUEST, + output_type=exabel_dot_api_dot_data_dot_v1_dot_entity__messages__pb2._ENTITY, + serialized_options=b'\202\323\344\223\002%\022#/v1/{name=entityTypes/*/entities/*}', + create_key=_descriptor._internal_create_key, + ), + _descriptor.MethodDescriptor( + name='CreateEntity', + full_name='exabel.api.data.v1.EntityService.CreateEntity', + index=4, + containing_service=None, + input_type=_CREATEENTITYREQUEST, + output_type=exabel_dot_api_dot_data_dot_v1_dot_entity__messages__pb2._ENTITY, + serialized_options=b'\202\323\344\223\002-\"#/v1/{parent=entityTypes/*}/entities:\006entity', + create_key=_descriptor._internal_create_key, + ), + _descriptor.MethodDescriptor( + name='UpdateEntity', + full_name='exabel.api.data.v1.EntityService.UpdateEntity', + index=5, + containing_service=None, + input_type=_UPDATEENTITYREQUEST, + output_type=exabel_dot_api_dot_data_dot_v1_dot_entity__messages__pb2._ENTITY, + serialized_options=b'\202\323\344\223\00242*/v1/{entity.name=entityTypes/*/entities/*}:\006entity', + create_key=_descriptor._internal_create_key, + ), + _descriptor.MethodDescriptor( + name='DeleteEntity', + full_name='exabel.api.data.v1.EntityService.DeleteEntity', + index=6, + containing_service=None, + input_type=_DELETEENTITYREQUEST, + output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, + serialized_options=b'\202\323\344\223\002%*#/v1/{name=entityTypes/*/entities/*}', + create_key=_descriptor._internal_create_key, + ), + _descriptor.MethodDescriptor( + name='SearchEntities', + full_name='exabel.api.data.v1.EntityService.SearchEntities', + index=7, + containing_service=None, + input_type=_SEARCHENTITIESREQUEST, + output_type=_SEARCHENTITIESRESPONSE, + serialized_options=b'\202\323\344\223\002/\"*/v1/{parent=entityTypes/*}/entities:search:\001*', + create_key=_descriptor._internal_create_key, + ), +]) _sym_db.RegisterServiceDescriptor(_ENTITYSERVICE) -DESCRIPTOR.services_by_name["EntityService"] = _ENTITYSERVICE +DESCRIPTOR.services_by_name['EntityService'] = _ENTITYSERVICE # @@protoc_insertion_point(module_scope) diff --git a/exabel_data_sdk/stubs/exabel/api/data/v1/entity_service_pb2.pyi b/exabel_data_sdk/stubs/exabel/api/data/v1/entity_service_pb2.pyi index 7d0a100..2b4cfdc 100644 --- a/exabel_data_sdk/stubs/exabel/api/data/v1/entity_service_pb2.pyi +++ b/exabel_data_sdk/stubs/exabel/api/data/v1/entity_service_pb2.pyi @@ -38,75 +38,54 @@ 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 ListEntityTypesRequest(google___protobuf___message___Message): DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... page_size: builtin___int = ... page_token: typing___Text = ... - def __init__( - self, - *, - page_size: typing___Optional[builtin___int] = None, - page_token: typing___Optional[typing___Text] = None, - ) -> None: ... - def ClearField( - self, - field_name: typing_extensions___Literal[ - "page_size", b"page_size", "page_token", b"page_token" - ], - ) -> None: ... + def __init__(self, + *, + page_size : typing___Optional[builtin___int] = None, + page_token : typing___Optional[typing___Text] = None, + ) -> None: ... + def ClearField(self, field_name: typing_extensions___Literal[u"page_size",b"page_size",u"page_token",b"page_token"]) -> None: ... type___ListEntityTypesRequest = ListEntityTypesRequest class ListEntityTypesResponse(google___protobuf___message___Message): DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... next_page_token: typing___Text = ... total_size: builtin___int = ... + @property - def entity_types( - self, - ) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[ - exabel___api___data___v1___entity_messages_pb2___EntityType - ]: ... - def __init__( - self, - *, - entity_types: typing___Optional[ - typing___Iterable[exabel___api___data___v1___entity_messages_pb2___EntityType] - ] = None, - next_page_token: typing___Optional[typing___Text] = None, - total_size: typing___Optional[builtin___int] = None, - ) -> None: ... - def ClearField( - self, - field_name: typing_extensions___Literal[ - "entity_types", - b"entity_types", - "next_page_token", - b"next_page_token", - "total_size", - b"total_size", - ], - ) -> None: ... + def entity_types(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[exabel___api___data___v1___entity_messages_pb2___EntityType]: ... + def __init__(self, + *, + entity_types : typing___Optional[typing___Iterable[exabel___api___data___v1___entity_messages_pb2___EntityType]] = None, + next_page_token : typing___Optional[typing___Text] = None, + total_size : typing___Optional[builtin___int] = None, + ) -> None: ... + def ClearField(self, field_name: typing_extensions___Literal[u"entity_types",b"entity_types",u"next_page_token",b"next_page_token",u"total_size",b"total_size"]) -> None: ... type___ListEntityTypesResponse = ListEntityTypesResponse class GetEntityTypeRequest(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["name", b"name"]) -> None: ... + def __init__(self, + *, + name : typing___Optional[typing___Text] = None, + ) -> None: ... + def ClearField(self, field_name: typing_extensions___Literal[u"name",b"name"]) -> None: ... type___GetEntityTypeRequest = GetEntityTypeRequest class ListEntitiesRequest(google___protobuf___message___Message): @@ -114,120 +93,87 @@ class ListEntitiesRequest(google___protobuf___message___Message): parent: typing___Text = ... page_size: builtin___int = ... page_token: typing___Text = ... - def __init__( - self, - *, - parent: typing___Optional[typing___Text] = None, - page_size: typing___Optional[builtin___int] = None, - page_token: typing___Optional[typing___Text] = None, - ) -> None: ... - def ClearField( - self, - field_name: typing_extensions___Literal[ - "page_size", b"page_size", "page_token", b"page_token", "parent", b"parent" - ], - ) -> None: ... + def __init__(self, + *, + parent : typing___Optional[typing___Text] = None, + page_size : typing___Optional[builtin___int] = None, + page_token : typing___Optional[typing___Text] = None, + ) -> None: ... + def ClearField(self, field_name: typing_extensions___Literal[u"page_size",b"page_size",u"page_token",b"page_token",u"parent",b"parent"]) -> None: ... type___ListEntitiesRequest = ListEntitiesRequest class ListEntitiesResponse(google___protobuf___message___Message): DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... next_page_token: typing___Text = ... total_size: builtin___int = ... + @property - def entities( - self, - ) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[ - exabel___api___data___v1___entity_messages_pb2___Entity - ]: ... - def __init__( - self, - *, - entities: typing___Optional[ - typing___Iterable[exabel___api___data___v1___entity_messages_pb2___Entity] - ] = None, - next_page_token: typing___Optional[typing___Text] = None, - total_size: typing___Optional[builtin___int] = None, - ) -> None: ... - def ClearField( - self, - field_name: typing_extensions___Literal[ - "entities", - b"entities", - "next_page_token", - b"next_page_token", - "total_size", - b"total_size", - ], - ) -> None: ... + def entities(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[exabel___api___data___v1___entity_messages_pb2___Entity]: ... + def __init__(self, + *, + entities : typing___Optional[typing___Iterable[exabel___api___data___v1___entity_messages_pb2___Entity]] = None, + next_page_token : typing___Optional[typing___Text] = None, + total_size : typing___Optional[builtin___int] = None, + ) -> None: ... + def ClearField(self, field_name: typing_extensions___Literal[u"entities",b"entities",u"next_page_token",b"next_page_token",u"total_size",b"total_size"]) -> None: ... type___ListEntitiesResponse = ListEntitiesResponse class GetEntityRequest(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["name", b"name"]) -> None: ... + def __init__(self, + *, + name : typing___Optional[typing___Text] = None, + ) -> None: ... + def ClearField(self, field_name: typing_extensions___Literal[u"name",b"name"]) -> None: ... type___GetEntityRequest = GetEntityRequest class CreateEntityRequest(google___protobuf___message___Message): DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... parent: typing___Text = ... + @property def entity(self) -> exabel___api___data___v1___entity_messages_pb2___Entity: ... - def __init__( - self, - *, - parent: typing___Optional[typing___Text] = None, - entity: typing___Optional[exabel___api___data___v1___entity_messages_pb2___Entity] = None, - ) -> None: ... - def HasField( - self, field_name: typing_extensions___Literal["entity", b"entity"] - ) -> builtin___bool: ... - def ClearField( - self, field_name: typing_extensions___Literal["entity", b"entity", "parent", b"parent"] - ) -> None: ... + def __init__(self, + *, + parent : typing___Optional[typing___Text] = None, + entity : typing___Optional[exabel___api___data___v1___entity_messages_pb2___Entity] = None, + ) -> None: ... + def HasField(self, field_name: typing_extensions___Literal[u"entity",b"entity"]) -> builtin___bool: ... + def ClearField(self, field_name: typing_extensions___Literal[u"entity",b"entity",u"parent",b"parent"]) -> None: ... type___CreateEntityRequest = CreateEntityRequest class UpdateEntityRequest(google___protobuf___message___Message): DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... + @property def entity(self) -> exabel___api___data___v1___entity_messages_pb2___Entity: ... + @property def update_mask(self) -> google___protobuf___field_mask_pb2___FieldMask: ... - def __init__( - self, - *, - entity: typing___Optional[exabel___api___data___v1___entity_messages_pb2___Entity] = None, - update_mask: typing___Optional[google___protobuf___field_mask_pb2___FieldMask] = None, - ) -> None: ... - def HasField( - self, - field_name: typing_extensions___Literal["entity", b"entity", "update_mask", b"update_mask"], - ) -> builtin___bool: ... - def ClearField( - self, - field_name: typing_extensions___Literal["entity", b"entity", "update_mask", b"update_mask"], - ) -> None: ... + def __init__(self, + *, + entity : typing___Optional[exabel___api___data___v1___entity_messages_pb2___Entity] = None, + update_mask : typing___Optional[google___protobuf___field_mask_pb2___FieldMask] = None, + ) -> None: ... + def HasField(self, field_name: typing_extensions___Literal[u"entity",b"entity",u"update_mask",b"update_mask"]) -> builtin___bool: ... + def ClearField(self, field_name: typing_extensions___Literal[u"entity",b"entity",u"update_mask",b"update_mask"]) -> None: ... type___UpdateEntityRequest = UpdateEntityRequest class DeleteEntityRequest(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["name", b"name"]) -> None: ... + def __init__(self, + *, + name : typing___Optional[typing___Text] = None, + ) -> None: ... + def ClearField(self, field_name: typing_extensions___Literal[u"name",b"name"]) -> None: ... type___DeleteEntityRequest = DeleteEntityRequest class SearchEntitiesRequest(google___protobuf___message___Message): @@ -235,60 +181,52 @@ class SearchEntitiesRequest(google___protobuf___message___Message): parent: typing___Text = ... page_size: builtin___int = ... page_token: typing___Text = ... + @property - def terms( - self, - ) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[ - exabel___api___data___v1___search_messages_pb2___SearchTerm - ]: ... - def __init__( - self, - *, - parent: typing___Optional[typing___Text] = None, - terms: typing___Optional[ - typing___Iterable[exabel___api___data___v1___search_messages_pb2___SearchTerm] - ] = None, - page_size: typing___Optional[builtin___int] = None, - page_token: typing___Optional[typing___Text] = None, - ) -> None: ... - def ClearField( - self, - field_name: typing_extensions___Literal[ - "page_size", - b"page_size", - "page_token", - b"page_token", - "parent", - b"parent", - "terms", - b"terms", - ], - ) -> None: ... + def terms(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[exabel___api___data___v1___search_messages_pb2___SearchTerm]: ... + def __init__(self, + *, + parent : typing___Optional[typing___Text] = None, + terms : typing___Optional[typing___Iterable[exabel___api___data___v1___search_messages_pb2___SearchTerm]] = None, + page_size : typing___Optional[builtin___int] = None, + page_token : typing___Optional[typing___Text] = None, + ) -> None: ... + def ClearField(self, field_name: typing_extensions___Literal[u"page_size",b"page_size",u"page_token",b"page_token",u"parent",b"parent",u"terms",b"terms"]) -> None: ... type___SearchEntitiesRequest = SearchEntitiesRequest class SearchEntitiesResponse(google___protobuf___message___Message): DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... + class SearchResult(google___protobuf___message___Message): + DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... + + @property + def terms(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[exabel___api___data___v1___search_messages_pb2___SearchTerm]: ... + + @property + def entities(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[exabel___api___data___v1___entity_messages_pb2___Entity]: ... + + def __init__(self, + *, + terms : typing___Optional[typing___Iterable[exabel___api___data___v1___search_messages_pb2___SearchTerm]] = None, + entities : typing___Optional[typing___Iterable[exabel___api___data___v1___entity_messages_pb2___Entity]] = None, + ) -> None: ... + def ClearField(self, field_name: typing_extensions___Literal[u"entities",b"entities",u"terms",b"terms"]) -> None: ... + type___SearchResult = SearchResult + next_page_token: typing___Text = ... + @property - def entities( - self, - ) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[ - exabel___api___data___v1___entity_messages_pb2___Entity - ]: ... - def __init__( - self, - *, - entities: typing___Optional[ - typing___Iterable[exabel___api___data___v1___entity_messages_pb2___Entity] - ] = None, - next_page_token: typing___Optional[typing___Text] = None, - ) -> None: ... - def ClearField( - self, - field_name: typing_extensions___Literal[ - "entities", b"entities", "next_page_token", b"next_page_token" - ], - ) -> None: ... + def results(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[type___SearchEntitiesResponse.SearchResult]: ... + + @property + def entities(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[exabel___api___data___v1___entity_messages_pb2___Entity]: ... + def __init__(self, + *, + results : typing___Optional[typing___Iterable[type___SearchEntitiesResponse.SearchResult]] = None, + next_page_token : typing___Optional[typing___Text] = None, + entities : typing___Optional[typing___Iterable[exabel___api___data___v1___entity_messages_pb2___Entity]] = None, + ) -> None: ... + def ClearField(self, field_name: typing_extensions___Literal[u"entities",b"entities",u"next_page_token",b"next_page_token",u"results",b"results"]) -> None: ... type___SearchEntitiesResponse = SearchEntitiesResponse diff --git a/exabel_data_sdk/stubs/exabel/api/data/v1/entity_service_pb2_grpc.py b/exabel_data_sdk/stubs/exabel/api/data/v1/entity_service_pb2_grpc.py index 0addeea..300418d 100644 --- a/exabel_data_sdk/stubs/exabel/api/data/v1/entity_service_pb2_grpc.py +++ b/exabel_data_sdk/stubs/exabel/api/data/v1/entity_service_pb2_grpc.py @@ -1,18 +1,15 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc -from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 -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 ( - entity_service_pb2 as exabel_dot_api_dot_data_dot_v1_dot_entity__service__pb2, -) +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 entity_service_pb2 as exabel_dot_api_dot_data_dot_v1_dot_entity__service__pb2 +from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 class EntityServiceStub(object): - """Manages entity types and entities in the Data API.""" + """Manages entity types and entities in the Data API. + """ def __init__(self, channel): """Constructor. @@ -21,382 +18,294 @@ def __init__(self, channel): channel: A grpc.Channel. """ self.ListEntityTypes = channel.unary_unary( - "/exabel.api.data.v1.EntityService/ListEntityTypes", - request_serializer=exabel_dot_api_dot_data_dot_v1_dot_entity__service__pb2.ListEntityTypesRequest.SerializeToString, - response_deserializer=exabel_dot_api_dot_data_dot_v1_dot_entity__service__pb2.ListEntityTypesResponse.FromString, - ) + '/exabel.api.data.v1.EntityService/ListEntityTypes', + request_serializer=exabel_dot_api_dot_data_dot_v1_dot_entity__service__pb2.ListEntityTypesRequest.SerializeToString, + response_deserializer=exabel_dot_api_dot_data_dot_v1_dot_entity__service__pb2.ListEntityTypesResponse.FromString, + ) self.GetEntityType = channel.unary_unary( - "/exabel.api.data.v1.EntityService/GetEntityType", - request_serializer=exabel_dot_api_dot_data_dot_v1_dot_entity__service__pb2.GetEntityTypeRequest.SerializeToString, - response_deserializer=exabel_dot_api_dot_data_dot_v1_dot_entity__messages__pb2.EntityType.FromString, - ) + '/exabel.api.data.v1.EntityService/GetEntityType', + request_serializer=exabel_dot_api_dot_data_dot_v1_dot_entity__service__pb2.GetEntityTypeRequest.SerializeToString, + response_deserializer=exabel_dot_api_dot_data_dot_v1_dot_entity__messages__pb2.EntityType.FromString, + ) self.ListEntities = channel.unary_unary( - "/exabel.api.data.v1.EntityService/ListEntities", - request_serializer=exabel_dot_api_dot_data_dot_v1_dot_entity__service__pb2.ListEntitiesRequest.SerializeToString, - response_deserializer=exabel_dot_api_dot_data_dot_v1_dot_entity__service__pb2.ListEntitiesResponse.FromString, - ) + '/exabel.api.data.v1.EntityService/ListEntities', + request_serializer=exabel_dot_api_dot_data_dot_v1_dot_entity__service__pb2.ListEntitiesRequest.SerializeToString, + response_deserializer=exabel_dot_api_dot_data_dot_v1_dot_entity__service__pb2.ListEntitiesResponse.FromString, + ) self.GetEntity = channel.unary_unary( - "/exabel.api.data.v1.EntityService/GetEntity", - request_serializer=exabel_dot_api_dot_data_dot_v1_dot_entity__service__pb2.GetEntityRequest.SerializeToString, - response_deserializer=exabel_dot_api_dot_data_dot_v1_dot_entity__messages__pb2.Entity.FromString, - ) + '/exabel.api.data.v1.EntityService/GetEntity', + request_serializer=exabel_dot_api_dot_data_dot_v1_dot_entity__service__pb2.GetEntityRequest.SerializeToString, + response_deserializer=exabel_dot_api_dot_data_dot_v1_dot_entity__messages__pb2.Entity.FromString, + ) self.CreateEntity = channel.unary_unary( - "/exabel.api.data.v1.EntityService/CreateEntity", - request_serializer=exabel_dot_api_dot_data_dot_v1_dot_entity__service__pb2.CreateEntityRequest.SerializeToString, - response_deserializer=exabel_dot_api_dot_data_dot_v1_dot_entity__messages__pb2.Entity.FromString, - ) + '/exabel.api.data.v1.EntityService/CreateEntity', + request_serializer=exabel_dot_api_dot_data_dot_v1_dot_entity__service__pb2.CreateEntityRequest.SerializeToString, + response_deserializer=exabel_dot_api_dot_data_dot_v1_dot_entity__messages__pb2.Entity.FromString, + ) self.UpdateEntity = channel.unary_unary( - "/exabel.api.data.v1.EntityService/UpdateEntity", - request_serializer=exabel_dot_api_dot_data_dot_v1_dot_entity__service__pb2.UpdateEntityRequest.SerializeToString, - response_deserializer=exabel_dot_api_dot_data_dot_v1_dot_entity__messages__pb2.Entity.FromString, - ) + '/exabel.api.data.v1.EntityService/UpdateEntity', + request_serializer=exabel_dot_api_dot_data_dot_v1_dot_entity__service__pb2.UpdateEntityRequest.SerializeToString, + response_deserializer=exabel_dot_api_dot_data_dot_v1_dot_entity__messages__pb2.Entity.FromString, + ) self.DeleteEntity = channel.unary_unary( - "/exabel.api.data.v1.EntityService/DeleteEntity", - request_serializer=exabel_dot_api_dot_data_dot_v1_dot_entity__service__pb2.DeleteEntityRequest.SerializeToString, - response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, - ) + '/exabel.api.data.v1.EntityService/DeleteEntity', + request_serializer=exabel_dot_api_dot_data_dot_v1_dot_entity__service__pb2.DeleteEntityRequest.SerializeToString, + response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, + ) self.SearchEntities = channel.unary_unary( - "/exabel.api.data.v1.EntityService/SearchEntities", - request_serializer=exabel_dot_api_dot_data_dot_v1_dot_entity__service__pb2.SearchEntitiesRequest.SerializeToString, - response_deserializer=exabel_dot_api_dot_data_dot_v1_dot_entity__service__pb2.SearchEntitiesResponse.FromString, - ) + '/exabel.api.data.v1.EntityService/SearchEntities', + request_serializer=exabel_dot_api_dot_data_dot_v1_dot_entity__service__pb2.SearchEntitiesRequest.SerializeToString, + response_deserializer=exabel_dot_api_dot_data_dot_v1_dot_entity__service__pb2.SearchEntitiesResponse.FromString, + ) class EntityServiceServicer(object): - """Manages entity types and entities in the Data API.""" + """Manages entity types and entities in the Data API. + """ def ListEntityTypes(self, request, context): - """Lists all known entity types.""" + """Lists all known entity types. + """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details("Method not implemented!") - raise NotImplementedError("Method not implemented!") + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') def GetEntityType(self, request, context): - """Gets one entity type.""" + """Gets one entity type. + """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details("Method not implemented!") - raise NotImplementedError("Method not implemented!") + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') def ListEntities(self, request, context): - """Lists all entities of a given entity type.""" + """Lists all entities of a given entity type. + """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details("Method not implemented!") - raise NotImplementedError("Method not implemented!") + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') def GetEntity(self, request, context): - """Gets one entity.""" + """Gets one entity. + """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details("Method not implemented!") - raise NotImplementedError("Method not implemented!") + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') def CreateEntity(self, request, context): - """Creates one entity and returns it.""" + """Creates one entity and returns it. + """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details("Method not implemented!") - raise NotImplementedError("Method not implemented!") + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') def UpdateEntity(self, request, context): - """Updates one entity and returns it.""" + """Updates one entity and returns it. + """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details("Method not implemented!") - raise NotImplementedError("Method not implemented!") + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') def DeleteEntity(self, request, context): """Deletes one entity. ALL relationships and time series for this entity will also be deleted. """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details("Method not implemented!") - raise NotImplementedError("Method not implemented!") + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') def SearchEntities(self, request, context): - """Search for entities.""" + """Search for entities. + """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details("Method not implemented!") - raise NotImplementedError("Method not implemented!") + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') def add_EntityServiceServicer_to_server(servicer, server): rpc_method_handlers = { - "ListEntityTypes": grpc.unary_unary_rpc_method_handler( - servicer.ListEntityTypes, - request_deserializer=exabel_dot_api_dot_data_dot_v1_dot_entity__service__pb2.ListEntityTypesRequest.FromString, - response_serializer=exabel_dot_api_dot_data_dot_v1_dot_entity__service__pb2.ListEntityTypesResponse.SerializeToString, - ), - "GetEntityType": grpc.unary_unary_rpc_method_handler( - servicer.GetEntityType, - request_deserializer=exabel_dot_api_dot_data_dot_v1_dot_entity__service__pb2.GetEntityTypeRequest.FromString, - response_serializer=exabel_dot_api_dot_data_dot_v1_dot_entity__messages__pb2.EntityType.SerializeToString, - ), - "ListEntities": grpc.unary_unary_rpc_method_handler( - servicer.ListEntities, - request_deserializer=exabel_dot_api_dot_data_dot_v1_dot_entity__service__pb2.ListEntitiesRequest.FromString, - response_serializer=exabel_dot_api_dot_data_dot_v1_dot_entity__service__pb2.ListEntitiesResponse.SerializeToString, - ), - "GetEntity": grpc.unary_unary_rpc_method_handler( - servicer.GetEntity, - request_deserializer=exabel_dot_api_dot_data_dot_v1_dot_entity__service__pb2.GetEntityRequest.FromString, - response_serializer=exabel_dot_api_dot_data_dot_v1_dot_entity__messages__pb2.Entity.SerializeToString, - ), - "CreateEntity": grpc.unary_unary_rpc_method_handler( - servicer.CreateEntity, - request_deserializer=exabel_dot_api_dot_data_dot_v1_dot_entity__service__pb2.CreateEntityRequest.FromString, - response_serializer=exabel_dot_api_dot_data_dot_v1_dot_entity__messages__pb2.Entity.SerializeToString, - ), - "UpdateEntity": grpc.unary_unary_rpc_method_handler( - servicer.UpdateEntity, - request_deserializer=exabel_dot_api_dot_data_dot_v1_dot_entity__service__pb2.UpdateEntityRequest.FromString, - response_serializer=exabel_dot_api_dot_data_dot_v1_dot_entity__messages__pb2.Entity.SerializeToString, - ), - "DeleteEntity": grpc.unary_unary_rpc_method_handler( - servicer.DeleteEntity, - request_deserializer=exabel_dot_api_dot_data_dot_v1_dot_entity__service__pb2.DeleteEntityRequest.FromString, - response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, - ), - "SearchEntities": grpc.unary_unary_rpc_method_handler( - servicer.SearchEntities, - request_deserializer=exabel_dot_api_dot_data_dot_v1_dot_entity__service__pb2.SearchEntitiesRequest.FromString, - response_serializer=exabel_dot_api_dot_data_dot_v1_dot_entity__service__pb2.SearchEntitiesResponse.SerializeToString, - ), + 'ListEntityTypes': grpc.unary_unary_rpc_method_handler( + servicer.ListEntityTypes, + request_deserializer=exabel_dot_api_dot_data_dot_v1_dot_entity__service__pb2.ListEntityTypesRequest.FromString, + response_serializer=exabel_dot_api_dot_data_dot_v1_dot_entity__service__pb2.ListEntityTypesResponse.SerializeToString, + ), + 'GetEntityType': grpc.unary_unary_rpc_method_handler( + servicer.GetEntityType, + request_deserializer=exabel_dot_api_dot_data_dot_v1_dot_entity__service__pb2.GetEntityTypeRequest.FromString, + response_serializer=exabel_dot_api_dot_data_dot_v1_dot_entity__messages__pb2.EntityType.SerializeToString, + ), + 'ListEntities': grpc.unary_unary_rpc_method_handler( + servicer.ListEntities, + request_deserializer=exabel_dot_api_dot_data_dot_v1_dot_entity__service__pb2.ListEntitiesRequest.FromString, + response_serializer=exabel_dot_api_dot_data_dot_v1_dot_entity__service__pb2.ListEntitiesResponse.SerializeToString, + ), + 'GetEntity': grpc.unary_unary_rpc_method_handler( + servicer.GetEntity, + request_deserializer=exabel_dot_api_dot_data_dot_v1_dot_entity__service__pb2.GetEntityRequest.FromString, + response_serializer=exabel_dot_api_dot_data_dot_v1_dot_entity__messages__pb2.Entity.SerializeToString, + ), + 'CreateEntity': grpc.unary_unary_rpc_method_handler( + servicer.CreateEntity, + request_deserializer=exabel_dot_api_dot_data_dot_v1_dot_entity__service__pb2.CreateEntityRequest.FromString, + response_serializer=exabel_dot_api_dot_data_dot_v1_dot_entity__messages__pb2.Entity.SerializeToString, + ), + 'UpdateEntity': grpc.unary_unary_rpc_method_handler( + servicer.UpdateEntity, + request_deserializer=exabel_dot_api_dot_data_dot_v1_dot_entity__service__pb2.UpdateEntityRequest.FromString, + response_serializer=exabel_dot_api_dot_data_dot_v1_dot_entity__messages__pb2.Entity.SerializeToString, + ), + 'DeleteEntity': grpc.unary_unary_rpc_method_handler( + servicer.DeleteEntity, + request_deserializer=exabel_dot_api_dot_data_dot_v1_dot_entity__service__pb2.DeleteEntityRequest.FromString, + response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, + ), + 'SearchEntities': grpc.unary_unary_rpc_method_handler( + servicer.SearchEntities, + request_deserializer=exabel_dot_api_dot_data_dot_v1_dot_entity__service__pb2.SearchEntitiesRequest.FromString, + response_serializer=exabel_dot_api_dot_data_dot_v1_dot_entity__service__pb2.SearchEntitiesResponse.SerializeToString, + ), } generic_handler = grpc.method_handlers_generic_handler( - "exabel.api.data.v1.EntityService", rpc_method_handlers - ) + 'exabel.api.data.v1.EntityService', rpc_method_handlers) server.add_generic_rpc_handlers((generic_handler,)) -# This class is part of an EXPERIMENTAL API. + # This class is part of an EXPERIMENTAL API. class EntityService(object): - """Manages entity types and entities in the Data API.""" + """Manages entity types and entities in the Data API. + """ @staticmethod - def ListEntityTypes( - 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, + def ListEntityTypes(request, target, - "/exabel.api.data.v1.EntityService/ListEntityTypes", + 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.EntityService/ListEntityTypes', exabel_dot_api_dot_data_dot_v1_dot_entity__service__pb2.ListEntityTypesRequest.SerializeToString, exabel_dot_api_dot_data_dot_v1_dot_entity__service__pb2.ListEntityTypesResponse.FromString, - options, - channel_credentials, - insecure, - call_credentials, - compression, - wait_for_ready, - timeout, - metadata, - ) + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) @staticmethod - def GetEntityType( - 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, + def GetEntityType(request, target, - "/exabel.api.data.v1.EntityService/GetEntityType", + 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.EntityService/GetEntityType', exabel_dot_api_dot_data_dot_v1_dot_entity__service__pb2.GetEntityTypeRequest.SerializeToString, exabel_dot_api_dot_data_dot_v1_dot_entity__messages__pb2.EntityType.FromString, - options, - channel_credentials, - insecure, - call_credentials, - compression, - wait_for_ready, - timeout, - metadata, - ) + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) @staticmethod - def ListEntities( - 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, + def ListEntities(request, target, - "/exabel.api.data.v1.EntityService/ListEntities", + 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.EntityService/ListEntities', exabel_dot_api_dot_data_dot_v1_dot_entity__service__pb2.ListEntitiesRequest.SerializeToString, exabel_dot_api_dot_data_dot_v1_dot_entity__service__pb2.ListEntitiesResponse.FromString, - options, - channel_credentials, - insecure, - call_credentials, - compression, - wait_for_ready, - timeout, - metadata, - ) + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) @staticmethod - def GetEntity( - 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, + def GetEntity(request, target, - "/exabel.api.data.v1.EntityService/GetEntity", + 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.EntityService/GetEntity', exabel_dot_api_dot_data_dot_v1_dot_entity__service__pb2.GetEntityRequest.SerializeToString, exabel_dot_api_dot_data_dot_v1_dot_entity__messages__pb2.Entity.FromString, - options, - channel_credentials, - insecure, - call_credentials, - compression, - wait_for_ready, - timeout, - metadata, - ) + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) @staticmethod - def CreateEntity( - 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, + def CreateEntity(request, target, - "/exabel.api.data.v1.EntityService/CreateEntity", + 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.EntityService/CreateEntity', exabel_dot_api_dot_data_dot_v1_dot_entity__service__pb2.CreateEntityRequest.SerializeToString, exabel_dot_api_dot_data_dot_v1_dot_entity__messages__pb2.Entity.FromString, - options, - channel_credentials, - insecure, - call_credentials, - compression, - wait_for_ready, - timeout, - metadata, - ) + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) @staticmethod - def UpdateEntity( - 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, + def UpdateEntity(request, target, - "/exabel.api.data.v1.EntityService/UpdateEntity", + 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.EntityService/UpdateEntity', exabel_dot_api_dot_data_dot_v1_dot_entity__service__pb2.UpdateEntityRequest.SerializeToString, exabel_dot_api_dot_data_dot_v1_dot_entity__messages__pb2.Entity.FromString, - options, - channel_credentials, - insecure, - call_credentials, - compression, - wait_for_ready, - timeout, - metadata, - ) + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) @staticmethod - def DeleteEntity( - 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, + def DeleteEntity(request, target, - "/exabel.api.data.v1.EntityService/DeleteEntity", + 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.EntityService/DeleteEntity', exabel_dot_api_dot_data_dot_v1_dot_entity__service__pb2.DeleteEntityRequest.SerializeToString, google_dot_protobuf_dot_empty__pb2.Empty.FromString, - options, - channel_credentials, - insecure, - call_credentials, - compression, - wait_for_ready, - timeout, - metadata, - ) + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) @staticmethod - def SearchEntities( - 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, + def SearchEntities(request, target, - "/exabel.api.data.v1.EntityService/SearchEntities", + 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.EntityService/SearchEntities', exabel_dot_api_dot_data_dot_v1_dot_entity__service__pb2.SearchEntitiesRequest.SerializeToString, exabel_dot_api_dot_data_dot_v1_dot_entity__service__pb2.SearchEntitiesResponse.FromString, - options, - channel_credentials, - insecure, - call_credentials, - compression, - wait_for_ready, - timeout, - metadata, - ) + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) 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 a9dae93..6b41c58 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 @@ -6,206 +6,156 @@ 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 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.protobuf import field_mask_pb2 as google_dot_protobuf_dot_field__mask__pb2 -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 DESCRIPTOR = _descriptor.FileDescriptor( - name="exabel/api/data/v1/internal_entity_service.proto", - package="exabel.api.data.v1", - 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', - 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, - ], -) + name='exabel/api/data/v1/internal_entity_service.proto', + package='exabel.api.data.v1', + 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' + , + 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,]) + + _CREATEENTITYTYPEREQUEST = _descriptor.Descriptor( - name="CreateEntityTypeRequest", - full_name="exabel.api.data.v1.CreateEntityTypeRequest", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name="entity_type", - full_name="exabel.api.data.v1.CreateEntityTypeRequest.entity_type", - 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=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=178, - serialized_end=256, + name='CreateEntityTypeRequest', + full_name='exabel.api.data.v1.CreateEntityTypeRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='entity_type', full_name='exabel.api.data.v1.CreateEntityTypeRequest.entity_type', 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=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=178, + serialized_end=256, ) _UPDATEENTITYTYPEREQUEST = _descriptor.Descriptor( - name="UpdateEntityTypeRequest", - full_name="exabel.api.data.v1.UpdateEntityTypeRequest", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name="entity_type", - full_name="exabel.api.data.v1.UpdateEntityTypeRequest.entity_type", - 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=None, - 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, - 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=258, - serialized_end=385, + name='UpdateEntityTypeRequest', + full_name='exabel.api.data.v1.UpdateEntityTypeRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='entity_type', full_name='exabel.api.data.v1.UpdateEntityTypeRequest.entity_type', 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=None, 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, + 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=258, + serialized_end=385, ) -_CREATEENTITYTYPEREQUEST.fields_by_name[ - "entity_type" -].message_type = exabel_dot_api_dot_data_dot_v1_dot_entity__messages__pb2._ENTITYTYPE -_UPDATEENTITYTYPEREQUEST.fields_by_name[ - "entity_type" -].message_type = exabel_dot_api_dot_data_dot_v1_dot_entity__messages__pb2._ENTITYTYPE -_UPDATEENTITYTYPEREQUEST.fields_by_name[ - "update_mask" -].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK -DESCRIPTOR.message_types_by_name["CreateEntityTypeRequest"] = _CREATEENTITYTYPEREQUEST -DESCRIPTOR.message_types_by_name["UpdateEntityTypeRequest"] = _UPDATEENTITYTYPEREQUEST +_CREATEENTITYTYPEREQUEST.fields_by_name['entity_type'].message_type = exabel_dot_api_dot_data_dot_v1_dot_entity__messages__pb2._ENTITYTYPE +_UPDATEENTITYTYPEREQUEST.fields_by_name['entity_type'].message_type = exabel_dot_api_dot_data_dot_v1_dot_entity__messages__pb2._ENTITYTYPE +_UPDATEENTITYTYPEREQUEST.fields_by_name['update_mask'].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK +DESCRIPTOR.message_types_by_name['CreateEntityTypeRequest'] = _CREATEENTITYTYPEREQUEST +DESCRIPTOR.message_types_by_name['UpdateEntityTypeRequest'] = _UPDATEENTITYTYPEREQUEST _sym_db.RegisterFileDescriptor(DESCRIPTOR) -CreateEntityTypeRequest = _reflection.GeneratedProtocolMessageType( - "CreateEntityTypeRequest", - (_message.Message,), - { - "DESCRIPTOR": _CREATEENTITYTYPEREQUEST, - "__module__": "exabel.api.data.v1.internal_entity_service_pb2" - # @@protoc_insertion_point(class_scope:exabel.api.data.v1.CreateEntityTypeRequest) - }, -) +CreateEntityTypeRequest = _reflection.GeneratedProtocolMessageType('CreateEntityTypeRequest', (_message.Message,), { + 'DESCRIPTOR' : _CREATEENTITYTYPEREQUEST, + '__module__' : 'exabel.api.data.v1.internal_entity_service_pb2' + # @@protoc_insertion_point(class_scope:exabel.api.data.v1.CreateEntityTypeRequest) + }) _sym_db.RegisterMessage(CreateEntityTypeRequest) -UpdateEntityTypeRequest = _reflection.GeneratedProtocolMessageType( - "UpdateEntityTypeRequest", - (_message.Message,), - { - "DESCRIPTOR": _UPDATEENTITYTYPEREQUEST, - "__module__": "exabel.api.data.v1.internal_entity_service_pb2" - # @@protoc_insertion_point(class_scope:exabel.api.data.v1.UpdateEntityTypeRequest) - }, -) +UpdateEntityTypeRequest = _reflection.GeneratedProtocolMessageType('UpdateEntityTypeRequest', (_message.Message,), { + 'DESCRIPTOR' : _UPDATEENTITYTYPEREQUEST, + '__module__' : 'exabel.api.data.v1.internal_entity_service_pb2' + # @@protoc_insertion_point(class_scope:exabel.api.data.v1.UpdateEntityTypeRequest) + }) _sym_db.RegisterMessage(UpdateEntityTypeRequest) DESCRIPTOR._options = None _INTERNALENTITYSERVICE = _descriptor.ServiceDescriptor( - name="InternalEntityService", - full_name="exabel.api.data.v1.InternalEntityService", - file=DESCRIPTOR, + name='InternalEntityService', + full_name='exabel.api.data.v1.InternalEntityService', + file=DESCRIPTOR, + index=0, + serialized_options=None, + create_key=_descriptor._internal_create_key, + serialized_start=388, + serialized_end=704, + methods=[ + _descriptor.MethodDescriptor( + name='CreateEntityType', + full_name='exabel.api.data.v1.InternalEntityService.CreateEntityType', index=0, - serialized_options=None, + containing_service=None, + input_type=_CREATEENTITYTYPEREQUEST, + output_type=exabel_dot_api_dot_data_dot_v1_dot_entity__messages__pb2._ENTITYTYPE, + serialized_options=b'\202\323\344\223\002\036\"\017/v1/entityTypes:\013entity_type', create_key=_descriptor._internal_create_key, - serialized_start=388, - serialized_end=704, - methods=[ - _descriptor.MethodDescriptor( - name="CreateEntityType", - full_name="exabel.api.data.v1.InternalEntityService.CreateEntityType", - index=0, - containing_service=None, - input_type=_CREATEENTITYTYPEREQUEST, - output_type=exabel_dot_api_dot_data_dot_v1_dot_entity__messages__pb2._ENTITYTYPE, - serialized_options=b'\202\323\344\223\002\036"\017/v1/entityTypes:\013entity_type', - create_key=_descriptor._internal_create_key, - ), - _descriptor.MethodDescriptor( - name="UpdateEntityType", - full_name="exabel.api.data.v1.InternalEntityService.UpdateEntityType", - index=1, - containing_service=None, - input_type=_UPDATEENTITYTYPEREQUEST, - output_type=exabel_dot_api_dot_data_dot_v1_dot_entity__messages__pb2._ENTITYTYPE, - serialized_options=b"\202\323\344\223\00232$/v1/{entity_type.name=entityTypes/*}:\013entity_type", - create_key=_descriptor._internal_create_key, - ), - ], -) + ), + _descriptor.MethodDescriptor( + name='UpdateEntityType', + full_name='exabel.api.data.v1.InternalEntityService.UpdateEntityType', + index=1, + containing_service=None, + input_type=_UPDATEENTITYTYPEREQUEST, + output_type=exabel_dot_api_dot_data_dot_v1_dot_entity__messages__pb2._ENTITYTYPE, + serialized_options=b'\202\323\344\223\00232$/v1/{entity_type.name=entityTypes/*}:\013entity_type', + create_key=_descriptor._internal_create_key, + ), +]) _sym_db.RegisterServiceDescriptor(_INTERNALENTITYSERVICE) -DESCRIPTOR.services_by_name["InternalEntityService"] = _INTERNALENTITYSERVICE +DESCRIPTOR.services_by_name['InternalEntityService'] = _INTERNALENTITYSERVICE # @@protoc_insertion_point(module_scope) diff --git a/exabel_data_sdk/stubs/exabel/api/data/v1/internal_entity_service_pb2.pyi b/exabel_data_sdk/stubs/exabel/api/data/v1/internal_entity_service_pb2.pyi index 092f2f8..bef9ff1 100644 --- a/exabel_data_sdk/stubs/exabel/api/data/v1/internal_entity_service_pb2.pyi +++ b/exabel_data_sdk/stubs/exabel/api/data/v1/internal_entity_service_pb2.pyi @@ -27,58 +27,43 @@ 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 CreateEntityTypeRequest(google___protobuf___message___Message): DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... + @property def entity_type(self) -> exabel___api___data___v1___entity_messages_pb2___EntityType: ... - def __init__( - self, - *, - entity_type: typing___Optional[ - exabel___api___data___v1___entity_messages_pb2___EntityType - ] = None, - ) -> None: ... - def HasField( - self, field_name: typing_extensions___Literal["entity_type", b"entity_type"] - ) -> builtin___bool: ... - def ClearField( - self, field_name: typing_extensions___Literal["entity_type", b"entity_type"] - ) -> None: ... + def __init__(self, + *, + entity_type : typing___Optional[exabel___api___data___v1___entity_messages_pb2___EntityType] = None, + ) -> None: ... + def HasField(self, field_name: typing_extensions___Literal[u"entity_type",b"entity_type"]) -> builtin___bool: ... + def ClearField(self, field_name: typing_extensions___Literal[u"entity_type",b"entity_type"]) -> None: ... type___CreateEntityTypeRequest = CreateEntityTypeRequest class UpdateEntityTypeRequest(google___protobuf___message___Message): DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... + @property def entity_type(self) -> exabel___api___data___v1___entity_messages_pb2___EntityType: ... + @property def update_mask(self) -> google___protobuf___field_mask_pb2___FieldMask: ... - def __init__( - self, - *, - entity_type: typing___Optional[ - exabel___api___data___v1___entity_messages_pb2___EntityType - ] = None, - update_mask: typing___Optional[google___protobuf___field_mask_pb2___FieldMask] = None, - ) -> None: ... - def HasField( - self, - field_name: typing_extensions___Literal[ - "entity_type", b"entity_type", "update_mask", b"update_mask" - ], - ) -> builtin___bool: ... - def ClearField( - self, - field_name: typing_extensions___Literal[ - "entity_type", b"entity_type", "update_mask", b"update_mask" - ], - ) -> None: ... + def __init__(self, + *, + entity_type : typing___Optional[exabel___api___data___v1___entity_messages_pb2___EntityType] = None, + update_mask : typing___Optional[google___protobuf___field_mask_pb2___FieldMask] = None, + ) -> None: ... + def HasField(self, field_name: typing_extensions___Literal[u"entity_type",b"entity_type",u"update_mask",b"update_mask"]) -> builtin___bool: ... + def ClearField(self, field_name: typing_extensions___Literal[u"entity_type",b"entity_type",u"update_mask",b"update_mask"]) -> None: ... type___UpdateEntityTypeRequest = UpdateEntityTypeRequest diff --git a/exabel_data_sdk/stubs/exabel/api/data/v1/internal_entity_service_pb2_grpc.py b/exabel_data_sdk/stubs/exabel/api/data/v1/internal_entity_service_pb2_grpc.py index ece7112..22c650f 100644 --- a/exabel_data_sdk/stubs/exabel/api/data/v1/internal_entity_service_pb2_grpc.py +++ b/exabel_data_sdk/stubs/exabel/api/data/v1/internal_entity_service_pb2_grpc.py @@ -2,16 +2,13 @@ """Client and server classes corresponding to protobuf-defined services.""" import grpc -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 ( - internal_entity_service_pb2 as exabel_dot_api_dot_data_dot_v1_dot_internal__entity__service__pb2, -) +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 internal_entity_service_pb2 as exabel_dot_api_dot_data_dot_v1_dot_internal__entity__service__pb2 class InternalEntityServiceStub(object): - """Manages entity types in the Data API, for internal usage.""" + """Manages entity types in the Data API, for internal usage. + """ def __init__(self, channel): """Constructor. @@ -20,112 +17,90 @@ def __init__(self, channel): channel: A grpc.Channel. """ self.CreateEntityType = channel.unary_unary( - "/exabel.api.data.v1.InternalEntityService/CreateEntityType", - request_serializer=exabel_dot_api_dot_data_dot_v1_dot_internal__entity__service__pb2.CreateEntityTypeRequest.SerializeToString, - response_deserializer=exabel_dot_api_dot_data_dot_v1_dot_entity__messages__pb2.EntityType.FromString, - ) + '/exabel.api.data.v1.InternalEntityService/CreateEntityType', + request_serializer=exabel_dot_api_dot_data_dot_v1_dot_internal__entity__service__pb2.CreateEntityTypeRequest.SerializeToString, + response_deserializer=exabel_dot_api_dot_data_dot_v1_dot_entity__messages__pb2.EntityType.FromString, + ) self.UpdateEntityType = channel.unary_unary( - "/exabel.api.data.v1.InternalEntityService/UpdateEntityType", - request_serializer=exabel_dot_api_dot_data_dot_v1_dot_internal__entity__service__pb2.UpdateEntityTypeRequest.SerializeToString, - response_deserializer=exabel_dot_api_dot_data_dot_v1_dot_entity__messages__pb2.EntityType.FromString, - ) + '/exabel.api.data.v1.InternalEntityService/UpdateEntityType', + request_serializer=exabel_dot_api_dot_data_dot_v1_dot_internal__entity__service__pb2.UpdateEntityTypeRequest.SerializeToString, + response_deserializer=exabel_dot_api_dot_data_dot_v1_dot_entity__messages__pb2.EntityType.FromString, + ) class InternalEntityServiceServicer(object): - """Manages entity types in the Data API, for internal usage.""" + """Manages entity types in the Data API, for internal usage. + """ def CreateEntityType(self, request, context): - """Creates one entity type and returns it. (Exabel internal.)""" + """Creates one entity type and returns it. (Exabel internal.) + """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details("Method not implemented!") - raise NotImplementedError("Method not implemented!") + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') def UpdateEntityType(self, request, context): """Updates one entity type and returns it. (Exabel internal.) """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details("Method not implemented!") - raise NotImplementedError("Method not implemented!") + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') def add_InternalEntityServiceServicer_to_server(servicer, server): rpc_method_handlers = { - "CreateEntityType": grpc.unary_unary_rpc_method_handler( - servicer.CreateEntityType, - request_deserializer=exabel_dot_api_dot_data_dot_v1_dot_internal__entity__service__pb2.CreateEntityTypeRequest.FromString, - response_serializer=exabel_dot_api_dot_data_dot_v1_dot_entity__messages__pb2.EntityType.SerializeToString, - ), - "UpdateEntityType": grpc.unary_unary_rpc_method_handler( - servicer.UpdateEntityType, - request_deserializer=exabel_dot_api_dot_data_dot_v1_dot_internal__entity__service__pb2.UpdateEntityTypeRequest.FromString, - response_serializer=exabel_dot_api_dot_data_dot_v1_dot_entity__messages__pb2.EntityType.SerializeToString, - ), + 'CreateEntityType': grpc.unary_unary_rpc_method_handler( + servicer.CreateEntityType, + request_deserializer=exabel_dot_api_dot_data_dot_v1_dot_internal__entity__service__pb2.CreateEntityTypeRequest.FromString, + response_serializer=exabel_dot_api_dot_data_dot_v1_dot_entity__messages__pb2.EntityType.SerializeToString, + ), + 'UpdateEntityType': grpc.unary_unary_rpc_method_handler( + servicer.UpdateEntityType, + request_deserializer=exabel_dot_api_dot_data_dot_v1_dot_internal__entity__service__pb2.UpdateEntityTypeRequest.FromString, + response_serializer=exabel_dot_api_dot_data_dot_v1_dot_entity__messages__pb2.EntityType.SerializeToString, + ), } generic_handler = grpc.method_handlers_generic_handler( - "exabel.api.data.v1.InternalEntityService", rpc_method_handlers - ) + 'exabel.api.data.v1.InternalEntityService', rpc_method_handlers) server.add_generic_rpc_handlers((generic_handler,)) -# This class is part of an EXPERIMENTAL API. + # This class is part of an EXPERIMENTAL API. class InternalEntityService(object): - """Manages entity types in the Data API, for internal usage.""" + """Manages entity types in the Data API, for internal usage. + """ @staticmethod - def CreateEntityType( - 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, + def CreateEntityType(request, target, - "/exabel.api.data.v1.InternalEntityService/CreateEntityType", + 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.InternalEntityService/CreateEntityType', exabel_dot_api_dot_data_dot_v1_dot_internal__entity__service__pb2.CreateEntityTypeRequest.SerializeToString, exabel_dot_api_dot_data_dot_v1_dot_entity__messages__pb2.EntityType.FromString, - options, - channel_credentials, - insecure, - call_credentials, - compression, - wait_for_ready, - timeout, - metadata, - ) + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) @staticmethod - def UpdateEntityType( - 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, + def UpdateEntityType(request, target, - "/exabel.api.data.v1.InternalEntityService/UpdateEntityType", + 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.InternalEntityService/UpdateEntityType', exabel_dot_api_dot_data_dot_v1_dot_internal__entity__service__pb2.UpdateEntityTypeRequest.SerializeToString, exabel_dot_api_dot_data_dot_v1_dot_entity__messages__pb2.EntityType.FromString, - options, - channel_credentials, - insecure, - call_credentials, - compression, - wait_for_ready, - timeout, - metadata, - ) + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) 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 5d40d67..aeb6e20 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 @@ -6,7 +6,6 @@ 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() @@ -14,282 +13,157 @@ from google.protobuf import struct_pb2 as google_dot_protobuf_dot_struct__pb2 + DESCRIPTOR = _descriptor.FileDescriptor( - name="exabel/api/data/v1/relationship_messages.proto", - package="exabel.api.data.v1", - 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', - dependencies=[ - google_dot_protobuf_dot_struct__pb2.DESCRIPTOR, - ], -) + name='exabel/api/data/v1/relationship_messages.proto', + package='exabel.api.data.v1', + 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' + , + dependencies=[google_dot_protobuf_dot_struct__pb2.DESCRIPTOR,]) + + _RELATIONSHIPTYPE = _descriptor.Descriptor( - name="RelationshipType", - full_name="exabel.api.data.v1.RelationshipType", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name="name", - full_name="exabel.api.data.v1.RelationshipType.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=None, - 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, - 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="read_only", - full_name="exabel.api.data.v1.RelationshipType.read_only", - index=2, - number=3, - 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, - 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, - 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=100, - serialized_end=217, + name='RelationshipType', + full_name='exabel.api.data.v1.RelationshipType', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='name', full_name='exabel.api.data.v1.RelationshipType.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=None, 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, + 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='read_only', full_name='exabel.api.data.v1.RelationshipType.read_only', index=2, + number=3, 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, + 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, + 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=100, + serialized_end=217, ) _RELATIONSHIP = _descriptor.Descriptor( - name="Relationship", - full_name="exabel.api.data.v1.Relationship", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name="parent", - full_name="exabel.api.data.v1.Relationship.parent", - 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="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, - ), - _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, - ), - _descriptor.FieldDescriptor( - name="description", - full_name="exabel.api.data.v1.Relationship.description", - 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="read_only", - full_name="exabel.api.data.v1.Relationship.read_only", - 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, - ), - _descriptor.FieldDescriptor( - name="properties", - full_name="exabel.api.data.v1.Relationship.properties", - index=5, - 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, - 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=220, - serialized_end=375, + name='Relationship', + full_name='exabel.api.data.v1.Relationship', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='parent', full_name='exabel.api.data.v1.Relationship.parent', 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='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), + _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), + _descriptor.FieldDescriptor( + name='description', full_name='exabel.api.data.v1.Relationship.description', 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='read_only', full_name='exabel.api.data.v1.Relationship.read_only', 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), + _descriptor.FieldDescriptor( + name='properties', full_name='exabel.api.data.v1.Relationship.properties', index=5, + 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, + 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=220, + serialized_end=375, ) -_RELATIONSHIPTYPE.fields_by_name[ - "properties" -].message_type = google_dot_protobuf_dot_struct__pb2._STRUCT -_RELATIONSHIP.fields_by_name[ - "properties" -].message_type = google_dot_protobuf_dot_struct__pb2._STRUCT -DESCRIPTOR.message_types_by_name["RelationshipType"] = _RELATIONSHIPTYPE -DESCRIPTOR.message_types_by_name["Relationship"] = _RELATIONSHIP +_RELATIONSHIPTYPE.fields_by_name['properties'].message_type = google_dot_protobuf_dot_struct__pb2._STRUCT +_RELATIONSHIP.fields_by_name['properties'].message_type = google_dot_protobuf_dot_struct__pb2._STRUCT +DESCRIPTOR.message_types_by_name['RelationshipType'] = _RELATIONSHIPTYPE +DESCRIPTOR.message_types_by_name['Relationship'] = _RELATIONSHIP _sym_db.RegisterFileDescriptor(DESCRIPTOR) -RelationshipType = _reflection.GeneratedProtocolMessageType( - "RelationshipType", - (_message.Message,), - { - "DESCRIPTOR": _RELATIONSHIPTYPE, - "__module__": "exabel.api.data.v1.relationship_messages_pb2" - # @@protoc_insertion_point(class_scope:exabel.api.data.v1.RelationshipType) - }, -) +RelationshipType = _reflection.GeneratedProtocolMessageType('RelationshipType', (_message.Message,), { + 'DESCRIPTOR' : _RELATIONSHIPTYPE, + '__module__' : 'exabel.api.data.v1.relationship_messages_pb2' + # @@protoc_insertion_point(class_scope:exabel.api.data.v1.RelationshipType) + }) _sym_db.RegisterMessage(RelationshipType) -Relationship = _reflection.GeneratedProtocolMessageType( - "Relationship", - (_message.Message,), - { - "DESCRIPTOR": _RELATIONSHIP, - "__module__": "exabel.api.data.v1.relationship_messages_pb2" - # @@protoc_insertion_point(class_scope:exabel.api.data.v1.Relationship) - }, -) +Relationship = _reflection.GeneratedProtocolMessageType('Relationship', (_message.Message,), { + 'DESCRIPTOR' : _RELATIONSHIP, + '__module__' : 'exabel.api.data.v1.relationship_messages_pb2' + # @@protoc_insertion_point(class_scope:exabel.api.data.v1.Relationship) + }) _sym_db.RegisterMessage(Relationship) 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 580368f..9180354 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 @@ -24,11 +24,13 @@ 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 RelationshipType(google___protobuf___message___Message): @@ -36,33 +38,19 @@ class RelationshipType(google___protobuf___message___Message): name: typing___Text = ... description: typing___Text = ... read_only: builtin___bool = ... + @property def properties(self) -> google___protobuf___struct_pb2___Struct: ... - def __init__( - self, - *, - name: typing___Optional[typing___Text] = None, - description: typing___Optional[typing___Text] = None, - read_only: typing___Optional[builtin___bool] = None, - properties: typing___Optional[google___protobuf___struct_pb2___Struct] = None, - ) -> None: ... - def HasField( - self, field_name: typing_extensions___Literal["properties", b"properties"] - ) -> builtin___bool: ... - def ClearField( - self, - field_name: typing_extensions___Literal[ - "description", - b"description", - "name", - b"name", - "properties", - b"properties", - "read_only", - b"read_only", - ], - ) -> None: ... + def __init__(self, + *, + name : typing___Optional[typing___Text] = None, + description : typing___Optional[typing___Text] = None, + read_only : 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: ... type___RelationshipType = RelationshipType class Relationship(google___protobuf___message___Message): @@ -72,37 +60,19 @@ class Relationship(google___protobuf___message___Message): to_entity: typing___Text = ... description: typing___Text = ... read_only: builtin___bool = ... + @property def properties(self) -> google___protobuf___struct_pb2___Struct: ... - def __init__( - self, - *, - parent: typing___Optional[typing___Text] = None, - from_entity: typing___Optional[typing___Text] = None, - to_entity: typing___Optional[typing___Text] = None, - description: typing___Optional[typing___Text] = None, - read_only: typing___Optional[builtin___bool] = None, - properties: typing___Optional[google___protobuf___struct_pb2___Struct] = None, - ) -> None: ... - def HasField( - self, field_name: typing_extensions___Literal["properties", b"properties"] - ) -> builtin___bool: ... - def ClearField( - self, - field_name: typing_extensions___Literal[ - "description", - b"description", - "from_entity", - b"from_entity", - "parent", - b"parent", - "properties", - b"properties", - "read_only", - b"read_only", - "to_entity", - b"to_entity", - ], - ) -> None: ... + def __init__(self, + *, + parent : typing___Optional[typing___Text] = None, + from_entity : typing___Optional[typing___Text] = None, + to_entity : typing___Optional[typing___Text] = None, + description : typing___Optional[typing___Text] = None, + read_only : 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"from_entity",b"from_entity",u"parent",b"parent",u"properties",b"properties",u"read_only",b"read_only",u"to_entity",b"to_entity"]) -> None: ... type___Relationship = Relationship diff --git a/exabel_data_sdk/stubs/exabel/api/data/v1/relationship_messages_pb2_grpc.py b/exabel_data_sdk/stubs/exabel/api/data/v1/relationship_messages_pb2_grpc.py index 8a93939..2daafff 100644 --- a/exabel_data_sdk/stubs/exabel/api/data/v1/relationship_messages_pb2_grpc.py +++ b/exabel_data_sdk/stubs/exabel/api/data/v1/relationship_messages_pb2_grpc.py @@ -1,3 +1,4 @@ # 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/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 96dbc88..7af49eb 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 @@ -6,1099 +6,740 @@ 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 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.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 -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 DESCRIPTOR = _descriptor.FileDescriptor( - name="exabel/api/data/v1/relationship_service.proto", - package="exabel.api.data.v1", - 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', - 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, - ], -) + name='exabel/api/data/v1/relationship_service.proto', + package='exabel.api.data.v1', + 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' + , + 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,]) + + _LISTRELATIONSHIPTYPESREQUEST = _descriptor.Descriptor( - name="ListRelationshipTypesRequest", - full_name="exabel.api.data.v1.ListRelationshipTypesRequest", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name="page_size", - full_name="exabel.api.data.v1.ListRelationshipTypesRequest.page_size", - index=0, - number=1, - type=5, - cpp_type=1, - label=1, - has_default_value=False, - default_value=0, - 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="page_token", - full_name="exabel.api.data.v1.ListRelationshipTypesRequest.page_token", - 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=210, - serialized_end=279, + name='ListRelationshipTypesRequest', + full_name='exabel.api.data.v1.ListRelationshipTypesRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='page_size', full_name='exabel.api.data.v1.ListRelationshipTypesRequest.page_size', index=0, + number=1, type=5, cpp_type=1, label=1, + has_default_value=False, default_value=0, + 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='page_token', full_name='exabel.api.data.v1.ListRelationshipTypesRequest.page_token', 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=210, + serialized_end=279, ) _LISTRELATIONSHIPTYPESRESPONSE = _descriptor.Descriptor( - name="ListRelationshipTypesResponse", - full_name="exabel.api.data.v1.ListRelationshipTypesResponse", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name="relationship_types", - full_name="exabel.api.data.v1.ListRelationshipTypesResponse.relationship_types", - 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="next_page_token", - full_name="exabel.api.data.v1.ListRelationshipTypesResponse.next_page_token", - 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="total_size", - full_name="exabel.api.data.v1.ListRelationshipTypesResponse.total_size", - index=2, - number=3, - type=5, - cpp_type=1, - label=1, - has_default_value=False, - default_value=0, - 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=282, - serialized_end=424, + name='ListRelationshipTypesResponse', + full_name='exabel.api.data.v1.ListRelationshipTypesResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='relationship_types', full_name='exabel.api.data.v1.ListRelationshipTypesResponse.relationship_types', 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='next_page_token', full_name='exabel.api.data.v1.ListRelationshipTypesResponse.next_page_token', 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='total_size', full_name='exabel.api.data.v1.ListRelationshipTypesResponse.total_size', index=2, + number=3, type=5, cpp_type=1, label=1, + has_default_value=False, default_value=0, + 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=282, + serialized_end=424, ) _CREATERELATIONSHIPTYPEREQUEST = _descriptor.Descriptor( - name="CreateRelationshipTypeRequest", - full_name="exabel.api.data.v1.CreateRelationshipTypeRequest", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name="relationship_type", - full_name="exabel.api.data.v1.CreateRelationshipTypeRequest.relationship_type", - 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=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=426, - serialized_end=522, + name='CreateRelationshipTypeRequest', + full_name='exabel.api.data.v1.CreateRelationshipTypeRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='relationship_type', full_name='exabel.api.data.v1.CreateRelationshipTypeRequest.relationship_type', 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=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=426, + serialized_end=522, ) _UPDATERELATIONSHIPTYPEREQUEST = _descriptor.Descriptor( - name="UpdateRelationshipTypeRequest", - full_name="exabel.api.data.v1.UpdateRelationshipTypeRequest", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name="relationship_type", - full_name="exabel.api.data.v1.UpdateRelationshipTypeRequest.relationship_type", - 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=None, - 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, - 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=525, - serialized_end=670, + name='UpdateRelationshipTypeRequest', + full_name='exabel.api.data.v1.UpdateRelationshipTypeRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='relationship_type', full_name='exabel.api.data.v1.UpdateRelationshipTypeRequest.relationship_type', 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=None, 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, + 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=525, + serialized_end=670, ) _DELETERELATIONSHIPTYPEREQUEST = _descriptor.Descriptor( - name="DeleteRelationshipTypeRequest", - full_name="exabel.api.data.v1.DeleteRelationshipTypeRequest", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name="name", - full_name="exabel.api.data.v1.DeleteRelationshipTypeRequest.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=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=672, - serialized_end=717, + name='DeleteRelationshipTypeRequest', + full_name='exabel.api.data.v1.DeleteRelationshipTypeRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='name', full_name='exabel.api.data.v1.DeleteRelationshipTypeRequest.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=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=672, + serialized_end=717, ) _GETRELATIONSHIPTYPEREQUEST = _descriptor.Descriptor( - name="GetRelationshipTypeRequest", - full_name="exabel.api.data.v1.GetRelationshipTypeRequest", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name="name", - full_name="exabel.api.data.v1.GetRelationshipTypeRequest.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=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=719, - serialized_end=761, + name='GetRelationshipTypeRequest', + full_name='exabel.api.data.v1.GetRelationshipTypeRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='name', full_name='exabel.api.data.v1.GetRelationshipTypeRequest.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=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=719, + serialized_end=761, ) _LISTRELATIONSHIPSREQUEST = _descriptor.Descriptor( - name="ListRelationshipsRequest", - full_name="exabel.api.data.v1.ListRelationshipsRequest", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name="parent", - full_name="exabel.api.data.v1.ListRelationshipsRequest.parent", - 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="from_entity", - full_name="exabel.api.data.v1.ListRelationshipsRequest.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, - ), - _descriptor.FieldDescriptor( - name="to_entity", - full_name="exabel.api.data.v1.ListRelationshipsRequest.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, - ), - _descriptor.FieldDescriptor( - name="page_size", - full_name="exabel.api.data.v1.ListRelationshipsRequest.page_size", - index=3, - number=4, - type=5, - cpp_type=1, - label=1, - has_default_value=False, - default_value=0, - 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="page_token", - full_name="exabel.api.data.v1.ListRelationshipsRequest.page_token", - 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, - ), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax="proto3", - extension_ranges=[], - oneofs=[], - serialized_start=763, - serialized_end=884, + name='ListRelationshipsRequest', + full_name='exabel.api.data.v1.ListRelationshipsRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='parent', full_name='exabel.api.data.v1.ListRelationshipsRequest.parent', 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='from_entity', full_name='exabel.api.data.v1.ListRelationshipsRequest.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), + _descriptor.FieldDescriptor( + name='to_entity', full_name='exabel.api.data.v1.ListRelationshipsRequest.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), + _descriptor.FieldDescriptor( + name='page_size', full_name='exabel.api.data.v1.ListRelationshipsRequest.page_size', index=3, + number=4, type=5, cpp_type=1, label=1, + has_default_value=False, default_value=0, + 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='page_token', full_name='exabel.api.data.v1.ListRelationshipsRequest.page_token', 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), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=763, + serialized_end=884, ) _LISTRELATIONSHIPSRESPONSE = _descriptor.Descriptor( - name="ListRelationshipsResponse", - full_name="exabel.api.data.v1.ListRelationshipsResponse", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name="relationships", - full_name="exabel.api.data.v1.ListRelationshipsResponse.relationships", - 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="next_page_token", - full_name="exabel.api.data.v1.ListRelationshipsResponse.next_page_token", - 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="total_size", - full_name="exabel.api.data.v1.ListRelationshipsResponse.total_size", - index=2, - number=3, - type=5, - cpp_type=1, - label=1, - has_default_value=False, - default_value=0, - 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=887, - serialized_end=1016, + name='ListRelationshipsResponse', + full_name='exabel.api.data.v1.ListRelationshipsResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='relationships', full_name='exabel.api.data.v1.ListRelationshipsResponse.relationships', 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='next_page_token', full_name='exabel.api.data.v1.ListRelationshipsResponse.next_page_token', 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='total_size', full_name='exabel.api.data.v1.ListRelationshipsResponse.total_size', index=2, + number=3, type=5, cpp_type=1, label=1, + has_default_value=False, default_value=0, + 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=887, + serialized_end=1016, ) _GETRELATIONSHIPREQUEST = _descriptor.Descriptor( - name="GetRelationshipRequest", - full_name="exabel.api.data.v1.GetRelationshipRequest", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name="parent", - full_name="exabel.api.data.v1.GetRelationshipRequest.parent", - 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="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, - ), - _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, - ), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax="proto3", - extension_ranges=[], - oneofs=[], - serialized_start=1018, - serialized_end=1098, + name='GetRelationshipRequest', + full_name='exabel.api.data.v1.GetRelationshipRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='parent', full_name='exabel.api.data.v1.GetRelationshipRequest.parent', 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='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), + _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), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1018, + serialized_end=1098, ) _CREATERELATIONSHIPREQUEST = _descriptor.Descriptor( - name="CreateRelationshipRequest", - full_name="exabel.api.data.v1.CreateRelationshipRequest", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name="relationship", - full_name="exabel.api.data.v1.CreateRelationshipRequest.relationship", - 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=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=1100, - serialized_end=1183, + name='CreateRelationshipRequest', + full_name='exabel.api.data.v1.CreateRelationshipRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='relationship', full_name='exabel.api.data.v1.CreateRelationshipRequest.relationship', 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=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=1100, + serialized_end=1183, ) _UPDATERELATIONSHIPREQUEST = _descriptor.Descriptor( - name="UpdateRelationshipRequest", - full_name="exabel.api.data.v1.UpdateRelationshipRequest", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name="relationship", - full_name="exabel.api.data.v1.UpdateRelationshipRequest.relationship", - 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=None, - 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, - 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=1186, - serialized_end=1318, + name='UpdateRelationshipRequest', + full_name='exabel.api.data.v1.UpdateRelationshipRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='relationship', full_name='exabel.api.data.v1.UpdateRelationshipRequest.relationship', 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=None, 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, + 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=1186, + serialized_end=1318, ) _DELETERELATIONSHIPREQUEST = _descriptor.Descriptor( - name="DeleteRelationshipRequest", - full_name="exabel.api.data.v1.DeleteRelationshipRequest", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name="parent", - full_name="exabel.api.data.v1.DeleteRelationshipRequest.parent", - 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="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, - ), - _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, - ), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax="proto3", - extension_ranges=[], - oneofs=[], - serialized_start=1320, - serialized_end=1403, + name='DeleteRelationshipRequest', + full_name='exabel.api.data.v1.DeleteRelationshipRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='parent', full_name='exabel.api.data.v1.DeleteRelationshipRequest.parent', 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='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), + _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), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1320, + serialized_end=1403, ) -_LISTRELATIONSHIPTYPESRESPONSE.fields_by_name[ - "relationship_types" -].message_type = exabel_dot_api_dot_data_dot_v1_dot_relationship__messages__pb2._RELATIONSHIPTYPE -_CREATERELATIONSHIPTYPEREQUEST.fields_by_name[ - "relationship_type" -].message_type = exabel_dot_api_dot_data_dot_v1_dot_relationship__messages__pb2._RELATIONSHIPTYPE -_UPDATERELATIONSHIPTYPEREQUEST.fields_by_name[ - "relationship_type" -].message_type = exabel_dot_api_dot_data_dot_v1_dot_relationship__messages__pb2._RELATIONSHIPTYPE -_UPDATERELATIONSHIPTYPEREQUEST.fields_by_name[ - "update_mask" -].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK -_LISTRELATIONSHIPSRESPONSE.fields_by_name[ - "relationships" -].message_type = exabel_dot_api_dot_data_dot_v1_dot_relationship__messages__pb2._RELATIONSHIP -_CREATERELATIONSHIPREQUEST.fields_by_name[ - "relationship" -].message_type = exabel_dot_api_dot_data_dot_v1_dot_relationship__messages__pb2._RELATIONSHIP -_UPDATERELATIONSHIPREQUEST.fields_by_name[ - "relationship" -].message_type = exabel_dot_api_dot_data_dot_v1_dot_relationship__messages__pb2._RELATIONSHIP -_UPDATERELATIONSHIPREQUEST.fields_by_name[ - "update_mask" -].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK -DESCRIPTOR.message_types_by_name["ListRelationshipTypesRequest"] = _LISTRELATIONSHIPTYPESREQUEST -DESCRIPTOR.message_types_by_name["ListRelationshipTypesResponse"] = _LISTRELATIONSHIPTYPESRESPONSE -DESCRIPTOR.message_types_by_name["CreateRelationshipTypeRequest"] = _CREATERELATIONSHIPTYPEREQUEST -DESCRIPTOR.message_types_by_name["UpdateRelationshipTypeRequest"] = _UPDATERELATIONSHIPTYPEREQUEST -DESCRIPTOR.message_types_by_name["DeleteRelationshipTypeRequest"] = _DELETERELATIONSHIPTYPEREQUEST -DESCRIPTOR.message_types_by_name["GetRelationshipTypeRequest"] = _GETRELATIONSHIPTYPEREQUEST -DESCRIPTOR.message_types_by_name["ListRelationshipsRequest"] = _LISTRELATIONSHIPSREQUEST -DESCRIPTOR.message_types_by_name["ListRelationshipsResponse"] = _LISTRELATIONSHIPSRESPONSE -DESCRIPTOR.message_types_by_name["GetRelationshipRequest"] = _GETRELATIONSHIPREQUEST -DESCRIPTOR.message_types_by_name["CreateRelationshipRequest"] = _CREATERELATIONSHIPREQUEST -DESCRIPTOR.message_types_by_name["UpdateRelationshipRequest"] = _UPDATERELATIONSHIPREQUEST -DESCRIPTOR.message_types_by_name["DeleteRelationshipRequest"] = _DELETERELATIONSHIPREQUEST +_LISTRELATIONSHIPTYPESRESPONSE.fields_by_name['relationship_types'].message_type = exabel_dot_api_dot_data_dot_v1_dot_relationship__messages__pb2._RELATIONSHIPTYPE +_CREATERELATIONSHIPTYPEREQUEST.fields_by_name['relationship_type'].message_type = exabel_dot_api_dot_data_dot_v1_dot_relationship__messages__pb2._RELATIONSHIPTYPE +_UPDATERELATIONSHIPTYPEREQUEST.fields_by_name['relationship_type'].message_type = exabel_dot_api_dot_data_dot_v1_dot_relationship__messages__pb2._RELATIONSHIPTYPE +_UPDATERELATIONSHIPTYPEREQUEST.fields_by_name['update_mask'].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK +_LISTRELATIONSHIPSRESPONSE.fields_by_name['relationships'].message_type = exabel_dot_api_dot_data_dot_v1_dot_relationship__messages__pb2._RELATIONSHIP +_CREATERELATIONSHIPREQUEST.fields_by_name['relationship'].message_type = exabel_dot_api_dot_data_dot_v1_dot_relationship__messages__pb2._RELATIONSHIP +_UPDATERELATIONSHIPREQUEST.fields_by_name['relationship'].message_type = exabel_dot_api_dot_data_dot_v1_dot_relationship__messages__pb2._RELATIONSHIP +_UPDATERELATIONSHIPREQUEST.fields_by_name['update_mask'].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK +DESCRIPTOR.message_types_by_name['ListRelationshipTypesRequest'] = _LISTRELATIONSHIPTYPESREQUEST +DESCRIPTOR.message_types_by_name['ListRelationshipTypesResponse'] = _LISTRELATIONSHIPTYPESRESPONSE +DESCRIPTOR.message_types_by_name['CreateRelationshipTypeRequest'] = _CREATERELATIONSHIPTYPEREQUEST +DESCRIPTOR.message_types_by_name['UpdateRelationshipTypeRequest'] = _UPDATERELATIONSHIPTYPEREQUEST +DESCRIPTOR.message_types_by_name['DeleteRelationshipTypeRequest'] = _DELETERELATIONSHIPTYPEREQUEST +DESCRIPTOR.message_types_by_name['GetRelationshipTypeRequest'] = _GETRELATIONSHIPTYPEREQUEST +DESCRIPTOR.message_types_by_name['ListRelationshipsRequest'] = _LISTRELATIONSHIPSREQUEST +DESCRIPTOR.message_types_by_name['ListRelationshipsResponse'] = _LISTRELATIONSHIPSRESPONSE +DESCRIPTOR.message_types_by_name['GetRelationshipRequest'] = _GETRELATIONSHIPREQUEST +DESCRIPTOR.message_types_by_name['CreateRelationshipRequest'] = _CREATERELATIONSHIPREQUEST +DESCRIPTOR.message_types_by_name['UpdateRelationshipRequest'] = _UPDATERELATIONSHIPREQUEST +DESCRIPTOR.message_types_by_name['DeleteRelationshipRequest'] = _DELETERELATIONSHIPREQUEST _sym_db.RegisterFileDescriptor(DESCRIPTOR) -ListRelationshipTypesRequest = _reflection.GeneratedProtocolMessageType( - "ListRelationshipTypesRequest", - (_message.Message,), - { - "DESCRIPTOR": _LISTRELATIONSHIPTYPESREQUEST, - "__module__": "exabel.api.data.v1.relationship_service_pb2" - # @@protoc_insertion_point(class_scope:exabel.api.data.v1.ListRelationshipTypesRequest) - }, -) +ListRelationshipTypesRequest = _reflection.GeneratedProtocolMessageType('ListRelationshipTypesRequest', (_message.Message,), { + 'DESCRIPTOR' : _LISTRELATIONSHIPTYPESREQUEST, + '__module__' : 'exabel.api.data.v1.relationship_service_pb2' + # @@protoc_insertion_point(class_scope:exabel.api.data.v1.ListRelationshipTypesRequest) + }) _sym_db.RegisterMessage(ListRelationshipTypesRequest) -ListRelationshipTypesResponse = _reflection.GeneratedProtocolMessageType( - "ListRelationshipTypesResponse", - (_message.Message,), - { - "DESCRIPTOR": _LISTRELATIONSHIPTYPESRESPONSE, - "__module__": "exabel.api.data.v1.relationship_service_pb2" - # @@protoc_insertion_point(class_scope:exabel.api.data.v1.ListRelationshipTypesResponse) - }, -) +ListRelationshipTypesResponse = _reflection.GeneratedProtocolMessageType('ListRelationshipTypesResponse', (_message.Message,), { + 'DESCRIPTOR' : _LISTRELATIONSHIPTYPESRESPONSE, + '__module__' : 'exabel.api.data.v1.relationship_service_pb2' + # @@protoc_insertion_point(class_scope:exabel.api.data.v1.ListRelationshipTypesResponse) + }) _sym_db.RegisterMessage(ListRelationshipTypesResponse) -CreateRelationshipTypeRequest = _reflection.GeneratedProtocolMessageType( - "CreateRelationshipTypeRequest", - (_message.Message,), - { - "DESCRIPTOR": _CREATERELATIONSHIPTYPEREQUEST, - "__module__": "exabel.api.data.v1.relationship_service_pb2" - # @@protoc_insertion_point(class_scope:exabel.api.data.v1.CreateRelationshipTypeRequest) - }, -) +CreateRelationshipTypeRequest = _reflection.GeneratedProtocolMessageType('CreateRelationshipTypeRequest', (_message.Message,), { + 'DESCRIPTOR' : _CREATERELATIONSHIPTYPEREQUEST, + '__module__' : 'exabel.api.data.v1.relationship_service_pb2' + # @@protoc_insertion_point(class_scope:exabel.api.data.v1.CreateRelationshipTypeRequest) + }) _sym_db.RegisterMessage(CreateRelationshipTypeRequest) -UpdateRelationshipTypeRequest = _reflection.GeneratedProtocolMessageType( - "UpdateRelationshipTypeRequest", - (_message.Message,), - { - "DESCRIPTOR": _UPDATERELATIONSHIPTYPEREQUEST, - "__module__": "exabel.api.data.v1.relationship_service_pb2" - # @@protoc_insertion_point(class_scope:exabel.api.data.v1.UpdateRelationshipTypeRequest) - }, -) +UpdateRelationshipTypeRequest = _reflection.GeneratedProtocolMessageType('UpdateRelationshipTypeRequest', (_message.Message,), { + 'DESCRIPTOR' : _UPDATERELATIONSHIPTYPEREQUEST, + '__module__' : 'exabel.api.data.v1.relationship_service_pb2' + # @@protoc_insertion_point(class_scope:exabel.api.data.v1.UpdateRelationshipTypeRequest) + }) _sym_db.RegisterMessage(UpdateRelationshipTypeRequest) -DeleteRelationshipTypeRequest = _reflection.GeneratedProtocolMessageType( - "DeleteRelationshipTypeRequest", - (_message.Message,), - { - "DESCRIPTOR": _DELETERELATIONSHIPTYPEREQUEST, - "__module__": "exabel.api.data.v1.relationship_service_pb2" - # @@protoc_insertion_point(class_scope:exabel.api.data.v1.DeleteRelationshipTypeRequest) - }, -) +DeleteRelationshipTypeRequest = _reflection.GeneratedProtocolMessageType('DeleteRelationshipTypeRequest', (_message.Message,), { + 'DESCRIPTOR' : _DELETERELATIONSHIPTYPEREQUEST, + '__module__' : 'exabel.api.data.v1.relationship_service_pb2' + # @@protoc_insertion_point(class_scope:exabel.api.data.v1.DeleteRelationshipTypeRequest) + }) _sym_db.RegisterMessage(DeleteRelationshipTypeRequest) -GetRelationshipTypeRequest = _reflection.GeneratedProtocolMessageType( - "GetRelationshipTypeRequest", - (_message.Message,), - { - "DESCRIPTOR": _GETRELATIONSHIPTYPEREQUEST, - "__module__": "exabel.api.data.v1.relationship_service_pb2" - # @@protoc_insertion_point(class_scope:exabel.api.data.v1.GetRelationshipTypeRequest) - }, -) +GetRelationshipTypeRequest = _reflection.GeneratedProtocolMessageType('GetRelationshipTypeRequest', (_message.Message,), { + 'DESCRIPTOR' : _GETRELATIONSHIPTYPEREQUEST, + '__module__' : 'exabel.api.data.v1.relationship_service_pb2' + # @@protoc_insertion_point(class_scope:exabel.api.data.v1.GetRelationshipTypeRequest) + }) _sym_db.RegisterMessage(GetRelationshipTypeRequest) -ListRelationshipsRequest = _reflection.GeneratedProtocolMessageType( - "ListRelationshipsRequest", - (_message.Message,), - { - "DESCRIPTOR": _LISTRELATIONSHIPSREQUEST, - "__module__": "exabel.api.data.v1.relationship_service_pb2" - # @@protoc_insertion_point(class_scope:exabel.api.data.v1.ListRelationshipsRequest) - }, -) +ListRelationshipsRequest = _reflection.GeneratedProtocolMessageType('ListRelationshipsRequest', (_message.Message,), { + 'DESCRIPTOR' : _LISTRELATIONSHIPSREQUEST, + '__module__' : 'exabel.api.data.v1.relationship_service_pb2' + # @@protoc_insertion_point(class_scope:exabel.api.data.v1.ListRelationshipsRequest) + }) _sym_db.RegisterMessage(ListRelationshipsRequest) -ListRelationshipsResponse = _reflection.GeneratedProtocolMessageType( - "ListRelationshipsResponse", - (_message.Message,), - { - "DESCRIPTOR": _LISTRELATIONSHIPSRESPONSE, - "__module__": "exabel.api.data.v1.relationship_service_pb2" - # @@protoc_insertion_point(class_scope:exabel.api.data.v1.ListRelationshipsResponse) - }, -) +ListRelationshipsResponse = _reflection.GeneratedProtocolMessageType('ListRelationshipsResponse', (_message.Message,), { + 'DESCRIPTOR' : _LISTRELATIONSHIPSRESPONSE, + '__module__' : 'exabel.api.data.v1.relationship_service_pb2' + # @@protoc_insertion_point(class_scope:exabel.api.data.v1.ListRelationshipsResponse) + }) _sym_db.RegisterMessage(ListRelationshipsResponse) -GetRelationshipRequest = _reflection.GeneratedProtocolMessageType( - "GetRelationshipRequest", - (_message.Message,), - { - "DESCRIPTOR": _GETRELATIONSHIPREQUEST, - "__module__": "exabel.api.data.v1.relationship_service_pb2" - # @@protoc_insertion_point(class_scope:exabel.api.data.v1.GetRelationshipRequest) - }, -) +GetRelationshipRequest = _reflection.GeneratedProtocolMessageType('GetRelationshipRequest', (_message.Message,), { + 'DESCRIPTOR' : _GETRELATIONSHIPREQUEST, + '__module__' : 'exabel.api.data.v1.relationship_service_pb2' + # @@protoc_insertion_point(class_scope:exabel.api.data.v1.GetRelationshipRequest) + }) _sym_db.RegisterMessage(GetRelationshipRequest) -CreateRelationshipRequest = _reflection.GeneratedProtocolMessageType( - "CreateRelationshipRequest", - (_message.Message,), - { - "DESCRIPTOR": _CREATERELATIONSHIPREQUEST, - "__module__": "exabel.api.data.v1.relationship_service_pb2" - # @@protoc_insertion_point(class_scope:exabel.api.data.v1.CreateRelationshipRequest) - }, -) +CreateRelationshipRequest = _reflection.GeneratedProtocolMessageType('CreateRelationshipRequest', (_message.Message,), { + 'DESCRIPTOR' : _CREATERELATIONSHIPREQUEST, + '__module__' : 'exabel.api.data.v1.relationship_service_pb2' + # @@protoc_insertion_point(class_scope:exabel.api.data.v1.CreateRelationshipRequest) + }) _sym_db.RegisterMessage(CreateRelationshipRequest) -UpdateRelationshipRequest = _reflection.GeneratedProtocolMessageType( - "UpdateRelationshipRequest", - (_message.Message,), - { - "DESCRIPTOR": _UPDATERELATIONSHIPREQUEST, - "__module__": "exabel.api.data.v1.relationship_service_pb2" - # @@protoc_insertion_point(class_scope:exabel.api.data.v1.UpdateRelationshipRequest) - }, -) +UpdateRelationshipRequest = _reflection.GeneratedProtocolMessageType('UpdateRelationshipRequest', (_message.Message,), { + 'DESCRIPTOR' : _UPDATERELATIONSHIPREQUEST, + '__module__' : 'exabel.api.data.v1.relationship_service_pb2' + # @@protoc_insertion_point(class_scope:exabel.api.data.v1.UpdateRelationshipRequest) + }) _sym_db.RegisterMessage(UpdateRelationshipRequest) -DeleteRelationshipRequest = _reflection.GeneratedProtocolMessageType( - "DeleteRelationshipRequest", - (_message.Message,), - { - "DESCRIPTOR": _DELETERELATIONSHIPREQUEST, - "__module__": "exabel.api.data.v1.relationship_service_pb2" - # @@protoc_insertion_point(class_scope:exabel.api.data.v1.DeleteRelationshipRequest) - }, -) +DeleteRelationshipRequest = _reflection.GeneratedProtocolMessageType('DeleteRelationshipRequest', (_message.Message,), { + 'DESCRIPTOR' : _DELETERELATIONSHIPREQUEST, + '__module__' : 'exabel.api.data.v1.relationship_service_pb2' + # @@protoc_insertion_point(class_scope:exabel.api.data.v1.DeleteRelationshipRequest) + }) _sym_db.RegisterMessage(DeleteRelationshipRequest) DESCRIPTOR._options = None _RELATIONSHIPSERVICE = _descriptor.ServiceDescriptor( - name="RelationshipService", - full_name="exabel.api.data.v1.RelationshipService", - file=DESCRIPTOR, + name='RelationshipService', + full_name='exabel.api.data.v1.RelationshipService', + file=DESCRIPTOR, + index=0, + serialized_options=None, + create_key=_descriptor._internal_create_key, + serialized_start=1406, + serialized_end=3085, + methods=[ + _descriptor.MethodDescriptor( + name='ListRelationshipTypes', + full_name='exabel.api.data.v1.RelationshipService.ListRelationshipTypes', index=0, - serialized_options=None, + containing_service=None, + input_type=_LISTRELATIONSHIPTYPESREQUEST, + output_type=_LISTRELATIONSHIPTYPESRESPONSE, + serialized_options=b'\202\323\344\223\002\027\022\025/v1/relationshipTypes', create_key=_descriptor._internal_create_key, - serialized_start=1406, - serialized_end=3085, - methods=[ - _descriptor.MethodDescriptor( - name="ListRelationshipTypes", - full_name="exabel.api.data.v1.RelationshipService.ListRelationshipTypes", - index=0, - containing_service=None, - input_type=_LISTRELATIONSHIPTYPESREQUEST, - output_type=_LISTRELATIONSHIPTYPESRESPONSE, - serialized_options=b"\202\323\344\223\002\027\022\025/v1/relationshipTypes", - create_key=_descriptor._internal_create_key, - ), - _descriptor.MethodDescriptor( - name="GetRelationshipType", - full_name="exabel.api.data.v1.RelationshipService.GetRelationshipType", - index=1, - containing_service=None, - input_type=_GETRELATIONSHIPTYPEREQUEST, - output_type=exabel_dot_api_dot_data_dot_v1_dot_relationship__messages__pb2._RELATIONSHIPTYPE, - serialized_options=b"\202\323\344\223\002 \022\036/v1/{name=relationshipTypes/*}", - create_key=_descriptor._internal_create_key, - ), - _descriptor.MethodDescriptor( - name="CreateRelationshipType", - full_name="exabel.api.data.v1.RelationshipService.CreateRelationshipType", - index=2, - containing_service=None, - input_type=_CREATERELATIONSHIPTYPEREQUEST, - output_type=exabel_dot_api_dot_data_dot_v1_dot_relationship__messages__pb2._RELATIONSHIPTYPE, - serialized_options=b'\202\323\344\223\002*"\025/v1/relationshipTypes:\021relationship_type', - create_key=_descriptor._internal_create_key, - ), - _descriptor.MethodDescriptor( - name="UpdateRelationshipType", - full_name="exabel.api.data.v1.RelationshipService.UpdateRelationshipType", - index=3, - containing_service=None, - input_type=_UPDATERELATIONSHIPTYPEREQUEST, - output_type=exabel_dot_api_dot_data_dot_v1_dot_relationship__messages__pb2._RELATIONSHIPTYPE, - serialized_options=b"\202\323\344\223\002E20/v1/{relationship_type.name=relationshipTypes/*}:\021relationship_type", - create_key=_descriptor._internal_create_key, - ), - _descriptor.MethodDescriptor( - name="DeleteRelationshipType", - full_name="exabel.api.data.v1.RelationshipService.DeleteRelationshipType", - index=4, - containing_service=None, - input_type=_DELETERELATIONSHIPTYPEREQUEST, - output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, - serialized_options=b"\202\323\344\223\002 *\036/v1/{name=relationshipTypes/*}", - create_key=_descriptor._internal_create_key, - ), - _descriptor.MethodDescriptor( - name="ListRelationships", - full_name="exabel.api.data.v1.RelationshipService.ListRelationships", - index=5, - containing_service=None, - input_type=_LISTRELATIONSHIPSREQUEST, - output_type=_LISTRELATIONSHIPSRESPONSE, - serialized_options=b"\202\323\344\223\0020\022./v1/{parent=relationshipTypes/*}/relationships", - create_key=_descriptor._internal_create_key, - ), - _descriptor.MethodDescriptor( - name="GetRelationship", - full_name="exabel.api.data.v1.RelationshipService.GetRelationship", - index=6, - containing_service=None, - input_type=_GETRELATIONSHIPREQUEST, - output_type=exabel_dot_api_dot_data_dot_v1_dot_relationship__messages__pb2._RELATIONSHIP, - serialized_options=b"\202\323\344\223\0020\022./v1/{parent=relationshipTypes/*}/relationships", - create_key=_descriptor._internal_create_key, - ), - _descriptor.MethodDescriptor( - name="CreateRelationship", - full_name="exabel.api.data.v1.RelationshipService.CreateRelationship", - index=7, - containing_service=None, - input_type=_CREATERELATIONSHIPREQUEST, - output_type=exabel_dot_api_dot_data_dot_v1_dot_relationship__messages__pb2._RELATIONSHIP, - serialized_options=b'\202\323\344\223\002K";/v1/{relationship.parent=relationshipTypes/*}/relationships:\014relationship', - create_key=_descriptor._internal_create_key, - ), - _descriptor.MethodDescriptor( - name="UpdateRelationship", - full_name="exabel.api.data.v1.RelationshipService.UpdateRelationship", - index=8, - containing_service=None, - input_type=_UPDATERELATIONSHIPREQUEST, - output_type=exabel_dot_api_dot_data_dot_v1_dot_relationship__messages__pb2._RELATIONSHIP, - serialized_options=b"\202\323\344\223\002K2;/v1/{relationship.parent=relationshipTypes/*}/relationships:\014relationship", - create_key=_descriptor._internal_create_key, - ), - _descriptor.MethodDescriptor( - name="DeleteRelationship", - full_name="exabel.api.data.v1.RelationshipService.DeleteRelationship", - index=9, - containing_service=None, - input_type=_DELETERELATIONSHIPREQUEST, - output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, - serialized_options=b"\202\323\344\223\0020*./v1/{parent=relationshipTypes/*}/relationships", - create_key=_descriptor._internal_create_key, - ), - ], -) + ), + _descriptor.MethodDescriptor( + name='GetRelationshipType', + full_name='exabel.api.data.v1.RelationshipService.GetRelationshipType', + index=1, + containing_service=None, + input_type=_GETRELATIONSHIPTYPEREQUEST, + output_type=exabel_dot_api_dot_data_dot_v1_dot_relationship__messages__pb2._RELATIONSHIPTYPE, + serialized_options=b'\202\323\344\223\002 \022\036/v1/{name=relationshipTypes/*}', + create_key=_descriptor._internal_create_key, + ), + _descriptor.MethodDescriptor( + name='CreateRelationshipType', + full_name='exabel.api.data.v1.RelationshipService.CreateRelationshipType', + index=2, + containing_service=None, + input_type=_CREATERELATIONSHIPTYPEREQUEST, + output_type=exabel_dot_api_dot_data_dot_v1_dot_relationship__messages__pb2._RELATIONSHIPTYPE, + serialized_options=b'\202\323\344\223\002*\"\025/v1/relationshipTypes:\021relationship_type', + create_key=_descriptor._internal_create_key, + ), + _descriptor.MethodDescriptor( + name='UpdateRelationshipType', + full_name='exabel.api.data.v1.RelationshipService.UpdateRelationshipType', + index=3, + containing_service=None, + input_type=_UPDATERELATIONSHIPTYPEREQUEST, + output_type=exabel_dot_api_dot_data_dot_v1_dot_relationship__messages__pb2._RELATIONSHIPTYPE, + serialized_options=b'\202\323\344\223\002E20/v1/{relationship_type.name=relationshipTypes/*}:\021relationship_type', + create_key=_descriptor._internal_create_key, + ), + _descriptor.MethodDescriptor( + name='DeleteRelationshipType', + full_name='exabel.api.data.v1.RelationshipService.DeleteRelationshipType', + index=4, + containing_service=None, + input_type=_DELETERELATIONSHIPTYPEREQUEST, + output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, + serialized_options=b'\202\323\344\223\002 *\036/v1/{name=relationshipTypes/*}', + create_key=_descriptor._internal_create_key, + ), + _descriptor.MethodDescriptor( + name='ListRelationships', + full_name='exabel.api.data.v1.RelationshipService.ListRelationships', + index=5, + containing_service=None, + input_type=_LISTRELATIONSHIPSREQUEST, + output_type=_LISTRELATIONSHIPSRESPONSE, + serialized_options=b'\202\323\344\223\0020\022./v1/{parent=relationshipTypes/*}/relationships', + create_key=_descriptor._internal_create_key, + ), + _descriptor.MethodDescriptor( + name='GetRelationship', + full_name='exabel.api.data.v1.RelationshipService.GetRelationship', + index=6, + containing_service=None, + input_type=_GETRELATIONSHIPREQUEST, + output_type=exabel_dot_api_dot_data_dot_v1_dot_relationship__messages__pb2._RELATIONSHIP, + serialized_options=b'\202\323\344\223\0020\022./v1/{parent=relationshipTypes/*}/relationships', + create_key=_descriptor._internal_create_key, + ), + _descriptor.MethodDescriptor( + name='CreateRelationship', + full_name='exabel.api.data.v1.RelationshipService.CreateRelationship', + index=7, + containing_service=None, + input_type=_CREATERELATIONSHIPREQUEST, + output_type=exabel_dot_api_dot_data_dot_v1_dot_relationship__messages__pb2._RELATIONSHIP, + serialized_options=b'\202\323\344\223\002K\";/v1/{relationship.parent=relationshipTypes/*}/relationships:\014relationship', + create_key=_descriptor._internal_create_key, + ), + _descriptor.MethodDescriptor( + name='UpdateRelationship', + full_name='exabel.api.data.v1.RelationshipService.UpdateRelationship', + index=8, + containing_service=None, + input_type=_UPDATERELATIONSHIPREQUEST, + output_type=exabel_dot_api_dot_data_dot_v1_dot_relationship__messages__pb2._RELATIONSHIP, + serialized_options=b'\202\323\344\223\002K2;/v1/{relationship.parent=relationshipTypes/*}/relationships:\014relationship', + create_key=_descriptor._internal_create_key, + ), + _descriptor.MethodDescriptor( + name='DeleteRelationship', + full_name='exabel.api.data.v1.RelationshipService.DeleteRelationship', + index=9, + containing_service=None, + input_type=_DELETERELATIONSHIPREQUEST, + output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, + serialized_options=b'\202\323\344\223\0020*./v1/{parent=relationshipTypes/*}/relationships', + create_key=_descriptor._internal_create_key, + ), +]) _sym_db.RegisterServiceDescriptor(_RELATIONSHIPSERVICE) -DESCRIPTOR.services_by_name["RelationshipService"] = _RELATIONSHIPSERVICE +DESCRIPTOR.services_by_name['RelationshipService'] = _RELATIONSHIPSERVICE # @@protoc_insertion_point(module_scope) diff --git a/exabel_data_sdk/stubs/exabel/api/data/v1/relationship_service_pb2.pyi b/exabel_data_sdk/stubs/exabel/api/data/v1/relationship_service_pb2.pyi index a2ae30c..ba8a8aa 100644 --- a/exabel_data_sdk/stubs/exabel/api/data/v1/relationship_service_pb2.pyi +++ b/exabel_data_sdk/stubs/exabel/api/data/v1/relationship_service_pb2.pyi @@ -34,142 +34,97 @@ 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 ListRelationshipTypesRequest(google___protobuf___message___Message): DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... page_size: builtin___int = ... page_token: typing___Text = ... - def __init__( - self, - *, - page_size: typing___Optional[builtin___int] = None, - page_token: typing___Optional[typing___Text] = None, - ) -> None: ... - def ClearField( - self, - field_name: typing_extensions___Literal[ - "page_size", b"page_size", "page_token", b"page_token" - ], - ) -> None: ... + def __init__(self, + *, + page_size : typing___Optional[builtin___int] = None, + page_token : typing___Optional[typing___Text] = None, + ) -> None: ... + def ClearField(self, field_name: typing_extensions___Literal[u"page_size",b"page_size",u"page_token",b"page_token"]) -> None: ... type___ListRelationshipTypesRequest = ListRelationshipTypesRequest class ListRelationshipTypesResponse(google___protobuf___message___Message): DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... next_page_token: typing___Text = ... total_size: builtin___int = ... + @property - def relationship_types( - self, - ) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[ - exabel___api___data___v1___relationship_messages_pb2___RelationshipType - ]: ... - def __init__( - self, - *, - relationship_types: typing___Optional[ - typing___Iterable[ - exabel___api___data___v1___relationship_messages_pb2___RelationshipType - ] - ] = None, - next_page_token: typing___Optional[typing___Text] = None, - total_size: typing___Optional[builtin___int] = None, - ) -> None: ... - def ClearField( - self, - field_name: typing_extensions___Literal[ - "next_page_token", - b"next_page_token", - "relationship_types", - b"relationship_types", - "total_size", - b"total_size", - ], - ) -> None: ... + def relationship_types(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[exabel___api___data___v1___relationship_messages_pb2___RelationshipType]: ... + def __init__(self, + *, + relationship_types : typing___Optional[typing___Iterable[exabel___api___data___v1___relationship_messages_pb2___RelationshipType]] = None, + next_page_token : typing___Optional[typing___Text] = None, + total_size : typing___Optional[builtin___int] = None, + ) -> None: ... + def ClearField(self, field_name: typing_extensions___Literal[u"next_page_token",b"next_page_token",u"relationship_types",b"relationship_types",u"total_size",b"total_size"]) -> None: ... type___ListRelationshipTypesResponse = ListRelationshipTypesResponse class CreateRelationshipTypeRequest(google___protobuf___message___Message): DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... + @property - def relationship_type( - self, - ) -> exabel___api___data___v1___relationship_messages_pb2___RelationshipType: ... - def __init__( - self, - *, - relationship_type: typing___Optional[ - exabel___api___data___v1___relationship_messages_pb2___RelationshipType - ] = None, - ) -> None: ... - def HasField( - self, field_name: typing_extensions___Literal["relationship_type", b"relationship_type"] - ) -> builtin___bool: ... - def ClearField( - self, field_name: typing_extensions___Literal["relationship_type", b"relationship_type"] - ) -> None: ... + def relationship_type(self) -> exabel___api___data___v1___relationship_messages_pb2___RelationshipType: ... + def __init__(self, + *, + relationship_type : typing___Optional[exabel___api___data___v1___relationship_messages_pb2___RelationshipType] = None, + ) -> None: ... + def HasField(self, field_name: typing_extensions___Literal[u"relationship_type",b"relationship_type"]) -> builtin___bool: ... + def ClearField(self, field_name: typing_extensions___Literal[u"relationship_type",b"relationship_type"]) -> None: ... type___CreateRelationshipTypeRequest = CreateRelationshipTypeRequest class UpdateRelationshipTypeRequest(google___protobuf___message___Message): DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... + @property - def relationship_type( - self, - ) -> exabel___api___data___v1___relationship_messages_pb2___RelationshipType: ... + def relationship_type(self) -> exabel___api___data___v1___relationship_messages_pb2___RelationshipType: ... + @property def update_mask(self) -> google___protobuf___field_mask_pb2___FieldMask: ... - def __init__( - self, - *, - relationship_type: typing___Optional[ - exabel___api___data___v1___relationship_messages_pb2___RelationshipType - ] = None, - update_mask: typing___Optional[google___protobuf___field_mask_pb2___FieldMask] = None, - ) -> None: ... - def HasField( - self, - field_name: typing_extensions___Literal[ - "relationship_type", b"relationship_type", "update_mask", b"update_mask" - ], - ) -> builtin___bool: ... - def ClearField( - self, - field_name: typing_extensions___Literal[ - "relationship_type", b"relationship_type", "update_mask", b"update_mask" - ], - ) -> None: ... + def __init__(self, + *, + relationship_type : typing___Optional[exabel___api___data___v1___relationship_messages_pb2___RelationshipType] = None, + update_mask : typing___Optional[google___protobuf___field_mask_pb2___FieldMask] = None, + ) -> None: ... + def HasField(self, field_name: typing_extensions___Literal[u"relationship_type",b"relationship_type",u"update_mask",b"update_mask"]) -> builtin___bool: ... + def ClearField(self, field_name: typing_extensions___Literal[u"relationship_type",b"relationship_type",u"update_mask",b"update_mask"]) -> None: ... type___UpdateRelationshipTypeRequest = UpdateRelationshipTypeRequest class DeleteRelationshipTypeRequest(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["name", b"name"]) -> None: ... + def __init__(self, + *, + name : typing___Optional[typing___Text] = None, + ) -> None: ... + def ClearField(self, field_name: typing_extensions___Literal[u"name",b"name"]) -> None: ... type___DeleteRelationshipTypeRequest = DeleteRelationshipTypeRequest class GetRelationshipTypeRequest(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["name", b"name"]) -> None: ... + def __init__(self, + *, + name : typing___Optional[typing___Text] = None, + ) -> None: ... + def ClearField(self, field_name: typing_extensions___Literal[u"name",b"name"]) -> None: ... type___GetRelationshipTypeRequest = GetRelationshipTypeRequest class ListRelationshipsRequest(google___protobuf___message___Message): @@ -179,64 +134,33 @@ class ListRelationshipsRequest(google___protobuf___message___Message): to_entity: typing___Text = ... page_size: builtin___int = ... page_token: typing___Text = ... - def __init__( - self, - *, - parent: typing___Optional[typing___Text] = None, - from_entity: typing___Optional[typing___Text] = None, - to_entity: typing___Optional[typing___Text] = None, - page_size: typing___Optional[builtin___int] = None, - page_token: typing___Optional[typing___Text] = None, - ) -> None: ... - def ClearField( - self, - field_name: typing_extensions___Literal[ - "from_entity", - b"from_entity", - "page_size", - b"page_size", - "page_token", - b"page_token", - "parent", - b"parent", - "to_entity", - b"to_entity", - ], - ) -> None: ... + def __init__(self, + *, + parent : typing___Optional[typing___Text] = None, + from_entity : typing___Optional[typing___Text] = None, + to_entity : typing___Optional[typing___Text] = None, + page_size : typing___Optional[builtin___int] = None, + page_token : typing___Optional[typing___Text] = None, + ) -> None: ... + def ClearField(self, field_name: typing_extensions___Literal[u"from_entity",b"from_entity",u"page_size",b"page_size",u"page_token",b"page_token",u"parent",b"parent",u"to_entity",b"to_entity"]) -> None: ... type___ListRelationshipsRequest = ListRelationshipsRequest class ListRelationshipsResponse(google___protobuf___message___Message): DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... next_page_token: typing___Text = ... total_size: builtin___int = ... + @property - def relationships( - self, - ) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[ - exabel___api___data___v1___relationship_messages_pb2___Relationship - ]: ... - def __init__( - self, - *, - relationships: typing___Optional[ - typing___Iterable[exabel___api___data___v1___relationship_messages_pb2___Relationship] - ] = None, - next_page_token: typing___Optional[typing___Text] = None, - total_size: typing___Optional[builtin___int] = None, - ) -> None: ... - def ClearField( - self, - field_name: typing_extensions___Literal[ - "next_page_token", - b"next_page_token", - "relationships", - b"relationships", - "total_size", - b"total_size", - ], - ) -> None: ... + def relationships(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[exabel___api___data___v1___relationship_messages_pb2___Relationship]: ... + def __init__(self, + *, + relationships : typing___Optional[typing___Iterable[exabel___api___data___v1___relationship_messages_pb2___Relationship]] = None, + next_page_token : typing___Optional[typing___Text] = None, + total_size : typing___Optional[builtin___int] = None, + ) -> None: ... + def ClearField(self, field_name: typing_extensions___Literal[u"next_page_token",b"next_page_token",u"relationships",b"relationships",u"total_size",b"total_size"]) -> None: ... type___ListRelationshipsResponse = ListRelationshipsResponse class GetRelationshipRequest(google___protobuf___message___Message): @@ -244,73 +168,46 @@ class GetRelationshipRequest(google___protobuf___message___Message): parent: typing___Text = ... from_entity: typing___Text = ... to_entity: typing___Text = ... - def __init__( - self, - *, - parent: typing___Optional[typing___Text] = None, - from_entity: typing___Optional[typing___Text] = None, - to_entity: typing___Optional[typing___Text] = None, - ) -> None: ... - def ClearField( - self, - field_name: typing_extensions___Literal[ - "from_entity", b"from_entity", "parent", b"parent", "to_entity", b"to_entity" - ], - ) -> None: ... + def __init__(self, + *, + parent : typing___Optional[typing___Text] = None, + from_entity : typing___Optional[typing___Text] = None, + to_entity : typing___Optional[typing___Text] = None, + ) -> None: ... + def ClearField(self, field_name: typing_extensions___Literal[u"from_entity",b"from_entity",u"parent",b"parent",u"to_entity",b"to_entity"]) -> None: ... type___GetRelationshipRequest = GetRelationshipRequest class CreateRelationshipRequest(google___protobuf___message___Message): DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... + @property - def relationship( - self, - ) -> exabel___api___data___v1___relationship_messages_pb2___Relationship: ... - def __init__( - self, - *, - relationship: typing___Optional[ - exabel___api___data___v1___relationship_messages_pb2___Relationship - ] = None, - ) -> None: ... - def HasField( - self, field_name: typing_extensions___Literal["relationship", b"relationship"] - ) -> builtin___bool: ... - def ClearField( - self, field_name: typing_extensions___Literal["relationship", b"relationship"] - ) -> None: ... + def relationship(self) -> exabel___api___data___v1___relationship_messages_pb2___Relationship: ... + def __init__(self, + *, + relationship : typing___Optional[exabel___api___data___v1___relationship_messages_pb2___Relationship] = None, + ) -> None: ... + def HasField(self, field_name: typing_extensions___Literal[u"relationship",b"relationship"]) -> builtin___bool: ... + def ClearField(self, field_name: typing_extensions___Literal[u"relationship",b"relationship"]) -> None: ... type___CreateRelationshipRequest = CreateRelationshipRequest class UpdateRelationshipRequest(google___protobuf___message___Message): DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... + @property - def relationship( - self, - ) -> exabel___api___data___v1___relationship_messages_pb2___Relationship: ... + def relationship(self) -> exabel___api___data___v1___relationship_messages_pb2___Relationship: ... + @property def update_mask(self) -> google___protobuf___field_mask_pb2___FieldMask: ... - def __init__( - self, - *, - relationship: typing___Optional[ - exabel___api___data___v1___relationship_messages_pb2___Relationship - ] = None, - update_mask: typing___Optional[google___protobuf___field_mask_pb2___FieldMask] = None, - ) -> None: ... - def HasField( - self, - field_name: typing_extensions___Literal[ - "relationship", b"relationship", "update_mask", b"update_mask" - ], - ) -> builtin___bool: ... - def ClearField( - self, - field_name: typing_extensions___Literal[ - "relationship", b"relationship", "update_mask", b"update_mask" - ], - ) -> None: ... + def __init__(self, + *, + relationship : typing___Optional[exabel___api___data___v1___relationship_messages_pb2___Relationship] = None, + update_mask : typing___Optional[google___protobuf___field_mask_pb2___FieldMask] = None, + ) -> None: ... + def HasField(self, field_name: typing_extensions___Literal[u"relationship",b"relationship",u"update_mask",b"update_mask"]) -> builtin___bool: ... + def ClearField(self, field_name: typing_extensions___Literal[u"relationship",b"relationship",u"update_mask",b"update_mask"]) -> None: ... type___UpdateRelationshipRequest = UpdateRelationshipRequest class DeleteRelationshipRequest(google___protobuf___message___Message): @@ -318,18 +215,12 @@ class DeleteRelationshipRequest(google___protobuf___message___Message): parent: typing___Text = ... from_entity: typing___Text = ... to_entity: typing___Text = ... - def __init__( - self, - *, - parent: typing___Optional[typing___Text] = None, - from_entity: typing___Optional[typing___Text] = None, - to_entity: typing___Optional[typing___Text] = None, - ) -> None: ... - def ClearField( - self, - field_name: typing_extensions___Literal[ - "from_entity", b"from_entity", "parent", b"parent", "to_entity", b"to_entity" - ], - ) -> None: ... + def __init__(self, + *, + parent : typing___Optional[typing___Text] = None, + from_entity : typing___Optional[typing___Text] = None, + to_entity : typing___Optional[typing___Text] = None, + ) -> None: ... + def ClearField(self, field_name: typing_extensions___Literal[u"from_entity",b"from_entity",u"parent",b"parent",u"to_entity",b"to_entity"]) -> None: ... type___DeleteRelationshipRequest = DeleteRelationshipRequest diff --git a/exabel_data_sdk/stubs/exabel/api/data/v1/relationship_service_pb2_grpc.py b/exabel_data_sdk/stubs/exabel/api/data/v1/relationship_service_pb2_grpc.py index 9213358..acd0aa7 100644 --- a/exabel_data_sdk/stubs/exabel/api/data/v1/relationship_service_pb2_grpc.py +++ b/exabel_data_sdk/stubs/exabel/api/data/v1/relationship_service_pb2_grpc.py @@ -1,18 +1,15 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc -from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 -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.exabel.api.data.v1 import ( - relationship_service_pb2 as exabel_dot_api_dot_data_dot_v1_dot_relationship__service__pb2, -) +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.exabel.api.data.v1 import relationship_service_pb2 as exabel_dot_api_dot_data_dot_v1_dot_relationship__service__pb2 +from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 class RelationshipServiceStub(object): - """Manages relationship types and relationships in the Data API.""" + """Manages relationship types and relationships in the Data API. + """ def __init__(self, channel): """Constructor. @@ -21,474 +18,363 @@ def __init__(self, channel): channel: A grpc.Channel. """ self.ListRelationshipTypes = channel.unary_unary( - "/exabel.api.data.v1.RelationshipService/ListRelationshipTypes", - request_serializer=exabel_dot_api_dot_data_dot_v1_dot_relationship__service__pb2.ListRelationshipTypesRequest.SerializeToString, - response_deserializer=exabel_dot_api_dot_data_dot_v1_dot_relationship__service__pb2.ListRelationshipTypesResponse.FromString, - ) + '/exabel.api.data.v1.RelationshipService/ListRelationshipTypes', + request_serializer=exabel_dot_api_dot_data_dot_v1_dot_relationship__service__pb2.ListRelationshipTypesRequest.SerializeToString, + response_deserializer=exabel_dot_api_dot_data_dot_v1_dot_relationship__service__pb2.ListRelationshipTypesResponse.FromString, + ) self.GetRelationshipType = channel.unary_unary( - "/exabel.api.data.v1.RelationshipService/GetRelationshipType", - request_serializer=exabel_dot_api_dot_data_dot_v1_dot_relationship__service__pb2.GetRelationshipTypeRequest.SerializeToString, - response_deserializer=exabel_dot_api_dot_data_dot_v1_dot_relationship__messages__pb2.RelationshipType.FromString, - ) + '/exabel.api.data.v1.RelationshipService/GetRelationshipType', + request_serializer=exabel_dot_api_dot_data_dot_v1_dot_relationship__service__pb2.GetRelationshipTypeRequest.SerializeToString, + response_deserializer=exabel_dot_api_dot_data_dot_v1_dot_relationship__messages__pb2.RelationshipType.FromString, + ) self.CreateRelationshipType = channel.unary_unary( - "/exabel.api.data.v1.RelationshipService/CreateRelationshipType", - request_serializer=exabel_dot_api_dot_data_dot_v1_dot_relationship__service__pb2.CreateRelationshipTypeRequest.SerializeToString, - response_deserializer=exabel_dot_api_dot_data_dot_v1_dot_relationship__messages__pb2.RelationshipType.FromString, - ) + '/exabel.api.data.v1.RelationshipService/CreateRelationshipType', + request_serializer=exabel_dot_api_dot_data_dot_v1_dot_relationship__service__pb2.CreateRelationshipTypeRequest.SerializeToString, + response_deserializer=exabel_dot_api_dot_data_dot_v1_dot_relationship__messages__pb2.RelationshipType.FromString, + ) self.UpdateRelationshipType = channel.unary_unary( - "/exabel.api.data.v1.RelationshipService/UpdateRelationshipType", - request_serializer=exabel_dot_api_dot_data_dot_v1_dot_relationship__service__pb2.UpdateRelationshipTypeRequest.SerializeToString, - response_deserializer=exabel_dot_api_dot_data_dot_v1_dot_relationship__messages__pb2.RelationshipType.FromString, - ) + '/exabel.api.data.v1.RelationshipService/UpdateRelationshipType', + request_serializer=exabel_dot_api_dot_data_dot_v1_dot_relationship__service__pb2.UpdateRelationshipTypeRequest.SerializeToString, + response_deserializer=exabel_dot_api_dot_data_dot_v1_dot_relationship__messages__pb2.RelationshipType.FromString, + ) self.DeleteRelationshipType = channel.unary_unary( - "/exabel.api.data.v1.RelationshipService/DeleteRelationshipType", - request_serializer=exabel_dot_api_dot_data_dot_v1_dot_relationship__service__pb2.DeleteRelationshipTypeRequest.SerializeToString, - response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, - ) + '/exabel.api.data.v1.RelationshipService/DeleteRelationshipType', + request_serializer=exabel_dot_api_dot_data_dot_v1_dot_relationship__service__pb2.DeleteRelationshipTypeRequest.SerializeToString, + response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, + ) self.ListRelationships = channel.unary_unary( - "/exabel.api.data.v1.RelationshipService/ListRelationships", - request_serializer=exabel_dot_api_dot_data_dot_v1_dot_relationship__service__pb2.ListRelationshipsRequest.SerializeToString, - response_deserializer=exabel_dot_api_dot_data_dot_v1_dot_relationship__service__pb2.ListRelationshipsResponse.FromString, - ) + '/exabel.api.data.v1.RelationshipService/ListRelationships', + request_serializer=exabel_dot_api_dot_data_dot_v1_dot_relationship__service__pb2.ListRelationshipsRequest.SerializeToString, + response_deserializer=exabel_dot_api_dot_data_dot_v1_dot_relationship__service__pb2.ListRelationshipsResponse.FromString, + ) self.GetRelationship = channel.unary_unary( - "/exabel.api.data.v1.RelationshipService/GetRelationship", - request_serializer=exabel_dot_api_dot_data_dot_v1_dot_relationship__service__pb2.GetRelationshipRequest.SerializeToString, - response_deserializer=exabel_dot_api_dot_data_dot_v1_dot_relationship__messages__pb2.Relationship.FromString, - ) + '/exabel.api.data.v1.RelationshipService/GetRelationship', + request_serializer=exabel_dot_api_dot_data_dot_v1_dot_relationship__service__pb2.GetRelationshipRequest.SerializeToString, + response_deserializer=exabel_dot_api_dot_data_dot_v1_dot_relationship__messages__pb2.Relationship.FromString, + ) self.CreateRelationship = channel.unary_unary( - "/exabel.api.data.v1.RelationshipService/CreateRelationship", - request_serializer=exabel_dot_api_dot_data_dot_v1_dot_relationship__service__pb2.CreateRelationshipRequest.SerializeToString, - response_deserializer=exabel_dot_api_dot_data_dot_v1_dot_relationship__messages__pb2.Relationship.FromString, - ) + '/exabel.api.data.v1.RelationshipService/CreateRelationship', + request_serializer=exabel_dot_api_dot_data_dot_v1_dot_relationship__service__pb2.CreateRelationshipRequest.SerializeToString, + response_deserializer=exabel_dot_api_dot_data_dot_v1_dot_relationship__messages__pb2.Relationship.FromString, + ) self.UpdateRelationship = channel.unary_unary( - "/exabel.api.data.v1.RelationshipService/UpdateRelationship", - request_serializer=exabel_dot_api_dot_data_dot_v1_dot_relationship__service__pb2.UpdateRelationshipRequest.SerializeToString, - response_deserializer=exabel_dot_api_dot_data_dot_v1_dot_relationship__messages__pb2.Relationship.FromString, - ) + '/exabel.api.data.v1.RelationshipService/UpdateRelationship', + request_serializer=exabel_dot_api_dot_data_dot_v1_dot_relationship__service__pb2.UpdateRelationshipRequest.SerializeToString, + response_deserializer=exabel_dot_api_dot_data_dot_v1_dot_relationship__messages__pb2.Relationship.FromString, + ) self.DeleteRelationship = channel.unary_unary( - "/exabel.api.data.v1.RelationshipService/DeleteRelationship", - request_serializer=exabel_dot_api_dot_data_dot_v1_dot_relationship__service__pb2.DeleteRelationshipRequest.SerializeToString, - response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, - ) + '/exabel.api.data.v1.RelationshipService/DeleteRelationship', + request_serializer=exabel_dot_api_dot_data_dot_v1_dot_relationship__service__pb2.DeleteRelationshipRequest.SerializeToString, + response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, + ) class RelationshipServiceServicer(object): - """Manages relationship types and relationships in the Data API.""" + """Manages relationship types and relationships in the Data API. + """ def ListRelationshipTypes(self, request, context): - """List all relationship types from a common catalog.""" + """List all relationship types from a common catalog. + """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details("Method not implemented!") - raise NotImplementedError("Method not implemented!") + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') def GetRelationshipType(self, request, context): - """Gets one relationship type.""" + """Gets one relationship type. + """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details("Method not implemented!") - raise NotImplementedError("Method not implemented!") + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') def CreateRelationshipType(self, request, context): - """Creates one relationship type and returns it.""" + """Creates one relationship type and returns it. + """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details("Method not implemented!") - raise NotImplementedError("Method not implemented!") + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') def UpdateRelationshipType(self, request, context): - """Updates one relationship type and returns it.""" + """Updates one relationship type and returns it. + """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details("Method not implemented!") - raise NotImplementedError("Method not implemented!") + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') def DeleteRelationshipType(self, request, context): """Deletes one relationship type. A relationship type cannot be deleted if there exist relationships having that type. """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details("Method not implemented!") - raise NotImplementedError("Method not implemented!") + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') def ListRelationships(self, request, context): - """Lists relationship for a given entity.""" + """Lists relationship for a given entity. + """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details("Method not implemented!") - raise NotImplementedError("Method not implemented!") + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') def GetRelationship(self, request, context): """Gets one relationship. TODO(nordli): This method has the same URL as ListRelationships. """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details("Method not implemented!") - raise NotImplementedError("Method not implemented!") + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') def CreateRelationship(self, request, context): - """Creates one relationship and returns it.""" + """Creates one relationship and returns it. + """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details("Method not implemented!") - raise NotImplementedError("Method not implemented!") + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') def UpdateRelationship(self, request, context): - """Updates one relationship and returns it.""" + """Updates one relationship and returns it. + """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details("Method not implemented!") - raise NotImplementedError("Method not implemented!") + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') def DeleteRelationship(self, request, context): - """Deletes one relationship.""" + """Deletes one relationship. + """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details("Method not implemented!") - raise NotImplementedError("Method not implemented!") + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') def add_RelationshipServiceServicer_to_server(servicer, server): rpc_method_handlers = { - "ListRelationshipTypes": grpc.unary_unary_rpc_method_handler( - servicer.ListRelationshipTypes, - request_deserializer=exabel_dot_api_dot_data_dot_v1_dot_relationship__service__pb2.ListRelationshipTypesRequest.FromString, - response_serializer=exabel_dot_api_dot_data_dot_v1_dot_relationship__service__pb2.ListRelationshipTypesResponse.SerializeToString, - ), - "GetRelationshipType": grpc.unary_unary_rpc_method_handler( - servicer.GetRelationshipType, - request_deserializer=exabel_dot_api_dot_data_dot_v1_dot_relationship__service__pb2.GetRelationshipTypeRequest.FromString, - response_serializer=exabel_dot_api_dot_data_dot_v1_dot_relationship__messages__pb2.RelationshipType.SerializeToString, - ), - "CreateRelationshipType": grpc.unary_unary_rpc_method_handler( - servicer.CreateRelationshipType, - request_deserializer=exabel_dot_api_dot_data_dot_v1_dot_relationship__service__pb2.CreateRelationshipTypeRequest.FromString, - response_serializer=exabel_dot_api_dot_data_dot_v1_dot_relationship__messages__pb2.RelationshipType.SerializeToString, - ), - "UpdateRelationshipType": grpc.unary_unary_rpc_method_handler( - servicer.UpdateRelationshipType, - request_deserializer=exabel_dot_api_dot_data_dot_v1_dot_relationship__service__pb2.UpdateRelationshipTypeRequest.FromString, - response_serializer=exabel_dot_api_dot_data_dot_v1_dot_relationship__messages__pb2.RelationshipType.SerializeToString, - ), - "DeleteRelationshipType": grpc.unary_unary_rpc_method_handler( - servicer.DeleteRelationshipType, - request_deserializer=exabel_dot_api_dot_data_dot_v1_dot_relationship__service__pb2.DeleteRelationshipTypeRequest.FromString, - response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, - ), - "ListRelationships": grpc.unary_unary_rpc_method_handler( - servicer.ListRelationships, - request_deserializer=exabel_dot_api_dot_data_dot_v1_dot_relationship__service__pb2.ListRelationshipsRequest.FromString, - response_serializer=exabel_dot_api_dot_data_dot_v1_dot_relationship__service__pb2.ListRelationshipsResponse.SerializeToString, - ), - "GetRelationship": grpc.unary_unary_rpc_method_handler( - servicer.GetRelationship, - request_deserializer=exabel_dot_api_dot_data_dot_v1_dot_relationship__service__pb2.GetRelationshipRequest.FromString, - response_serializer=exabel_dot_api_dot_data_dot_v1_dot_relationship__messages__pb2.Relationship.SerializeToString, - ), - "CreateRelationship": grpc.unary_unary_rpc_method_handler( - servicer.CreateRelationship, - request_deserializer=exabel_dot_api_dot_data_dot_v1_dot_relationship__service__pb2.CreateRelationshipRequest.FromString, - response_serializer=exabel_dot_api_dot_data_dot_v1_dot_relationship__messages__pb2.Relationship.SerializeToString, - ), - "UpdateRelationship": grpc.unary_unary_rpc_method_handler( - servicer.UpdateRelationship, - request_deserializer=exabel_dot_api_dot_data_dot_v1_dot_relationship__service__pb2.UpdateRelationshipRequest.FromString, - response_serializer=exabel_dot_api_dot_data_dot_v1_dot_relationship__messages__pb2.Relationship.SerializeToString, - ), - "DeleteRelationship": grpc.unary_unary_rpc_method_handler( - servicer.DeleteRelationship, - request_deserializer=exabel_dot_api_dot_data_dot_v1_dot_relationship__service__pb2.DeleteRelationshipRequest.FromString, - response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, - ), + 'ListRelationshipTypes': grpc.unary_unary_rpc_method_handler( + servicer.ListRelationshipTypes, + request_deserializer=exabel_dot_api_dot_data_dot_v1_dot_relationship__service__pb2.ListRelationshipTypesRequest.FromString, + response_serializer=exabel_dot_api_dot_data_dot_v1_dot_relationship__service__pb2.ListRelationshipTypesResponse.SerializeToString, + ), + 'GetRelationshipType': grpc.unary_unary_rpc_method_handler( + servicer.GetRelationshipType, + request_deserializer=exabel_dot_api_dot_data_dot_v1_dot_relationship__service__pb2.GetRelationshipTypeRequest.FromString, + response_serializer=exabel_dot_api_dot_data_dot_v1_dot_relationship__messages__pb2.RelationshipType.SerializeToString, + ), + 'CreateRelationshipType': grpc.unary_unary_rpc_method_handler( + servicer.CreateRelationshipType, + request_deserializer=exabel_dot_api_dot_data_dot_v1_dot_relationship__service__pb2.CreateRelationshipTypeRequest.FromString, + response_serializer=exabel_dot_api_dot_data_dot_v1_dot_relationship__messages__pb2.RelationshipType.SerializeToString, + ), + 'UpdateRelationshipType': grpc.unary_unary_rpc_method_handler( + servicer.UpdateRelationshipType, + request_deserializer=exabel_dot_api_dot_data_dot_v1_dot_relationship__service__pb2.UpdateRelationshipTypeRequest.FromString, + response_serializer=exabel_dot_api_dot_data_dot_v1_dot_relationship__messages__pb2.RelationshipType.SerializeToString, + ), + 'DeleteRelationshipType': grpc.unary_unary_rpc_method_handler( + servicer.DeleteRelationshipType, + request_deserializer=exabel_dot_api_dot_data_dot_v1_dot_relationship__service__pb2.DeleteRelationshipTypeRequest.FromString, + response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, + ), + 'ListRelationships': grpc.unary_unary_rpc_method_handler( + servicer.ListRelationships, + request_deserializer=exabel_dot_api_dot_data_dot_v1_dot_relationship__service__pb2.ListRelationshipsRequest.FromString, + response_serializer=exabel_dot_api_dot_data_dot_v1_dot_relationship__service__pb2.ListRelationshipsResponse.SerializeToString, + ), + 'GetRelationship': grpc.unary_unary_rpc_method_handler( + servicer.GetRelationship, + request_deserializer=exabel_dot_api_dot_data_dot_v1_dot_relationship__service__pb2.GetRelationshipRequest.FromString, + response_serializer=exabel_dot_api_dot_data_dot_v1_dot_relationship__messages__pb2.Relationship.SerializeToString, + ), + 'CreateRelationship': grpc.unary_unary_rpc_method_handler( + servicer.CreateRelationship, + request_deserializer=exabel_dot_api_dot_data_dot_v1_dot_relationship__service__pb2.CreateRelationshipRequest.FromString, + response_serializer=exabel_dot_api_dot_data_dot_v1_dot_relationship__messages__pb2.Relationship.SerializeToString, + ), + 'UpdateRelationship': grpc.unary_unary_rpc_method_handler( + servicer.UpdateRelationship, + request_deserializer=exabel_dot_api_dot_data_dot_v1_dot_relationship__service__pb2.UpdateRelationshipRequest.FromString, + response_serializer=exabel_dot_api_dot_data_dot_v1_dot_relationship__messages__pb2.Relationship.SerializeToString, + ), + 'DeleteRelationship': grpc.unary_unary_rpc_method_handler( + servicer.DeleteRelationship, + request_deserializer=exabel_dot_api_dot_data_dot_v1_dot_relationship__service__pb2.DeleteRelationshipRequest.FromString, + response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, + ), } generic_handler = grpc.method_handlers_generic_handler( - "exabel.api.data.v1.RelationshipService", rpc_method_handlers - ) + 'exabel.api.data.v1.RelationshipService', rpc_method_handlers) server.add_generic_rpc_handlers((generic_handler,)) -# This class is part of an EXPERIMENTAL API. + # This class is part of an EXPERIMENTAL API. class RelationshipService(object): - """Manages relationship types and relationships in the Data API.""" + """Manages relationship types and relationships in the Data API. + """ @staticmethod - def ListRelationshipTypes( - 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, + def ListRelationshipTypes(request, target, - "/exabel.api.data.v1.RelationshipService/ListRelationshipTypes", + 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.RelationshipService/ListRelationshipTypes', exabel_dot_api_dot_data_dot_v1_dot_relationship__service__pb2.ListRelationshipTypesRequest.SerializeToString, exabel_dot_api_dot_data_dot_v1_dot_relationship__service__pb2.ListRelationshipTypesResponse.FromString, - options, - channel_credentials, - insecure, - call_credentials, - compression, - wait_for_ready, - timeout, - metadata, - ) + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) @staticmethod - def GetRelationshipType( - 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, + def GetRelationshipType(request, target, - "/exabel.api.data.v1.RelationshipService/GetRelationshipType", + 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.RelationshipService/GetRelationshipType', exabel_dot_api_dot_data_dot_v1_dot_relationship__service__pb2.GetRelationshipTypeRequest.SerializeToString, exabel_dot_api_dot_data_dot_v1_dot_relationship__messages__pb2.RelationshipType.FromString, - options, - channel_credentials, - insecure, - call_credentials, - compression, - wait_for_ready, - timeout, - metadata, - ) + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) @staticmethod - def CreateRelationshipType( - 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, + def CreateRelationshipType(request, target, - "/exabel.api.data.v1.RelationshipService/CreateRelationshipType", + 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.RelationshipService/CreateRelationshipType', exabel_dot_api_dot_data_dot_v1_dot_relationship__service__pb2.CreateRelationshipTypeRequest.SerializeToString, exabel_dot_api_dot_data_dot_v1_dot_relationship__messages__pb2.RelationshipType.FromString, - options, - channel_credentials, - insecure, - call_credentials, - compression, - wait_for_ready, - timeout, - metadata, - ) + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) @staticmethod - def UpdateRelationshipType( - 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, + def UpdateRelationshipType(request, target, - "/exabel.api.data.v1.RelationshipService/UpdateRelationshipType", + 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.RelationshipService/UpdateRelationshipType', exabel_dot_api_dot_data_dot_v1_dot_relationship__service__pb2.UpdateRelationshipTypeRequest.SerializeToString, exabel_dot_api_dot_data_dot_v1_dot_relationship__messages__pb2.RelationshipType.FromString, - options, - channel_credentials, - insecure, - call_credentials, - compression, - wait_for_ready, - timeout, - metadata, - ) + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) @staticmethod - def DeleteRelationshipType( - 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, + def DeleteRelationshipType(request, target, - "/exabel.api.data.v1.RelationshipService/DeleteRelationshipType", + 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.RelationshipService/DeleteRelationshipType', exabel_dot_api_dot_data_dot_v1_dot_relationship__service__pb2.DeleteRelationshipTypeRequest.SerializeToString, google_dot_protobuf_dot_empty__pb2.Empty.FromString, - options, - channel_credentials, - insecure, - call_credentials, - compression, - wait_for_ready, - timeout, - metadata, - ) + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) @staticmethod - def ListRelationships( - 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, + def ListRelationships(request, target, - "/exabel.api.data.v1.RelationshipService/ListRelationships", + 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.RelationshipService/ListRelationships', exabel_dot_api_dot_data_dot_v1_dot_relationship__service__pb2.ListRelationshipsRequest.SerializeToString, exabel_dot_api_dot_data_dot_v1_dot_relationship__service__pb2.ListRelationshipsResponse.FromString, - options, - channel_credentials, - insecure, - call_credentials, - compression, - wait_for_ready, - timeout, - metadata, - ) + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) @staticmethod - def GetRelationship( - 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, + def GetRelationship(request, target, - "/exabel.api.data.v1.RelationshipService/GetRelationship", + 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.RelationshipService/GetRelationship', exabel_dot_api_dot_data_dot_v1_dot_relationship__service__pb2.GetRelationshipRequest.SerializeToString, exabel_dot_api_dot_data_dot_v1_dot_relationship__messages__pb2.Relationship.FromString, - options, - channel_credentials, - insecure, - call_credentials, - compression, - wait_for_ready, - timeout, - metadata, - ) + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) @staticmethod - def CreateRelationship( - 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, + def CreateRelationship(request, target, - "/exabel.api.data.v1.RelationshipService/CreateRelationship", + 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.RelationshipService/CreateRelationship', exabel_dot_api_dot_data_dot_v1_dot_relationship__service__pb2.CreateRelationshipRequest.SerializeToString, exabel_dot_api_dot_data_dot_v1_dot_relationship__messages__pb2.Relationship.FromString, - options, - channel_credentials, - insecure, - call_credentials, - compression, - wait_for_ready, - timeout, - metadata, - ) + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) @staticmethod - def UpdateRelationship( - 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, + def UpdateRelationship(request, target, - "/exabel.api.data.v1.RelationshipService/UpdateRelationship", + 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.RelationshipService/UpdateRelationship', exabel_dot_api_dot_data_dot_v1_dot_relationship__service__pb2.UpdateRelationshipRequest.SerializeToString, exabel_dot_api_dot_data_dot_v1_dot_relationship__messages__pb2.Relationship.FromString, - options, - channel_credentials, - insecure, - call_credentials, - compression, - wait_for_ready, - timeout, - metadata, - ) + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) @staticmethod - def DeleteRelationship( - 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, + def DeleteRelationship(request, target, - "/exabel.api.data.v1.RelationshipService/DeleteRelationship", + 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.RelationshipService/DeleteRelationship', exabel_dot_api_dot_data_dot_v1_dot_relationship__service__pb2.DeleteRelationshipRequest.SerializeToString, google_dot_protobuf_dot_empty__pb2.Empty.FromString, - options, - channel_credentials, - insecure, - call_credentials, - compression, - wait_for_ready, - timeout, - metadata, - ) + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) 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 a353adc..bfa9746 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 @@ -6,93 +6,71 @@ 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="exabel/api/data/v1/search_messages.proto", - package="exabel.api.data.v1", - 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', + name='exabel/api/data/v1/search_messages.proto', + package='exabel.api.data.v1', + 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' ) + + _SEARCHTERM = _descriptor.Descriptor( - name="SearchTerm", - full_name="exabel.api.data.v1.SearchTerm", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name="field", - full_name="exabel.api.data.v1.SearchTerm.field", - 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="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, - ), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax="proto3", - extension_ranges=[], - oneofs=[], - serialized_start=64, - serialized_end=106, + name='SearchTerm', + full_name='exabel.api.data.v1.SearchTerm', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='field', full_name='exabel.api.data.v1.SearchTerm.field', 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='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), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=64, + serialized_end=106, ) -DESCRIPTOR.message_types_by_name["SearchTerm"] = _SEARCHTERM +DESCRIPTOR.message_types_by_name['SearchTerm'] = _SEARCHTERM _sym_db.RegisterFileDescriptor(DESCRIPTOR) -SearchTerm = _reflection.GeneratedProtocolMessageType( - "SearchTerm", - (_message.Message,), - { - "DESCRIPTOR": _SEARCHTERM, - "__module__": "exabel.api.data.v1.search_messages_pb2" - # @@protoc_insertion_point(class_scope:exabel.api.data.v1.SearchTerm) - }, -) +SearchTerm = _reflection.GeneratedProtocolMessageType('SearchTerm', (_message.Message,), { + 'DESCRIPTOR' : _SEARCHTERM, + '__module__' : 'exabel.api.data.v1.search_messages_pb2' + # @@protoc_insertion_point(class_scope:exabel.api.data.v1.SearchTerm) + }) _sym_db.RegisterMessage(SearchTerm) diff --git a/exabel_data_sdk/stubs/exabel/api/data/v1/search_messages_pb2.pyi b/exabel_data_sdk/stubs/exabel/api/data/v1/search_messages_pb2.pyi index fb2b708..2a13783 100644 --- a/exabel_data_sdk/stubs/exabel/api/data/v1/search_messages_pb2.pyi +++ b/exabel_data_sdk/stubs/exabel/api/data/v1/search_messages_pb2.pyi @@ -20,25 +20,24 @@ 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 SearchTerm(google___protobuf___message___Message): DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... field: typing___Text = ... query: typing___Text = ... - def __init__( - self, - *, - field: typing___Optional[typing___Text] = None, - query: typing___Optional[typing___Text] = None, - ) -> None: ... - def ClearField( - self, field_name: typing_extensions___Literal["field", b"field", "query", b"query"] - ) -> None: ... + def __init__(self, + *, + field : typing___Optional[typing___Text] = None, + query : typing___Optional[typing___Text] = None, + ) -> None: ... + def ClearField(self, field_name: typing_extensions___Literal[u"field",b"field",u"query",b"query"]) -> None: ... type___SearchTerm = SearchTerm diff --git a/exabel_data_sdk/stubs/exabel/api/data/v1/search_messages_pb2_grpc.py b/exabel_data_sdk/stubs/exabel/api/data/v1/search_messages_pb2_grpc.py index 8a93939..2daafff 100644 --- a/exabel_data_sdk/stubs/exabel/api/data/v1/search_messages_pb2_grpc.py +++ b/exabel_data_sdk/stubs/exabel/api/data/v1/search_messages_pb2_grpc.py @@ -1,3 +1,4 @@ # 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/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 8aec450..89ab099 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 @@ -6,201 +6,112 @@ 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.math import ( - aggregation_pb2 as exabel_dot_api_dot_math_dot_aggregation__pb2, -) +from exabel_data_sdk.stubs.exabel.api.math import aggregation_pb2 as exabel_dot_api_dot_math_dot_aggregation__pb2 + DESCRIPTOR = _descriptor.FileDescriptor( - name="exabel/api/data/v1/signal_messages.proto", - package="exabel.api.data.v1", - 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', - dependencies=[ - exabel_dot_api_dot_math_dot_aggregation__pb2.DESCRIPTOR, - ], -) + name='exabel/api/data/v1/signal_messages.proto', + package='exabel.api.data.v1', + 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' + , + dependencies=[exabel_dot_api_dot_math_dot_aggregation__pb2.DESCRIPTOR,]) + + _SIGNAL = _descriptor.Descriptor( - name="Signal", - full_name="exabel.api.data.v1.Signal", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name="name", - full_name="exabel.api.data.v1.Signal.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=None, - 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, - 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"\030\001", - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="display_name", - full_name="exabel.api.data.v1.Signal.display_name", - 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="description", - full_name="exabel.api.data.v1.Signal.description", - 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="downsampling_method", - full_name="exabel.api.data.v1.Signal.downsampling_method", - index=4, - number=5, - type=14, - cpp_type=8, - label=1, - has_default_value=False, - default_value=0, - 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="read_only", - full_name="exabel.api.data.v1.Signal.read_only", - index=5, - number=6, - 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="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, - ), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax="proto3", - extension_ranges=[], - oneofs=[], - serialized_start=100, - serialized_end=290, + name='Signal', + full_name='exabel.api.data.v1.Signal', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='name', full_name='exabel.api.data.v1.Signal.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=None, 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, + 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'\030\001', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='display_name', full_name='exabel.api.data.v1.Signal.display_name', 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='description', full_name='exabel.api.data.v1.Signal.description', 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='downsampling_method', full_name='exabel.api.data.v1.Signal.downsampling_method', index=4, + number=5, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + 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='read_only', full_name='exabel.api.data.v1.Signal.read_only', index=5, + number=6, 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='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), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=100, + serialized_end=290, ) -_SIGNAL.fields_by_name[ - "downsampling_method" -].enum_type = exabel_dot_api_dot_math_dot_aggregation__pb2._AGGREGATION -DESCRIPTOR.message_types_by_name["Signal"] = _SIGNAL +_SIGNAL.fields_by_name['downsampling_method'].enum_type = exabel_dot_api_dot_math_dot_aggregation__pb2._AGGREGATION +DESCRIPTOR.message_types_by_name['Signal'] = _SIGNAL _sym_db.RegisterFileDescriptor(DESCRIPTOR) -Signal = _reflection.GeneratedProtocolMessageType( - "Signal", - (_message.Message,), - { - "DESCRIPTOR": _SIGNAL, - "__module__": "exabel.api.data.v1.signal_messages_pb2" - # @@protoc_insertion_point(class_scope:exabel.api.data.v1.Signal) - }, -) +Signal = _reflection.GeneratedProtocolMessageType('Signal', (_message.Message,), { + 'DESCRIPTOR' : _SIGNAL, + '__module__' : 'exabel.api.data.v1.signal_messages_pb2' + # @@protoc_insertion_point(class_scope:exabel.api.data.v1.Signal) + }) _sym_db.RegisterMessage(Signal) DESCRIPTOR._options = None -_SIGNAL.fields_by_name["entity_type"]._options = None +_SIGNAL.fields_by_name['entity_type']._options = None # @@protoc_insertion_point(module_scope) diff --git a/exabel_data_sdk/stubs/exabel/api/data/v1/signal_messages_pb2.pyi b/exabel_data_sdk/stubs/exabel/api/data/v1/signal_messages_pb2.pyi index de657d8..0f1aad4 100644 --- a/exabel_data_sdk/stubs/exabel/api/data/v1/signal_messages_pb2.pyi +++ b/exabel_data_sdk/stubs/exabel/api/data/v1/signal_messages_pb2.pyi @@ -29,11 +29,13 @@ 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 Signal(google___protobuf___message___Message): @@ -44,40 +46,17 @@ class Signal(google___protobuf___message___Message): description: typing___Text = ... downsampling_method: exabel___api___math___aggregation_pb2___AggregationValue = ... read_only: builtin___bool = ... - entity_types: google___protobuf___internal___containers___RepeatedScalarFieldContainer[ - typing___Text - ] = ... - def __init__( - self, - *, - name: typing___Optional[typing___Text] = None, - entity_type: typing___Optional[typing___Text] = None, - display_name: typing___Optional[typing___Text] = None, - description: typing___Optional[typing___Text] = None, - downsampling_method: typing___Optional[ - exabel___api___math___aggregation_pb2___AggregationValue - ] = None, - read_only: typing___Optional[builtin___bool] = None, - entity_types: typing___Optional[typing___Iterable[typing___Text]] = None, - ) -> None: ... - def ClearField( - self, - field_name: typing_extensions___Literal[ - "description", - b"description", - "display_name", - b"display_name", - "downsampling_method", - b"downsampling_method", - "entity_type", - b"entity_type", - "entity_types", - b"entity_types", - "name", - b"name", - "read_only", - b"read_only", - ], - ) -> None: ... + entity_types: google___protobuf___internal___containers___RepeatedScalarFieldContainer[typing___Text] = ... + def __init__(self, + *, + name : typing___Optional[typing___Text] = None, + entity_type : typing___Optional[typing___Text] = None, + display_name : typing___Optional[typing___Text] = None, + description : typing___Optional[typing___Text] = None, + downsampling_method : typing___Optional[exabel___api___math___aggregation_pb2___AggregationValue] = None, + read_only : typing___Optional[builtin___bool] = None, + entity_types : 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"downsampling_method",b"downsampling_method",u"entity_type",b"entity_type",u"entity_types",b"entity_types",u"name",b"name",u"read_only",b"read_only"]) -> None: ... type___Signal = Signal diff --git a/exabel_data_sdk/stubs/exabel/api/data/v1/signal_messages_pb2_grpc.py b/exabel_data_sdk/stubs/exabel/api/data/v1/signal_messages_pb2_grpc.py index 8a93939..2daafff 100644 --- a/exabel_data_sdk/stubs/exabel/api/data/v1/signal_messages_pb2_grpc.py +++ b/exabel_data_sdk/stubs/exabel/api/data/v1/signal_messages_pb2_grpc.py @@ -1,3 +1,4 @@ # 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/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 ddbaabb..abcd868 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 @@ -6,529 +6,376 @@ 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 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.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 -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 DESCRIPTOR = _descriptor.FileDescriptor( - name="exabel/api/data/v1/signal_service.proto", - package="exabel.api.data.v1", - 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', - 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, - ], -) + name='exabel/api/data/v1/signal_service.proto', + package='exabel.api.data.v1', + 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' + , + 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,]) + + _LISTSIGNALSREQUEST = _descriptor.Descriptor( - name="ListSignalsRequest", - full_name="exabel.api.data.v1.ListSignalsRequest", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name="page_size", - full_name="exabel.api.data.v1.ListSignalsRequest.page_size", - index=0, - number=1, - type=5, - cpp_type=1, - label=1, - has_default_value=False, - default_value=0, - 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="page_token", - full_name="exabel.api.data.v1.ListSignalsRequest.page_token", - 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=198, - serialized_end=257, + name='ListSignalsRequest', + full_name='exabel.api.data.v1.ListSignalsRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='page_size', full_name='exabel.api.data.v1.ListSignalsRequest.page_size', index=0, + number=1, type=5, cpp_type=1, label=1, + has_default_value=False, default_value=0, + 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='page_token', full_name='exabel.api.data.v1.ListSignalsRequest.page_token', 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=198, + serialized_end=257, ) _LISTSIGNALSRESPONSE = _descriptor.Descriptor( - name="ListSignalsResponse", - full_name="exabel.api.data.v1.ListSignalsResponse", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name="signals", - full_name="exabel.api.data.v1.ListSignalsResponse.signals", - 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="next_page_token", - full_name="exabel.api.data.v1.ListSignalsResponse.next_page_token", - 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="total_size", - full_name="exabel.api.data.v1.ListSignalsResponse.total_size", - index=2, - number=3, - type=5, - cpp_type=1, - label=1, - has_default_value=False, - default_value=0, - 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=259, - serialized_end=370, + name='ListSignalsResponse', + full_name='exabel.api.data.v1.ListSignalsResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='signals', full_name='exabel.api.data.v1.ListSignalsResponse.signals', 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='next_page_token', full_name='exabel.api.data.v1.ListSignalsResponse.next_page_token', 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='total_size', full_name='exabel.api.data.v1.ListSignalsResponse.total_size', index=2, + number=3, type=5, cpp_type=1, label=1, + has_default_value=False, default_value=0, + 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=259, + serialized_end=370, ) _GETSIGNALREQUEST = _descriptor.Descriptor( - name="GetSignalRequest", - full_name="exabel.api.data.v1.GetSignalRequest", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name="name", - full_name="exabel.api.data.v1.GetSignalRequest.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=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=372, - serialized_end=404, + name='GetSignalRequest', + full_name='exabel.api.data.v1.GetSignalRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='name', full_name='exabel.api.data.v1.GetSignalRequest.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=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=372, + serialized_end=404, ) _CREATESIGNALREQUEST = _descriptor.Descriptor( - name="CreateSignalRequest", - full_name="exabel.api.data.v1.CreateSignalRequest", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name="signal", - full_name="exabel.api.data.v1.CreateSignalRequest.signal", - 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=None, - 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, - 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=406, - serialized_end=502, + name='CreateSignalRequest', + full_name='exabel.api.data.v1.CreateSignalRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='signal', full_name='exabel.api.data.v1.CreateSignalRequest.signal', 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=None, 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, + 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=406, + serialized_end=502, ) _UPDATESIGNALREQUEST = _descriptor.Descriptor( - name="UpdateSignalRequest", - full_name="exabel.api.data.v1.UpdateSignalRequest", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name="signal", - full_name="exabel.api.data.v1.UpdateSignalRequest.signal", - 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=None, - 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, - 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=504, - serialized_end=618, + name='UpdateSignalRequest', + full_name='exabel.api.data.v1.UpdateSignalRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='signal', full_name='exabel.api.data.v1.UpdateSignalRequest.signal', 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=None, 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, + 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=504, + serialized_end=618, ) _DELETESIGNALREQUEST = _descriptor.Descriptor( - name="DeleteSignalRequest", - full_name="exabel.api.data.v1.DeleteSignalRequest", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name="name", - full_name="exabel.api.data.v1.DeleteSignalRequest.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=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=620, - serialized_end=655, + name='DeleteSignalRequest', + full_name='exabel.api.data.v1.DeleteSignalRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='name', full_name='exabel.api.data.v1.DeleteSignalRequest.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=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=620, + serialized_end=655, ) -_LISTSIGNALSRESPONSE.fields_by_name[ - "signals" -].message_type = exabel_dot_api_dot_data_dot_v1_dot_signal__messages__pb2._SIGNAL -_CREATESIGNALREQUEST.fields_by_name[ - "signal" -].message_type = exabel_dot_api_dot_data_dot_v1_dot_signal__messages__pb2._SIGNAL -_UPDATESIGNALREQUEST.fields_by_name[ - "signal" -].message_type = exabel_dot_api_dot_data_dot_v1_dot_signal__messages__pb2._SIGNAL -_UPDATESIGNALREQUEST.fields_by_name[ - "update_mask" -].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK -DESCRIPTOR.message_types_by_name["ListSignalsRequest"] = _LISTSIGNALSREQUEST -DESCRIPTOR.message_types_by_name["ListSignalsResponse"] = _LISTSIGNALSRESPONSE -DESCRIPTOR.message_types_by_name["GetSignalRequest"] = _GETSIGNALREQUEST -DESCRIPTOR.message_types_by_name["CreateSignalRequest"] = _CREATESIGNALREQUEST -DESCRIPTOR.message_types_by_name["UpdateSignalRequest"] = _UPDATESIGNALREQUEST -DESCRIPTOR.message_types_by_name["DeleteSignalRequest"] = _DELETESIGNALREQUEST +_LISTSIGNALSRESPONSE.fields_by_name['signals'].message_type = exabel_dot_api_dot_data_dot_v1_dot_signal__messages__pb2._SIGNAL +_CREATESIGNALREQUEST.fields_by_name['signal'].message_type = exabel_dot_api_dot_data_dot_v1_dot_signal__messages__pb2._SIGNAL +_UPDATESIGNALREQUEST.fields_by_name['signal'].message_type = exabel_dot_api_dot_data_dot_v1_dot_signal__messages__pb2._SIGNAL +_UPDATESIGNALREQUEST.fields_by_name['update_mask'].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK +DESCRIPTOR.message_types_by_name['ListSignalsRequest'] = _LISTSIGNALSREQUEST +DESCRIPTOR.message_types_by_name['ListSignalsResponse'] = _LISTSIGNALSRESPONSE +DESCRIPTOR.message_types_by_name['GetSignalRequest'] = _GETSIGNALREQUEST +DESCRIPTOR.message_types_by_name['CreateSignalRequest'] = _CREATESIGNALREQUEST +DESCRIPTOR.message_types_by_name['UpdateSignalRequest'] = _UPDATESIGNALREQUEST +DESCRIPTOR.message_types_by_name['DeleteSignalRequest'] = _DELETESIGNALREQUEST _sym_db.RegisterFileDescriptor(DESCRIPTOR) -ListSignalsRequest = _reflection.GeneratedProtocolMessageType( - "ListSignalsRequest", - (_message.Message,), - { - "DESCRIPTOR": _LISTSIGNALSREQUEST, - "__module__": "exabel.api.data.v1.signal_service_pb2" - # @@protoc_insertion_point(class_scope:exabel.api.data.v1.ListSignalsRequest) - }, -) +ListSignalsRequest = _reflection.GeneratedProtocolMessageType('ListSignalsRequest', (_message.Message,), { + 'DESCRIPTOR' : _LISTSIGNALSREQUEST, + '__module__' : 'exabel.api.data.v1.signal_service_pb2' + # @@protoc_insertion_point(class_scope:exabel.api.data.v1.ListSignalsRequest) + }) _sym_db.RegisterMessage(ListSignalsRequest) -ListSignalsResponse = _reflection.GeneratedProtocolMessageType( - "ListSignalsResponse", - (_message.Message,), - { - "DESCRIPTOR": _LISTSIGNALSRESPONSE, - "__module__": "exabel.api.data.v1.signal_service_pb2" - # @@protoc_insertion_point(class_scope:exabel.api.data.v1.ListSignalsResponse) - }, -) +ListSignalsResponse = _reflection.GeneratedProtocolMessageType('ListSignalsResponse', (_message.Message,), { + 'DESCRIPTOR' : _LISTSIGNALSRESPONSE, + '__module__' : 'exabel.api.data.v1.signal_service_pb2' + # @@protoc_insertion_point(class_scope:exabel.api.data.v1.ListSignalsResponse) + }) _sym_db.RegisterMessage(ListSignalsResponse) -GetSignalRequest = _reflection.GeneratedProtocolMessageType( - "GetSignalRequest", - (_message.Message,), - { - "DESCRIPTOR": _GETSIGNALREQUEST, - "__module__": "exabel.api.data.v1.signal_service_pb2" - # @@protoc_insertion_point(class_scope:exabel.api.data.v1.GetSignalRequest) - }, -) +GetSignalRequest = _reflection.GeneratedProtocolMessageType('GetSignalRequest', (_message.Message,), { + 'DESCRIPTOR' : _GETSIGNALREQUEST, + '__module__' : 'exabel.api.data.v1.signal_service_pb2' + # @@protoc_insertion_point(class_scope:exabel.api.data.v1.GetSignalRequest) + }) _sym_db.RegisterMessage(GetSignalRequest) -CreateSignalRequest = _reflection.GeneratedProtocolMessageType( - "CreateSignalRequest", - (_message.Message,), - { - "DESCRIPTOR": _CREATESIGNALREQUEST, - "__module__": "exabel.api.data.v1.signal_service_pb2" - # @@protoc_insertion_point(class_scope:exabel.api.data.v1.CreateSignalRequest) - }, -) +CreateSignalRequest = _reflection.GeneratedProtocolMessageType('CreateSignalRequest', (_message.Message,), { + 'DESCRIPTOR' : _CREATESIGNALREQUEST, + '__module__' : 'exabel.api.data.v1.signal_service_pb2' + # @@protoc_insertion_point(class_scope:exabel.api.data.v1.CreateSignalRequest) + }) _sym_db.RegisterMessage(CreateSignalRequest) -UpdateSignalRequest = _reflection.GeneratedProtocolMessageType( - "UpdateSignalRequest", - (_message.Message,), - { - "DESCRIPTOR": _UPDATESIGNALREQUEST, - "__module__": "exabel.api.data.v1.signal_service_pb2" - # @@protoc_insertion_point(class_scope:exabel.api.data.v1.UpdateSignalRequest) - }, -) +UpdateSignalRequest = _reflection.GeneratedProtocolMessageType('UpdateSignalRequest', (_message.Message,), { + 'DESCRIPTOR' : _UPDATESIGNALREQUEST, + '__module__' : 'exabel.api.data.v1.signal_service_pb2' + # @@protoc_insertion_point(class_scope:exabel.api.data.v1.UpdateSignalRequest) + }) _sym_db.RegisterMessage(UpdateSignalRequest) -DeleteSignalRequest = _reflection.GeneratedProtocolMessageType( - "DeleteSignalRequest", - (_message.Message,), - { - "DESCRIPTOR": _DELETESIGNALREQUEST, - "__module__": "exabel.api.data.v1.signal_service_pb2" - # @@protoc_insertion_point(class_scope:exabel.api.data.v1.DeleteSignalRequest) - }, -) +DeleteSignalRequest = _reflection.GeneratedProtocolMessageType('DeleteSignalRequest', (_message.Message,), { + 'DESCRIPTOR' : _DELETESIGNALREQUEST, + '__module__' : 'exabel.api.data.v1.signal_service_pb2' + # @@protoc_insertion_point(class_scope:exabel.api.data.v1.DeleteSignalRequest) + }) _sym_db.RegisterMessage(DeleteSignalRequest) DESCRIPTOR._options = None _SIGNALSERVICE = _descriptor.ServiceDescriptor( - name="SignalService", - full_name="exabel.api.data.v1.SignalService", - file=DESCRIPTOR, + name='SignalService', + full_name='exabel.api.data.v1.SignalService', + file=DESCRIPTOR, + index=0, + serialized_options=None, + create_key=_descriptor._internal_create_key, + serialized_start=658, + serialized_end=1255, + methods=[ + _descriptor.MethodDescriptor( + name='ListSignals', + full_name='exabel.api.data.v1.SignalService.ListSignals', index=0, - serialized_options=None, + containing_service=None, + input_type=_LISTSIGNALSREQUEST, + output_type=_LISTSIGNALSRESPONSE, + serialized_options=b'\202\323\344\223\002\r\022\013/v1/signals', create_key=_descriptor._internal_create_key, - serialized_start=658, - serialized_end=1255, - methods=[ - _descriptor.MethodDescriptor( - name="ListSignals", - full_name="exabel.api.data.v1.SignalService.ListSignals", - index=0, - containing_service=None, - input_type=_LISTSIGNALSREQUEST, - output_type=_LISTSIGNALSRESPONSE, - serialized_options=b"\202\323\344\223\002\r\022\013/v1/signals", - create_key=_descriptor._internal_create_key, - ), - _descriptor.MethodDescriptor( - name="GetSignal", - full_name="exabel.api.data.v1.SignalService.GetSignal", - index=1, - containing_service=None, - input_type=_GETSIGNALREQUEST, - output_type=exabel_dot_api_dot_data_dot_v1_dot_signal__messages__pb2._SIGNAL, - serialized_options=b"\202\323\344\223\002\026\022\024/v1/{name=signals/*}", - create_key=_descriptor._internal_create_key, - ), - _descriptor.MethodDescriptor( - name="CreateSignal", - full_name="exabel.api.data.v1.SignalService.CreateSignal", - index=2, - containing_service=None, - input_type=_CREATESIGNALREQUEST, - output_type=exabel_dot_api_dot_data_dot_v1_dot_signal__messages__pb2._SIGNAL, - serialized_options=b'\202\323\344\223\002\025"\013/v1/signals:\006signal', - create_key=_descriptor._internal_create_key, - ), - _descriptor.MethodDescriptor( - name="UpdateSignal", - full_name="exabel.api.data.v1.SignalService.UpdateSignal", - index=3, - containing_service=None, - input_type=_UPDATESIGNALREQUEST, - output_type=exabel_dot_api_dot_data_dot_v1_dot_signal__messages__pb2._SIGNAL, - serialized_options=b"\202\323\344\223\002%2\033/v1/{signal.name=signals/*}:\006signal", - create_key=_descriptor._internal_create_key, - ), - _descriptor.MethodDescriptor( - name="DeleteSignal", - full_name="exabel.api.data.v1.SignalService.DeleteSignal", - index=4, - containing_service=None, - input_type=_DELETESIGNALREQUEST, - output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, - serialized_options=b"\202\323\344\223\002\026*\024/v1/{name=signals/*}", - create_key=_descriptor._internal_create_key, - ), - ], -) + ), + _descriptor.MethodDescriptor( + name='GetSignal', + full_name='exabel.api.data.v1.SignalService.GetSignal', + index=1, + containing_service=None, + input_type=_GETSIGNALREQUEST, + output_type=exabel_dot_api_dot_data_dot_v1_dot_signal__messages__pb2._SIGNAL, + serialized_options=b'\202\323\344\223\002\026\022\024/v1/{name=signals/*}', + create_key=_descriptor._internal_create_key, + ), + _descriptor.MethodDescriptor( + name='CreateSignal', + full_name='exabel.api.data.v1.SignalService.CreateSignal', + index=2, + containing_service=None, + input_type=_CREATESIGNALREQUEST, + output_type=exabel_dot_api_dot_data_dot_v1_dot_signal__messages__pb2._SIGNAL, + serialized_options=b'\202\323\344\223\002\025\"\013/v1/signals:\006signal', + create_key=_descriptor._internal_create_key, + ), + _descriptor.MethodDescriptor( + name='UpdateSignal', + full_name='exabel.api.data.v1.SignalService.UpdateSignal', + index=3, + containing_service=None, + input_type=_UPDATESIGNALREQUEST, + output_type=exabel_dot_api_dot_data_dot_v1_dot_signal__messages__pb2._SIGNAL, + serialized_options=b'\202\323\344\223\002%2\033/v1/{signal.name=signals/*}:\006signal', + create_key=_descriptor._internal_create_key, + ), + _descriptor.MethodDescriptor( + name='DeleteSignal', + full_name='exabel.api.data.v1.SignalService.DeleteSignal', + index=4, + containing_service=None, + input_type=_DELETESIGNALREQUEST, + output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, + serialized_options=b'\202\323\344\223\002\026*\024/v1/{name=signals/*}', + create_key=_descriptor._internal_create_key, + ), +]) _sym_db.RegisterServiceDescriptor(_SIGNALSERVICE) -DESCRIPTOR.services_by_name["SignalService"] = _SIGNALSERVICE +DESCRIPTOR.services_by_name['SignalService'] = _SIGNALSERVICE # @@protoc_insertion_point(module_scope) diff --git a/exabel_data_sdk/stubs/exabel/api/data/v1/signal_service_pb2.pyi b/exabel_data_sdk/stubs/exabel/api/data/v1/signal_service_pb2.pyi index ff83048..07ae05c 100644 --- a/exabel_data_sdk/stubs/exabel/api/data/v1/signal_service_pb2.pyi +++ b/exabel_data_sdk/stubs/exabel/api/data/v1/signal_service_pb2.pyi @@ -33,131 +33,97 @@ 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 ListSignalsRequest(google___protobuf___message___Message): DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... page_size: builtin___int = ... page_token: typing___Text = ... - def __init__( - self, - *, - page_size: typing___Optional[builtin___int] = None, - page_token: typing___Optional[typing___Text] = None, - ) -> None: ... - def ClearField( - self, - field_name: typing_extensions___Literal[ - "page_size", b"page_size", "page_token", b"page_token" - ], - ) -> None: ... + def __init__(self, + *, + page_size : typing___Optional[builtin___int] = None, + page_token : typing___Optional[typing___Text] = None, + ) -> None: ... + def ClearField(self, field_name: typing_extensions___Literal[u"page_size",b"page_size",u"page_token",b"page_token"]) -> None: ... type___ListSignalsRequest = ListSignalsRequest class ListSignalsResponse(google___protobuf___message___Message): DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... next_page_token: typing___Text = ... total_size: builtin___int = ... + @property - def signals( - self, - ) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[ - exabel___api___data___v1___signal_messages_pb2___Signal - ]: ... - def __init__( - self, - *, - signals: typing___Optional[ - typing___Iterable[exabel___api___data___v1___signal_messages_pb2___Signal] - ] = None, - next_page_token: typing___Optional[typing___Text] = None, - total_size: typing___Optional[builtin___int] = None, - ) -> None: ... - def ClearField( - self, - field_name: typing_extensions___Literal[ - "next_page_token", - b"next_page_token", - "signals", - b"signals", - "total_size", - b"total_size", - ], - ) -> None: ... + def signals(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[exabel___api___data___v1___signal_messages_pb2___Signal]: ... + def __init__(self, + *, + signals : typing___Optional[typing___Iterable[exabel___api___data___v1___signal_messages_pb2___Signal]] = None, + next_page_token : typing___Optional[typing___Text] = None, + total_size : typing___Optional[builtin___int] = None, + ) -> None: ... + def ClearField(self, field_name: typing_extensions___Literal[u"next_page_token",b"next_page_token",u"signals",b"signals",u"total_size",b"total_size"]) -> None: ... type___ListSignalsResponse = ListSignalsResponse class GetSignalRequest(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["name", b"name"]) -> None: ... + def __init__(self, + *, + name : typing___Optional[typing___Text] = None, + ) -> None: ... + def ClearField(self, field_name: typing_extensions___Literal[u"name",b"name"]) -> None: ... type___GetSignalRequest = GetSignalRequest class CreateSignalRequest(google___protobuf___message___Message): DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... create_library_signal: builtin___bool = ... + @property def signal(self) -> exabel___api___data___v1___signal_messages_pb2___Signal: ... - def __init__( - self, - *, - signal: typing___Optional[exabel___api___data___v1___signal_messages_pb2___Signal] = None, - create_library_signal: typing___Optional[builtin___bool] = None, - ) -> None: ... - def HasField( - self, field_name: typing_extensions___Literal["signal", b"signal"] - ) -> builtin___bool: ... - def ClearField( - self, - field_name: typing_extensions___Literal[ - "create_library_signal", b"create_library_signal", "signal", b"signal" - ], - ) -> None: ... + def __init__(self, + *, + signal : typing___Optional[exabel___api___data___v1___signal_messages_pb2___Signal] = None, + create_library_signal : typing___Optional[builtin___bool] = None, + ) -> None: ... + def HasField(self, field_name: typing_extensions___Literal[u"signal",b"signal"]) -> builtin___bool: ... + def ClearField(self, field_name: typing_extensions___Literal[u"create_library_signal",b"create_library_signal",u"signal",b"signal"]) -> None: ... type___CreateSignalRequest = CreateSignalRequest class UpdateSignalRequest(google___protobuf___message___Message): DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... + @property def signal(self) -> exabel___api___data___v1___signal_messages_pb2___Signal: ... + @property def update_mask(self) -> google___protobuf___field_mask_pb2___FieldMask: ... - def __init__( - self, - *, - signal: typing___Optional[exabel___api___data___v1___signal_messages_pb2___Signal] = None, - update_mask: typing___Optional[google___protobuf___field_mask_pb2___FieldMask] = None, - ) -> None: ... - def HasField( - self, - field_name: typing_extensions___Literal["signal", b"signal", "update_mask", b"update_mask"], - ) -> builtin___bool: ... - def ClearField( - self, - field_name: typing_extensions___Literal["signal", b"signal", "update_mask", b"update_mask"], - ) -> None: ... + def __init__(self, + *, + signal : typing___Optional[exabel___api___data___v1___signal_messages_pb2___Signal] = None, + update_mask : typing___Optional[google___protobuf___field_mask_pb2___FieldMask] = None, + ) -> None: ... + def HasField(self, field_name: typing_extensions___Literal[u"signal",b"signal",u"update_mask",b"update_mask"]) -> builtin___bool: ... + def ClearField(self, field_name: typing_extensions___Literal[u"signal",b"signal",u"update_mask",b"update_mask"]) -> None: ... type___UpdateSignalRequest = UpdateSignalRequest class DeleteSignalRequest(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["name", b"name"]) -> None: ... + def __init__(self, + *, + name : typing___Optional[typing___Text] = None, + ) -> None: ... + def ClearField(self, field_name: typing_extensions___Literal[u"name",b"name"]) -> None: ... type___DeleteSignalRequest = DeleteSignalRequest diff --git a/exabel_data_sdk/stubs/exabel/api/data/v1/signal_service_pb2_grpc.py b/exabel_data_sdk/stubs/exabel/api/data/v1/signal_service_pb2_grpc.py index e9cd26a..5f09d5e 100644 --- a/exabel_data_sdk/stubs/exabel/api/data/v1/signal_service_pb2_grpc.py +++ b/exabel_data_sdk/stubs/exabel/api/data/v1/signal_service_pb2_grpc.py @@ -1,18 +1,15 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc -from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 -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.exabel.api.data.v1 import ( - signal_service_pb2 as exabel_dot_api_dot_data_dot_v1_dot_signal__service__pb2, -) +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.exabel.api.data.v1 import signal_service_pb2 as exabel_dot_api_dot_data_dot_v1_dot_signal__service__pb2 +from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 class SignalServiceStub(object): - """Manages signals in the Data API.""" + """Manages signals in the Data API. + """ def __init__(self, channel): """Constructor. @@ -21,245 +18,191 @@ def __init__(self, channel): channel: A grpc.Channel. """ self.ListSignals = channel.unary_unary( - "/exabel.api.data.v1.SignalService/ListSignals", - request_serializer=exabel_dot_api_dot_data_dot_v1_dot_signal__service__pb2.ListSignalsRequest.SerializeToString, - response_deserializer=exabel_dot_api_dot_data_dot_v1_dot_signal__service__pb2.ListSignalsResponse.FromString, - ) + '/exabel.api.data.v1.SignalService/ListSignals', + request_serializer=exabel_dot_api_dot_data_dot_v1_dot_signal__service__pb2.ListSignalsRequest.SerializeToString, + response_deserializer=exabel_dot_api_dot_data_dot_v1_dot_signal__service__pb2.ListSignalsResponse.FromString, + ) self.GetSignal = channel.unary_unary( - "/exabel.api.data.v1.SignalService/GetSignal", - request_serializer=exabel_dot_api_dot_data_dot_v1_dot_signal__service__pb2.GetSignalRequest.SerializeToString, - response_deserializer=exabel_dot_api_dot_data_dot_v1_dot_signal__messages__pb2.Signal.FromString, - ) + '/exabel.api.data.v1.SignalService/GetSignal', + request_serializer=exabel_dot_api_dot_data_dot_v1_dot_signal__service__pb2.GetSignalRequest.SerializeToString, + response_deserializer=exabel_dot_api_dot_data_dot_v1_dot_signal__messages__pb2.Signal.FromString, + ) self.CreateSignal = channel.unary_unary( - "/exabel.api.data.v1.SignalService/CreateSignal", - request_serializer=exabel_dot_api_dot_data_dot_v1_dot_signal__service__pb2.CreateSignalRequest.SerializeToString, - response_deserializer=exabel_dot_api_dot_data_dot_v1_dot_signal__messages__pb2.Signal.FromString, - ) + '/exabel.api.data.v1.SignalService/CreateSignal', + request_serializer=exabel_dot_api_dot_data_dot_v1_dot_signal__service__pb2.CreateSignalRequest.SerializeToString, + response_deserializer=exabel_dot_api_dot_data_dot_v1_dot_signal__messages__pb2.Signal.FromString, + ) self.UpdateSignal = channel.unary_unary( - "/exabel.api.data.v1.SignalService/UpdateSignal", - request_serializer=exabel_dot_api_dot_data_dot_v1_dot_signal__service__pb2.UpdateSignalRequest.SerializeToString, - response_deserializer=exabel_dot_api_dot_data_dot_v1_dot_signal__messages__pb2.Signal.FromString, - ) + '/exabel.api.data.v1.SignalService/UpdateSignal', + request_serializer=exabel_dot_api_dot_data_dot_v1_dot_signal__service__pb2.UpdateSignalRequest.SerializeToString, + response_deserializer=exabel_dot_api_dot_data_dot_v1_dot_signal__messages__pb2.Signal.FromString, + ) self.DeleteSignal = channel.unary_unary( - "/exabel.api.data.v1.SignalService/DeleteSignal", - request_serializer=exabel_dot_api_dot_data_dot_v1_dot_signal__service__pb2.DeleteSignalRequest.SerializeToString, - response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, - ) + '/exabel.api.data.v1.SignalService/DeleteSignal', + request_serializer=exabel_dot_api_dot_data_dot_v1_dot_signal__service__pb2.DeleteSignalRequest.SerializeToString, + response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, + ) class SignalServiceServicer(object): - """Manages signals in the Data API.""" + """Manages signals in the Data API. + """ def ListSignals(self, request, context): - """Lists all known signals.""" + """Lists all known signals. + """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details("Method not implemented!") - raise NotImplementedError("Method not implemented!") + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') def GetSignal(self, request, context): - """Gets one signal.""" + """Gets one signal. + """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details("Method not implemented!") - raise NotImplementedError("Method not implemented!") + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') def CreateSignal(self, request, context): - """Creates one signal and returns it.""" + """Creates one signal and returns it. + """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details("Method not implemented!") - raise NotImplementedError("Method not implemented!") + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') def UpdateSignal(self, request, context): - """Updates one signal and returns it.""" + """Updates one signal and returns it. + """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details("Method not implemented!") - raise NotImplementedError("Method not implemented!") + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') def DeleteSignal(self, request, context): - """Deletes one signal. ALL time series for this signal will also be deleted.""" + """Deletes one signal. ALL time series for this signal will also be deleted. + """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details("Method not implemented!") - raise NotImplementedError("Method not implemented!") + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') def add_SignalServiceServicer_to_server(servicer, server): rpc_method_handlers = { - "ListSignals": grpc.unary_unary_rpc_method_handler( - servicer.ListSignals, - request_deserializer=exabel_dot_api_dot_data_dot_v1_dot_signal__service__pb2.ListSignalsRequest.FromString, - response_serializer=exabel_dot_api_dot_data_dot_v1_dot_signal__service__pb2.ListSignalsResponse.SerializeToString, - ), - "GetSignal": grpc.unary_unary_rpc_method_handler( - servicer.GetSignal, - request_deserializer=exabel_dot_api_dot_data_dot_v1_dot_signal__service__pb2.GetSignalRequest.FromString, - response_serializer=exabel_dot_api_dot_data_dot_v1_dot_signal__messages__pb2.Signal.SerializeToString, - ), - "CreateSignal": grpc.unary_unary_rpc_method_handler( - servicer.CreateSignal, - request_deserializer=exabel_dot_api_dot_data_dot_v1_dot_signal__service__pb2.CreateSignalRequest.FromString, - response_serializer=exabel_dot_api_dot_data_dot_v1_dot_signal__messages__pb2.Signal.SerializeToString, - ), - "UpdateSignal": grpc.unary_unary_rpc_method_handler( - servicer.UpdateSignal, - request_deserializer=exabel_dot_api_dot_data_dot_v1_dot_signal__service__pb2.UpdateSignalRequest.FromString, - response_serializer=exabel_dot_api_dot_data_dot_v1_dot_signal__messages__pb2.Signal.SerializeToString, - ), - "DeleteSignal": grpc.unary_unary_rpc_method_handler( - servicer.DeleteSignal, - request_deserializer=exabel_dot_api_dot_data_dot_v1_dot_signal__service__pb2.DeleteSignalRequest.FromString, - response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, - ), + 'ListSignals': grpc.unary_unary_rpc_method_handler( + servicer.ListSignals, + request_deserializer=exabel_dot_api_dot_data_dot_v1_dot_signal__service__pb2.ListSignalsRequest.FromString, + response_serializer=exabel_dot_api_dot_data_dot_v1_dot_signal__service__pb2.ListSignalsResponse.SerializeToString, + ), + 'GetSignal': grpc.unary_unary_rpc_method_handler( + servicer.GetSignal, + request_deserializer=exabel_dot_api_dot_data_dot_v1_dot_signal__service__pb2.GetSignalRequest.FromString, + response_serializer=exabel_dot_api_dot_data_dot_v1_dot_signal__messages__pb2.Signal.SerializeToString, + ), + 'CreateSignal': grpc.unary_unary_rpc_method_handler( + servicer.CreateSignal, + request_deserializer=exabel_dot_api_dot_data_dot_v1_dot_signal__service__pb2.CreateSignalRequest.FromString, + response_serializer=exabel_dot_api_dot_data_dot_v1_dot_signal__messages__pb2.Signal.SerializeToString, + ), + 'UpdateSignal': grpc.unary_unary_rpc_method_handler( + servicer.UpdateSignal, + request_deserializer=exabel_dot_api_dot_data_dot_v1_dot_signal__service__pb2.UpdateSignalRequest.FromString, + response_serializer=exabel_dot_api_dot_data_dot_v1_dot_signal__messages__pb2.Signal.SerializeToString, + ), + 'DeleteSignal': grpc.unary_unary_rpc_method_handler( + servicer.DeleteSignal, + request_deserializer=exabel_dot_api_dot_data_dot_v1_dot_signal__service__pb2.DeleteSignalRequest.FromString, + response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, + ), } generic_handler = grpc.method_handlers_generic_handler( - "exabel.api.data.v1.SignalService", rpc_method_handlers - ) + 'exabel.api.data.v1.SignalService', rpc_method_handlers) server.add_generic_rpc_handlers((generic_handler,)) -# This class is part of an EXPERIMENTAL API. + # This class is part of an EXPERIMENTAL API. class SignalService(object): - """Manages signals in the Data API.""" + """Manages signals in the Data API. + """ @staticmethod - def ListSignals( - 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, + def ListSignals(request, target, - "/exabel.api.data.v1.SignalService/ListSignals", + 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.SignalService/ListSignals', exabel_dot_api_dot_data_dot_v1_dot_signal__service__pb2.ListSignalsRequest.SerializeToString, exabel_dot_api_dot_data_dot_v1_dot_signal__service__pb2.ListSignalsResponse.FromString, - options, - channel_credentials, - insecure, - call_credentials, - compression, - wait_for_ready, - timeout, - metadata, - ) + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) @staticmethod - def GetSignal( - 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, + def GetSignal(request, target, - "/exabel.api.data.v1.SignalService/GetSignal", + 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.SignalService/GetSignal', exabel_dot_api_dot_data_dot_v1_dot_signal__service__pb2.GetSignalRequest.SerializeToString, exabel_dot_api_dot_data_dot_v1_dot_signal__messages__pb2.Signal.FromString, - options, - channel_credentials, - insecure, - call_credentials, - compression, - wait_for_ready, - timeout, - metadata, - ) + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) @staticmethod - def CreateSignal( - 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, + def CreateSignal(request, target, - "/exabel.api.data.v1.SignalService/CreateSignal", + 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.SignalService/CreateSignal', exabel_dot_api_dot_data_dot_v1_dot_signal__service__pb2.CreateSignalRequest.SerializeToString, exabel_dot_api_dot_data_dot_v1_dot_signal__messages__pb2.Signal.FromString, - options, - channel_credentials, - insecure, - call_credentials, - compression, - wait_for_ready, - timeout, - metadata, - ) + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) @staticmethod - def UpdateSignal( - 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, + def UpdateSignal(request, target, - "/exabel.api.data.v1.SignalService/UpdateSignal", + 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.SignalService/UpdateSignal', exabel_dot_api_dot_data_dot_v1_dot_signal__service__pb2.UpdateSignalRequest.SerializeToString, exabel_dot_api_dot_data_dot_v1_dot_signal__messages__pb2.Signal.FromString, - options, - channel_credentials, - insecure, - call_credentials, - compression, - wait_for_ready, - timeout, - metadata, - ) + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) @staticmethod - def DeleteSignal( - 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, + def DeleteSignal(request, target, - "/exabel.api.data.v1.SignalService/DeleteSignal", + 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.SignalService/DeleteSignal', exabel_dot_api_dot_data_dot_v1_dot_signal__service__pb2.DeleteSignalRequest.SerializeToString, google_dot_protobuf_dot_empty__pb2.Empty.FromString, - options, - channel_credentials, - insecure, - call_credentials, - compression, - wait_for_ready, - timeout, - metadata, - ) + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) 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 9e3015f..013c3b4 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 @@ -6,399 +6,248 @@ 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.time import time_range_pb2 as exabel_dot_api_dot_time_dot_time__range__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 -from exabel_data_sdk.stubs.exabel.api.time import ( - time_range_pb2 as exabel_dot_api_dot_time_dot_time__range__pb2, -) DESCRIPTOR = _descriptor.FileDescriptor( - name="exabel/api/data/v1/time_series_messages.proto", - package="exabel.api.data.v1", - 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\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"m\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\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_timestamp__pb2.DESCRIPTOR, - google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR, - ], -) + name='exabel/api/data/v1/time_series_messages.proto', + package='exabel.api.data.v1', + 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\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\"m\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\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_timestamp__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,]) + + _TIMESERIES = _descriptor.Descriptor( - name="TimeSeries", - full_name="exabel.api.data.v1.TimeSeries", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name="name", - full_name="exabel.api.data.v1.TimeSeries.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=None, - 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, - 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="read_only", - full_name="exabel.api.data.v1.TimeSeries.read_only", - index=2, - number=3, - 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=168, - serialized_end=266, + name='TimeSeries', + full_name='exabel.api.data.v1.TimeSeries', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='name', full_name='exabel.api.data.v1.TimeSeries.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=None, 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, + 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='read_only', full_name='exabel.api.data.v1.TimeSeries.read_only', index=2, + number=3, 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=168, + serialized_end=266, ) _TIMESERIESPOINT = _descriptor.Descriptor( - name="TimeSeriesPoint", - full_name="exabel.api.data.v1.TimeSeriesPoint", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name="time", - full_name="exabel.api.data.v1.TimeSeriesPoint.time", - 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=None, - 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, - 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="known_time", - full_name="exabel.api.data.v1.TimeSeriesPoint.known_time", - index=2, - number=3, - 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=269, - serialized_end=421, + name='TimeSeriesPoint', + full_name='exabel.api.data.v1.TimeSeriesPoint', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='time', full_name='exabel.api.data.v1.TimeSeriesPoint.time', 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=None, 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, + 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='known_time', full_name='exabel.api.data.v1.TimeSeriesPoint.known_time', index=2, + number=3, 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=269, + serialized_end=421, ) _TIMESERIESVIEW = _descriptor.Descriptor( - name="TimeSeriesView", - full_name="exabel.api.data.v1.TimeSeriesView", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name="time_range", - full_name="exabel.api.data.v1.TimeSeriesView.time_range", - 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=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="known_time", - full_name="exabel.api.data.v1.TimeSeriesView.known_time", - 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=423, - serialized_end=535, + name='TimeSeriesView', + full_name='exabel.api.data.v1.TimeSeriesView', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='time_range', full_name='exabel.api.data.v1.TimeSeriesView.time_range', 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=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='known_time', full_name='exabel.api.data.v1.TimeSeriesView.known_time', 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=423, + serialized_end=535, ) _DEFAULTKNOWNTIME = _descriptor.Descriptor( - name="DefaultKnownTime", - full_name="exabel.api.data.v1.DefaultKnownTime", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name="current_time", - full_name="exabel.api.data.v1.DefaultKnownTime.current_time", - index=0, - number=1, - 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="known_time", - full_name="exabel.api.data.v1.DefaultKnownTime.known_time", - 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=[ - _descriptor.OneofDescriptor( - name="specification", - full_name="exabel.api.data.v1.DefaultKnownTime.specification", - index=0, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[], - ), - ], - serialized_start=537, - serialized_end=646, + name='DefaultKnownTime', + full_name='exabel.api.data.v1.DefaultKnownTime', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='current_time', full_name='exabel.api.data.v1.DefaultKnownTime.current_time', index=0, + number=1, 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='known_time', full_name='exabel.api.data.v1.DefaultKnownTime.known_time', 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=[ + _descriptor.OneofDescriptor( + name='specification', full_name='exabel.api.data.v1.DefaultKnownTime.specification', + index=0, containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[]), + ], + serialized_start=537, + serialized_end=646, ) -_TIMESERIES.fields_by_name["points"].message_type = _TIMESERIESPOINT -_TIMESERIESPOINT.fields_by_name[ - "time" -].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_TIMESERIESPOINT.fields_by_name[ - "value" -].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE -_TIMESERIESPOINT.fields_by_name[ - "known_time" -].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_TIMESERIESVIEW.fields_by_name[ - "time_range" -].message_type = exabel_dot_api_dot_time_dot_time__range__pb2._TIMERANGE -_TIMESERIESVIEW.fields_by_name[ - "known_time" -].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_DEFAULTKNOWNTIME.fields_by_name[ - "known_time" -].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_DEFAULTKNOWNTIME.oneofs_by_name["specification"].fields.append( - _DEFAULTKNOWNTIME.fields_by_name["current_time"] -) -_DEFAULTKNOWNTIME.fields_by_name[ - "current_time" -].containing_oneof = _DEFAULTKNOWNTIME.oneofs_by_name["specification"] -_DEFAULTKNOWNTIME.oneofs_by_name["specification"].fields.append( - _DEFAULTKNOWNTIME.fields_by_name["known_time"] -) -_DEFAULTKNOWNTIME.fields_by_name["known_time"].containing_oneof = _DEFAULTKNOWNTIME.oneofs_by_name[ - "specification" -] -DESCRIPTOR.message_types_by_name["TimeSeries"] = _TIMESERIES -DESCRIPTOR.message_types_by_name["TimeSeriesPoint"] = _TIMESERIESPOINT -DESCRIPTOR.message_types_by_name["TimeSeriesView"] = _TIMESERIESVIEW -DESCRIPTOR.message_types_by_name["DefaultKnownTime"] = _DEFAULTKNOWNTIME +_TIMESERIES.fields_by_name['points'].message_type = _TIMESERIESPOINT +_TIMESERIESPOINT.fields_by_name['time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_TIMESERIESPOINT.fields_by_name['value'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE +_TIMESERIESPOINT.fields_by_name['known_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_TIMESERIESVIEW.fields_by_name['time_range'].message_type = exabel_dot_api_dot_time_dot_time__range__pb2._TIMERANGE +_TIMESERIESVIEW.fields_by_name['known_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_DEFAULTKNOWNTIME.fields_by_name['known_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_DEFAULTKNOWNTIME.oneofs_by_name['specification'].fields.append( + _DEFAULTKNOWNTIME.fields_by_name['current_time']) +_DEFAULTKNOWNTIME.fields_by_name['current_time'].containing_oneof = _DEFAULTKNOWNTIME.oneofs_by_name['specification'] +_DEFAULTKNOWNTIME.oneofs_by_name['specification'].fields.append( + _DEFAULTKNOWNTIME.fields_by_name['known_time']) +_DEFAULTKNOWNTIME.fields_by_name['known_time'].containing_oneof = _DEFAULTKNOWNTIME.oneofs_by_name['specification'] +DESCRIPTOR.message_types_by_name['TimeSeries'] = _TIMESERIES +DESCRIPTOR.message_types_by_name['TimeSeriesPoint'] = _TIMESERIESPOINT +DESCRIPTOR.message_types_by_name['TimeSeriesView'] = _TIMESERIESVIEW +DESCRIPTOR.message_types_by_name['DefaultKnownTime'] = _DEFAULTKNOWNTIME _sym_db.RegisterFileDescriptor(DESCRIPTOR) -TimeSeries = _reflection.GeneratedProtocolMessageType( - "TimeSeries", - (_message.Message,), - { - "DESCRIPTOR": _TIMESERIES, - "__module__": "exabel.api.data.v1.time_series_messages_pb2" - # @@protoc_insertion_point(class_scope:exabel.api.data.v1.TimeSeries) - }, -) +TimeSeries = _reflection.GeneratedProtocolMessageType('TimeSeries', (_message.Message,), { + 'DESCRIPTOR' : _TIMESERIES, + '__module__' : 'exabel.api.data.v1.time_series_messages_pb2' + # @@protoc_insertion_point(class_scope:exabel.api.data.v1.TimeSeries) + }) _sym_db.RegisterMessage(TimeSeries) -TimeSeriesPoint = _reflection.GeneratedProtocolMessageType( - "TimeSeriesPoint", - (_message.Message,), - { - "DESCRIPTOR": _TIMESERIESPOINT, - "__module__": "exabel.api.data.v1.time_series_messages_pb2" - # @@protoc_insertion_point(class_scope:exabel.api.data.v1.TimeSeriesPoint) - }, -) +TimeSeriesPoint = _reflection.GeneratedProtocolMessageType('TimeSeriesPoint', (_message.Message,), { + 'DESCRIPTOR' : _TIMESERIESPOINT, + '__module__' : 'exabel.api.data.v1.time_series_messages_pb2' + # @@protoc_insertion_point(class_scope:exabel.api.data.v1.TimeSeriesPoint) + }) _sym_db.RegisterMessage(TimeSeriesPoint) -TimeSeriesView = _reflection.GeneratedProtocolMessageType( - "TimeSeriesView", - (_message.Message,), - { - "DESCRIPTOR": _TIMESERIESVIEW, - "__module__": "exabel.api.data.v1.time_series_messages_pb2" - # @@protoc_insertion_point(class_scope:exabel.api.data.v1.TimeSeriesView) - }, -) +TimeSeriesView = _reflection.GeneratedProtocolMessageType('TimeSeriesView', (_message.Message,), { + 'DESCRIPTOR' : _TIMESERIESVIEW, + '__module__' : 'exabel.api.data.v1.time_series_messages_pb2' + # @@protoc_insertion_point(class_scope:exabel.api.data.v1.TimeSeriesView) + }) _sym_db.RegisterMessage(TimeSeriesView) -DefaultKnownTime = _reflection.GeneratedProtocolMessageType( - "DefaultKnownTime", - (_message.Message,), - { - "DESCRIPTOR": _DEFAULTKNOWNTIME, - "__module__": "exabel.api.data.v1.time_series_messages_pb2" - # @@protoc_insertion_point(class_scope:exabel.api.data.v1.DefaultKnownTime) - }, -) +DefaultKnownTime = _reflection.GeneratedProtocolMessageType('DefaultKnownTime', (_message.Message,), { + 'DESCRIPTOR' : _DEFAULTKNOWNTIME, + '__module__' : 'exabel.api.data.v1.time_series_messages_pb2' + # @@protoc_insertion_point(class_scope:exabel.api.data.v1.DefaultKnownTime) + }) _sym_db.RegisterMessage(DefaultKnownTime) diff --git a/exabel_data_sdk/stubs/exabel/api/data/v1/time_series_messages_pb2.pyi b/exabel_data_sdk/stubs/exabel/api/data/v1/time_series_messages_pb2.pyi index bd13d05..05da7da 100644 --- a/exabel_data_sdk/stubs/exabel/api/data/v1/time_series_messages_pb2.pyi +++ b/exabel_data_sdk/stubs/exabel/api/data/v1/time_series_messages_pb2.pyi @@ -37,131 +37,85 @@ 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 TimeSeries(google___protobuf___message___Message): DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... name: typing___Text = ... read_only: builtin___bool = ... + @property - def points( - self, - ) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[ - type___TimeSeriesPoint - ]: ... - def __init__( - self, - *, - name: typing___Optional[typing___Text] = None, - points: typing___Optional[typing___Iterable[type___TimeSeriesPoint]] = None, - read_only: typing___Optional[builtin___bool] = None, - ) -> None: ... - def ClearField( - self, - field_name: typing_extensions___Literal[ - "name", b"name", "points", b"points", "read_only", b"read_only" - ], - ) -> None: ... + def points(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[type___TimeSeriesPoint]: ... + def __init__(self, + *, + name : typing___Optional[typing___Text] = None, + points : typing___Optional[typing___Iterable[type___TimeSeriesPoint]] = None, + read_only : typing___Optional[builtin___bool] = None, + ) -> None: ... + def ClearField(self, field_name: typing_extensions___Literal[u"name",b"name",u"points",b"points",u"read_only",b"read_only"]) -> None: ... type___TimeSeries = TimeSeries class TimeSeriesPoint(google___protobuf___message___Message): DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... + @property def time(self) -> google___protobuf___timestamp_pb2___Timestamp: ... + @property def value(self) -> google___protobuf___wrappers_pb2___DoubleValue: ... + @property def known_time(self) -> google___protobuf___timestamp_pb2___Timestamp: ... - def __init__( - self, - *, - time: typing___Optional[google___protobuf___timestamp_pb2___Timestamp] = None, - value: typing___Optional[google___protobuf___wrappers_pb2___DoubleValue] = None, - known_time: typing___Optional[google___protobuf___timestamp_pb2___Timestamp] = None, - ) -> None: ... - def HasField( - self, - field_name: typing_extensions___Literal[ - "known_time", b"known_time", "time", b"time", "value", b"value" - ], - ) -> builtin___bool: ... - def ClearField( - self, - field_name: typing_extensions___Literal[ - "known_time", b"known_time", "time", b"time", "value", b"value" - ], - ) -> None: ... + def __init__(self, + *, + time : typing___Optional[google___protobuf___timestamp_pb2___Timestamp] = None, + value : typing___Optional[google___protobuf___wrappers_pb2___DoubleValue] = None, + known_time : typing___Optional[google___protobuf___timestamp_pb2___Timestamp] = None, + ) -> None: ... + def HasField(self, field_name: typing_extensions___Literal[u"known_time",b"known_time",u"time",b"time",u"value",b"value"]) -> builtin___bool: ... + def ClearField(self, field_name: typing_extensions___Literal[u"known_time",b"known_time",u"time",b"time",u"value",b"value"]) -> None: ... type___TimeSeriesPoint = TimeSeriesPoint class TimeSeriesView(google___protobuf___message___Message): DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... + @property def time_range(self) -> exabel___api___time___time_range_pb2___TimeRange: ... + @property def known_time(self) -> google___protobuf___timestamp_pb2___Timestamp: ... - def __init__( - self, - *, - time_range: typing___Optional[exabel___api___time___time_range_pb2___TimeRange] = None, - known_time: typing___Optional[google___protobuf___timestamp_pb2___Timestamp] = None, - ) -> None: ... - def HasField( - self, - field_name: typing_extensions___Literal[ - "known_time", b"known_time", "time_range", b"time_range" - ], - ) -> builtin___bool: ... - def ClearField( - self, - field_name: typing_extensions___Literal[ - "known_time", b"known_time", "time_range", b"time_range" - ], - ) -> None: ... + def __init__(self, + *, + time_range : typing___Optional[exabel___api___time___time_range_pb2___TimeRange] = None, + known_time : typing___Optional[google___protobuf___timestamp_pb2___Timestamp] = None, + ) -> None: ... + def HasField(self, field_name: typing_extensions___Literal[u"known_time",b"known_time",u"time_range",b"time_range"]) -> builtin___bool: ... + def ClearField(self, field_name: typing_extensions___Literal[u"known_time",b"known_time",u"time_range",b"time_range"]) -> None: ... type___TimeSeriesView = TimeSeriesView class DefaultKnownTime(google___protobuf___message___Message): DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... current_time: builtin___bool = ... + @property def known_time(self) -> google___protobuf___timestamp_pb2___Timestamp: ... - def __init__( - self, - *, - current_time: typing___Optional[builtin___bool] = None, - known_time: typing___Optional[google___protobuf___timestamp_pb2___Timestamp] = None, - ) -> None: ... - def HasField( - self, - field_name: typing_extensions___Literal[ - "current_time", - b"current_time", - "known_time", - b"known_time", - "specification", - b"specification", - ], - ) -> builtin___bool: ... - def ClearField( - self, - field_name: typing_extensions___Literal[ - "current_time", - b"current_time", - "known_time", - b"known_time", - "specification", - b"specification", - ], - ) -> None: ... - def WhichOneof( - self, oneof_group: typing_extensions___Literal["specification", b"specification"] - ) -> typing_extensions___Literal["current_time", "known_time"]: ... + def __init__(self, + *, + current_time : typing___Optional[builtin___bool] = None, + known_time : typing___Optional[google___protobuf___timestamp_pb2___Timestamp] = None, + ) -> None: ... + def HasField(self, field_name: typing_extensions___Literal[u"current_time",b"current_time",u"known_time",b"known_time",u"specification",b"specification"]) -> builtin___bool: ... + def ClearField(self, field_name: typing_extensions___Literal[u"current_time",b"current_time",u"known_time",b"known_time",u"specification",b"specification"]) -> None: ... + def WhichOneof(self, oneof_group: typing_extensions___Literal[u"specification",b"specification"]) -> typing_extensions___Literal["current_time","known_time"]: ... type___DefaultKnownTime = DefaultKnownTime diff --git a/exabel_data_sdk/stubs/exabel/api/data/v1/time_series_messages_pb2_grpc.py b/exabel_data_sdk/stubs/exabel/api/data/v1/time_series_messages_pb2_grpc.py index 8a93939..2daafff 100644 --- a/exabel_data_sdk/stubs/exabel/api/data/v1/time_series_messages_pb2_grpc.py +++ b/exabel_data_sdk/stubs/exabel/api/data/v1/time_series_messages_pb2_grpc.py @@ -1,3 +1,4 @@ # 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/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 2fc9bfe..b5092d5 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 @@ -6,725 +6,473 @@ 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 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.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 -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 DESCRIPTOR = _descriptor.FileDescriptor( - name="exabel/api/data/v1/time_series_service.proto", - package="exabel.api.data.v1", - 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', - 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, - ], -) + name='exabel/api/data/v1/time_series_service.proto', + package='exabel.api.data.v1', + 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' + , + 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,]) + + _LISTTIMESERIESREQUEST = _descriptor.Descriptor( - name="ListTimeSeriesRequest", - full_name="exabel.api.data.v1.ListTimeSeriesRequest", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name="parent", - full_name="exabel.api.data.v1.ListTimeSeriesRequest.parent", - 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="page_size", - full_name="exabel.api.data.v1.ListTimeSeriesRequest.page_size", - index=1, - number=2, - type=5, - cpp_type=1, - label=1, - has_default_value=False, - default_value=0, - 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="page_token", - full_name="exabel.api.data.v1.ListTimeSeriesRequest.page_token", - 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, - ), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax="proto3", - extension_ranges=[], - oneofs=[], - serialized_start=208, - serialized_end=286, + name='ListTimeSeriesRequest', + full_name='exabel.api.data.v1.ListTimeSeriesRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='parent', full_name='exabel.api.data.v1.ListTimeSeriesRequest.parent', 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='page_size', full_name='exabel.api.data.v1.ListTimeSeriesRequest.page_size', index=1, + number=2, type=5, cpp_type=1, label=1, + has_default_value=False, default_value=0, + 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='page_token', full_name='exabel.api.data.v1.ListTimeSeriesRequest.page_token', 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), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=208, + serialized_end=286, ) _LISTTIMESERIESRESPONSE = _descriptor.Descriptor( - name="ListTimeSeriesResponse", - full_name="exabel.api.data.v1.ListTimeSeriesResponse", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name="time_series", - full_name="exabel.api.data.v1.ListTimeSeriesResponse.time_series", - 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="next_page_token", - full_name="exabel.api.data.v1.ListTimeSeriesResponse.next_page_token", - 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="total_size", - full_name="exabel.api.data.v1.ListTimeSeriesResponse.total_size", - index=2, - number=3, - type=5, - cpp_type=1, - label=1, - has_default_value=False, - default_value=0, - 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=288, - serialized_end=410, + name='ListTimeSeriesResponse', + full_name='exabel.api.data.v1.ListTimeSeriesResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='time_series', full_name='exabel.api.data.v1.ListTimeSeriesResponse.time_series', 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='next_page_token', full_name='exabel.api.data.v1.ListTimeSeriesResponse.next_page_token', 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='total_size', full_name='exabel.api.data.v1.ListTimeSeriesResponse.total_size', index=2, + number=3, type=5, cpp_type=1, label=1, + has_default_value=False, default_value=0, + 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=288, + serialized_end=410, ) _GETTIMESERIESREQUEST = _descriptor.Descriptor( - name="GetTimeSeriesRequest", - full_name="exabel.api.data.v1.GetTimeSeriesRequest", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name="name", - full_name="exabel.api.data.v1.GetTimeSeriesRequest.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=None, - 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, - 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=412, - serialized_end=498, + name='GetTimeSeriesRequest', + full_name='exabel.api.data.v1.GetTimeSeriesRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='name', full_name='exabel.api.data.v1.GetTimeSeriesRequest.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=None, 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, + 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=412, + serialized_end=498, ) _CREATETIMESERIESREQUEST = _descriptor.Descriptor( - name="CreateTimeSeriesRequest", - full_name="exabel.api.data.v1.CreateTimeSeriesRequest", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name="time_series", - full_name="exabel.api.data.v1.CreateTimeSeriesRequest.time_series", - 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=None, - 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, - 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="default_known_time", - full_name="exabel.api.data.v1.CreateTimeSeriesRequest.default_known_time", - index=2, - number=3, - 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="create_tag", - full_name="exabel.api.data.v1.CreateTimeSeriesRequest.create_tag", - 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, - ), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax="proto3", - extension_ranges=[], - oneofs=[], - serialized_start=501, - serialized_end=715, + name='CreateTimeSeriesRequest', + full_name='exabel.api.data.v1.CreateTimeSeriesRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='time_series', full_name='exabel.api.data.v1.CreateTimeSeriesRequest.time_series', 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=None, 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, + 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='default_known_time', full_name='exabel.api.data.v1.CreateTimeSeriesRequest.default_known_time', index=2, + number=3, 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='create_tag', full_name='exabel.api.data.v1.CreateTimeSeriesRequest.create_tag', 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), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=501, + serialized_end=715, ) _UPDATETIMESERIESREQUEST = _descriptor.Descriptor( - name="UpdateTimeSeriesRequest", - full_name="exabel.api.data.v1.UpdateTimeSeriesRequest", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name="time_series", - full_name="exabel.api.data.v1.UpdateTimeSeriesRequest.time_series", - 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=None, - 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, - 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="default_known_time", - full_name="exabel.api.data.v1.UpdateTimeSeriesRequest.default_known_time", - index=2, - number=3, - 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=718, - serialized_end=912, + name='UpdateTimeSeriesRequest', + full_name='exabel.api.data.v1.UpdateTimeSeriesRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='time_series', full_name='exabel.api.data.v1.UpdateTimeSeriesRequest.time_series', 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=None, 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, + 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='default_known_time', full_name='exabel.api.data.v1.UpdateTimeSeriesRequest.default_known_time', index=2, + number=3, 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=718, + serialized_end=912, ) _DELETETIMESERIESREQUEST = _descriptor.Descriptor( - name="DeleteTimeSeriesRequest", - full_name="exabel.api.data.v1.DeleteTimeSeriesRequest", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name="name", - full_name="exabel.api.data.v1.DeleteTimeSeriesRequest.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=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=914, - serialized_end=953, + name='DeleteTimeSeriesRequest', + full_name='exabel.api.data.v1.DeleteTimeSeriesRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='name', full_name='exabel.api.data.v1.DeleteTimeSeriesRequest.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=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=914, + serialized_end=953, ) _BATCHDELETETIMESERIESPOINTSREQUEST = _descriptor.Descriptor( - name="BatchDeleteTimeSeriesPointsRequest", - full_name="exabel.api.data.v1.BatchDeleteTimeSeriesPointsRequest", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name="name", - full_name="exabel.api.data.v1.BatchDeleteTimeSeriesPointsRequest.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=None, - 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, - 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=955, - serialized_end=1054, + name='BatchDeleteTimeSeriesPointsRequest', + full_name='exabel.api.data.v1.BatchDeleteTimeSeriesPointsRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='name', full_name='exabel.api.data.v1.BatchDeleteTimeSeriesPointsRequest.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=None, 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, + 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=955, + serialized_end=1054, ) -_LISTTIMESERIESRESPONSE.fields_by_name[ - "time_series" -].message_type = exabel_dot_api_dot_data_dot_v1_dot_time__series__messages__pb2._TIMESERIES -_GETTIMESERIESREQUEST.fields_by_name[ - "view" -].message_type = exabel_dot_api_dot_data_dot_v1_dot_time__series__messages__pb2._TIMESERIESVIEW -_CREATETIMESERIESREQUEST.fields_by_name[ - "time_series" -].message_type = exabel_dot_api_dot_data_dot_v1_dot_time__series__messages__pb2._TIMESERIES -_CREATETIMESERIESREQUEST.fields_by_name[ - "view" -].message_type = exabel_dot_api_dot_data_dot_v1_dot_time__series__messages__pb2._TIMESERIESVIEW -_CREATETIMESERIESREQUEST.fields_by_name[ - "default_known_time" -].message_type = exabel_dot_api_dot_data_dot_v1_dot_time__series__messages__pb2._DEFAULTKNOWNTIME -_UPDATETIMESERIESREQUEST.fields_by_name[ - "time_series" -].message_type = exabel_dot_api_dot_data_dot_v1_dot_time__series__messages__pb2._TIMESERIES -_UPDATETIMESERIESREQUEST.fields_by_name[ - "view" -].message_type = exabel_dot_api_dot_data_dot_v1_dot_time__series__messages__pb2._TIMESERIESVIEW -_UPDATETIMESERIESREQUEST.fields_by_name[ - "default_known_time" -].message_type = exabel_dot_api_dot_data_dot_v1_dot_time__series__messages__pb2._DEFAULTKNOWNTIME -_BATCHDELETETIMESERIESPOINTSREQUEST.fields_by_name[ - "time_ranges" -].message_type = exabel_dot_api_dot_time_dot_time__range__pb2._TIMERANGE -DESCRIPTOR.message_types_by_name["ListTimeSeriesRequest"] = _LISTTIMESERIESREQUEST -DESCRIPTOR.message_types_by_name["ListTimeSeriesResponse"] = _LISTTIMESERIESRESPONSE -DESCRIPTOR.message_types_by_name["GetTimeSeriesRequest"] = _GETTIMESERIESREQUEST -DESCRIPTOR.message_types_by_name["CreateTimeSeriesRequest"] = _CREATETIMESERIESREQUEST -DESCRIPTOR.message_types_by_name["UpdateTimeSeriesRequest"] = _UPDATETIMESERIESREQUEST -DESCRIPTOR.message_types_by_name["DeleteTimeSeriesRequest"] = _DELETETIMESERIESREQUEST -DESCRIPTOR.message_types_by_name[ - "BatchDeleteTimeSeriesPointsRequest" -] = _BATCHDELETETIMESERIESPOINTSREQUEST +_LISTTIMESERIESRESPONSE.fields_by_name['time_series'].message_type = exabel_dot_api_dot_data_dot_v1_dot_time__series__messages__pb2._TIMESERIES +_GETTIMESERIESREQUEST.fields_by_name['view'].message_type = exabel_dot_api_dot_data_dot_v1_dot_time__series__messages__pb2._TIMESERIESVIEW +_CREATETIMESERIESREQUEST.fields_by_name['time_series'].message_type = exabel_dot_api_dot_data_dot_v1_dot_time__series__messages__pb2._TIMESERIES +_CREATETIMESERIESREQUEST.fields_by_name['view'].message_type = exabel_dot_api_dot_data_dot_v1_dot_time__series__messages__pb2._TIMESERIESVIEW +_CREATETIMESERIESREQUEST.fields_by_name['default_known_time'].message_type = exabel_dot_api_dot_data_dot_v1_dot_time__series__messages__pb2._DEFAULTKNOWNTIME +_UPDATETIMESERIESREQUEST.fields_by_name['time_series'].message_type = exabel_dot_api_dot_data_dot_v1_dot_time__series__messages__pb2._TIMESERIES +_UPDATETIMESERIESREQUEST.fields_by_name['view'].message_type = exabel_dot_api_dot_data_dot_v1_dot_time__series__messages__pb2._TIMESERIESVIEW +_UPDATETIMESERIESREQUEST.fields_by_name['default_known_time'].message_type = exabel_dot_api_dot_data_dot_v1_dot_time__series__messages__pb2._DEFAULTKNOWNTIME +_BATCHDELETETIMESERIESPOINTSREQUEST.fields_by_name['time_ranges'].message_type = exabel_dot_api_dot_time_dot_time__range__pb2._TIMERANGE +DESCRIPTOR.message_types_by_name['ListTimeSeriesRequest'] = _LISTTIMESERIESREQUEST +DESCRIPTOR.message_types_by_name['ListTimeSeriesResponse'] = _LISTTIMESERIESRESPONSE +DESCRIPTOR.message_types_by_name['GetTimeSeriesRequest'] = _GETTIMESERIESREQUEST +DESCRIPTOR.message_types_by_name['CreateTimeSeriesRequest'] = _CREATETIMESERIESREQUEST +DESCRIPTOR.message_types_by_name['UpdateTimeSeriesRequest'] = _UPDATETIMESERIESREQUEST +DESCRIPTOR.message_types_by_name['DeleteTimeSeriesRequest'] = _DELETETIMESERIESREQUEST +DESCRIPTOR.message_types_by_name['BatchDeleteTimeSeriesPointsRequest'] = _BATCHDELETETIMESERIESPOINTSREQUEST _sym_db.RegisterFileDescriptor(DESCRIPTOR) -ListTimeSeriesRequest = _reflection.GeneratedProtocolMessageType( - "ListTimeSeriesRequest", - (_message.Message,), - { - "DESCRIPTOR": _LISTTIMESERIESREQUEST, - "__module__": "exabel.api.data.v1.time_series_service_pb2" - # @@protoc_insertion_point(class_scope:exabel.api.data.v1.ListTimeSeriesRequest) - }, -) +ListTimeSeriesRequest = _reflection.GeneratedProtocolMessageType('ListTimeSeriesRequest', (_message.Message,), { + 'DESCRIPTOR' : _LISTTIMESERIESREQUEST, + '__module__' : 'exabel.api.data.v1.time_series_service_pb2' + # @@protoc_insertion_point(class_scope:exabel.api.data.v1.ListTimeSeriesRequest) + }) _sym_db.RegisterMessage(ListTimeSeriesRequest) -ListTimeSeriesResponse = _reflection.GeneratedProtocolMessageType( - "ListTimeSeriesResponse", - (_message.Message,), - { - "DESCRIPTOR": _LISTTIMESERIESRESPONSE, - "__module__": "exabel.api.data.v1.time_series_service_pb2" - # @@protoc_insertion_point(class_scope:exabel.api.data.v1.ListTimeSeriesResponse) - }, -) +ListTimeSeriesResponse = _reflection.GeneratedProtocolMessageType('ListTimeSeriesResponse', (_message.Message,), { + 'DESCRIPTOR' : _LISTTIMESERIESRESPONSE, + '__module__' : 'exabel.api.data.v1.time_series_service_pb2' + # @@protoc_insertion_point(class_scope:exabel.api.data.v1.ListTimeSeriesResponse) + }) _sym_db.RegisterMessage(ListTimeSeriesResponse) -GetTimeSeriesRequest = _reflection.GeneratedProtocolMessageType( - "GetTimeSeriesRequest", - (_message.Message,), - { - "DESCRIPTOR": _GETTIMESERIESREQUEST, - "__module__": "exabel.api.data.v1.time_series_service_pb2" - # @@protoc_insertion_point(class_scope:exabel.api.data.v1.GetTimeSeriesRequest) - }, -) +GetTimeSeriesRequest = _reflection.GeneratedProtocolMessageType('GetTimeSeriesRequest', (_message.Message,), { + 'DESCRIPTOR' : _GETTIMESERIESREQUEST, + '__module__' : 'exabel.api.data.v1.time_series_service_pb2' + # @@protoc_insertion_point(class_scope:exabel.api.data.v1.GetTimeSeriesRequest) + }) _sym_db.RegisterMessage(GetTimeSeriesRequest) -CreateTimeSeriesRequest = _reflection.GeneratedProtocolMessageType( - "CreateTimeSeriesRequest", - (_message.Message,), - { - "DESCRIPTOR": _CREATETIMESERIESREQUEST, - "__module__": "exabel.api.data.v1.time_series_service_pb2" - # @@protoc_insertion_point(class_scope:exabel.api.data.v1.CreateTimeSeriesRequest) - }, -) +CreateTimeSeriesRequest = _reflection.GeneratedProtocolMessageType('CreateTimeSeriesRequest', (_message.Message,), { + 'DESCRIPTOR' : _CREATETIMESERIESREQUEST, + '__module__' : 'exabel.api.data.v1.time_series_service_pb2' + # @@protoc_insertion_point(class_scope:exabel.api.data.v1.CreateTimeSeriesRequest) + }) _sym_db.RegisterMessage(CreateTimeSeriesRequest) -UpdateTimeSeriesRequest = _reflection.GeneratedProtocolMessageType( - "UpdateTimeSeriesRequest", - (_message.Message,), - { - "DESCRIPTOR": _UPDATETIMESERIESREQUEST, - "__module__": "exabel.api.data.v1.time_series_service_pb2" - # @@protoc_insertion_point(class_scope:exabel.api.data.v1.UpdateTimeSeriesRequest) - }, -) +UpdateTimeSeriesRequest = _reflection.GeneratedProtocolMessageType('UpdateTimeSeriesRequest', (_message.Message,), { + 'DESCRIPTOR' : _UPDATETIMESERIESREQUEST, + '__module__' : 'exabel.api.data.v1.time_series_service_pb2' + # @@protoc_insertion_point(class_scope:exabel.api.data.v1.UpdateTimeSeriesRequest) + }) _sym_db.RegisterMessage(UpdateTimeSeriesRequest) -DeleteTimeSeriesRequest = _reflection.GeneratedProtocolMessageType( - "DeleteTimeSeriesRequest", - (_message.Message,), - { - "DESCRIPTOR": _DELETETIMESERIESREQUEST, - "__module__": "exabel.api.data.v1.time_series_service_pb2" - # @@protoc_insertion_point(class_scope:exabel.api.data.v1.DeleteTimeSeriesRequest) - }, -) +DeleteTimeSeriesRequest = _reflection.GeneratedProtocolMessageType('DeleteTimeSeriesRequest', (_message.Message,), { + 'DESCRIPTOR' : _DELETETIMESERIESREQUEST, + '__module__' : 'exabel.api.data.v1.time_series_service_pb2' + # @@protoc_insertion_point(class_scope:exabel.api.data.v1.DeleteTimeSeriesRequest) + }) _sym_db.RegisterMessage(DeleteTimeSeriesRequest) -BatchDeleteTimeSeriesPointsRequest = _reflection.GeneratedProtocolMessageType( - "BatchDeleteTimeSeriesPointsRequest", - (_message.Message,), - { - "DESCRIPTOR": _BATCHDELETETIMESERIESPOINTSREQUEST, - "__module__": "exabel.api.data.v1.time_series_service_pb2" - # @@protoc_insertion_point(class_scope:exabel.api.data.v1.BatchDeleteTimeSeriesPointsRequest) - }, -) +BatchDeleteTimeSeriesPointsRequest = _reflection.GeneratedProtocolMessageType('BatchDeleteTimeSeriesPointsRequest', (_message.Message,), { + 'DESCRIPTOR' : _BATCHDELETETIMESERIESPOINTSREQUEST, + '__module__' : 'exabel.api.data.v1.time_series_service_pb2' + # @@protoc_insertion_point(class_scope:exabel.api.data.v1.BatchDeleteTimeSeriesPointsRequest) + }) _sym_db.RegisterMessage(BatchDeleteTimeSeriesPointsRequest) DESCRIPTOR._options = None _TIMESERIESSERVICE = _descriptor.ServiceDescriptor( - name="TimeSeriesService", - full_name="exabel.api.data.v1.TimeSeriesService", - file=DESCRIPTOR, + name='TimeSeriesService', + full_name='exabel.api.data.v1.TimeSeriesService', + file=DESCRIPTOR, + index=0, + serialized_options=None, + create_key=_descriptor._internal_create_key, + serialized_start=1057, + serialized_end=2437, + methods=[ + _descriptor.MethodDescriptor( + name='ListTimeSeries', + full_name='exabel.api.data.v1.TimeSeriesService.ListTimeSeries', index=0, - serialized_options=None, + containing_service=None, + input_type=_LISTTIMESERIESREQUEST, + output_type=_LISTTIMESERIESRESPONSE, + serialized_options=b'\202\323\344\223\002W\0220/v1/{parent=entityTypes/*/entities/*}/timeSeriesZ#\022!/v1/{parent=signals/*}/timeSeries', create_key=_descriptor._internal_create_key, - serialized_start=1057, - serialized_end=2437, - methods=[ - _descriptor.MethodDescriptor( - name="ListTimeSeries", - full_name="exabel.api.data.v1.TimeSeriesService.ListTimeSeries", - index=0, - containing_service=None, - input_type=_LISTTIMESERIESREQUEST, - output_type=_LISTTIMESERIESRESPONSE, - serialized_options=b"\202\323\344\223\002W\0220/v1/{parent=entityTypes/*/entities/*}/timeSeriesZ#\022!/v1/{parent=signals/*}/timeSeries", - create_key=_descriptor._internal_create_key, - ), - _descriptor.MethodDescriptor( - name="GetTimeSeries", - full_name="exabel.api.data.v1.TimeSeriesService.GetTimeSeries", - index=1, - containing_service=None, - input_type=_GETTIMESERIESREQUEST, - output_type=exabel_dot_api_dot_data_dot_v1_dot_time__series__messages__pb2._TIMESERIES, - serialized_options=b"\202\323\344\223\002`\022-/v1/{name=entityTypes/*/entities/*/signals/*}Z/\022-/v1/{name=signals/*/entityTypes/*/entities/*}", - create_key=_descriptor._internal_create_key, - ), - _descriptor.MethodDescriptor( - name="CreateTimeSeries", - full_name="exabel.api.data.v1.TimeSeriesService.CreateTimeSeries", - index=2, - containing_service=None, - input_type=_CREATETIMESERIESREQUEST, - output_type=exabel_dot_api_dot_data_dot_v1_dot_time__series__messages__pb2._TIMESERIES, - serialized_options=b'\202\323\344\223\002\222\001"9/v1/{time_series.name=entityTypes/*/entities/*/signals/*}:\013time_seriesZH"9/v1/{time_series.name=signals/*/entityTypes/*/entities/*}:\013time_series', - create_key=_descriptor._internal_create_key, - ), - _descriptor.MethodDescriptor( - name="UpdateTimeSeries", - full_name="exabel.api.data.v1.TimeSeriesService.UpdateTimeSeries", - index=3, - containing_service=None, - input_type=_UPDATETIMESERIESREQUEST, - output_type=exabel_dot_api_dot_data_dot_v1_dot_time__series__messages__pb2._TIMESERIES, - serialized_options=b'\202\323\344\223\002\222\00129/v1/{time_series.name=entityTypes/*/entities/*/signals/*}:\013time_seriesZH"9/v1/{time_series.name=signals/*/entityTypes/*/entities/*}:\013time_series', - create_key=_descriptor._internal_create_key, - ), - _descriptor.MethodDescriptor( - name="DeleteTimeSeries", - full_name="exabel.api.data.v1.TimeSeriesService.DeleteTimeSeries", - index=4, - containing_service=None, - input_type=_DELETETIMESERIESREQUEST, - output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, - serialized_options=b"\202\323\344\223\002`*-/v1/{name=entityTypes/*/entities/*/signals/*}Z/*-/v1/{name=signals/*/entityTypes/*/entities/*}", - create_key=_descriptor._internal_create_key, - ), - _descriptor.MethodDescriptor( - name="BatchDeleteTimeSeriesPoints", - full_name="exabel.api.data.v1.TimeSeriesService.BatchDeleteTimeSeriesPoints", - index=5, - containing_service=None, - input_type=_BATCHDELETETIMESERIESPOINTSREQUEST, - output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, - serialized_options=b'\202\323\344\223\002\214\001"@/v1/{name=entityTypes/*/entities/*/signals/*}/points:batchDelete:\001*ZE"@/v1/{name=signals/*/entityTypes/*/entities/*}/points:batchDelete:\001*', - create_key=_descriptor._internal_create_key, - ), - ], -) + ), + _descriptor.MethodDescriptor( + name='GetTimeSeries', + full_name='exabel.api.data.v1.TimeSeriesService.GetTimeSeries', + index=1, + containing_service=None, + input_type=_GETTIMESERIESREQUEST, + output_type=exabel_dot_api_dot_data_dot_v1_dot_time__series__messages__pb2._TIMESERIES, + serialized_options=b'\202\323\344\223\002`\022-/v1/{name=entityTypes/*/entities/*/signals/*}Z/\022-/v1/{name=signals/*/entityTypes/*/entities/*}', + create_key=_descriptor._internal_create_key, + ), + _descriptor.MethodDescriptor( + name='CreateTimeSeries', + full_name='exabel.api.data.v1.TimeSeriesService.CreateTimeSeries', + index=2, + containing_service=None, + input_type=_CREATETIMESERIESREQUEST, + output_type=exabel_dot_api_dot_data_dot_v1_dot_time__series__messages__pb2._TIMESERIES, + serialized_options=b'\202\323\344\223\002\222\001\"9/v1/{time_series.name=entityTypes/*/entities/*/signals/*}:\013time_seriesZH\"9/v1/{time_series.name=signals/*/entityTypes/*/entities/*}:\013time_series', + create_key=_descriptor._internal_create_key, + ), + _descriptor.MethodDescriptor( + name='UpdateTimeSeries', + full_name='exabel.api.data.v1.TimeSeriesService.UpdateTimeSeries', + index=3, + containing_service=None, + input_type=_UPDATETIMESERIESREQUEST, + output_type=exabel_dot_api_dot_data_dot_v1_dot_time__series__messages__pb2._TIMESERIES, + serialized_options=b'\202\323\344\223\002\222\00129/v1/{time_series.name=entityTypes/*/entities/*/signals/*}:\013time_seriesZH\"9/v1/{time_series.name=signals/*/entityTypes/*/entities/*}:\013time_series', + create_key=_descriptor._internal_create_key, + ), + _descriptor.MethodDescriptor( + name='DeleteTimeSeries', + full_name='exabel.api.data.v1.TimeSeriesService.DeleteTimeSeries', + index=4, + containing_service=None, + input_type=_DELETETIMESERIESREQUEST, + output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, + serialized_options=b'\202\323\344\223\002`*-/v1/{name=entityTypes/*/entities/*/signals/*}Z/*-/v1/{name=signals/*/entityTypes/*/entities/*}', + create_key=_descriptor._internal_create_key, + ), + _descriptor.MethodDescriptor( + name='BatchDeleteTimeSeriesPoints', + full_name='exabel.api.data.v1.TimeSeriesService.BatchDeleteTimeSeriesPoints', + index=5, + containing_service=None, + input_type=_BATCHDELETETIMESERIESPOINTSREQUEST, + output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, + serialized_options=b'\202\323\344\223\002\214\001\"@/v1/{name=entityTypes/*/entities/*/signals/*}/points:batchDelete:\001*ZE\"@/v1/{name=signals/*/entityTypes/*/entities/*}/points:batchDelete:\001*', + create_key=_descriptor._internal_create_key, + ), +]) _sym_db.RegisterServiceDescriptor(_TIMESERIESSERVICE) -DESCRIPTOR.services_by_name["TimeSeriesService"] = _TIMESERIESSERVICE +DESCRIPTOR.services_by_name['TimeSeriesService'] = _TIMESERIESSERVICE # @@protoc_insertion_point(module_scope) diff --git a/exabel_data_sdk/stubs/exabel/api/data/v1/time_series_service_pb2.pyi b/exabel_data_sdk/stubs/exabel/api/data/v1/time_series_service_pb2.pyi index b0ecad0..24d959e 100644 --- a/exabel_data_sdk/stubs/exabel/api/data/v1/time_series_service_pb2.pyi +++ b/exabel_data_sdk/stubs/exabel/api/data/v1/time_series_service_pb2.pyi @@ -35,11 +35,13 @@ 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 ListTimeSeriesRequest(google___protobuf___message___Message): @@ -47,209 +49,117 @@ class ListTimeSeriesRequest(google___protobuf___message___Message): parent: typing___Text = ... page_size: builtin___int = ... page_token: typing___Text = ... - def __init__( - self, - *, - parent: typing___Optional[typing___Text] = None, - page_size: typing___Optional[builtin___int] = None, - page_token: typing___Optional[typing___Text] = None, - ) -> None: ... - def ClearField( - self, - field_name: typing_extensions___Literal[ - "page_size", b"page_size", "page_token", b"page_token", "parent", b"parent" - ], - ) -> None: ... + def __init__(self, + *, + parent : typing___Optional[typing___Text] = None, + page_size : typing___Optional[builtin___int] = None, + page_token : typing___Optional[typing___Text] = None, + ) -> None: ... + def ClearField(self, field_name: typing_extensions___Literal[u"page_size",b"page_size",u"page_token",b"page_token",u"parent",b"parent"]) -> None: ... type___ListTimeSeriesRequest = ListTimeSeriesRequest class ListTimeSeriesResponse(google___protobuf___message___Message): DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... next_page_token: typing___Text = ... total_size: builtin___int = ... + @property - def time_series( - self, - ) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[ - exabel___api___data___v1___time_series_messages_pb2___TimeSeries - ]: ... - def __init__( - self, - *, - time_series: typing___Optional[ - typing___Iterable[exabel___api___data___v1___time_series_messages_pb2___TimeSeries] - ] = None, - next_page_token: typing___Optional[typing___Text] = None, - total_size: typing___Optional[builtin___int] = None, - ) -> None: ... - def ClearField( - self, - field_name: typing_extensions___Literal[ - "next_page_token", - b"next_page_token", - "time_series", - b"time_series", - "total_size", - b"total_size", - ], - ) -> None: ... + def time_series(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[exabel___api___data___v1___time_series_messages_pb2___TimeSeries]: ... + def __init__(self, + *, + time_series : typing___Optional[typing___Iterable[exabel___api___data___v1___time_series_messages_pb2___TimeSeries]] = None, + next_page_token : typing___Optional[typing___Text] = None, + total_size : typing___Optional[builtin___int] = None, + ) -> None: ... + def ClearField(self, field_name: typing_extensions___Literal[u"next_page_token",b"next_page_token",u"time_series",b"time_series",u"total_size",b"total_size"]) -> None: ... type___ListTimeSeriesResponse = ListTimeSeriesResponse class GetTimeSeriesRequest(google___protobuf___message___Message): DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... name: typing___Text = ... + @property def view(self) -> exabel___api___data___v1___time_series_messages_pb2___TimeSeriesView: ... - def __init__( - self, - *, - name: typing___Optional[typing___Text] = None, - view: typing___Optional[ - exabel___api___data___v1___time_series_messages_pb2___TimeSeriesView - ] = None, - ) -> None: ... - def HasField( - self, field_name: typing_extensions___Literal["view", b"view"] - ) -> builtin___bool: ... - def ClearField( - self, field_name: typing_extensions___Literal["name", b"name", "view", b"view"] - ) -> None: ... + def __init__(self, + *, + name : typing___Optional[typing___Text] = None, + view : typing___Optional[exabel___api___data___v1___time_series_messages_pb2___TimeSeriesView] = None, + ) -> None: ... + def HasField(self, field_name: typing_extensions___Literal[u"view",b"view"]) -> builtin___bool: ... + def ClearField(self, field_name: typing_extensions___Literal[u"name",b"name",u"view",b"view"]) -> None: ... type___GetTimeSeriesRequest = GetTimeSeriesRequest class CreateTimeSeriesRequest(google___protobuf___message___Message): DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... create_tag: builtin___bool = ... + @property def time_series(self) -> exabel___api___data___v1___time_series_messages_pb2___TimeSeries: ... + @property def view(self) -> exabel___api___data___v1___time_series_messages_pb2___TimeSeriesView: ... + @property - def default_known_time( - self, - ) -> exabel___api___data___v1___time_series_messages_pb2___DefaultKnownTime: ... - def __init__( - self, - *, - time_series: typing___Optional[ - exabel___api___data___v1___time_series_messages_pb2___TimeSeries - ] = None, - view: typing___Optional[ - exabel___api___data___v1___time_series_messages_pb2___TimeSeriesView - ] = None, - default_known_time: typing___Optional[ - exabel___api___data___v1___time_series_messages_pb2___DefaultKnownTime - ] = None, - create_tag: typing___Optional[builtin___bool] = None, - ) -> None: ... - def HasField( - self, - field_name: typing_extensions___Literal[ - "default_known_time", - b"default_known_time", - "time_series", - b"time_series", - "view", - b"view", - ], - ) -> builtin___bool: ... - def ClearField( - self, - field_name: typing_extensions___Literal[ - "create_tag", - b"create_tag", - "default_known_time", - b"default_known_time", - "time_series", - b"time_series", - "view", - b"view", - ], - ) -> None: ... + def default_known_time(self) -> exabel___api___data___v1___time_series_messages_pb2___DefaultKnownTime: ... + def __init__(self, + *, + time_series : typing___Optional[exabel___api___data___v1___time_series_messages_pb2___TimeSeries] = None, + view : typing___Optional[exabel___api___data___v1___time_series_messages_pb2___TimeSeriesView] = None, + default_known_time : typing___Optional[exabel___api___data___v1___time_series_messages_pb2___DefaultKnownTime] = None, + create_tag : typing___Optional[builtin___bool] = None, + ) -> None: ... + def HasField(self, field_name: typing_extensions___Literal[u"default_known_time",b"default_known_time",u"time_series",b"time_series",u"view",b"view"]) -> builtin___bool: ... + def ClearField(self, field_name: typing_extensions___Literal[u"create_tag",b"create_tag",u"default_known_time",b"default_known_time",u"time_series",b"time_series",u"view",b"view"]) -> None: ... type___CreateTimeSeriesRequest = CreateTimeSeriesRequest class UpdateTimeSeriesRequest(google___protobuf___message___Message): DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... + @property def time_series(self) -> exabel___api___data___v1___time_series_messages_pb2___TimeSeries: ... + @property def view(self) -> exabel___api___data___v1___time_series_messages_pb2___TimeSeriesView: ... + @property - def default_known_time( - self, - ) -> exabel___api___data___v1___time_series_messages_pb2___DefaultKnownTime: ... - def __init__( - self, - *, - time_series: typing___Optional[ - exabel___api___data___v1___time_series_messages_pb2___TimeSeries - ] = None, - view: typing___Optional[ - exabel___api___data___v1___time_series_messages_pb2___TimeSeriesView - ] = None, - default_known_time: typing___Optional[ - exabel___api___data___v1___time_series_messages_pb2___DefaultKnownTime - ] = None, - ) -> None: ... - def HasField( - self, - field_name: typing_extensions___Literal[ - "default_known_time", - b"default_known_time", - "time_series", - b"time_series", - "view", - b"view", - ], - ) -> builtin___bool: ... - def ClearField( - self, - field_name: typing_extensions___Literal[ - "default_known_time", - b"default_known_time", - "time_series", - b"time_series", - "view", - b"view", - ], - ) -> None: ... + def default_known_time(self) -> exabel___api___data___v1___time_series_messages_pb2___DefaultKnownTime: ... + def __init__(self, + *, + time_series : typing___Optional[exabel___api___data___v1___time_series_messages_pb2___TimeSeries] = None, + view : typing___Optional[exabel___api___data___v1___time_series_messages_pb2___TimeSeriesView] = None, + default_known_time : typing___Optional[exabel___api___data___v1___time_series_messages_pb2___DefaultKnownTime] = None, + ) -> None: ... + def HasField(self, field_name: typing_extensions___Literal[u"default_known_time",b"default_known_time",u"time_series",b"time_series",u"view",b"view"]) -> builtin___bool: ... + def ClearField(self, field_name: typing_extensions___Literal[u"default_known_time",b"default_known_time",u"time_series",b"time_series",u"view",b"view"]) -> None: ... type___UpdateTimeSeriesRequest = UpdateTimeSeriesRequest class DeleteTimeSeriesRequest(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["name", b"name"]) -> None: ... + def __init__(self, + *, + name : typing___Optional[typing___Text] = None, + ) -> None: ... + def ClearField(self, field_name: typing_extensions___Literal[u"name",b"name"]) -> None: ... type___DeleteTimeSeriesRequest = DeleteTimeSeriesRequest class BatchDeleteTimeSeriesPointsRequest(google___protobuf___message___Message): DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... name: typing___Text = ... + @property - def time_ranges( - self, - ) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[ - exabel___api___time___time_range_pb2___TimeRange - ]: ... - def __init__( - self, - *, - name: typing___Optional[typing___Text] = None, - time_ranges: typing___Optional[ - typing___Iterable[exabel___api___time___time_range_pb2___TimeRange] - ] = None, - ) -> None: ... - def ClearField( - self, - field_name: typing_extensions___Literal["name", b"name", "time_ranges", b"time_ranges"], - ) -> None: ... + def time_ranges(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[exabel___api___time___time_range_pb2___TimeRange]: ... + def __init__(self, + *, + name : typing___Optional[typing___Text] = None, + time_ranges : typing___Optional[typing___Iterable[exabel___api___time___time_range_pb2___TimeRange]] = None, + ) -> None: ... + def ClearField(self, field_name: typing_extensions___Literal[u"name",b"name",u"time_ranges",b"time_ranges"]) -> None: ... type___BatchDeleteTimeSeriesPointsRequest = BatchDeleteTimeSeriesPointsRequest diff --git a/exabel_data_sdk/stubs/exabel/api/data/v1/time_series_service_pb2_grpc.py b/exabel_data_sdk/stubs/exabel/api/data/v1/time_series_service_pb2_grpc.py index a0d3d61..530df53 100644 --- a/exabel_data_sdk/stubs/exabel/api/data/v1/time_series_service_pb2_grpc.py +++ b/exabel_data_sdk/stubs/exabel/api/data/v1/time_series_service_pb2_grpc.py @@ -1,18 +1,15 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc -from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 -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.data.v1 import ( - time_series_service_pb2 as exabel_dot_api_dot_data_dot_v1_dot_time__series__service__pb2, -) +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.data.v1 import time_series_service_pb2 as exabel_dot_api_dot_data_dot_v1_dot_time__series__service__pb2 +from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 class TimeSeriesServiceStub(object): - """Manages time series in the Data API.""" + """Manages time series in the Data API. + """ def __init__(self, channel): """Constructor. @@ -21,45 +18,47 @@ def __init__(self, channel): channel: A grpc.Channel. """ self.ListTimeSeries = channel.unary_unary( - "/exabel.api.data.v1.TimeSeriesService/ListTimeSeries", - request_serializer=exabel_dot_api_dot_data_dot_v1_dot_time__series__service__pb2.ListTimeSeriesRequest.SerializeToString, - response_deserializer=exabel_dot_api_dot_data_dot_v1_dot_time__series__service__pb2.ListTimeSeriesResponse.FromString, - ) + '/exabel.api.data.v1.TimeSeriesService/ListTimeSeries', + request_serializer=exabel_dot_api_dot_data_dot_v1_dot_time__series__service__pb2.ListTimeSeriesRequest.SerializeToString, + response_deserializer=exabel_dot_api_dot_data_dot_v1_dot_time__series__service__pb2.ListTimeSeriesResponse.FromString, + ) self.GetTimeSeries = channel.unary_unary( - "/exabel.api.data.v1.TimeSeriesService/GetTimeSeries", - request_serializer=exabel_dot_api_dot_data_dot_v1_dot_time__series__service__pb2.GetTimeSeriesRequest.SerializeToString, - response_deserializer=exabel_dot_api_dot_data_dot_v1_dot_time__series__messages__pb2.TimeSeries.FromString, - ) + '/exabel.api.data.v1.TimeSeriesService/GetTimeSeries', + request_serializer=exabel_dot_api_dot_data_dot_v1_dot_time__series__service__pb2.GetTimeSeriesRequest.SerializeToString, + response_deserializer=exabel_dot_api_dot_data_dot_v1_dot_time__series__messages__pb2.TimeSeries.FromString, + ) self.CreateTimeSeries = channel.unary_unary( - "/exabel.api.data.v1.TimeSeriesService/CreateTimeSeries", - request_serializer=exabel_dot_api_dot_data_dot_v1_dot_time__series__service__pb2.CreateTimeSeriesRequest.SerializeToString, - response_deserializer=exabel_dot_api_dot_data_dot_v1_dot_time__series__messages__pb2.TimeSeries.FromString, - ) + '/exabel.api.data.v1.TimeSeriesService/CreateTimeSeries', + request_serializer=exabel_dot_api_dot_data_dot_v1_dot_time__series__service__pb2.CreateTimeSeriesRequest.SerializeToString, + response_deserializer=exabel_dot_api_dot_data_dot_v1_dot_time__series__messages__pb2.TimeSeries.FromString, + ) self.UpdateTimeSeries = channel.unary_unary( - "/exabel.api.data.v1.TimeSeriesService/UpdateTimeSeries", - request_serializer=exabel_dot_api_dot_data_dot_v1_dot_time__series__service__pb2.UpdateTimeSeriesRequest.SerializeToString, - response_deserializer=exabel_dot_api_dot_data_dot_v1_dot_time__series__messages__pb2.TimeSeries.FromString, - ) + '/exabel.api.data.v1.TimeSeriesService/UpdateTimeSeries', + request_serializer=exabel_dot_api_dot_data_dot_v1_dot_time__series__service__pb2.UpdateTimeSeriesRequest.SerializeToString, + response_deserializer=exabel_dot_api_dot_data_dot_v1_dot_time__series__messages__pb2.TimeSeries.FromString, + ) self.DeleteTimeSeries = channel.unary_unary( - "/exabel.api.data.v1.TimeSeriesService/DeleteTimeSeries", - request_serializer=exabel_dot_api_dot_data_dot_v1_dot_time__series__service__pb2.DeleteTimeSeriesRequest.SerializeToString, - response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, - ) + '/exabel.api.data.v1.TimeSeriesService/DeleteTimeSeries', + request_serializer=exabel_dot_api_dot_data_dot_v1_dot_time__series__service__pb2.DeleteTimeSeriesRequest.SerializeToString, + response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, + ) self.BatchDeleteTimeSeriesPoints = channel.unary_unary( - "/exabel.api.data.v1.TimeSeriesService/BatchDeleteTimeSeriesPoints", - request_serializer=exabel_dot_api_dot_data_dot_v1_dot_time__series__service__pb2.BatchDeleteTimeSeriesPointsRequest.SerializeToString, - response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, - ) + '/exabel.api.data.v1.TimeSeriesService/BatchDeleteTimeSeriesPoints', + request_serializer=exabel_dot_api_dot_data_dot_v1_dot_time__series__service__pb2.BatchDeleteTimeSeriesPointsRequest.SerializeToString, + response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, + ) class TimeSeriesServiceServicer(object): - """Manages time series in the Data API.""" + """Manages time series in the Data API. + """ def ListTimeSeries(self, request, context): - """Lists all time series for one entity or for one signal. Only the names are returned.""" + """Lists all time series for one entity or for one signal. Only the names are returned. + """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details("Method not implemented!") - raise NotImplementedError("Method not implemented!") + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') def GetTimeSeries(self, request, context): """Gets one time series. The known_time (of present) must be formatted @@ -67,28 +66,30 @@ def GetTimeSeries(self, request, context): https://developers.google.com/protocol-buffers/docs/proto3#json. """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details("Method not implemented!") - raise NotImplementedError("Method not implemented!") + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') def CreateTimeSeries(self, request, context): - """Creates one time series and returns it.""" + """Creates one time series and returns it. + """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details("Method not implemented!") - raise NotImplementedError("Method not implemented!") + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') def UpdateTimeSeries(self, request, context): """Updates one time series and returns it. The data in this request and the existing data will be merged together. """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details("Method not implemented!") - raise NotImplementedError("Method not implemented!") + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') def DeleteTimeSeries(self, request, context): - """Deletes one time series. The time series and all its points will be deleted.""" + """Deletes one time series. The time series and all its points will be deleted. + """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details("Method not implemented!") - raise NotImplementedError("Method not implemented!") + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') def BatchDeleteTimeSeriesPoints(self, request, context): """Deletes part(s) of one time series. The requested points will be deleted, but the time series @@ -96,223 +97,151 @@ def BatchDeleteTimeSeriesPoints(self, request, context): the time series itself. """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details("Method not implemented!") - raise NotImplementedError("Method not implemented!") + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') def add_TimeSeriesServiceServicer_to_server(servicer, server): rpc_method_handlers = { - "ListTimeSeries": grpc.unary_unary_rpc_method_handler( - servicer.ListTimeSeries, - request_deserializer=exabel_dot_api_dot_data_dot_v1_dot_time__series__service__pb2.ListTimeSeriesRequest.FromString, - response_serializer=exabel_dot_api_dot_data_dot_v1_dot_time__series__service__pb2.ListTimeSeriesResponse.SerializeToString, - ), - "GetTimeSeries": grpc.unary_unary_rpc_method_handler( - servicer.GetTimeSeries, - request_deserializer=exabel_dot_api_dot_data_dot_v1_dot_time__series__service__pb2.GetTimeSeriesRequest.FromString, - response_serializer=exabel_dot_api_dot_data_dot_v1_dot_time__series__messages__pb2.TimeSeries.SerializeToString, - ), - "CreateTimeSeries": grpc.unary_unary_rpc_method_handler( - servicer.CreateTimeSeries, - request_deserializer=exabel_dot_api_dot_data_dot_v1_dot_time__series__service__pb2.CreateTimeSeriesRequest.FromString, - response_serializer=exabel_dot_api_dot_data_dot_v1_dot_time__series__messages__pb2.TimeSeries.SerializeToString, - ), - "UpdateTimeSeries": grpc.unary_unary_rpc_method_handler( - servicer.UpdateTimeSeries, - request_deserializer=exabel_dot_api_dot_data_dot_v1_dot_time__series__service__pb2.UpdateTimeSeriesRequest.FromString, - response_serializer=exabel_dot_api_dot_data_dot_v1_dot_time__series__messages__pb2.TimeSeries.SerializeToString, - ), - "DeleteTimeSeries": grpc.unary_unary_rpc_method_handler( - servicer.DeleteTimeSeries, - request_deserializer=exabel_dot_api_dot_data_dot_v1_dot_time__series__service__pb2.DeleteTimeSeriesRequest.FromString, - response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, - ), - "BatchDeleteTimeSeriesPoints": grpc.unary_unary_rpc_method_handler( - servicer.BatchDeleteTimeSeriesPoints, - request_deserializer=exabel_dot_api_dot_data_dot_v1_dot_time__series__service__pb2.BatchDeleteTimeSeriesPointsRequest.FromString, - response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, - ), + 'ListTimeSeries': grpc.unary_unary_rpc_method_handler( + servicer.ListTimeSeries, + request_deserializer=exabel_dot_api_dot_data_dot_v1_dot_time__series__service__pb2.ListTimeSeriesRequest.FromString, + response_serializer=exabel_dot_api_dot_data_dot_v1_dot_time__series__service__pb2.ListTimeSeriesResponse.SerializeToString, + ), + 'GetTimeSeries': grpc.unary_unary_rpc_method_handler( + servicer.GetTimeSeries, + request_deserializer=exabel_dot_api_dot_data_dot_v1_dot_time__series__service__pb2.GetTimeSeriesRequest.FromString, + response_serializer=exabel_dot_api_dot_data_dot_v1_dot_time__series__messages__pb2.TimeSeries.SerializeToString, + ), + 'CreateTimeSeries': grpc.unary_unary_rpc_method_handler( + servicer.CreateTimeSeries, + request_deserializer=exabel_dot_api_dot_data_dot_v1_dot_time__series__service__pb2.CreateTimeSeriesRequest.FromString, + response_serializer=exabel_dot_api_dot_data_dot_v1_dot_time__series__messages__pb2.TimeSeries.SerializeToString, + ), + 'UpdateTimeSeries': grpc.unary_unary_rpc_method_handler( + servicer.UpdateTimeSeries, + request_deserializer=exabel_dot_api_dot_data_dot_v1_dot_time__series__service__pb2.UpdateTimeSeriesRequest.FromString, + response_serializer=exabel_dot_api_dot_data_dot_v1_dot_time__series__messages__pb2.TimeSeries.SerializeToString, + ), + 'DeleteTimeSeries': grpc.unary_unary_rpc_method_handler( + servicer.DeleteTimeSeries, + request_deserializer=exabel_dot_api_dot_data_dot_v1_dot_time__series__service__pb2.DeleteTimeSeriesRequest.FromString, + response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, + ), + 'BatchDeleteTimeSeriesPoints': grpc.unary_unary_rpc_method_handler( + servicer.BatchDeleteTimeSeriesPoints, + request_deserializer=exabel_dot_api_dot_data_dot_v1_dot_time__series__service__pb2.BatchDeleteTimeSeriesPointsRequest.FromString, + response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, + ), } generic_handler = grpc.method_handlers_generic_handler( - "exabel.api.data.v1.TimeSeriesService", rpc_method_handlers - ) + 'exabel.api.data.v1.TimeSeriesService', rpc_method_handlers) server.add_generic_rpc_handlers((generic_handler,)) -# This class is part of an EXPERIMENTAL API. + # This class is part of an EXPERIMENTAL API. class TimeSeriesService(object): - """Manages time series in the Data API.""" + """Manages time series in the Data API. + """ @staticmethod - def ListTimeSeries( - 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, + def ListTimeSeries(request, target, - "/exabel.api.data.v1.TimeSeriesService/ListTimeSeries", + 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.TimeSeriesService/ListTimeSeries', exabel_dot_api_dot_data_dot_v1_dot_time__series__service__pb2.ListTimeSeriesRequest.SerializeToString, exabel_dot_api_dot_data_dot_v1_dot_time__series__service__pb2.ListTimeSeriesResponse.FromString, - options, - channel_credentials, - insecure, - call_credentials, - compression, - wait_for_ready, - timeout, - metadata, - ) + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) @staticmethod - def GetTimeSeries( - 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, + def GetTimeSeries(request, target, - "/exabel.api.data.v1.TimeSeriesService/GetTimeSeries", + 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.TimeSeriesService/GetTimeSeries', exabel_dot_api_dot_data_dot_v1_dot_time__series__service__pb2.GetTimeSeriesRequest.SerializeToString, exabel_dot_api_dot_data_dot_v1_dot_time__series__messages__pb2.TimeSeries.FromString, - options, - channel_credentials, - insecure, - call_credentials, - compression, - wait_for_ready, - timeout, - metadata, - ) + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) @staticmethod - def CreateTimeSeries( - 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, + def CreateTimeSeries(request, target, - "/exabel.api.data.v1.TimeSeriesService/CreateTimeSeries", + 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.TimeSeriesService/CreateTimeSeries', exabel_dot_api_dot_data_dot_v1_dot_time__series__service__pb2.CreateTimeSeriesRequest.SerializeToString, exabel_dot_api_dot_data_dot_v1_dot_time__series__messages__pb2.TimeSeries.FromString, - options, - channel_credentials, - insecure, - call_credentials, - compression, - wait_for_ready, - timeout, - metadata, - ) + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) @staticmethod - def UpdateTimeSeries( - 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, + def UpdateTimeSeries(request, target, - "/exabel.api.data.v1.TimeSeriesService/UpdateTimeSeries", + 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.TimeSeriesService/UpdateTimeSeries', exabel_dot_api_dot_data_dot_v1_dot_time__series__service__pb2.UpdateTimeSeriesRequest.SerializeToString, exabel_dot_api_dot_data_dot_v1_dot_time__series__messages__pb2.TimeSeries.FromString, - options, - channel_credentials, - insecure, - call_credentials, - compression, - wait_for_ready, - timeout, - metadata, - ) + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) @staticmethod - def DeleteTimeSeries( - 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, + def DeleteTimeSeries(request, target, - "/exabel.api.data.v1.TimeSeriesService/DeleteTimeSeries", + 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.TimeSeriesService/DeleteTimeSeries', exabel_dot_api_dot_data_dot_v1_dot_time__series__service__pb2.DeleteTimeSeriesRequest.SerializeToString, google_dot_protobuf_dot_empty__pb2.Empty.FromString, - options, - channel_credentials, - insecure, - call_credentials, - compression, - wait_for_ready, - timeout, - metadata, - ) + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) @staticmethod - def BatchDeleteTimeSeriesPoints( - 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, + def BatchDeleteTimeSeriesPoints(request, target, - "/exabel.api.data.v1.TimeSeriesService/BatchDeleteTimeSeriesPoints", + 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.TimeSeriesService/BatchDeleteTimeSeriesPoints', exabel_dot_api_dot_data_dot_v1_dot_time__series__service__pb2.BatchDeleteTimeSeriesPointsRequest.SerializeToString, google_dot_protobuf_dot_empty__pb2.Empty.FromString, - options, - channel_credentials, - insecure, - call_credentials, - compression, - wait_for_ready, - timeout, - metadata, - ) + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/exabel_data_sdk/stubs/exabel/api/math/aggregation_pb2.py b/exabel_data_sdk/stubs/exabel/api/math/aggregation_pb2.py index eec7f2d..0080344 100644 --- a/exabel_data_sdk/stubs/exabel/api/math/aggregation_pb2.py +++ b/exabel_data_sdk/stubs/exabel/api/math/aggregation_pb2.py @@ -2,94 +2,74 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # source: exabel/api/math/aggregation.proto """Generated protocol buffer code.""" +from google.protobuf.internal import enum_type_wrapper 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 -from google.protobuf.internal import enum_type_wrapper - # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() + + DESCRIPTOR = _descriptor.FileDescriptor( - name="exabel/api/math/aggregation.proto", - package="exabel.api.math", - syntax="proto3", - serialized_options=b"\n\023com.exabel.api.mathB\020AggregationProtoP\001", - create_key=_descriptor._internal_create_key, - serialized_pb=b"\n!exabel/api/math/aggregation.proto\x12\x0f\x65xabel.api.math*`\n\x0b\x41ggregation\x12\x17\n\x13\x41GGREGATION_INVALID\x10\x00\x12\x08\n\x04MEAN\x10\x01\x12\t\n\x05\x46IRST\x10\x02\x12\x08\n\x04LAST\x10\x03\x12\x07\n\x03SUM\x10\x04\x12\x07\n\x03MIN\x10\x05\x12\x07\n\x03MAX\x10\x06\x42)\n\x13\x63om.exabel.api.mathB\x10\x41ggregationProtoP\x01\x62\x06proto3", + name='exabel/api/math/aggregation.proto', + package='exabel.api.math', + syntax='proto3', + serialized_options=b'\n\023com.exabel.api.mathB\020AggregationProtoP\001', + create_key=_descriptor._internal_create_key, + serialized_pb=b'\n!exabel/api/math/aggregation.proto\x12\x0f\x65xabel.api.math*`\n\x0b\x41ggregation\x12\x17\n\x13\x41GGREGATION_INVALID\x10\x00\x12\x08\n\x04MEAN\x10\x01\x12\t\n\x05\x46IRST\x10\x02\x12\x08\n\x04LAST\x10\x03\x12\x07\n\x03SUM\x10\x04\x12\x07\n\x03MIN\x10\x05\x12\x07\n\x03MAX\x10\x06\x42)\n\x13\x63om.exabel.api.mathB\x10\x41ggregationProtoP\x01\x62\x06proto3' ) _AGGREGATION = _descriptor.EnumDescriptor( - name="Aggregation", - full_name="exabel.api.math.Aggregation", - filename=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - values=[ - _descriptor.EnumValueDescriptor( - name="AGGREGATION_INVALID", - index=0, - number=0, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.EnumValueDescriptor( - name="MEAN", - index=1, - number=1, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.EnumValueDescriptor( - name="FIRST", - index=2, - number=2, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.EnumValueDescriptor( - name="LAST", - index=3, - number=3, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.EnumValueDescriptor( - name="SUM", - index=4, - number=4, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.EnumValueDescriptor( - name="MIN", - index=5, - number=5, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.EnumValueDescriptor( - name="MAX", - index=6, - number=6, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key, - ), - ], - containing_type=None, - serialized_options=None, - serialized_start=54, - serialized_end=150, + name='Aggregation', + full_name='exabel.api.math.Aggregation', + filename=None, + file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, + values=[ + _descriptor.EnumValueDescriptor( + name='AGGREGATION_INVALID', index=0, number=0, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key), + _descriptor.EnumValueDescriptor( + name='MEAN', index=1, number=1, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key), + _descriptor.EnumValueDescriptor( + name='FIRST', index=2, number=2, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key), + _descriptor.EnumValueDescriptor( + name='LAST', index=3, number=3, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key), + _descriptor.EnumValueDescriptor( + name='SUM', index=4, number=4, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key), + _descriptor.EnumValueDescriptor( + name='MIN', index=5, number=5, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key), + _descriptor.EnumValueDescriptor( + name='MAX', index=6, number=6, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key), + ], + containing_type=None, + serialized_options=None, + serialized_start=54, + serialized_end=150, ) _sym_db.RegisterEnumDescriptor(_AGGREGATION) @@ -103,7 +83,7 @@ MAX = 6 -DESCRIPTOR.enum_types_by_name["Aggregation"] = _AGGREGATION +DESCRIPTOR.enum_types_by_name['Aggregation'] = _AGGREGATION _sym_db.RegisterFileDescriptor(DESCRIPTOR) diff --git a/exabel_data_sdk/stubs/exabel/api/math/aggregation_pb2.pyi b/exabel_data_sdk/stubs/exabel/api/math/aggregation_pb2.pyi index 4cd4c31..90557d9 100644 --- a/exabel_data_sdk/stubs/exabel/api/math/aggregation_pb2.pyi +++ b/exabel_data_sdk/stubs/exabel/api/math/aggregation_pb2.pyi @@ -20,17 +20,16 @@ from typing import ( cast as typing___cast, ) + builtin___int = int + DESCRIPTOR: google___protobuf___descriptor___FileDescriptor = ... -AggregationValue = typing___NewType("AggregationValue", builtin___int) +AggregationValue = typing___NewType('AggregationValue', builtin___int) type___AggregationValue = AggregationValue Aggregation: _Aggregation - -class _Aggregation( - google___protobuf___internal___enum_type_wrapper____EnumTypeWrapper[AggregationValue] -): +class _Aggregation(google___protobuf___internal___enum_type_wrapper____EnumTypeWrapper[AggregationValue]): DESCRIPTOR: google___protobuf___descriptor___EnumDescriptor = ... AGGREGATION_INVALID = typing___cast(AggregationValue, 0) MEAN = typing___cast(AggregationValue, 1) @@ -39,7 +38,6 @@ class _Aggregation( SUM = typing___cast(AggregationValue, 4) MIN = typing___cast(AggregationValue, 5) MAX = typing___cast(AggregationValue, 6) - AGGREGATION_INVALID = typing___cast(AggregationValue, 0) MEAN = typing___cast(AggregationValue, 1) FIRST = typing___cast(AggregationValue, 2) diff --git a/exabel_data_sdk/stubs/exabel/api/math/aggregation_pb2_grpc.py b/exabel_data_sdk/stubs/exabel/api/math/aggregation_pb2_grpc.py index 8a93939..2daafff 100644 --- a/exabel_data_sdk/stubs/exabel/api/math/aggregation_pb2_grpc.py +++ b/exabel_data_sdk/stubs/exabel/api/math/aggregation_pb2_grpc.py @@ -1,3 +1,4 @@ # 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/exabel_data_sdk/stubs/exabel/api/time/__init__.py b/exabel_data_sdk/stubs/exabel/api/time/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/exabel_data_sdk/stubs/exabel/api/time/time_range_pb2.py b/exabel_data_sdk/stubs/exabel/api/time/time_range_pb2.py index 18f5a46..cf7f030 100644 --- a/exabel_data_sdk/stubs/exabel/api/time/time_range_pb2.py +++ b/exabel_data_sdk/stubs/exabel/api/time/time_range_pb2.py @@ -6,7 +6,6 @@ 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() @@ -14,134 +13,82 @@ from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 + DESCRIPTOR = _descriptor.FileDescriptor( - name="exabel/api/time/time_range.proto", - package="exabel.api.time", - syntax="proto3", - serialized_options=b"\n\023com.exabel.api.timeB\016TimeRangeProtoP\001", - create_key=_descriptor._internal_create_key, - serialized_pb=b"\n exabel/api/time/time_range.proto\x12\x0f\x65xabel.api.time\x1a\x1fgoogle/protobuf/timestamp.proto\"\x91\x01\n\tTimeRange\x12-\n\tfrom_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x14\n\x0c\x65xclude_from\x18\x02 \x01(\x08\x12+\n\x07to_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x12\n\ninclude_to\x18\x04 \x01(\x08\x42'\n\x13\x63om.exabel.api.timeB\x0eTimeRangeProtoP\x01\x62\x06proto3", - dependencies=[ - google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR, - ], -) + name='exabel/api/time/time_range.proto', + package='exabel.api.time', + syntax='proto3', + serialized_options=b'\n\023com.exabel.api.timeB\016TimeRangeProtoP\001', + create_key=_descriptor._internal_create_key, + serialized_pb=b'\n exabel/api/time/time_range.proto\x12\x0f\x65xabel.api.time\x1a\x1fgoogle/protobuf/timestamp.proto\"\x91\x01\n\tTimeRange\x12-\n\tfrom_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x14\n\x0c\x65xclude_from\x18\x02 \x01(\x08\x12+\n\x07to_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x12\n\ninclude_to\x18\x04 \x01(\x08\x42\'\n\x13\x63om.exabel.api.timeB\x0eTimeRangeProtoP\x01\x62\x06proto3' + , + dependencies=[google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR,]) + + _TIMERANGE = _descriptor.Descriptor( - name="TimeRange", - full_name="exabel.api.time.TimeRange", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name="from_time", - full_name="exabel.api.time.TimeRange.from_time", - 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=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="exclude_from", - full_name="exabel.api.time.TimeRange.exclude_from", - 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, - ), - _descriptor.FieldDescriptor( - name="to_time", - full_name="exabel.api.time.TimeRange.to_time", - index=2, - number=3, - 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="include_to", - full_name="exabel.api.time.TimeRange.include_to", - 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, - ), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax="proto3", - extension_ranges=[], - oneofs=[], - serialized_start=87, - serialized_end=232, + name='TimeRange', + full_name='exabel.api.time.TimeRange', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='from_time', full_name='exabel.api.time.TimeRange.from_time', 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=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='exclude_from', full_name='exabel.api.time.TimeRange.exclude_from', 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), + _descriptor.FieldDescriptor( + name='to_time', full_name='exabel.api.time.TimeRange.to_time', index=2, + number=3, 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='include_to', full_name='exabel.api.time.TimeRange.include_to', 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), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=87, + serialized_end=232, ) -_TIMERANGE.fields_by_name[ - "from_time" -].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_TIMERANGE.fields_by_name[ - "to_time" -].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -DESCRIPTOR.message_types_by_name["TimeRange"] = _TIMERANGE +_TIMERANGE.fields_by_name['from_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_TIMERANGE.fields_by_name['to_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +DESCRIPTOR.message_types_by_name['TimeRange'] = _TIMERANGE _sym_db.RegisterFileDescriptor(DESCRIPTOR) -TimeRange = _reflection.GeneratedProtocolMessageType( - "TimeRange", - (_message.Message,), - { - "DESCRIPTOR": _TIMERANGE, - "__module__": "exabel.api.time.time_range_pb2" - # @@protoc_insertion_point(class_scope:exabel.api.time.TimeRange) - }, -) +TimeRange = _reflection.GeneratedProtocolMessageType('TimeRange', (_message.Message,), { + 'DESCRIPTOR' : _TIMERANGE, + '__module__' : 'exabel.api.time.time_range_pb2' + # @@protoc_insertion_point(class_scope:exabel.api.time.TimeRange) + }) _sym_db.RegisterMessage(TimeRange) diff --git a/exabel_data_sdk/stubs/exabel/api/time/time_range_pb2.pyi b/exabel_data_sdk/stubs/exabel/api/time/time_range_pb2.pyi index 7030772..e70c91b 100644 --- a/exabel_data_sdk/stubs/exabel/api/time/time_range_pb2.pyi +++ b/exabel_data_sdk/stubs/exabel/api/time/time_range_pb2.pyi @@ -23,45 +23,33 @@ 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 TimeRange(google___protobuf___message___Message): DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... exclude_from: builtin___bool = ... include_to: builtin___bool = ... + @property def from_time(self) -> google___protobuf___timestamp_pb2___Timestamp: ... + @property def to_time(self) -> google___protobuf___timestamp_pb2___Timestamp: ... - def __init__( - self, - *, - from_time: typing___Optional[google___protobuf___timestamp_pb2___Timestamp] = None, - exclude_from: typing___Optional[builtin___bool] = None, - to_time: typing___Optional[google___protobuf___timestamp_pb2___Timestamp] = None, - include_to: typing___Optional[builtin___bool] = None, - ) -> None: ... - def HasField( - self, - field_name: typing_extensions___Literal["from_time", b"from_time", "to_time", b"to_time"], - ) -> builtin___bool: ... - def ClearField( - self, - field_name: typing_extensions___Literal[ - "exclude_from", - b"exclude_from", - "from_time", - b"from_time", - "include_to", - b"include_to", - "to_time", - b"to_time", - ], - ) -> None: ... + def __init__(self, + *, + from_time : typing___Optional[google___protobuf___timestamp_pb2___Timestamp] = None, + exclude_from : typing___Optional[builtin___bool] = None, + to_time : typing___Optional[google___protobuf___timestamp_pb2___Timestamp] = None, + include_to : typing___Optional[builtin___bool] = None, + ) -> None: ... + def HasField(self, field_name: typing_extensions___Literal[u"from_time",b"from_time",u"to_time",b"to_time"]) -> builtin___bool: ... + def ClearField(self, field_name: typing_extensions___Literal[u"exclude_from",b"exclude_from",u"from_time",b"from_time",u"include_to",b"include_to",u"to_time",b"to_time"]) -> None: ... type___TimeRange = TimeRange diff --git a/exabel_data_sdk/stubs/exabel/api/time/time_range_pb2_grpc.py b/exabel_data_sdk/stubs/exabel/api/time/time_range_pb2_grpc.py index 8a93939..2daafff 100644 --- a/exabel_data_sdk/stubs/exabel/api/time/time_range_pb2_grpc.py +++ b/exabel_data_sdk/stubs/exabel/api/time/time_range_pb2_grpc.py @@ -1,3 +1,4 @@ # 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/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 index 9d983b7..4144728 100644 --- a/exabel_data_sdk/stubs/google/api/annotations_pb2.py +++ b/exabel_data_sdk/stubs/google/api/annotations_pb2.py @@ -6,52 +6,36 @@ 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 -from exabel_data_sdk.stubs.google.api import http_pb2 as google_dot_api_dot_http__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, - ], -) + 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 + 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 diff --git a/exabel_data_sdk/stubs/google/api/annotations_pb2.pyi b/exabel_data_sdk/stubs/google/api/annotations_pb2.pyi index 11cc19b..6019238 100644 --- a/exabel_data_sdk/stubs/google/api/annotations_pb2.pyi +++ b/exabel_data_sdk/stubs/google/api/annotations_pb2.pyi @@ -11,6 +11,7 @@ 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/annotations_pb2_grpc.py b/exabel_data_sdk/stubs/google/api/annotations_pb2_grpc.py index 8a93939..2daafff 100644 --- a/exabel_data_sdk/stubs/google/api/annotations_pb2_grpc.py +++ b/exabel_data_sdk/stubs/google/api/annotations_pb2_grpc.py @@ -1,3 +1,4 @@ # 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/exabel_data_sdk/stubs/google/api/http_pb2.py b/exabel_data_sdk/stubs/google/api/http_pb2.py index 2fe822f..759822b 100644 --- a/exabel_data_sdk/stubs/google/api/http_pb2.py +++ b/exabel_data_sdk/stubs/google/api/http_pb2.py @@ -6,413 +6,247 @@ 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', + 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, + 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, + 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, + 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 +_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) - }, -) +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) - }, -) +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) - }, -) +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) diff --git a/exabel_data_sdk/stubs/google/api/http_pb2.pyi b/exabel_data_sdk/stubs/google/api/http_pb2.pyi index 8882365..d28ff3f 100644 --- a/exabel_data_sdk/stubs/google/api/http_pb2.pyi +++ b/exabel_data_sdk/stubs/google/api/http_pb2.pyi @@ -25,35 +25,28 @@ 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[ - "fully_decode_reserved_expansion", b"fully_decode_reserved_expansion", "rules", b"rules" - ], - ) -> None: ... + 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): @@ -66,92 +59,40 @@ class HttpRule(google___protobuf___message___Message): 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[ - "custom", - b"custom", - "delete", - b"delete", - "get", - b"get", - "patch", - b"patch", - "pattern", - b"pattern", - "post", - b"post", - "put", - b"put", - ], - ) -> builtin___bool: ... - def ClearField( - self, - field_name: typing_extensions___Literal[ - "additional_bindings", - b"additional_bindings", - "body", - b"body", - "custom", - b"custom", - "delete", - b"delete", - "get", - b"get", - "patch", - b"patch", - "pattern", - b"pattern", - "post", - b"post", - "put", - b"put", - "response_body", - b"response_body", - "selector", - b"selector", - ], - ) -> None: ... - def WhichOneof( - self, oneof_group: typing_extensions___Literal["pattern", b"pattern"] - ) -> typing_extensions___Literal["get", "put", "post", "delete", "patch", "custom"]: ... + 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["kind", b"kind", "path", b"path"] - ) -> None: ... + 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 index 8a93939..2daafff 100644 --- a/exabel_data_sdk/stubs/google/api/http_pb2_grpc.py +++ b/exabel_data_sdk/stubs/google/api/http_pb2_grpc.py @@ -1,3 +1,4 @@ # 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/exabel_data_sdk/stubs/__init__.py b/exabel_data_sdk/tests/__init__.py similarity index 100% rename from exabel_data_sdk/stubs/__init__.py rename to exabel_data_sdk/tests/__init__.py diff --git a/exabel_data_sdk/stubs/exabel/__init__.py b/exabel_data_sdk/tests/client/__init__.py similarity index 100% rename from exabel_data_sdk/stubs/exabel/__init__.py rename to exabel_data_sdk/tests/client/__init__.py diff --git a/exabel_data_sdk/stubs/exabel/api/__init__.py b/exabel_data_sdk/tests/client/api/__init__.py similarity index 100% rename from exabel_data_sdk/stubs/exabel/api/__init__.py rename to exabel_data_sdk/tests/client/api/__init__.py diff --git a/exabel_data_sdk/stubs/exabel/api/data/__init__.py b/exabel_data_sdk/tests/client/api/data_classes/__init__.py similarity index 100% rename from exabel_data_sdk/stubs/exabel/api/data/__init__.py rename to exabel_data_sdk/tests/client/api/data_classes/__init__.py diff --git a/tests/client/api/data_classes/test_entity.py b/exabel_data_sdk/tests/client/api/data_classes/test_entity.py similarity index 100% rename from tests/client/api/data_classes/test_entity.py rename to exabel_data_sdk/tests/client/api/data_classes/test_entity.py diff --git a/tests/client/api/data_classes/test_entity_type.py b/exabel_data_sdk/tests/client/api/data_classes/test_entity_type.py similarity index 100% rename from tests/client/api/data_classes/test_entity_type.py rename to exabel_data_sdk/tests/client/api/data_classes/test_entity_type.py diff --git a/tests/client/api/data_classes/test_relationship.py b/exabel_data_sdk/tests/client/api/data_classes/test_relationship.py similarity index 100% rename from tests/client/api/data_classes/test_relationship.py rename to exabel_data_sdk/tests/client/api/data_classes/test_relationship.py diff --git a/tests/client/api/data_classes/test_relationship_type.py b/exabel_data_sdk/tests/client/api/data_classes/test_relationship_type.py similarity index 100% rename from tests/client/api/data_classes/test_relationship_type.py rename to exabel_data_sdk/tests/client/api/data_classes/test_relationship_type.py diff --git a/tests/client/api/data_classes/test_signal.py b/exabel_data_sdk/tests/client/api/data_classes/test_signal.py similarity index 100% rename from tests/client/api/data_classes/test_signal.py rename to exabel_data_sdk/tests/client/api/data_classes/test_signal.py diff --git a/tests/client/api/test_error_handler.py b/exabel_data_sdk/tests/client/api/test_error_handler.py similarity index 100% rename from tests/client/api/test_error_handler.py rename to exabel_data_sdk/tests/client/api/test_error_handler.py diff --git a/tests/client/api/test_proto_utils.py b/exabel_data_sdk/tests/client/api/test_proto_utils.py similarity index 100% rename from tests/client/api/test_proto_utils.py rename to exabel_data_sdk/tests/client/api/test_proto_utils.py diff --git a/tests/client/api/test_time_series_api.py b/exabel_data_sdk/tests/client/api/test_time_series_api.py similarity index 100% rename from tests/client/api/test_time_series_api.py rename to exabel_data_sdk/tests/client/api/test_time_series_api.py diff --git a/exabel_data_sdk/stubs/exabel/api/data/v1/__init__.py b/exabel_data_sdk/tests/client/query/__init__.py similarity index 100% rename from exabel_data_sdk/stubs/exabel/api/data/v1/__init__.py rename to exabel_data_sdk/tests/client/query/__init__.py diff --git a/tests/client/query/test_query.py b/exabel_data_sdk/tests/client/query/test_query.py similarity index 100% rename from tests/client/query/test_query.py rename to exabel_data_sdk/tests/client/query/test_query.py diff --git a/tests/client/test_client_config.py b/exabel_data_sdk/tests/client/test_client_config.py similarity index 100% rename from tests/client/test_client_config.py rename to exabel_data_sdk/tests/client/test_client_config.py diff --git a/tests/client/test_exabel_client.py b/exabel_data_sdk/tests/client/test_exabel_client.py similarity index 100% rename from tests/client/test_exabel_client.py rename to exabel_data_sdk/tests/client/test_exabel_client.py diff --git a/tests/resources/data/mapping_bloomberg_ticker.csv b/exabel_data_sdk/tests/resources/data/mapping_bloomberg_ticker.csv similarity index 100% rename from tests/resources/data/mapping_bloomberg_ticker.csv rename to exabel_data_sdk/tests/resources/data/mapping_bloomberg_ticker.csv diff --git a/tests/resources/data/mapping_factset_identifier.csv b/exabel_data_sdk/tests/resources/data/mapping_factset_identifier.csv similarity index 100% rename from tests/resources/data/mapping_factset_identifier.csv rename to exabel_data_sdk/tests/resources/data/mapping_factset_identifier.csv diff --git a/tests/resources/data/mapping_format_error.csv b/exabel_data_sdk/tests/resources/data/mapping_format_error.csv similarity index 100% rename from tests/resources/data/mapping_format_error.csv rename to exabel_data_sdk/tests/resources/data/mapping_format_error.csv diff --git a/tests/resources/data/mapping_isin.csv b/exabel_data_sdk/tests/resources/data/mapping_isin.csv similarity index 100% rename from tests/resources/data/mapping_isin.csv rename to exabel_data_sdk/tests/resources/data/mapping_isin.csv diff --git a/tests/resources/data/mapping_ticker.csv b/exabel_data_sdk/tests/resources/data/mapping_ticker.csv similarity index 100% rename from tests/resources/data/mapping_ticker.csv rename to exabel_data_sdk/tests/resources/data/mapping_ticker.csv diff --git a/tests/resources/data/timeseries.csv b/exabel_data_sdk/tests/resources/data/timeseries.csv similarity index 100% rename from tests/resources/data/timeseries.csv rename to exabel_data_sdk/tests/resources/data/timeseries.csv diff --git a/tests/resources/data/timeseries_multiple_signals.csv b/exabel_data_sdk/tests/resources/data/timeseries_multiple_signals.csv similarity index 100% rename from tests/resources/data/timeseries_multiple_signals.csv rename to exabel_data_sdk/tests/resources/data/timeseries_multiple_signals.csv diff --git a/exabel_data_sdk/stubs/exabel/api/math/__init__.py b/exabel_data_sdk/tests/scripts/__init__.py similarity index 100% rename from exabel_data_sdk/stubs/exabel/api/math/__init__.py rename to exabel_data_sdk/tests/scripts/__init__.py diff --git a/tests/scripts/test_create_entity_mapping_from_csv.py b/exabel_data_sdk/tests/scripts/test_create_entity_mapping_from_csv.py similarity index 94% rename from tests/scripts/test_create_entity_mapping_from_csv.py rename to exabel_data_sdk/tests/scripts/test_create_entity_mapping_from_csv.py index 9eef8cb..e54a614 100644 --- a/tests/scripts/test_create_entity_mapping_from_csv.py +++ b/exabel_data_sdk/tests/scripts/test_create_entity_mapping_from_csv.py @@ -18,7 +18,7 @@ def test_create_mapping_ticker(self): args = [ "script-name", "--filename-input", - "./tests/resources/data/mapping_ticker.csv", + "./exabel_data_sdk/tests/resources/data/mapping_ticker.csv", "--filename-output", self.temp_file.name, ] @@ -59,7 +59,7 @@ def test_create_mapping_isin(self): args = [ "script-name", "--filename-input", - "./tests/resources/data/mapping_isin.csv", + "./exabel_data_sdk/tests/resources/data/mapping_isin.csv", "--filename-output", self.temp_file.name, ] @@ -82,7 +82,7 @@ def test_create_mapping_factset_identifier(self): args = [ "script-name", "--filename-input", - "./tests/resources/data/mapping_factset_identifier.csv", + "./exabel_data_sdk/tests/resources/data/mapping_factset_identifier.csv", "--filename-output", self.temp_file.name, ] @@ -114,7 +114,7 @@ def test_create_mapping_bloomberg_ticker(self): args = [ "script-name", "--filename-input", - "./tests/resources/data/mapping_bloomberg_ticker.csv", + "./exabel_data_sdk/tests/resources/data/mapping_bloomberg_ticker.csv", "--filename-output", self.temp_file.name, ] diff --git a/tests/scripts/test_load_scripts.py b/exabel_data_sdk/tests/scripts/test_load_scripts.py similarity index 100% rename from tests/scripts/test_load_scripts.py rename to exabel_data_sdk/tests/scripts/test_load_scripts.py diff --git a/tests/scripts/test_load_time_series_from_csv.py b/exabel_data_sdk/tests/scripts/test_load_time_series_from_csv.py similarity index 95% rename from tests/scripts/test_load_time_series_from_csv.py rename to exabel_data_sdk/tests/scripts/test_load_time_series_from_csv.py index 2393266..7ce2035 100644 --- a/tests/scripts/test_load_time_series_from_csv.py +++ b/exabel_data_sdk/tests/scripts/test_load_time_series_from_csv.py @@ -68,7 +68,11 @@ def test_signal_value(self): ) def test_read_file_use_header_for_signal(self): - args = ["script-name", "--filename", "./tests/resources/data/timeseries.csv"] + args = [ + "script-name", + "--filename", + "./exabel_data_sdk/tests/resources/data/timeseries.csv", + ] script = LoadTimeSeriesFromCsv(args, "LoadTest1") client = mock.create_autospec(ExabelClient(host="host", api_key="123")) @@ -99,7 +103,7 @@ def test_read_file_with_signal_override(self): args = [ "script-name", "--filename", - "./tests/resources/data/timeseries.csv", + "./exabel_data_sdk/tests/resources/data/timeseries.csv", "--signals", "signal1_o", ] @@ -150,7 +154,7 @@ def test_read_file_with_multiple_signals_and_override(self): args = [ "script-name", "--filename", - "./tests/resources/data/timeseries_multiple_signals.csv", + "./exabel_data_sdk/tests/resources/data/timeseries_multiple_signals.csv", "--signals", "signal1_o", "signal2_o", diff --git a/setup.cfg b/setup.cfg index 0054155..2b9e208 100644 --- a/setup.cfg +++ b/setup.cfg @@ -11,7 +11,7 @@ warn_unreachable = True warn_unused_ignores = True namespace_packages = True -[mypy-tests.*] +[mypy-exabel_data_sdk.tests.*] disallow_untyped_defs = False diff --git a/setup.py b/setup.py index f4688e8..f5e4022 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ setuptools.setup( name="exabel-data-sdk", - version="0.0.18", + version="0.0.19", author="Exabel", author_email="support@exabel.com", description="Python SDK for the Exabel Data API", diff --git a/style.sh b/style.sh index e051a39..2435c1a 100755 --- a/style.sh +++ b/style.sh @@ -3,8 +3,8 @@ # Runs all the style checks. set -euf -mypy exabel_data_sdk tests setup.py -isort --check-only exabel_data_sdk tests setup.py -black --check exabel_data_sdk tests setup.py -pycodestyle --exclude exabel_data_sdk/stubs exabel_data_sdk tests setup.py -pylint exabel_data_sdk tests setup.py +mypy exabel_data_sdk setup.py +isort --check-only -s exabel_data_sdk/stubs exabel_data_sdk setup.py +black --check --exclude exabel_data_sdk/stubs exabel_data_sdk setup.py +pycodestyle --exclude exabel_data_sdk/stubs exabel_data_sdk setup.py +pylint exabel_data_sdk setup.py diff --git a/tests/__init__.py b/tests/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/client/__init__.py b/tests/client/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/client/api/__init__.py b/tests/client/api/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/client/api/data_classes/__init__.py b/tests/client/api/data_classes/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/client/query/__init__.py b/tests/client/query/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/scripts/__init__.py b/tests/scripts/__init__.py deleted file mode 100644 index e69de29..0000000