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 356f7eb..7344b66 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 @@ -1,15 +1,28 @@ -# @generated by generate_proto_mypy_stubs.py. Do not edit! -import sys -from typing import Optional as typing___Optional -from typing import Text as typing___Text - -from google.protobuf.descriptor import Descriptor as google___protobuf___descriptor___Descriptor +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" from google.protobuf.descriptor import ( + Descriptor as google___protobuf___descriptor___Descriptor, FileDescriptor as google___protobuf___descriptor___FileDescriptor, ) -from google.protobuf.message import Message as google___protobuf___message___Message -from google.protobuf.struct_pb2 import Struct as google___protobuf___struct_pb2___Struct -from typing_extensions import Literal as typing_extensions___Literal + +from google.protobuf.message import ( + Message as google___protobuf___message___Message, +) + +from google.protobuf.struct_pb2 import ( + Struct as google___protobuf___struct_pb2___Struct, +) + +from typing import ( + Optional as typing___Optional, + Text as typing___Text, +) + +from typing_extensions import ( + Literal as typing_extensions___Literal, +) builtin___bool = bool builtin___bytes = bytes 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 32415d7..7d0a100 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 @@ -1,30 +1,41 @@ -# @generated by generate_proto_mypy_stubs.py. Do not edit! -import sys -from typing import Iterable as typing___Iterable -from typing import Optional as typing___Optional -from typing import Text as typing___Text +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +from exabel_data_sdk.stubs.exabel.api.data.v1.entity_messages_pb2 import ( + Entity as exabel___api___data___v1___entity_messages_pb2___Entity, + EntityType as exabel___api___data___v1___entity_messages_pb2___EntityType, +) + +from exabel_data_sdk.stubs.exabel.api.data.v1.search_messages_pb2 import ( + SearchTerm as exabel___api___data___v1___search_messages_pb2___SearchTerm, +) -from google.protobuf.descriptor import Descriptor as google___protobuf___descriptor___Descriptor from google.protobuf.descriptor import ( + Descriptor as google___protobuf___descriptor___Descriptor, FileDescriptor as google___protobuf___descriptor___FileDescriptor, ) + from google.protobuf.field_mask_pb2 import ( FieldMask as google___protobuf___field_mask_pb2___FieldMask, ) + from google.protobuf.internal.containers import ( RepeatedCompositeFieldContainer as google___protobuf___internal___containers___RepeatedCompositeFieldContainer, ) -from google.protobuf.message import Message as google___protobuf___message___Message -from typing_extensions import Literal as typing_extensions___Literal -from exabel_data_sdk.stubs.exabel.api.data.v1.entity_messages_pb2 import ( - Entity as exabel___api___data___v1___entity_messages_pb2___Entity, +from google.protobuf.message import ( + Message as google___protobuf___message___Message, ) -from exabel_data_sdk.stubs.exabel.api.data.v1.entity_messages_pb2 import ( - EntityType as exabel___api___data___v1___entity_messages_pb2___EntityType, + +from typing import ( + Iterable as typing___Iterable, + Optional as typing___Optional, + Text as typing___Text, ) -from exabel_data_sdk.stubs.exabel.api.data.v1.search_messages_pb2 import ( - SearchTerm as exabel___api___data___v1___search_messages_pb2___SearchTerm, + +from typing_extensions import ( + Literal as typing_extensions___Literal, ) builtin___bool = bool @@ -179,8 +190,7 @@ class CreateEntityRequest(google___protobuf___message___Message): 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"], + self, field_name: typing_extensions___Literal["entity", b"entity", "parent", b"parent"] ) -> None: ... type___CreateEntityRequest = CreateEntityRequest 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 8e01b27..092f2f8 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 @@ -1,19 +1,30 @@ -# @generated by generate_proto_mypy_stubs.py. Do not edit! -import sys -from typing import Optional as typing___Optional +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +from exabel_data_sdk.stubs.exabel.api.data.v1.entity_messages_pb2 import ( + EntityType as exabel___api___data___v1___entity_messages_pb2___EntityType, +) -from google.protobuf.descriptor import Descriptor as google___protobuf___descriptor___Descriptor from google.protobuf.descriptor import ( + Descriptor as google___protobuf___descriptor___Descriptor, FileDescriptor as google___protobuf___descriptor___FileDescriptor, ) + from google.protobuf.field_mask_pb2 import ( FieldMask as google___protobuf___field_mask_pb2___FieldMask, ) -from google.protobuf.message import Message as google___protobuf___message___Message -from typing_extensions import Literal as typing_extensions___Literal -from exabel_data_sdk.stubs.exabel.api.data.v1.entity_messages_pb2 import ( - EntityType as exabel___api___data___v1___entity_messages_pb2___EntityType, +from google.protobuf.message import ( + Message as google___protobuf___message___Message, +) + +from typing import ( + Optional as typing___Optional, +) + +from typing_extensions import ( + Literal as typing_extensions___Literal, ) builtin___bool = bool @@ -26,9 +37,7 @@ 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 entity_type(self) -> exabel___api___data___v1___entity_messages_pb2___EntityType: ... def __init__( self, *, @@ -48,9 +57,7 @@ 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: ... + 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__( 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 3a95b2c..580368f 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 @@ -1,15 +1,28 @@ -# @generated by generate_proto_mypy_stubs.py. Do not edit! -import sys -from typing import Optional as typing___Optional -from typing import Text as typing___Text - -from google.protobuf.descriptor import Descriptor as google___protobuf___descriptor___Descriptor +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" from google.protobuf.descriptor import ( + Descriptor as google___protobuf___descriptor___Descriptor, FileDescriptor as google___protobuf___descriptor___FileDescriptor, ) -from google.protobuf.message import Message as google___protobuf___message___Message -from google.protobuf.struct_pb2 import Struct as google___protobuf___struct_pb2___Struct -from typing_extensions import Literal as typing_extensions___Literal + +from google.protobuf.message import ( + Message as google___protobuf___message___Message, +) + +from google.protobuf.struct_pb2 import ( + Struct as google___protobuf___struct_pb2___Struct, +) + +from typing import ( + Optional as typing___Optional, + Text as typing___Text, +) + +from typing_extensions import ( + Literal as typing_extensions___Literal, +) builtin___bool = bool builtin___bytes = bytes 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 b65ced5..a2ae30c 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 @@ -1,27 +1,37 @@ -# @generated by generate_proto_mypy_stubs.py. Do not edit! -import sys -from typing import Iterable as typing___Iterable -from typing import Optional as typing___Optional -from typing import Text as typing___Text +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +from exabel_data_sdk.stubs.exabel.api.data.v1.relationship_messages_pb2 import ( + Relationship as exabel___api___data___v1___relationship_messages_pb2___Relationship, + RelationshipType as exabel___api___data___v1___relationship_messages_pb2___RelationshipType, +) -from google.protobuf.descriptor import Descriptor as google___protobuf___descriptor___Descriptor from google.protobuf.descriptor import ( + Descriptor as google___protobuf___descriptor___Descriptor, FileDescriptor as google___protobuf___descriptor___FileDescriptor, ) + from google.protobuf.field_mask_pb2 import ( FieldMask as google___protobuf___field_mask_pb2___FieldMask, ) + from google.protobuf.internal.containers import ( RepeatedCompositeFieldContainer as google___protobuf___internal___containers___RepeatedCompositeFieldContainer, ) -from google.protobuf.message import Message as google___protobuf___message___Message -from typing_extensions import Literal as typing_extensions___Literal -from exabel_data_sdk.stubs.exabel.api.data.v1.relationship_messages_pb2 import ( - Relationship as exabel___api___data___v1___relationship_messages_pb2___Relationship, +from google.protobuf.message import ( + Message as google___protobuf___message___Message, ) -from exabel_data_sdk.stubs.exabel.api.data.v1.relationship_messages_pb2 import ( - RelationshipType as exabel___api___data___v1___relationship_messages_pb2___RelationshipType, + +from typing import ( + Iterable as typing___Iterable, + Optional as typing___Optional, + Text as typing___Text, +) + +from typing_extensions import ( + Literal as typing_extensions___Literal, ) builtin___bool = bool @@ -99,12 +109,10 @@ class CreateRelationshipTypeRequest(google___protobuf___message___Message): ] = None, ) -> None: ... def HasField( - self, - field_name: typing_extensions___Literal["relationship_type", b"relationship_type"], + 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"], + self, field_name: typing_extensions___Literal["relationship_type", b"relationship_type"] ) -> None: ... type___CreateRelationshipTypeRequest = CreateRelationshipTypeRequest @@ -246,12 +254,7 @@ class GetRelationshipRequest(google___protobuf___message___Message): def ClearField( self, field_name: typing_extensions___Literal[ - "from_entity", - b"from_entity", - "parent", - b"parent", - "to_entity", - b"to_entity", + "from_entity", b"from_entity", "parent", b"parent", "to_entity", b"to_entity" ], ) -> None: ... @@ -325,12 +328,7 @@ class DeleteRelationshipRequest(google___protobuf___message___Message): def ClearField( self, field_name: typing_extensions___Literal[ - "from_entity", - b"from_entity", - "parent", - b"parent", - "to_entity", - b"to_entity", + "from_entity", b"from_entity", "parent", b"parent", "to_entity", b"to_entity" ], ) -> None: ... 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 8cae07e..fb2b708 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 @@ -1,14 +1,24 @@ -# @generated by generate_proto_mypy_stubs.py. Do not edit! -import sys -from typing import Optional as typing___Optional -from typing import Text as typing___Text - -from google.protobuf.descriptor import Descriptor as google___protobuf___descriptor___Descriptor +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" from google.protobuf.descriptor import ( + Descriptor as google___protobuf___descriptor___Descriptor, FileDescriptor as google___protobuf___descriptor___FileDescriptor, ) -from google.protobuf.message import Message as google___protobuf___message___Message -from typing_extensions import Literal as typing_extensions___Literal + +from google.protobuf.message import ( + Message as google___protobuf___message___Message, +) + +from typing import ( + Optional as typing___Optional, + Text as typing___Text, +) + +from typing_extensions import ( + Literal as typing_extensions___Literal, +) builtin___bool = bool builtin___bytes = bytes @@ -28,8 +38,7 @@ class SearchTerm(google___protobuf___message___Message): query: typing___Optional[typing___Text] = None, ) -> None: ... def ClearField( - self, - field_name: typing_extensions___Literal["field", b"field", "query", b"query"], + self, field_name: typing_extensions___Literal["field", b"field", "query", b"query"] ) -> None: ... type___SearchTerm = SearchTerm 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 8bc2a62..8aec450 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 @@ -22,7 +22,7 @@ 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"\xa4\x01\n\x06Signal\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x13\n\x0b\x65ntity_type\x18\x02 \x01(\t\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\x42/\n\x16\x63om.exabel.api.data.v1B\x13SignalMessagesProtoP\x01\x62\x06proto3', + serialized_pb=b'\n(exabel/api/data/v1/signal_messages.proto\x12\x12\x65xabel.api.data.v1\x1a!exabel/api/math/aggregation.proto"\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, ], @@ -71,7 +71,7 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, + serialized_options=b"\030\001", file=DESCRIPTOR, create_key=_descriptor._internal_create_key, ), @@ -151,6 +151,25 @@ 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=[], @@ -161,7 +180,7 @@ extension_ranges=[], oneofs=[], serialized_start=100, - serialized_end=264, + serialized_end=290, ) _SIGNAL.fields_by_name[ @@ -183,4 +202,5 @@ DESCRIPTOR._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 113fe20..de657d8 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 @@ -1,17 +1,32 @@ -# @generated by generate_proto_mypy_stubs.py. Do not edit! -import sys -from typing import Optional as typing___Optional -from typing import Text as typing___Text +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +from exabel_data_sdk.stubs.exabel.api.math.aggregation_pb2 import ( + AggregationValue as exabel___api___math___aggregation_pb2___AggregationValue, +) -from google.protobuf.descriptor import Descriptor as google___protobuf___descriptor___Descriptor from google.protobuf.descriptor import ( + Descriptor as google___protobuf___descriptor___Descriptor, FileDescriptor as google___protobuf___descriptor___FileDescriptor, ) -from google.protobuf.message import Message as google___protobuf___message___Message -from typing_extensions import Literal as typing_extensions___Literal -from exabel_data_sdk.stubs.exabel.api.math.aggregation_pb2 import ( - AggregationValue as exabel___api___math___aggregation_pb2___AggregationValue, +from google.protobuf.internal.containers import ( + RepeatedScalarFieldContainer as google___protobuf___internal___containers___RepeatedScalarFieldContainer, +) + +from google.protobuf.message import ( + Message as google___protobuf___message___Message, +) + +from typing import ( + Iterable as typing___Iterable, + Optional as typing___Optional, + Text as typing___Text, +) + +from typing_extensions import ( + Literal as typing_extensions___Literal, ) builtin___bool = bool @@ -29,6 +44,9 @@ 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, *, @@ -40,6 +58,7 @@ class Signal(google___protobuf___message___Message): 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, @@ -52,6 +71,8 @@ class Signal(google___protobuf___message___Message): b"downsampling_method", "entity_type", b"entity_type", + "entity_types", + b"entity_types", "name", b"name", "read_only", 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 9f47d5d..b7628af 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 @@ -1,24 +1,36 @@ -# @generated by generate_proto_mypy_stubs.py. Do not edit! -import sys -from typing import Iterable as typing___Iterable -from typing import Optional as typing___Optional -from typing import Text as typing___Text +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +from exabel_data_sdk.stubs.exabel.api.data.v1.signal_messages_pb2 import ( + Signal as exabel___api___data___v1___signal_messages_pb2___Signal, +) -from google.protobuf.descriptor import Descriptor as google___protobuf___descriptor___Descriptor from google.protobuf.descriptor import ( + Descriptor as google___protobuf___descriptor___Descriptor, FileDescriptor as google___protobuf___descriptor___FileDescriptor, ) + from google.protobuf.field_mask_pb2 import ( FieldMask as google___protobuf___field_mask_pb2___FieldMask, ) + from google.protobuf.internal.containers import ( RepeatedCompositeFieldContainer as google___protobuf___internal___containers___RepeatedCompositeFieldContainer, ) -from google.protobuf.message import Message as google___protobuf___message___Message -from typing_extensions import Literal as typing_extensions___Literal -from exabel_data_sdk.stubs.exabel.api.data.v1.signal_messages_pb2 import ( - Signal as exabel___api___data___v1___signal_messages_pb2___Signal, +from google.protobuf.message import ( + Message as google___protobuf___message___Message, +) + +from typing import ( + Iterable as typing___Iterable, + Optional as typing___Optional, + Text as typing___Text, +) + +from typing_extensions import ( + Literal as typing_extensions___Literal, ) builtin___bool = bool 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 f22064c..9e3015f 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 @@ -25,7 +25,7 @@ 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"h\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"@\n\x0eTimeSeriesView\x12.\n\ntime_range\x18\x01 \x01(\x0b\x32\x1a.exabel.api.time.TimeRangeB3\n\x16\x63om.exabel.api.data.v1B\x17TimeSeriesMessagesProtoP\x01\x62\x06proto3', + serialized_pb=b'\n-exabel/api/data/v1/time_series_messages.proto\x12\x12\x65xabel.api.data.v1\x1a exabel/api/time/time_range.proto\x1a\x1fgoogle/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, @@ -159,6 +159,25 @@ 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=[], @@ -168,8 +187,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=268, - serialized_end=372, + serialized_start=269, + serialized_end=421, ) @@ -200,6 +219,25 @@ 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=[], @@ -209,8 +247,77 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=374, - serialized_end=438, + 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, ) _TIMESERIES.fields_by_name["points"].message_type = _TIMESERIESPOINT @@ -220,12 +327,34 @@ _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( @@ -261,6 +390,17 @@ ) _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) + }, +) +_sym_db.RegisterMessage(DefaultKnownTime) + DESCRIPTOR._options = None # @@protoc_insertion_point(module_scope) 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 b3ef4e4..bd13d05 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 @@ -1,25 +1,40 @@ -# @generated by generate_proto_mypy_stubs.py. Do not edit! -import sys -from typing import Iterable as typing___Iterable -from typing import Optional as typing___Optional -from typing import Text as typing___Text +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +from exabel_data_sdk.stubs.exabel.api.time.time_range_pb2 import ( + TimeRange as exabel___api___time___time_range_pb2___TimeRange, +) -from google.protobuf.descriptor import Descriptor as google___protobuf___descriptor___Descriptor from google.protobuf.descriptor import ( + Descriptor as google___protobuf___descriptor___Descriptor, FileDescriptor as google___protobuf___descriptor___FileDescriptor, ) + from google.protobuf.internal.containers import ( RepeatedCompositeFieldContainer as google___protobuf___internal___containers___RepeatedCompositeFieldContainer, ) -from google.protobuf.message import Message as google___protobuf___message___Message -from google.protobuf.timestamp_pb2 import Timestamp as google___protobuf___timestamp_pb2___Timestamp + +from google.protobuf.message import ( + Message as google___protobuf___message___Message, +) + +from google.protobuf.timestamp_pb2 import ( + Timestamp as google___protobuf___timestamp_pb2___Timestamp, +) + from google.protobuf.wrappers_pb2 import ( DoubleValue as google___protobuf___wrappers_pb2___DoubleValue, ) -from typing_extensions import Literal as typing_extensions___Literal -from exabel_data_sdk.stubs.exabel.api.time.time_range_pb2 import ( - TimeRange as exabel___api___time___time_range_pb2___TimeRange, +from typing import ( + Iterable as typing___Iterable, + Optional as typing___Optional, + Text as typing___Text, +) + +from typing_extensions import ( + Literal as typing_extensions___Literal, ) builtin___bool = bool @@ -61,19 +76,26 @@ class TimeSeriesPoint(google___protobuf___message___Message): 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["time", b"time", "value", b"value"], + 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["time", b"time", "value", b"value"], + field_name: typing_extensions___Literal[ + "known_time", b"known_time", "time", b"time", "value", b"value" + ], ) -> None: ... type___TimeSeriesPoint = TimeSeriesPoint @@ -82,16 +104,64 @@ 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["time_range", b"time_range"] + 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["time_range", b"time_range"] + self, + field_name: typing_extensions___Literal[ + "known_time", b"known_time", "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"]: ... + +type___DefaultKnownTime = DefaultKnownTime 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 c8827f1..f1a25cc 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 @@ -28,7 +28,7 @@ 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"\x80\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"\x80\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"\'\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\xdc\x0f\n\x11TimeSeriesService\x12\xa1\x01\n\x0eListTimeSeries\x12).exabel.api.data.v1.ListTimeSeriesRequest\x1a*.exabel.api.data.v1.ListTimeSeriesResponse"8\x82\xd3\xe4\x93\x02\x32\x12\x30/v1/{parent=entityTypes/*/entities/*}/timeSeries\x12\x93\x01\n\x0fListTimeSeries2\x12).exabel.api.data.v1.ListTimeSeriesRequest\x1a*.exabel.api.data.v1.ListTimeSeriesResponse")\x82\xd3\xe4\x93\x02#\x12!/v1/{parent=signals/*}/timeSeries\x12\x90\x01\n\rGetTimeSeries\x12(.exabel.api.data.v1.GetTimeSeriesRequest\x1a\x1e.exabel.api.data.v1.TimeSeries"5\x82\xd3\xe4\x93\x02/\x12-/v1/{name=entityTypes/*/entities/*/signals/*}\x12\x91\x01\n\x0eGetTimeSeries2\x12(.exabel.api.data.v1.GetTimeSeriesRequest\x1a\x1e.exabel.api.data.v1.TimeSeries"5\x82\xd3\xe4\x93\x02/\x12-/v1/{name=signals/*/entityTypes/*/entities/*}\x12\xaf\x01\n\x10\x43reateTimeSeries\x12+.exabel.api.data.v1.CreateTimeSeriesRequest\x1a\x1e.exabel.api.data.v1.TimeSeries"N\x82\xd3\xe4\x93\x02H"9/v1/{time_series.name=entityTypes/*/entities/*/signals/*}:\x0btime_series\x12\xb0\x01\n\x11\x43reateTimeSeries2\x12+.exabel.api.data.v1.CreateTimeSeriesRequest\x1a\x1e.exabel.api.data.v1.TimeSeries"N\x82\xd3\xe4\x93\x02H"9/v1/{time_series.name=signals/*/entityTypes/*/entities/*}:\x0btime_series\x12\xaf\x01\n\x10UpdateTimeSeries\x12+.exabel.api.data.v1.UpdateTimeSeriesRequest\x1a\x1e.exabel.api.data.v1.TimeSeries"N\x82\xd3\xe4\x93\x02H29/v1/{time_series.name=entityTypes/*/entities/*/signals/*}:\x0btime_series\x12\xb0\x01\n\x11UpdateTimeSeries2\x12+.exabel.api.data.v1.UpdateTimeSeriesRequest\x1a\x1e.exabel.api.data.v1.TimeSeries"N\x82\xd3\xe4\x93\x02H29/v1/{time_series.name=signals/*/entityTypes/*/entities/*}:\x0btime_series\x12\x8e\x01\n\x10\x44\x65leteTimeSeries\x12+.exabel.api.data.v1.DeleteTimeSeriesRequest\x1a\x16.google.protobuf.Empty"5\x82\xd3\xe4\x93\x02/*-/v1/{name=entityTypes/*/entities/*/signals/*}\x12\x8f\x01\n\x11\x44\x65leteTimeSeries2\x12+.exabel.api.data.v1.DeleteTimeSeriesRequest\x1a\x16.google.protobuf.Empty"5\x82\xd3\xe4\x93\x02/*-/v1/{name=signals/*/entityTypes/*/entities/*}\x12\xba\x01\n\x1b\x42\x61tchDeleteTimeSeriesPoints\x12\x36.exabel.api.data.v1.BatchDeleteTimeSeriesPointsRequest\x1a\x16.google.protobuf.Empty"K\x82\xd3\xe4\x93\x02\x45"@/v1/{name=entityTypes/*/entities/*/signals/*}/points:batchDelete:\x01*\x12\xbb\x01\n\x1c\x42\x61tchDeleteTimeSeriesPoints2\x12\x36.exabel.api.data.v1.BatchDeleteTimeSeriesPointsRequest\x1a\x16.google.protobuf.Empty"K\x82\xd3\xe4\x93\x02\x45"@/v1/{name=signals/*/entityTypes/*/entities/*}/points:batchDelete:\x01*B2\n\x16\x63om.exabel.api.data.v1B\x16TimeSeriesServiceProtoP\x01\x62\x06proto3', + serialized_pb=b'\n,exabel/api/data/v1/time_series_service.proto\x12\x12\x65xabel.api.data.v1\x1a-exabel/api/data/v1/time_series_messages.proto\x1a exabel/api/time/time_range.proto\x1a\x1cgoogle/api/annotations.proto\x1a\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"\xc2\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"\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\xec\x0b\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\xc9\x02\n\rGetTimeSeries\x12(.exabel.api.data.v1.GetTimeSeriesRequest\x1a\x1e.exabel.api.data.v1.TimeSeries"\xed\x01\x82\xd3\xe4\x93\x02\xe6\x01\x12?/v1/{name=entityTypes/*/entities/*/signals/*}/{view.known_time}ZA\x12?/v1/{name=signals/*/entityTypes/*/entities/*}/{view.known_time}Z/\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, @@ -302,6 +302,25 @@ 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, + ), ], extensions=[], nested_types=[], @@ -312,7 +331,7 @@ extension_ranges=[], oneofs=[], serialized_start=501, - serialized_end=629, + serialized_end=695, ) @@ -362,6 +381,25 @@ 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=[], @@ -371,8 +409,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=632, - serialized_end=760, + serialized_start=698, + serialized_end=892, ) @@ -412,8 +450,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=762, - serialized_end=801, + serialized_start=894, + serialized_end=933, ) @@ -472,8 +510,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=803, - serialized_end=902, + serialized_start=935, + serialized_end=1034, ) _LISTTIMESERIESRESPONSE.fields_by_name[ @@ -488,12 +526,18 @@ _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 @@ -595,8 +639,8 @@ index=0, serialized_options=None, create_key=_descriptor._internal_create_key, - serialized_start=905, - serialized_end=2917, + serialized_start=1037, + serialized_end=2553, methods=[ _descriptor.MethodDescriptor( name="ListTimeSeries", @@ -605,117 +649,57 @@ containing_service=None, input_type=_LISTTIMESERIESREQUEST, output_type=_LISTTIMESERIESRESPONSE, - serialized_options=b"\202\323\344\223\0022\0220/v1/{parent=entityTypes/*/entities/*}/timeSeries", - create_key=_descriptor._internal_create_key, - ), - _descriptor.MethodDescriptor( - name="ListTimeSeries2", - full_name="exabel.api.data.v1.TimeSeriesService.ListTimeSeries2", - index=1, - containing_service=None, - input_type=_LISTTIMESERIESREQUEST, - output_type=_LISTTIMESERIESRESPONSE, - serialized_options=b"\202\323\344\223\002#\022!/v1/{parent=signals/*}/timeSeries", + 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=2, - 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/*}", - create_key=_descriptor._internal_create_key, - ), - _descriptor.MethodDescriptor( - name="GetTimeSeries2", - full_name="exabel.api.data.v1.TimeSeriesService.GetTimeSeries2", - index=3, + 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=signals/*/entityTypes/*/entities/*}", + serialized_options=b"\202\323\344\223\002\346\001\022?/v1/{name=entityTypes/*/entities/*/signals/*}/{view.known_time}ZA\022?/v1/{name=signals/*/entityTypes/*/entities/*}/{view.known_time}Z/\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=4, - 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\002H"9/v1/{time_series.name=entityTypes/*/entities/*/signals/*}:\013time_series', - create_key=_descriptor._internal_create_key, - ), - _descriptor.MethodDescriptor( - name="CreateTimeSeries2", - full_name="exabel.api.data.v1.TimeSeriesService.CreateTimeSeries2", - index=5, + 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\002H"9/v1/{time_series.name=signals/*/entityTypes/*/entities/*}:\013time_series', + 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=6, - 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\002H29/v1/{time_series.name=entityTypes/*/entities/*/signals/*}:\013time_series", - create_key=_descriptor._internal_create_key, - ), - _descriptor.MethodDescriptor( - name="UpdateTimeSeries2", - full_name="exabel.api.data.v1.TimeSeriesService.UpdateTimeSeries2", - index=7, + 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\002H29/v1/{time_series.name=signals/*/entityTypes/*/entities/*}:\013time_series", + 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=8, - 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/*}", - create_key=_descriptor._internal_create_key, - ), - _descriptor.MethodDescriptor( - name="DeleteTimeSeries2", - full_name="exabel.api.data.v1.TimeSeriesService.DeleteTimeSeries2", - index=9, + 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=signals/*/entityTypes/*/entities/*}", + 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=10, - containing_service=None, - input_type=_BATCHDELETETIMESERIESPOINTSREQUEST, - output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, - serialized_options=b'\202\323\344\223\002E"@/v1/{name=entityTypes/*/entities/*/signals/*}/points:batchDelete:\001*', - create_key=_descriptor._internal_create_key, - ), - _descriptor.MethodDescriptor( - name="BatchDeleteTimeSeriesPoints2", - full_name="exabel.api.data.v1.TimeSeriesService.BatchDeleteTimeSeriesPoints2", - index=11, + index=5, containing_service=None, input_type=_BATCHDELETETIMESERIESPOINTSREQUEST, output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, - serialized_options=b'\202\323\344\223\002E"@/v1/{name=signals/*/entityTypes/*/entities/*}/points:batchDelete:\001*', + 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, ), ], 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 4e3c42f..cb48210 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 @@ -1,27 +1,38 @@ -# @generated by generate_proto_mypy_stubs.py. Do not edit! -import sys -from typing import Iterable as typing___Iterable -from typing import Optional as typing___Optional -from typing import Text as typing___Text +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +from exabel_data_sdk.stubs.exabel.api.data.v1.time_series_messages_pb2 import ( + DefaultKnownTime as exabel___api___data___v1___time_series_messages_pb2___DefaultKnownTime, + TimeSeries as exabel___api___data___v1___time_series_messages_pb2___TimeSeries, + TimeSeriesView as exabel___api___data___v1___time_series_messages_pb2___TimeSeriesView, +) + +from exabel_data_sdk.stubs.exabel.api.time.time_range_pb2 import ( + TimeRange as exabel___api___time___time_range_pb2___TimeRange, +) -from google.protobuf.descriptor import Descriptor as google___protobuf___descriptor___Descriptor from google.protobuf.descriptor import ( + Descriptor as google___protobuf___descriptor___Descriptor, FileDescriptor as google___protobuf___descriptor___FileDescriptor, ) + from google.protobuf.internal.containers import ( RepeatedCompositeFieldContainer as google___protobuf___internal___containers___RepeatedCompositeFieldContainer, ) -from google.protobuf.message import Message as google___protobuf___message___Message -from typing_extensions import Literal as typing_extensions___Literal -from exabel_data_sdk.stubs.exabel.api.data.v1.time_series_messages_pb2 import ( - TimeSeries as exabel___api___data___v1___time_series_messages_pb2___TimeSeries, +from google.protobuf.message import ( + Message as google___protobuf___message___Message, ) -from exabel_data_sdk.stubs.exabel.api.data.v1.time_series_messages_pb2 import ( - TimeSeriesView as exabel___api___data___v1___time_series_messages_pb2___TimeSeriesView, + +from typing import ( + Iterable as typing___Iterable, + Optional as typing___Optional, + Text as typing___Text, ) -from exabel_data_sdk.stubs.exabel.api.time.time_range_pb2 import ( - TimeRange as exabel___api___time___time_range_pb2___TimeRange, + +from typing_extensions import ( + Literal as typing_extensions___Literal, ) builtin___bool = bool @@ -89,9 +100,7 @@ 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 view(self) -> exabel___api___data___v1___time_series_messages_pb2___TimeSeriesView: ... def __init__( self, *, @@ -112,13 +121,13 @@ type___GetTimeSeriesRequest = GetTimeSeriesRequest class CreateTimeSeriesRequest(google___protobuf___message___Message): DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... @property - def time_series( - self, - ) -> exabel___api___data___v1___time_series_messages_pb2___TimeSeries: ... + 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 view( + def default_known_time( self, - ) -> exabel___api___data___v1___time_series_messages_pb2___TimeSeriesView: ... + ) -> exabel___api___data___v1___time_series_messages_pb2___DefaultKnownTime: ... def __init__( self, *, @@ -128,14 +137,31 @@ class CreateTimeSeriesRequest(google___protobuf___message___Message): 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["time_series", b"time_series", "view", b"view"], + 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["time_series", b"time_series", "view", b"view"], + field_name: typing_extensions___Literal[ + "default_known_time", + b"default_known_time", + "time_series", + b"time_series", + "view", + b"view", + ], ) -> None: ... type___CreateTimeSeriesRequest = CreateTimeSeriesRequest @@ -143,13 +169,13 @@ 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: ... + def time_series(self) -> exabel___api___data___v1___time_series_messages_pb2___TimeSeries: ... @property - def view( + 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___TimeSeriesView: ... + ) -> exabel___api___data___v1___time_series_messages_pb2___DefaultKnownTime: ... def __init__( self, *, @@ -159,14 +185,31 @@ class UpdateTimeSeriesRequest(google___protobuf___message___Message): 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["time_series", b"time_series", "view", b"view"], + 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["time_series", b"time_series", "view", b"view"], + field_name: typing_extensions___Literal[ + "default_known_time", + b"default_known_time", + "time_series", + b"time_series", + "view", + b"view", + ], ) -> None: ... type___UpdateTimeSeriesRequest = UpdateTimeSeriesRequest 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 0e210ba..6919a7c 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 @@ -25,61 +25,31 @@ def __init__(self, channel): 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.ListTimeSeries2 = channel.unary_unary( - "/exabel.api.data.v1.TimeSeriesService/ListTimeSeries2", - 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, ) - self.GetTimeSeries2 = channel.unary_unary( - "/exabel.api.data.v1.TimeSeriesService/GetTimeSeries2", - 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, ) - self.CreateTimeSeries2 = channel.unary_unary( - "/exabel.api.data.v1.TimeSeriesService/CreateTimeSeries2", - 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, ) - self.UpdateTimeSeries2 = channel.unary_unary( - "/exabel.api.data.v1.TimeSeriesService/UpdateTimeSeries2", - 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, ) - self.DeleteTimeSeries2 = channel.unary_unary( - "/exabel.api.data.v1.TimeSeriesService/DeleteTimeSeries2", - 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, ) - self.BatchDeleteTimeSeriesPoints2 = channel.unary_unary( - "/exabel.api.data.v1.TimeSeriesService/BatchDeleteTimeSeriesPoints2", - 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): @@ -91,20 +61,11 @@ def ListTimeSeries(self, request, context): context.set_details("Method not implemented!") raise NotImplementedError("Method not implemented!") - def ListTimeSeries2(self, request, context): - """The same request as ListTimeSeries, but with an alternative path.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details("Method not implemented!") - raise NotImplementedError("Method not implemented!") - def GetTimeSeries(self, request, context): - """Gets one time series.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details("Method not implemented!") - raise NotImplementedError("Method not implemented!") - - def GetTimeSeries2(self, request, context): - """The same request as GetTimeSeries, but with an alternative path.""" + """Gets one time series. The known_time (of present) must be formatted + according to RFC3339, as specified by + 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!") @@ -115,12 +76,6 @@ def CreateTimeSeries(self, request, context): context.set_details("Method not implemented!") raise NotImplementedError("Method not implemented!") - def CreateTimeSeries2(self, request, context): - """The same request as CreateTimeSeries, but with an alternative path.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - 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. @@ -129,24 +84,12 @@ def UpdateTimeSeries(self, request, context): context.set_details("Method not implemented!") raise NotImplementedError("Method not implemented!") - def UpdateTimeSeries2(self, request, context): - """The same request as UpdateTimeSeries, but with an alternative path.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - 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.""" context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details("Method not implemented!") raise NotImplementedError("Method not implemented!") - def DeleteTimeSeries2(self, request, context): - """The same request as DeleteTimeSeries, but with an alternative path.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - 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 will not. With this request, it is possible to delete all points from a time series, but not @@ -156,12 +99,6 @@ def BatchDeleteTimeSeriesPoints(self, request, context): context.set_details("Method not implemented!") raise NotImplementedError("Method not implemented!") - def BatchDeleteTimeSeriesPoints2(self, request, context): - """The same request as BatchDeleteTimeSeries, but with an alternative path.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details("Method not implemented!") - raise NotImplementedError("Method not implemented!") - def add_TimeSeriesServiceServicer_to_server(servicer, server): rpc_method_handlers = { @@ -170,61 +107,31 @@ def add_TimeSeriesServiceServicer_to_server(servicer, server): 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, ), - "ListTimeSeries2": grpc.unary_unary_rpc_method_handler( - servicer.ListTimeSeries2, - 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, ), - "GetTimeSeries2": grpc.unary_unary_rpc_method_handler( - servicer.GetTimeSeries2, - 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, ), - "CreateTimeSeries2": grpc.unary_unary_rpc_method_handler( - servicer.CreateTimeSeries2, - 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, ), - "UpdateTimeSeries2": grpc.unary_unary_rpc_method_handler( - servicer.UpdateTimeSeries2, - 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, ), - "DeleteTimeSeries2": grpc.unary_unary_rpc_method_handler( - servicer.DeleteTimeSeries2, - 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, ), - "BatchDeleteTimeSeriesPoints2": grpc.unary_unary_rpc_method_handler( - servicer.BatchDeleteTimeSeriesPoints2, - 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 @@ -265,35 +172,6 @@ def ListTimeSeries( metadata, ) - @staticmethod - def ListTimeSeries2( - request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None, - ): - return grpc.experimental.unary_unary( - request, - target, - "/exabel.api.data.v1.TimeSeriesService/ListTimeSeries2", - 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, - ) - @staticmethod def GetTimeSeries( request, @@ -323,35 +201,6 @@ def GetTimeSeries( metadata, ) - @staticmethod - def GetTimeSeries2( - request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None, - ): - return grpc.experimental.unary_unary( - request, - target, - "/exabel.api.data.v1.TimeSeriesService/GetTimeSeries2", - 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, - ) - @staticmethod def CreateTimeSeries( request, @@ -381,35 +230,6 @@ def CreateTimeSeries( metadata, ) - @staticmethod - def CreateTimeSeries2( - request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None, - ): - return grpc.experimental.unary_unary( - request, - target, - "/exabel.api.data.v1.TimeSeriesService/CreateTimeSeries2", - 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, - ) - @staticmethod def UpdateTimeSeries( request, @@ -439,35 +259,6 @@ def UpdateTimeSeries( metadata, ) - @staticmethod - def UpdateTimeSeries2( - request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None, - ): - return grpc.experimental.unary_unary( - request, - target, - "/exabel.api.data.v1.TimeSeriesService/UpdateTimeSeries2", - 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, - ) - @staticmethod def DeleteTimeSeries( request, @@ -497,35 +288,6 @@ def DeleteTimeSeries( metadata, ) - @staticmethod - def DeleteTimeSeries2( - request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None, - ): - return grpc.experimental.unary_unary( - request, - target, - "/exabel.api.data.v1.TimeSeriesService/DeleteTimeSeries2", - 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, - ) - @staticmethod def BatchDeleteTimeSeriesPoints( request, @@ -554,32 +316,3 @@ def BatchDeleteTimeSeriesPoints( timeout, metadata, ) - - @staticmethod - def BatchDeleteTimeSeriesPoints2( - request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None, - ): - return grpc.experimental.unary_unary( - request, - target, - "/exabel.api.data.v1.TimeSeriesService/BatchDeleteTimeSeriesPoints2", - 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, - ) 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 936256d..4cd4c31 100644 --- a/exabel_data_sdk/stubs/exabel/api/math/aggregation_pb2.pyi +++ b/exabel_data_sdk/stubs/exabel/api/math/aggregation_pb2.pyi @@ -1,18 +1,24 @@ -# @generated by generate_proto_mypy_stubs.py. Do not edit! -import sys -from typing import NewType as typing___NewType -from typing import cast as typing___cast - +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" from google.protobuf.descriptor import ( EnumDescriptor as google___protobuf___descriptor___EnumDescriptor, -) -from google.protobuf.descriptor import ( FileDescriptor as google___protobuf___descriptor___FileDescriptor, ) + from google.protobuf.internal.enum_type_wrapper import ( _EnumTypeWrapper as google___protobuf___internal___enum_type_wrapper____EnumTypeWrapper, ) -from google.protobuf.message import Message as google___protobuf___message___Message + +from google.protobuf.message import ( + Message as google___protobuf___message___Message, +) + +from typing import ( + NewType as typing___NewType, + cast as typing___cast, +) builtin___int = int @@ -41,4 +47,3 @@ LAST = typing___cast(AggregationValue, 3) SUM = typing___cast(AggregationValue, 4) MIN = typing___cast(AggregationValue, 5) MAX = typing___cast(AggregationValue, 6) -type___Aggregation = Aggregation 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 87c03ee..7030772 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 @@ -1,14 +1,27 @@ -# @generated by generate_proto_mypy_stubs.py. Do not edit! -import sys -from typing import Optional as typing___Optional - -from google.protobuf.descriptor import Descriptor as google___protobuf___descriptor___Descriptor +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" from google.protobuf.descriptor import ( + Descriptor as google___protobuf___descriptor___Descriptor, FileDescriptor as google___protobuf___descriptor___FileDescriptor, ) -from google.protobuf.message import Message as google___protobuf___message___Message -from google.protobuf.timestamp_pb2 import Timestamp as google___protobuf___timestamp_pb2___Timestamp -from typing_extensions import Literal as typing_extensions___Literal + +from google.protobuf.message import ( + Message as google___protobuf___message___Message, +) + +from google.protobuf.timestamp_pb2 import ( + Timestamp as google___protobuf___timestamp_pb2___Timestamp, +) + +from typing import ( + Optional as typing___Optional, +) + +from typing_extensions import ( + Literal as typing_extensions___Literal, +) builtin___bool = bool builtin___bytes = bytes diff --git a/exabel_data_sdk/stubs/google/api/annotations_pb2.pyi b/exabel_data_sdk/stubs/google/api/annotations_pb2.pyi index 607525e..11cc19b 100644 --- a/exabel_data_sdk/stubs/google/api/annotations_pb2.pyi +++ b/exabel_data_sdk/stubs/google/api/annotations_pb2.pyi @@ -1,13 +1,15 @@ -# @generated by generate_proto_mypy_stubs.py. Do not edit! -import sys - +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" from google.protobuf.descriptor import ( FieldDescriptor as google___protobuf___descriptor___FieldDescriptor, -) -from google.protobuf.descriptor import ( FileDescriptor as google___protobuf___descriptor___FileDescriptor, ) -from google.protobuf.message import Message as google___protobuf___message___Message + +from google.protobuf.message import ( + Message as google___protobuf___message___Message, +) DESCRIPTOR: google___protobuf___descriptor___FileDescriptor = ... diff --git a/exabel_data_sdk/stubs/google/api/http_pb2.pyi b/exabel_data_sdk/stubs/google/api/http_pb2.pyi index fa12560..8882365 100644 --- a/exabel_data_sdk/stubs/google/api/http_pb2.pyi +++ b/exabel_data_sdk/stubs/google/api/http_pb2.pyi @@ -1,18 +1,29 @@ -# @generated by generate_proto_mypy_stubs.py. Do not edit! -import sys -from typing import Iterable as typing___Iterable -from typing import Optional as typing___Optional -from typing import Text as typing___Text - -from google.protobuf.descriptor import Descriptor as google___protobuf___descriptor___Descriptor +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" from google.protobuf.descriptor import ( + Descriptor as google___protobuf___descriptor___Descriptor, FileDescriptor as google___protobuf___descriptor___FileDescriptor, ) + from google.protobuf.internal.containers import ( RepeatedCompositeFieldContainer as google___protobuf___internal___containers___RepeatedCompositeFieldContainer, ) -from google.protobuf.message import Message as google___protobuf___message___Message -from typing_extensions import Literal as typing_extensions___Literal + +from google.protobuf.message import ( + Message as google___protobuf___message___Message, +) + +from typing import ( + Iterable as typing___Iterable, + Optional as typing___Optional, + Text as typing___Text, +) + +from typing_extensions import ( + Literal as typing_extensions___Literal, +) builtin___bool = bool builtin___bytes = bytes @@ -39,10 +50,7 @@ class Http(google___protobuf___message___Message): def ClearField( self, field_name: typing_extensions___Literal[ - "fully_decode_reserved_expansion", - b"fully_decode_reserved_expansion", - "rules", - b"rules", + "fully_decode_reserved_expansion", b"fully_decode_reserved_expansion", "rules", b"rules" ], ) -> None: ... diff --git a/setup.py b/setup.py index be6eba5..559e076 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ setuptools.setup( name="exabel-data-sdk", - version="0.0.11", + version="0.0.12", author="Exabel", author_email="support@exabel.com", description="Python SDK for the Exabel Data API",