-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Drop support for protobuf v3 (#1688)
- Loading branch information
Showing
14 changed files
with
153 additions
and
1,071 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,81 +1,37 @@ | ||
""" | ||
@generated by mypy-protobuf. Do not edit manually! | ||
isort:skip_file | ||
""" | ||
import builtins | ||
import collections.abc | ||
import data_points_pb2 | ||
import google.protobuf.descriptor | ||
import google.protobuf.internal.containers | ||
import google.protobuf.message | ||
import sys | ||
|
||
if sys.version_info >= (3, 8): | ||
import typing as typing_extensions | ||
else: | ||
import typing_extensions | ||
|
||
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor | ||
|
||
@typing_extensions.final | ||
class DataPointListItem(google.protobuf.message.Message): | ||
DESCRIPTOR: google.protobuf.descriptor.Descriptor | ||
|
||
ID_FIELD_NUMBER: builtins.int | ||
EXTERNALID_FIELD_NUMBER: builtins.int | ||
ISSTRING_FIELD_NUMBER: builtins.int | ||
ISSTEP_FIELD_NUMBER: builtins.int | ||
UNIT_FIELD_NUMBER: builtins.int | ||
NEXTCURSOR_FIELD_NUMBER: builtins.int | ||
UNITEXTERNALID_FIELD_NUMBER: builtins.int | ||
NUMERICDATAPOINTS_FIELD_NUMBER: builtins.int | ||
STRINGDATAPOINTS_FIELD_NUMBER: builtins.int | ||
AGGREGATEDATAPOINTS_FIELD_NUMBER: builtins.int | ||
id: builtins.int | ||
externalId: builtins.str | ||
isString: builtins.bool | ||
isStep: builtins.bool | ||
unit: builtins.str | ||
nextCursor: builtins.str | ||
unitExternalId: builtins.str | ||
@property | ||
def numericDatapoints(self) -> data_points_pb2.NumericDatapoints: ... | ||
@property | ||
def stringDatapoints(self) -> data_points_pb2.StringDatapoints: ... | ||
@property | ||
def aggregateDatapoints(self) -> data_points_pb2.AggregateDatapoints: ... | ||
def __init__( | ||
self, | ||
*, | ||
id: builtins.int = ..., | ||
externalId: builtins.str = ..., | ||
isString: builtins.bool = ..., | ||
isStep: builtins.bool = ..., | ||
unit: builtins.str = ..., | ||
nextCursor: builtins.str = ..., | ||
unitExternalId: builtins.str = ..., | ||
numericDatapoints: data_points_pb2.NumericDatapoints | None = ..., | ||
stringDatapoints: data_points_pb2.StringDatapoints | None = ..., | ||
aggregateDatapoints: data_points_pb2.AggregateDatapoints | None = ..., | ||
) -> None: ... | ||
def HasField(self, field_name: typing_extensions.Literal["aggregateDatapoints", b"aggregateDatapoints", "datapointType", b"datapointType", "numericDatapoints", b"numericDatapoints", "stringDatapoints", b"stringDatapoints"]) -> builtins.bool: ... | ||
def ClearField(self, field_name: typing_extensions.Literal["aggregateDatapoints", b"aggregateDatapoints", "datapointType", b"datapointType", "externalId", b"externalId", "id", b"id", "isStep", b"isStep", "isString", b"isString", "nextCursor", b"nextCursor", "numericDatapoints", b"numericDatapoints", "stringDatapoints", b"stringDatapoints", "unit", b"unit", "unitExternalId", b"unitExternalId"]) -> None: ... | ||
def WhichOneof(self, oneof_group: typing_extensions.Literal["datapointType", b"datapointType"]) -> typing_extensions.Literal["numericDatapoints", "stringDatapoints", "aggregateDatapoints"] | None: ... | ||
|
||
global___DataPointListItem = DataPointListItem | ||
|
||
@typing_extensions.final | ||
class DataPointListResponse(google.protobuf.message.Message): | ||
DESCRIPTOR: google.protobuf.descriptor.Descriptor | ||
|
||
ITEMS_FIELD_NUMBER: builtins.int | ||
@property | ||
def items(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___DataPointListItem]: ... | ||
def __init__( | ||
self, | ||
*, | ||
items: collections.abc.Iterable[global___DataPointListItem] | None = ..., | ||
) -> None: ... | ||
def ClearField(self, field_name: typing_extensions.Literal["items", b"items"]) -> None: ... | ||
|
||
global___DataPointListResponse = DataPointListResponse | ||
import data_points_pb2 as _data_points_pb2 | ||
from google.protobuf.internal import containers as _containers | ||
from google.protobuf import descriptor as _descriptor | ||
from google.protobuf import message as _message | ||
from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union | ||
|
||
DESCRIPTOR: _descriptor.FileDescriptor | ||
|
||
class DataPointListItem(_message.Message): | ||
__slots__ = ("id", "externalId", "isString", "isStep", "unit", "nextCursor", "unitExternalId", "numericDatapoints", "stringDatapoints", "aggregateDatapoints") | ||
ID_FIELD_NUMBER: _ClassVar[int] | ||
EXTERNALID_FIELD_NUMBER: _ClassVar[int] | ||
ISSTRING_FIELD_NUMBER: _ClassVar[int] | ||
ISSTEP_FIELD_NUMBER: _ClassVar[int] | ||
UNIT_FIELD_NUMBER: _ClassVar[int] | ||
NEXTCURSOR_FIELD_NUMBER: _ClassVar[int] | ||
UNITEXTERNALID_FIELD_NUMBER: _ClassVar[int] | ||
NUMERICDATAPOINTS_FIELD_NUMBER: _ClassVar[int] | ||
STRINGDATAPOINTS_FIELD_NUMBER: _ClassVar[int] | ||
AGGREGATEDATAPOINTS_FIELD_NUMBER: _ClassVar[int] | ||
id: int | ||
externalId: str | ||
isString: bool | ||
isStep: bool | ||
unit: str | ||
nextCursor: str | ||
unitExternalId: str | ||
numericDatapoints: _data_points_pb2.NumericDatapoints | ||
stringDatapoints: _data_points_pb2.StringDatapoints | ||
aggregateDatapoints: _data_points_pb2.AggregateDatapoints | ||
def __init__(self, id: _Optional[int] = ..., externalId: _Optional[str] = ..., isString: bool = ..., isStep: bool = ..., unit: _Optional[str] = ..., nextCursor: _Optional[str] = ..., unitExternalId: _Optional[str] = ..., numericDatapoints: _Optional[_Union[_data_points_pb2.NumericDatapoints, _Mapping]] = ..., stringDatapoints: _Optional[_Union[_data_points_pb2.StringDatapoints, _Mapping]] = ..., aggregateDatapoints: _Optional[_Union[_data_points_pb2.AggregateDatapoints, _Mapping]] = ...) -> None: ... | ||
|
||
class DataPointListResponse(_message.Message): | ||
__slots__ = ("items",) | ||
ITEMS_FIELD_NUMBER: _ClassVar[int] | ||
items: _containers.RepeatedCompositeFieldContainer[DataPointListItem] | ||
def __init__(self, items: _Optional[_Iterable[_Union[DataPointListItem, _Mapping]]] = ...) -> None: ... |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.