From 748f3322943dd5eeb411a451f91d571b60459938 Mon Sep 17 00:00:00 2001 From: henribru <6639509+henribru@users.noreply.github.com> Date: Thu, 1 Oct 2020 20:31:47 +0200 Subject: [PATCH] Add compatibility with v1.52.0 --- google-stubs/__init__.pyi | 1 + google-stubs/api/annotations_pb2.pyi | 10 +- google-stubs/api/auth_pb2.pyi | 233 +++++---- google-stubs/api/backend_pb2.pyi | 133 ++--- google-stubs/api/billing_pb2.pyi | 93 ++-- google-stubs/api/client_pb2.pyi | 14 +- google-stubs/api/config_change_pb2.pyi | 147 +++--- google-stubs/api/consumer_pb2.pyi | 136 ++--- google-stubs/api/context_pb2.pyi | 98 ++-- google-stubs/api/control_pb2.pyi | 45 +- google-stubs/api/distribution_pb2.pyi | 365 +++++++------ google-stubs/api/documentation_pb2.pyi | 167 +++--- google-stubs/api/endpoint_pb2.pyi | 83 +-- google-stubs/api/field_behavior_pb2.pyi | 64 +-- google-stubs/api/http_pb2.pyi | 211 +++++--- google-stubs/api/httpbody_pb2.pyi | 75 +-- google-stubs/api/label_pb2.pyi | 95 ++-- google-stubs/api/launch_stage_pb2.pyi | 62 +-- google-stubs/api/log_pb2.pyi | 80 +-- google-stubs/api/logging_pb2.pyi | 107 ++-- google-stubs/api/metric_pb2.pyi | 301 +++++------ google-stubs/api/monitored_resource_pb2.pyi | 222 ++++---- google-stubs/api/monitoring_pb2.pyi | 107 ++-- google-stubs/api/quota_pb2.pyi | 241 +++++---- google-stubs/api/resource_pb2.pyi | 157 +++--- google-stubs/api/service_pb2.pyi | 370 ++++++++------ google-stubs/api/source_info_pb2.pyi | 56 +- google-stubs/api/system_parameter_pb2.pyi | 130 ++--- google-stubs/api/usage_pb2.pyi | 113 +++-- google-stubs/logging/__init__.pyi | 1 + .../logging/type/http_request_pb2.pyi | 138 +++-- .../logging/type/log_severity_pb2.pyi | 74 +-- google-stubs/longrunning/operations_pb2.pyi | 212 +------- google-stubs/rpc/__init__.pyi | 1 + google-stubs/rpc/code_pb2.pyi | 104 ++-- google-stubs/rpc/error_details_pb2.pyi | 478 ++++++++++-------- google-stubs/rpc/status_pb2.pyi | 70 +-- google-stubs/type/calendar_period_pb2.pyi | 70 +-- google-stubs/type/color_pb2.pyi | 64 ++- google-stubs/type/date_pb2.pyi | 55 +- google-stubs/type/dayofweek_pb2.pyi | 68 ++- google-stubs/type/expr_pb2.pyi | 67 +-- google-stubs/type/fraction_pb2.pyi | 51 +- google-stubs/type/latlng_pb2.pyi | 51 +- google-stubs/type/money_pb2.pyi | 56 +- google-stubs/type/postal_address_pb2.pyi | 119 +++-- google-stubs/type/quaternion_pb2.pyi | 59 ++- google-stubs/type/timeofday_pb2.pyi | 66 +-- pyproject.toml | 2 +- 49 files changed, 2958 insertions(+), 2764 deletions(-) diff --git a/google-stubs/__init__.pyi b/google-stubs/__init__.pyi index e69de29..8b13789 100644 --- a/google-stubs/__init__.pyi +++ b/google-stubs/__init__.pyi @@ -0,0 +1 @@ + diff --git a/google-stubs/api/annotations_pb2.pyi b/google-stubs/api/annotations_pb2.pyi index 0b3aa18..af6c6f8 100644 --- a/google-stubs/api/annotations_pb2.pyi +++ b/google-stubs/api/annotations_pb2.pyi @@ -1,12 +1,12 @@ # @generated by generate_proto_mypy_stubs.py. Do not edit! import sys + from google.protobuf.descriptor import ( FieldDescriptor as google___protobuf___descriptor___FieldDescriptor, + FileDescriptor as google___protobuf___descriptor___FileDescriptor, ) +from google.protobuf.message import Message as google___protobuf___message___Message -from google.protobuf.message import ( - Message as google___protobuf___message___Message, -) - +DESCRIPTOR: google___protobuf___descriptor___FileDescriptor = ... -http = ... # type: google___protobuf___descriptor___FieldDescriptor +http: google___protobuf___descriptor___FieldDescriptor = ... diff --git a/google-stubs/api/auth_pb2.pyi b/google-stubs/api/auth_pb2.pyi index 78b4d8e..3f02159 100644 --- a/google-stubs/api/auth_pb2.pyi +++ b/google-stubs/api/auth_pb2.pyi @@ -1,137 +1,164 @@ # @generated by generate_proto_mypy_stubs.py. Do not edit! import sys -from google.protobuf.descriptor import ( - Descriptor as google___protobuf___descriptor___Descriptor, -) - -from google.protobuf.internal.containers import ( - RepeatedCompositeFieldContainer as google___protobuf___internal___containers___RepeatedCompositeFieldContainer, -) - -from google.protobuf.message import ( - Message as google___protobuf___message___Message, -) - from typing import ( Iterable as typing___Iterable, Optional as typing___Optional, Text as typing___Text, ) -from typing_extensions import ( - Literal as typing_extensions___Literal, +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 +builtin___bool = bool +builtin___bytes = bytes +builtin___float = float +builtin___int = int + +DESCRIPTOR: google___protobuf___descriptor___FileDescriptor = ... class Authentication(google___protobuf___message___Message): DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - @property - def rules(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[AuthenticationRule]: ... - + def rules( + self, + ) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[ + type___AuthenticationRule + ]: ... @property - def providers(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[AuthProvider]: ... - - def __init__(self, + def providers( + self, + ) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[ + type___AuthProvider + ]: ... + def __init__( + self, *, - rules : typing___Optional[typing___Iterable[AuthenticationRule]] = None, - providers : typing___Optional[typing___Iterable[AuthProvider]] = None, - ) -> None: ... - @classmethod - def FromString(cls, s: bytes) -> Authentication: ... - def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - if sys.version_info >= (3,): - def ClearField(self, field_name: typing_extensions___Literal[u"providers",u"rules"]) -> None: ... - else: - def ClearField(self, field_name: typing_extensions___Literal[u"providers",b"providers",u"rules",b"rules"]) -> None: ... + rules: typing___Optional[typing___Iterable[type___AuthenticationRule]] = None, + providers: typing___Optional[typing___Iterable[type___AuthProvider]] = None, + ) -> None: ... + def ClearField( + self, + field_name: typing_extensions___Literal[ + "providers", b"providers", "rules", b"rules" + ], + ) -> None: ... + +type___Authentication = Authentication class AuthenticationRule(google___protobuf___message___Message): DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - selector = ... # type: typing___Text - allow_without_credential = ... # type: bool - + selector: typing___Text = ... + allow_without_credential: builtin___bool = ... @property - def oauth(self) -> OAuthRequirements: ... - + def oauth(self) -> type___OAuthRequirements: ... @property - def requirements(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[AuthRequirement]: ... - - def __init__(self, + def requirements( + self, + ) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[ + type___AuthRequirement + ]: ... + def __init__( + self, *, - selector : typing___Optional[typing___Text] = None, - oauth : typing___Optional[OAuthRequirements] = None, - allow_without_credential : typing___Optional[bool] = None, - requirements : typing___Optional[typing___Iterable[AuthRequirement]] = None, - ) -> None: ... - @classmethod - def FromString(cls, s: bytes) -> AuthenticationRule: ... - def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - if sys.version_info >= (3,): - def HasField(self, field_name: typing_extensions___Literal[u"oauth"]) -> bool: ... - def ClearField(self, field_name: typing_extensions___Literal[u"allow_without_credential",u"oauth",u"requirements",u"selector"]) -> None: ... - else: - def HasField(self, field_name: typing_extensions___Literal[u"oauth",b"oauth"]) -> bool: ... - def ClearField(self, field_name: typing_extensions___Literal[u"allow_without_credential",b"allow_without_credential",u"oauth",b"oauth",u"requirements",b"requirements",u"selector",b"selector"]) -> None: ... + selector: typing___Optional[typing___Text] = None, + oauth: typing___Optional[type___OAuthRequirements] = None, + allow_without_credential: typing___Optional[builtin___bool] = None, + requirements: typing___Optional[ + typing___Iterable[type___AuthRequirement] + ] = None, + ) -> None: ... + def HasField( + self, field_name: typing_extensions___Literal["oauth", b"oauth"] + ) -> builtin___bool: ... + def ClearField( + self, + field_name: typing_extensions___Literal[ + "allow_without_credential", + b"allow_without_credential", + "oauth", + b"oauth", + "requirements", + b"requirements", + "selector", + b"selector", + ], + ) -> None: ... + +type___AuthenticationRule = AuthenticationRule class AuthProvider(google___protobuf___message___Message): DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - id = ... # type: typing___Text - issuer = ... # type: typing___Text - jwks_uri = ... # type: typing___Text - audiences = ... # type: typing___Text - authorization_url = ... # type: typing___Text - - def __init__(self, + id: typing___Text = ... + issuer: typing___Text = ... + jwks_uri: typing___Text = ... + audiences: typing___Text = ... + authorization_url: typing___Text = ... + def __init__( + self, *, - id : typing___Optional[typing___Text] = None, - issuer : typing___Optional[typing___Text] = None, - jwks_uri : typing___Optional[typing___Text] = None, - audiences : typing___Optional[typing___Text] = None, - authorization_url : typing___Optional[typing___Text] = None, - ) -> None: ... - @classmethod - def FromString(cls, s: bytes) -> AuthProvider: ... - def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - if sys.version_info >= (3,): - def ClearField(self, field_name: typing_extensions___Literal[u"audiences",u"authorization_url",u"id",u"issuer",u"jwks_uri"]) -> None: ... - else: - def ClearField(self, field_name: typing_extensions___Literal[u"audiences",b"audiences",u"authorization_url",b"authorization_url",u"id",b"id",u"issuer",b"issuer",u"jwks_uri",b"jwks_uri"]) -> None: ... + id: typing___Optional[typing___Text] = None, + issuer: typing___Optional[typing___Text] = None, + jwks_uri: typing___Optional[typing___Text] = None, + audiences: typing___Optional[typing___Text] = None, + authorization_url: typing___Optional[typing___Text] = None, + ) -> None: ... + def ClearField( + self, + field_name: typing_extensions___Literal[ + "audiences", + b"audiences", + "authorization_url", + b"authorization_url", + "id", + b"id", + "issuer", + b"issuer", + "jwks_uri", + b"jwks_uri", + ], + ) -> None: ... + +type___AuthProvider = AuthProvider class OAuthRequirements(google___protobuf___message___Message): DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - canonical_scopes = ... # type: typing___Text - - def __init__(self, + canonical_scopes: typing___Text = ... + def __init__( + self, *, - canonical_scopes : typing___Optional[typing___Text] = None, - ) -> None: ... - @classmethod - def FromString(cls, s: bytes) -> OAuthRequirements: ... - def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - if sys.version_info >= (3,): - def ClearField(self, field_name: typing_extensions___Literal[u"canonical_scopes"]) -> None: ... - else: - def ClearField(self, field_name: typing_extensions___Literal[u"canonical_scopes",b"canonical_scopes"]) -> None: ... + canonical_scopes: typing___Optional[typing___Text] = None, + ) -> None: ... + def ClearField( + self, + field_name: typing_extensions___Literal[ + "canonical_scopes", b"canonical_scopes" + ], + ) -> None: ... + +type___OAuthRequirements = OAuthRequirements class AuthRequirement(google___protobuf___message___Message): DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - provider_id = ... # type: typing___Text - audiences = ... # type: typing___Text - - def __init__(self, + provider_id: typing___Text = ... + audiences: typing___Text = ... + def __init__( + self, *, - provider_id : typing___Optional[typing___Text] = None, - audiences : typing___Optional[typing___Text] = None, - ) -> None: ... - @classmethod - def FromString(cls, s: bytes) -> AuthRequirement: ... - def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - if sys.version_info >= (3,): - def ClearField(self, field_name: typing_extensions___Literal[u"audiences",u"provider_id"]) -> None: ... - else: - def ClearField(self, field_name: typing_extensions___Literal[u"audiences",b"audiences",u"provider_id",b"provider_id"]) -> None: ... + provider_id: typing___Optional[typing___Text] = None, + audiences: typing___Optional[typing___Text] = None, + ) -> None: ... + def ClearField( + self, + field_name: typing_extensions___Literal[ + "audiences", b"audiences", "provider_id", b"provider_id" + ], + ) -> None: ... + +type___AuthRequirement = AuthRequirement diff --git a/google-stubs/api/backend_pb2.pyi b/google-stubs/api/backend_pb2.pyi index 0e2aa6e..758cc38 100644 --- a/google-stubs/api/backend_pb2.pyi +++ b/google-stubs/api/backend_pb2.pyi @@ -1,98 +1,73 @@ # @generated by generate_proto_mypy_stubs.py. Do not edit! import sys -from google.protobuf.descriptor import ( - Descriptor as google___protobuf___descriptor___Descriptor, - EnumDescriptor as google___protobuf___descriptor___EnumDescriptor, -) - -from google.protobuf.internal.containers import ( - RepeatedCompositeFieldContainer as google___protobuf___internal___containers___RepeatedCompositeFieldContainer, -) - -from google.protobuf.message import ( - Message as google___protobuf___message___Message, -) - from typing import ( Iterable as typing___Iterable, - List as typing___List, Optional as typing___Optional, Text as typing___Text, - Tuple as typing___Tuple, - cast as typing___cast, ) -from typing_extensions import ( - Literal as typing_extensions___Literal, +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 + +builtin___bool = bool +builtin___bytes = bytes +builtin___float = float +builtin___int = int +DESCRIPTOR: google___protobuf___descriptor___FileDescriptor = ... class Backend(google___protobuf___message___Message): DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - @property - def rules(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[BackendRule]: ... - - def __init__(self, + def rules( + self, + ) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[ + type___BackendRule + ]: ... + def __init__( + self, *, - rules : typing___Optional[typing___Iterable[BackendRule]] = None, - ) -> None: ... - @classmethod - def FromString(cls, s: bytes) -> Backend: ... - def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - if sys.version_info >= (3,): - def ClearField(self, field_name: typing_extensions___Literal[u"rules"]) -> None: ... - else: - def ClearField(self, field_name: typing_extensions___Literal[u"rules",b"rules"]) -> None: ... + rules: typing___Optional[typing___Iterable[type___BackendRule]] = None, + ) -> None: ... + def ClearField( + self, field_name: typing_extensions___Literal["rules", b"rules"] + ) -> None: ... + +type___Backend = Backend class BackendRule(google___protobuf___message___Message): DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - class PathTranslation(int): - DESCRIPTOR: google___protobuf___descriptor___EnumDescriptor = ... - @classmethod - def Name(cls, number: int) -> str: ... - @classmethod - def Value(cls, name: str) -> BackendRule.PathTranslation: ... - @classmethod - def keys(cls) -> typing___List[str]: ... - @classmethod - def values(cls) -> typing___List[BackendRule.PathTranslation]: ... - @classmethod - def items(cls) -> typing___List[typing___Tuple[str, BackendRule.PathTranslation]]: ... - PATH_TRANSLATION_UNSPECIFIED = typing___cast(BackendRule.PathTranslation, 0) - CONSTANT_ADDRESS = typing___cast(BackendRule.PathTranslation, 1) - APPEND_PATH_TO_ADDRESS = typing___cast(BackendRule.PathTranslation, 2) - PATH_TRANSLATION_UNSPECIFIED = typing___cast(BackendRule.PathTranslation, 0) - CONSTANT_ADDRESS = typing___cast(BackendRule.PathTranslation, 1) - APPEND_PATH_TO_ADDRESS = typing___cast(BackendRule.PathTranslation, 2) - - selector = ... # type: typing___Text - address = ... # type: typing___Text - deadline = ... # type: float - min_deadline = ... # type: float - operation_deadline = ... # type: float - path_translation = ... # type: BackendRule.PathTranslation - jwt_audience = ... # type: typing___Text - - def __init__(self, + selector: typing___Text = ... + address: typing___Text = ... + deadline: builtin___float = ... + min_deadline: builtin___float = ... + def __init__( + self, *, - selector : typing___Optional[typing___Text] = None, - address : typing___Optional[typing___Text] = None, - deadline : typing___Optional[float] = None, - min_deadline : typing___Optional[float] = None, - operation_deadline : typing___Optional[float] = None, - path_translation : typing___Optional[BackendRule.PathTranslation] = None, - jwt_audience : typing___Optional[typing___Text] = None, - ) -> None: ... - @classmethod - def FromString(cls, s: bytes) -> BackendRule: ... - def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - if sys.version_info >= (3,): - def HasField(self, field_name: typing_extensions___Literal[u"authentication",u"jwt_audience"]) -> bool: ... - def ClearField(self, field_name: typing_extensions___Literal[u"address",u"authentication",u"deadline",u"jwt_audience",u"min_deadline",u"operation_deadline",u"path_translation",u"selector"]) -> None: ... - else: - def HasField(self, field_name: typing_extensions___Literal[u"authentication",b"authentication",u"jwt_audience",b"jwt_audience"]) -> bool: ... - def ClearField(self, field_name: typing_extensions___Literal[u"address",b"address",u"authentication",b"authentication",u"deadline",b"deadline",u"jwt_audience",b"jwt_audience",u"min_deadline",b"min_deadline",u"operation_deadline",b"operation_deadline",u"path_translation",b"path_translation",u"selector",b"selector"]) -> None: ... - def WhichOneof(self, oneof_group: typing_extensions___Literal[u"authentication",b"authentication"]) -> typing_extensions___Literal["jwt_audience"]: ... + selector: typing___Optional[typing___Text] = None, + address: typing___Optional[typing___Text] = None, + deadline: typing___Optional[builtin___float] = None, + min_deadline: typing___Optional[builtin___float] = None, + ) -> None: ... + def ClearField( + self, + field_name: typing_extensions___Literal[ + "address", + b"address", + "deadline", + b"deadline", + "min_deadline", + b"min_deadline", + "selector", + b"selector", + ], + ) -> None: ... + +type___BackendRule = BackendRule diff --git a/google-stubs/api/billing_pb2.pyi b/google-stubs/api/billing_pb2.pyi index 7dd8c0d..c43ef2e 100644 --- a/google-stubs/api/billing_pb2.pyi +++ b/google-stubs/api/billing_pb2.pyi @@ -1,63 +1,68 @@ # @generated by generate_proto_mypy_stubs.py. Do not edit! import sys +from typing import ( + Iterable as typing___Iterable, + Optional as typing___Optional, + Text as typing___Text, +) + 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, RepeatedScalarFieldContainer as google___protobuf___internal___containers___RepeatedScalarFieldContainer, ) +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 +builtin___float = float +builtin___int = int +DESCRIPTOR: google___protobuf___descriptor___FileDescriptor = ... class Billing(google___protobuf___message___Message): DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... class BillingDestination(google___protobuf___message___Message): DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - monitored_resource = ... # type: typing___Text - metrics = ... # type: google___protobuf___internal___containers___RepeatedScalarFieldContainer[typing___Text] - - def __init__(self, + monitored_resource: typing___Text = ... + metrics: google___protobuf___internal___containers___RepeatedScalarFieldContainer[ + typing___Text + ] = ... + def __init__( + self, *, - monitored_resource : typing___Optional[typing___Text] = None, - metrics : typing___Optional[typing___Iterable[typing___Text]] = None, - ) -> None: ... - @classmethod - def FromString(cls, s: bytes) -> Billing.BillingDestination: ... - def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - if sys.version_info >= (3,): - def ClearField(self, field_name: typing_extensions___Literal[u"metrics",u"monitored_resource"]) -> None: ... - else: - def ClearField(self, field_name: typing_extensions___Literal[u"metrics",b"metrics",u"monitored_resource",b"monitored_resource"]) -> None: ... - - + monitored_resource: typing___Optional[typing___Text] = None, + metrics: typing___Optional[typing___Iterable[typing___Text]] = None, + ) -> None: ... + def ClearField( + self, + field_name: typing_extensions___Literal[ + "metrics", b"metrics", "monitored_resource", b"monitored_resource" + ], + ) -> None: ... + type___BillingDestination = BillingDestination @property - def consumer_destinations(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[Billing.BillingDestination]: ... - - def __init__(self, + def consumer_destinations( + self, + ) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[ + type___Billing.BillingDestination + ]: ... + def __init__( + self, *, - consumer_destinations : typing___Optional[typing___Iterable[Billing.BillingDestination]] = None, - ) -> None: ... - @classmethod - def FromString(cls, s: bytes) -> Billing: ... - def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - if sys.version_info >= (3,): - def ClearField(self, field_name: typing_extensions___Literal[u"consumer_destinations"]) -> None: ... - else: - def ClearField(self, field_name: typing_extensions___Literal[u"consumer_destinations",b"consumer_destinations"]) -> None: ... + consumer_destinations: typing___Optional[ + typing___Iterable[type___Billing.BillingDestination] + ] = None, + ) -> None: ... + def ClearField( + self, + field_name: typing_extensions___Literal[ + "consumer_destinations", b"consumer_destinations" + ], + ) -> None: ... + +type___Billing = Billing diff --git a/google-stubs/api/client_pb2.pyi b/google-stubs/api/client_pb2.pyi index 48df6f2..41e0d44 100644 --- a/google-stubs/api/client_pb2.pyi +++ b/google-stubs/api/client_pb2.pyi @@ -1,16 +1,16 @@ # @generated by generate_proto_mypy_stubs.py. Do not edit! import sys + from google.protobuf.descriptor import ( FieldDescriptor as google___protobuf___descriptor___FieldDescriptor, + FileDescriptor as google___protobuf___descriptor___FileDescriptor, ) +from google.protobuf.message import Message as google___protobuf___message___Message -from google.protobuf.message import ( - Message as google___protobuf___message___Message, -) - +DESCRIPTOR: google___protobuf___descriptor___FileDescriptor = ... -method_signature = ... # type: google___protobuf___descriptor___FieldDescriptor +default_host: google___protobuf___descriptor___FieldDescriptor = ... -default_host = ... # type: google___protobuf___descriptor___FieldDescriptor +oauth_scopes: google___protobuf___descriptor___FieldDescriptor = ... -oauth_scopes = ... # type: google___protobuf___descriptor___FieldDescriptor +method_signature: google___protobuf___descriptor___FieldDescriptor = ... diff --git a/google-stubs/api/config_change_pb2.pyi b/google-stubs/api/config_change_pb2.pyi index 21f10fa..3a977ce 100644 --- a/google-stubs/api/config_change_pb2.pyi +++ b/google-stubs/api/config_change_pb2.pyi @@ -1,93 +1,102 @@ # @generated by generate_proto_mypy_stubs.py. Do not edit! import sys +from typing import ( + Iterable as typing___Iterable, + NewType as typing___NewType, + Optional as typing___Optional, + Text as typing___Text, + cast as typing___cast, +) + from google.protobuf.descriptor import ( Descriptor as google___protobuf___descriptor___Descriptor, EnumDescriptor as google___protobuf___descriptor___EnumDescriptor, + 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.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 typing_extensions import Literal as typing_extensions___Literal -from typing import ( - Iterable as typing___Iterable, - List as typing___List, - Optional as typing___Optional, - Text as typing___Text, - Tuple as typing___Tuple, - cast as typing___cast, -) +builtin___bool = bool +builtin___bytes = bytes +builtin___float = float +builtin___int = int -from typing_extensions import ( - Literal as typing_extensions___Literal, -) +DESCRIPTOR: google___protobuf___descriptor___FileDescriptor = ... +ChangeTypeValue = typing___NewType("ChangeTypeValue", builtin___int) +type___ChangeTypeValue = ChangeTypeValue +ChangeType: _ChangeType -class ChangeType(int): +class _ChangeType( + google___protobuf___internal___enum_type_wrapper____EnumTypeWrapper[ChangeTypeValue] +): DESCRIPTOR: google___protobuf___descriptor___EnumDescriptor = ... - @classmethod - def Name(cls, number: int) -> str: ... - @classmethod - def Value(cls, name: str) -> ChangeType: ... - @classmethod - def keys(cls) -> typing___List[str]: ... - @classmethod - def values(cls) -> typing___List[ChangeType]: ... - @classmethod - def items(cls) -> typing___List[typing___Tuple[str, ChangeType]]: ... - CHANGE_TYPE_UNSPECIFIED = typing___cast(ChangeType, 0) - ADDED = typing___cast(ChangeType, 1) - REMOVED = typing___cast(ChangeType, 2) - MODIFIED = typing___cast(ChangeType, 3) -CHANGE_TYPE_UNSPECIFIED = typing___cast(ChangeType, 0) -ADDED = typing___cast(ChangeType, 1) -REMOVED = typing___cast(ChangeType, 2) -MODIFIED = typing___cast(ChangeType, 3) + CHANGE_TYPE_UNSPECIFIED = typing___cast(ChangeTypeValue, 0) + ADDED = typing___cast(ChangeTypeValue, 1) + REMOVED = typing___cast(ChangeTypeValue, 2) + MODIFIED = typing___cast(ChangeTypeValue, 3) + +CHANGE_TYPE_UNSPECIFIED = typing___cast(ChangeTypeValue, 0) +ADDED = typing___cast(ChangeTypeValue, 1) +REMOVED = typing___cast(ChangeTypeValue, 2) +MODIFIED = typing___cast(ChangeTypeValue, 3) +type___ChangeType = ChangeType class ConfigChange(google___protobuf___message___Message): DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - element = ... # type: typing___Text - old_value = ... # type: typing___Text - new_value = ... # type: typing___Text - change_type = ... # type: ChangeType - + element: typing___Text = ... + old_value: typing___Text = ... + new_value: typing___Text = ... + change_type: type___ChangeTypeValue = ... @property - def advices(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[Advice]: ... - - def __init__(self, + def advices( + self, + ) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[ + type___Advice + ]: ... + def __init__( + self, *, - element : typing___Optional[typing___Text] = None, - old_value : typing___Optional[typing___Text] = None, - new_value : typing___Optional[typing___Text] = None, - change_type : typing___Optional[ChangeType] = None, - advices : typing___Optional[typing___Iterable[Advice]] = None, - ) -> None: ... - @classmethod - def FromString(cls, s: bytes) -> ConfigChange: ... - def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - if sys.version_info >= (3,): - def ClearField(self, field_name: typing_extensions___Literal[u"advices",u"change_type",u"element",u"new_value",u"old_value"]) -> None: ... - else: - def ClearField(self, field_name: typing_extensions___Literal[u"advices",b"advices",u"change_type",b"change_type",u"element",b"element",u"new_value",b"new_value",u"old_value",b"old_value"]) -> None: ... + element: typing___Optional[typing___Text] = None, + old_value: typing___Optional[typing___Text] = None, + new_value: typing___Optional[typing___Text] = None, + change_type: typing___Optional[type___ChangeTypeValue] = None, + advices: typing___Optional[typing___Iterable[type___Advice]] = None, + ) -> None: ... + def ClearField( + self, + field_name: typing_extensions___Literal[ + "advices", + b"advices", + "change_type", + b"change_type", + "element", + b"element", + "new_value", + b"new_value", + "old_value", + b"old_value", + ], + ) -> None: ... + +type___ConfigChange = ConfigChange class Advice(google___protobuf___message___Message): DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - description = ... # type: typing___Text - - def __init__(self, + description: typing___Text = ... + def __init__( + self, *, - description : typing___Optional[typing___Text] = None, - ) -> None: ... - @classmethod - def FromString(cls, s: bytes) -> Advice: ... - def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - if sys.version_info >= (3,): - def ClearField(self, field_name: typing_extensions___Literal[u"description"]) -> None: ... - else: - def ClearField(self, field_name: typing_extensions___Literal[u"description",b"description"]) -> None: ... + description: typing___Optional[typing___Text] = None, + ) -> None: ... + def ClearField( + self, field_name: typing_extensions___Literal["description", b"description"] + ) -> None: ... + +type___Advice = Advice diff --git a/google-stubs/api/consumer_pb2.pyi b/google-stubs/api/consumer_pb2.pyi index 5f91806..5a9aa51 100644 --- a/google-stubs/api/consumer_pb2.pyi +++ b/google-stubs/api/consumer_pb2.pyi @@ -1,91 +1,91 @@ # @generated by generate_proto_mypy_stubs.py. Do not edit! import sys +from typing import ( + Iterable as typing___Iterable, + NewType as typing___NewType, + Optional as typing___Optional, + Text as typing___Text, + cast as typing___cast, +) + from google.protobuf.descriptor import ( Descriptor as google___protobuf___descriptor___Descriptor, EnumDescriptor as google___protobuf___descriptor___EnumDescriptor, + FileDescriptor as google___protobuf___descriptor___FileDescriptor, ) - from google.protobuf.internal.containers import ( RepeatedCompositeFieldContainer as google___protobuf___internal___containers___RepeatedCompositeFieldContainer, ) - -from google.protobuf.message import ( - Message as google___protobuf___message___Message, -) - -from typing import ( - Iterable as typing___Iterable, - List as typing___List, - Optional as typing___Optional, - Text as typing___Text, - Tuple as typing___Tuple, - cast as typing___cast, +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 typing_extensions import Literal as typing_extensions___Literal -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 ProjectProperties(google___protobuf___message___Message): DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - @property - def properties(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[Property]: ... - - def __init__(self, + def properties( + self, + ) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[ + type___Property + ]: ... + def __init__( + self, *, - properties : typing___Optional[typing___Iterable[Property]] = None, - ) -> None: ... - @classmethod - def FromString(cls, s: bytes) -> ProjectProperties: ... - def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - if sys.version_info >= (3,): - def ClearField(self, field_name: typing_extensions___Literal[u"properties"]) -> None: ... - else: - def ClearField(self, field_name: typing_extensions___Literal[u"properties",b"properties"]) -> None: ... + properties: typing___Optional[typing___Iterable[type___Property]] = None, + ) -> None: ... + def ClearField( + self, field_name: typing_extensions___Literal["properties", b"properties"] + ) -> None: ... + +type___ProjectProperties = ProjectProperties class Property(google___protobuf___message___Message): DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - class PropertyType(int): + PropertyTypeValue = typing___NewType("PropertyTypeValue", builtin___int) + type___PropertyTypeValue = PropertyTypeValue + PropertyType: _PropertyType + class _PropertyType( + google___protobuf___internal___enum_type_wrapper____EnumTypeWrapper[ + Property.PropertyTypeValue + ] + ): DESCRIPTOR: google___protobuf___descriptor___EnumDescriptor = ... - @classmethod - def Name(cls, number: int) -> str: ... - @classmethod - def Value(cls, name: str) -> Property.PropertyType: ... - @classmethod - def keys(cls) -> typing___List[str]: ... - @classmethod - def values(cls) -> typing___List[Property.PropertyType]: ... - @classmethod - def items(cls) -> typing___List[typing___Tuple[str, Property.PropertyType]]: ... - UNSPECIFIED = typing___cast(Property.PropertyType, 0) - INT64 = typing___cast(Property.PropertyType, 1) - BOOL = typing___cast(Property.PropertyType, 2) - STRING = typing___cast(Property.PropertyType, 3) - DOUBLE = typing___cast(Property.PropertyType, 4) - UNSPECIFIED = typing___cast(Property.PropertyType, 0) - INT64 = typing___cast(Property.PropertyType, 1) - BOOL = typing___cast(Property.PropertyType, 2) - STRING = typing___cast(Property.PropertyType, 3) - DOUBLE = typing___cast(Property.PropertyType, 4) + UNSPECIFIED = typing___cast(Property.PropertyTypeValue, 0) + INT64 = typing___cast(Property.PropertyTypeValue, 1) + BOOL = typing___cast(Property.PropertyTypeValue, 2) + STRING = typing___cast(Property.PropertyTypeValue, 3) + DOUBLE = typing___cast(Property.PropertyTypeValue, 4) + UNSPECIFIED = typing___cast(Property.PropertyTypeValue, 0) + INT64 = typing___cast(Property.PropertyTypeValue, 1) + BOOL = typing___cast(Property.PropertyTypeValue, 2) + STRING = typing___cast(Property.PropertyTypeValue, 3) + DOUBLE = typing___cast(Property.PropertyTypeValue, 4) + type___PropertyType = PropertyType - name = ... # type: typing___Text - type = ... # type: Property.PropertyType - description = ... # type: typing___Text - - def __init__(self, + name: typing___Text = ... + type: type___Property.PropertyTypeValue = ... + description: typing___Text = ... + def __init__( + self, *, - name : typing___Optional[typing___Text] = None, - type : typing___Optional[Property.PropertyType] = None, - description : typing___Optional[typing___Text] = None, - ) -> None: ... - @classmethod - def FromString(cls, s: bytes) -> Property: ... - def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - if sys.version_info >= (3,): - def ClearField(self, field_name: typing_extensions___Literal[u"description",u"name",u"type"]) -> None: ... - else: - def ClearField(self, field_name: typing_extensions___Literal[u"description",b"description",u"name",b"name",u"type",b"type"]) -> None: ... + name: typing___Optional[typing___Text] = None, + type: typing___Optional[type___Property.PropertyTypeValue] = None, + description: typing___Optional[typing___Text] = None, + ) -> None: ... + def ClearField( + self, + field_name: typing_extensions___Literal[ + "description", b"description", "name", b"name", "type", b"type" + ], + ) -> None: ... + +type___Property = Property diff --git a/google-stubs/api/context_pb2.pyi b/google-stubs/api/context_pb2.pyi index cb670aa..36329eb 100644 --- a/google-stubs/api/context_pb2.pyi +++ b/google-stubs/api/context_pb2.pyi @@ -1,69 +1,69 @@ # @generated by generate_proto_mypy_stubs.py. Do not edit! import sys +from typing import ( + Iterable as typing___Iterable, + Optional as typing___Optional, + Text as typing___Text, +) + 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, RepeatedScalarFieldContainer as google___protobuf___internal___containers___RepeatedScalarFieldContainer, ) +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 +builtin___float = float +builtin___int = int +DESCRIPTOR: google___protobuf___descriptor___FileDescriptor = ... class Context(google___protobuf___message___Message): DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - @property - def rules(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[ContextRule]: ... - - def __init__(self, + def rules( + self, + ) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[ + type___ContextRule + ]: ... + def __init__( + self, *, - rules : typing___Optional[typing___Iterable[ContextRule]] = None, - ) -> None: ... - @classmethod - def FromString(cls, s: bytes) -> Context: ... - def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - if sys.version_info >= (3,): - def ClearField(self, field_name: typing_extensions___Literal[u"rules"]) -> None: ... - else: - def ClearField(self, field_name: typing_extensions___Literal[u"rules",b"rules"]) -> None: ... + rules: typing___Optional[typing___Iterable[type___ContextRule]] = None, + ) -> None: ... + def ClearField( + self, field_name: typing_extensions___Literal["rules", b"rules"] + ) -> None: ... + +type___Context = Context class ContextRule(google___protobuf___message___Message): DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - selector = ... # type: typing___Text - requested = ... # type: google___protobuf___internal___containers___RepeatedScalarFieldContainer[typing___Text] - provided = ... # type: google___protobuf___internal___containers___RepeatedScalarFieldContainer[typing___Text] - allowed_request_extensions = ... # type: google___protobuf___internal___containers___RepeatedScalarFieldContainer[typing___Text] - allowed_response_extensions = ... # type: google___protobuf___internal___containers___RepeatedScalarFieldContainer[typing___Text] - - def __init__(self, + selector: typing___Text = ... + requested: google___protobuf___internal___containers___RepeatedScalarFieldContainer[ + typing___Text + ] = ... + provided: google___protobuf___internal___containers___RepeatedScalarFieldContainer[ + typing___Text + ] = ... + def __init__( + self, *, - selector : typing___Optional[typing___Text] = None, - requested : typing___Optional[typing___Iterable[typing___Text]] = None, - provided : typing___Optional[typing___Iterable[typing___Text]] = None, - allowed_request_extensions : typing___Optional[typing___Iterable[typing___Text]] = None, - allowed_response_extensions : typing___Optional[typing___Iterable[typing___Text]] = None, - ) -> None: ... - @classmethod - def FromString(cls, s: bytes) -> ContextRule: ... - def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - if sys.version_info >= (3,): - def ClearField(self, field_name: typing_extensions___Literal[u"allowed_request_extensions",u"allowed_response_extensions",u"provided",u"requested",u"selector"]) -> None: ... - else: - def ClearField(self, field_name: typing_extensions___Literal[u"allowed_request_extensions",b"allowed_request_extensions",u"allowed_response_extensions",b"allowed_response_extensions",u"provided",b"provided",u"requested",b"requested",u"selector",b"selector"]) -> None: ... + selector: typing___Optional[typing___Text] = None, + requested: typing___Optional[typing___Iterable[typing___Text]] = None, + provided: typing___Optional[typing___Iterable[typing___Text]] = None, + ) -> None: ... + def ClearField( + self, + field_name: typing_extensions___Literal[ + "provided", b"provided", "requested", b"requested", "selector", b"selector" + ], + ) -> None: ... + +type___ContextRule = ContextRule diff --git a/google-stubs/api/control_pb2.pyi b/google-stubs/api/control_pb2.pyi index 0903034..35dbf68 100644 --- a/google-stubs/api/control_pb2.pyi +++ b/google-stubs/api/control_pb2.pyi @@ -1,36 +1,31 @@ # @generated by generate_proto_mypy_stubs.py. Do not edit! import sys +from typing import Optional as typing___Optional, Text as typing___Text + 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 +builtin___float = float +builtin___int = int +DESCRIPTOR: google___protobuf___descriptor___FileDescriptor = ... class Control(google___protobuf___message___Message): DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - environment = ... # type: typing___Text - - def __init__(self, + environment: typing___Text = ... + def __init__( + self, *, - environment : typing___Optional[typing___Text] = None, - ) -> None: ... - @classmethod - def FromString(cls, s: bytes) -> Control: ... - def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - if sys.version_info >= (3,): - def ClearField(self, field_name: typing_extensions___Literal[u"environment"]) -> None: ... - else: - def ClearField(self, field_name: typing_extensions___Literal[u"environment",b"environment"]) -> None: ... + environment: typing___Optional[typing___Text] = None, + ) -> None: ... + def ClearField( + self, field_name: typing_extensions___Literal["environment", b"environment"] + ) -> None: ... + +type___Control = Control diff --git a/google-stubs/api/distribution_pb2.pyi b/google-stubs/api/distribution_pb2.pyi index b6c9ed0..62404e1 100644 --- a/google-stubs/api/distribution_pb2.pyi +++ b/google-stubs/api/distribution_pb2.pyi @@ -1,204 +1,253 @@ # @generated by generate_proto_mypy_stubs.py. Do not edit! import sys -from google.protobuf.any_pb2 import ( - Any as google___protobuf___any_pb2___Any, -) +from typing import Iterable as typing___Iterable, Optional as typing___Optional +from google.protobuf.any_pb2 import Any as google___protobuf___any_pb2___Any 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, RepeatedScalarFieldContainer as google___protobuf___internal___containers___RepeatedScalarFieldContainer, ) - -from google.protobuf.message import ( - Message as google___protobuf___message___Message, -) - +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 typing import ( - Iterable as typing___Iterable, - Optional as typing___Optional, -) - -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 Distribution(google___protobuf___message___Message): DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... class Range(google___protobuf___message___Message): DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - min = ... # type: float - max = ... # type: float - - def __init__(self, + min: builtin___float = ... + max: builtin___float = ... + def __init__( + self, *, - min : typing___Optional[float] = None, - max : typing___Optional[float] = None, - ) -> None: ... - @classmethod - def FromString(cls, s: bytes) -> Distribution.Range: ... - def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - if sys.version_info >= (3,): - def ClearField(self, field_name: typing_extensions___Literal[u"max",u"min"]) -> None: ... - else: - def ClearField(self, field_name: typing_extensions___Literal[u"max",b"max",u"min",b"min"]) -> None: ... - + min: typing___Optional[builtin___float] = None, + max: typing___Optional[builtin___float] = None, + ) -> None: ... + def ClearField( + self, field_name: typing_extensions___Literal["max", b"max", "min", b"min"] + ) -> None: ... + type___Range = Range class BucketOptions(google___protobuf___message___Message): DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... class Linear(google___protobuf___message___Message): DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - num_finite_buckets = ... # type: int - width = ... # type: float - offset = ... # type: float - - def __init__(self, + num_finite_buckets: builtin___int = ... + width: builtin___float = ... + offset: builtin___float = ... + def __init__( + self, *, - num_finite_buckets : typing___Optional[int] = None, - width : typing___Optional[float] = None, - offset : typing___Optional[float] = None, - ) -> None: ... - @classmethod - def FromString(cls, s: bytes) -> Distribution.BucketOptions.Linear: ... - def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - if sys.version_info >= (3,): - def ClearField(self, field_name: typing_extensions___Literal[u"num_finite_buckets",u"offset",u"width"]) -> None: ... - else: - def ClearField(self, field_name: typing_extensions___Literal[u"num_finite_buckets",b"num_finite_buckets",u"offset",b"offset",u"width",b"width"]) -> None: ... - + num_finite_buckets: typing___Optional[builtin___int] = None, + width: typing___Optional[builtin___float] = None, + offset: typing___Optional[builtin___float] = None, + ) -> None: ... + def ClearField( + self, + field_name: typing_extensions___Literal[ + "num_finite_buckets", + b"num_finite_buckets", + "offset", + b"offset", + "width", + b"width", + ], + ) -> None: ... + type___Linear = Linear class Exponential(google___protobuf___message___Message): DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - num_finite_buckets = ... # type: int - growth_factor = ... # type: float - scale = ... # type: float - - def __init__(self, + num_finite_buckets: builtin___int = ... + growth_factor: builtin___float = ... + scale: builtin___float = ... + def __init__( + self, *, - num_finite_buckets : typing___Optional[int] = None, - growth_factor : typing___Optional[float] = None, - scale : typing___Optional[float] = None, - ) -> None: ... - @classmethod - def FromString(cls, s: bytes) -> Distribution.BucketOptions.Exponential: ... - def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - if sys.version_info >= (3,): - def ClearField(self, field_name: typing_extensions___Literal[u"growth_factor",u"num_finite_buckets",u"scale"]) -> None: ... - else: - def ClearField(self, field_name: typing_extensions___Literal[u"growth_factor",b"growth_factor",u"num_finite_buckets",b"num_finite_buckets",u"scale",b"scale"]) -> None: ... - + num_finite_buckets: typing___Optional[builtin___int] = None, + growth_factor: typing___Optional[builtin___float] = None, + scale: typing___Optional[builtin___float] = None, + ) -> None: ... + def ClearField( + self, + field_name: typing_extensions___Literal[ + "growth_factor", + b"growth_factor", + "num_finite_buckets", + b"num_finite_buckets", + "scale", + b"scale", + ], + ) -> None: ... + type___Exponential = Exponential class Explicit(google___protobuf___message___Message): DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - bounds = ... # type: google___protobuf___internal___containers___RepeatedScalarFieldContainer[float] - - def __init__(self, + bounds: google___protobuf___internal___containers___RepeatedScalarFieldContainer[ + builtin___float + ] = ... + def __init__( + self, *, - bounds : typing___Optional[typing___Iterable[float]] = None, - ) -> None: ... - @classmethod - def FromString(cls, s: bytes) -> Distribution.BucketOptions.Explicit: ... - def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - if sys.version_info >= (3,): - def ClearField(self, field_name: typing_extensions___Literal[u"bounds"]) -> None: ... - else: - def ClearField(self, field_name: typing_extensions___Literal[u"bounds",b"bounds"]) -> None: ... - - + bounds: typing___Optional[typing___Iterable[builtin___float]] = None, + ) -> None: ... + def ClearField( + self, field_name: typing_extensions___Literal["bounds", b"bounds"] + ) -> None: ... + type___Explicit = Explicit @property - def linear_buckets(self) -> Distribution.BucketOptions.Linear: ... - + def linear_buckets(self) -> type___Distribution.BucketOptions.Linear: ... @property - def exponential_buckets(self) -> Distribution.BucketOptions.Exponential: ... - + def exponential_buckets( + self, + ) -> type___Distribution.BucketOptions.Exponential: ... @property - def explicit_buckets(self) -> Distribution.BucketOptions.Explicit: ... - - def __init__(self, + def explicit_buckets(self) -> type___Distribution.BucketOptions.Explicit: ... + def __init__( + self, *, - linear_buckets : typing___Optional[Distribution.BucketOptions.Linear] = None, - exponential_buckets : typing___Optional[Distribution.BucketOptions.Exponential] = None, - explicit_buckets : typing___Optional[Distribution.BucketOptions.Explicit] = None, - ) -> None: ... - @classmethod - def FromString(cls, s: bytes) -> Distribution.BucketOptions: ... - def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - if sys.version_info >= (3,): - def HasField(self, field_name: typing_extensions___Literal[u"explicit_buckets",u"exponential_buckets",u"linear_buckets",u"options"]) -> bool: ... - def ClearField(self, field_name: typing_extensions___Literal[u"explicit_buckets",u"exponential_buckets",u"linear_buckets",u"options"]) -> None: ... - else: - def HasField(self, field_name: typing_extensions___Literal[u"explicit_buckets",b"explicit_buckets",u"exponential_buckets",b"exponential_buckets",u"linear_buckets",b"linear_buckets",u"options",b"options"]) -> bool: ... - def ClearField(self, field_name: typing_extensions___Literal[u"explicit_buckets",b"explicit_buckets",u"exponential_buckets",b"exponential_buckets",u"linear_buckets",b"linear_buckets",u"options",b"options"]) -> None: ... - def WhichOneof(self, oneof_group: typing_extensions___Literal[u"options",b"options"]) -> typing_extensions___Literal["linear_buckets","exponential_buckets","explicit_buckets"]: ... - + linear_buckets: typing___Optional[ + type___Distribution.BucketOptions.Linear + ] = None, + exponential_buckets: typing___Optional[ + type___Distribution.BucketOptions.Exponential + ] = None, + explicit_buckets: typing___Optional[ + type___Distribution.BucketOptions.Explicit + ] = None, + ) -> None: ... + def HasField( + self, + field_name: typing_extensions___Literal[ + "explicit_buckets", + b"explicit_buckets", + "exponential_buckets", + b"exponential_buckets", + "linear_buckets", + b"linear_buckets", + "options", + b"options", + ], + ) -> builtin___bool: ... + def ClearField( + self, + field_name: typing_extensions___Literal[ + "explicit_buckets", + b"explicit_buckets", + "exponential_buckets", + b"exponential_buckets", + "linear_buckets", + b"linear_buckets", + "options", + b"options", + ], + ) -> None: ... + def WhichOneof( + self, oneof_group: typing_extensions___Literal["options", b"options"] + ) -> typing_extensions___Literal[ + "linear_buckets", "exponential_buckets", "explicit_buckets" + ]: ... + type___BucketOptions = BucketOptions class Exemplar(google___protobuf___message___Message): DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - value = ... # type: float - + value: builtin___float = ... @property def timestamp(self) -> google___protobuf___timestamp_pb2___Timestamp: ... - @property - def attachments(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[google___protobuf___any_pb2___Any]: ... - - def __init__(self, + def attachments( + self, + ) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[ + google___protobuf___any_pb2___Any + ]: ... + def __init__( + self, *, - value : typing___Optional[float] = None, - timestamp : typing___Optional[google___protobuf___timestamp_pb2___Timestamp] = None, - attachments : typing___Optional[typing___Iterable[google___protobuf___any_pb2___Any]] = None, - ) -> None: ... - @classmethod - def FromString(cls, s: bytes) -> Distribution.Exemplar: ... - def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - if sys.version_info >= (3,): - def HasField(self, field_name: typing_extensions___Literal[u"timestamp"]) -> bool: ... - def ClearField(self, field_name: typing_extensions___Literal[u"attachments",u"timestamp",u"value"]) -> None: ... - else: - def HasField(self, field_name: typing_extensions___Literal[u"timestamp",b"timestamp"]) -> bool: ... - def ClearField(self, field_name: typing_extensions___Literal[u"attachments",b"attachments",u"timestamp",b"timestamp",u"value",b"value"]) -> None: ... - - count = ... # type: int - mean = ... # type: float - sum_of_squared_deviation = ... # type: float - bucket_counts = ... # type: google___protobuf___internal___containers___RepeatedScalarFieldContainer[int] - + value: typing___Optional[builtin___float] = None, + timestamp: typing___Optional[ + google___protobuf___timestamp_pb2___Timestamp + ] = None, + attachments: typing___Optional[ + typing___Iterable[google___protobuf___any_pb2___Any] + ] = None, + ) -> None: ... + def HasField( + self, field_name: typing_extensions___Literal["timestamp", b"timestamp"] + ) -> builtin___bool: ... + def ClearField( + self, + field_name: typing_extensions___Literal[ + "attachments", + b"attachments", + "timestamp", + b"timestamp", + "value", + b"value", + ], + ) -> None: ... + type___Exemplar = Exemplar + + count: builtin___int = ... + mean: builtin___float = ... + sum_of_squared_deviation: builtin___float = ... + bucket_counts: google___protobuf___internal___containers___RepeatedScalarFieldContainer[ + builtin___int + ] = ... @property - def range(self) -> Distribution.Range: ... - + def range(self) -> type___Distribution.Range: ... @property - def bucket_options(self) -> Distribution.BucketOptions: ... - + def bucket_options(self) -> type___Distribution.BucketOptions: ... @property - def exemplars(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[Distribution.Exemplar]: ... - - def __init__(self, + def exemplars( + self, + ) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[ + type___Distribution.Exemplar + ]: ... + def __init__( + self, *, - count : typing___Optional[int] = None, - mean : typing___Optional[float] = None, - sum_of_squared_deviation : typing___Optional[float] = None, - range : typing___Optional[Distribution.Range] = None, - bucket_options : typing___Optional[Distribution.BucketOptions] = None, - bucket_counts : typing___Optional[typing___Iterable[int]] = None, - exemplars : typing___Optional[typing___Iterable[Distribution.Exemplar]] = None, - ) -> None: ... - @classmethod - def FromString(cls, s: bytes) -> Distribution: ... - def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - if sys.version_info >= (3,): - def HasField(self, field_name: typing_extensions___Literal[u"bucket_options",u"range"]) -> bool: ... - def ClearField(self, field_name: typing_extensions___Literal[u"bucket_counts",u"bucket_options",u"count",u"exemplars",u"mean",u"range",u"sum_of_squared_deviation"]) -> None: ... - else: - def HasField(self, field_name: typing_extensions___Literal[u"bucket_options",b"bucket_options",u"range",b"range"]) -> bool: ... - def ClearField(self, field_name: typing_extensions___Literal[u"bucket_counts",b"bucket_counts",u"bucket_options",b"bucket_options",u"count",b"count",u"exemplars",b"exemplars",u"mean",b"mean",u"range",b"range",u"sum_of_squared_deviation",b"sum_of_squared_deviation"]) -> None: ... + count: typing___Optional[builtin___int] = None, + mean: typing___Optional[builtin___float] = None, + sum_of_squared_deviation: typing___Optional[builtin___float] = None, + range: typing___Optional[type___Distribution.Range] = None, + bucket_options: typing___Optional[type___Distribution.BucketOptions] = None, + bucket_counts: typing___Optional[typing___Iterable[builtin___int]] = None, + exemplars: typing___Optional[ + typing___Iterable[type___Distribution.Exemplar] + ] = None, + ) -> None: ... + def HasField( + self, + field_name: typing_extensions___Literal[ + "bucket_options", b"bucket_options", "range", b"range" + ], + ) -> builtin___bool: ... + def ClearField( + self, + field_name: typing_extensions___Literal[ + "bucket_counts", + b"bucket_counts", + "bucket_options", + b"bucket_options", + "count", + b"count", + "exemplars", + b"exemplars", + "mean", + b"mean", + "range", + b"range", + "sum_of_squared_deviation", + b"sum_of_squared_deviation", + ], + ) -> None: ... + +type___Distribution = Distribution diff --git a/google-stubs/api/documentation_pb2.pyi b/google-stubs/api/documentation_pb2.pyi index 732b8e5..8dc36de 100644 --- a/google-stubs/api/documentation_pb2.pyi +++ b/google-stubs/api/documentation_pb2.pyi @@ -1,97 +1,120 @@ # @generated by generate_proto_mypy_stubs.py. Do not edit! import sys -from google.protobuf.descriptor import ( - Descriptor as google___protobuf___descriptor___Descriptor, -) - -from google.protobuf.internal.containers import ( - RepeatedCompositeFieldContainer as google___protobuf___internal___containers___RepeatedCompositeFieldContainer, -) - -from google.protobuf.message import ( - Message as google___protobuf___message___Message, -) - from typing import ( Iterable as typing___Iterable, Optional as typing___Optional, Text as typing___Text, ) -from typing_extensions import ( - Literal as typing_extensions___Literal, +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 + +builtin___bool = bool +builtin___bytes = bytes +builtin___float = float +builtin___int = int +DESCRIPTOR: google___protobuf___descriptor___FileDescriptor = ... class Documentation(google___protobuf___message___Message): DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - summary = ... # type: typing___Text - documentation_root_url = ... # type: typing___Text - overview = ... # type: typing___Text - + summary: typing___Text = ... + documentation_root_url: typing___Text = ... + overview: typing___Text = ... @property - def pages(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[Page]: ... - + def pages( + self, + ) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[ + type___Page + ]: ... @property - def rules(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[DocumentationRule]: ... - - def __init__(self, + def rules( + self, + ) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[ + type___DocumentationRule + ]: ... + def __init__( + self, *, - summary : typing___Optional[typing___Text] = None, - pages : typing___Optional[typing___Iterable[Page]] = None, - rules : typing___Optional[typing___Iterable[DocumentationRule]] = None, - documentation_root_url : typing___Optional[typing___Text] = None, - overview : typing___Optional[typing___Text] = None, - ) -> None: ... - @classmethod - def FromString(cls, s: bytes) -> Documentation: ... - def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - if sys.version_info >= (3,): - def ClearField(self, field_name: typing_extensions___Literal[u"documentation_root_url",u"overview",u"pages",u"rules",u"summary"]) -> None: ... - else: - def ClearField(self, field_name: typing_extensions___Literal[u"documentation_root_url",b"documentation_root_url",u"overview",b"overview",u"pages",b"pages",u"rules",b"rules",u"summary",b"summary"]) -> None: ... + summary: typing___Optional[typing___Text] = None, + pages: typing___Optional[typing___Iterable[type___Page]] = None, + rules: typing___Optional[typing___Iterable[type___DocumentationRule]] = None, + documentation_root_url: typing___Optional[typing___Text] = None, + overview: typing___Optional[typing___Text] = None, + ) -> None: ... + def ClearField( + self, + field_name: typing_extensions___Literal[ + "documentation_root_url", + b"documentation_root_url", + "overview", + b"overview", + "pages", + b"pages", + "rules", + b"rules", + "summary", + b"summary", + ], + ) -> None: ... + +type___Documentation = Documentation class DocumentationRule(google___protobuf___message___Message): DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - selector = ... # type: typing___Text - description = ... # type: typing___Text - deprecation_description = ... # type: typing___Text - - def __init__(self, + selector: typing___Text = ... + description: typing___Text = ... + deprecation_description: typing___Text = ... + def __init__( + self, *, - selector : typing___Optional[typing___Text] = None, - description : typing___Optional[typing___Text] = None, - deprecation_description : typing___Optional[typing___Text] = None, - ) -> None: ... - @classmethod - def FromString(cls, s: bytes) -> DocumentationRule: ... - def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - if sys.version_info >= (3,): - def ClearField(self, field_name: typing_extensions___Literal[u"deprecation_description",u"description",u"selector"]) -> None: ... - else: - def ClearField(self, field_name: typing_extensions___Literal[u"deprecation_description",b"deprecation_description",u"description",b"description",u"selector",b"selector"]) -> None: ... + selector: typing___Optional[typing___Text] = None, + description: typing___Optional[typing___Text] = None, + deprecation_description: typing___Optional[typing___Text] = None, + ) -> None: ... + def ClearField( + self, + field_name: typing_extensions___Literal[ + "deprecation_description", + b"deprecation_description", + "description", + b"description", + "selector", + b"selector", + ], + ) -> None: ... + +type___DocumentationRule = DocumentationRule class Page(google___protobuf___message___Message): DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - name = ... # type: typing___Text - content = ... # type: typing___Text - + name: typing___Text = ... + content: typing___Text = ... @property - def subpages(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[Page]: ... - - def __init__(self, + def subpages( + self, + ) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[ + type___Page + ]: ... + def __init__( + self, *, - name : typing___Optional[typing___Text] = None, - content : typing___Optional[typing___Text] = None, - subpages : typing___Optional[typing___Iterable[Page]] = None, - ) -> None: ... - @classmethod - def FromString(cls, s: bytes) -> Page: ... - def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - if sys.version_info >= (3,): - def ClearField(self, field_name: typing_extensions___Literal[u"content",u"name",u"subpages"]) -> None: ... - else: - def ClearField(self, field_name: typing_extensions___Literal[u"content",b"content",u"name",b"name",u"subpages",b"subpages"]) -> None: ... + name: typing___Optional[typing___Text] = None, + content: typing___Optional[typing___Text] = None, + subpages: typing___Optional[typing___Iterable[type___Page]] = None, + ) -> None: ... + def ClearField( + self, + field_name: typing_extensions___Literal[ + "content", b"content", "name", b"name", "subpages", b"subpages" + ], + ) -> None: ... + +type___Page = Page diff --git a/google-stubs/api/endpoint_pb2.pyi b/google-stubs/api/endpoint_pb2.pyi index f87f988..9629f21 100644 --- a/google-stubs/api/endpoint_pb2.pyi +++ b/google-stubs/api/endpoint_pb2.pyi @@ -1,49 +1,62 @@ # @generated by generate_proto_mypy_stubs.py. Do not edit! import sys -from google.protobuf.descriptor import ( - Descriptor as google___protobuf___descriptor___Descriptor, -) - -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, +from google.protobuf.descriptor import ( + Descriptor as google___protobuf___descriptor___Descriptor, + FileDescriptor as google___protobuf___descriptor___FileDescriptor, ) +from google.protobuf.internal.containers import ( + RepeatedScalarFieldContainer as google___protobuf___internal___containers___RepeatedScalarFieldContainer, +) +from google.protobuf.message import Message as google___protobuf___message___Message +from typing_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 Endpoint(google___protobuf___message___Message): DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - name = ... # type: typing___Text - aliases = ... # type: google___protobuf___internal___containers___RepeatedScalarFieldContainer[typing___Text] - features = ... # type: google___protobuf___internal___containers___RepeatedScalarFieldContainer[typing___Text] - target = ... # type: typing___Text - allow_cors = ... # type: bool - - def __init__(self, + name: typing___Text = ... + aliases: google___protobuf___internal___containers___RepeatedScalarFieldContainer[ + typing___Text + ] = ... + features: google___protobuf___internal___containers___RepeatedScalarFieldContainer[ + typing___Text + ] = ... + target: typing___Text = ... + allow_cors: builtin___bool = ... + def __init__( + self, *, - name : typing___Optional[typing___Text] = None, - aliases : typing___Optional[typing___Iterable[typing___Text]] = None, - features : typing___Optional[typing___Iterable[typing___Text]] = None, - target : typing___Optional[typing___Text] = None, - allow_cors : typing___Optional[bool] = None, - ) -> None: ... - @classmethod - def FromString(cls, s: bytes) -> Endpoint: ... - def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - if sys.version_info >= (3,): - def ClearField(self, field_name: typing_extensions___Literal[u"aliases",u"allow_cors",u"features",u"name",u"target"]) -> None: ... - else: - def ClearField(self, field_name: typing_extensions___Literal[u"aliases",b"aliases",u"allow_cors",b"allow_cors",u"features",b"features",u"name",b"name",u"target",b"target"]) -> None: ... + name: typing___Optional[typing___Text] = None, + aliases: typing___Optional[typing___Iterable[typing___Text]] = None, + features: typing___Optional[typing___Iterable[typing___Text]] = None, + target: typing___Optional[typing___Text] = None, + allow_cors: typing___Optional[builtin___bool] = None, + ) -> None: ... + def ClearField( + self, + field_name: typing_extensions___Literal[ + "aliases", + b"aliases", + "allow_cors", + b"allow_cors", + "features", + b"features", + "name", + b"name", + "target", + b"target", + ], + ) -> None: ... + +type___Endpoint = Endpoint diff --git a/google-stubs/api/field_behavior_pb2.pyi b/google-stubs/api/field_behavior_pb2.pyi index 4196bd2..17e05b2 100644 --- a/google-stubs/api/field_behavior_pb2.pyi +++ b/google-stubs/api/field_behavior_pb2.pyi @@ -1,44 +1,44 @@ # @generated by generate_proto_mypy_stubs.py. Do not edit! import sys +from typing import NewType as typing___NewType, cast as typing___cast + from google.protobuf.descriptor import ( EnumDescriptor as google___protobuf___descriptor___EnumDescriptor, FieldDescriptor as google___protobuf___descriptor___FieldDescriptor, + FileDescriptor as google___protobuf___descriptor___FileDescriptor, ) - -from google.protobuf.message import ( - Message as google___protobuf___message___Message, +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 typing import ( - List as typing___List, - Tuple as typing___Tuple, - cast as typing___cast, -) +builtin___int = int +DESCRIPTOR: google___protobuf___descriptor___FileDescriptor = ... -class FieldBehavior(int): +FieldBehaviorValue = typing___NewType("FieldBehaviorValue", builtin___int) +type___FieldBehaviorValue = FieldBehaviorValue +FieldBehavior: _FieldBehavior + +class _FieldBehavior( + google___protobuf___internal___enum_type_wrapper____EnumTypeWrapper[ + FieldBehaviorValue + ] +): DESCRIPTOR: google___protobuf___descriptor___EnumDescriptor = ... - @classmethod - def Name(cls, number: int) -> str: ... - @classmethod - def Value(cls, name: str) -> FieldBehavior: ... - @classmethod - def keys(cls) -> typing___List[str]: ... - @classmethod - def values(cls) -> typing___List[FieldBehavior]: ... - @classmethod - def items(cls) -> typing___List[typing___Tuple[str, FieldBehavior]]: ... - FIELD_BEHAVIOR_UNSPECIFIED = typing___cast(FieldBehavior, 0) - OPTIONAL = typing___cast(FieldBehavior, 1) - REQUIRED = typing___cast(FieldBehavior, 2) - OUTPUT_ONLY = typing___cast(FieldBehavior, 3) - INPUT_ONLY = typing___cast(FieldBehavior, 4) - IMMUTABLE = typing___cast(FieldBehavior, 5) -FIELD_BEHAVIOR_UNSPECIFIED = typing___cast(FieldBehavior, 0) -OPTIONAL = typing___cast(FieldBehavior, 1) -REQUIRED = typing___cast(FieldBehavior, 2) -OUTPUT_ONLY = typing___cast(FieldBehavior, 3) -INPUT_ONLY = typing___cast(FieldBehavior, 4) -IMMUTABLE = typing___cast(FieldBehavior, 5) + FIELD_BEHAVIOR_UNSPECIFIED = typing___cast(FieldBehaviorValue, 0) + OPTIONAL = typing___cast(FieldBehaviorValue, 1) + REQUIRED = typing___cast(FieldBehaviorValue, 2) + OUTPUT_ONLY = typing___cast(FieldBehaviorValue, 3) + INPUT_ONLY = typing___cast(FieldBehaviorValue, 4) + IMMUTABLE = typing___cast(FieldBehaviorValue, 5) + +FIELD_BEHAVIOR_UNSPECIFIED = typing___cast(FieldBehaviorValue, 0) +OPTIONAL = typing___cast(FieldBehaviorValue, 1) +REQUIRED = typing___cast(FieldBehaviorValue, 2) +OUTPUT_ONLY = typing___cast(FieldBehaviorValue, 3) +INPUT_ONLY = typing___cast(FieldBehaviorValue, 4) +IMMUTABLE = typing___cast(FieldBehaviorValue, 5) +type___FieldBehavior = FieldBehavior -field_behavior = ... # type: google___protobuf___descriptor___FieldDescriptor +field_behavior: google___protobuf___descriptor___FieldDescriptor = ... diff --git a/google-stubs/api/http_pb2.pyi b/google-stubs/api/http_pb2.pyi index 0e63e41..881ab24 100644 --- a/google-stubs/api/http_pb2.pyi +++ b/google-stubs/api/http_pb2.pyi @@ -1,106 +1,155 @@ # @generated by generate_proto_mypy_stubs.py. Do not edit! import sys -from google.protobuf.descriptor import ( - Descriptor as google___protobuf___descriptor___Descriptor, -) - -from google.protobuf.internal.containers import ( - RepeatedCompositeFieldContainer as google___protobuf___internal___containers___RepeatedCompositeFieldContainer, -) - -from google.protobuf.message import ( - Message as google___protobuf___message___Message, -) - from typing import ( Iterable as typing___Iterable, Optional as typing___Optional, Text as typing___Text, ) -from typing_extensions import ( - Literal as typing_extensions___Literal, +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 + +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 = ... # type: bool - + fully_decode_reserved_expansion: builtin___bool = ... @property - def rules(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[HttpRule]: ... - - def __init__(self, + def rules( + self, + ) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[ + type___HttpRule + ]: ... + def __init__( + self, *, - rules : typing___Optional[typing___Iterable[HttpRule]] = None, - fully_decode_reserved_expansion : typing___Optional[bool] = None, - ) -> None: ... - @classmethod - def FromString(cls, s: bytes) -> Http: ... - def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - if sys.version_info >= (3,): - def ClearField(self, field_name: typing_extensions___Literal[u"fully_decode_reserved_expansion",u"rules"]) -> None: ... - else: - def ClearField(self, field_name: typing_extensions___Literal[u"fully_decode_reserved_expansion",b"fully_decode_reserved_expansion",u"rules",b"rules"]) -> None: ... + 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: ... + +type___Http = Http class HttpRule(google___protobuf___message___Message): DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - selector = ... # type: typing___Text - get = ... # type: typing___Text - put = ... # type: typing___Text - post = ... # type: typing___Text - delete = ... # type: typing___Text - patch = ... # type: typing___Text - body = ... # type: typing___Text - response_body = ... # type: typing___Text - + selector: typing___Text = ... + get: typing___Text = ... + put: typing___Text = ... + post: typing___Text = ... + delete: typing___Text = ... + patch: typing___Text = ... + body: typing___Text = ... + response_body: typing___Text = ... @property - def custom(self) -> CustomHttpPattern: ... - + def custom(self) -> type___CustomHttpPattern: ... @property - def additional_bindings(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[HttpRule]: ... - - def __init__(self, + 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[CustomHttpPattern] = None, - body : typing___Optional[typing___Text] = None, - response_body : typing___Optional[typing___Text] = None, - additional_bindings : typing___Optional[typing___Iterable[HttpRule]] = None, - ) -> None: ... - @classmethod - def FromString(cls, s: bytes) -> HttpRule: ... - def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - if sys.version_info >= (3,): - def HasField(self, field_name: typing_extensions___Literal[u"custom",u"delete",u"get",u"patch",u"pattern",u"post",u"put"]) -> bool: ... - def ClearField(self, field_name: typing_extensions___Literal[u"additional_bindings",u"body",u"custom",u"delete",u"get",u"patch",u"pattern",u"post",u"put",u"response_body",u"selector"]) -> None: ... - else: - 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"]) -> 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"]: ... + 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" + ]: ... + +type___HttpRule = HttpRule class CustomHttpPattern(google___protobuf___message___Message): DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - kind = ... # type: typing___Text - path = ... # type: typing___Text - - def __init__(self, + kind: typing___Text = ... + path: typing___Text = ... + def __init__( + self, *, - kind : typing___Optional[typing___Text] = None, - path : typing___Optional[typing___Text] = None, - ) -> None: ... - @classmethod - def FromString(cls, s: bytes) -> CustomHttpPattern: ... - def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - if sys.version_info >= (3,): - def ClearField(self, field_name: typing_extensions___Literal[u"kind",u"path"]) -> None: ... - else: - def ClearField(self, field_name: typing_extensions___Literal[u"kind",b"kind",u"path",b"path"]) -> None: ... + 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: ... + +type___CustomHttpPattern = CustomHttpPattern diff --git a/google-stubs/api/httpbody_pb2.pyi b/google-stubs/api/httpbody_pb2.pyi index cc1f9f7..2db7be5 100644 --- a/google-stubs/api/httpbody_pb2.pyi +++ b/google-stubs/api/httpbody_pb2.pyi @@ -1,51 +1,58 @@ # @generated by generate_proto_mypy_stubs.py. Do not edit! import sys -from google.protobuf.any_pb2 import ( - Any as google___protobuf___any_pb2___Any, +from typing import ( + Iterable as typing___Iterable, + Optional as typing___Optional, + Text as typing___Text, ) +from google.protobuf.any_pb2 import Any as google___protobuf___any_pb2___Any 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 +builtin___float = float +builtin___int = int +DESCRIPTOR: google___protobuf___descriptor___FileDescriptor = ... class HttpBody(google___protobuf___message___Message): DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - content_type = ... # type: typing___Text - data = ... # type: bytes - + content_type: typing___Text = ... + data: builtin___bytes = ... @property - def extensions(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[google___protobuf___any_pb2___Any]: ... - - def __init__(self, + def extensions( + self, + ) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[ + google___protobuf___any_pb2___Any + ]: ... + def __init__( + self, *, - content_type : typing___Optional[typing___Text] = None, - data : typing___Optional[bytes] = None, - extensions : typing___Optional[typing___Iterable[google___protobuf___any_pb2___Any]] = None, - ) -> None: ... - @classmethod - def FromString(cls, s: bytes) -> HttpBody: ... - def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - if sys.version_info >= (3,): - def ClearField(self, field_name: typing_extensions___Literal[u"content_type",u"data",u"extensions"]) -> None: ... - else: - def ClearField(self, field_name: typing_extensions___Literal[u"content_type",b"content_type",u"data",b"data",u"extensions",b"extensions"]) -> None: ... + content_type: typing___Optional[typing___Text] = None, + data: typing___Optional[builtin___bytes] = None, + extensions: typing___Optional[ + typing___Iterable[google___protobuf___any_pb2___Any] + ] = None, + ) -> None: ... + def ClearField( + self, + field_name: typing_extensions___Literal[ + "content_type", + b"content_type", + "data", + b"data", + "extensions", + b"extensions", + ], + ) -> None: ... + +type___HttpBody = HttpBody diff --git a/google-stubs/api/label_pb2.pyi b/google-stubs/api/label_pb2.pyi index 4314d5d..7f7fd26 100644 --- a/google-stubs/api/label_pb2.pyi +++ b/google-stubs/api/label_pb2.pyi @@ -1,63 +1,64 @@ # @generated by generate_proto_mypy_stubs.py. Do not edit! import sys -from google.protobuf.descriptor import ( - Descriptor as google___protobuf___descriptor___Descriptor, - EnumDescriptor as google___protobuf___descriptor___EnumDescriptor, -) - -from google.protobuf.message import ( - Message as google___protobuf___message___Message, -) - from typing import ( - List as typing___List, + NewType as typing___NewType, Optional as typing___Optional, Text as typing___Text, - Tuple as typing___Tuple, cast as typing___cast, ) -from typing_extensions import ( - Literal as typing_extensions___Literal, +from google.protobuf.descriptor import ( + Descriptor as google___protobuf___descriptor___Descriptor, + EnumDescriptor as google___protobuf___descriptor___EnumDescriptor, + 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 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 LabelDescriptor(google___protobuf___message___Message): DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - class ValueType(int): + ValueTypeValue = typing___NewType("ValueTypeValue", builtin___int) + type___ValueTypeValue = ValueTypeValue + ValueType: _ValueType + class _ValueType( + google___protobuf___internal___enum_type_wrapper____EnumTypeWrapper[ + LabelDescriptor.ValueTypeValue + ] + ): DESCRIPTOR: google___protobuf___descriptor___EnumDescriptor = ... - @classmethod - def Name(cls, number: int) -> str: ... - @classmethod - def Value(cls, name: str) -> LabelDescriptor.ValueType: ... - @classmethod - def keys(cls) -> typing___List[str]: ... - @classmethod - def values(cls) -> typing___List[LabelDescriptor.ValueType]: ... - @classmethod - def items(cls) -> typing___List[typing___Tuple[str, LabelDescriptor.ValueType]]: ... - STRING = typing___cast(LabelDescriptor.ValueType, 0) - BOOL = typing___cast(LabelDescriptor.ValueType, 1) - INT64 = typing___cast(LabelDescriptor.ValueType, 2) - STRING = typing___cast(LabelDescriptor.ValueType, 0) - BOOL = typing___cast(LabelDescriptor.ValueType, 1) - INT64 = typing___cast(LabelDescriptor.ValueType, 2) - - key = ... # type: typing___Text - value_type = ... # type: LabelDescriptor.ValueType - description = ... # type: typing___Text + STRING = typing___cast(LabelDescriptor.ValueTypeValue, 0) + BOOL = typing___cast(LabelDescriptor.ValueTypeValue, 1) + INT64 = typing___cast(LabelDescriptor.ValueTypeValue, 2) + STRING = typing___cast(LabelDescriptor.ValueTypeValue, 0) + BOOL = typing___cast(LabelDescriptor.ValueTypeValue, 1) + INT64 = typing___cast(LabelDescriptor.ValueTypeValue, 2) + type___ValueType = ValueType - def __init__(self, + key: typing___Text = ... + value_type: type___LabelDescriptor.ValueTypeValue = ... + description: typing___Text = ... + def __init__( + self, *, - key : typing___Optional[typing___Text] = None, - value_type : typing___Optional[LabelDescriptor.ValueType] = None, - description : typing___Optional[typing___Text] = None, - ) -> None: ... - @classmethod - def FromString(cls, s: bytes) -> LabelDescriptor: ... - def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - if sys.version_info >= (3,): - def ClearField(self, field_name: typing_extensions___Literal[u"description",u"key",u"value_type"]) -> None: ... - else: - def ClearField(self, field_name: typing_extensions___Literal[u"description",b"description",u"key",b"key",u"value_type",b"value_type"]) -> None: ... + key: typing___Optional[typing___Text] = None, + value_type: typing___Optional[type___LabelDescriptor.ValueTypeValue] = None, + description: typing___Optional[typing___Text] = None, + ) -> None: ... + def ClearField( + self, + field_name: typing_extensions___Literal[ + "description", b"description", "key", b"key", "value_type", b"value_type" + ], + ) -> None: ... + +type___LabelDescriptor = LabelDescriptor diff --git a/google-stubs/api/launch_stage_pb2.pyi b/google-stubs/api/launch_stage_pb2.pyi index ef1136e..1767f4d 100644 --- a/google-stubs/api/launch_stage_pb2.pyi +++ b/google-stubs/api/launch_stage_pb2.pyi @@ -1,41 +1,41 @@ # @generated by generate_proto_mypy_stubs.py. Do not edit! import sys +from typing import NewType as typing___NewType, cast as typing___cast + from google.protobuf.descriptor import ( EnumDescriptor as google___protobuf___descriptor___EnumDescriptor, + FileDescriptor as google___protobuf___descriptor___FileDescriptor, ) - -from google.protobuf.message import ( - Message as google___protobuf___message___Message, +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 typing import ( - List as typing___List, - Tuple as typing___Tuple, - cast as typing___cast, -) +builtin___int = int +DESCRIPTOR: google___protobuf___descriptor___FileDescriptor = ... -class LaunchStage(int): +LaunchStageValue = typing___NewType("LaunchStageValue", builtin___int) +type___LaunchStageValue = LaunchStageValue +LaunchStage: _LaunchStage + +class _LaunchStage( + google___protobuf___internal___enum_type_wrapper____EnumTypeWrapper[ + LaunchStageValue + ] +): DESCRIPTOR: google___protobuf___descriptor___EnumDescriptor = ... - @classmethod - def Name(cls, number: int) -> str: ... - @classmethod - def Value(cls, name: str) -> LaunchStage: ... - @classmethod - def keys(cls) -> typing___List[str]: ... - @classmethod - def values(cls) -> typing___List[LaunchStage]: ... - @classmethod - def items(cls) -> typing___List[typing___Tuple[str, LaunchStage]]: ... - LAUNCH_STAGE_UNSPECIFIED = typing___cast(LaunchStage, 0) - EARLY_ACCESS = typing___cast(LaunchStage, 1) - ALPHA = typing___cast(LaunchStage, 2) - BETA = typing___cast(LaunchStage, 3) - GA = typing___cast(LaunchStage, 4) - DEPRECATED = typing___cast(LaunchStage, 5) -LAUNCH_STAGE_UNSPECIFIED = typing___cast(LaunchStage, 0) -EARLY_ACCESS = typing___cast(LaunchStage, 1) -ALPHA = typing___cast(LaunchStage, 2) -BETA = typing___cast(LaunchStage, 3) -GA = typing___cast(LaunchStage, 4) -DEPRECATED = typing___cast(LaunchStage, 5) + LAUNCH_STAGE_UNSPECIFIED = typing___cast(LaunchStageValue, 0) + EARLY_ACCESS = typing___cast(LaunchStageValue, 1) + ALPHA = typing___cast(LaunchStageValue, 2) + BETA = typing___cast(LaunchStageValue, 3) + GA = typing___cast(LaunchStageValue, 4) + DEPRECATED = typing___cast(LaunchStageValue, 5) + +LAUNCH_STAGE_UNSPECIFIED = typing___cast(LaunchStageValue, 0) +EARLY_ACCESS = typing___cast(LaunchStageValue, 1) +ALPHA = typing___cast(LaunchStageValue, 2) +BETA = typing___cast(LaunchStageValue, 3) +GA = typing___cast(LaunchStageValue, 4) +DEPRECATED = typing___cast(LaunchStageValue, 5) +type___LaunchStage = LaunchStage diff --git a/google-stubs/api/log_pb2.pyi b/google-stubs/api/log_pb2.pyi index 72891a6..9f4863d 100644 --- a/google-stubs/api/log_pb2.pyi +++ b/google-stubs/api/log_pb2.pyi @@ -1,53 +1,65 @@ # @generated by generate_proto_mypy_stubs.py. Do not edit! import sys -from google.api.label_pb2 import ( - LabelDescriptor as google___api___label_pb2___LabelDescriptor, +from typing import ( + Iterable as typing___Iterable, + Optional as typing___Optional, + Text as typing___Text, ) 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 google.api.label_pb2 import ( + LabelDescriptor as google___api___label_pb2___LabelDescriptor, ) -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 LogDescriptor(google___protobuf___message___Message): DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - name = ... # type: typing___Text - description = ... # type: typing___Text - display_name = ... # type: typing___Text - + name: typing___Text = ... + description: typing___Text = ... + display_name: typing___Text = ... @property - def labels(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[google___api___label_pb2___LabelDescriptor]: ... - - def __init__(self, + def labels( + self, + ) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[ + google___api___label_pb2___LabelDescriptor + ]: ... + def __init__( + self, *, - name : typing___Optional[typing___Text] = None, - labels : typing___Optional[typing___Iterable[google___api___label_pb2___LabelDescriptor]] = None, - description : typing___Optional[typing___Text] = None, - display_name : typing___Optional[typing___Text] = None, - ) -> None: ... - @classmethod - def FromString(cls, s: bytes) -> LogDescriptor: ... - def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - if sys.version_info >= (3,): - def ClearField(self, field_name: typing_extensions___Literal[u"description",u"display_name",u"labels",u"name"]) -> None: ... - else: - def ClearField(self, field_name: typing_extensions___Literal[u"description",b"description",u"display_name",b"display_name",u"labels",b"labels",u"name",b"name"]) -> None: ... + name: typing___Optional[typing___Text] = None, + labels: typing___Optional[ + typing___Iterable[google___api___label_pb2___LabelDescriptor] + ] = None, + description: typing___Optional[typing___Text] = None, + display_name: typing___Optional[typing___Text] = None, + ) -> None: ... + def ClearField( + self, + field_name: typing_extensions___Literal[ + "description", + b"description", + "display_name", + b"display_name", + "labels", + b"labels", + "name", + b"name", + ], + ) -> None: ... + +type___LogDescriptor = LogDescriptor diff --git a/google-stubs/api/logging_pb2.pyi b/google-stubs/api/logging_pb2.pyi index f886329..57e7dfc 100644 --- a/google-stubs/api/logging_pb2.pyi +++ b/google-stubs/api/logging_pb2.pyi @@ -1,67 +1,80 @@ # @generated by generate_proto_mypy_stubs.py. Do not edit! import sys +from typing import ( + Iterable as typing___Iterable, + Optional as typing___Optional, + Text as typing___Text, +) + 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, RepeatedScalarFieldContainer as google___protobuf___internal___containers___RepeatedScalarFieldContainer, ) +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 +builtin___float = float +builtin___int = int +DESCRIPTOR: google___protobuf___descriptor___FileDescriptor = ... class Logging(google___protobuf___message___Message): DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... class LoggingDestination(google___protobuf___message___Message): DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - monitored_resource = ... # type: typing___Text - logs = ... # type: google___protobuf___internal___containers___RepeatedScalarFieldContainer[typing___Text] - - def __init__(self, + monitored_resource: typing___Text = ... + logs: google___protobuf___internal___containers___RepeatedScalarFieldContainer[ + typing___Text + ] = ... + def __init__( + self, *, - monitored_resource : typing___Optional[typing___Text] = None, - logs : typing___Optional[typing___Iterable[typing___Text]] = None, - ) -> None: ... - @classmethod - def FromString(cls, s: bytes) -> Logging.LoggingDestination: ... - def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - if sys.version_info >= (3,): - def ClearField(self, field_name: typing_extensions___Literal[u"logs",u"monitored_resource"]) -> None: ... - else: - def ClearField(self, field_name: typing_extensions___Literal[u"logs",b"logs",u"monitored_resource",b"monitored_resource"]) -> None: ... - - + monitored_resource: typing___Optional[typing___Text] = None, + logs: typing___Optional[typing___Iterable[typing___Text]] = None, + ) -> None: ... + def ClearField( + self, + field_name: typing_extensions___Literal[ + "logs", b"logs", "monitored_resource", b"monitored_resource" + ], + ) -> None: ... + type___LoggingDestination = LoggingDestination @property - def producer_destinations(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[Logging.LoggingDestination]: ... - + def producer_destinations( + self, + ) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[ + type___Logging.LoggingDestination + ]: ... @property - def consumer_destinations(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[Logging.LoggingDestination]: ... - - def __init__(self, + def consumer_destinations( + self, + ) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[ + type___Logging.LoggingDestination + ]: ... + def __init__( + self, *, - producer_destinations : typing___Optional[typing___Iterable[Logging.LoggingDestination]] = None, - consumer_destinations : typing___Optional[typing___Iterable[Logging.LoggingDestination]] = None, - ) -> None: ... - @classmethod - def FromString(cls, s: bytes) -> Logging: ... - def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - if sys.version_info >= (3,): - def ClearField(self, field_name: typing_extensions___Literal[u"consumer_destinations",u"producer_destinations"]) -> None: ... - else: - def ClearField(self, field_name: typing_extensions___Literal[u"consumer_destinations",b"consumer_destinations",u"producer_destinations",b"producer_destinations"]) -> None: ... + producer_destinations: typing___Optional[ + typing___Iterable[type___Logging.LoggingDestination] + ] = None, + consumer_destinations: typing___Optional[ + typing___Iterable[type___Logging.LoggingDestination] + ] = None, + ) -> None: ... + def ClearField( + self, + field_name: typing_extensions___Literal[ + "consumer_destinations", + b"consumer_destinations", + "producer_destinations", + b"producer_destinations", + ], + ) -> None: ... + +type___Logging = Logging diff --git a/google-stubs/api/metric_pb2.pyi b/google-stubs/api/metric_pb2.pyi index 6ca7b59..5ecb7f9 100644 --- a/google-stubs/api/metric_pb2.pyi +++ b/google-stubs/api/metric_pb2.pyi @@ -1,198 +1,169 @@ # @generated by generate_proto_mypy_stubs.py. Do not edit! import sys -from google.api.label_pb2 import ( - LabelDescriptor as google___api___label_pb2___LabelDescriptor, -) - -from google.api.launch_stage_pb2 import ( - LaunchStage as google___api___launch_stage_pb2___LaunchStage, +from typing import ( + Iterable as typing___Iterable, + Mapping as typing___Mapping, + MutableMapping as typing___MutableMapping, + NewType as typing___NewType, + Optional as typing___Optional, + Text as typing___Text, + cast as typing___cast, ) from google.protobuf.descriptor import ( Descriptor as google___protobuf___descriptor___Descriptor, EnumDescriptor as google___protobuf___descriptor___EnumDescriptor, + FileDescriptor as google___protobuf___descriptor___FileDescriptor, ) - -from google.protobuf.duration_pb2 import ( - Duration as google___protobuf___duration_pb2___Duration, -) - 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.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 typing_extensions import Literal as typing_extensions___Literal -from typing import ( - Iterable as typing___Iterable, - List as typing___List, - Mapping as typing___Mapping, - MutableMapping as typing___MutableMapping, - Optional as typing___Optional, - Text as typing___Text, - Tuple as typing___Tuple, - cast as typing___cast, +from google.api.label_pb2 import ( + LabelDescriptor as google___api___label_pb2___LabelDescriptor, ) -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 MetricDescriptor(google___protobuf___message___Message): DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - class MetricKind(int): + MetricKindValue = typing___NewType("MetricKindValue", builtin___int) + type___MetricKindValue = MetricKindValue + MetricKind: _MetricKind + class _MetricKind( + google___protobuf___internal___enum_type_wrapper____EnumTypeWrapper[ + MetricDescriptor.MetricKindValue + ] + ): DESCRIPTOR: google___protobuf___descriptor___EnumDescriptor = ... - @classmethod - def Name(cls, number: int) -> str: ... - @classmethod - def Value(cls, name: str) -> MetricDescriptor.MetricKind: ... - @classmethod - def keys(cls) -> typing___List[str]: ... - @classmethod - def values(cls) -> typing___List[MetricDescriptor.MetricKind]: ... - @classmethod - def items(cls) -> typing___List[typing___Tuple[str, MetricDescriptor.MetricKind]]: ... - METRIC_KIND_UNSPECIFIED = typing___cast(MetricDescriptor.MetricKind, 0) - GAUGE = typing___cast(MetricDescriptor.MetricKind, 1) - DELTA = typing___cast(MetricDescriptor.MetricKind, 2) - CUMULATIVE = typing___cast(MetricDescriptor.MetricKind, 3) - METRIC_KIND_UNSPECIFIED = typing___cast(MetricDescriptor.MetricKind, 0) - GAUGE = typing___cast(MetricDescriptor.MetricKind, 1) - DELTA = typing___cast(MetricDescriptor.MetricKind, 2) - CUMULATIVE = typing___cast(MetricDescriptor.MetricKind, 3) - - class ValueType(int): + METRIC_KIND_UNSPECIFIED = typing___cast(MetricDescriptor.MetricKindValue, 0) + GAUGE = typing___cast(MetricDescriptor.MetricKindValue, 1) + DELTA = typing___cast(MetricDescriptor.MetricKindValue, 2) + CUMULATIVE = typing___cast(MetricDescriptor.MetricKindValue, 3) + METRIC_KIND_UNSPECIFIED = typing___cast(MetricDescriptor.MetricKindValue, 0) + GAUGE = typing___cast(MetricDescriptor.MetricKindValue, 1) + DELTA = typing___cast(MetricDescriptor.MetricKindValue, 2) + CUMULATIVE = typing___cast(MetricDescriptor.MetricKindValue, 3) + type___MetricKind = MetricKind + + ValueTypeValue = typing___NewType("ValueTypeValue", builtin___int) + type___ValueTypeValue = ValueTypeValue + ValueType: _ValueType + class _ValueType( + google___protobuf___internal___enum_type_wrapper____EnumTypeWrapper[ + MetricDescriptor.ValueTypeValue + ] + ): DESCRIPTOR: google___protobuf___descriptor___EnumDescriptor = ... - @classmethod - def Name(cls, number: int) -> str: ... - @classmethod - def Value(cls, name: str) -> MetricDescriptor.ValueType: ... - @classmethod - def keys(cls) -> typing___List[str]: ... - @classmethod - def values(cls) -> typing___List[MetricDescriptor.ValueType]: ... - @classmethod - def items(cls) -> typing___List[typing___Tuple[str, MetricDescriptor.ValueType]]: ... - VALUE_TYPE_UNSPECIFIED = typing___cast(MetricDescriptor.ValueType, 0) - BOOL = typing___cast(MetricDescriptor.ValueType, 1) - INT64 = typing___cast(MetricDescriptor.ValueType, 2) - DOUBLE = typing___cast(MetricDescriptor.ValueType, 3) - STRING = typing___cast(MetricDescriptor.ValueType, 4) - DISTRIBUTION = typing___cast(MetricDescriptor.ValueType, 5) - MONEY = typing___cast(MetricDescriptor.ValueType, 6) - VALUE_TYPE_UNSPECIFIED = typing___cast(MetricDescriptor.ValueType, 0) - BOOL = typing___cast(MetricDescriptor.ValueType, 1) - INT64 = typing___cast(MetricDescriptor.ValueType, 2) - DOUBLE = typing___cast(MetricDescriptor.ValueType, 3) - STRING = typing___cast(MetricDescriptor.ValueType, 4) - DISTRIBUTION = typing___cast(MetricDescriptor.ValueType, 5) - MONEY = typing___cast(MetricDescriptor.ValueType, 6) - - class MetricDescriptorMetadata(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - launch_stage = ... # type: google___api___launch_stage_pb2___LaunchStage - - @property - def sample_period(self) -> google___protobuf___duration_pb2___Duration: ... - - @property - def ingest_delay(self) -> google___protobuf___duration_pb2___Duration: ... - - def __init__(self, - *, - launch_stage : typing___Optional[google___api___launch_stage_pb2___LaunchStage] = None, - sample_period : typing___Optional[google___protobuf___duration_pb2___Duration] = None, - ingest_delay : typing___Optional[google___protobuf___duration_pb2___Duration] = None, - ) -> None: ... - @classmethod - def FromString(cls, s: bytes) -> MetricDescriptor.MetricDescriptorMetadata: ... - def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - if sys.version_info >= (3,): - def HasField(self, field_name: typing_extensions___Literal[u"ingest_delay",u"sample_period"]) -> bool: ... - def ClearField(self, field_name: typing_extensions___Literal[u"ingest_delay",u"launch_stage",u"sample_period"]) -> None: ... - else: - def HasField(self, field_name: typing_extensions___Literal[u"ingest_delay",b"ingest_delay",u"sample_period",b"sample_period"]) -> bool: ... - def ClearField(self, field_name: typing_extensions___Literal[u"ingest_delay",b"ingest_delay",u"launch_stage",b"launch_stage",u"sample_period",b"sample_period"]) -> None: ... - - name = ... # type: typing___Text - type = ... # type: typing___Text - metric_kind = ... # type: MetricDescriptor.MetricKind - value_type = ... # type: MetricDescriptor.ValueType - unit = ... # type: typing___Text - description = ... # type: typing___Text - display_name = ... # type: typing___Text - launch_stage = ... # type: google___api___launch_stage_pb2___LaunchStage - - @property - def labels(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[google___api___label_pb2___LabelDescriptor]: ... - + VALUE_TYPE_UNSPECIFIED = typing___cast(MetricDescriptor.ValueTypeValue, 0) + BOOL = typing___cast(MetricDescriptor.ValueTypeValue, 1) + INT64 = typing___cast(MetricDescriptor.ValueTypeValue, 2) + DOUBLE = typing___cast(MetricDescriptor.ValueTypeValue, 3) + STRING = typing___cast(MetricDescriptor.ValueTypeValue, 4) + DISTRIBUTION = typing___cast(MetricDescriptor.ValueTypeValue, 5) + MONEY = typing___cast(MetricDescriptor.ValueTypeValue, 6) + VALUE_TYPE_UNSPECIFIED = typing___cast(MetricDescriptor.ValueTypeValue, 0) + BOOL = typing___cast(MetricDescriptor.ValueTypeValue, 1) + INT64 = typing___cast(MetricDescriptor.ValueTypeValue, 2) + DOUBLE = typing___cast(MetricDescriptor.ValueTypeValue, 3) + STRING = typing___cast(MetricDescriptor.ValueTypeValue, 4) + DISTRIBUTION = typing___cast(MetricDescriptor.ValueTypeValue, 5) + MONEY = typing___cast(MetricDescriptor.ValueTypeValue, 6) + type___ValueType = ValueType + + name: typing___Text = ... + type: typing___Text = ... + metric_kind: type___MetricDescriptor.MetricKindValue = ... + value_type: type___MetricDescriptor.ValueTypeValue = ... + unit: typing___Text = ... + description: typing___Text = ... + display_name: typing___Text = ... @property - def metadata(self) -> MetricDescriptor.MetricDescriptorMetadata: ... - - def __init__(self, + def labels( + self, + ) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[ + google___api___label_pb2___LabelDescriptor + ]: ... + def __init__( + self, *, - name : typing___Optional[typing___Text] = None, - type : typing___Optional[typing___Text] = None, - labels : typing___Optional[typing___Iterable[google___api___label_pb2___LabelDescriptor]] = None, - metric_kind : typing___Optional[MetricDescriptor.MetricKind] = None, - value_type : typing___Optional[MetricDescriptor.ValueType] = None, - unit : typing___Optional[typing___Text] = None, - description : typing___Optional[typing___Text] = None, - display_name : typing___Optional[typing___Text] = None, - metadata : typing___Optional[MetricDescriptor.MetricDescriptorMetadata] = None, - launch_stage : typing___Optional[google___api___launch_stage_pb2___LaunchStage] = None, - ) -> None: ... - @classmethod - def FromString(cls, s: bytes) -> MetricDescriptor: ... - def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - if sys.version_info >= (3,): - def HasField(self, field_name: typing_extensions___Literal[u"metadata"]) -> bool: ... - def ClearField(self, field_name: typing_extensions___Literal[u"description",u"display_name",u"labels",u"launch_stage",u"metadata",u"metric_kind",u"name",u"type",u"unit",u"value_type"]) -> None: ... - else: - def HasField(self, field_name: typing_extensions___Literal[u"metadata",b"metadata"]) -> bool: ... - def ClearField(self, field_name: typing_extensions___Literal[u"description",b"description",u"display_name",b"display_name",u"labels",b"labels",u"launch_stage",b"launch_stage",u"metadata",b"metadata",u"metric_kind",b"metric_kind",u"name",b"name",u"type",b"type",u"unit",b"unit",u"value_type",b"value_type"]) -> None: ... + name: typing___Optional[typing___Text] = None, + type: typing___Optional[typing___Text] = None, + labels: typing___Optional[ + typing___Iterable[google___api___label_pb2___LabelDescriptor] + ] = None, + metric_kind: typing___Optional[type___MetricDescriptor.MetricKindValue] = None, + value_type: typing___Optional[type___MetricDescriptor.ValueTypeValue] = None, + unit: typing___Optional[typing___Text] = None, + description: typing___Optional[typing___Text] = None, + display_name: typing___Optional[typing___Text] = None, + ) -> None: ... + def ClearField( + self, + field_name: typing_extensions___Literal[ + "description", + b"description", + "display_name", + b"display_name", + "labels", + b"labels", + "metric_kind", + b"metric_kind", + "name", + b"name", + "type", + b"type", + "unit", + b"unit", + "value_type", + b"value_type", + ], + ) -> None: ... + +type___MetricDescriptor = MetricDescriptor class Metric(google___protobuf___message___Message): DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... class LabelsEntry(google___protobuf___message___Message): DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - key = ... # type: typing___Text - value = ... # type: typing___Text - - def __init__(self, + key: typing___Text = ... + value: typing___Text = ... + def __init__( + self, *, - key : typing___Optional[typing___Text] = None, - value : typing___Optional[typing___Text] = None, - ) -> None: ... - @classmethod - def FromString(cls, s: bytes) -> Metric.LabelsEntry: ... - def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - if sys.version_info >= (3,): - def ClearField(self, field_name: typing_extensions___Literal[u"key",u"value"]) -> None: ... - else: - def ClearField(self, field_name: typing_extensions___Literal[u"key",b"key",u"value",b"value"]) -> None: ... - - type = ... # type: typing___Text + key: typing___Optional[typing___Text] = None, + value: typing___Optional[typing___Text] = None, + ) -> None: ... + def ClearField( + self, + field_name: typing_extensions___Literal["key", b"key", "value", b"value"], + ) -> None: ... + type___LabelsEntry = LabelsEntry + type: typing___Text = ... @property def labels(self) -> typing___MutableMapping[typing___Text, typing___Text]: ... - - def __init__(self, + def __init__( + self, *, - type : typing___Optional[typing___Text] = None, - labels : typing___Optional[typing___Mapping[typing___Text, typing___Text]] = None, - ) -> None: ... - @classmethod - def FromString(cls, s: bytes) -> Metric: ... - def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - if sys.version_info >= (3,): - def ClearField(self, field_name: typing_extensions___Literal[u"labels",u"type"]) -> None: ... - else: - def ClearField(self, field_name: typing_extensions___Literal[u"labels",b"labels",u"type",b"type"]) -> None: ... + type: typing___Optional[typing___Text] = None, + labels: typing___Optional[ + typing___Mapping[typing___Text, typing___Text] + ] = None, + ) -> None: ... + def ClearField( + self, + field_name: typing_extensions___Literal["labels", b"labels", "type", b"type"], + ) -> None: ... + +type___Metric = Metric diff --git a/google-stubs/api/monitored_resource_pb2.pyi b/google-stubs/api/monitored_resource_pb2.pyi index 6784a4f..19e035a 100644 --- a/google-stubs/api/monitored_resource_pb2.pyi +++ b/google-stubs/api/monitored_resource_pb2.pyi @@ -1,151 +1,151 @@ # @generated by generate_proto_mypy_stubs.py. Do not edit! import sys -from google.api.label_pb2 import ( - LabelDescriptor as google___api___label_pb2___LabelDescriptor, -) - -from google.api.launch_stage_pb2 import ( - LaunchStage as google___api___launch_stage_pb2___LaunchStage, +from typing import ( + Iterable as typing___Iterable, + Mapping as typing___Mapping, + MutableMapping as typing___MutableMapping, + Optional as typing___Optional, + Text as typing___Text, ) 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.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 ( - Iterable as typing___Iterable, - Mapping as typing___Mapping, - MutableMapping as typing___MutableMapping, - Optional as typing___Optional, - Text as typing___Text, +from google.api.label_pb2 import ( + LabelDescriptor as google___api___label_pb2___LabelDescriptor, ) -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 MonitoredResourceDescriptor(google___protobuf___message___Message): DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - name = ... # type: typing___Text - type = ... # type: typing___Text - display_name = ... # type: typing___Text - description = ... # type: typing___Text - launch_stage = ... # type: google___api___launch_stage_pb2___LaunchStage - + name: typing___Text = ... + type: typing___Text = ... + display_name: typing___Text = ... + description: typing___Text = ... @property - def labels(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[google___api___label_pb2___LabelDescriptor]: ... - - def __init__(self, + def labels( + self, + ) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[ + google___api___label_pb2___LabelDescriptor + ]: ... + def __init__( + self, *, - name : typing___Optional[typing___Text] = None, - type : typing___Optional[typing___Text] = None, - display_name : typing___Optional[typing___Text] = None, - description : typing___Optional[typing___Text] = None, - labels : typing___Optional[typing___Iterable[google___api___label_pb2___LabelDescriptor]] = None, - launch_stage : typing___Optional[google___api___launch_stage_pb2___LaunchStage] = None, - ) -> None: ... - @classmethod - def FromString(cls, s: bytes) -> MonitoredResourceDescriptor: ... - def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - if sys.version_info >= (3,): - def ClearField(self, field_name: typing_extensions___Literal[u"description",u"display_name",u"labels",u"launch_stage",u"name",u"type"]) -> None: ... - else: - def ClearField(self, field_name: typing_extensions___Literal[u"description",b"description",u"display_name",b"display_name",u"labels",b"labels",u"launch_stage",b"launch_stage",u"name",b"name",u"type",b"type"]) -> None: ... + name: typing___Optional[typing___Text] = None, + type: typing___Optional[typing___Text] = None, + display_name: typing___Optional[typing___Text] = None, + description: typing___Optional[typing___Text] = None, + labels: typing___Optional[ + typing___Iterable[google___api___label_pb2___LabelDescriptor] + ] = None, + ) -> None: ... + def ClearField( + self, + field_name: typing_extensions___Literal[ + "description", + b"description", + "display_name", + b"display_name", + "labels", + b"labels", + "name", + b"name", + "type", + b"type", + ], + ) -> None: ... + +type___MonitoredResourceDescriptor = MonitoredResourceDescriptor class MonitoredResource(google___protobuf___message___Message): DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... class LabelsEntry(google___protobuf___message___Message): DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - key = ... # type: typing___Text - value = ... # type: typing___Text - - def __init__(self, + key: typing___Text = ... + value: typing___Text = ... + def __init__( + self, *, - key : typing___Optional[typing___Text] = None, - value : typing___Optional[typing___Text] = None, - ) -> None: ... - @classmethod - def FromString(cls, s: bytes) -> MonitoredResource.LabelsEntry: ... - def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - if sys.version_info >= (3,): - def ClearField(self, field_name: typing_extensions___Literal[u"key",u"value"]) -> None: ... - else: - def ClearField(self, field_name: typing_extensions___Literal[u"key",b"key",u"value",b"value"]) -> None: ... - - type = ... # type: typing___Text + key: typing___Optional[typing___Text] = None, + value: typing___Optional[typing___Text] = None, + ) -> None: ... + def ClearField( + self, + field_name: typing_extensions___Literal["key", b"key", "value", b"value"], + ) -> None: ... + type___LabelsEntry = LabelsEntry + type: typing___Text = ... @property def labels(self) -> typing___MutableMapping[typing___Text, typing___Text]: ... - - def __init__(self, + def __init__( + self, *, - type : typing___Optional[typing___Text] = None, - labels : typing___Optional[typing___Mapping[typing___Text, typing___Text]] = None, - ) -> None: ... - @classmethod - def FromString(cls, s: bytes) -> MonitoredResource: ... - def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - if sys.version_info >= (3,): - def ClearField(self, field_name: typing_extensions___Literal[u"labels",u"type"]) -> None: ... - else: - def ClearField(self, field_name: typing_extensions___Literal[u"labels",b"labels",u"type",b"type"]) -> None: ... + type: typing___Optional[typing___Text] = None, + labels: typing___Optional[ + typing___Mapping[typing___Text, typing___Text] + ] = None, + ) -> None: ... + def ClearField( + self, + field_name: typing_extensions___Literal["labels", b"labels", "type", b"type"], + ) -> None: ... + +type___MonitoredResource = MonitoredResource class MonitoredResourceMetadata(google___protobuf___message___Message): DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... class UserLabelsEntry(google___protobuf___message___Message): DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - key = ... # type: typing___Text - value = ... # type: typing___Text - - def __init__(self, + key: typing___Text = ... + value: typing___Text = ... + def __init__( + self, *, - key : typing___Optional[typing___Text] = None, - value : typing___Optional[typing___Text] = None, - ) -> None: ... - @classmethod - def FromString(cls, s: bytes) -> MonitoredResourceMetadata.UserLabelsEntry: ... - def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - if sys.version_info >= (3,): - def ClearField(self, field_name: typing_extensions___Literal[u"key",u"value"]) -> None: ... - else: - def ClearField(self, field_name: typing_extensions___Literal[u"key",b"key",u"value",b"value"]) -> None: ... - - + key: typing___Optional[typing___Text] = None, + value: typing___Optional[typing___Text] = None, + ) -> None: ... + def ClearField( + self, + field_name: typing_extensions___Literal["key", b"key", "value", b"value"], + ) -> None: ... + type___UserLabelsEntry = UserLabelsEntry @property def system_labels(self) -> google___protobuf___struct_pb2___Struct: ... - @property def user_labels(self) -> typing___MutableMapping[typing___Text, typing___Text]: ... - - def __init__(self, + def __init__( + self, *, - system_labels : typing___Optional[google___protobuf___struct_pb2___Struct] = None, - user_labels : typing___Optional[typing___Mapping[typing___Text, typing___Text]] = None, - ) -> None: ... - @classmethod - def FromString(cls, s: bytes) -> MonitoredResourceMetadata: ... - def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - if sys.version_info >= (3,): - def HasField(self, field_name: typing_extensions___Literal[u"system_labels"]) -> bool: ... - def ClearField(self, field_name: typing_extensions___Literal[u"system_labels",u"user_labels"]) -> None: ... - else: - def HasField(self, field_name: typing_extensions___Literal[u"system_labels",b"system_labels"]) -> bool: ... - def ClearField(self, field_name: typing_extensions___Literal[u"system_labels",b"system_labels",u"user_labels",b"user_labels"]) -> None: ... + system_labels: typing___Optional[ + google___protobuf___struct_pb2___Struct + ] = None, + user_labels: typing___Optional[ + typing___Mapping[typing___Text, typing___Text] + ] = None, + ) -> None: ... + def HasField( + self, field_name: typing_extensions___Literal["system_labels", b"system_labels"] + ) -> builtin___bool: ... + def ClearField( + self, + field_name: typing_extensions___Literal[ + "system_labels", b"system_labels", "user_labels", b"user_labels" + ], + ) -> None: ... + +type___MonitoredResourceMetadata = MonitoredResourceMetadata diff --git a/google-stubs/api/monitoring_pb2.pyi b/google-stubs/api/monitoring_pb2.pyi index 4927df6..25f3f87 100644 --- a/google-stubs/api/monitoring_pb2.pyi +++ b/google-stubs/api/monitoring_pb2.pyi @@ -1,67 +1,80 @@ # @generated by generate_proto_mypy_stubs.py. Do not edit! import sys +from typing import ( + Iterable as typing___Iterable, + Optional as typing___Optional, + Text as typing___Text, +) + 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, RepeatedScalarFieldContainer as google___protobuf___internal___containers___RepeatedScalarFieldContainer, ) +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 +builtin___float = float +builtin___int = int +DESCRIPTOR: google___protobuf___descriptor___FileDescriptor = ... class Monitoring(google___protobuf___message___Message): DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... class MonitoringDestination(google___protobuf___message___Message): DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - monitored_resource = ... # type: typing___Text - metrics = ... # type: google___protobuf___internal___containers___RepeatedScalarFieldContainer[typing___Text] - - def __init__(self, + monitored_resource: typing___Text = ... + metrics: google___protobuf___internal___containers___RepeatedScalarFieldContainer[ + typing___Text + ] = ... + def __init__( + self, *, - monitored_resource : typing___Optional[typing___Text] = None, - metrics : typing___Optional[typing___Iterable[typing___Text]] = None, - ) -> None: ... - @classmethod - def FromString(cls, s: bytes) -> Monitoring.MonitoringDestination: ... - def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - if sys.version_info >= (3,): - def ClearField(self, field_name: typing_extensions___Literal[u"metrics",u"monitored_resource"]) -> None: ... - else: - def ClearField(self, field_name: typing_extensions___Literal[u"metrics",b"metrics",u"monitored_resource",b"monitored_resource"]) -> None: ... - - + monitored_resource: typing___Optional[typing___Text] = None, + metrics: typing___Optional[typing___Iterable[typing___Text]] = None, + ) -> None: ... + def ClearField( + self, + field_name: typing_extensions___Literal[ + "metrics", b"metrics", "monitored_resource", b"monitored_resource" + ], + ) -> None: ... + type___MonitoringDestination = MonitoringDestination @property - def producer_destinations(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[Monitoring.MonitoringDestination]: ... - + def producer_destinations( + self, + ) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[ + type___Monitoring.MonitoringDestination + ]: ... @property - def consumer_destinations(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[Monitoring.MonitoringDestination]: ... - - def __init__(self, + def consumer_destinations( + self, + ) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[ + type___Monitoring.MonitoringDestination + ]: ... + def __init__( + self, *, - producer_destinations : typing___Optional[typing___Iterable[Monitoring.MonitoringDestination]] = None, - consumer_destinations : typing___Optional[typing___Iterable[Monitoring.MonitoringDestination]] = None, - ) -> None: ... - @classmethod - def FromString(cls, s: bytes) -> Monitoring: ... - def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - if sys.version_info >= (3,): - def ClearField(self, field_name: typing_extensions___Literal[u"consumer_destinations",u"producer_destinations"]) -> None: ... - else: - def ClearField(self, field_name: typing_extensions___Literal[u"consumer_destinations",b"consumer_destinations",u"producer_destinations",b"producer_destinations"]) -> None: ... + producer_destinations: typing___Optional[ + typing___Iterable[type___Monitoring.MonitoringDestination] + ] = None, + consumer_destinations: typing___Optional[ + typing___Iterable[type___Monitoring.MonitoringDestination] + ] = None, + ) -> None: ... + def ClearField( + self, + field_name: typing_extensions___Literal[ + "consumer_destinations", + b"consumer_destinations", + "producer_destinations", + b"producer_destinations", + ], + ) -> None: ... + +type___Monitoring = Monitoring diff --git a/google-stubs/api/quota_pb2.pyi b/google-stubs/api/quota_pb2.pyi index 7480200..412663d 100644 --- a/google-stubs/api/quota_pb2.pyi +++ b/google-stubs/api/quota_pb2.pyi @@ -1,17 +1,5 @@ # @generated by generate_proto_mypy_stubs.py. Do not edit! import sys -from google.protobuf.descriptor import ( - Descriptor as google___protobuf___descriptor___Descriptor, -) - -from google.protobuf.internal.containers import ( - RepeatedCompositeFieldContainer as google___protobuf___internal___containers___RepeatedCompositeFieldContainer, -) - -from google.protobuf.message import ( - Message as google___protobuf___message___Message, -) - from typing import ( Iterable as typing___Iterable, Mapping as typing___Mapping, @@ -20,126 +8,159 @@ from typing import ( Text as typing___Text, ) -from typing_extensions import ( - Literal as typing_extensions___Literal, +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 +builtin___bool = bool +builtin___bytes = bytes +builtin___float = float +builtin___int = int + +DESCRIPTOR: google___protobuf___descriptor___FileDescriptor = ... class Quota(google___protobuf___message___Message): DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - @property - def limits(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[QuotaLimit]: ... - + def limits( + self, + ) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[ + type___QuotaLimit + ]: ... @property - def metric_rules(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[MetricRule]: ... - - def __init__(self, + def metric_rules( + self, + ) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[ + type___MetricRule + ]: ... + def __init__( + self, *, - limits : typing___Optional[typing___Iterable[QuotaLimit]] = None, - metric_rules : typing___Optional[typing___Iterable[MetricRule]] = None, - ) -> None: ... - @classmethod - def FromString(cls, s: bytes) -> Quota: ... - def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - if sys.version_info >= (3,): - def ClearField(self, field_name: typing_extensions___Literal[u"limits",u"metric_rules"]) -> None: ... - else: - def ClearField(self, field_name: typing_extensions___Literal[u"limits",b"limits",u"metric_rules",b"metric_rules"]) -> None: ... + limits: typing___Optional[typing___Iterable[type___QuotaLimit]] = None, + metric_rules: typing___Optional[typing___Iterable[type___MetricRule]] = None, + ) -> None: ... + def ClearField( + self, + field_name: typing_extensions___Literal[ + "limits", b"limits", "metric_rules", b"metric_rules" + ], + ) -> None: ... + +type___Quota = Quota class MetricRule(google___protobuf___message___Message): DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... class MetricCostsEntry(google___protobuf___message___Message): DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - key = ... # type: typing___Text - value = ... # type: int - - def __init__(self, + key: typing___Text = ... + value: builtin___int = ... + def __init__( + self, *, - key : typing___Optional[typing___Text] = None, - value : typing___Optional[int] = None, - ) -> None: ... - @classmethod - def FromString(cls, s: bytes) -> MetricRule.MetricCostsEntry: ... - def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - if sys.version_info >= (3,): - def ClearField(self, field_name: typing_extensions___Literal[u"key",u"value"]) -> None: ... - else: - def ClearField(self, field_name: typing_extensions___Literal[u"key",b"key",u"value",b"value"]) -> None: ... - - selector = ... # type: typing___Text + key: typing___Optional[typing___Text] = None, + value: typing___Optional[builtin___int] = None, + ) -> None: ... + def ClearField( + self, + field_name: typing_extensions___Literal["key", b"key", "value", b"value"], + ) -> None: ... + type___MetricCostsEntry = MetricCostsEntry + selector: typing___Text = ... @property - def metric_costs(self) -> typing___MutableMapping[typing___Text, int]: ... - - def __init__(self, + def metric_costs(self) -> typing___MutableMapping[typing___Text, builtin___int]: ... + def __init__( + self, *, - selector : typing___Optional[typing___Text] = None, - metric_costs : typing___Optional[typing___Mapping[typing___Text, int]] = None, - ) -> None: ... - @classmethod - def FromString(cls, s: bytes) -> MetricRule: ... - def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - if sys.version_info >= (3,): - def ClearField(self, field_name: typing_extensions___Literal[u"metric_costs",u"selector"]) -> None: ... - else: - def ClearField(self, field_name: typing_extensions___Literal[u"metric_costs",b"metric_costs",u"selector",b"selector"]) -> None: ... + selector: typing___Optional[typing___Text] = None, + metric_costs: typing___Optional[ + typing___Mapping[typing___Text, builtin___int] + ] = None, + ) -> None: ... + def ClearField( + self, + field_name: typing_extensions___Literal[ + "metric_costs", b"metric_costs", "selector", b"selector" + ], + ) -> None: ... + +type___MetricRule = MetricRule class QuotaLimit(google___protobuf___message___Message): DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... class ValuesEntry(google___protobuf___message___Message): DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - key = ... # type: typing___Text - value = ... # type: int - - def __init__(self, + key: typing___Text = ... + value: builtin___int = ... + def __init__( + self, *, - key : typing___Optional[typing___Text] = None, - value : typing___Optional[int] = None, - ) -> None: ... - @classmethod - def FromString(cls, s: bytes) -> QuotaLimit.ValuesEntry: ... - def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - if sys.version_info >= (3,): - def ClearField(self, field_name: typing_extensions___Literal[u"key",u"value"]) -> None: ... - else: - def ClearField(self, field_name: typing_extensions___Literal[u"key",b"key",u"value",b"value"]) -> None: ... - - name = ... # type: typing___Text - description = ... # type: typing___Text - default_limit = ... # type: int - max_limit = ... # type: int - free_tier = ... # type: int - duration = ... # type: typing___Text - metric = ... # type: typing___Text - unit = ... # type: typing___Text - display_name = ... # type: typing___Text - + key: typing___Optional[typing___Text] = None, + value: typing___Optional[builtin___int] = None, + ) -> None: ... + def ClearField( + self, + field_name: typing_extensions___Literal["key", b"key", "value", b"value"], + ) -> None: ... + type___ValuesEntry = ValuesEntry + + name: typing___Text = ... + description: typing___Text = ... + default_limit: builtin___int = ... + max_limit: builtin___int = ... + free_tier: builtin___int = ... + duration: typing___Text = ... + metric: typing___Text = ... + unit: typing___Text = ... + display_name: typing___Text = ... @property - def values(self) -> typing___MutableMapping[typing___Text, int]: ... - - def __init__(self, + def values(self) -> typing___MutableMapping[typing___Text, builtin___int]: ... + def __init__( + self, *, - name : typing___Optional[typing___Text] = None, - description : typing___Optional[typing___Text] = None, - default_limit : typing___Optional[int] = None, - max_limit : typing___Optional[int] = None, - free_tier : typing___Optional[int] = None, - duration : typing___Optional[typing___Text] = None, - metric : typing___Optional[typing___Text] = None, - unit : typing___Optional[typing___Text] = None, - values : typing___Optional[typing___Mapping[typing___Text, int]] = None, - display_name : typing___Optional[typing___Text] = None, - ) -> None: ... - @classmethod - def FromString(cls, s: bytes) -> QuotaLimit: ... - def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - if sys.version_info >= (3,): - def ClearField(self, field_name: typing_extensions___Literal[u"default_limit",u"description",u"display_name",u"duration",u"free_tier",u"max_limit",u"metric",u"name",u"unit",u"values"]) -> None: ... - else: - def ClearField(self, field_name: typing_extensions___Literal[u"default_limit",b"default_limit",u"description",b"description",u"display_name",b"display_name",u"duration",b"duration",u"free_tier",b"free_tier",u"max_limit",b"max_limit",u"metric",b"metric",u"name",b"name",u"unit",b"unit",u"values",b"values"]) -> None: ... + name: typing___Optional[typing___Text] = None, + description: typing___Optional[typing___Text] = None, + default_limit: typing___Optional[builtin___int] = None, + max_limit: typing___Optional[builtin___int] = None, + free_tier: typing___Optional[builtin___int] = None, + duration: typing___Optional[typing___Text] = None, + metric: typing___Optional[typing___Text] = None, + unit: typing___Optional[typing___Text] = None, + values: typing___Optional[ + typing___Mapping[typing___Text, builtin___int] + ] = None, + display_name: typing___Optional[typing___Text] = None, + ) -> None: ... + def ClearField( + self, + field_name: typing_extensions___Literal[ + "default_limit", + b"default_limit", + "description", + b"description", + "display_name", + b"display_name", + "duration", + b"duration", + "free_tier", + b"free_tier", + "max_limit", + b"max_limit", + "metric", + b"metric", + "name", + b"name", + "unit", + b"unit", + "values", + b"values", + ], + ) -> None: ... + +type___QuotaLimit = QuotaLimit diff --git a/google-stubs/api/resource_pb2.pyi b/google-stubs/api/resource_pb2.pyi index 4e03915..de5b56a 100644 --- a/google-stubs/api/resource_pb2.pyi +++ b/google-stubs/api/resource_pb2.pyi @@ -1,94 +1,113 @@ # @generated by generate_proto_mypy_stubs.py. Do not edit! import sys +from typing import ( + Iterable as typing___Iterable, + NewType as typing___NewType, + Optional as typing___Optional, + Text as typing___Text, + cast as typing___cast, +) + from google.protobuf.descriptor import ( Descriptor as google___protobuf___descriptor___Descriptor, EnumDescriptor as google___protobuf___descriptor___EnumDescriptor, FieldDescriptor as google___protobuf___descriptor___FieldDescriptor, + FileDescriptor as google___protobuf___descriptor___FileDescriptor, ) - from google.protobuf.internal.containers import ( RepeatedScalarFieldContainer as google___protobuf___internal___containers___RepeatedScalarFieldContainer, ) - -from google.protobuf.message import ( - Message as google___protobuf___message___Message, -) - -from typing import ( - Iterable as typing___Iterable, - List as typing___List, - Optional as typing___Optional, - Text as typing___Text, - Tuple as typing___Tuple, - cast as typing___cast, +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 typing_extensions import Literal as typing_extensions___Literal -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 ResourceDescriptor(google___protobuf___message___Message): DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - class History(int): + HistoryValue = typing___NewType("HistoryValue", builtin___int) + type___HistoryValue = HistoryValue + History: _History + class _History( + google___protobuf___internal___enum_type_wrapper____EnumTypeWrapper[ + ResourceDescriptor.HistoryValue + ] + ): DESCRIPTOR: google___protobuf___descriptor___EnumDescriptor = ... - @classmethod - def Name(cls, number: int) -> str: ... - @classmethod - def Value(cls, name: str) -> ResourceDescriptor.History: ... - @classmethod - def keys(cls) -> typing___List[str]: ... - @classmethod - def values(cls) -> typing___List[ResourceDescriptor.History]: ... - @classmethod - def items(cls) -> typing___List[typing___Tuple[str, ResourceDescriptor.History]]: ... - HISTORY_UNSPECIFIED = typing___cast(ResourceDescriptor.History, 0) - ORIGINALLY_SINGLE_PATTERN = typing___cast(ResourceDescriptor.History, 1) - FUTURE_MULTI_PATTERN = typing___cast(ResourceDescriptor.History, 2) - HISTORY_UNSPECIFIED = typing___cast(ResourceDescriptor.History, 0) - ORIGINALLY_SINGLE_PATTERN = typing___cast(ResourceDescriptor.History, 1) - FUTURE_MULTI_PATTERN = typing___cast(ResourceDescriptor.History, 2) + HISTORY_UNSPECIFIED = typing___cast(ResourceDescriptor.HistoryValue, 0) + ORIGINALLY_SINGLE_PATTERN = typing___cast(ResourceDescriptor.HistoryValue, 1) + FUTURE_MULTI_PATTERN = typing___cast(ResourceDescriptor.HistoryValue, 2) + HISTORY_UNSPECIFIED = typing___cast(ResourceDescriptor.HistoryValue, 0) + ORIGINALLY_SINGLE_PATTERN = typing___cast(ResourceDescriptor.HistoryValue, 1) + FUTURE_MULTI_PATTERN = typing___cast(ResourceDescriptor.HistoryValue, 2) + type___History = History - type = ... # type: typing___Text - pattern = ... # type: google___protobuf___internal___containers___RepeatedScalarFieldContainer[typing___Text] - name_field = ... # type: typing___Text - history = ... # type: ResourceDescriptor.History - - def __init__(self, + type: typing___Text = ... + pattern: google___protobuf___internal___containers___RepeatedScalarFieldContainer[ + typing___Text + ] = ... + name_field: typing___Text = ... + history: type___ResourceDescriptor.HistoryValue = ... + plural: typing___Text = ... + singular: typing___Text = ... + def __init__( + self, *, - type : typing___Optional[typing___Text] = None, - pattern : typing___Optional[typing___Iterable[typing___Text]] = None, - name_field : typing___Optional[typing___Text] = None, - history : typing___Optional[ResourceDescriptor.History] = None, - ) -> None: ... - @classmethod - def FromString(cls, s: bytes) -> ResourceDescriptor: ... - def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - if sys.version_info >= (3,): - def ClearField(self, field_name: typing_extensions___Literal[u"history",u"name_field",u"pattern",u"type"]) -> None: ... - else: - def ClearField(self, field_name: typing_extensions___Literal[u"history",b"history",u"name_field",b"name_field",u"pattern",b"pattern",u"type",b"type"]) -> None: ... + type: typing___Optional[typing___Text] = None, + pattern: typing___Optional[typing___Iterable[typing___Text]] = None, + name_field: typing___Optional[typing___Text] = None, + history: typing___Optional[type___ResourceDescriptor.HistoryValue] = None, + plural: typing___Optional[typing___Text] = None, + singular: typing___Optional[typing___Text] = None, + ) -> None: ... + def ClearField( + self, + field_name: typing_extensions___Literal[ + "history", + b"history", + "name_field", + b"name_field", + "pattern", + b"pattern", + "plural", + b"plural", + "singular", + b"singular", + "type", + b"type", + ], + ) -> None: ... + +type___ResourceDescriptor = ResourceDescriptor class ResourceReference(google___protobuf___message___Message): DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - type = ... # type: typing___Text - child_type = ... # type: typing___Text - - def __init__(self, + type: typing___Text = ... + child_type: typing___Text = ... + def __init__( + self, *, - type : typing___Optional[typing___Text] = None, - child_type : typing___Optional[typing___Text] = None, - ) -> None: ... - @classmethod - def FromString(cls, s: bytes) -> ResourceReference: ... - def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - if sys.version_info >= (3,): - def ClearField(self, field_name: typing_extensions___Literal[u"child_type",u"type"]) -> None: ... - else: - def ClearField(self, field_name: typing_extensions___Literal[u"child_type",b"child_type",u"type",b"type"]) -> None: ... + type: typing___Optional[typing___Text] = None, + child_type: typing___Optional[typing___Text] = None, + ) -> None: ... + def ClearField( + self, + field_name: typing_extensions___Literal[ + "child_type", b"child_type", "type", b"type" + ], + ) -> None: ... + +type___ResourceReference = ResourceReference + +resource_reference: google___protobuf___descriptor___FieldDescriptor = ... -resource_reference = ... # type: google___protobuf___descriptor___FieldDescriptor +resource_definition: google___protobuf___descriptor___FieldDescriptor = ... -resource = ... # type: google___protobuf___descriptor___FieldDescriptor +resource: google___protobuf___descriptor___FieldDescriptor = ... diff --git a/google-stubs/api/service_pb2.pyi b/google-stubs/api/service_pb2.pyi index 56e5871..18dae16 100644 --- a/google-stubs/api/service_pb2.pyi +++ b/google-stubs/api/service_pb2.pyi @@ -1,214 +1,290 @@ # @generated by generate_proto_mypy_stubs.py. Do not edit! import sys -from google.api.auth_pb2 import ( - Authentication as google___api___auth_pb2___Authentication, +from typing import ( + Iterable as typing___Iterable, + Optional as typing___Optional, + Text as typing___Text, ) -from google.api.backend_pb2 import ( - Backend as google___api___backend_pb2___Backend, +from google.protobuf.api_pb2 import Api as google___protobuf___api_pb2___Api +from google.protobuf.descriptor import ( + Descriptor as google___protobuf___descriptor___Descriptor, + FileDescriptor as google___protobuf___descriptor___FileDescriptor, ) - -from google.api.billing_pb2 import ( - Billing as google___api___billing_pb2___Billing, +from google.protobuf.internal.containers import ( + RepeatedCompositeFieldContainer as google___protobuf___internal___containers___RepeatedCompositeFieldContainer, ) - -from google.api.context_pb2 import ( - Context as google___api___context_pb2___Context, +from google.protobuf.message import Message as google___protobuf___message___Message +from google.protobuf.type_pb2 import ( + Enum as google___protobuf___type_pb2___Enum, + Type as google___protobuf___type_pb2___Type, ) - -from google.api.control_pb2 import ( - Control as google___api___control_pb2___Control, +from google.protobuf.wrappers_pb2 import ( + UInt32Value as google___protobuf___wrappers_pb2___UInt32Value, ) +from typing_extensions import Literal as typing_extensions___Literal +from google.api.auth_pb2 import ( + Authentication as google___api___auth_pb2___Authentication, +) +from google.api.backend_pb2 import Backend as google___api___backend_pb2___Backend +from google.api.billing_pb2 import Billing as google___api___billing_pb2___Billing +from google.api.context_pb2 import Context as google___api___context_pb2___Context +from google.api.control_pb2 import Control as google___api___control_pb2___Control from google.api.documentation_pb2 import ( Documentation as google___api___documentation_pb2___Documentation, ) - -from google.api.endpoint_pb2 import ( - Endpoint as google___api___endpoint_pb2___Endpoint, -) - -from google.api.http_pb2 import ( - Http as google___api___http_pb2___Http, -) - -from google.api.log_pb2 import ( - LogDescriptor as google___api___log_pb2___LogDescriptor, -) - -from google.api.logging_pb2 import ( - Logging as google___api___logging_pb2___Logging, -) - +from google.api.endpoint_pb2 import Endpoint as google___api___endpoint_pb2___Endpoint +from google.api.http_pb2 import Http as google___api___http_pb2___Http +from google.api.log_pb2 import LogDescriptor as google___api___log_pb2___LogDescriptor +from google.api.logging_pb2 import Logging as google___api___logging_pb2___Logging from google.api.metric_pb2 import ( MetricDescriptor as google___api___metric_pb2___MetricDescriptor, ) - from google.api.monitored_resource_pb2 import ( MonitoredResourceDescriptor as google___api___monitored_resource_pb2___MonitoredResourceDescriptor, ) - from google.api.monitoring_pb2 import ( Monitoring as google___api___monitoring_pb2___Monitoring, ) - -from google.api.quota_pb2 import ( - Quota as google___api___quota_pb2___Quota, -) - +from google.api.quota_pb2 import Quota as google___api___quota_pb2___Quota from google.api.source_info_pb2 import ( SourceInfo as google___api___source_info_pb2___SourceInfo, ) - from google.api.system_parameter_pb2 import ( SystemParameters as google___api___system_parameter_pb2___SystemParameters, ) +from google.api.usage_pb2 import Usage as google___api___usage_pb2___Usage -from google.api.usage_pb2 import ( - Usage as google___api___usage_pb2___Usage, -) - -from google.protobuf.api_pb2 import ( - Api as google___protobuf___api_pb2___Api, -) - -from google.protobuf.descriptor import ( - Descriptor as google___protobuf___descriptor___Descriptor, -) - -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.type_pb2 import ( - Enum as google___protobuf___type_pb2___Enum, - Type as google___protobuf___type_pb2___Type, -) - -from google.protobuf.wrappers_pb2 import ( - UInt32Value as google___protobuf___wrappers_pb2___UInt32Value, -) - -from typing import ( - Iterable as typing___Iterable, - Optional as typing___Optional, - Text as typing___Text, -) - -from typing_extensions import ( - Literal as typing_extensions___Literal, -) +builtin___bool = bool +builtin___bytes = bytes +builtin___float = float +builtin___int = int +DESCRIPTOR: google___protobuf___descriptor___FileDescriptor = ... class Service(google___protobuf___message___Message): DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - name = ... # type: typing___Text - id = ... # type: typing___Text - title = ... # type: typing___Text - producer_project_id = ... # type: typing___Text - + name: typing___Text = ... + id: typing___Text = ... + title: typing___Text = ... + producer_project_id: typing___Text = ... @property def config_version(self) -> google___protobuf___wrappers_pb2___UInt32Value: ... - @property - def apis(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[google___protobuf___api_pb2___Api]: ... - + def apis( + self, + ) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[ + google___protobuf___api_pb2___Api + ]: ... @property - def types(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[google___protobuf___type_pb2___Type]: ... - + def types( + self, + ) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[ + google___protobuf___type_pb2___Type + ]: ... @property - def enums(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[google___protobuf___type_pb2___Enum]: ... - + def enums( + self, + ) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[ + google___protobuf___type_pb2___Enum + ]: ... @property def documentation(self) -> google___api___documentation_pb2___Documentation: ... - @property def backend(self) -> google___api___backend_pb2___Backend: ... - @property def http(self) -> google___api___http_pb2___Http: ... - @property def quota(self) -> google___api___quota_pb2___Quota: ... - @property def authentication(self) -> google___api___auth_pb2___Authentication: ... - @property def context(self) -> google___api___context_pb2___Context: ... - @property def usage(self) -> google___api___usage_pb2___Usage: ... - @property - def endpoints(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[google___api___endpoint_pb2___Endpoint]: ... - + def endpoints( + self, + ) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[ + google___api___endpoint_pb2___Endpoint + ]: ... @property def control(self) -> google___api___control_pb2___Control: ... - @property - def logs(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[google___api___log_pb2___LogDescriptor]: ... - + def logs( + self, + ) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[ + google___api___log_pb2___LogDescriptor + ]: ... @property - def metrics(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[google___api___metric_pb2___MetricDescriptor]: ... - + def metrics( + self, + ) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[ + google___api___metric_pb2___MetricDescriptor + ]: ... @property - def monitored_resources(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[google___api___monitored_resource_pb2___MonitoredResourceDescriptor]: ... - + def monitored_resources( + self, + ) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[ + google___api___monitored_resource_pb2___MonitoredResourceDescriptor + ]: ... @property def billing(self) -> google___api___billing_pb2___Billing: ... - @property def logging(self) -> google___api___logging_pb2___Logging: ... - @property def monitoring(self) -> google___api___monitoring_pb2___Monitoring: ... - @property - def system_parameters(self) -> google___api___system_parameter_pb2___SystemParameters: ... - + def system_parameters( + self, + ) -> google___api___system_parameter_pb2___SystemParameters: ... @property def source_info(self) -> google___api___source_info_pb2___SourceInfo: ... - - def __init__(self, + def __init__( + self, *, - config_version : typing___Optional[google___protobuf___wrappers_pb2___UInt32Value] = None, - name : typing___Optional[typing___Text] = None, - id : typing___Optional[typing___Text] = None, - title : typing___Optional[typing___Text] = None, - producer_project_id : typing___Optional[typing___Text] = None, - apis : typing___Optional[typing___Iterable[google___protobuf___api_pb2___Api]] = None, - types : typing___Optional[typing___Iterable[google___protobuf___type_pb2___Type]] = None, - enums : typing___Optional[typing___Iterable[google___protobuf___type_pb2___Enum]] = None, - documentation : typing___Optional[google___api___documentation_pb2___Documentation] = None, - backend : typing___Optional[google___api___backend_pb2___Backend] = None, - http : typing___Optional[google___api___http_pb2___Http] = None, - quota : typing___Optional[google___api___quota_pb2___Quota] = None, - authentication : typing___Optional[google___api___auth_pb2___Authentication] = None, - context : typing___Optional[google___api___context_pb2___Context] = None, - usage : typing___Optional[google___api___usage_pb2___Usage] = None, - endpoints : typing___Optional[typing___Iterable[google___api___endpoint_pb2___Endpoint]] = None, - control : typing___Optional[google___api___control_pb2___Control] = None, - logs : typing___Optional[typing___Iterable[google___api___log_pb2___LogDescriptor]] = None, - metrics : typing___Optional[typing___Iterable[google___api___metric_pb2___MetricDescriptor]] = None, - monitored_resources : typing___Optional[typing___Iterable[google___api___monitored_resource_pb2___MonitoredResourceDescriptor]] = None, - billing : typing___Optional[google___api___billing_pb2___Billing] = None, - logging : typing___Optional[google___api___logging_pb2___Logging] = None, - monitoring : typing___Optional[google___api___monitoring_pb2___Monitoring] = None, - system_parameters : typing___Optional[google___api___system_parameter_pb2___SystemParameters] = None, - source_info : typing___Optional[google___api___source_info_pb2___SourceInfo] = None, - ) -> None: ... - @classmethod - def FromString(cls, s: bytes) -> Service: ... - def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - if sys.version_info >= (3,): - def HasField(self, field_name: typing_extensions___Literal[u"authentication",u"backend",u"billing",u"config_version",u"context",u"control",u"documentation",u"http",u"logging",u"monitoring",u"quota",u"source_info",u"system_parameters",u"usage"]) -> bool: ... - def ClearField(self, field_name: typing_extensions___Literal[u"apis",u"authentication",u"backend",u"billing",u"config_version",u"context",u"control",u"documentation",u"endpoints",u"enums",u"http",u"id",u"logging",u"logs",u"metrics",u"monitored_resources",u"monitoring",u"name",u"producer_project_id",u"quota",u"source_info",u"system_parameters",u"title",u"types",u"usage"]) -> None: ... - else: - def HasField(self, field_name: typing_extensions___Literal[u"authentication",b"authentication",u"backend",b"backend",u"billing",b"billing",u"config_version",b"config_version",u"context",b"context",u"control",b"control",u"documentation",b"documentation",u"http",b"http",u"logging",b"logging",u"monitoring",b"monitoring",u"quota",b"quota",u"source_info",b"source_info",u"system_parameters",b"system_parameters",u"usage",b"usage"]) -> bool: ... - def ClearField(self, field_name: typing_extensions___Literal[u"apis",b"apis",u"authentication",b"authentication",u"backend",b"backend",u"billing",b"billing",u"config_version",b"config_version",u"context",b"context",u"control",b"control",u"documentation",b"documentation",u"endpoints",b"endpoints",u"enums",b"enums",u"http",b"http",u"id",b"id",u"logging",b"logging",u"logs",b"logs",u"metrics",b"metrics",u"monitored_resources",b"monitored_resources",u"monitoring",b"monitoring",u"name",b"name",u"producer_project_id",b"producer_project_id",u"quota",b"quota",u"source_info",b"source_info",u"system_parameters",b"system_parameters",u"title",b"title",u"types",b"types",u"usage",b"usage"]) -> None: ... + config_version: typing___Optional[ + google___protobuf___wrappers_pb2___UInt32Value + ] = None, + name: typing___Optional[typing___Text] = None, + id: typing___Optional[typing___Text] = None, + title: typing___Optional[typing___Text] = None, + producer_project_id: typing___Optional[typing___Text] = None, + apis: typing___Optional[ + typing___Iterable[google___protobuf___api_pb2___Api] + ] = None, + types: typing___Optional[ + typing___Iterable[google___protobuf___type_pb2___Type] + ] = None, + enums: typing___Optional[ + typing___Iterable[google___protobuf___type_pb2___Enum] + ] = None, + documentation: typing___Optional[ + google___api___documentation_pb2___Documentation + ] = None, + backend: typing___Optional[google___api___backend_pb2___Backend] = None, + http: typing___Optional[google___api___http_pb2___Http] = None, + quota: typing___Optional[google___api___quota_pb2___Quota] = None, + authentication: typing___Optional[ + google___api___auth_pb2___Authentication + ] = None, + context: typing___Optional[google___api___context_pb2___Context] = None, + usage: typing___Optional[google___api___usage_pb2___Usage] = None, + endpoints: typing___Optional[ + typing___Iterable[google___api___endpoint_pb2___Endpoint] + ] = None, + control: typing___Optional[google___api___control_pb2___Control] = None, + logs: typing___Optional[ + typing___Iterable[google___api___log_pb2___LogDescriptor] + ] = None, + metrics: typing___Optional[ + typing___Iterable[google___api___metric_pb2___MetricDescriptor] + ] = None, + monitored_resources: typing___Optional[ + typing___Iterable[ + google___api___monitored_resource_pb2___MonitoredResourceDescriptor + ] + ] = None, + billing: typing___Optional[google___api___billing_pb2___Billing] = None, + logging: typing___Optional[google___api___logging_pb2___Logging] = None, + monitoring: typing___Optional[ + google___api___monitoring_pb2___Monitoring + ] = None, + system_parameters: typing___Optional[ + google___api___system_parameter_pb2___SystemParameters + ] = None, + source_info: typing___Optional[ + google___api___source_info_pb2___SourceInfo + ] = None, + ) -> None: ... + def HasField( + self, + field_name: typing_extensions___Literal[ + "authentication", + b"authentication", + "backend", + b"backend", + "billing", + b"billing", + "config_version", + b"config_version", + "context", + b"context", + "control", + b"control", + "documentation", + b"documentation", + "http", + b"http", + "logging", + b"logging", + "monitoring", + b"monitoring", + "quota", + b"quota", + "source_info", + b"source_info", + "system_parameters", + b"system_parameters", + "usage", + b"usage", + ], + ) -> builtin___bool: ... + def ClearField( + self, + field_name: typing_extensions___Literal[ + "apis", + b"apis", + "authentication", + b"authentication", + "backend", + b"backend", + "billing", + b"billing", + "config_version", + b"config_version", + "context", + b"context", + "control", + b"control", + "documentation", + b"documentation", + "endpoints", + b"endpoints", + "enums", + b"enums", + "http", + b"http", + "id", + b"id", + "logging", + b"logging", + "logs", + b"logs", + "metrics", + b"metrics", + "monitored_resources", + b"monitored_resources", + "monitoring", + b"monitoring", + "name", + b"name", + "producer_project_id", + b"producer_project_id", + "quota", + b"quota", + "source_info", + b"source_info", + "system_parameters", + b"system_parameters", + "title", + b"title", + "types", + b"types", + "usage", + b"usage", + ], + ) -> None: ... + +type___Service = Service diff --git a/google-stubs/api/source_info_pb2.pyi b/google-stubs/api/source_info_pb2.pyi index ad7a4f9..c5b7bdc 100644 --- a/google-stubs/api/source_info_pb2.pyi +++ b/google-stubs/api/source_info_pb2.pyi @@ -1,46 +1,42 @@ # @generated by generate_proto_mypy_stubs.py. Do not edit! import sys -from google.protobuf.any_pb2 import ( - Any as google___protobuf___any_pb2___Any, -) +from typing import Iterable as typing___Iterable, Optional as typing___Optional +from google.protobuf.any_pb2 import Any as google___protobuf___any_pb2___Any 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, -) - -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 SourceInfo(google___protobuf___message___Message): DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - @property - def source_files(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[google___protobuf___any_pb2___Any]: ... - - def __init__(self, + def source_files( + self, + ) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[ + google___protobuf___any_pb2___Any + ]: ... + def __init__( + self, *, - source_files : typing___Optional[typing___Iterable[google___protobuf___any_pb2___Any]] = None, - ) -> None: ... - @classmethod - def FromString(cls, s: bytes) -> SourceInfo: ... - def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - if sys.version_info >= (3,): - def ClearField(self, field_name: typing_extensions___Literal[u"source_files"]) -> None: ... - else: - def ClearField(self, field_name: typing_extensions___Literal[u"source_files",b"source_files"]) -> None: ... + source_files: typing___Optional[ + typing___Iterable[google___protobuf___any_pb2___Any] + ] = None, + ) -> None: ... + def ClearField( + self, field_name: typing_extensions___Literal["source_files", b"source_files"] + ) -> None: ... + +type___SourceInfo = SourceInfo diff --git a/google-stubs/api/system_parameter_pb2.pyi b/google-stubs/api/system_parameter_pb2.pyi index bcb1ed0..272b96b 100644 --- a/google-stubs/api/system_parameter_pb2.pyi +++ b/google-stubs/api/system_parameter_pb2.pyi @@ -1,85 +1,93 @@ # @generated by generate_proto_mypy_stubs.py. Do not edit! import sys -from google.protobuf.descriptor import ( - Descriptor as google___protobuf___descriptor___Descriptor, -) - -from google.protobuf.internal.containers import ( - RepeatedCompositeFieldContainer as google___protobuf___internal___containers___RepeatedCompositeFieldContainer, -) - -from google.protobuf.message import ( - Message as google___protobuf___message___Message, -) - from typing import ( Iterable as typing___Iterable, Optional as typing___Optional, Text as typing___Text, ) -from typing_extensions import ( - Literal as typing_extensions___Literal, +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 +builtin___bool = bool +builtin___bytes = bytes +builtin___float = float +builtin___int = int + +DESCRIPTOR: google___protobuf___descriptor___FileDescriptor = ... class SystemParameters(google___protobuf___message___Message): DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - @property - def rules(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[SystemParameterRule]: ... - - def __init__(self, + def rules( + self, + ) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[ + type___SystemParameterRule + ]: ... + def __init__( + self, *, - rules : typing___Optional[typing___Iterable[SystemParameterRule]] = None, - ) -> None: ... - @classmethod - def FromString(cls, s: bytes) -> SystemParameters: ... - def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - if sys.version_info >= (3,): - def ClearField(self, field_name: typing_extensions___Literal[u"rules"]) -> None: ... - else: - def ClearField(self, field_name: typing_extensions___Literal[u"rules",b"rules"]) -> None: ... + rules: typing___Optional[typing___Iterable[type___SystemParameterRule]] = None, + ) -> None: ... + def ClearField( + self, field_name: typing_extensions___Literal["rules", b"rules"] + ) -> None: ... + +type___SystemParameters = SystemParameters class SystemParameterRule(google___protobuf___message___Message): DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - selector = ... # type: typing___Text - + selector: typing___Text = ... @property - def parameters(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[SystemParameter]: ... - - def __init__(self, + def parameters( + self, + ) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[ + type___SystemParameter + ]: ... + def __init__( + self, *, - selector : typing___Optional[typing___Text] = None, - parameters : typing___Optional[typing___Iterable[SystemParameter]] = None, - ) -> None: ... - @classmethod - def FromString(cls, s: bytes) -> SystemParameterRule: ... - def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - if sys.version_info >= (3,): - def ClearField(self, field_name: typing_extensions___Literal[u"parameters",u"selector"]) -> None: ... - else: - def ClearField(self, field_name: typing_extensions___Literal[u"parameters",b"parameters",u"selector",b"selector"]) -> None: ... + selector: typing___Optional[typing___Text] = None, + parameters: typing___Optional[typing___Iterable[type___SystemParameter]] = None, + ) -> None: ... + def ClearField( + self, + field_name: typing_extensions___Literal[ + "parameters", b"parameters", "selector", b"selector" + ], + ) -> None: ... + +type___SystemParameterRule = SystemParameterRule class SystemParameter(google___protobuf___message___Message): DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - name = ... # type: typing___Text - http_header = ... # type: typing___Text - url_query_parameter = ... # type: typing___Text - - def __init__(self, + name: typing___Text = ... + http_header: typing___Text = ... + url_query_parameter: typing___Text = ... + def __init__( + self, *, - name : typing___Optional[typing___Text] = None, - http_header : typing___Optional[typing___Text] = None, - url_query_parameter : typing___Optional[typing___Text] = None, - ) -> None: ... - @classmethod - def FromString(cls, s: bytes) -> SystemParameter: ... - def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - if sys.version_info >= (3,): - def ClearField(self, field_name: typing_extensions___Literal[u"http_header",u"name",u"url_query_parameter"]) -> None: ... - else: - def ClearField(self, field_name: typing_extensions___Literal[u"http_header",b"http_header",u"name",b"name",u"url_query_parameter",b"url_query_parameter"]) -> None: ... + name: typing___Optional[typing___Text] = None, + http_header: typing___Optional[typing___Text] = None, + url_query_parameter: typing___Optional[typing___Text] = None, + ) -> None: ... + def ClearField( + self, + field_name: typing_extensions___Literal[ + "http_header", + b"http_header", + "name", + b"name", + "url_query_parameter", + b"url_query_parameter", + ], + ) -> None: ... + +type___SystemParameter = SystemParameter diff --git a/google-stubs/api/usage_pb2.pyi b/google-stubs/api/usage_pb2.pyi index fefe9e0..e3be303 100644 --- a/google-stubs/api/usage_pb2.pyi +++ b/google-stubs/api/usage_pb2.pyi @@ -1,69 +1,84 @@ # @generated by generate_proto_mypy_stubs.py. Do not edit! import sys +from typing import ( + Iterable as typing___Iterable, + Optional as typing___Optional, + Text as typing___Text, +) + 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, RepeatedScalarFieldContainer as google___protobuf___internal___containers___RepeatedScalarFieldContainer, ) +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 +builtin___float = float +builtin___int = int +DESCRIPTOR: google___protobuf___descriptor___FileDescriptor = ... class Usage(google___protobuf___message___Message): DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - requirements = ... # type: google___protobuf___internal___containers___RepeatedScalarFieldContainer[typing___Text] - producer_notification_channel = ... # type: typing___Text - + requirements: google___protobuf___internal___containers___RepeatedScalarFieldContainer[ + typing___Text + ] = ... + producer_notification_channel: typing___Text = ... @property - def rules(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[UsageRule]: ... - - def __init__(self, + def rules( + self, + ) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[ + type___UsageRule + ]: ... + def __init__( + self, *, - requirements : typing___Optional[typing___Iterable[typing___Text]] = None, - rules : typing___Optional[typing___Iterable[UsageRule]] = None, - producer_notification_channel : typing___Optional[typing___Text] = None, - ) -> None: ... - @classmethod - def FromString(cls, s: bytes) -> Usage: ... - def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - if sys.version_info >= (3,): - def ClearField(self, field_name: typing_extensions___Literal[u"producer_notification_channel",u"requirements",u"rules"]) -> None: ... - else: - def ClearField(self, field_name: typing_extensions___Literal[u"producer_notification_channel",b"producer_notification_channel",u"requirements",b"requirements",u"rules",b"rules"]) -> None: ... + requirements: typing___Optional[typing___Iterable[typing___Text]] = None, + rules: typing___Optional[typing___Iterable[type___UsageRule]] = None, + producer_notification_channel: typing___Optional[typing___Text] = None, + ) -> None: ... + def ClearField( + self, + field_name: typing_extensions___Literal[ + "producer_notification_channel", + b"producer_notification_channel", + "requirements", + b"requirements", + "rules", + b"rules", + ], + ) -> None: ... + +type___Usage = Usage class UsageRule(google___protobuf___message___Message): DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - selector = ... # type: typing___Text - allow_unregistered_calls = ... # type: bool - skip_service_control = ... # type: bool - - def __init__(self, + selector: typing___Text = ... + allow_unregistered_calls: builtin___bool = ... + skip_service_control: builtin___bool = ... + def __init__( + self, *, - selector : typing___Optional[typing___Text] = None, - allow_unregistered_calls : typing___Optional[bool] = None, - skip_service_control : typing___Optional[bool] = None, - ) -> None: ... - @classmethod - def FromString(cls, s: bytes) -> UsageRule: ... - def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - if sys.version_info >= (3,): - def ClearField(self, field_name: typing_extensions___Literal[u"allow_unregistered_calls",u"selector",u"skip_service_control"]) -> None: ... - else: - def ClearField(self, field_name: typing_extensions___Literal[u"allow_unregistered_calls",b"allow_unregistered_calls",u"selector",b"selector",u"skip_service_control",b"skip_service_control"]) -> None: ... + selector: typing___Optional[typing___Text] = None, + allow_unregistered_calls: typing___Optional[builtin___bool] = None, + skip_service_control: typing___Optional[builtin___bool] = None, + ) -> None: ... + def ClearField( + self, + field_name: typing_extensions___Literal[ + "allow_unregistered_calls", + b"allow_unregistered_calls", + "selector", + b"selector", + "skip_service_control", + b"skip_service_control", + ], + ) -> None: ... + +type___UsageRule = UsageRule diff --git a/google-stubs/logging/__init__.pyi b/google-stubs/logging/__init__.pyi index e69de29..8b13789 100644 --- a/google-stubs/logging/__init__.pyi +++ b/google-stubs/logging/__init__.pyi @@ -0,0 +1 @@ + diff --git a/google-stubs/logging/type/http_request_pb2.pyi b/google-stubs/logging/type/http_request_pb2.pyi index 308435a..9591ccf 100644 --- a/google-stubs/logging/type/http_request_pb2.pyi +++ b/google-stubs/logging/type/http_request_pb2.pyi @@ -1,72 +1,98 @@ # @generated by generate_proto_mypy_stubs.py. Do not edit! import sys +from typing import Optional as typing___Optional, Text as typing___Text + from google.protobuf.descriptor import ( Descriptor as google___protobuf___descriptor___Descriptor, + FileDescriptor as google___protobuf___descriptor___FileDescriptor, ) - from google.protobuf.duration_pb2 import ( Duration as google___protobuf___duration_pb2___Duration, ) +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 +builtin___float = float +builtin___int = int +DESCRIPTOR: google___protobuf___descriptor___FileDescriptor = ... class HttpRequest(google___protobuf___message___Message): DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - request_method = ... # type: typing___Text - request_url = ... # type: typing___Text - request_size = ... # type: int - status = ... # type: int - response_size = ... # type: int - user_agent = ... # type: typing___Text - remote_ip = ... # type: typing___Text - server_ip = ... # type: typing___Text - referer = ... # type: typing___Text - cache_lookup = ... # type: bool - cache_hit = ... # type: bool - cache_validated_with_origin_server = ... # type: bool - cache_fill_bytes = ... # type: int - protocol = ... # type: typing___Text - + request_method: typing___Text = ... + request_url: typing___Text = ... + request_size: builtin___int = ... + status: builtin___int = ... + response_size: builtin___int = ... + user_agent: typing___Text = ... + remote_ip: typing___Text = ... + server_ip: typing___Text = ... + referer: typing___Text = ... + cache_lookup: builtin___bool = ... + cache_hit: builtin___bool = ... + cache_validated_with_origin_server: builtin___bool = ... + cache_fill_bytes: builtin___int = ... + protocol: typing___Text = ... @property def latency(self) -> google___protobuf___duration_pb2___Duration: ... - - def __init__(self, + def __init__( + self, *, - request_method : typing___Optional[typing___Text] = None, - request_url : typing___Optional[typing___Text] = None, - request_size : typing___Optional[int] = None, - status : typing___Optional[int] = None, - response_size : typing___Optional[int] = None, - user_agent : typing___Optional[typing___Text] = None, - remote_ip : typing___Optional[typing___Text] = None, - server_ip : typing___Optional[typing___Text] = None, - referer : typing___Optional[typing___Text] = None, - latency : typing___Optional[google___protobuf___duration_pb2___Duration] = None, - cache_lookup : typing___Optional[bool] = None, - cache_hit : typing___Optional[bool] = None, - cache_validated_with_origin_server : typing___Optional[bool] = None, - cache_fill_bytes : typing___Optional[int] = None, - protocol : typing___Optional[typing___Text] = None, - ) -> None: ... - @classmethod - def FromString(cls, s: bytes) -> HttpRequest: ... - def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - if sys.version_info >= (3,): - def HasField(self, field_name: typing_extensions___Literal[u"latency"]) -> bool: ... - def ClearField(self, field_name: typing_extensions___Literal[u"cache_fill_bytes",u"cache_hit",u"cache_lookup",u"cache_validated_with_origin_server",u"latency",u"protocol",u"referer",u"remote_ip",u"request_method",u"request_size",u"request_url",u"response_size",u"server_ip",u"status",u"user_agent"]) -> None: ... - else: - def HasField(self, field_name: typing_extensions___Literal[u"latency",b"latency"]) -> bool: ... - def ClearField(self, field_name: typing_extensions___Literal[u"cache_fill_bytes",b"cache_fill_bytes",u"cache_hit",b"cache_hit",u"cache_lookup",b"cache_lookup",u"cache_validated_with_origin_server",b"cache_validated_with_origin_server",u"latency",b"latency",u"protocol",b"protocol",u"referer",b"referer",u"remote_ip",b"remote_ip",u"request_method",b"request_method",u"request_size",b"request_size",u"request_url",b"request_url",u"response_size",b"response_size",u"server_ip",b"server_ip",u"status",b"status",u"user_agent",b"user_agent"]) -> None: ... + request_method: typing___Optional[typing___Text] = None, + request_url: typing___Optional[typing___Text] = None, + request_size: typing___Optional[builtin___int] = None, + status: typing___Optional[builtin___int] = None, + response_size: typing___Optional[builtin___int] = None, + user_agent: typing___Optional[typing___Text] = None, + remote_ip: typing___Optional[typing___Text] = None, + server_ip: typing___Optional[typing___Text] = None, + referer: typing___Optional[typing___Text] = None, + latency: typing___Optional[google___protobuf___duration_pb2___Duration] = None, + cache_lookup: typing___Optional[builtin___bool] = None, + cache_hit: typing___Optional[builtin___bool] = None, + cache_validated_with_origin_server: typing___Optional[builtin___bool] = None, + cache_fill_bytes: typing___Optional[builtin___int] = None, + protocol: typing___Optional[typing___Text] = None, + ) -> None: ... + def HasField( + self, field_name: typing_extensions___Literal["latency", b"latency"] + ) -> builtin___bool: ... + def ClearField( + self, + field_name: typing_extensions___Literal[ + "cache_fill_bytes", + b"cache_fill_bytes", + "cache_hit", + b"cache_hit", + "cache_lookup", + b"cache_lookup", + "cache_validated_with_origin_server", + b"cache_validated_with_origin_server", + "latency", + b"latency", + "protocol", + b"protocol", + "referer", + b"referer", + "remote_ip", + b"remote_ip", + "request_method", + b"request_method", + "request_size", + b"request_size", + "request_url", + b"request_url", + "response_size", + b"response_size", + "server_ip", + b"server_ip", + "status", + b"status", + "user_agent", + b"user_agent", + ], + ) -> None: ... + +type___HttpRequest = HttpRequest diff --git a/google-stubs/logging/type/log_severity_pb2.pyi b/google-stubs/logging/type/log_severity_pb2.pyi index 5f99801..48a3a92 100644 --- a/google-stubs/logging/type/log_severity_pb2.pyi +++ b/google-stubs/logging/type/log_severity_pb2.pyi @@ -1,47 +1,47 @@ # @generated by generate_proto_mypy_stubs.py. Do not edit! import sys +from typing import NewType as typing___NewType, cast as typing___cast + from google.protobuf.descriptor import ( EnumDescriptor as google___protobuf___descriptor___EnumDescriptor, + FileDescriptor as google___protobuf___descriptor___FileDescriptor, ) - -from google.protobuf.message import ( - Message as google___protobuf___message___Message, +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 typing import ( - List as typing___List, - Tuple as typing___Tuple, - cast as typing___cast, -) +builtin___int = int +DESCRIPTOR: google___protobuf___descriptor___FileDescriptor = ... -class LogSeverity(int): +LogSeverityValue = typing___NewType("LogSeverityValue", builtin___int) +type___LogSeverityValue = LogSeverityValue +LogSeverity: _LogSeverity + +class _LogSeverity( + google___protobuf___internal___enum_type_wrapper____EnumTypeWrapper[ + LogSeverityValue + ] +): DESCRIPTOR: google___protobuf___descriptor___EnumDescriptor = ... - @classmethod - def Name(cls, number: int) -> str: ... - @classmethod - def Value(cls, name: str) -> LogSeverity: ... - @classmethod - def keys(cls) -> typing___List[str]: ... - @classmethod - def values(cls) -> typing___List[LogSeverity]: ... - @classmethod - def items(cls) -> typing___List[typing___Tuple[str, LogSeverity]]: ... - DEFAULT = typing___cast(LogSeverity, 0) - DEBUG = typing___cast(LogSeverity, 100) - INFO = typing___cast(LogSeverity, 200) - NOTICE = typing___cast(LogSeverity, 300) - WARNING = typing___cast(LogSeverity, 400) - ERROR = typing___cast(LogSeverity, 500) - CRITICAL = typing___cast(LogSeverity, 600) - ALERT = typing___cast(LogSeverity, 700) - EMERGENCY = typing___cast(LogSeverity, 800) -DEFAULT = typing___cast(LogSeverity, 0) -DEBUG = typing___cast(LogSeverity, 100) -INFO = typing___cast(LogSeverity, 200) -NOTICE = typing___cast(LogSeverity, 300) -WARNING = typing___cast(LogSeverity, 400) -ERROR = typing___cast(LogSeverity, 500) -CRITICAL = typing___cast(LogSeverity, 600) -ALERT = typing___cast(LogSeverity, 700) -EMERGENCY = typing___cast(LogSeverity, 800) + DEFAULT = typing___cast(LogSeverityValue, 0) + DEBUG = typing___cast(LogSeverityValue, 100) + INFO = typing___cast(LogSeverityValue, 200) + NOTICE = typing___cast(LogSeverityValue, 300) + WARNING = typing___cast(LogSeverityValue, 400) + ERROR = typing___cast(LogSeverityValue, 500) + CRITICAL = typing___cast(LogSeverityValue, 600) + ALERT = typing___cast(LogSeverityValue, 700) + EMERGENCY = typing___cast(LogSeverityValue, 800) + +DEFAULT = typing___cast(LogSeverityValue, 0) +DEBUG = typing___cast(LogSeverityValue, 100) +INFO = typing___cast(LogSeverityValue, 200) +NOTICE = typing___cast(LogSeverityValue, 300) +WARNING = typing___cast(LogSeverityValue, 400) +ERROR = typing___cast(LogSeverityValue, 500) +CRITICAL = typing___cast(LogSeverityValue, 600) +ALERT = typing___cast(LogSeverityValue, 700) +EMERGENCY = typing___cast(LogSeverityValue, 800) +type___LogSeverity = LogSeverity diff --git a/google-stubs/longrunning/operations_pb2.pyi b/google-stubs/longrunning/operations_pb2.pyi index ac0d6b6..1e9d882 100644 --- a/google-stubs/longrunning/operations_pb2.pyi +++ b/google-stubs/longrunning/operations_pb2.pyi @@ -1,210 +1,2 @@ -# @generated by generate_proto_mypy_stubs.py. Do not edit! -import sys -from google.protobuf.any_pb2 import ( - Any as google___protobuf___any_pb2___Any, -) - -from google.protobuf.descriptor import ( - Descriptor as google___protobuf___descriptor___Descriptor, - FieldDescriptor as google___protobuf___descriptor___FieldDescriptor, -) - -from google.protobuf.duration_pb2 import ( - Duration as google___protobuf___duration_pb2___Duration, -) - -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.rpc.status_pb2 import ( - Status as google___rpc___status_pb2___Status, -) - -from typing import ( - Iterable as typing___Iterable, - Optional as typing___Optional, - Text as typing___Text, -) - -from typing_extensions import ( - Literal as typing_extensions___Literal, -) - - -class Operation(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - name = ... # type: typing___Text - done = ... # type: bool - - @property - def metadata(self) -> google___protobuf___any_pb2___Any: ... - - @property - def error(self) -> google___rpc___status_pb2___Status: ... - - @property - def response(self) -> google___protobuf___any_pb2___Any: ... - - def __init__(self, - *, - name : typing___Optional[typing___Text] = None, - metadata : typing___Optional[google___protobuf___any_pb2___Any] = None, - done : typing___Optional[bool] = None, - error : typing___Optional[google___rpc___status_pb2___Status] = None, - response : typing___Optional[google___protobuf___any_pb2___Any] = None, - ) -> None: ... - @classmethod - def FromString(cls, s: bytes) -> Operation: ... - def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - if sys.version_info >= (3,): - def HasField(self, field_name: typing_extensions___Literal[u"error",u"metadata",u"response",u"result"]) -> bool: ... - def ClearField(self, field_name: typing_extensions___Literal[u"done",u"error",u"metadata",u"name",u"response",u"result"]) -> None: ... - else: - def HasField(self, field_name: typing_extensions___Literal[u"error",b"error",u"metadata",b"metadata",u"response",b"response",u"result",b"result"]) -> bool: ... - def ClearField(self, field_name: typing_extensions___Literal[u"done",b"done",u"error",b"error",u"metadata",b"metadata",u"name",b"name",u"response",b"response",u"result",b"result"]) -> None: ... - def WhichOneof(self, oneof_group: typing_extensions___Literal[u"result",b"result"]) -> typing_extensions___Literal["error","response"]: ... - -class GetOperationRequest(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - name = ... # type: typing___Text - - def __init__(self, - *, - name : typing___Optional[typing___Text] = None, - ) -> None: ... - @classmethod - def FromString(cls, s: bytes) -> GetOperationRequest: ... - def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - if sys.version_info >= (3,): - def ClearField(self, field_name: typing_extensions___Literal[u"name"]) -> None: ... - else: - def ClearField(self, field_name: typing_extensions___Literal[u"name",b"name"]) -> None: ... - -class ListOperationsRequest(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - name = ... # type: typing___Text - filter = ... # type: typing___Text - page_size = ... # type: int - page_token = ... # type: typing___Text - - def __init__(self, - *, - name : typing___Optional[typing___Text] = None, - filter : typing___Optional[typing___Text] = None, - page_size : typing___Optional[int] = None, - page_token : typing___Optional[typing___Text] = None, - ) -> None: ... - @classmethod - def FromString(cls, s: bytes) -> ListOperationsRequest: ... - def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - if sys.version_info >= (3,): - def ClearField(self, field_name: typing_extensions___Literal[u"filter",u"name",u"page_size",u"page_token"]) -> None: ... - else: - def ClearField(self, field_name: typing_extensions___Literal[u"filter",b"filter",u"name",b"name",u"page_size",b"page_size",u"page_token",b"page_token"]) -> None: ... - -class ListOperationsResponse(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - next_page_token = ... # type: typing___Text - - @property - def operations(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[Operation]: ... - - def __init__(self, - *, - operations : typing___Optional[typing___Iterable[Operation]] = None, - next_page_token : typing___Optional[typing___Text] = None, - ) -> None: ... - @classmethod - def FromString(cls, s: bytes) -> ListOperationsResponse: ... - def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - if sys.version_info >= (3,): - def ClearField(self, field_name: typing_extensions___Literal[u"next_page_token",u"operations"]) -> None: ... - else: - def ClearField(self, field_name: typing_extensions___Literal[u"next_page_token",b"next_page_token",u"operations",b"operations"]) -> None: ... - -class CancelOperationRequest(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - name = ... # type: typing___Text - - def __init__(self, - *, - name : typing___Optional[typing___Text] = None, - ) -> None: ... - @classmethod - def FromString(cls, s: bytes) -> CancelOperationRequest: ... - def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - if sys.version_info >= (3,): - def ClearField(self, field_name: typing_extensions___Literal[u"name"]) -> None: ... - else: - def ClearField(self, field_name: typing_extensions___Literal[u"name",b"name"]) -> None: ... - -class DeleteOperationRequest(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - name = ... # type: typing___Text - - def __init__(self, - *, - name : typing___Optional[typing___Text] = None, - ) -> None: ... - @classmethod - def FromString(cls, s: bytes) -> DeleteOperationRequest: ... - def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - if sys.version_info >= (3,): - def ClearField(self, field_name: typing_extensions___Literal[u"name"]) -> None: ... - else: - def ClearField(self, field_name: typing_extensions___Literal[u"name",b"name"]) -> None: ... - -class WaitOperationRequest(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - name = ... # type: typing___Text - - @property - def timeout(self) -> google___protobuf___duration_pb2___Duration: ... - - def __init__(self, - *, - name : typing___Optional[typing___Text] = None, - timeout : typing___Optional[google___protobuf___duration_pb2___Duration] = None, - ) -> None: ... - @classmethod - def FromString(cls, s: bytes) -> WaitOperationRequest: ... - def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - if sys.version_info >= (3,): - def HasField(self, field_name: typing_extensions___Literal[u"timeout"]) -> bool: ... - def ClearField(self, field_name: typing_extensions___Literal[u"name",u"timeout"]) -> None: ... - else: - def HasField(self, field_name: typing_extensions___Literal[u"timeout",b"timeout"]) -> bool: ... - def ClearField(self, field_name: typing_extensions___Literal[u"name",b"name",u"timeout",b"timeout"]) -> None: ... - -class OperationInfo(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - response_type = ... # type: typing___Text - metadata_type = ... # type: typing___Text - - def __init__(self, - *, - response_type : typing___Optional[typing___Text] = None, - metadata_type : typing___Optional[typing___Text] = None, - ) -> None: ... - @classmethod - def FromString(cls, s: bytes) -> OperationInfo: ... - def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - if sys.version_info >= (3,): - def ClearField(self, field_name: typing_extensions___Literal[u"metadata_type",u"response_type"]) -> None: ... - else: - def ClearField(self, field_name: typing_extensions___Literal[u"metadata_type",b"metadata_type",u"response_type",b"response_type"]) -> None: ... - -operation_info = ... # type: google___protobuf___descriptor___FieldDescriptor +from google.longrunning.operations_grpc_pb2 import * +from google.longrunning.operations_proto_pb2 import * diff --git a/google-stubs/rpc/__init__.pyi b/google-stubs/rpc/__init__.pyi index e69de29..8b13789 100644 --- a/google-stubs/rpc/__init__.pyi +++ b/google-stubs/rpc/__init__.pyi @@ -0,0 +1 @@ + diff --git a/google-stubs/rpc/code_pb2.pyi b/google-stubs/rpc/code_pb2.pyi index d431cef..2d6fe7e 100644 --- a/google-stubs/rpc/code_pb2.pyi +++ b/google-stubs/rpc/code_pb2.pyi @@ -1,63 +1,61 @@ # @generated by generate_proto_mypy_stubs.py. Do not edit! import sys +from typing import NewType as typing___NewType, cast as typing___cast + from google.protobuf.descriptor import ( EnumDescriptor as google___protobuf___descriptor___EnumDescriptor, + FileDescriptor as google___protobuf___descriptor___FileDescriptor, ) - -from google.protobuf.message import ( - Message as google___protobuf___message___Message, +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 typing import ( - List as typing___List, - Tuple as typing___Tuple, - cast as typing___cast, -) +builtin___int = int +DESCRIPTOR: google___protobuf___descriptor___FileDescriptor = ... -class Code(int): +CodeValue = typing___NewType("CodeValue", builtin___int) +type___CodeValue = CodeValue +Code: _Code + +class _Code( + google___protobuf___internal___enum_type_wrapper____EnumTypeWrapper[CodeValue] +): DESCRIPTOR: google___protobuf___descriptor___EnumDescriptor = ... - @classmethod - def Name(cls, number: int) -> str: ... - @classmethod - def Value(cls, name: str) -> Code: ... - @classmethod - def keys(cls) -> typing___List[str]: ... - @classmethod - def values(cls) -> typing___List[Code]: ... - @classmethod - def items(cls) -> typing___List[typing___Tuple[str, Code]]: ... - OK = typing___cast(Code, 0) - CANCELLED = typing___cast(Code, 1) - UNKNOWN = typing___cast(Code, 2) - INVALID_ARGUMENT = typing___cast(Code, 3) - DEADLINE_EXCEEDED = typing___cast(Code, 4) - NOT_FOUND = typing___cast(Code, 5) - ALREADY_EXISTS = typing___cast(Code, 6) - PERMISSION_DENIED = typing___cast(Code, 7) - UNAUTHENTICATED = typing___cast(Code, 16) - RESOURCE_EXHAUSTED = typing___cast(Code, 8) - FAILED_PRECONDITION = typing___cast(Code, 9) - ABORTED = typing___cast(Code, 10) - OUT_OF_RANGE = typing___cast(Code, 11) - UNIMPLEMENTED = typing___cast(Code, 12) - INTERNAL = typing___cast(Code, 13) - UNAVAILABLE = typing___cast(Code, 14) - DATA_LOSS = typing___cast(Code, 15) -OK = typing___cast(Code, 0) -CANCELLED = typing___cast(Code, 1) -UNKNOWN = typing___cast(Code, 2) -INVALID_ARGUMENT = typing___cast(Code, 3) -DEADLINE_EXCEEDED = typing___cast(Code, 4) -NOT_FOUND = typing___cast(Code, 5) -ALREADY_EXISTS = typing___cast(Code, 6) -PERMISSION_DENIED = typing___cast(Code, 7) -UNAUTHENTICATED = typing___cast(Code, 16) -RESOURCE_EXHAUSTED = typing___cast(Code, 8) -FAILED_PRECONDITION = typing___cast(Code, 9) -ABORTED = typing___cast(Code, 10) -OUT_OF_RANGE = typing___cast(Code, 11) -UNIMPLEMENTED = typing___cast(Code, 12) -INTERNAL = typing___cast(Code, 13) -UNAVAILABLE = typing___cast(Code, 14) -DATA_LOSS = typing___cast(Code, 15) + OK = typing___cast(CodeValue, 0) + CANCELLED = typing___cast(CodeValue, 1) + UNKNOWN = typing___cast(CodeValue, 2) + INVALID_ARGUMENT = typing___cast(CodeValue, 3) + DEADLINE_EXCEEDED = typing___cast(CodeValue, 4) + NOT_FOUND = typing___cast(CodeValue, 5) + ALREADY_EXISTS = typing___cast(CodeValue, 6) + PERMISSION_DENIED = typing___cast(CodeValue, 7) + UNAUTHENTICATED = typing___cast(CodeValue, 16) + RESOURCE_EXHAUSTED = typing___cast(CodeValue, 8) + FAILED_PRECONDITION = typing___cast(CodeValue, 9) + ABORTED = typing___cast(CodeValue, 10) + OUT_OF_RANGE = typing___cast(CodeValue, 11) + UNIMPLEMENTED = typing___cast(CodeValue, 12) + INTERNAL = typing___cast(CodeValue, 13) + UNAVAILABLE = typing___cast(CodeValue, 14) + DATA_LOSS = typing___cast(CodeValue, 15) + +OK = typing___cast(CodeValue, 0) +CANCELLED = typing___cast(CodeValue, 1) +UNKNOWN = typing___cast(CodeValue, 2) +INVALID_ARGUMENT = typing___cast(CodeValue, 3) +DEADLINE_EXCEEDED = typing___cast(CodeValue, 4) +NOT_FOUND = typing___cast(CodeValue, 5) +ALREADY_EXISTS = typing___cast(CodeValue, 6) +PERMISSION_DENIED = typing___cast(CodeValue, 7) +UNAUTHENTICATED = typing___cast(CodeValue, 16) +RESOURCE_EXHAUSTED = typing___cast(CodeValue, 8) +FAILED_PRECONDITION = typing___cast(CodeValue, 9) +ABORTED = typing___cast(CodeValue, 10) +OUT_OF_RANGE = typing___cast(CodeValue, 11) +UNIMPLEMENTED = typing___cast(CodeValue, 12) +INTERNAL = typing___cast(CodeValue, 13) +UNAVAILABLE = typing___cast(CodeValue, 14) +DATA_LOSS = typing___cast(CodeValue, 15) +type___Code = Code diff --git a/google-stubs/rpc/error_details_pb2.pyi b/google-stubs/rpc/error_details_pb2.pyi index 8614d2a..4de5072 100644 --- a/google-stubs/rpc/error_details_pb2.pyi +++ b/google-stubs/rpc/error_details_pb2.pyi @@ -1,284 +1,334 @@ # @generated by generate_proto_mypy_stubs.py. Do not edit! import sys +from typing import ( + Iterable as typing___Iterable, + Mapping as typing___Mapping, + MutableMapping as typing___MutableMapping, + Optional as typing___Optional, + Text as typing___Text, +) + from google.protobuf.descriptor import ( Descriptor as google___protobuf___descriptor___Descriptor, + FileDescriptor as google___protobuf___descriptor___FileDescriptor, ) - from google.protobuf.duration_pb2 import ( Duration as google___protobuf___duration_pb2___Duration, ) - from google.protobuf.internal.containers import ( RepeatedCompositeFieldContainer as google___protobuf___internal___containers___RepeatedCompositeFieldContainer, RepeatedScalarFieldContainer as google___protobuf___internal___containers___RepeatedScalarFieldContainer, ) +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 +builtin___float = float +builtin___int = int +DESCRIPTOR: google___protobuf___descriptor___FileDescriptor = ... class RetryInfo(google___protobuf___message___Message): DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - @property def retry_delay(self) -> google___protobuf___duration_pb2___Duration: ... - - def __init__(self, + def __init__( + self, *, - retry_delay : typing___Optional[google___protobuf___duration_pb2___Duration] = None, - ) -> None: ... - @classmethod - def FromString(cls, s: bytes) -> RetryInfo: ... - def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - if sys.version_info >= (3,): - def HasField(self, field_name: typing_extensions___Literal[u"retry_delay"]) -> bool: ... - def ClearField(self, field_name: typing_extensions___Literal[u"retry_delay"]) -> None: ... - else: - def HasField(self, field_name: typing_extensions___Literal[u"retry_delay",b"retry_delay"]) -> bool: ... - def ClearField(self, field_name: typing_extensions___Literal[u"retry_delay",b"retry_delay"]) -> None: ... + retry_delay: typing___Optional[ + google___protobuf___duration_pb2___Duration + ] = None, + ) -> None: ... + def HasField( + self, field_name: typing_extensions___Literal["retry_delay", b"retry_delay"] + ) -> builtin___bool: ... + def ClearField( + self, field_name: typing_extensions___Literal["retry_delay", b"retry_delay"] + ) -> None: ... + +type___RetryInfo = RetryInfo class DebugInfo(google___protobuf___message___Message): DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - stack_entries = ... # type: google___protobuf___internal___containers___RepeatedScalarFieldContainer[typing___Text] - detail = ... # type: typing___Text - - def __init__(self, + stack_entries: google___protobuf___internal___containers___RepeatedScalarFieldContainer[ + typing___Text + ] = ... + detail: typing___Text = ... + def __init__( + self, *, - stack_entries : typing___Optional[typing___Iterable[typing___Text]] = None, - detail : typing___Optional[typing___Text] = None, - ) -> None: ... - @classmethod - def FromString(cls, s: bytes) -> DebugInfo: ... - def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - if sys.version_info >= (3,): - def ClearField(self, field_name: typing_extensions___Literal[u"detail",u"stack_entries"]) -> None: ... - else: - def ClearField(self, field_name: typing_extensions___Literal[u"detail",b"detail",u"stack_entries",b"stack_entries"]) -> None: ... + stack_entries: typing___Optional[typing___Iterable[typing___Text]] = None, + detail: typing___Optional[typing___Text] = None, + ) -> None: ... + def ClearField( + self, + field_name: typing_extensions___Literal[ + "detail", b"detail", "stack_entries", b"stack_entries" + ], + ) -> None: ... + +type___DebugInfo = DebugInfo class QuotaFailure(google___protobuf___message___Message): DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... class Violation(google___protobuf___message___Message): DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - subject = ... # type: typing___Text - description = ... # type: typing___Text - - def __init__(self, + subject: typing___Text = ... + description: typing___Text = ... + def __init__( + self, *, - subject : typing___Optional[typing___Text] = None, - description : typing___Optional[typing___Text] = None, - ) -> None: ... - @classmethod - def FromString(cls, s: bytes) -> QuotaFailure.Violation: ... - def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - if sys.version_info >= (3,): - def ClearField(self, field_name: typing_extensions___Literal[u"description",u"subject"]) -> None: ... - else: - def ClearField(self, field_name: typing_extensions___Literal[u"description",b"description",u"subject",b"subject"]) -> None: ... + subject: typing___Optional[typing___Text] = None, + description: typing___Optional[typing___Text] = None, + ) -> None: ... + def ClearField( + self, + field_name: typing_extensions___Literal[ + "description", b"description", "subject", b"subject" + ], + ) -> None: ... + type___Violation = Violation + @property + def violations( + self, + ) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[ + type___QuotaFailure.Violation + ]: ... + def __init__( + self, + *, + violations: typing___Optional[ + typing___Iterable[type___QuotaFailure.Violation] + ] = None, + ) -> None: ... + def ClearField( + self, field_name: typing_extensions___Literal["violations", b"violations"] + ) -> None: ... +type___QuotaFailure = QuotaFailure - @property - def violations(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[QuotaFailure.Violation]: ... +class ErrorInfo(google___protobuf___message___Message): + DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... + class MetadataEntry(google___protobuf___message___Message): + DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... + key: typing___Text = ... + value: typing___Text = ... + def __init__( + self, + *, + key: typing___Optional[typing___Text] = None, + value: typing___Optional[typing___Text] = None, + ) -> None: ... + def ClearField( + self, + field_name: typing_extensions___Literal["key", b"key", "value", b"value"], + ) -> None: ... + type___MetadataEntry = MetadataEntry - def __init__(self, + reason: typing___Text = ... + domain: typing___Text = ... + @property + def metadata(self) -> typing___MutableMapping[typing___Text, typing___Text]: ... + def __init__( + self, *, - violations : typing___Optional[typing___Iterable[QuotaFailure.Violation]] = None, - ) -> None: ... - @classmethod - def FromString(cls, s: bytes) -> QuotaFailure: ... - def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - if sys.version_info >= (3,): - def ClearField(self, field_name: typing_extensions___Literal[u"violations"]) -> None: ... - else: - def ClearField(self, field_name: typing_extensions___Literal[u"violations",b"violations"]) -> None: ... + reason: typing___Optional[typing___Text] = None, + domain: typing___Optional[typing___Text] = None, + metadata: typing___Optional[ + typing___Mapping[typing___Text, typing___Text] + ] = None, + ) -> None: ... + def ClearField( + self, + field_name: typing_extensions___Literal[ + "domain", b"domain", "metadata", b"metadata", "reason", b"reason" + ], + ) -> None: ... + +type___ErrorInfo = ErrorInfo class PreconditionFailure(google___protobuf___message___Message): DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... class Violation(google___protobuf___message___Message): DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - type = ... # type: typing___Text - subject = ... # type: typing___Text - description = ... # type: typing___Text - - def __init__(self, + type: typing___Text = ... + subject: typing___Text = ... + description: typing___Text = ... + def __init__( + self, *, - type : typing___Optional[typing___Text] = None, - subject : typing___Optional[typing___Text] = None, - description : typing___Optional[typing___Text] = None, - ) -> None: ... - @classmethod - def FromString(cls, s: bytes) -> PreconditionFailure.Violation: ... - def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - if sys.version_info >= (3,): - def ClearField(self, field_name: typing_extensions___Literal[u"description",u"subject",u"type"]) -> None: ... - else: - def ClearField(self, field_name: typing_extensions___Literal[u"description",b"description",u"subject",b"subject",u"type",b"type"]) -> None: ... - - + type: typing___Optional[typing___Text] = None, + subject: typing___Optional[typing___Text] = None, + description: typing___Optional[typing___Text] = None, + ) -> None: ... + def ClearField( + self, + field_name: typing_extensions___Literal[ + "description", b"description", "subject", b"subject", "type", b"type" + ], + ) -> None: ... + type___Violation = Violation @property - def violations(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[PreconditionFailure.Violation]: ... - - def __init__(self, + def violations( + self, + ) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[ + type___PreconditionFailure.Violation + ]: ... + def __init__( + self, *, - violations : typing___Optional[typing___Iterable[PreconditionFailure.Violation]] = None, - ) -> None: ... - @classmethod - def FromString(cls, s: bytes) -> PreconditionFailure: ... - def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - if sys.version_info >= (3,): - def ClearField(self, field_name: typing_extensions___Literal[u"violations"]) -> None: ... - else: - def ClearField(self, field_name: typing_extensions___Literal[u"violations",b"violations"]) -> None: ... + violations: typing___Optional[ + typing___Iterable[type___PreconditionFailure.Violation] + ] = None, + ) -> None: ... + def ClearField( + self, field_name: typing_extensions___Literal["violations", b"violations"] + ) -> None: ... + +type___PreconditionFailure = PreconditionFailure class BadRequest(google___protobuf___message___Message): DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... class FieldViolation(google___protobuf___message___Message): DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - field = ... # type: typing___Text - description = ... # type: typing___Text - - def __init__(self, + field: typing___Text = ... + description: typing___Text = ... + def __init__( + self, *, - field : typing___Optional[typing___Text] = None, - description : typing___Optional[typing___Text] = None, - ) -> None: ... - @classmethod - def FromString(cls, s: bytes) -> BadRequest.FieldViolation: ... - def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - if sys.version_info >= (3,): - def ClearField(self, field_name: typing_extensions___Literal[u"description",u"field"]) -> None: ... - else: - def ClearField(self, field_name: typing_extensions___Literal[u"description",b"description",u"field",b"field"]) -> None: ... - - + field: typing___Optional[typing___Text] = None, + description: typing___Optional[typing___Text] = None, + ) -> None: ... + def ClearField( + self, + field_name: typing_extensions___Literal[ + "description", b"description", "field", b"field" + ], + ) -> None: ... + type___FieldViolation = FieldViolation @property - def field_violations(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[BadRequest.FieldViolation]: ... - - def __init__(self, + def field_violations( + self, + ) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[ + type___BadRequest.FieldViolation + ]: ... + def __init__( + self, *, - field_violations : typing___Optional[typing___Iterable[BadRequest.FieldViolation]] = None, - ) -> None: ... - @classmethod - def FromString(cls, s: bytes) -> BadRequest: ... - def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - if sys.version_info >= (3,): - def ClearField(self, field_name: typing_extensions___Literal[u"field_violations"]) -> None: ... - else: - def ClearField(self, field_name: typing_extensions___Literal[u"field_violations",b"field_violations"]) -> None: ... + field_violations: typing___Optional[ + typing___Iterable[type___BadRequest.FieldViolation] + ] = None, + ) -> None: ... + def ClearField( + self, + field_name: typing_extensions___Literal[ + "field_violations", b"field_violations" + ], + ) -> None: ... + +type___BadRequest = BadRequest class RequestInfo(google___protobuf___message___Message): DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - request_id = ... # type: typing___Text - serving_data = ... # type: typing___Text - - def __init__(self, + request_id: typing___Text = ... + serving_data: typing___Text = ... + def __init__( + self, *, - request_id : typing___Optional[typing___Text] = None, - serving_data : typing___Optional[typing___Text] = None, - ) -> None: ... - @classmethod - def FromString(cls, s: bytes) -> RequestInfo: ... - def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - if sys.version_info >= (3,): - def ClearField(self, field_name: typing_extensions___Literal[u"request_id",u"serving_data"]) -> None: ... - else: - def ClearField(self, field_name: typing_extensions___Literal[u"request_id",b"request_id",u"serving_data",b"serving_data"]) -> None: ... + request_id: typing___Optional[typing___Text] = None, + serving_data: typing___Optional[typing___Text] = None, + ) -> None: ... + def ClearField( + self, + field_name: typing_extensions___Literal[ + "request_id", b"request_id", "serving_data", b"serving_data" + ], + ) -> None: ... + +type___RequestInfo = RequestInfo class ResourceInfo(google___protobuf___message___Message): DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - resource_type = ... # type: typing___Text - resource_name = ... # type: typing___Text - owner = ... # type: typing___Text - description = ... # type: typing___Text - - def __init__(self, + resource_type: typing___Text = ... + resource_name: typing___Text = ... + owner: typing___Text = ... + description: typing___Text = ... + def __init__( + self, *, - resource_type : typing___Optional[typing___Text] = None, - resource_name : typing___Optional[typing___Text] = None, - owner : typing___Optional[typing___Text] = None, - description : typing___Optional[typing___Text] = None, - ) -> None: ... - @classmethod - def FromString(cls, s: bytes) -> ResourceInfo: ... - def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - if sys.version_info >= (3,): - def ClearField(self, field_name: typing_extensions___Literal[u"description",u"owner",u"resource_name",u"resource_type"]) -> None: ... - else: - def ClearField(self, field_name: typing_extensions___Literal[u"description",b"description",u"owner",b"owner",u"resource_name",b"resource_name",u"resource_type",b"resource_type"]) -> None: ... + resource_type: typing___Optional[typing___Text] = None, + resource_name: typing___Optional[typing___Text] = None, + owner: typing___Optional[typing___Text] = None, + description: typing___Optional[typing___Text] = None, + ) -> None: ... + def ClearField( + self, + field_name: typing_extensions___Literal[ + "description", + b"description", + "owner", + b"owner", + "resource_name", + b"resource_name", + "resource_type", + b"resource_type", + ], + ) -> None: ... + +type___ResourceInfo = ResourceInfo class Help(google___protobuf___message___Message): DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... class Link(google___protobuf___message___Message): DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - description = ... # type: typing___Text - url = ... # type: typing___Text - - def __init__(self, + description: typing___Text = ... + url: typing___Text = ... + def __init__( + self, *, - description : typing___Optional[typing___Text] = None, - url : typing___Optional[typing___Text] = None, - ) -> None: ... - @classmethod - def FromString(cls, s: bytes) -> Help.Link: ... - def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - if sys.version_info >= (3,): - def ClearField(self, field_name: typing_extensions___Literal[u"description",u"url"]) -> None: ... - else: - def ClearField(self, field_name: typing_extensions___Literal[u"description",b"description",u"url",b"url"]) -> None: ... - - + description: typing___Optional[typing___Text] = None, + url: typing___Optional[typing___Text] = None, + ) -> None: ... + def ClearField( + self, + field_name: typing_extensions___Literal[ + "description", b"description", "url", b"url" + ], + ) -> None: ... + type___Link = Link @property - def links(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[Help.Link]: ... - - def __init__(self, + def links( + self, + ) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[ + type___Help.Link + ]: ... + def __init__( + self, *, - links : typing___Optional[typing___Iterable[Help.Link]] = None, - ) -> None: ... - @classmethod - def FromString(cls, s: bytes) -> Help: ... - def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - if sys.version_info >= (3,): - def ClearField(self, field_name: typing_extensions___Literal[u"links"]) -> None: ... - else: - def ClearField(self, field_name: typing_extensions___Literal[u"links",b"links"]) -> None: ... + links: typing___Optional[typing___Iterable[type___Help.Link]] = None, + ) -> None: ... + def ClearField( + self, field_name: typing_extensions___Literal["links", b"links"] + ) -> None: ... + +type___Help = Help class LocalizedMessage(google___protobuf___message___Message): DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - locale = ... # type: typing___Text - message = ... # type: typing___Text - - def __init__(self, + locale: typing___Text = ... + message: typing___Text = ... + def __init__( + self, *, - locale : typing___Optional[typing___Text] = None, - message : typing___Optional[typing___Text] = None, - ) -> None: ... - @classmethod - def FromString(cls, s: bytes) -> LocalizedMessage: ... - def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - if sys.version_info >= (3,): - def ClearField(self, field_name: typing_extensions___Literal[u"locale",u"message"]) -> None: ... - else: - def ClearField(self, field_name: typing_extensions___Literal[u"locale",b"locale",u"message",b"message"]) -> None: ... + locale: typing___Optional[typing___Text] = None, + message: typing___Optional[typing___Text] = None, + ) -> None: ... + def ClearField( + self, + field_name: typing_extensions___Literal[ + "locale", b"locale", "message", b"message" + ], + ) -> None: ... + +type___LocalizedMessage = LocalizedMessage diff --git a/google-stubs/rpc/status_pb2.pyi b/google-stubs/rpc/status_pb2.pyi index b431bee..adbb0ce 100644 --- a/google-stubs/rpc/status_pb2.pyi +++ b/google-stubs/rpc/status_pb2.pyi @@ -1,51 +1,53 @@ # @generated by generate_proto_mypy_stubs.py. Do not edit! import sys -from google.protobuf.any_pb2 import ( - Any as google___protobuf___any_pb2___Any, +from typing import ( + Iterable as typing___Iterable, + Optional as typing___Optional, + Text as typing___Text, ) +from google.protobuf.any_pb2 import Any as google___protobuf___any_pb2___Any 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 +builtin___float = float +builtin___int = int +DESCRIPTOR: google___protobuf___descriptor___FileDescriptor = ... class Status(google___protobuf___message___Message): DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - code = ... # type: int - message = ... # type: typing___Text - + code: builtin___int = ... + message: typing___Text = ... @property - def details(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[google___protobuf___any_pb2___Any]: ... - - def __init__(self, + def details( + self, + ) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[ + google___protobuf___any_pb2___Any + ]: ... + def __init__( + self, *, - code : typing___Optional[int] = None, - message : typing___Optional[typing___Text] = None, - details : typing___Optional[typing___Iterable[google___protobuf___any_pb2___Any]] = None, - ) -> None: ... - @classmethod - def FromString(cls, s: bytes) -> Status: ... - def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - if sys.version_info >= (3,): - def ClearField(self, field_name: typing_extensions___Literal[u"code",u"details",u"message"]) -> None: ... - else: - def ClearField(self, field_name: typing_extensions___Literal[u"code",b"code",u"details",b"details",u"message",b"message"]) -> None: ... + code: typing___Optional[builtin___int] = None, + message: typing___Optional[typing___Text] = None, + details: typing___Optional[ + typing___Iterable[google___protobuf___any_pb2___Any] + ] = None, + ) -> None: ... + def ClearField( + self, + field_name: typing_extensions___Literal[ + "code", b"code", "details", b"details", "message", b"message" + ], + ) -> None: ... + +type___Status = Status diff --git a/google-stubs/type/calendar_period_pb2.pyi b/google-stubs/type/calendar_period_pb2.pyi index bd54e81..4b86f85 100644 --- a/google-stubs/type/calendar_period_pb2.pyi +++ b/google-stubs/type/calendar_period_pb2.pyi @@ -1,45 +1,45 @@ # @generated by generate_proto_mypy_stubs.py. Do not edit! import sys +from typing import NewType as typing___NewType, cast as typing___cast + from google.protobuf.descriptor import ( EnumDescriptor as google___protobuf___descriptor___EnumDescriptor, + FileDescriptor as google___protobuf___descriptor___FileDescriptor, ) - -from google.protobuf.message import ( - Message as google___protobuf___message___Message, +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 typing import ( - List as typing___List, - Tuple as typing___Tuple, - cast as typing___cast, -) +builtin___int = int +DESCRIPTOR: google___protobuf___descriptor___FileDescriptor = ... -class CalendarPeriod(int): +CalendarPeriodValue = typing___NewType("CalendarPeriodValue", builtin___int) +type___CalendarPeriodValue = CalendarPeriodValue +CalendarPeriod: _CalendarPeriod + +class _CalendarPeriod( + google___protobuf___internal___enum_type_wrapper____EnumTypeWrapper[ + CalendarPeriodValue + ] +): DESCRIPTOR: google___protobuf___descriptor___EnumDescriptor = ... - @classmethod - def Name(cls, number: int) -> str: ... - @classmethod - def Value(cls, name: str) -> CalendarPeriod: ... - @classmethod - def keys(cls) -> typing___List[str]: ... - @classmethod - def values(cls) -> typing___List[CalendarPeriod]: ... - @classmethod - def items(cls) -> typing___List[typing___Tuple[str, CalendarPeriod]]: ... - CALENDAR_PERIOD_UNSPECIFIED = typing___cast(CalendarPeriod, 0) - DAY = typing___cast(CalendarPeriod, 1) - WEEK = typing___cast(CalendarPeriod, 2) - FORTNIGHT = typing___cast(CalendarPeriod, 3) - MONTH = typing___cast(CalendarPeriod, 4) - QUARTER = typing___cast(CalendarPeriod, 5) - HALF = typing___cast(CalendarPeriod, 6) - YEAR = typing___cast(CalendarPeriod, 7) -CALENDAR_PERIOD_UNSPECIFIED = typing___cast(CalendarPeriod, 0) -DAY = typing___cast(CalendarPeriod, 1) -WEEK = typing___cast(CalendarPeriod, 2) -FORTNIGHT = typing___cast(CalendarPeriod, 3) -MONTH = typing___cast(CalendarPeriod, 4) -QUARTER = typing___cast(CalendarPeriod, 5) -HALF = typing___cast(CalendarPeriod, 6) -YEAR = typing___cast(CalendarPeriod, 7) + CALENDAR_PERIOD_UNSPECIFIED = typing___cast(CalendarPeriodValue, 0) + DAY = typing___cast(CalendarPeriodValue, 1) + WEEK = typing___cast(CalendarPeriodValue, 2) + FORTNIGHT = typing___cast(CalendarPeriodValue, 3) + MONTH = typing___cast(CalendarPeriodValue, 4) + QUARTER = typing___cast(CalendarPeriodValue, 5) + HALF = typing___cast(CalendarPeriodValue, 6) + YEAR = typing___cast(CalendarPeriodValue, 7) + +CALENDAR_PERIOD_UNSPECIFIED = typing___cast(CalendarPeriodValue, 0) +DAY = typing___cast(CalendarPeriodValue, 1) +WEEK = typing___cast(CalendarPeriodValue, 2) +FORTNIGHT = typing___cast(CalendarPeriodValue, 3) +MONTH = typing___cast(CalendarPeriodValue, 4) +QUARTER = typing___cast(CalendarPeriodValue, 5) +HALF = typing___cast(CalendarPeriodValue, 6) +YEAR = typing___cast(CalendarPeriodValue, 7) +type___CalendarPeriod = CalendarPeriod diff --git a/google-stubs/type/color_pb2.pyi b/google-stubs/type/color_pb2.pyi index 93ebf75..bb174ea 100644 --- a/google-stubs/type/color_pb2.pyi +++ b/google-stubs/type/color_pb2.pyi @@ -1,49 +1,47 @@ # @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, + 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 from google.protobuf.wrappers_pb2 import ( FloatValue as google___protobuf___wrappers_pb2___FloatValue, ) +from typing_extensions import Literal as typing_extensions___Literal -from typing import ( - Optional as typing___Optional, -) - -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 Color(google___protobuf___message___Message): DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - red = ... # type: float - green = ... # type: float - blue = ... # type: float - + red: builtin___float = ... + green: builtin___float = ... + blue: builtin___float = ... @property def alpha(self) -> google___protobuf___wrappers_pb2___FloatValue: ... - - def __init__(self, + def __init__( + self, *, - red : typing___Optional[float] = None, - green : typing___Optional[float] = None, - blue : typing___Optional[float] = None, - alpha : typing___Optional[google___protobuf___wrappers_pb2___FloatValue] = None, - ) -> None: ... - @classmethod - def FromString(cls, s: bytes) -> Color: ... - def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - if sys.version_info >= (3,): - def HasField(self, field_name: typing_extensions___Literal[u"alpha"]) -> bool: ... - def ClearField(self, field_name: typing_extensions___Literal[u"alpha",u"blue",u"green",u"red"]) -> None: ... - else: - def HasField(self, field_name: typing_extensions___Literal[u"alpha",b"alpha"]) -> bool: ... - def ClearField(self, field_name: typing_extensions___Literal[u"alpha",b"alpha",u"blue",b"blue",u"green",b"green",u"red",b"red"]) -> None: ... + red: typing___Optional[builtin___float] = None, + green: typing___Optional[builtin___float] = None, + blue: typing___Optional[builtin___float] = None, + alpha: typing___Optional[google___protobuf___wrappers_pb2___FloatValue] = None, + ) -> None: ... + def HasField( + self, field_name: typing_extensions___Literal["alpha", b"alpha"] + ) -> builtin___bool: ... + def ClearField( + self, + field_name: typing_extensions___Literal[ + "alpha", b"alpha", "blue", b"blue", "green", b"green", "red", b"red" + ], + ) -> None: ... + +type___Color = Color diff --git a/google-stubs/type/date_pb2.pyi b/google-stubs/type/date_pb2.pyi index 6b7382d..1336339 100644 --- a/google-stubs/type/date_pb2.pyi +++ b/google-stubs/type/date_pb2.pyi @@ -1,39 +1,38 @@ # @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, + 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, -) - -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 Date(google___protobuf___message___Message): DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - year = ... # type: int - month = ... # type: int - day = ... # type: int - - def __init__(self, + year: builtin___int = ... + month: builtin___int = ... + day: builtin___int = ... + def __init__( + self, *, - year : typing___Optional[int] = None, - month : typing___Optional[int] = None, - day : typing___Optional[int] = None, - ) -> None: ... - @classmethod - def FromString(cls, s: bytes) -> Date: ... - def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - if sys.version_info >= (3,): - def ClearField(self, field_name: typing_extensions___Literal[u"day",u"month",u"year"]) -> None: ... - else: - def ClearField(self, field_name: typing_extensions___Literal[u"day",b"day",u"month",b"month",u"year",b"year"]) -> None: ... + year: typing___Optional[builtin___int] = None, + month: typing___Optional[builtin___int] = None, + day: typing___Optional[builtin___int] = None, + ) -> None: ... + def ClearField( + self, + field_name: typing_extensions___Literal[ + "day", b"day", "month", b"month", "year", b"year" + ], + ) -> None: ... + +type___Date = Date diff --git a/google-stubs/type/dayofweek_pb2.pyi b/google-stubs/type/dayofweek_pb2.pyi index 2e34c91..91db598 100644 --- a/google-stubs/type/dayofweek_pb2.pyi +++ b/google-stubs/type/dayofweek_pb2.pyi @@ -1,45 +1,43 @@ # @generated by generate_proto_mypy_stubs.py. Do not edit! import sys +from typing import NewType as typing___NewType, cast as typing___cast + from google.protobuf.descriptor import ( EnumDescriptor as google___protobuf___descriptor___EnumDescriptor, + FileDescriptor as google___protobuf___descriptor___FileDescriptor, ) - -from google.protobuf.message import ( - Message as google___protobuf___message___Message, +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 typing import ( - List as typing___List, - Tuple as typing___Tuple, - cast as typing___cast, -) +builtin___int = int +DESCRIPTOR: google___protobuf___descriptor___FileDescriptor = ... -class DayOfWeek(int): +DayOfWeekValue = typing___NewType("DayOfWeekValue", builtin___int) +type___DayOfWeekValue = DayOfWeekValue +DayOfWeek: _DayOfWeek + +class _DayOfWeek( + google___protobuf___internal___enum_type_wrapper____EnumTypeWrapper[DayOfWeekValue] +): DESCRIPTOR: google___protobuf___descriptor___EnumDescriptor = ... - @classmethod - def Name(cls, number: int) -> str: ... - @classmethod - def Value(cls, name: str) -> DayOfWeek: ... - @classmethod - def keys(cls) -> typing___List[str]: ... - @classmethod - def values(cls) -> typing___List[DayOfWeek]: ... - @classmethod - def items(cls) -> typing___List[typing___Tuple[str, DayOfWeek]]: ... - DAY_OF_WEEK_UNSPECIFIED = typing___cast(DayOfWeek, 0) - MONDAY = typing___cast(DayOfWeek, 1) - TUESDAY = typing___cast(DayOfWeek, 2) - WEDNESDAY = typing___cast(DayOfWeek, 3) - THURSDAY = typing___cast(DayOfWeek, 4) - FRIDAY = typing___cast(DayOfWeek, 5) - SATURDAY = typing___cast(DayOfWeek, 6) - SUNDAY = typing___cast(DayOfWeek, 7) -DAY_OF_WEEK_UNSPECIFIED = typing___cast(DayOfWeek, 0) -MONDAY = typing___cast(DayOfWeek, 1) -TUESDAY = typing___cast(DayOfWeek, 2) -WEDNESDAY = typing___cast(DayOfWeek, 3) -THURSDAY = typing___cast(DayOfWeek, 4) -FRIDAY = typing___cast(DayOfWeek, 5) -SATURDAY = typing___cast(DayOfWeek, 6) -SUNDAY = typing___cast(DayOfWeek, 7) + DAY_OF_WEEK_UNSPECIFIED = typing___cast(DayOfWeekValue, 0) + MONDAY = typing___cast(DayOfWeekValue, 1) + TUESDAY = typing___cast(DayOfWeekValue, 2) + WEDNESDAY = typing___cast(DayOfWeekValue, 3) + THURSDAY = typing___cast(DayOfWeekValue, 4) + FRIDAY = typing___cast(DayOfWeekValue, 5) + SATURDAY = typing___cast(DayOfWeekValue, 6) + SUNDAY = typing___cast(DayOfWeekValue, 7) + +DAY_OF_WEEK_UNSPECIFIED = typing___cast(DayOfWeekValue, 0) +MONDAY = typing___cast(DayOfWeekValue, 1) +TUESDAY = typing___cast(DayOfWeekValue, 2) +WEDNESDAY = typing___cast(DayOfWeekValue, 3) +THURSDAY = typing___cast(DayOfWeekValue, 4) +FRIDAY = typing___cast(DayOfWeekValue, 5) +SATURDAY = typing___cast(DayOfWeekValue, 6) +SUNDAY = typing___cast(DayOfWeekValue, 7) +type___DayOfWeek = DayOfWeek diff --git a/google-stubs/type/expr_pb2.pyi b/google-stubs/type/expr_pb2.pyi index c1e6645..3935d2b 100644 --- a/google-stubs/type/expr_pb2.pyi +++ b/google-stubs/type/expr_pb2.pyi @@ -1,42 +1,47 @@ # @generated by generate_proto_mypy_stubs.py. Do not edit! import sys +from typing import Optional as typing___Optional, Text as typing___Text + 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 +builtin___float = float +builtin___int = int +DESCRIPTOR: google___protobuf___descriptor___FileDescriptor = ... class Expr(google___protobuf___message___Message): DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - expression = ... # type: typing___Text - title = ... # type: typing___Text - description = ... # type: typing___Text - location = ... # type: typing___Text - - def __init__(self, + expression: typing___Text = ... + title: typing___Text = ... + description: typing___Text = ... + location: typing___Text = ... + def __init__( + self, *, - expression : typing___Optional[typing___Text] = None, - title : typing___Optional[typing___Text] = None, - description : typing___Optional[typing___Text] = None, - location : typing___Optional[typing___Text] = None, - ) -> None: ... - @classmethod - def FromString(cls, s: bytes) -> Expr: ... - def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - if sys.version_info >= (3,): - def ClearField(self, field_name: typing_extensions___Literal[u"description",u"expression",u"location",u"title"]) -> None: ... - else: - def ClearField(self, field_name: typing_extensions___Literal[u"description",b"description",u"expression",b"expression",u"location",b"location",u"title",b"title"]) -> None: ... + expression: typing___Optional[typing___Text] = None, + title: typing___Optional[typing___Text] = None, + description: typing___Optional[typing___Text] = None, + location: typing___Optional[typing___Text] = None, + ) -> None: ... + def ClearField( + self, + field_name: typing_extensions___Literal[ + "description", + b"description", + "expression", + b"expression", + "location", + b"location", + "title", + b"title", + ], + ) -> None: ... + +type___Expr = Expr diff --git a/google-stubs/type/fraction_pb2.pyi b/google-stubs/type/fraction_pb2.pyi index f4c7808..f192f81 100644 --- a/google-stubs/type/fraction_pb2.pyi +++ b/google-stubs/type/fraction_pb2.pyi @@ -1,37 +1,36 @@ # @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, + 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, -) - -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 Fraction(google___protobuf___message___Message): DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - numerator = ... # type: int - denominator = ... # type: int - - def __init__(self, + numerator: builtin___int = ... + denominator: builtin___int = ... + def __init__( + self, *, - numerator : typing___Optional[int] = None, - denominator : typing___Optional[int] = None, - ) -> None: ... - @classmethod - def FromString(cls, s: bytes) -> Fraction: ... - def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - if sys.version_info >= (3,): - def ClearField(self, field_name: typing_extensions___Literal[u"denominator",u"numerator"]) -> None: ... - else: - def ClearField(self, field_name: typing_extensions___Literal[u"denominator",b"denominator",u"numerator",b"numerator"]) -> None: ... + numerator: typing___Optional[builtin___int] = None, + denominator: typing___Optional[builtin___int] = None, + ) -> None: ... + def ClearField( + self, + field_name: typing_extensions___Literal[ + "denominator", b"denominator", "numerator", b"numerator" + ], + ) -> None: ... + +type___Fraction = Fraction diff --git a/google-stubs/type/latlng_pb2.pyi b/google-stubs/type/latlng_pb2.pyi index dd70d60..9ef2268 100644 --- a/google-stubs/type/latlng_pb2.pyi +++ b/google-stubs/type/latlng_pb2.pyi @@ -1,37 +1,36 @@ # @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, + 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, -) - -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 LatLng(google___protobuf___message___Message): DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - latitude = ... # type: float - longitude = ... # type: float - - def __init__(self, + latitude: builtin___float = ... + longitude: builtin___float = ... + def __init__( + self, *, - latitude : typing___Optional[float] = None, - longitude : typing___Optional[float] = None, - ) -> None: ... - @classmethod - def FromString(cls, s: bytes) -> LatLng: ... - def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - if sys.version_info >= (3,): - def ClearField(self, field_name: typing_extensions___Literal[u"latitude",u"longitude"]) -> None: ... - else: - def ClearField(self, field_name: typing_extensions___Literal[u"latitude",b"latitude",u"longitude",b"longitude"]) -> None: ... + latitude: typing___Optional[builtin___float] = None, + longitude: typing___Optional[builtin___float] = None, + ) -> None: ... + def ClearField( + self, + field_name: typing_extensions___Literal[ + "latitude", b"latitude", "longitude", b"longitude" + ], + ) -> None: ... + +type___LatLng = LatLng diff --git a/google-stubs/type/money_pb2.pyi b/google-stubs/type/money_pb2.pyi index fd08d1f..fc008b0 100644 --- a/google-stubs/type/money_pb2.pyi +++ b/google-stubs/type/money_pb2.pyi @@ -1,40 +1,38 @@ # @generated by generate_proto_mypy_stubs.py. Do not edit! import sys +from typing import Optional as typing___Optional, Text as typing___Text + 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 +builtin___float = float +builtin___int = int +DESCRIPTOR: google___protobuf___descriptor___FileDescriptor = ... class Money(google___protobuf___message___Message): DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - currency_code = ... # type: typing___Text - units = ... # type: int - nanos = ... # type: int - - def __init__(self, + currency_code: typing___Text = ... + units: builtin___int = ... + nanos: builtin___int = ... + def __init__( + self, *, - currency_code : typing___Optional[typing___Text] = None, - units : typing___Optional[int] = None, - nanos : typing___Optional[int] = None, - ) -> None: ... - @classmethod - def FromString(cls, s: bytes) -> Money: ... - def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - if sys.version_info >= (3,): - def ClearField(self, field_name: typing_extensions___Literal[u"currency_code",u"nanos",u"units"]) -> None: ... - else: - def ClearField(self, field_name: typing_extensions___Literal[u"currency_code",b"currency_code",u"nanos",b"nanos",u"units",b"units"]) -> None: ... + currency_code: typing___Optional[typing___Text] = None, + units: typing___Optional[builtin___int] = None, + nanos: typing___Optional[builtin___int] = None, + ) -> None: ... + def ClearField( + self, + field_name: typing_extensions___Literal[ + "currency_code", b"currency_code", "nanos", b"nanos", "units", b"units" + ], + ) -> None: ... + +type___Money = Money diff --git a/google-stubs/type/postal_address_pb2.pyi b/google-stubs/type/postal_address_pb2.pyi index 44fe89f..1874c1d 100644 --- a/google-stubs/type/postal_address_pb2.pyi +++ b/google-stubs/type/postal_address_pb2.pyi @@ -1,61 +1,86 @@ # @generated by generate_proto_mypy_stubs.py. Do not edit! import sys -from google.protobuf.descriptor import ( - Descriptor as google___protobuf___descriptor___Descriptor, -) - -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, +from google.protobuf.descriptor import ( + Descriptor as google___protobuf___descriptor___Descriptor, + FileDescriptor as google___protobuf___descriptor___FileDescriptor, ) +from google.protobuf.internal.containers import ( + RepeatedScalarFieldContainer as google___protobuf___internal___containers___RepeatedScalarFieldContainer, +) +from google.protobuf.message import Message as google___protobuf___message___Message +from typing_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 PostalAddress(google___protobuf___message___Message): DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - revision = ... # type: int - region_code = ... # type: typing___Text - language_code = ... # type: typing___Text - postal_code = ... # type: typing___Text - sorting_code = ... # type: typing___Text - administrative_area = ... # type: typing___Text - locality = ... # type: typing___Text - sublocality = ... # type: typing___Text - address_lines = ... # type: google___protobuf___internal___containers___RepeatedScalarFieldContainer[typing___Text] - recipients = ... # type: google___protobuf___internal___containers___RepeatedScalarFieldContainer[typing___Text] - organization = ... # type: typing___Text - - def __init__(self, + revision: builtin___int = ... + region_code: typing___Text = ... + language_code: typing___Text = ... + postal_code: typing___Text = ... + sorting_code: typing___Text = ... + administrative_area: typing___Text = ... + locality: typing___Text = ... + sublocality: typing___Text = ... + address_lines: google___protobuf___internal___containers___RepeatedScalarFieldContainer[ + typing___Text + ] = ... + recipients: google___protobuf___internal___containers___RepeatedScalarFieldContainer[ + typing___Text + ] = ... + organization: typing___Text = ... + def __init__( + self, *, - revision : typing___Optional[int] = None, - region_code : typing___Optional[typing___Text] = None, - language_code : typing___Optional[typing___Text] = None, - postal_code : typing___Optional[typing___Text] = None, - sorting_code : typing___Optional[typing___Text] = None, - administrative_area : typing___Optional[typing___Text] = None, - locality : typing___Optional[typing___Text] = None, - sublocality : typing___Optional[typing___Text] = None, - address_lines : typing___Optional[typing___Iterable[typing___Text]] = None, - recipients : typing___Optional[typing___Iterable[typing___Text]] = None, - organization : typing___Optional[typing___Text] = None, - ) -> None: ... - @classmethod - def FromString(cls, s: bytes) -> PostalAddress: ... - def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - if sys.version_info >= (3,): - def ClearField(self, field_name: typing_extensions___Literal[u"address_lines",u"administrative_area",u"language_code",u"locality",u"organization",u"postal_code",u"recipients",u"region_code",u"revision",u"sorting_code",u"sublocality"]) -> None: ... - else: - def ClearField(self, field_name: typing_extensions___Literal[u"address_lines",b"address_lines",u"administrative_area",b"administrative_area",u"language_code",b"language_code",u"locality",b"locality",u"organization",b"organization",u"postal_code",b"postal_code",u"recipients",b"recipients",u"region_code",b"region_code",u"revision",b"revision",u"sorting_code",b"sorting_code",u"sublocality",b"sublocality"]) -> None: ... + revision: typing___Optional[builtin___int] = None, + region_code: typing___Optional[typing___Text] = None, + language_code: typing___Optional[typing___Text] = None, + postal_code: typing___Optional[typing___Text] = None, + sorting_code: typing___Optional[typing___Text] = None, + administrative_area: typing___Optional[typing___Text] = None, + locality: typing___Optional[typing___Text] = None, + sublocality: typing___Optional[typing___Text] = None, + address_lines: typing___Optional[typing___Iterable[typing___Text]] = None, + recipients: typing___Optional[typing___Iterable[typing___Text]] = None, + organization: typing___Optional[typing___Text] = None, + ) -> None: ... + def ClearField( + self, + field_name: typing_extensions___Literal[ + "address_lines", + b"address_lines", + "administrative_area", + b"administrative_area", + "language_code", + b"language_code", + "locality", + b"locality", + "organization", + b"organization", + "postal_code", + b"postal_code", + "recipients", + b"recipients", + "region_code", + b"region_code", + "revision", + b"revision", + "sorting_code", + b"sorting_code", + "sublocality", + b"sublocality", + ], + ) -> None: ... + +type___PostalAddress = PostalAddress diff --git a/google-stubs/type/quaternion_pb2.pyi b/google-stubs/type/quaternion_pb2.pyi index a0820ec..ec63a4a 100644 --- a/google-stubs/type/quaternion_pb2.pyi +++ b/google-stubs/type/quaternion_pb2.pyi @@ -1,41 +1,40 @@ # @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, + 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, -) - -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 Quaternion(google___protobuf___message___Message): DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - x = ... # type: float - y = ... # type: float - z = ... # type: float - w = ... # type: float - - def __init__(self, + x: builtin___float = ... + y: builtin___float = ... + z: builtin___float = ... + w: builtin___float = ... + def __init__( + self, *, - x : typing___Optional[float] = None, - y : typing___Optional[float] = None, - z : typing___Optional[float] = None, - w : typing___Optional[float] = None, - ) -> None: ... - @classmethod - def FromString(cls, s: bytes) -> Quaternion: ... - def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - if sys.version_info >= (3,): - def ClearField(self, field_name: typing_extensions___Literal[u"w",u"x",u"y",u"z"]) -> None: ... - else: - def ClearField(self, field_name: typing_extensions___Literal[u"w",b"w",u"x",b"x",u"y",b"y",u"z",b"z"]) -> None: ... + x: typing___Optional[builtin___float] = None, + y: typing___Optional[builtin___float] = None, + z: typing___Optional[builtin___float] = None, + w: typing___Optional[builtin___float] = None, + ) -> None: ... + def ClearField( + self, + field_name: typing_extensions___Literal[ + "w", b"w", "x", b"x", "y", b"y", "z", b"z" + ], + ) -> None: ... + +type___Quaternion = Quaternion diff --git a/google-stubs/type/timeofday_pb2.pyi b/google-stubs/type/timeofday_pb2.pyi index c09ed60..a85b5c6 100644 --- a/google-stubs/type/timeofday_pb2.pyi +++ b/google-stubs/type/timeofday_pb2.pyi @@ -1,41 +1,47 @@ # @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, + 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, -) - -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 TimeOfDay(google___protobuf___message___Message): DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - hours = ... # type: int - minutes = ... # type: int - seconds = ... # type: int - nanos = ... # type: int - - def __init__(self, + hours: builtin___int = ... + minutes: builtin___int = ... + seconds: builtin___int = ... + nanos: builtin___int = ... + def __init__( + self, *, - hours : typing___Optional[int] = None, - minutes : typing___Optional[int] = None, - seconds : typing___Optional[int] = None, - nanos : typing___Optional[int] = None, - ) -> None: ... - @classmethod - def FromString(cls, s: bytes) -> TimeOfDay: ... - def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - if sys.version_info >= (3,): - def ClearField(self, field_name: typing_extensions___Literal[u"hours",u"minutes",u"nanos",u"seconds"]) -> None: ... - else: - def ClearField(self, field_name: typing_extensions___Literal[u"hours",b"hours",u"minutes",b"minutes",u"nanos",b"nanos",u"seconds",b"seconds"]) -> None: ... + hours: typing___Optional[builtin___int] = None, + minutes: typing___Optional[builtin___int] = None, + seconds: typing___Optional[builtin___int] = None, + nanos: typing___Optional[builtin___int] = None, + ) -> None: ... + def ClearField( + self, + field_name: typing_extensions___Literal[ + "hours", + b"hours", + "minutes", + b"minutes", + "nanos", + b"nanos", + "seconds", + b"seconds", + ], + ) -> None: ... + +type___TimeOfDay = TimeOfDay diff --git a/pyproject.toml b/pyproject.toml index 487a70c..5691ff6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -14,7 +14,7 @@ packages = [ python = "^2.7 || ^3.4" typing = { version = "^3.7", python = "<3.5" } typing-extensions = "^3.7" -googleapis-common-protos = "^1.6" +googleapis-common-protos = "^1.52.0" [tool.poetry.dev-dependencies] protobuf = "^3.11.2"