mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-06 04:04:25 +08:00
Update mypy protobuf pin to include well_known_types (#4850)
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
#
|
||||
# Update these two variables when rerunning script
|
||||
PROTOBUF_VERSION=3.14.0
|
||||
MYPY_PROTOBUF_VERSION=v1.23
|
||||
MYPY_PROTOBUF_VERSION=8639282dae3bb64b2e1db9928d72fc374f7fa831 # Update to 1.24 when it releases
|
||||
|
||||
set -ex
|
||||
|
||||
@@ -58,6 +58,8 @@ PROTO_FILES=$(grep "generate_proto.*google" $PYTHON_PROTOBUF_DIR/python/setup.py
|
||||
grep -v "test" | \
|
||||
grep -v google/protobuf/internal/ | \
|
||||
grep -v google/protobuf/pyext/python.proto | \
|
||||
grep -v src/google/protobuf/util/json_format.proto | \
|
||||
grep -v src/google/protobuf/util/json_format_proto3.proto | \
|
||||
sed "s:^:$PYTHON_PROTOBUF_DIR/python/:" | \
|
||||
xargs -L1 realpath --relative-to=. \
|
||||
)
|
||||
|
||||
14
third_party/2and3/google/protobuf/any_pb2.pyi
vendored
14
third_party/2and3/google/protobuf/any_pb2.pyi
vendored
@@ -1,16 +1,20 @@
|
||||
# @generated by generate_proto_mypy_stubs.py. Do not edit!
|
||||
import sys
|
||||
"""
|
||||
@generated by mypy-protobuf. Do not edit manually!
|
||||
isort:skip_file
|
||||
"""
|
||||
from google.protobuf.descriptor import (
|
||||
Descriptor as google___protobuf___descriptor___Descriptor,
|
||||
FileDescriptor as google___protobuf___descriptor___FileDescriptor,
|
||||
)
|
||||
|
||||
from google.protobuf.internal.well_known_types import (
|
||||
Any as google___protobuf___internal___well_known_types___Any,
|
||||
)
|
||||
|
||||
from google.protobuf.message import (
|
||||
Message as google___protobuf___message___Message,
|
||||
)
|
||||
|
||||
from google.protobuf.internal import well_known_types
|
||||
|
||||
from typing import (
|
||||
Optional as typing___Optional,
|
||||
Text as typing___Text,
|
||||
@@ -29,7 +33,7 @@ builtin___int = int
|
||||
|
||||
DESCRIPTOR: google___protobuf___descriptor___FileDescriptor = ...
|
||||
|
||||
class Any(google___protobuf___message___Message, well_known_types.Any_):
|
||||
class Any(google___protobuf___message___Message, google___protobuf___internal___well_known_types___Any):
|
||||
DESCRIPTOR: google___protobuf___descriptor___Descriptor = ...
|
||||
type_url: typing___Text = ...
|
||||
value: builtin___bytes = ...
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
# @generated by generate_proto_mypy_stubs.py. Do not edit!
|
||||
import sys
|
||||
"""
|
||||
@generated by mypy-protobuf. Do not edit manually!
|
||||
isort:skip_file
|
||||
"""
|
||||
from google.protobuf.descriptor import (
|
||||
Descriptor as google___protobuf___descriptor___Descriptor,
|
||||
FileDescriptor as google___protobuf___descriptor___FileDescriptor,
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
# @generated by generate_proto_mypy_stubs.py. Do not edit!
|
||||
import sys
|
||||
"""
|
||||
@generated by mypy-protobuf. Do not edit manually!
|
||||
isort:skip_file
|
||||
"""
|
||||
from google.protobuf.descriptor import (
|
||||
Descriptor as google___protobuf___descriptor___Descriptor,
|
||||
EnumDescriptor as google___protobuf___descriptor___EnumDescriptor,
|
||||
@@ -96,7 +98,6 @@ class CodeGeneratorResponse(google___protobuf___message___Message):
|
||||
FEATURE_PROTO3_OPTIONAL = typing___cast(CodeGeneratorResponse.FeatureValue, 1)
|
||||
FEATURE_NONE = typing___cast(CodeGeneratorResponse.FeatureValue, 0)
|
||||
FEATURE_PROTO3_OPTIONAL = typing___cast(CodeGeneratorResponse.FeatureValue, 1)
|
||||
type___Feature = Feature
|
||||
|
||||
class File(google___protobuf___message___Message):
|
||||
DESCRIPTOR: google___protobuf___descriptor___Descriptor = ...
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
# @generated by generate_proto_mypy_stubs.py. Do not edit!
|
||||
import sys
|
||||
"""
|
||||
@generated by mypy-protobuf. Do not edit manually!
|
||||
isort:skip_file
|
||||
"""
|
||||
from google.protobuf.descriptor import (
|
||||
Descriptor as google___protobuf___descriptor___Descriptor,
|
||||
EnumDescriptor as google___protobuf___descriptor___EnumDescriptor,
|
||||
@@ -233,7 +235,6 @@ class FieldDescriptorProto(google___protobuf___message___Message):
|
||||
TYPE_SFIXED64 = typing___cast(FieldDescriptorProto.TypeValue, 16)
|
||||
TYPE_SINT32 = typing___cast(FieldDescriptorProto.TypeValue, 17)
|
||||
TYPE_SINT64 = typing___cast(FieldDescriptorProto.TypeValue, 18)
|
||||
type___Type = Type
|
||||
|
||||
LabelValue = typing___NewType('LabelValue', builtin___int)
|
||||
type___LabelValue = LabelValue
|
||||
@@ -246,7 +247,6 @@ class FieldDescriptorProto(google___protobuf___message___Message):
|
||||
LABEL_OPTIONAL = typing___cast(FieldDescriptorProto.LabelValue, 1)
|
||||
LABEL_REQUIRED = typing___cast(FieldDescriptorProto.LabelValue, 2)
|
||||
LABEL_REPEATED = typing___cast(FieldDescriptorProto.LabelValue, 3)
|
||||
type___Label = Label
|
||||
|
||||
name: typing___Text = ...
|
||||
number: builtin___int = ...
|
||||
@@ -411,7 +411,6 @@ class FileOptions(google___protobuf___message___Message):
|
||||
SPEED = typing___cast(FileOptions.OptimizeModeValue, 1)
|
||||
CODE_SIZE = typing___cast(FileOptions.OptimizeModeValue, 2)
|
||||
LITE_RUNTIME = typing___cast(FileOptions.OptimizeModeValue, 3)
|
||||
type___OptimizeMode = OptimizeMode
|
||||
|
||||
java_package: typing___Text = ...
|
||||
java_outer_classname: typing___Text = ...
|
||||
@@ -500,7 +499,6 @@ class FieldOptions(google___protobuf___message___Message):
|
||||
STRING = typing___cast(FieldOptions.CTypeValue, 0)
|
||||
CORD = typing___cast(FieldOptions.CTypeValue, 1)
|
||||
STRING_PIECE = typing___cast(FieldOptions.CTypeValue, 2)
|
||||
type___CType = CType
|
||||
|
||||
JSTypeValue = typing___NewType('JSTypeValue', builtin___int)
|
||||
type___JSTypeValue = JSTypeValue
|
||||
@@ -513,7 +511,6 @@ class FieldOptions(google___protobuf___message___Message):
|
||||
JS_NORMAL = typing___cast(FieldOptions.JSTypeValue, 0)
|
||||
JS_STRING = typing___cast(FieldOptions.JSTypeValue, 1)
|
||||
JS_NUMBER = typing___cast(FieldOptions.JSTypeValue, 2)
|
||||
type___JSType = JSType
|
||||
|
||||
ctype: type___FieldOptions.CTypeValue = ...
|
||||
packed: builtin___bool = ...
|
||||
@@ -615,7 +612,6 @@ class MethodOptions(google___protobuf___message___Message):
|
||||
IDEMPOTENCY_UNKNOWN = typing___cast(MethodOptions.IdempotencyLevelValue, 0)
|
||||
NO_SIDE_EFFECTS = typing___cast(MethodOptions.IdempotencyLevelValue, 1)
|
||||
IDEMPOTENT = typing___cast(MethodOptions.IdempotencyLevelValue, 2)
|
||||
type___IdempotencyLevel = IdempotencyLevel
|
||||
|
||||
deprecated: builtin___bool = ...
|
||||
idempotency_level: type___MethodOptions.IdempotencyLevelValue = ...
|
||||
|
||||
@@ -1,16 +1,20 @@
|
||||
# @generated by generate_proto_mypy_stubs.py. Do not edit!
|
||||
import sys
|
||||
"""
|
||||
@generated by mypy-protobuf. Do not edit manually!
|
||||
isort:skip_file
|
||||
"""
|
||||
from google.protobuf.descriptor import (
|
||||
Descriptor as google___protobuf___descriptor___Descriptor,
|
||||
FileDescriptor as google___protobuf___descriptor___FileDescriptor,
|
||||
)
|
||||
|
||||
from google.protobuf.internal.well_known_types import (
|
||||
Duration as google___protobuf___internal___well_known_types___Duration,
|
||||
)
|
||||
|
||||
from google.protobuf.message import (
|
||||
Message as google___protobuf___message___Message,
|
||||
)
|
||||
|
||||
from google.protobuf.internal import well_known_types
|
||||
|
||||
from typing import (
|
||||
Optional as typing___Optional,
|
||||
)
|
||||
@@ -28,7 +32,7 @@ builtin___int = int
|
||||
|
||||
DESCRIPTOR: google___protobuf___descriptor___FileDescriptor = ...
|
||||
|
||||
class Duration(google___protobuf___message___Message, well_known_types.Duration):
|
||||
class Duration(google___protobuf___message___Message, google___protobuf___internal___well_known_types___Duration):
|
||||
DESCRIPTOR: google___protobuf___descriptor___Descriptor = ...
|
||||
seconds: builtin___int = ...
|
||||
nanos: builtin___int = ...
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
# @generated by generate_proto_mypy_stubs.py. Do not edit!
|
||||
import sys
|
||||
"""
|
||||
@generated by mypy-protobuf. Do not edit manually!
|
||||
isort:skip_file
|
||||
"""
|
||||
from google.protobuf.descriptor import (
|
||||
Descriptor as google___protobuf___descriptor___Descriptor,
|
||||
FileDescriptor as google___protobuf___descriptor___FileDescriptor,
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
# @generated by generate_proto_mypy_stubs.py. Do not edit!
|
||||
import sys
|
||||
"""
|
||||
@generated by mypy-protobuf. Do not edit manually!
|
||||
isort:skip_file
|
||||
"""
|
||||
from google.protobuf.descriptor import (
|
||||
Descriptor as google___protobuf___descriptor___Descriptor,
|
||||
FileDescriptor as google___protobuf___descriptor___FileDescriptor,
|
||||
@@ -9,12 +11,14 @@ from google.protobuf.internal.containers import (
|
||||
RepeatedScalarFieldContainer as google___protobuf___internal___containers___RepeatedScalarFieldContainer,
|
||||
)
|
||||
|
||||
from google.protobuf.internal.well_known_types import (
|
||||
FieldMask as google___protobuf___internal___well_known_types___FieldMask,
|
||||
)
|
||||
|
||||
from google.protobuf.message import (
|
||||
Message as google___protobuf___message___Message,
|
||||
)
|
||||
|
||||
from google.protobuf.internal import well_known_types
|
||||
|
||||
from typing import (
|
||||
Iterable as typing___Iterable,
|
||||
Optional as typing___Optional,
|
||||
@@ -34,7 +38,7 @@ builtin___int = int
|
||||
|
||||
DESCRIPTOR: google___protobuf___descriptor___FileDescriptor = ...
|
||||
|
||||
class FieldMask(google___protobuf___message___Message, well_known_types.FieldMask):
|
||||
class FieldMask(google___protobuf___message___Message, google___protobuf___internal___well_known_types___FieldMask):
|
||||
DESCRIPTOR: google___protobuf___descriptor___Descriptor = ...
|
||||
paths: google___protobuf___internal___containers___RepeatedScalarFieldContainer[typing___Text] = ...
|
||||
|
||||
|
||||
@@ -1,18 +1,16 @@
|
||||
from datetime import datetime, timedelta
|
||||
from typing import Any, Optional
|
||||
from typing import Any as tAny, Dict, Optional, Text, Type
|
||||
|
||||
class Error(Exception): ...
|
||||
class ParseError(Error): ...
|
||||
|
||||
# This is named 'Any' in the original, but that conflicts with typing.Any,
|
||||
# and we really only need this file to mix in.
|
||||
class Any_:
|
||||
type_url: Any = ...
|
||||
value: Any = ...
|
||||
def Pack(self, msg: Any, type_url_prefix: bytes = ..., deterministic: Optional[Any] = ...) -> None: ...
|
||||
def Unpack(self, msg: Any): ...
|
||||
class Any:
|
||||
type_url: tAny = ...
|
||||
value: tAny = ...
|
||||
def Pack(self, msg: tAny, type_url_prefix: bytes = ..., deterministic: Optional[tAny] = ...) -> None: ...
|
||||
def Unpack(self, msg: tAny): ...
|
||||
def TypeName(self): ...
|
||||
def Is(self, descriptor: Any): ...
|
||||
def Is(self, descriptor: tAny): ...
|
||||
|
||||
class Timestamp:
|
||||
def ToJsonString(self) -> str: ...
|
||||
@@ -35,7 +33,7 @@ class Duration:
|
||||
def ToJsonString(self) -> str: ...
|
||||
seconds: int = ...
|
||||
nanos: int = ...
|
||||
def FromJsonString(self, value: Any) -> None: ...
|
||||
def FromJsonString(self, value: tAny) -> None: ...
|
||||
def ToNanoseconds(self) -> int: ...
|
||||
def ToMicroseconds(self) -> int: ...
|
||||
def ToMilliseconds(self) -> int: ...
|
||||
@@ -49,46 +47,48 @@ class Duration:
|
||||
|
||||
class FieldMask:
|
||||
def ToJsonString(self) -> str: ...
|
||||
def FromJsonString(self, value: Any) -> None: ...
|
||||
def IsValidForDescriptor(self, message_descriptor: Any): ...
|
||||
def AllFieldsFromDescriptor(self, message_descriptor: Any) -> None: ...
|
||||
def CanonicalFormFromMask(self, mask: Any) -> None: ...
|
||||
def Union(self, mask1: Any, mask2: Any) -> None: ...
|
||||
def Intersect(self, mask1: Any, mask2: Any) -> None: ...
|
||||
def FromJsonString(self, value: tAny) -> None: ...
|
||||
def IsValidForDescriptor(self, message_descriptor: tAny): ...
|
||||
def AllFieldsFromDescriptor(self, message_descriptor: tAny) -> None: ...
|
||||
def CanonicalFormFromMask(self, mask: tAny) -> None: ...
|
||||
def Union(self, mask1: tAny, mask2: tAny) -> None: ...
|
||||
def Intersect(self, mask1: tAny, mask2: tAny) -> None: ...
|
||||
def MergeMessage(
|
||||
self, source: Any, destination: Any, replace_message_field: bool = ..., replace_repeated_field: bool = ...
|
||||
self, source: tAny, destination: tAny, replace_message_field: bool = ..., replace_repeated_field: bool = ...
|
||||
) -> None: ...
|
||||
|
||||
class _FieldMaskTree:
|
||||
def __init__(self, field_mask: Optional[Any] = ...) -> None: ...
|
||||
def MergeFromFieldMask(self, field_mask: Any) -> None: ...
|
||||
def AddPath(self, path: Any): ...
|
||||
def ToFieldMask(self, field_mask: Any) -> None: ...
|
||||
def IntersectPath(self, path: Any, intersection: Any): ...
|
||||
def AddLeafNodes(self, prefix: Any, node: Any) -> None: ...
|
||||
def MergeMessage(self, source: Any, destination: Any, replace_message: Any, replace_repeated: Any) -> None: ...
|
||||
def __init__(self, field_mask: Optional[tAny] = ...) -> None: ...
|
||||
def MergeFromFieldMask(self, field_mask: tAny) -> None: ...
|
||||
def AddPath(self, path: tAny): ...
|
||||
def ToFieldMask(self, field_mask: tAny) -> None: ...
|
||||
def IntersectPath(self, path: tAny, intersection: tAny): ...
|
||||
def AddLeafNodes(self, prefix: tAny, node: tAny) -> None: ...
|
||||
def MergeMessage(self, source: tAny, destination: tAny, replace_message: tAny, replace_repeated: tAny) -> None: ...
|
||||
|
||||
class Struct:
|
||||
def __getitem__(self, key: Any): ...
|
||||
def __contains__(self, item: Any): ...
|
||||
def __setitem__(self, key: Any, value: Any) -> None: ...
|
||||
def __delitem__(self, key: Any) -> None: ...
|
||||
def __getitem__(self, key: tAny): ...
|
||||
def __contains__(self, item: tAny): ...
|
||||
def __setitem__(self, key: tAny, value: tAny) -> None: ...
|
||||
def __delitem__(self, key: tAny) -> None: ...
|
||||
def __len__(self): ...
|
||||
def __iter__(self): ...
|
||||
def keys(self): ...
|
||||
def values(self): ...
|
||||
def items(self): ...
|
||||
def get_or_create_list(self, key: Any): ...
|
||||
def get_or_create_struct(self, key: Any): ...
|
||||
def update(self, dictionary: Any) -> None: ...
|
||||
def get_or_create_list(self, key: tAny): ...
|
||||
def get_or_create_struct(self, key: tAny): ...
|
||||
def update(self, dictionary: tAny) -> None: ...
|
||||
|
||||
class ListValue:
|
||||
def __len__(self): ...
|
||||
def append(self, value: Any) -> None: ...
|
||||
def extend(self, elem_seq: Any) -> None: ...
|
||||
def __getitem__(self, index: Any): ...
|
||||
def __setitem__(self, index: Any, value: Any) -> None: ...
|
||||
def __delitem__(self, key: Any) -> None: ...
|
||||
def append(self, value: tAny) -> None: ...
|
||||
def extend(self, elem_seq: tAny) -> None: ...
|
||||
def __getitem__(self, index: tAny): ...
|
||||
def __setitem__(self, index: tAny, value: tAny) -> None: ...
|
||||
def __delitem__(self, key: tAny) -> None: ...
|
||||
def items(self) -> None: ...
|
||||
def add_struct(self): ...
|
||||
def add_list(self): ...
|
||||
|
||||
WKTBASES: Dict[Text, Type]
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
# @generated by generate_proto_mypy_stubs.py. Do not edit!
|
||||
import sys
|
||||
"""
|
||||
@generated by mypy-protobuf. Do not edit manually!
|
||||
isort:skip_file
|
||||
"""
|
||||
from google.protobuf.descriptor import (
|
||||
Descriptor as google___protobuf___descriptor___Descriptor,
|
||||
FileDescriptor as google___protobuf___descriptor___FileDescriptor,
|
||||
|
||||
22
third_party/2and3/google/protobuf/struct_pb2.pyi
vendored
22
third_party/2and3/google/protobuf/struct_pb2.pyi
vendored
@@ -1,5 +1,7 @@
|
||||
# @generated by generate_proto_mypy_stubs.py. Do not edit!
|
||||
import sys
|
||||
"""
|
||||
@generated by mypy-protobuf. Do not edit manually!
|
||||
isort:skip_file
|
||||
"""
|
||||
from google.protobuf.descriptor import (
|
||||
Descriptor as google___protobuf___descriptor___Descriptor,
|
||||
EnumDescriptor as google___protobuf___descriptor___EnumDescriptor,
|
||||
@@ -7,6 +9,7 @@ from google.protobuf.descriptor import (
|
||||
)
|
||||
|
||||
from google.protobuf.internal.containers import (
|
||||
MessageMap as google___protobuf___internal___containers___MessageMap,
|
||||
RepeatedCompositeFieldContainer as google___protobuf___internal___containers___RepeatedCompositeFieldContainer,
|
||||
)
|
||||
|
||||
@@ -14,16 +17,18 @@ from google.protobuf.internal.enum_type_wrapper import (
|
||||
_EnumTypeWrapper as google___protobuf___internal___enum_type_wrapper____EnumTypeWrapper,
|
||||
)
|
||||
|
||||
from google.protobuf.internal.well_known_types import (
|
||||
ListValue as google___protobuf___internal___well_known_types___ListValue,
|
||||
Struct as google___protobuf___internal___well_known_types___Struct,
|
||||
)
|
||||
|
||||
from google.protobuf.message import (
|
||||
Message as google___protobuf___message___Message,
|
||||
)
|
||||
|
||||
from google.protobuf.internal import well_known_types
|
||||
|
||||
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,
|
||||
@@ -50,9 +55,8 @@ class _NullValue(google___protobuf___internal___enum_type_wrapper____EnumTypeWra
|
||||
DESCRIPTOR: google___protobuf___descriptor___EnumDescriptor = ...
|
||||
NULL_VALUE = typing___cast(NullValueValue, 0)
|
||||
NULL_VALUE = typing___cast(NullValueValue, 0)
|
||||
type___NullValue = NullValue
|
||||
|
||||
class Struct(google___protobuf___message___Message, well_known_types.Struct):
|
||||
class Struct(google___protobuf___message___Message, google___protobuf___internal___well_known_types___Struct):
|
||||
DESCRIPTOR: google___protobuf___descriptor___Descriptor = ...
|
||||
class FieldsEntry(google___protobuf___message___Message):
|
||||
DESCRIPTOR: google___protobuf___descriptor___Descriptor = ...
|
||||
@@ -72,7 +76,7 @@ class Struct(google___protobuf___message___Message, well_known_types.Struct):
|
||||
|
||||
|
||||
@property
|
||||
def fields(self) -> typing___MutableMapping[typing___Text, type___Value]: ...
|
||||
def fields(self) -> google___protobuf___internal___containers___MessageMap[typing___Text, type___Value]: ...
|
||||
|
||||
def __init__(self,
|
||||
*,
|
||||
@@ -108,7 +112,7 @@ class Value(google___protobuf___message___Message):
|
||||
def WhichOneof(self, oneof_group: typing_extensions___Literal[u"kind",b"kind"]) -> typing_extensions___Literal["null_value","number_value","string_value","bool_value","struct_value","list_value"]: ...
|
||||
type___Value = Value
|
||||
|
||||
class ListValue(google___protobuf___message___Message, well_known_types.ListValue):
|
||||
class ListValue(google___protobuf___message___Message, google___protobuf___internal___well_known_types___ListValue):
|
||||
DESCRIPTOR: google___protobuf___descriptor___Descriptor = ...
|
||||
|
||||
@property
|
||||
|
||||
@@ -1,16 +1,20 @@
|
||||
# @generated by generate_proto_mypy_stubs.py. Do not edit!
|
||||
import sys
|
||||
"""
|
||||
@generated by mypy-protobuf. Do not edit manually!
|
||||
isort:skip_file
|
||||
"""
|
||||
from google.protobuf.descriptor import (
|
||||
Descriptor as google___protobuf___descriptor___Descriptor,
|
||||
FileDescriptor as google___protobuf___descriptor___FileDescriptor,
|
||||
)
|
||||
|
||||
from google.protobuf.internal.well_known_types import (
|
||||
Timestamp as google___protobuf___internal___well_known_types___Timestamp,
|
||||
)
|
||||
|
||||
from google.protobuf.message import (
|
||||
Message as google___protobuf___message___Message,
|
||||
)
|
||||
|
||||
from google.protobuf.internal import well_known_types
|
||||
|
||||
from typing import (
|
||||
Optional as typing___Optional,
|
||||
)
|
||||
@@ -28,7 +32,7 @@ builtin___int = int
|
||||
|
||||
DESCRIPTOR: google___protobuf___descriptor___FileDescriptor = ...
|
||||
|
||||
class Timestamp(google___protobuf___message___Message, well_known_types.Timestamp):
|
||||
class Timestamp(google___protobuf___message___Message, google___protobuf___internal___well_known_types___Timestamp):
|
||||
DESCRIPTOR: google___protobuf___descriptor___Descriptor = ...
|
||||
seconds: builtin___int = ...
|
||||
nanos: builtin___int = ...
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
# @generated by generate_proto_mypy_stubs.py. Do not edit!
|
||||
import sys
|
||||
"""
|
||||
@generated by mypy-protobuf. Do not edit manually!
|
||||
isort:skip_file
|
||||
"""
|
||||
from google.protobuf.any_pb2 import (
|
||||
Any as google___protobuf___any_pb2___Any,
|
||||
)
|
||||
@@ -57,7 +59,6 @@ class _Syntax(google___protobuf___internal___enum_type_wrapper____EnumTypeWrappe
|
||||
SYNTAX_PROTO3 = typing___cast(SyntaxValue, 1)
|
||||
SYNTAX_PROTO2 = typing___cast(SyntaxValue, 0)
|
||||
SYNTAX_PROTO3 = typing___cast(SyntaxValue, 1)
|
||||
type___Syntax = Syntax
|
||||
|
||||
class Type(google___protobuf___message___Message):
|
||||
DESCRIPTOR: google___protobuf___descriptor___Descriptor = ...
|
||||
@@ -132,7 +133,6 @@ class Field(google___protobuf___message___Message):
|
||||
TYPE_SFIXED64 = typing___cast(Field.KindValue, 16)
|
||||
TYPE_SINT32 = typing___cast(Field.KindValue, 17)
|
||||
TYPE_SINT64 = typing___cast(Field.KindValue, 18)
|
||||
type___Kind = Kind
|
||||
|
||||
CardinalityValue = typing___NewType('CardinalityValue', builtin___int)
|
||||
type___CardinalityValue = CardinalityValue
|
||||
@@ -147,7 +147,6 @@ class Field(google___protobuf___message___Message):
|
||||
CARDINALITY_OPTIONAL = typing___cast(Field.CardinalityValue, 1)
|
||||
CARDINALITY_REQUIRED = typing___cast(Field.CardinalityValue, 2)
|
||||
CARDINALITY_REPEATED = typing___cast(Field.CardinalityValue, 3)
|
||||
type___Cardinality = Cardinality
|
||||
|
||||
kind: type___Field.KindValue = ...
|
||||
cardinality: type___Field.CardinalityValue = ...
|
||||
|
||||
@@ -1,329 +0,0 @@
|
||||
# @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,
|
||||
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.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 (
|
||||
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 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 TestFlagsAndStrings(google___protobuf___message___Message):
|
||||
DESCRIPTOR: google___protobuf___descriptor___Descriptor = ...
|
||||
class RepeatedGroup(google___protobuf___message___Message):
|
||||
DESCRIPTOR: google___protobuf___descriptor___Descriptor = ...
|
||||
f: typing___Text = ...
|
||||
|
||||
def __init__(self,
|
||||
*,
|
||||
f : typing___Optional[typing___Text] = None,
|
||||
) -> None: ...
|
||||
def HasField(self, field_name: typing_extensions___Literal[u"f",b"f"]) -> builtin___bool: ...
|
||||
def ClearField(self, field_name: typing_extensions___Literal[u"f",b"f"]) -> None: ...
|
||||
type___RepeatedGroup = RepeatedGroup
|
||||
|
||||
A: builtin___int = ...
|
||||
|
||||
@property
|
||||
def repeatedgroup(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[type___TestFlagsAndStrings.RepeatedGroup]: ...
|
||||
|
||||
def __init__(self,
|
||||
*,
|
||||
A : typing___Optional[builtin___int] = None,
|
||||
repeatedgroup : typing___Optional[typing___Iterable[type___TestFlagsAndStrings.RepeatedGroup]] = None,
|
||||
) -> None: ...
|
||||
def HasField(self, field_name: typing_extensions___Literal[u"A",b"A"]) -> builtin___bool: ...
|
||||
def ClearField(self, field_name: typing_extensions___Literal[u"A",b"A",u"repeatedgroup",b"repeatedgroup"]) -> None: ...
|
||||
type___TestFlagsAndStrings = TestFlagsAndStrings
|
||||
|
||||
class TestBase64ByteArrays(google___protobuf___message___Message):
|
||||
DESCRIPTOR: google___protobuf___descriptor___Descriptor = ...
|
||||
a: builtin___bytes = ...
|
||||
|
||||
def __init__(self,
|
||||
*,
|
||||
a : typing___Optional[builtin___bytes] = None,
|
||||
) -> None: ...
|
||||
def HasField(self, field_name: typing_extensions___Literal[u"a",b"a"]) -> builtin___bool: ...
|
||||
def ClearField(self, field_name: typing_extensions___Literal[u"a",b"a"]) -> None: ...
|
||||
type___TestBase64ByteArrays = TestBase64ByteArrays
|
||||
|
||||
class TestJavaScriptJSON(google___protobuf___message___Message):
|
||||
DESCRIPTOR: google___protobuf___descriptor___Descriptor = ...
|
||||
a: builtin___int = ...
|
||||
final: builtin___float = ...
|
||||
Var: typing___Text = ...
|
||||
|
||||
def __init__(self,
|
||||
*,
|
||||
a : typing___Optional[builtin___int] = None,
|
||||
final : typing___Optional[builtin___float] = None,
|
||||
Var : typing___Optional[typing___Text] = None,
|
||||
) -> None: ...
|
||||
def HasField(self, field_name: typing_extensions___Literal[u"Var",b"Var",u"a",b"a",u"final",b"final",u"in",b"in"]) -> builtin___bool: ...
|
||||
def ClearField(self, field_name: typing_extensions___Literal[u"Var",b"Var",u"a",b"a",u"final",b"final",u"in",b"in"]) -> None: ...
|
||||
type___TestJavaScriptJSON = TestJavaScriptJSON
|
||||
|
||||
class TestJavaScriptOrderJSON1(google___protobuf___message___Message):
|
||||
DESCRIPTOR: google___protobuf___descriptor___Descriptor = ...
|
||||
d: builtin___int = ...
|
||||
c: builtin___int = ...
|
||||
x: builtin___bool = ...
|
||||
b: builtin___int = ...
|
||||
a: builtin___int = ...
|
||||
|
||||
def __init__(self,
|
||||
*,
|
||||
d : typing___Optional[builtin___int] = None,
|
||||
c : typing___Optional[builtin___int] = None,
|
||||
x : typing___Optional[builtin___bool] = None,
|
||||
b : typing___Optional[builtin___int] = None,
|
||||
a : typing___Optional[builtin___int] = None,
|
||||
) -> None: ...
|
||||
def HasField(self, field_name: typing_extensions___Literal[u"a",b"a",u"b",b"b",u"c",b"c",u"d",b"d",u"x",b"x"]) -> builtin___bool: ...
|
||||
def ClearField(self, field_name: typing_extensions___Literal[u"a",b"a",u"b",b"b",u"c",b"c",u"d",b"d",u"x",b"x"]) -> None: ...
|
||||
type___TestJavaScriptOrderJSON1 = TestJavaScriptOrderJSON1
|
||||
|
||||
class TestJavaScriptOrderJSON2(google___protobuf___message___Message):
|
||||
DESCRIPTOR: google___protobuf___descriptor___Descriptor = ...
|
||||
d: builtin___int = ...
|
||||
c: builtin___int = ...
|
||||
x: builtin___bool = ...
|
||||
b: builtin___int = ...
|
||||
a: builtin___int = ...
|
||||
|
||||
@property
|
||||
def z(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[type___TestJavaScriptOrderJSON1]: ...
|
||||
|
||||
def __init__(self,
|
||||
*,
|
||||
d : typing___Optional[builtin___int] = None,
|
||||
c : typing___Optional[builtin___int] = None,
|
||||
x : typing___Optional[builtin___bool] = None,
|
||||
b : typing___Optional[builtin___int] = None,
|
||||
a : typing___Optional[builtin___int] = None,
|
||||
z : typing___Optional[typing___Iterable[type___TestJavaScriptOrderJSON1]] = None,
|
||||
) -> None: ...
|
||||
def HasField(self, field_name: typing_extensions___Literal[u"a",b"a",u"b",b"b",u"c",b"c",u"d",b"d",u"x",b"x"]) -> builtin___bool: ...
|
||||
def ClearField(self, field_name: typing_extensions___Literal[u"a",b"a",u"b",b"b",u"c",b"c",u"d",b"d",u"x",b"x",u"z",b"z"]) -> None: ...
|
||||
type___TestJavaScriptOrderJSON2 = TestJavaScriptOrderJSON2
|
||||
|
||||
class TestLargeInt(google___protobuf___message___Message):
|
||||
DESCRIPTOR: google___protobuf___descriptor___Descriptor = ...
|
||||
a: builtin___int = ...
|
||||
b: builtin___int = ...
|
||||
|
||||
def __init__(self,
|
||||
*,
|
||||
a : typing___Optional[builtin___int] = None,
|
||||
b : typing___Optional[builtin___int] = None,
|
||||
) -> None: ...
|
||||
def HasField(self, field_name: typing_extensions___Literal[u"a",b"a",u"b",b"b"]) -> builtin___bool: ...
|
||||
def ClearField(self, field_name: typing_extensions___Literal[u"a",b"a",u"b",b"b"]) -> None: ...
|
||||
type___TestLargeInt = TestLargeInt
|
||||
|
||||
class TestNumbers(google___protobuf___message___Message):
|
||||
DESCRIPTOR: google___protobuf___descriptor___Descriptor = ...
|
||||
MyTypeValue = typing___NewType('MyTypeValue', builtin___int)
|
||||
type___MyTypeValue = MyTypeValue
|
||||
MyType: _MyType
|
||||
class _MyType(google___protobuf___internal___enum_type_wrapper____EnumTypeWrapper[TestNumbers.MyTypeValue]):
|
||||
DESCRIPTOR: google___protobuf___descriptor___EnumDescriptor = ...
|
||||
OK = typing___cast(TestNumbers.MyTypeValue, 0)
|
||||
WARNING = typing___cast(TestNumbers.MyTypeValue, 1)
|
||||
ERROR = typing___cast(TestNumbers.MyTypeValue, 2)
|
||||
OK = typing___cast(TestNumbers.MyTypeValue, 0)
|
||||
WARNING = typing___cast(TestNumbers.MyTypeValue, 1)
|
||||
ERROR = typing___cast(TestNumbers.MyTypeValue, 2)
|
||||
type___MyType = MyType
|
||||
|
||||
a: type___TestNumbers.MyTypeValue = ...
|
||||
b: builtin___int = ...
|
||||
c: builtin___float = ...
|
||||
d: builtin___bool = ...
|
||||
e: builtin___float = ...
|
||||
f: builtin___int = ...
|
||||
|
||||
def __init__(self,
|
||||
*,
|
||||
a : typing___Optional[type___TestNumbers.MyTypeValue] = None,
|
||||
b : typing___Optional[builtin___int] = None,
|
||||
c : typing___Optional[builtin___float] = None,
|
||||
d : typing___Optional[builtin___bool] = None,
|
||||
e : typing___Optional[builtin___float] = None,
|
||||
f : typing___Optional[builtin___int] = None,
|
||||
) -> None: ...
|
||||
def HasField(self, field_name: typing_extensions___Literal[u"a",b"a",u"b",b"b",u"c",b"c",u"d",b"d",u"e",b"e",u"f",b"f"]) -> builtin___bool: ...
|
||||
def ClearField(self, field_name: typing_extensions___Literal[u"a",b"a",u"b",b"b",u"c",b"c",u"d",b"d",u"e",b"e",u"f",b"f"]) -> None: ...
|
||||
type___TestNumbers = TestNumbers
|
||||
|
||||
class TestCamelCase(google___protobuf___message___Message):
|
||||
DESCRIPTOR: google___protobuf___descriptor___Descriptor = ...
|
||||
normal_field: typing___Text = ...
|
||||
CAPITAL_FIELD: builtin___int = ...
|
||||
CamelCaseField: builtin___int = ...
|
||||
|
||||
def __init__(self,
|
||||
*,
|
||||
normal_field : typing___Optional[typing___Text] = None,
|
||||
CAPITAL_FIELD : typing___Optional[builtin___int] = None,
|
||||
CamelCaseField : typing___Optional[builtin___int] = None,
|
||||
) -> None: ...
|
||||
def HasField(self, field_name: typing_extensions___Literal[u"CAPITAL_FIELD",b"CAPITAL_FIELD",u"CamelCaseField",b"CamelCaseField",u"normal_field",b"normal_field"]) -> builtin___bool: ...
|
||||
def ClearField(self, field_name: typing_extensions___Literal[u"CAPITAL_FIELD",b"CAPITAL_FIELD",u"CamelCaseField",b"CamelCaseField",u"normal_field",b"normal_field"]) -> None: ...
|
||||
type___TestCamelCase = TestCamelCase
|
||||
|
||||
class TestBoolMap(google___protobuf___message___Message):
|
||||
DESCRIPTOR: google___protobuf___descriptor___Descriptor = ...
|
||||
class BoolMapEntry(google___protobuf___message___Message):
|
||||
DESCRIPTOR: google___protobuf___descriptor___Descriptor = ...
|
||||
key: builtin___bool = ...
|
||||
value: builtin___int = ...
|
||||
|
||||
def __init__(self,
|
||||
*,
|
||||
key : typing___Optional[builtin___bool] = None,
|
||||
value : typing___Optional[builtin___int] = None,
|
||||
) -> None: ...
|
||||
def HasField(self, field_name: typing_extensions___Literal[u"key",b"key",u"value",b"value"]) -> builtin___bool: ...
|
||||
def ClearField(self, field_name: typing_extensions___Literal[u"key",b"key",u"value",b"value"]) -> None: ...
|
||||
type___BoolMapEntry = BoolMapEntry
|
||||
|
||||
|
||||
@property
|
||||
def bool_map(self) -> typing___MutableMapping[builtin___bool, builtin___int]: ...
|
||||
|
||||
def __init__(self,
|
||||
*,
|
||||
bool_map : typing___Optional[typing___Mapping[builtin___bool, builtin___int]] = None,
|
||||
) -> None: ...
|
||||
def ClearField(self, field_name: typing_extensions___Literal[u"bool_map",b"bool_map"]) -> None: ...
|
||||
type___TestBoolMap = TestBoolMap
|
||||
|
||||
class TestRecursion(google___protobuf___message___Message):
|
||||
DESCRIPTOR: google___protobuf___descriptor___Descriptor = ...
|
||||
value: builtin___int = ...
|
||||
|
||||
@property
|
||||
def child(self) -> type___TestRecursion: ...
|
||||
|
||||
def __init__(self,
|
||||
*,
|
||||
value : typing___Optional[builtin___int] = None,
|
||||
child : typing___Optional[type___TestRecursion] = None,
|
||||
) -> None: ...
|
||||
def HasField(self, field_name: typing_extensions___Literal[u"child",b"child",u"value",b"value"]) -> builtin___bool: ...
|
||||
def ClearField(self, field_name: typing_extensions___Literal[u"child",b"child",u"value",b"value"]) -> None: ...
|
||||
type___TestRecursion = TestRecursion
|
||||
|
||||
class TestStringMap(google___protobuf___message___Message):
|
||||
DESCRIPTOR: google___protobuf___descriptor___Descriptor = ...
|
||||
class StringMapEntry(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 HasField(self, field_name: typing_extensions___Literal[u"key",b"key",u"value",b"value"]) -> builtin___bool: ...
|
||||
def ClearField(self, field_name: typing_extensions___Literal[u"key",b"key",u"value",b"value"]) -> None: ...
|
||||
type___StringMapEntry = StringMapEntry
|
||||
|
||||
|
||||
@property
|
||||
def string_map(self) -> typing___MutableMapping[typing___Text, typing___Text]: ...
|
||||
|
||||
def __init__(self,
|
||||
*,
|
||||
string_map : typing___Optional[typing___Mapping[typing___Text, typing___Text]] = None,
|
||||
) -> None: ...
|
||||
def ClearField(self, field_name: typing_extensions___Literal[u"string_map",b"string_map"]) -> None: ...
|
||||
type___TestStringMap = TestStringMap
|
||||
|
||||
class TestStringSerializer(google___protobuf___message___Message):
|
||||
DESCRIPTOR: google___protobuf___descriptor___Descriptor = ...
|
||||
class StringMapEntry(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 HasField(self, field_name: typing_extensions___Literal[u"key",b"key",u"value",b"value"]) -> builtin___bool: ...
|
||||
def ClearField(self, field_name: typing_extensions___Literal[u"key",b"key",u"value",b"value"]) -> None: ...
|
||||
type___StringMapEntry = StringMapEntry
|
||||
|
||||
scalar_string: typing___Text = ...
|
||||
repeated_string: google___protobuf___internal___containers___RepeatedScalarFieldContainer[typing___Text] = ...
|
||||
|
||||
@property
|
||||
def string_map(self) -> typing___MutableMapping[typing___Text, typing___Text]: ...
|
||||
|
||||
def __init__(self,
|
||||
*,
|
||||
scalar_string : typing___Optional[typing___Text] = None,
|
||||
repeated_string : typing___Optional[typing___Iterable[typing___Text]] = None,
|
||||
string_map : typing___Optional[typing___Mapping[typing___Text, typing___Text]] = None,
|
||||
) -> None: ...
|
||||
def HasField(self, field_name: typing_extensions___Literal[u"scalar_string",b"scalar_string"]) -> builtin___bool: ...
|
||||
def ClearField(self, field_name: typing_extensions___Literal[u"repeated_string",b"repeated_string",u"scalar_string",b"scalar_string",u"string_map",b"string_map"]) -> None: ...
|
||||
type___TestStringSerializer = TestStringSerializer
|
||||
|
||||
class TestMessageWithExtension(google___protobuf___message___Message):
|
||||
DESCRIPTOR: google___protobuf___descriptor___Descriptor = ...
|
||||
|
||||
def __init__(self,
|
||||
) -> None: ...
|
||||
type___TestMessageWithExtension = TestMessageWithExtension
|
||||
|
||||
class TestExtension(google___protobuf___message___Message):
|
||||
DESCRIPTOR: google___protobuf___descriptor___Descriptor = ...
|
||||
value: typing___Text = ...
|
||||
|
||||
def __init__(self,
|
||||
*,
|
||||
value : typing___Optional[typing___Text] = None,
|
||||
) -> None: ...
|
||||
def HasField(self, field_name: typing_extensions___Literal[u"value",b"value"]) -> builtin___bool: ...
|
||||
def ClearField(self, field_name: typing_extensions___Literal[u"value",b"value"]) -> None: ...
|
||||
type___TestExtension = TestExtension
|
||||
@@ -1,733 +0,0 @@
|
||||
# @generated by generate_proto_mypy_stubs.py. Do not edit!
|
||||
|
||||
# Manually edited to work around #4815.
|
||||
|
||||
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,
|
||||
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.field_mask_pb2 import (
|
||||
FieldMask as google___protobuf___field_mask_pb2___FieldMask,
|
||||
)
|
||||
|
||||
from google.protobuf.internal.containers import (
|
||||
RepeatedCompositeFieldContainer as google___protobuf___internal___containers___RepeatedCompositeFieldContainer,
|
||||
RepeatedScalarFieldContainer as google___protobuf___internal___containers___RepeatedScalarFieldContainer,
|
||||
)
|
||||
|
||||
from google.protobuf.internal.enum_type_wrapper import (
|
||||
_EnumTypeWrapper as google___protobuf___internal___enum_type_wrapper____EnumTypeWrapper,
|
||||
)
|
||||
|
||||
from google.protobuf.message import (
|
||||
Message as google___protobuf___message___Message,
|
||||
)
|
||||
|
||||
from google.protobuf.struct_pb2 import (
|
||||
ListValue as google___protobuf___struct_pb2___ListValue,
|
||||
NullValueValue as google___protobuf___struct_pb2___NullValueValue,
|
||||
Struct as google___protobuf___struct_pb2___Struct,
|
||||
Value as google___protobuf___struct_pb2___Value,
|
||||
)
|
||||
|
||||
from google.protobuf.timestamp_pb2 import (
|
||||
Timestamp as google___protobuf___timestamp_pb2___Timestamp,
|
||||
)
|
||||
|
||||
# Work-around #4815
|
||||
# from google.protobuf.unittest_pb2 import (
|
||||
# TestAllExtensions as google___protobuf___unittest_pb2___TestAllExtensions,
|
||||
# )
|
||||
from typing import Any
|
||||
google___protobuf___unittest_pb2___TestAllExtensions = Any
|
||||
|
||||
from google.protobuf.wrappers_pb2 import (
|
||||
BoolValue as google___protobuf___wrappers_pb2___BoolValue,
|
||||
BytesValue as google___protobuf___wrappers_pb2___BytesValue,
|
||||
DoubleValue as google___protobuf___wrappers_pb2___DoubleValue,
|
||||
FloatValue as google___protobuf___wrappers_pb2___FloatValue,
|
||||
Int32Value as google___protobuf___wrappers_pb2___Int32Value,
|
||||
Int64Value as google___protobuf___wrappers_pb2___Int64Value,
|
||||
StringValue as google___protobuf___wrappers_pb2___StringValue,
|
||||
UInt32Value as google___protobuf___wrappers_pb2___UInt32Value,
|
||||
UInt64Value as google___protobuf___wrappers_pb2___UInt64Value,
|
||||
)
|
||||
|
||||
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 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 = ...
|
||||
|
||||
EnumTypeValue = typing___NewType('EnumTypeValue', builtin___int)
|
||||
type___EnumTypeValue = EnumTypeValue
|
||||
EnumType: _EnumType
|
||||
class _EnumType(google___protobuf___internal___enum_type_wrapper____EnumTypeWrapper[EnumTypeValue]):
|
||||
DESCRIPTOR: google___protobuf___descriptor___EnumDescriptor = ...
|
||||
FOO = typing___cast(EnumTypeValue, 0)
|
||||
BAR = typing___cast(EnumTypeValue, 1)
|
||||
FOO = typing___cast(EnumTypeValue, 0)
|
||||
BAR = typing___cast(EnumTypeValue, 1)
|
||||
type___EnumType = EnumType
|
||||
|
||||
class MessageType(google___protobuf___message___Message):
|
||||
DESCRIPTOR: google___protobuf___descriptor___Descriptor = ...
|
||||
value: builtin___int = ...
|
||||
|
||||
def __init__(self,
|
||||
*,
|
||||
value : typing___Optional[builtin___int] = None,
|
||||
) -> None: ...
|
||||
def ClearField(self, field_name: typing_extensions___Literal[u"value",b"value"]) -> None: ...
|
||||
type___MessageType = MessageType
|
||||
|
||||
class TestMessage(google___protobuf___message___Message):
|
||||
DESCRIPTOR: google___protobuf___descriptor___Descriptor = ...
|
||||
bool_value: builtin___bool = ...
|
||||
int32_value: builtin___int = ...
|
||||
int64_value: builtin___int = ...
|
||||
uint32_value: builtin___int = ...
|
||||
uint64_value: builtin___int = ...
|
||||
float_value: builtin___float = ...
|
||||
double_value: builtin___float = ...
|
||||
string_value: typing___Text = ...
|
||||
bytes_value: builtin___bytes = ...
|
||||
enum_value: type___EnumTypeValue = ...
|
||||
repeated_bool_value: google___protobuf___internal___containers___RepeatedScalarFieldContainer[builtin___bool] = ...
|
||||
repeated_int32_value: google___protobuf___internal___containers___RepeatedScalarFieldContainer[builtin___int] = ...
|
||||
repeated_int64_value: google___protobuf___internal___containers___RepeatedScalarFieldContainer[builtin___int] = ...
|
||||
repeated_uint32_value: google___protobuf___internal___containers___RepeatedScalarFieldContainer[builtin___int] = ...
|
||||
repeated_uint64_value: google___protobuf___internal___containers___RepeatedScalarFieldContainer[builtin___int] = ...
|
||||
repeated_float_value: google___protobuf___internal___containers___RepeatedScalarFieldContainer[builtin___float] = ...
|
||||
repeated_double_value: google___protobuf___internal___containers___RepeatedScalarFieldContainer[builtin___float] = ...
|
||||
repeated_string_value: google___protobuf___internal___containers___RepeatedScalarFieldContainer[typing___Text] = ...
|
||||
repeated_bytes_value: google___protobuf___internal___containers___RepeatedScalarFieldContainer[builtin___bytes] = ...
|
||||
repeated_enum_value: google___protobuf___internal___containers___RepeatedScalarFieldContainer[type___EnumTypeValue] = ...
|
||||
|
||||
@property
|
||||
def message_value(self) -> type___MessageType: ...
|
||||
|
||||
@property
|
||||
def repeated_message_value(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[type___MessageType]: ...
|
||||
|
||||
def __init__(self,
|
||||
*,
|
||||
bool_value : typing___Optional[builtin___bool] = None,
|
||||
int32_value : typing___Optional[builtin___int] = None,
|
||||
int64_value : typing___Optional[builtin___int] = None,
|
||||
uint32_value : typing___Optional[builtin___int] = None,
|
||||
uint64_value : typing___Optional[builtin___int] = None,
|
||||
float_value : typing___Optional[builtin___float] = None,
|
||||
double_value : typing___Optional[builtin___float] = None,
|
||||
string_value : typing___Optional[typing___Text] = None,
|
||||
bytes_value : typing___Optional[builtin___bytes] = None,
|
||||
enum_value : typing___Optional[type___EnumTypeValue] = None,
|
||||
message_value : typing___Optional[type___MessageType] = None,
|
||||
repeated_bool_value : typing___Optional[typing___Iterable[builtin___bool]] = None,
|
||||
repeated_int32_value : typing___Optional[typing___Iterable[builtin___int]] = None,
|
||||
repeated_int64_value : typing___Optional[typing___Iterable[builtin___int]] = None,
|
||||
repeated_uint32_value : typing___Optional[typing___Iterable[builtin___int]] = None,
|
||||
repeated_uint64_value : typing___Optional[typing___Iterable[builtin___int]] = None,
|
||||
repeated_float_value : typing___Optional[typing___Iterable[builtin___float]] = None,
|
||||
repeated_double_value : typing___Optional[typing___Iterable[builtin___float]] = None,
|
||||
repeated_string_value : typing___Optional[typing___Iterable[typing___Text]] = None,
|
||||
repeated_bytes_value : typing___Optional[typing___Iterable[builtin___bytes]] = None,
|
||||
repeated_enum_value : typing___Optional[typing___Iterable[type___EnumTypeValue]] = None,
|
||||
repeated_message_value : typing___Optional[typing___Iterable[type___MessageType]] = None,
|
||||
) -> None: ...
|
||||
def HasField(self, field_name: typing_extensions___Literal[u"message_value",b"message_value"]) -> builtin___bool: ...
|
||||
def ClearField(self, field_name: typing_extensions___Literal[u"bool_value",b"bool_value",u"bytes_value",b"bytes_value",u"double_value",b"double_value",u"enum_value",b"enum_value",u"float_value",b"float_value",u"int32_value",b"int32_value",u"int64_value",b"int64_value",u"message_value",b"message_value",u"repeated_bool_value",b"repeated_bool_value",u"repeated_bytes_value",b"repeated_bytes_value",u"repeated_double_value",b"repeated_double_value",u"repeated_enum_value",b"repeated_enum_value",u"repeated_float_value",b"repeated_float_value",u"repeated_int32_value",b"repeated_int32_value",u"repeated_int64_value",b"repeated_int64_value",u"repeated_message_value",b"repeated_message_value",u"repeated_string_value",b"repeated_string_value",u"repeated_uint32_value",b"repeated_uint32_value",u"repeated_uint64_value",b"repeated_uint64_value",u"string_value",b"string_value",u"uint32_value",b"uint32_value",u"uint64_value",b"uint64_value"]) -> None: ...
|
||||
type___TestMessage = TestMessage
|
||||
|
||||
class TestOneof(google___protobuf___message___Message):
|
||||
DESCRIPTOR: google___protobuf___descriptor___Descriptor = ...
|
||||
oneof_int32_value: builtin___int = ...
|
||||
oneof_string_value: typing___Text = ...
|
||||
oneof_bytes_value: builtin___bytes = ...
|
||||
oneof_enum_value: type___EnumTypeValue = ...
|
||||
oneof_null_value: google___protobuf___struct_pb2___NullValueValue = ...
|
||||
|
||||
@property
|
||||
def oneof_message_value(self) -> type___MessageType: ...
|
||||
|
||||
def __init__(self,
|
||||
*,
|
||||
oneof_int32_value : typing___Optional[builtin___int] = None,
|
||||
oneof_string_value : typing___Optional[typing___Text] = None,
|
||||
oneof_bytes_value : typing___Optional[builtin___bytes] = None,
|
||||
oneof_enum_value : typing___Optional[type___EnumTypeValue] = None,
|
||||
oneof_message_value : typing___Optional[type___MessageType] = None,
|
||||
oneof_null_value : typing___Optional[google___protobuf___struct_pb2___NullValueValue] = None,
|
||||
) -> None: ...
|
||||
def HasField(self, field_name: typing_extensions___Literal[u"oneof_bytes_value",b"oneof_bytes_value",u"oneof_enum_value",b"oneof_enum_value",u"oneof_int32_value",b"oneof_int32_value",u"oneof_message_value",b"oneof_message_value",u"oneof_null_value",b"oneof_null_value",u"oneof_string_value",b"oneof_string_value",u"oneof_value",b"oneof_value"]) -> builtin___bool: ...
|
||||
def ClearField(self, field_name: typing_extensions___Literal[u"oneof_bytes_value",b"oneof_bytes_value",u"oneof_enum_value",b"oneof_enum_value",u"oneof_int32_value",b"oneof_int32_value",u"oneof_message_value",b"oneof_message_value",u"oneof_null_value",b"oneof_null_value",u"oneof_string_value",b"oneof_string_value",u"oneof_value",b"oneof_value"]) -> None: ...
|
||||
def WhichOneof(self, oneof_group: typing_extensions___Literal[u"oneof_value",b"oneof_value"]) -> typing_extensions___Literal["oneof_int32_value","oneof_string_value","oneof_bytes_value","oneof_enum_value","oneof_message_value","oneof_null_value"]: ...
|
||||
type___TestOneof = TestOneof
|
||||
|
||||
class TestMap(google___protobuf___message___Message):
|
||||
DESCRIPTOR: google___protobuf___descriptor___Descriptor = ...
|
||||
class BoolMapEntry(google___protobuf___message___Message):
|
||||
DESCRIPTOR: google___protobuf___descriptor___Descriptor = ...
|
||||
key: builtin___bool = ...
|
||||
value: builtin___int = ...
|
||||
|
||||
def __init__(self,
|
||||
*,
|
||||
key : typing___Optional[builtin___bool] = None,
|
||||
value : typing___Optional[builtin___int] = None,
|
||||
) -> None: ...
|
||||
def ClearField(self, field_name: typing_extensions___Literal[u"key",b"key",u"value",b"value"]) -> None: ...
|
||||
type___BoolMapEntry = BoolMapEntry
|
||||
|
||||
class Int32MapEntry(google___protobuf___message___Message):
|
||||
DESCRIPTOR: google___protobuf___descriptor___Descriptor = ...
|
||||
key: builtin___int = ...
|
||||
value: builtin___int = ...
|
||||
|
||||
def __init__(self,
|
||||
*,
|
||||
key : typing___Optional[builtin___int] = None,
|
||||
value : typing___Optional[builtin___int] = None,
|
||||
) -> None: ...
|
||||
def ClearField(self, field_name: typing_extensions___Literal[u"key",b"key",u"value",b"value"]) -> None: ...
|
||||
type___Int32MapEntry = Int32MapEntry
|
||||
|
||||
class Int64MapEntry(google___protobuf___message___Message):
|
||||
DESCRIPTOR: google___protobuf___descriptor___Descriptor = ...
|
||||
key: builtin___int = ...
|
||||
value: builtin___int = ...
|
||||
|
||||
def __init__(self,
|
||||
*,
|
||||
key : typing___Optional[builtin___int] = None,
|
||||
value : typing___Optional[builtin___int] = None,
|
||||
) -> None: ...
|
||||
def ClearField(self, field_name: typing_extensions___Literal[u"key",b"key",u"value",b"value"]) -> None: ...
|
||||
type___Int64MapEntry = Int64MapEntry
|
||||
|
||||
class Uint32MapEntry(google___protobuf___message___Message):
|
||||
DESCRIPTOR: google___protobuf___descriptor___Descriptor = ...
|
||||
key: builtin___int = ...
|
||||
value: builtin___int = ...
|
||||
|
||||
def __init__(self,
|
||||
*,
|
||||
key : typing___Optional[builtin___int] = None,
|
||||
value : typing___Optional[builtin___int] = None,
|
||||
) -> None: ...
|
||||
def ClearField(self, field_name: typing_extensions___Literal[u"key",b"key",u"value",b"value"]) -> None: ...
|
||||
type___Uint32MapEntry = Uint32MapEntry
|
||||
|
||||
class Uint64MapEntry(google___protobuf___message___Message):
|
||||
DESCRIPTOR: google___protobuf___descriptor___Descriptor = ...
|
||||
key: builtin___int = ...
|
||||
value: builtin___int = ...
|
||||
|
||||
def __init__(self,
|
||||
*,
|
||||
key : typing___Optional[builtin___int] = None,
|
||||
value : typing___Optional[builtin___int] = None,
|
||||
) -> None: ...
|
||||
def ClearField(self, field_name: typing_extensions___Literal[u"key",b"key",u"value",b"value"]) -> None: ...
|
||||
type___Uint64MapEntry = Uint64MapEntry
|
||||
|
||||
class StringMapEntry(google___protobuf___message___Message):
|
||||
DESCRIPTOR: google___protobuf___descriptor___Descriptor = ...
|
||||
key: typing___Text = ...
|
||||
value: builtin___int = ...
|
||||
|
||||
def __init__(self,
|
||||
*,
|
||||
key : typing___Optional[typing___Text] = None,
|
||||
value : typing___Optional[builtin___int] = None,
|
||||
) -> None: ...
|
||||
def ClearField(self, field_name: typing_extensions___Literal[u"key",b"key",u"value",b"value"]) -> None: ...
|
||||
type___StringMapEntry = StringMapEntry
|
||||
|
||||
|
||||
@property
|
||||
def bool_map(self) -> typing___MutableMapping[builtin___bool, builtin___int]: ...
|
||||
|
||||
@property
|
||||
def int32_map(self) -> typing___MutableMapping[builtin___int, builtin___int]: ...
|
||||
|
||||
@property
|
||||
def int64_map(self) -> typing___MutableMapping[builtin___int, builtin___int]: ...
|
||||
|
||||
@property
|
||||
def uint32_map(self) -> typing___MutableMapping[builtin___int, builtin___int]: ...
|
||||
|
||||
@property
|
||||
def uint64_map(self) -> typing___MutableMapping[builtin___int, builtin___int]: ...
|
||||
|
||||
@property
|
||||
def string_map(self) -> typing___MutableMapping[typing___Text, builtin___int]: ...
|
||||
|
||||
def __init__(self,
|
||||
*,
|
||||
bool_map : typing___Optional[typing___Mapping[builtin___bool, builtin___int]] = None,
|
||||
int32_map : typing___Optional[typing___Mapping[builtin___int, builtin___int]] = None,
|
||||
int64_map : typing___Optional[typing___Mapping[builtin___int, builtin___int]] = None,
|
||||
uint32_map : typing___Optional[typing___Mapping[builtin___int, builtin___int]] = None,
|
||||
uint64_map : typing___Optional[typing___Mapping[builtin___int, builtin___int]] = None,
|
||||
string_map : typing___Optional[typing___Mapping[typing___Text, builtin___int]] = None,
|
||||
) -> None: ...
|
||||
def ClearField(self, field_name: typing_extensions___Literal[u"bool_map",b"bool_map",u"int32_map",b"int32_map",u"int64_map",b"int64_map",u"string_map",b"string_map",u"uint32_map",b"uint32_map",u"uint64_map",b"uint64_map"]) -> None: ...
|
||||
type___TestMap = TestMap
|
||||
|
||||
class TestNestedMap(google___protobuf___message___Message):
|
||||
DESCRIPTOR: google___protobuf___descriptor___Descriptor = ...
|
||||
class BoolMapEntry(google___protobuf___message___Message):
|
||||
DESCRIPTOR: google___protobuf___descriptor___Descriptor = ...
|
||||
key: builtin___bool = ...
|
||||
value: builtin___int = ...
|
||||
|
||||
def __init__(self,
|
||||
*,
|
||||
key : typing___Optional[builtin___bool] = None,
|
||||
value : typing___Optional[builtin___int] = None,
|
||||
) -> None: ...
|
||||
def ClearField(self, field_name: typing_extensions___Literal[u"key",b"key",u"value",b"value"]) -> None: ...
|
||||
type___BoolMapEntry = BoolMapEntry
|
||||
|
||||
class Int32MapEntry(google___protobuf___message___Message):
|
||||
DESCRIPTOR: google___protobuf___descriptor___Descriptor = ...
|
||||
key: builtin___int = ...
|
||||
value: builtin___int = ...
|
||||
|
||||
def __init__(self,
|
||||
*,
|
||||
key : typing___Optional[builtin___int] = None,
|
||||
value : typing___Optional[builtin___int] = None,
|
||||
) -> None: ...
|
||||
def ClearField(self, field_name: typing_extensions___Literal[u"key",b"key",u"value",b"value"]) -> None: ...
|
||||
type___Int32MapEntry = Int32MapEntry
|
||||
|
||||
class Int64MapEntry(google___protobuf___message___Message):
|
||||
DESCRIPTOR: google___protobuf___descriptor___Descriptor = ...
|
||||
key: builtin___int = ...
|
||||
value: builtin___int = ...
|
||||
|
||||
def __init__(self,
|
||||
*,
|
||||
key : typing___Optional[builtin___int] = None,
|
||||
value : typing___Optional[builtin___int] = None,
|
||||
) -> None: ...
|
||||
def ClearField(self, field_name: typing_extensions___Literal[u"key",b"key",u"value",b"value"]) -> None: ...
|
||||
type___Int64MapEntry = Int64MapEntry
|
||||
|
||||
class Uint32MapEntry(google___protobuf___message___Message):
|
||||
DESCRIPTOR: google___protobuf___descriptor___Descriptor = ...
|
||||
key: builtin___int = ...
|
||||
value: builtin___int = ...
|
||||
|
||||
def __init__(self,
|
||||
*,
|
||||
key : typing___Optional[builtin___int] = None,
|
||||
value : typing___Optional[builtin___int] = None,
|
||||
) -> None: ...
|
||||
def ClearField(self, field_name: typing_extensions___Literal[u"key",b"key",u"value",b"value"]) -> None: ...
|
||||
type___Uint32MapEntry = Uint32MapEntry
|
||||
|
||||
class Uint64MapEntry(google___protobuf___message___Message):
|
||||
DESCRIPTOR: google___protobuf___descriptor___Descriptor = ...
|
||||
key: builtin___int = ...
|
||||
value: builtin___int = ...
|
||||
|
||||
def __init__(self,
|
||||
*,
|
||||
key : typing___Optional[builtin___int] = None,
|
||||
value : typing___Optional[builtin___int] = None,
|
||||
) -> None: ...
|
||||
def ClearField(self, field_name: typing_extensions___Literal[u"key",b"key",u"value",b"value"]) -> None: ...
|
||||
type___Uint64MapEntry = Uint64MapEntry
|
||||
|
||||
class StringMapEntry(google___protobuf___message___Message):
|
||||
DESCRIPTOR: google___protobuf___descriptor___Descriptor = ...
|
||||
key: typing___Text = ...
|
||||
value: builtin___int = ...
|
||||
|
||||
def __init__(self,
|
||||
*,
|
||||
key : typing___Optional[typing___Text] = None,
|
||||
value : typing___Optional[builtin___int] = None,
|
||||
) -> None: ...
|
||||
def ClearField(self, field_name: typing_extensions___Literal[u"key",b"key",u"value",b"value"]) -> None: ...
|
||||
type___StringMapEntry = StringMapEntry
|
||||
|
||||
class MapMapEntry(google___protobuf___message___Message):
|
||||
DESCRIPTOR: google___protobuf___descriptor___Descriptor = ...
|
||||
key: typing___Text = ...
|
||||
|
||||
@property
|
||||
def value(self) -> type___TestNestedMap: ...
|
||||
|
||||
def __init__(self,
|
||||
*,
|
||||
key : typing___Optional[typing___Text] = None,
|
||||
value : typing___Optional[type___TestNestedMap] = None,
|
||||
) -> None: ...
|
||||
def HasField(self, field_name: typing_extensions___Literal[u"value",b"value"]) -> builtin___bool: ...
|
||||
def ClearField(self, field_name: typing_extensions___Literal[u"key",b"key",u"value",b"value"]) -> None: ...
|
||||
type___MapMapEntry = MapMapEntry
|
||||
|
||||
|
||||
@property
|
||||
def bool_map(self) -> typing___MutableMapping[builtin___bool, builtin___int]: ...
|
||||
|
||||
@property
|
||||
def int32_map(self) -> typing___MutableMapping[builtin___int, builtin___int]: ...
|
||||
|
||||
@property
|
||||
def int64_map(self) -> typing___MutableMapping[builtin___int, builtin___int]: ...
|
||||
|
||||
@property
|
||||
def uint32_map(self) -> typing___MutableMapping[builtin___int, builtin___int]: ...
|
||||
|
||||
@property
|
||||
def uint64_map(self) -> typing___MutableMapping[builtin___int, builtin___int]: ...
|
||||
|
||||
@property
|
||||
def string_map(self) -> typing___MutableMapping[typing___Text, builtin___int]: ...
|
||||
|
||||
@property
|
||||
def map_map(self) -> typing___MutableMapping[typing___Text, type___TestNestedMap]: ...
|
||||
|
||||
def __init__(self,
|
||||
*,
|
||||
bool_map : typing___Optional[typing___Mapping[builtin___bool, builtin___int]] = None,
|
||||
int32_map : typing___Optional[typing___Mapping[builtin___int, builtin___int]] = None,
|
||||
int64_map : typing___Optional[typing___Mapping[builtin___int, builtin___int]] = None,
|
||||
uint32_map : typing___Optional[typing___Mapping[builtin___int, builtin___int]] = None,
|
||||
uint64_map : typing___Optional[typing___Mapping[builtin___int, builtin___int]] = None,
|
||||
string_map : typing___Optional[typing___Mapping[typing___Text, builtin___int]] = None,
|
||||
map_map : typing___Optional[typing___Mapping[typing___Text, type___TestNestedMap]] = None,
|
||||
) -> None: ...
|
||||
def ClearField(self, field_name: typing_extensions___Literal[u"bool_map",b"bool_map",u"int32_map",b"int32_map",u"int64_map",b"int64_map",u"map_map",b"map_map",u"string_map",b"string_map",u"uint32_map",b"uint32_map",u"uint64_map",b"uint64_map"]) -> None: ...
|
||||
type___TestNestedMap = TestNestedMap
|
||||
|
||||
class TestStringMap(google___protobuf___message___Message):
|
||||
DESCRIPTOR: google___protobuf___descriptor___Descriptor = ...
|
||||
class StringMapEntry(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[u"key",b"key",u"value",b"value"]) -> None: ...
|
||||
type___StringMapEntry = StringMapEntry
|
||||
|
||||
|
||||
@property
|
||||
def string_map(self) -> typing___MutableMapping[typing___Text, typing___Text]: ...
|
||||
|
||||
def __init__(self,
|
||||
*,
|
||||
string_map : typing___Optional[typing___Mapping[typing___Text, typing___Text]] = None,
|
||||
) -> None: ...
|
||||
def ClearField(self, field_name: typing_extensions___Literal[u"string_map",b"string_map"]) -> None: ...
|
||||
type___TestStringMap = TestStringMap
|
||||
|
||||
class TestWrapper(google___protobuf___message___Message):
|
||||
DESCRIPTOR: google___protobuf___descriptor___Descriptor = ...
|
||||
|
||||
@property
|
||||
def bool_value(self) -> google___protobuf___wrappers_pb2___BoolValue: ...
|
||||
|
||||
@property
|
||||
def int32_value(self) -> google___protobuf___wrappers_pb2___Int32Value: ...
|
||||
|
||||
@property
|
||||
def int64_value(self) -> google___protobuf___wrappers_pb2___Int64Value: ...
|
||||
|
||||
@property
|
||||
def uint32_value(self) -> google___protobuf___wrappers_pb2___UInt32Value: ...
|
||||
|
||||
@property
|
||||
def uint64_value(self) -> google___protobuf___wrappers_pb2___UInt64Value: ...
|
||||
|
||||
@property
|
||||
def float_value(self) -> google___protobuf___wrappers_pb2___FloatValue: ...
|
||||
|
||||
@property
|
||||
def double_value(self) -> google___protobuf___wrappers_pb2___DoubleValue: ...
|
||||
|
||||
@property
|
||||
def string_value(self) -> google___protobuf___wrappers_pb2___StringValue: ...
|
||||
|
||||
@property
|
||||
def bytes_value(self) -> google___protobuf___wrappers_pb2___BytesValue: ...
|
||||
|
||||
@property
|
||||
def repeated_bool_value(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[google___protobuf___wrappers_pb2___BoolValue]: ...
|
||||
|
||||
@property
|
||||
def repeated_int32_value(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[google___protobuf___wrappers_pb2___Int32Value]: ...
|
||||
|
||||
@property
|
||||
def repeated_int64_value(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[google___protobuf___wrappers_pb2___Int64Value]: ...
|
||||
|
||||
@property
|
||||
def repeated_uint32_value(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[google___protobuf___wrappers_pb2___UInt32Value]: ...
|
||||
|
||||
@property
|
||||
def repeated_uint64_value(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[google___protobuf___wrappers_pb2___UInt64Value]: ...
|
||||
|
||||
@property
|
||||
def repeated_float_value(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[google___protobuf___wrappers_pb2___FloatValue]: ...
|
||||
|
||||
@property
|
||||
def repeated_double_value(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[google___protobuf___wrappers_pb2___DoubleValue]: ...
|
||||
|
||||
@property
|
||||
def repeated_string_value(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[google___protobuf___wrappers_pb2___StringValue]: ...
|
||||
|
||||
@property
|
||||
def repeated_bytes_value(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[google___protobuf___wrappers_pb2___BytesValue]: ...
|
||||
|
||||
def __init__(self,
|
||||
*,
|
||||
bool_value : typing___Optional[google___protobuf___wrappers_pb2___BoolValue] = None,
|
||||
int32_value : typing___Optional[google___protobuf___wrappers_pb2___Int32Value] = None,
|
||||
int64_value : typing___Optional[google___protobuf___wrappers_pb2___Int64Value] = None,
|
||||
uint32_value : typing___Optional[google___protobuf___wrappers_pb2___UInt32Value] = None,
|
||||
uint64_value : typing___Optional[google___protobuf___wrappers_pb2___UInt64Value] = None,
|
||||
float_value : typing___Optional[google___protobuf___wrappers_pb2___FloatValue] = None,
|
||||
double_value : typing___Optional[google___protobuf___wrappers_pb2___DoubleValue] = None,
|
||||
string_value : typing___Optional[google___protobuf___wrappers_pb2___StringValue] = None,
|
||||
bytes_value : typing___Optional[google___protobuf___wrappers_pb2___BytesValue] = None,
|
||||
repeated_bool_value : typing___Optional[typing___Iterable[google___protobuf___wrappers_pb2___BoolValue]] = None,
|
||||
repeated_int32_value : typing___Optional[typing___Iterable[google___protobuf___wrappers_pb2___Int32Value]] = None,
|
||||
repeated_int64_value : typing___Optional[typing___Iterable[google___protobuf___wrappers_pb2___Int64Value]] = None,
|
||||
repeated_uint32_value : typing___Optional[typing___Iterable[google___protobuf___wrappers_pb2___UInt32Value]] = None,
|
||||
repeated_uint64_value : typing___Optional[typing___Iterable[google___protobuf___wrappers_pb2___UInt64Value]] = None,
|
||||
repeated_float_value : typing___Optional[typing___Iterable[google___protobuf___wrappers_pb2___FloatValue]] = None,
|
||||
repeated_double_value : typing___Optional[typing___Iterable[google___protobuf___wrappers_pb2___DoubleValue]] = None,
|
||||
repeated_string_value : typing___Optional[typing___Iterable[google___protobuf___wrappers_pb2___StringValue]] = None,
|
||||
repeated_bytes_value : typing___Optional[typing___Iterable[google___protobuf___wrappers_pb2___BytesValue]] = None,
|
||||
) -> None: ...
|
||||
def HasField(self, field_name: typing_extensions___Literal[u"bool_value",b"bool_value",u"bytes_value",b"bytes_value",u"double_value",b"double_value",u"float_value",b"float_value",u"int32_value",b"int32_value",u"int64_value",b"int64_value",u"string_value",b"string_value",u"uint32_value",b"uint32_value",u"uint64_value",b"uint64_value"]) -> builtin___bool: ...
|
||||
def ClearField(self, field_name: typing_extensions___Literal[u"bool_value",b"bool_value",u"bytes_value",b"bytes_value",u"double_value",b"double_value",u"float_value",b"float_value",u"int32_value",b"int32_value",u"int64_value",b"int64_value",u"repeated_bool_value",b"repeated_bool_value",u"repeated_bytes_value",b"repeated_bytes_value",u"repeated_double_value",b"repeated_double_value",u"repeated_float_value",b"repeated_float_value",u"repeated_int32_value",b"repeated_int32_value",u"repeated_int64_value",b"repeated_int64_value",u"repeated_string_value",b"repeated_string_value",u"repeated_uint32_value",b"repeated_uint32_value",u"repeated_uint64_value",b"repeated_uint64_value",u"string_value",b"string_value",u"uint32_value",b"uint32_value",u"uint64_value",b"uint64_value"]) -> None: ...
|
||||
type___TestWrapper = TestWrapper
|
||||
|
||||
class TestTimestamp(google___protobuf___message___Message):
|
||||
DESCRIPTOR: google___protobuf___descriptor___Descriptor = ...
|
||||
|
||||
@property
|
||||
def value(self) -> google___protobuf___timestamp_pb2___Timestamp: ...
|
||||
|
||||
@property
|
||||
def repeated_value(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[google___protobuf___timestamp_pb2___Timestamp]: ...
|
||||
|
||||
def __init__(self,
|
||||
*,
|
||||
value : typing___Optional[google___protobuf___timestamp_pb2___Timestamp] = None,
|
||||
repeated_value : typing___Optional[typing___Iterable[google___protobuf___timestamp_pb2___Timestamp]] = None,
|
||||
) -> None: ...
|
||||
def HasField(self, field_name: typing_extensions___Literal[u"value",b"value"]) -> builtin___bool: ...
|
||||
def ClearField(self, field_name: typing_extensions___Literal[u"repeated_value",b"repeated_value",u"value",b"value"]) -> None: ...
|
||||
type___TestTimestamp = TestTimestamp
|
||||
|
||||
class TestDuration(google___protobuf___message___Message):
|
||||
DESCRIPTOR: google___protobuf___descriptor___Descriptor = ...
|
||||
|
||||
@property
|
||||
def value(self) -> google___protobuf___duration_pb2___Duration: ...
|
||||
|
||||
@property
|
||||
def repeated_value(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[google___protobuf___duration_pb2___Duration]: ...
|
||||
|
||||
def __init__(self,
|
||||
*,
|
||||
value : typing___Optional[google___protobuf___duration_pb2___Duration] = None,
|
||||
repeated_value : typing___Optional[typing___Iterable[google___protobuf___duration_pb2___Duration]] = None,
|
||||
) -> None: ...
|
||||
def HasField(self, field_name: typing_extensions___Literal[u"value",b"value"]) -> builtin___bool: ...
|
||||
def ClearField(self, field_name: typing_extensions___Literal[u"repeated_value",b"repeated_value",u"value",b"value"]) -> None: ...
|
||||
type___TestDuration = TestDuration
|
||||
|
||||
class TestFieldMask(google___protobuf___message___Message):
|
||||
DESCRIPTOR: google___protobuf___descriptor___Descriptor = ...
|
||||
|
||||
@property
|
||||
def value(self) -> google___protobuf___field_mask_pb2___FieldMask: ...
|
||||
|
||||
def __init__(self,
|
||||
*,
|
||||
value : typing___Optional[google___protobuf___field_mask_pb2___FieldMask] = None,
|
||||
) -> None: ...
|
||||
def HasField(self, field_name: typing_extensions___Literal[u"value",b"value"]) -> builtin___bool: ...
|
||||
def ClearField(self, field_name: typing_extensions___Literal[u"value",b"value"]) -> None: ...
|
||||
type___TestFieldMask = TestFieldMask
|
||||
|
||||
class TestStruct(google___protobuf___message___Message):
|
||||
DESCRIPTOR: google___protobuf___descriptor___Descriptor = ...
|
||||
|
||||
@property
|
||||
def value(self) -> google___protobuf___struct_pb2___Struct: ...
|
||||
|
||||
@property
|
||||
def repeated_value(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[google___protobuf___struct_pb2___Struct]: ...
|
||||
|
||||
def __init__(self,
|
||||
*,
|
||||
value : typing___Optional[google___protobuf___struct_pb2___Struct] = None,
|
||||
repeated_value : typing___Optional[typing___Iterable[google___protobuf___struct_pb2___Struct]] = None,
|
||||
) -> None: ...
|
||||
def HasField(self, field_name: typing_extensions___Literal[u"value",b"value"]) -> builtin___bool: ...
|
||||
def ClearField(self, field_name: typing_extensions___Literal[u"repeated_value",b"repeated_value",u"value",b"value"]) -> None: ...
|
||||
type___TestStruct = TestStruct
|
||||
|
||||
class TestAny(google___protobuf___message___Message):
|
||||
DESCRIPTOR: google___protobuf___descriptor___Descriptor = ...
|
||||
|
||||
@property
|
||||
def value(self) -> google___protobuf___any_pb2___Any: ...
|
||||
|
||||
@property
|
||||
def repeated_value(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[google___protobuf___any_pb2___Any]: ...
|
||||
|
||||
def __init__(self,
|
||||
*,
|
||||
value : typing___Optional[google___protobuf___any_pb2___Any] = None,
|
||||
repeated_value : typing___Optional[typing___Iterable[google___protobuf___any_pb2___Any]] = None,
|
||||
) -> None: ...
|
||||
def HasField(self, field_name: typing_extensions___Literal[u"value",b"value"]) -> builtin___bool: ...
|
||||
def ClearField(self, field_name: typing_extensions___Literal[u"repeated_value",b"repeated_value",u"value",b"value"]) -> None: ...
|
||||
type___TestAny = TestAny
|
||||
|
||||
class TestValue(google___protobuf___message___Message):
|
||||
DESCRIPTOR: google___protobuf___descriptor___Descriptor = ...
|
||||
|
||||
@property
|
||||
def value(self) -> google___protobuf___struct_pb2___Value: ...
|
||||
|
||||
@property
|
||||
def repeated_value(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[google___protobuf___struct_pb2___Value]: ...
|
||||
|
||||
def __init__(self,
|
||||
*,
|
||||
value : typing___Optional[google___protobuf___struct_pb2___Value] = None,
|
||||
repeated_value : typing___Optional[typing___Iterable[google___protobuf___struct_pb2___Value]] = None,
|
||||
) -> None: ...
|
||||
def HasField(self, field_name: typing_extensions___Literal[u"value",b"value"]) -> builtin___bool: ...
|
||||
def ClearField(self, field_name: typing_extensions___Literal[u"repeated_value",b"repeated_value",u"value",b"value"]) -> None: ...
|
||||
type___TestValue = TestValue
|
||||
|
||||
class TestListValue(google___protobuf___message___Message):
|
||||
DESCRIPTOR: google___protobuf___descriptor___Descriptor = ...
|
||||
|
||||
@property
|
||||
def value(self) -> google___protobuf___struct_pb2___ListValue: ...
|
||||
|
||||
@property
|
||||
def repeated_value(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[google___protobuf___struct_pb2___ListValue]: ...
|
||||
|
||||
def __init__(self,
|
||||
*,
|
||||
value : typing___Optional[google___protobuf___struct_pb2___ListValue] = None,
|
||||
repeated_value : typing___Optional[typing___Iterable[google___protobuf___struct_pb2___ListValue]] = None,
|
||||
) -> None: ...
|
||||
def HasField(self, field_name: typing_extensions___Literal[u"value",b"value"]) -> builtin___bool: ...
|
||||
def ClearField(self, field_name: typing_extensions___Literal[u"repeated_value",b"repeated_value",u"value",b"value"]) -> None: ...
|
||||
type___TestListValue = TestListValue
|
||||
|
||||
class TestBoolValue(google___protobuf___message___Message):
|
||||
DESCRIPTOR: google___protobuf___descriptor___Descriptor = ...
|
||||
class BoolMapEntry(google___protobuf___message___Message):
|
||||
DESCRIPTOR: google___protobuf___descriptor___Descriptor = ...
|
||||
key: builtin___bool = ...
|
||||
value: builtin___int = ...
|
||||
|
||||
def __init__(self,
|
||||
*,
|
||||
key : typing___Optional[builtin___bool] = None,
|
||||
value : typing___Optional[builtin___int] = None,
|
||||
) -> None: ...
|
||||
def ClearField(self, field_name: typing_extensions___Literal[u"key",b"key",u"value",b"value"]) -> None: ...
|
||||
type___BoolMapEntry = BoolMapEntry
|
||||
|
||||
bool_value: builtin___bool = ...
|
||||
|
||||
@property
|
||||
def bool_map(self) -> typing___MutableMapping[builtin___bool, builtin___int]: ...
|
||||
|
||||
def __init__(self,
|
||||
*,
|
||||
bool_value : typing___Optional[builtin___bool] = None,
|
||||
bool_map : typing___Optional[typing___Mapping[builtin___bool, builtin___int]] = None,
|
||||
) -> None: ...
|
||||
def ClearField(self, field_name: typing_extensions___Literal[u"bool_map",b"bool_map",u"bool_value",b"bool_value"]) -> None: ...
|
||||
type___TestBoolValue = TestBoolValue
|
||||
|
||||
class TestCustomJsonName(google___protobuf___message___Message):
|
||||
DESCRIPTOR: google___protobuf___descriptor___Descriptor = ...
|
||||
value: builtin___int = ...
|
||||
|
||||
def __init__(self,
|
||||
*,
|
||||
value : typing___Optional[builtin___int] = None,
|
||||
) -> None: ...
|
||||
def ClearField(self, field_name: typing_extensions___Literal[u"value",b"value"]) -> None: ...
|
||||
type___TestCustomJsonName = TestCustomJsonName
|
||||
|
||||
class TestExtensions(google___protobuf___message___Message):
|
||||
DESCRIPTOR: google___protobuf___descriptor___Descriptor = ...
|
||||
|
||||
@property
|
||||
def extensions(self) -> google___protobuf___unittest_pb2___TestAllExtensions: ...
|
||||
|
||||
def __init__(self,
|
||||
*,
|
||||
extensions : typing___Optional[google___protobuf___unittest_pb2___TestAllExtensions] = None,
|
||||
) -> None: ...
|
||||
def HasField(self, field_name: typing_extensions___Literal[u"extensions",b"extensions"]) -> builtin___bool: ...
|
||||
def ClearField(self, field_name: typing_extensions___Literal[u"extensions",b"extensions"]) -> None: ...
|
||||
type___TestExtensions = TestExtensions
|
||||
|
||||
class TestEnumValue(google___protobuf___message___Message):
|
||||
DESCRIPTOR: google___protobuf___descriptor___Descriptor = ...
|
||||
enum_value1: type___EnumTypeValue = ...
|
||||
enum_value2: type___EnumTypeValue = ...
|
||||
enum_value3: type___EnumTypeValue = ...
|
||||
|
||||
def __init__(self,
|
||||
*,
|
||||
enum_value1 : typing___Optional[type___EnumTypeValue] = None,
|
||||
enum_value2 : typing___Optional[type___EnumTypeValue] = None,
|
||||
enum_value3 : typing___Optional[type___EnumTypeValue] = None,
|
||||
) -> None: ...
|
||||
def ClearField(self, field_name: typing_extensions___Literal[u"enum_value1",b"enum_value1",u"enum_value2",b"enum_value2",u"enum_value3",b"enum_value3"]) -> None: ...
|
||||
type___TestEnumValue = TestEnumValue
|
||||
@@ -1,5 +1,7 @@
|
||||
# @generated by generate_proto_mypy_stubs.py. Do not edit!
|
||||
import sys
|
||||
"""
|
||||
@generated by mypy-protobuf. Do not edit manually!
|
||||
isort:skip_file
|
||||
"""
|
||||
from google.protobuf.descriptor import (
|
||||
Descriptor as google___protobuf___descriptor___Descriptor,
|
||||
FileDescriptor as google___protobuf___descriptor___FileDescriptor,
|
||||
|
||||
Reference in New Issue
Block a user