From ceafd47428e4b496884b9f81944b417ede958fea Mon Sep 17 00:00:00 2001 From: Nipunn Koorapati Date: Thu, 8 Jul 2021 21:48:52 -0700 Subject: [PATCH 1/2] Update proto stubs with latest mypy-protobuf --- scripts/generate_proto_stubs.sh | 9 +- stubs/protobuf/@tests/stubtest_allowlist.txt | 12 +- stubs/protobuf/METADATA.toml | 2 +- stubs/protobuf/google/protobuf/any_pb2.pyi | 58 +- stubs/protobuf/google/protobuf/api_pb2.pyi | 160 +-- .../google/protobuf/compiler/plugin_pb2.pyi | 195 ++- .../google/protobuf/descriptor_pb2.pyi | 1199 +++++++++-------- .../protobuf/google/protobuf/duration_pb2.pyi | 52 +- stubs/protobuf/google/protobuf/empty_pb2.pyi | 19 +- .../google/protobuf/field_mask_pb2.pyi | 55 +- .../google/protobuf/source_context_pb2.pyi | 44 +- stubs/protobuf/google/protobuf/struct_pb2.pyi | 170 +-- .../google/protobuf/timestamp_pb2.pyi | 52 +- stubs/protobuf/google/protobuf/type_pb2.pyi | 385 +++--- .../protobuf/google/protobuf/wrappers_pb2.pyi | 148 +- 15 files changed, 1242 insertions(+), 1318 deletions(-) diff --git a/scripts/generate_proto_stubs.sh b/scripts/generate_proto_stubs.sh index fb49cd538446..b3cfaac3263d 100755 --- a/scripts/generate_proto_stubs.sh +++ b/scripts/generate_proto_stubs.sh @@ -9,12 +9,13 @@ # followed by committing the changes to typeshed # # Update these two variables when rerunning script -PROTOBUF_VERSION=3.14.0 -MYPY_PROTOBUF_VERSION=v1.24 +PROTOBUF_VERSION=3.17.3 +MYPY_PROTOBUF_VERSION=v2.6 set -ex if uname -a | grep Darwin; then + # brew install coreutils wget PLAT=osx else PLAT=linux @@ -43,10 +44,10 @@ PYTHON_PROTOBUF_DIR=protobuf-$PROTOBUF_VERSION VENV=venv python3 -m venv $VENV source $VENV/bin/activate -pip install -r requirements-tests-py3.txt # for black and isort +pip install -r $REPO_ROOT/requirements-tests-py3.txt # for black and isort # Install mypy-protobuf -pip install git+https://github.com/dropbox/mypy-protobuf@${MYPY_PROTOBUF_VERSION}#subdirectory=python +pip install git+https://github.com/dropbox/mypy-protobuf@${MYPY_PROTOBUF_VERSION} # Remove existing pyi find $REPO_ROOT/stubs/protobuf/ -name "*_pb2.pyi" -delete diff --git a/stubs/protobuf/@tests/stubtest_allowlist.txt b/stubs/protobuf/@tests/stubtest_allowlist.txt index 8993a94138dd..5198aa95852e 100644 --- a/stubs/protobuf/@tests/stubtest_allowlist.txt +++ b/stubs/protobuf/@tests/stubtest_allowlist.txt @@ -7,7 +7,6 @@ google.protobuf.compiler.plugin_pb2.CodeGeneratorRequest.__init__ google.protobuf.compiler.plugin_pb2.CodeGeneratorResponse.FEATURE_NONE google.protobuf.compiler.plugin_pb2.CodeGeneratorResponse.FEATURE_PROTO3_OPTIONAL google.protobuf.compiler.plugin_pb2.CodeGeneratorResponse.Feature -google.protobuf.compiler.plugin_pb2.CodeGeneratorResponse.FeatureValue google.protobuf.compiler.plugin_pb2.CodeGeneratorResponse.File.__init__ google.protobuf.compiler.plugin_pb2.CodeGeneratorResponse._Feature google.protobuf.compiler.plugin_pb2.CodeGeneratorResponse.__init__ @@ -30,7 +29,6 @@ google.protobuf.descriptor_pb2.FieldDescriptorProto.LABEL_OPTIONAL google.protobuf.descriptor_pb2.FieldDescriptorProto.LABEL_REPEATED google.protobuf.descriptor_pb2.FieldDescriptorProto.LABEL_REQUIRED google.protobuf.descriptor_pb2.FieldDescriptorProto.Label -google.protobuf.descriptor_pb2.FieldDescriptorProto.LabelValue google.protobuf.descriptor_pb2.FieldDescriptorProto.TYPE_BOOL google.protobuf.descriptor_pb2.FieldDescriptorProto.TYPE_BYTES google.protobuf.descriptor_pb2.FieldDescriptorProto.TYPE_DOUBLE @@ -50,15 +48,12 @@ google.protobuf.descriptor_pb2.FieldDescriptorProto.TYPE_STRING google.protobuf.descriptor_pb2.FieldDescriptorProto.TYPE_UINT32 google.protobuf.descriptor_pb2.FieldDescriptorProto.TYPE_UINT64 google.protobuf.descriptor_pb2.FieldDescriptorProto.Type -google.protobuf.descriptor_pb2.FieldDescriptorProto.TypeValue google.protobuf.descriptor_pb2.FieldDescriptorProto._Label google.protobuf.descriptor_pb2.FieldDescriptorProto._Type google.protobuf.descriptor_pb2.FieldDescriptorProto.__init__ google.protobuf.descriptor_pb2.FieldOptions.CORD google.protobuf.descriptor_pb2.FieldOptions.CType -google.protobuf.descriptor_pb2.FieldOptions.CTypeValue google.protobuf.descriptor_pb2.FieldOptions.JSType -google.protobuf.descriptor_pb2.FieldOptions.JSTypeValue google.protobuf.descriptor_pb2.FieldOptions.JS_NORMAL google.protobuf.descriptor_pb2.FieldOptions.JS_NUMBER google.protobuf.descriptor_pb2.FieldOptions.JS_STRING @@ -72,7 +67,6 @@ google.protobuf.descriptor_pb2.FileDescriptorSet.__init__ google.protobuf.descriptor_pb2.FileOptions.CODE_SIZE google.protobuf.descriptor_pb2.FileOptions.LITE_RUNTIME google.protobuf.descriptor_pb2.FileOptions.OptimizeMode -google.protobuf.descriptor_pb2.FileOptions.OptimizeModeValue google.protobuf.descriptor_pb2.FileOptions.SPEED google.protobuf.descriptor_pb2.FileOptions._OptimizeMode google.protobuf.descriptor_pb2.FileOptions.__init__ @@ -83,7 +77,6 @@ google.protobuf.descriptor_pb2.MethodDescriptorProto.__init__ google.protobuf.descriptor_pb2.MethodOptions.IDEMPOTENCY_UNKNOWN google.protobuf.descriptor_pb2.MethodOptions.IDEMPOTENT google.protobuf.descriptor_pb2.MethodOptions.IdempotencyLevel -google.protobuf.descriptor_pb2.MethodOptions.IdempotencyLevelValue google.protobuf.descriptor_pb2.MethodOptions.NO_SIDE_EFFECTS google.protobuf.descriptor_pb2.MethodOptions._IdempotencyLevel google.protobuf.descriptor_pb2.MethodOptions.__init__ @@ -127,7 +120,7 @@ google.protobuf.service.Service.GetDescriptor google.protobuf.source_context_pb2.SourceContext.__init__ google.protobuf.struct_pb2.ListValue.__init__ google.protobuf.struct_pb2.NULL_VALUE -google.protobuf.struct_pb2.NullValueValue +google.protobuf.struct_pb2.NullValue google.protobuf.struct_pb2.Struct.FieldsEntry.__init__ google.protobuf.struct_pb2.Struct.__init__ google.protobuf.struct_pb2.Value.__init__ @@ -140,9 +133,7 @@ google.protobuf.type_pb2.Field.CARDINALITY_REPEATED google.protobuf.type_pb2.Field.CARDINALITY_REQUIRED google.protobuf.type_pb2.Field.CARDINALITY_UNKNOWN google.protobuf.type_pb2.Field.Cardinality -google.protobuf.type_pb2.Field.CardinalityValue google.protobuf.type_pb2.Field.Kind -google.protobuf.type_pb2.Field.KindValue google.protobuf.type_pb2.Field.TYPE_BOOL google.protobuf.type_pb2.Field.TYPE_BYTES google.protobuf.type_pb2.Field.TYPE_DOUBLE @@ -169,7 +160,6 @@ google.protobuf.type_pb2.Option.__init__ google.protobuf.type_pb2.SYNTAX_PROTO2 google.protobuf.type_pb2.SYNTAX_PROTO3 google.protobuf.type_pb2.Syntax -google.protobuf.type_pb2.SyntaxValue google.protobuf.type_pb2.Type.__init__ google.protobuf.wrappers_pb2.BoolValue.__init__ google.protobuf.wrappers_pb2.BytesValue.__init__ diff --git a/stubs/protobuf/METADATA.toml b/stubs/protobuf/METADATA.toml index c5a20fd36fc5..88eaad7286b7 100644 --- a/stubs/protobuf/METADATA.toml +++ b/stubs/protobuf/METADATA.toml @@ -1,3 +1,3 @@ -version = "0.1" +version = "3.17" python2 = true requires = ["types-futures"] diff --git a/stubs/protobuf/google/protobuf/any_pb2.pyi b/stubs/protobuf/google/protobuf/any_pb2.pyi index f0e70a92589a..984fc2d07eaf 100644 --- a/stubs/protobuf/google/protobuf/any_pb2.pyi +++ b/stubs/protobuf/google/protobuf/any_pb2.pyi @@ -2,46 +2,26 @@ @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 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 Any(google___protobuf___message___Message, google___protobuf___internal___well_known_types___Any): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - type_url: typing___Text = ... - value: builtin___bytes = ... +import builtins +import google.protobuf.descriptor +import google.protobuf.internal.well_known_types +import google.protobuf.message +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +class Any(google.protobuf.message.Message, google.protobuf.internal.well_known_types.Any): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + TYPE_URL_FIELD_NUMBER: builtins.int + VALUE_FIELD_NUMBER: builtins.int + type_url: typing.Text = ... + value: builtins.bytes = ... def __init__(self, *, - type_url : typing___Optional[typing___Text] = ..., - value : typing___Optional[builtin___bytes] = ..., + type_url : typing.Text = ..., + value : builtins.bytes = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions___Literal[u"type_url",b"type_url",u"value",b"value"]) -> None: ... -type___Any = Any + def ClearField(self, field_name: typing_extensions.Literal[u"type_url",b"type_url",u"value",b"value"]) -> None: ... +global___Any = Any diff --git a/stubs/protobuf/google/protobuf/api_pb2.pyi b/stubs/protobuf/google/protobuf/api_pb2.pyi index bbbdbb59e6aa..c55a2220c9df 100644 --- a/stubs/protobuf/google/protobuf/api_pb2.pyi +++ b/stubs/protobuf/google/protobuf/api_pb2.pyi @@ -2,113 +2,99 @@ @generated by mypy-protobuf. Do not edit manually! isort:skip_file """ -from google.protobuf.descriptor import ( - Descriptor as google___protobuf___descriptor___Descriptor, - FileDescriptor as google___protobuf___descriptor___FileDescriptor, -) - -from google.protobuf.internal.containers import ( - RepeatedCompositeFieldContainer as google___protobuf___internal___containers___RepeatedCompositeFieldContainer, -) - -from google.protobuf.message import ( - Message as google___protobuf___message___Message, -) - -from google.protobuf.source_context_pb2 import ( - SourceContext as google___protobuf___source_context_pb2___SourceContext, -) - -from google.protobuf.type_pb2 import ( - Option as google___protobuf___type_pb2___Option, - SyntaxValue as google___protobuf___type_pb2___SyntaxValue, -) - -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 Api(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - name: typing___Text = ... - version: typing___Text = ... - syntax: google___protobuf___type_pb2___SyntaxValue = ... +import builtins +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.message +import google.protobuf.source_context_pb2 +import google.protobuf.type_pb2 +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +class Api(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + NAME_FIELD_NUMBER: builtins.int + METHODS_FIELD_NUMBER: builtins.int + OPTIONS_FIELD_NUMBER: builtins.int + VERSION_FIELD_NUMBER: builtins.int + SOURCE_CONTEXT_FIELD_NUMBER: builtins.int + MIXINS_FIELD_NUMBER: builtins.int + SYNTAX_FIELD_NUMBER: builtins.int + name: typing.Text = ... + version: typing.Text = ... + syntax: google.protobuf.type_pb2.Syntax.V = ... @property - def methods(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[type___Method]: ... + def methods(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Method]: ... @property - def options(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[google___protobuf___type_pb2___Option]: ... + def options(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[google.protobuf.type_pb2.Option]: ... @property - def source_context(self) -> google___protobuf___source_context_pb2___SourceContext: ... + def source_context(self) -> google.protobuf.source_context_pb2.SourceContext: ... @property - def mixins(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[type___Mixin]: ... + def mixins(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Mixin]: ... def __init__(self, *, - name : typing___Optional[typing___Text] = ..., - methods : typing___Optional[typing___Iterable[type___Method]] = ..., - options : typing___Optional[typing___Iterable[google___protobuf___type_pb2___Option]] = ..., - version : typing___Optional[typing___Text] = ..., - source_context : typing___Optional[google___protobuf___source_context_pb2___SourceContext] = ..., - mixins : typing___Optional[typing___Iterable[type___Mixin]] = ..., - syntax : typing___Optional[google___protobuf___type_pb2___SyntaxValue] = ..., + name : typing.Text = ..., + methods : typing.Optional[typing.Iterable[global___Method]] = ..., + options : typing.Optional[typing.Iterable[google.protobuf.type_pb2.Option]] = ..., + version : typing.Text = ..., + source_context : typing.Optional[google.protobuf.source_context_pb2.SourceContext] = ..., + mixins : typing.Optional[typing.Iterable[global___Mixin]] = ..., + syntax : google.protobuf.type_pb2.Syntax.V = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions___Literal[u"source_context",b"source_context"]) -> builtin___bool: ... - def ClearField(self, field_name: typing_extensions___Literal[u"methods",b"methods",u"mixins",b"mixins",u"name",b"name",u"options",b"options",u"source_context",b"source_context",u"syntax",b"syntax",u"version",b"version"]) -> None: ... -type___Api = Api - -class Method(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - name: typing___Text = ... - request_type_url: typing___Text = ... - request_streaming: builtin___bool = ... - response_type_url: typing___Text = ... - response_streaming: builtin___bool = ... - syntax: google___protobuf___type_pb2___SyntaxValue = ... + def HasField(self, field_name: typing_extensions.Literal[u"source_context",b"source_context"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"methods",b"methods",u"mixins",b"mixins",u"name",b"name",u"options",b"options",u"source_context",b"source_context",u"syntax",b"syntax",u"version",b"version"]) -> None: ... +global___Api = Api + +class Method(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + NAME_FIELD_NUMBER: builtins.int + REQUEST_TYPE_URL_FIELD_NUMBER: builtins.int + REQUEST_STREAMING_FIELD_NUMBER: builtins.int + RESPONSE_TYPE_URL_FIELD_NUMBER: builtins.int + RESPONSE_STREAMING_FIELD_NUMBER: builtins.int + OPTIONS_FIELD_NUMBER: builtins.int + SYNTAX_FIELD_NUMBER: builtins.int + name: typing.Text = ... + request_type_url: typing.Text = ... + request_streaming: builtins.bool = ... + response_type_url: typing.Text = ... + response_streaming: builtins.bool = ... + syntax: google.protobuf.type_pb2.Syntax.V = ... @property - def options(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[google___protobuf___type_pb2___Option]: ... + def options(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[google.protobuf.type_pb2.Option]: ... def __init__(self, *, - name : typing___Optional[typing___Text] = ..., - request_type_url : typing___Optional[typing___Text] = ..., - request_streaming : typing___Optional[builtin___bool] = ..., - response_type_url : typing___Optional[typing___Text] = ..., - response_streaming : typing___Optional[builtin___bool] = ..., - options : typing___Optional[typing___Iterable[google___protobuf___type_pb2___Option]] = ..., - syntax : typing___Optional[google___protobuf___type_pb2___SyntaxValue] = ..., + name : typing.Text = ..., + request_type_url : typing.Text = ..., + request_streaming : builtins.bool = ..., + response_type_url : typing.Text = ..., + response_streaming : builtins.bool = ..., + options : typing.Optional[typing.Iterable[google.protobuf.type_pb2.Option]] = ..., + syntax : google.protobuf.type_pb2.Syntax.V = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions___Literal[u"name",b"name",u"options",b"options",u"request_streaming",b"request_streaming",u"request_type_url",b"request_type_url",u"response_streaming",b"response_streaming",u"response_type_url",b"response_type_url",u"syntax",b"syntax"]) -> None: ... -type___Method = Method + def ClearField(self, field_name: typing_extensions.Literal[u"name",b"name",u"options",b"options",u"request_streaming",b"request_streaming",u"request_type_url",b"request_type_url",u"response_streaming",b"response_streaming",u"response_type_url",b"response_type_url",u"syntax",b"syntax"]) -> None: ... +global___Method = Method -class Mixin(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - name: typing___Text = ... - root: typing___Text = ... +class Mixin(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + NAME_FIELD_NUMBER: builtins.int + ROOT_FIELD_NUMBER: builtins.int + name: typing.Text = ... + root: typing.Text = ... def __init__(self, *, - name : typing___Optional[typing___Text] = ..., - root : typing___Optional[typing___Text] = ..., + name : typing.Text = ..., + root : typing.Text = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions___Literal[u"name",b"name",u"root",b"root"]) -> None: ... -type___Mixin = Mixin + def ClearField(self, field_name: typing_extensions.Literal[u"name",b"name",u"root",b"root"]) -> None: ... +global___Mixin = Mixin diff --git a/stubs/protobuf/google/protobuf/compiler/plugin_pb2.pyi b/stubs/protobuf/google/protobuf/compiler/plugin_pb2.pyi index d865d6f48c8b..2a0cd00862b4 100644 --- a/stubs/protobuf/google/protobuf/compiler/plugin_pb2.pyi +++ b/stubs/protobuf/google/protobuf/compiler/plugin_pb2.pyi @@ -2,135 +2,118 @@ @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, - FileDescriptor as google___protobuf___descriptor___FileDescriptor, -) - -from google.protobuf.descriptor_pb2 import ( - FileDescriptorProto as google___protobuf___descriptor_pb2___FileDescriptorProto, - GeneratedCodeInfo as google___protobuf___descriptor_pb2___GeneratedCodeInfo, -) - -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, - 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 Version(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - major: builtin___int = ... - minor: builtin___int = ... - patch: builtin___int = ... - suffix: typing___Text = ... +import builtins +import google.protobuf.descriptor +import google.protobuf.descriptor_pb2 +import google.protobuf.internal.containers +import google.protobuf.internal.enum_type_wrapper +import google.protobuf.message +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +class Version(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + MAJOR_FIELD_NUMBER: builtins.int + MINOR_FIELD_NUMBER: builtins.int + PATCH_FIELD_NUMBER: builtins.int + SUFFIX_FIELD_NUMBER: builtins.int + major: builtins.int = ... + minor: builtins.int = ... + patch: builtins.int = ... + suffix: typing.Text = ... def __init__(self, *, - major : typing___Optional[builtin___int] = ..., - minor : typing___Optional[builtin___int] = ..., - patch : typing___Optional[builtin___int] = ..., - suffix : typing___Optional[typing___Text] = ..., + major : typing.Optional[builtins.int] = ..., + minor : typing.Optional[builtins.int] = ..., + patch : typing.Optional[builtins.int] = ..., + suffix : typing.Optional[typing.Text] = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions___Literal[u"major",b"major",u"minor",b"minor",u"patch",b"patch",u"suffix",b"suffix"]) -> builtin___bool: ... - def ClearField(self, field_name: typing_extensions___Literal[u"major",b"major",u"minor",b"minor",u"patch",b"patch",u"suffix",b"suffix"]) -> None: ... -type___Version = Version + def HasField(self, field_name: typing_extensions.Literal[u"major",b"major",u"minor",b"minor",u"patch",b"patch",u"suffix",b"suffix"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"major",b"major",u"minor",b"minor",u"patch",b"patch",u"suffix",b"suffix"]) -> None: ... +global___Version = Version -class CodeGeneratorRequest(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - file_to_generate: google___protobuf___internal___containers___RepeatedScalarFieldContainer[typing___Text] = ... - parameter: typing___Text = ... +class CodeGeneratorRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + FILE_TO_GENERATE_FIELD_NUMBER: builtins.int + PARAMETER_FIELD_NUMBER: builtins.int + PROTO_FILE_FIELD_NUMBER: builtins.int + COMPILER_VERSION_FIELD_NUMBER: builtins.int @property - def proto_file(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[google___protobuf___descriptor_pb2___FileDescriptorProto]: ... + def file_to_generate(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[typing.Text]: ... + parameter: typing.Text = ... @property - def compiler_version(self) -> type___Version: ... + def proto_file(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[google.protobuf.descriptor_pb2.FileDescriptorProto]: ... + + @property + def compiler_version(self) -> global___Version: ... def __init__(self, *, - file_to_generate : typing___Optional[typing___Iterable[typing___Text]] = ..., - parameter : typing___Optional[typing___Text] = ..., - proto_file : typing___Optional[typing___Iterable[google___protobuf___descriptor_pb2___FileDescriptorProto]] = ..., - compiler_version : typing___Optional[type___Version] = ..., + file_to_generate : typing.Optional[typing.Iterable[typing.Text]] = ..., + parameter : typing.Optional[typing.Text] = ..., + proto_file : typing.Optional[typing.Iterable[google.protobuf.descriptor_pb2.FileDescriptorProto]] = ..., + compiler_version : typing.Optional[global___Version] = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions___Literal[u"compiler_version",b"compiler_version",u"parameter",b"parameter"]) -> builtin___bool: ... - def ClearField(self, field_name: typing_extensions___Literal[u"compiler_version",b"compiler_version",u"file_to_generate",b"file_to_generate",u"parameter",b"parameter",u"proto_file",b"proto_file"]) -> None: ... -type___CodeGeneratorRequest = CodeGeneratorRequest - -class CodeGeneratorResponse(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - FeatureValue = typing___NewType('FeatureValue', builtin___int) - type___FeatureValue = FeatureValue - Feature: _Feature - class _Feature(google___protobuf___internal___enum_type_wrapper____EnumTypeWrapper[CodeGeneratorResponse.FeatureValue]): - DESCRIPTOR: google___protobuf___descriptor___EnumDescriptor = ... - FEATURE_NONE = typing___cast(CodeGeneratorResponse.FeatureValue, 0) - FEATURE_PROTO3_OPTIONAL = typing___cast(CodeGeneratorResponse.FeatureValue, 1) - FEATURE_NONE = typing___cast(CodeGeneratorResponse.FeatureValue, 0) - FEATURE_PROTO3_OPTIONAL = typing___cast(CodeGeneratorResponse.FeatureValue, 1) - - class File(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - name: typing___Text = ... - insertion_point: typing___Text = ... - content: typing___Text = ... + def HasField(self, field_name: typing_extensions.Literal[u"compiler_version",b"compiler_version",u"parameter",b"parameter"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"compiler_version",b"compiler_version",u"file_to_generate",b"file_to_generate",u"parameter",b"parameter",u"proto_file",b"proto_file"]) -> None: ... +global___CodeGeneratorRequest = CodeGeneratorRequest + +class CodeGeneratorResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + class Feature(metaclass=_Feature): + V = typing.NewType('V', builtins.int) + + FEATURE_NONE = CodeGeneratorResponse.Feature.V(0) + FEATURE_PROTO3_OPTIONAL = CodeGeneratorResponse.Feature.V(1) + + class _Feature(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[Feature.V], builtins.type): # type: ignore + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor = ... + FEATURE_NONE = CodeGeneratorResponse.Feature.V(0) + FEATURE_PROTO3_OPTIONAL = CodeGeneratorResponse.Feature.V(1) + + class File(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + NAME_FIELD_NUMBER: builtins.int + INSERTION_POINT_FIELD_NUMBER: builtins.int + CONTENT_FIELD_NUMBER: builtins.int + GENERATED_CODE_INFO_FIELD_NUMBER: builtins.int + name: typing.Text = ... + insertion_point: typing.Text = ... + content: typing.Text = ... @property - def generated_code_info(self) -> google___protobuf___descriptor_pb2___GeneratedCodeInfo: ... + def generated_code_info(self) -> google.protobuf.descriptor_pb2.GeneratedCodeInfo: ... def __init__(self, *, - name : typing___Optional[typing___Text] = ..., - insertion_point : typing___Optional[typing___Text] = ..., - content : typing___Optional[typing___Text] = ..., - generated_code_info : typing___Optional[google___protobuf___descriptor_pb2___GeneratedCodeInfo] = ..., + name : typing.Optional[typing.Text] = ..., + insertion_point : typing.Optional[typing.Text] = ..., + content : typing.Optional[typing.Text] = ..., + generated_code_info : typing.Optional[google.protobuf.descriptor_pb2.GeneratedCodeInfo] = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions___Literal[u"content",b"content",u"generated_code_info",b"generated_code_info",u"insertion_point",b"insertion_point",u"name",b"name"]) -> builtin___bool: ... - def ClearField(self, field_name: typing_extensions___Literal[u"content",b"content",u"generated_code_info",b"generated_code_info",u"insertion_point",b"insertion_point",u"name",b"name"]) -> None: ... - type___File = File + def HasField(self, field_name: typing_extensions.Literal[u"content",b"content",u"generated_code_info",b"generated_code_info",u"insertion_point",b"insertion_point",u"name",b"name"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"content",b"content",u"generated_code_info",b"generated_code_info",u"insertion_point",b"insertion_point",u"name",b"name"]) -> None: ... - error: typing___Text = ... - supported_features: builtin___int = ... + ERROR_FIELD_NUMBER: builtins.int + SUPPORTED_FEATURES_FIELD_NUMBER: builtins.int + FILE_FIELD_NUMBER: builtins.int + error: typing.Text = ... + supported_features: builtins.int = ... @property - def file(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[type___CodeGeneratorResponse.File]: ... + def file(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___CodeGeneratorResponse.File]: ... def __init__(self, *, - error : typing___Optional[typing___Text] = ..., - supported_features : typing___Optional[builtin___int] = ..., - file : typing___Optional[typing___Iterable[type___CodeGeneratorResponse.File]] = ..., + error : typing.Optional[typing.Text] = ..., + supported_features : typing.Optional[builtins.int] = ..., + file : typing.Optional[typing.Iterable[global___CodeGeneratorResponse.File]] = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions___Literal[u"error",b"error",u"supported_features",b"supported_features"]) -> builtin___bool: ... - def ClearField(self, field_name: typing_extensions___Literal[u"error",b"error",u"file",b"file",u"supported_features",b"supported_features"]) -> None: ... -type___CodeGeneratorResponse = CodeGeneratorResponse + def HasField(self, field_name: typing_extensions.Literal[u"error",b"error",u"supported_features",b"supported_features"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"error",b"error",u"file",b"file",u"supported_features",b"supported_features"]) -> None: ... +global___CodeGeneratorResponse = CodeGeneratorResponse diff --git a/stubs/protobuf/google/protobuf/descriptor_pb2.pyi b/stubs/protobuf/google/protobuf/descriptor_pb2.pyi index 8fa7db815b2e..c37aac1ab2fa 100644 --- a/stubs/protobuf/google/protobuf/descriptor_pb2.pyi +++ b/stubs/protobuf/google/protobuf/descriptor_pb2.pyi @@ -2,733 +2,846 @@ @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, - FileDescriptor as google___protobuf___descriptor___FileDescriptor, -) +import builtins +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.internal.enum_type_wrapper +import google.protobuf.message +import typing +import typing_extensions -from google.protobuf.internal.containers import ( - RepeatedCompositeFieldContainer as google___protobuf___internal___containers___RepeatedCompositeFieldContainer, - RepeatedScalarFieldContainer as google___protobuf___internal___containers___RepeatedScalarFieldContainer, -) +DESCRIPTOR: 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 import ( - Iterable as typing___Iterable, - 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 FileDescriptorSet(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... +class FileDescriptorSet(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + FILE_FIELD_NUMBER: builtins.int @property - def file(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[type___FileDescriptorProto]: ... + def file(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___FileDescriptorProto]: ... def __init__(self, *, - file : typing___Optional[typing___Iterable[type___FileDescriptorProto]] = ..., + file : typing.Optional[typing.Iterable[global___FileDescriptorProto]] = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions___Literal[u"file",b"file"]) -> None: ... -type___FileDescriptorSet = FileDescriptorSet + def ClearField(self, field_name: typing_extensions.Literal[u"file",b"file"]) -> None: ... +global___FileDescriptorSet = FileDescriptorSet -class FileDescriptorProto(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - name: typing___Text = ... - package: typing___Text = ... - dependency: google___protobuf___internal___containers___RepeatedScalarFieldContainer[typing___Text] = ... - public_dependency: google___protobuf___internal___containers___RepeatedScalarFieldContainer[builtin___int] = ... - weak_dependency: google___protobuf___internal___containers___RepeatedScalarFieldContainer[builtin___int] = ... - syntax: typing___Text = ... +class FileDescriptorProto(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + NAME_FIELD_NUMBER: builtins.int + PACKAGE_FIELD_NUMBER: builtins.int + DEPENDENCY_FIELD_NUMBER: builtins.int + PUBLIC_DEPENDENCY_FIELD_NUMBER: builtins.int + WEAK_DEPENDENCY_FIELD_NUMBER: builtins.int + MESSAGE_TYPE_FIELD_NUMBER: builtins.int + ENUM_TYPE_FIELD_NUMBER: builtins.int + SERVICE_FIELD_NUMBER: builtins.int + EXTENSION_FIELD_NUMBER: builtins.int + OPTIONS_FIELD_NUMBER: builtins.int + SOURCE_CODE_INFO_FIELD_NUMBER: builtins.int + SYNTAX_FIELD_NUMBER: builtins.int + name: typing.Text = ... + package: typing.Text = ... @property - def message_type(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[type___DescriptorProto]: ... + def dependency(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[typing.Text]: ... @property - def enum_type(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[type___EnumDescriptorProto]: ... + def public_dependency(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.int]: ... @property - def service(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[type___ServiceDescriptorProto]: ... + def weak_dependency(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.int]: ... + syntax: typing.Text = ... @property - def extension(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[type___FieldDescriptorProto]: ... + def message_type(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___DescriptorProto]: ... @property - def options(self) -> type___FileOptions: ... + def enum_type(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___EnumDescriptorProto]: ... @property - def source_code_info(self) -> type___SourceCodeInfo: ... + def service(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ServiceDescriptorProto]: ... + + @property + def extension(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___FieldDescriptorProto]: ... + + @property + def options(self) -> global___FileOptions: ... + + @property + def source_code_info(self) -> global___SourceCodeInfo: ... def __init__(self, *, - name : typing___Optional[typing___Text] = ..., - package : typing___Optional[typing___Text] = ..., - dependency : typing___Optional[typing___Iterable[typing___Text]] = ..., - public_dependency : typing___Optional[typing___Iterable[builtin___int]] = ..., - weak_dependency : typing___Optional[typing___Iterable[builtin___int]] = ..., - message_type : typing___Optional[typing___Iterable[type___DescriptorProto]] = ..., - enum_type : typing___Optional[typing___Iterable[type___EnumDescriptorProto]] = ..., - service : typing___Optional[typing___Iterable[type___ServiceDescriptorProto]] = ..., - extension : typing___Optional[typing___Iterable[type___FieldDescriptorProto]] = ..., - options : typing___Optional[type___FileOptions] = ..., - source_code_info : typing___Optional[type___SourceCodeInfo] = ..., - syntax : typing___Optional[typing___Text] = ..., + name : typing.Optional[typing.Text] = ..., + package : typing.Optional[typing.Text] = ..., + dependency : typing.Optional[typing.Iterable[typing.Text]] = ..., + public_dependency : typing.Optional[typing.Iterable[builtins.int]] = ..., + weak_dependency : typing.Optional[typing.Iterable[builtins.int]] = ..., + message_type : typing.Optional[typing.Iterable[global___DescriptorProto]] = ..., + enum_type : typing.Optional[typing.Iterable[global___EnumDescriptorProto]] = ..., + service : typing.Optional[typing.Iterable[global___ServiceDescriptorProto]] = ..., + extension : typing.Optional[typing.Iterable[global___FieldDescriptorProto]] = ..., + options : typing.Optional[global___FileOptions] = ..., + source_code_info : typing.Optional[global___SourceCodeInfo] = ..., + syntax : typing.Optional[typing.Text] = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions___Literal[u"name",b"name",u"options",b"options",u"package",b"package",u"source_code_info",b"source_code_info",u"syntax",b"syntax"]) -> builtin___bool: ... - def ClearField(self, field_name: typing_extensions___Literal[u"dependency",b"dependency",u"enum_type",b"enum_type",u"extension",b"extension",u"message_type",b"message_type",u"name",b"name",u"options",b"options",u"package",b"package",u"public_dependency",b"public_dependency",u"service",b"service",u"source_code_info",b"source_code_info",u"syntax",b"syntax",u"weak_dependency",b"weak_dependency"]) -> None: ... -type___FileDescriptorProto = FileDescriptorProto - -class DescriptorProto(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - class ExtensionRange(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - start: builtin___int = ... - end: builtin___int = ... + def HasField(self, field_name: typing_extensions.Literal[u"name",b"name",u"options",b"options",u"package",b"package",u"source_code_info",b"source_code_info",u"syntax",b"syntax"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"dependency",b"dependency",u"enum_type",b"enum_type",u"extension",b"extension",u"message_type",b"message_type",u"name",b"name",u"options",b"options",u"package",b"package",u"public_dependency",b"public_dependency",u"service",b"service",u"source_code_info",b"source_code_info",u"syntax",b"syntax",u"weak_dependency",b"weak_dependency"]) -> None: ... +global___FileDescriptorProto = FileDescriptorProto + +class DescriptorProto(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + class ExtensionRange(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + START_FIELD_NUMBER: builtins.int + END_FIELD_NUMBER: builtins.int + OPTIONS_FIELD_NUMBER: builtins.int + start: builtins.int = ... + end: builtins.int = ... @property - def options(self) -> type___ExtensionRangeOptions: ... + def options(self) -> global___ExtensionRangeOptions: ... def __init__(self, *, - start : typing___Optional[builtin___int] = ..., - end : typing___Optional[builtin___int] = ..., - options : typing___Optional[type___ExtensionRangeOptions] = ..., + start : typing.Optional[builtins.int] = ..., + end : typing.Optional[builtins.int] = ..., + options : typing.Optional[global___ExtensionRangeOptions] = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions___Literal[u"end",b"end",u"options",b"options",u"start",b"start"]) -> builtin___bool: ... - def ClearField(self, field_name: typing_extensions___Literal[u"end",b"end",u"options",b"options",u"start",b"start"]) -> None: ... - type___ExtensionRange = ExtensionRange + def HasField(self, field_name: typing_extensions.Literal[u"end",b"end",u"options",b"options",u"start",b"start"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"end",b"end",u"options",b"options",u"start",b"start"]) -> None: ... - class ReservedRange(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - start: builtin___int = ... - end: builtin___int = ... + class ReservedRange(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + START_FIELD_NUMBER: builtins.int + END_FIELD_NUMBER: builtins.int + start: builtins.int = ... + end: builtins.int = ... def __init__(self, *, - start : typing___Optional[builtin___int] = ..., - end : typing___Optional[builtin___int] = ..., + start : typing.Optional[builtins.int] = ..., + end : typing.Optional[builtins.int] = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions___Literal[u"end",b"end",u"start",b"start"]) -> builtin___bool: ... - def ClearField(self, field_name: typing_extensions___Literal[u"end",b"end",u"start",b"start"]) -> None: ... - type___ReservedRange = ReservedRange + def HasField(self, field_name: typing_extensions.Literal[u"end",b"end",u"start",b"start"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"end",b"end",u"start",b"start"]) -> None: ... + + NAME_FIELD_NUMBER: builtins.int + FIELD_FIELD_NUMBER: builtins.int + EXTENSION_FIELD_NUMBER: builtins.int + NESTED_TYPE_FIELD_NUMBER: builtins.int + ENUM_TYPE_FIELD_NUMBER: builtins.int + EXTENSION_RANGE_FIELD_NUMBER: builtins.int + ONEOF_DECL_FIELD_NUMBER: builtins.int + OPTIONS_FIELD_NUMBER: builtins.int + RESERVED_RANGE_FIELD_NUMBER: builtins.int + RESERVED_NAME_FIELD_NUMBER: builtins.int + name: typing.Text = ... - name: typing___Text = ... - reserved_name: google___protobuf___internal___containers___RepeatedScalarFieldContainer[typing___Text] = ... + @property + def reserved_name(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[typing.Text]: ... @property - def field(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[type___FieldDescriptorProto]: ... + def field(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___FieldDescriptorProto]: ... @property - def extension(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[type___FieldDescriptorProto]: ... + def extension(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___FieldDescriptorProto]: ... @property - def nested_type(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[type___DescriptorProto]: ... + def nested_type(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___DescriptorProto]: ... @property - def enum_type(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[type___EnumDescriptorProto]: ... + def enum_type(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___EnumDescriptorProto]: ... @property - def extension_range(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[type___DescriptorProto.ExtensionRange]: ... + def extension_range(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___DescriptorProto.ExtensionRange]: ... @property - def oneof_decl(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[type___OneofDescriptorProto]: ... + def oneof_decl(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___OneofDescriptorProto]: ... @property - def options(self) -> type___MessageOptions: ... + def options(self) -> global___MessageOptions: ... @property - def reserved_range(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[type___DescriptorProto.ReservedRange]: ... + def reserved_range(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___DescriptorProto.ReservedRange]: ... def __init__(self, *, - name : typing___Optional[typing___Text] = ..., - field : typing___Optional[typing___Iterable[type___FieldDescriptorProto]] = ..., - extension : typing___Optional[typing___Iterable[type___FieldDescriptorProto]] = ..., - nested_type : typing___Optional[typing___Iterable[type___DescriptorProto]] = ..., - enum_type : typing___Optional[typing___Iterable[type___EnumDescriptorProto]] = ..., - extension_range : typing___Optional[typing___Iterable[type___DescriptorProto.ExtensionRange]] = ..., - oneof_decl : typing___Optional[typing___Iterable[type___OneofDescriptorProto]] = ..., - options : typing___Optional[type___MessageOptions] = ..., - reserved_range : typing___Optional[typing___Iterable[type___DescriptorProto.ReservedRange]] = ..., - reserved_name : typing___Optional[typing___Iterable[typing___Text]] = ..., + name : typing.Optional[typing.Text] = ..., + field : typing.Optional[typing.Iterable[global___FieldDescriptorProto]] = ..., + extension : typing.Optional[typing.Iterable[global___FieldDescriptorProto]] = ..., + nested_type : typing.Optional[typing.Iterable[global___DescriptorProto]] = ..., + enum_type : typing.Optional[typing.Iterable[global___EnumDescriptorProto]] = ..., + extension_range : typing.Optional[typing.Iterable[global___DescriptorProto.ExtensionRange]] = ..., + oneof_decl : typing.Optional[typing.Iterable[global___OneofDescriptorProto]] = ..., + options : typing.Optional[global___MessageOptions] = ..., + reserved_range : typing.Optional[typing.Iterable[global___DescriptorProto.ReservedRange]] = ..., + reserved_name : typing.Optional[typing.Iterable[typing.Text]] = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions___Literal[u"name",b"name",u"options",b"options"]) -> builtin___bool: ... - def ClearField(self, field_name: typing_extensions___Literal[u"enum_type",b"enum_type",u"extension",b"extension",u"extension_range",b"extension_range",u"field",b"field",u"name",b"name",u"nested_type",b"nested_type",u"oneof_decl",b"oneof_decl",u"options",b"options",u"reserved_name",b"reserved_name",u"reserved_range",b"reserved_range"]) -> None: ... -type___DescriptorProto = DescriptorProto + def HasField(self, field_name: typing_extensions.Literal[u"name",b"name",u"options",b"options"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"enum_type",b"enum_type",u"extension",b"extension",u"extension_range",b"extension_range",u"field",b"field",u"name",b"name",u"nested_type",b"nested_type",u"oneof_decl",b"oneof_decl",u"options",b"options",u"reserved_name",b"reserved_name",u"reserved_range",b"reserved_range"]) -> None: ... +global___DescriptorProto = DescriptorProto -class ExtensionRangeOptions(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... +class ExtensionRangeOptions(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + UNINTERPRETED_OPTION_FIELD_NUMBER: builtins.int @property - def uninterpreted_option(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[type___UninterpretedOption]: ... + def uninterpreted_option(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___UninterpretedOption]: ... def __init__(self, *, - uninterpreted_option : typing___Optional[typing___Iterable[type___UninterpretedOption]] = ..., + uninterpreted_option : typing.Optional[typing.Iterable[global___UninterpretedOption]] = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions___Literal[u"uninterpreted_option",b"uninterpreted_option"]) -> None: ... -type___ExtensionRangeOptions = ExtensionRangeOptions - -class FieldDescriptorProto(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - TypeValue = typing___NewType('TypeValue', builtin___int) - type___TypeValue = TypeValue - Type: _Type - class _Type(google___protobuf___internal___enum_type_wrapper____EnumTypeWrapper[FieldDescriptorProto.TypeValue]): - DESCRIPTOR: google___protobuf___descriptor___EnumDescriptor = ... - TYPE_DOUBLE = typing___cast(FieldDescriptorProto.TypeValue, 1) - TYPE_FLOAT = typing___cast(FieldDescriptorProto.TypeValue, 2) - TYPE_INT64 = typing___cast(FieldDescriptorProto.TypeValue, 3) - TYPE_UINT64 = typing___cast(FieldDescriptorProto.TypeValue, 4) - TYPE_INT32 = typing___cast(FieldDescriptorProto.TypeValue, 5) - TYPE_FIXED64 = typing___cast(FieldDescriptorProto.TypeValue, 6) - TYPE_FIXED32 = typing___cast(FieldDescriptorProto.TypeValue, 7) - TYPE_BOOL = typing___cast(FieldDescriptorProto.TypeValue, 8) - TYPE_STRING = typing___cast(FieldDescriptorProto.TypeValue, 9) - TYPE_GROUP = typing___cast(FieldDescriptorProto.TypeValue, 10) - TYPE_MESSAGE = typing___cast(FieldDescriptorProto.TypeValue, 11) - TYPE_BYTES = typing___cast(FieldDescriptorProto.TypeValue, 12) - TYPE_UINT32 = typing___cast(FieldDescriptorProto.TypeValue, 13) - TYPE_ENUM = typing___cast(FieldDescriptorProto.TypeValue, 14) - TYPE_SFIXED32 = typing___cast(FieldDescriptorProto.TypeValue, 15) - TYPE_SFIXED64 = typing___cast(FieldDescriptorProto.TypeValue, 16) - TYPE_SINT32 = typing___cast(FieldDescriptorProto.TypeValue, 17) - TYPE_SINT64 = typing___cast(FieldDescriptorProto.TypeValue, 18) - TYPE_DOUBLE = typing___cast(FieldDescriptorProto.TypeValue, 1) - TYPE_FLOAT = typing___cast(FieldDescriptorProto.TypeValue, 2) - TYPE_INT64 = typing___cast(FieldDescriptorProto.TypeValue, 3) - TYPE_UINT64 = typing___cast(FieldDescriptorProto.TypeValue, 4) - TYPE_INT32 = typing___cast(FieldDescriptorProto.TypeValue, 5) - TYPE_FIXED64 = typing___cast(FieldDescriptorProto.TypeValue, 6) - TYPE_FIXED32 = typing___cast(FieldDescriptorProto.TypeValue, 7) - TYPE_BOOL = typing___cast(FieldDescriptorProto.TypeValue, 8) - TYPE_STRING = typing___cast(FieldDescriptorProto.TypeValue, 9) - TYPE_GROUP = typing___cast(FieldDescriptorProto.TypeValue, 10) - TYPE_MESSAGE = typing___cast(FieldDescriptorProto.TypeValue, 11) - TYPE_BYTES = typing___cast(FieldDescriptorProto.TypeValue, 12) - TYPE_UINT32 = typing___cast(FieldDescriptorProto.TypeValue, 13) - TYPE_ENUM = typing___cast(FieldDescriptorProto.TypeValue, 14) - TYPE_SFIXED32 = typing___cast(FieldDescriptorProto.TypeValue, 15) - TYPE_SFIXED64 = typing___cast(FieldDescriptorProto.TypeValue, 16) - TYPE_SINT32 = typing___cast(FieldDescriptorProto.TypeValue, 17) - TYPE_SINT64 = typing___cast(FieldDescriptorProto.TypeValue, 18) - - LabelValue = typing___NewType('LabelValue', builtin___int) - type___LabelValue = LabelValue - Label: _Label - class _Label(google___protobuf___internal___enum_type_wrapper____EnumTypeWrapper[FieldDescriptorProto.LabelValue]): - DESCRIPTOR: google___protobuf___descriptor___EnumDescriptor = ... - LABEL_OPTIONAL = typing___cast(FieldDescriptorProto.LabelValue, 1) - LABEL_REQUIRED = typing___cast(FieldDescriptorProto.LabelValue, 2) - LABEL_REPEATED = typing___cast(FieldDescriptorProto.LabelValue, 3) - LABEL_OPTIONAL = typing___cast(FieldDescriptorProto.LabelValue, 1) - LABEL_REQUIRED = typing___cast(FieldDescriptorProto.LabelValue, 2) - LABEL_REPEATED = typing___cast(FieldDescriptorProto.LabelValue, 3) - - name: typing___Text = ... - number: builtin___int = ... - label: type___FieldDescriptorProto.LabelValue = ... - type: type___FieldDescriptorProto.TypeValue = ... - type_name: typing___Text = ... - extendee: typing___Text = ... - default_value: typing___Text = ... - oneof_index: builtin___int = ... - json_name: typing___Text = ... - proto3_optional: builtin___bool = ... - - @property - def options(self) -> type___FieldOptions: ... + def ClearField(self, field_name: typing_extensions.Literal[u"uninterpreted_option",b"uninterpreted_option"]) -> None: ... +global___ExtensionRangeOptions = ExtensionRangeOptions + +class FieldDescriptorProto(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + class Type(metaclass=_Type): + V = typing.NewType('V', builtins.int) + + TYPE_DOUBLE = FieldDescriptorProto.Type.V(1) + TYPE_FLOAT = FieldDescriptorProto.Type.V(2) + TYPE_INT64 = FieldDescriptorProto.Type.V(3) + TYPE_UINT64 = FieldDescriptorProto.Type.V(4) + TYPE_INT32 = FieldDescriptorProto.Type.V(5) + TYPE_FIXED64 = FieldDescriptorProto.Type.V(6) + TYPE_FIXED32 = FieldDescriptorProto.Type.V(7) + TYPE_BOOL = FieldDescriptorProto.Type.V(8) + TYPE_STRING = FieldDescriptorProto.Type.V(9) + TYPE_GROUP = FieldDescriptorProto.Type.V(10) + TYPE_MESSAGE = FieldDescriptorProto.Type.V(11) + TYPE_BYTES = FieldDescriptorProto.Type.V(12) + TYPE_UINT32 = FieldDescriptorProto.Type.V(13) + TYPE_ENUM = FieldDescriptorProto.Type.V(14) + TYPE_SFIXED32 = FieldDescriptorProto.Type.V(15) + TYPE_SFIXED64 = FieldDescriptorProto.Type.V(16) + TYPE_SINT32 = FieldDescriptorProto.Type.V(17) + TYPE_SINT64 = FieldDescriptorProto.Type.V(18) + + class _Type(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[Type.V], builtins.type): # type: ignore + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor = ... + TYPE_DOUBLE = FieldDescriptorProto.Type.V(1) + TYPE_FLOAT = FieldDescriptorProto.Type.V(2) + TYPE_INT64 = FieldDescriptorProto.Type.V(3) + TYPE_UINT64 = FieldDescriptorProto.Type.V(4) + TYPE_INT32 = FieldDescriptorProto.Type.V(5) + TYPE_FIXED64 = FieldDescriptorProto.Type.V(6) + TYPE_FIXED32 = FieldDescriptorProto.Type.V(7) + TYPE_BOOL = FieldDescriptorProto.Type.V(8) + TYPE_STRING = FieldDescriptorProto.Type.V(9) + TYPE_GROUP = FieldDescriptorProto.Type.V(10) + TYPE_MESSAGE = FieldDescriptorProto.Type.V(11) + TYPE_BYTES = FieldDescriptorProto.Type.V(12) + TYPE_UINT32 = FieldDescriptorProto.Type.V(13) + TYPE_ENUM = FieldDescriptorProto.Type.V(14) + TYPE_SFIXED32 = FieldDescriptorProto.Type.V(15) + TYPE_SFIXED64 = FieldDescriptorProto.Type.V(16) + TYPE_SINT32 = FieldDescriptorProto.Type.V(17) + TYPE_SINT64 = FieldDescriptorProto.Type.V(18) + + class Label(metaclass=_Label): + V = typing.NewType('V', builtins.int) + + LABEL_OPTIONAL = FieldDescriptorProto.Label.V(1) + LABEL_REQUIRED = FieldDescriptorProto.Label.V(2) + LABEL_REPEATED = FieldDescriptorProto.Label.V(3) + + class _Label(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[Label.V], builtins.type): # type: ignore + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor = ... + LABEL_OPTIONAL = FieldDescriptorProto.Label.V(1) + LABEL_REQUIRED = FieldDescriptorProto.Label.V(2) + LABEL_REPEATED = FieldDescriptorProto.Label.V(3) + + NAME_FIELD_NUMBER: builtins.int + NUMBER_FIELD_NUMBER: builtins.int + LABEL_FIELD_NUMBER: builtins.int + TYPE_FIELD_NUMBER: builtins.int + TYPE_NAME_FIELD_NUMBER: builtins.int + EXTENDEE_FIELD_NUMBER: builtins.int + DEFAULT_VALUE_FIELD_NUMBER: builtins.int + ONEOF_INDEX_FIELD_NUMBER: builtins.int + JSON_NAME_FIELD_NUMBER: builtins.int + OPTIONS_FIELD_NUMBER: builtins.int + PROTO3_OPTIONAL_FIELD_NUMBER: builtins.int + name: typing.Text = ... + number: builtins.int = ... + label: global___FieldDescriptorProto.Label.V = ... + type: global___FieldDescriptorProto.Type.V = ... + type_name: typing.Text = ... + extendee: typing.Text = ... + default_value: typing.Text = ... + oneof_index: builtins.int = ... + json_name: typing.Text = ... + proto3_optional: builtins.bool = ... + + @property + def options(self) -> global___FieldOptions: ... def __init__(self, *, - name : typing___Optional[typing___Text] = ..., - number : typing___Optional[builtin___int] = ..., - label : typing___Optional[type___FieldDescriptorProto.LabelValue] = ..., - type : typing___Optional[type___FieldDescriptorProto.TypeValue] = ..., - type_name : typing___Optional[typing___Text] = ..., - extendee : typing___Optional[typing___Text] = ..., - default_value : typing___Optional[typing___Text] = ..., - oneof_index : typing___Optional[builtin___int] = ..., - json_name : typing___Optional[typing___Text] = ..., - options : typing___Optional[type___FieldOptions] = ..., - proto3_optional : typing___Optional[builtin___bool] = ..., + name : typing.Optional[typing.Text] = ..., + number : typing.Optional[builtins.int] = ..., + label : typing.Optional[global___FieldDescriptorProto.Label.V] = ..., + type : typing.Optional[global___FieldDescriptorProto.Type.V] = ..., + type_name : typing.Optional[typing.Text] = ..., + extendee : typing.Optional[typing.Text] = ..., + default_value : typing.Optional[typing.Text] = ..., + oneof_index : typing.Optional[builtins.int] = ..., + json_name : typing.Optional[typing.Text] = ..., + options : typing.Optional[global___FieldOptions] = ..., + proto3_optional : typing.Optional[builtins.bool] = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions___Literal[u"default_value",b"default_value",u"extendee",b"extendee",u"json_name",b"json_name",u"label",b"label",u"name",b"name",u"number",b"number",u"oneof_index",b"oneof_index",u"options",b"options",u"proto3_optional",b"proto3_optional",u"type",b"type",u"type_name",b"type_name"]) -> builtin___bool: ... - def ClearField(self, field_name: typing_extensions___Literal[u"default_value",b"default_value",u"extendee",b"extendee",u"json_name",b"json_name",u"label",b"label",u"name",b"name",u"number",b"number",u"oneof_index",b"oneof_index",u"options",b"options",u"proto3_optional",b"proto3_optional",u"type",b"type",u"type_name",b"type_name"]) -> None: ... -type___FieldDescriptorProto = FieldDescriptorProto + def HasField(self, field_name: typing_extensions.Literal[u"default_value",b"default_value",u"extendee",b"extendee",u"json_name",b"json_name",u"label",b"label",u"name",b"name",u"number",b"number",u"oneof_index",b"oneof_index",u"options",b"options",u"proto3_optional",b"proto3_optional",u"type",b"type",u"type_name",b"type_name"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"default_value",b"default_value",u"extendee",b"extendee",u"json_name",b"json_name",u"label",b"label",u"name",b"name",u"number",b"number",u"oneof_index",b"oneof_index",u"options",b"options",u"proto3_optional",b"proto3_optional",u"type",b"type",u"type_name",b"type_name"]) -> None: ... +global___FieldDescriptorProto = FieldDescriptorProto -class OneofDescriptorProto(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - name: typing___Text = ... +class OneofDescriptorProto(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + NAME_FIELD_NUMBER: builtins.int + OPTIONS_FIELD_NUMBER: builtins.int + name: typing.Text = ... @property - def options(self) -> type___OneofOptions: ... + def options(self) -> global___OneofOptions: ... def __init__(self, *, - name : typing___Optional[typing___Text] = ..., - options : typing___Optional[type___OneofOptions] = ..., + name : typing.Optional[typing.Text] = ..., + options : typing.Optional[global___OneofOptions] = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions___Literal[u"name",b"name",u"options",b"options"]) -> builtin___bool: ... - def ClearField(self, field_name: typing_extensions___Literal[u"name",b"name",u"options",b"options"]) -> None: ... -type___OneofDescriptorProto = OneofDescriptorProto - -class EnumDescriptorProto(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - class EnumReservedRange(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - start: builtin___int = ... - end: builtin___int = ... + def HasField(self, field_name: typing_extensions.Literal[u"name",b"name",u"options",b"options"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"name",b"name",u"options",b"options"]) -> None: ... +global___OneofDescriptorProto = OneofDescriptorProto + +class EnumDescriptorProto(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + class EnumReservedRange(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + START_FIELD_NUMBER: builtins.int + END_FIELD_NUMBER: builtins.int + start: builtins.int = ... + end: builtins.int = ... def __init__(self, *, - start : typing___Optional[builtin___int] = ..., - end : typing___Optional[builtin___int] = ..., + start : typing.Optional[builtins.int] = ..., + end : typing.Optional[builtins.int] = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions___Literal[u"end",b"end",u"start",b"start"]) -> builtin___bool: ... - def ClearField(self, field_name: typing_extensions___Literal[u"end",b"end",u"start",b"start"]) -> None: ... - type___EnumReservedRange = EnumReservedRange + def HasField(self, field_name: typing_extensions.Literal[u"end",b"end",u"start",b"start"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"end",b"end",u"start",b"start"]) -> None: ... - name: typing___Text = ... - reserved_name: google___protobuf___internal___containers___RepeatedScalarFieldContainer[typing___Text] = ... + NAME_FIELD_NUMBER: builtins.int + VALUE_FIELD_NUMBER: builtins.int + OPTIONS_FIELD_NUMBER: builtins.int + RESERVED_RANGE_FIELD_NUMBER: builtins.int + RESERVED_NAME_FIELD_NUMBER: builtins.int + name: typing.Text = ... @property - def value(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[type___EnumValueDescriptorProto]: ... + def reserved_name(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[typing.Text]: ... @property - def options(self) -> type___EnumOptions: ... + def value(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___EnumValueDescriptorProto]: ... @property - def reserved_range(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[type___EnumDescriptorProto.EnumReservedRange]: ... + def options(self) -> global___EnumOptions: ... + + @property + def reserved_range(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___EnumDescriptorProto.EnumReservedRange]: ... def __init__(self, *, - name : typing___Optional[typing___Text] = ..., - value : typing___Optional[typing___Iterable[type___EnumValueDescriptorProto]] = ..., - options : typing___Optional[type___EnumOptions] = ..., - reserved_range : typing___Optional[typing___Iterable[type___EnumDescriptorProto.EnumReservedRange]] = ..., - reserved_name : typing___Optional[typing___Iterable[typing___Text]] = ..., + name : typing.Optional[typing.Text] = ..., + value : typing.Optional[typing.Iterable[global___EnumValueDescriptorProto]] = ..., + options : typing.Optional[global___EnumOptions] = ..., + reserved_range : typing.Optional[typing.Iterable[global___EnumDescriptorProto.EnumReservedRange]] = ..., + reserved_name : typing.Optional[typing.Iterable[typing.Text]] = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions___Literal[u"name",b"name",u"options",b"options"]) -> builtin___bool: ... - def ClearField(self, field_name: typing_extensions___Literal[u"name",b"name",u"options",b"options",u"reserved_name",b"reserved_name",u"reserved_range",b"reserved_range",u"value",b"value"]) -> None: ... -type___EnumDescriptorProto = EnumDescriptorProto + def HasField(self, field_name: typing_extensions.Literal[u"name",b"name",u"options",b"options"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"name",b"name",u"options",b"options",u"reserved_name",b"reserved_name",u"reserved_range",b"reserved_range",u"value",b"value"]) -> None: ... +global___EnumDescriptorProto = EnumDescriptorProto -class EnumValueDescriptorProto(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - name: typing___Text = ... - number: builtin___int = ... +class EnumValueDescriptorProto(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + NAME_FIELD_NUMBER: builtins.int + NUMBER_FIELD_NUMBER: builtins.int + OPTIONS_FIELD_NUMBER: builtins.int + name: typing.Text = ... + number: builtins.int = ... @property - def options(self) -> type___EnumValueOptions: ... + def options(self) -> global___EnumValueOptions: ... def __init__(self, *, - name : typing___Optional[typing___Text] = ..., - number : typing___Optional[builtin___int] = ..., - options : typing___Optional[type___EnumValueOptions] = ..., + name : typing.Optional[typing.Text] = ..., + number : typing.Optional[builtins.int] = ..., + options : typing.Optional[global___EnumValueOptions] = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions___Literal[u"name",b"name",u"number",b"number",u"options",b"options"]) -> builtin___bool: ... - def ClearField(self, field_name: typing_extensions___Literal[u"name",b"name",u"number",b"number",u"options",b"options"]) -> None: ... -type___EnumValueDescriptorProto = EnumValueDescriptorProto + def HasField(self, field_name: typing_extensions.Literal[u"name",b"name",u"number",b"number",u"options",b"options"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"name",b"name",u"number",b"number",u"options",b"options"]) -> None: ... +global___EnumValueDescriptorProto = EnumValueDescriptorProto -class ServiceDescriptorProto(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - name: typing___Text = ... +class ServiceDescriptorProto(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + NAME_FIELD_NUMBER: builtins.int + METHOD_FIELD_NUMBER: builtins.int + OPTIONS_FIELD_NUMBER: builtins.int + name: typing.Text = ... @property - def method(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[type___MethodDescriptorProto]: ... + def method(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___MethodDescriptorProto]: ... @property - def options(self) -> type___ServiceOptions: ... + def options(self) -> global___ServiceOptions: ... def __init__(self, *, - name : typing___Optional[typing___Text] = ..., - method : typing___Optional[typing___Iterable[type___MethodDescriptorProto]] = ..., - options : typing___Optional[type___ServiceOptions] = ..., + name : typing.Optional[typing.Text] = ..., + method : typing.Optional[typing.Iterable[global___MethodDescriptorProto]] = ..., + options : typing.Optional[global___ServiceOptions] = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions___Literal[u"name",b"name",u"options",b"options"]) -> builtin___bool: ... - def ClearField(self, field_name: typing_extensions___Literal[u"method",b"method",u"name",b"name",u"options",b"options"]) -> None: ... -type___ServiceDescriptorProto = ServiceDescriptorProto - -class MethodDescriptorProto(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - name: typing___Text = ... - input_type: typing___Text = ... - output_type: typing___Text = ... - client_streaming: builtin___bool = ... - server_streaming: builtin___bool = ... - - @property - def options(self) -> type___MethodOptions: ... + def HasField(self, field_name: typing_extensions.Literal[u"name",b"name",u"options",b"options"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"method",b"method",u"name",b"name",u"options",b"options"]) -> None: ... +global___ServiceDescriptorProto = ServiceDescriptorProto + +class MethodDescriptorProto(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + NAME_FIELD_NUMBER: builtins.int + INPUT_TYPE_FIELD_NUMBER: builtins.int + OUTPUT_TYPE_FIELD_NUMBER: builtins.int + OPTIONS_FIELD_NUMBER: builtins.int + CLIENT_STREAMING_FIELD_NUMBER: builtins.int + SERVER_STREAMING_FIELD_NUMBER: builtins.int + name: typing.Text = ... + input_type: typing.Text = ... + output_type: typing.Text = ... + client_streaming: builtins.bool = ... + server_streaming: builtins.bool = ... + + @property + def options(self) -> global___MethodOptions: ... def __init__(self, *, - name : typing___Optional[typing___Text] = ..., - input_type : typing___Optional[typing___Text] = ..., - output_type : typing___Optional[typing___Text] = ..., - options : typing___Optional[type___MethodOptions] = ..., - client_streaming : typing___Optional[builtin___bool] = ..., - server_streaming : typing___Optional[builtin___bool] = ..., + name : typing.Optional[typing.Text] = ..., + input_type : typing.Optional[typing.Text] = ..., + output_type : typing.Optional[typing.Text] = ..., + options : typing.Optional[global___MethodOptions] = ..., + client_streaming : typing.Optional[builtins.bool] = ..., + server_streaming : typing.Optional[builtins.bool] = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions___Literal[u"client_streaming",b"client_streaming",u"input_type",b"input_type",u"name",b"name",u"options",b"options",u"output_type",b"output_type",u"server_streaming",b"server_streaming"]) -> builtin___bool: ... - def ClearField(self, field_name: typing_extensions___Literal[u"client_streaming",b"client_streaming",u"input_type",b"input_type",u"name",b"name",u"options",b"options",u"output_type",b"output_type",u"server_streaming",b"server_streaming"]) -> None: ... -type___MethodDescriptorProto = MethodDescriptorProto - -class FileOptions(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - OptimizeModeValue = typing___NewType('OptimizeModeValue', builtin___int) - type___OptimizeModeValue = OptimizeModeValue - OptimizeMode: _OptimizeMode - class _OptimizeMode(google___protobuf___internal___enum_type_wrapper____EnumTypeWrapper[FileOptions.OptimizeModeValue]): - DESCRIPTOR: google___protobuf___descriptor___EnumDescriptor = ... - SPEED = typing___cast(FileOptions.OptimizeModeValue, 1) - CODE_SIZE = typing___cast(FileOptions.OptimizeModeValue, 2) - LITE_RUNTIME = typing___cast(FileOptions.OptimizeModeValue, 3) - SPEED = typing___cast(FileOptions.OptimizeModeValue, 1) - CODE_SIZE = typing___cast(FileOptions.OptimizeModeValue, 2) - LITE_RUNTIME = typing___cast(FileOptions.OptimizeModeValue, 3) - - java_package: typing___Text = ... - java_outer_classname: typing___Text = ... - java_multiple_files: builtin___bool = ... - java_generate_equals_and_hash: builtin___bool = ... - java_string_check_utf8: builtin___bool = ... - optimize_for: type___FileOptions.OptimizeModeValue = ... - go_package: typing___Text = ... - cc_generic_services: builtin___bool = ... - java_generic_services: builtin___bool = ... - py_generic_services: builtin___bool = ... - php_generic_services: builtin___bool = ... - deprecated: builtin___bool = ... - cc_enable_arenas: builtin___bool = ... - objc_class_prefix: typing___Text = ... - csharp_namespace: typing___Text = ... - swift_prefix: typing___Text = ... - php_class_prefix: typing___Text = ... - php_namespace: typing___Text = ... - php_metadata_namespace: typing___Text = ... - ruby_package: typing___Text = ... - - @property - def uninterpreted_option(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[type___UninterpretedOption]: ... + def HasField(self, field_name: typing_extensions.Literal[u"client_streaming",b"client_streaming",u"input_type",b"input_type",u"name",b"name",u"options",b"options",u"output_type",b"output_type",u"server_streaming",b"server_streaming"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"client_streaming",b"client_streaming",u"input_type",b"input_type",u"name",b"name",u"options",b"options",u"output_type",b"output_type",u"server_streaming",b"server_streaming"]) -> None: ... +global___MethodDescriptorProto = MethodDescriptorProto + +class FileOptions(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + class OptimizeMode(metaclass=_OptimizeMode): + V = typing.NewType('V', builtins.int) + + SPEED = FileOptions.OptimizeMode.V(1) + CODE_SIZE = FileOptions.OptimizeMode.V(2) + LITE_RUNTIME = FileOptions.OptimizeMode.V(3) + + class _OptimizeMode(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[OptimizeMode.V], builtins.type): # type: ignore + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor = ... + SPEED = FileOptions.OptimizeMode.V(1) + CODE_SIZE = FileOptions.OptimizeMode.V(2) + LITE_RUNTIME = FileOptions.OptimizeMode.V(3) + + JAVA_PACKAGE_FIELD_NUMBER: builtins.int + JAVA_OUTER_CLASSNAME_FIELD_NUMBER: builtins.int + JAVA_MULTIPLE_FILES_FIELD_NUMBER: builtins.int + JAVA_GENERATE_EQUALS_AND_HASH_FIELD_NUMBER: builtins.int + JAVA_STRING_CHECK_UTF8_FIELD_NUMBER: builtins.int + OPTIMIZE_FOR_FIELD_NUMBER: builtins.int + GO_PACKAGE_FIELD_NUMBER: builtins.int + CC_GENERIC_SERVICES_FIELD_NUMBER: builtins.int + JAVA_GENERIC_SERVICES_FIELD_NUMBER: builtins.int + PY_GENERIC_SERVICES_FIELD_NUMBER: builtins.int + PHP_GENERIC_SERVICES_FIELD_NUMBER: builtins.int + DEPRECATED_FIELD_NUMBER: builtins.int + CC_ENABLE_ARENAS_FIELD_NUMBER: builtins.int + OBJC_CLASS_PREFIX_FIELD_NUMBER: builtins.int + CSHARP_NAMESPACE_FIELD_NUMBER: builtins.int + SWIFT_PREFIX_FIELD_NUMBER: builtins.int + PHP_CLASS_PREFIX_FIELD_NUMBER: builtins.int + PHP_NAMESPACE_FIELD_NUMBER: builtins.int + PHP_METADATA_NAMESPACE_FIELD_NUMBER: builtins.int + RUBY_PACKAGE_FIELD_NUMBER: builtins.int + UNINTERPRETED_OPTION_FIELD_NUMBER: builtins.int + java_package: typing.Text = ... + java_outer_classname: typing.Text = ... + java_multiple_files: builtins.bool = ... + java_generate_equals_and_hash: builtins.bool = ... + java_string_check_utf8: builtins.bool = ... + optimize_for: global___FileOptions.OptimizeMode.V = ... + go_package: typing.Text = ... + cc_generic_services: builtins.bool = ... + java_generic_services: builtins.bool = ... + py_generic_services: builtins.bool = ... + php_generic_services: builtins.bool = ... + deprecated: builtins.bool = ... + cc_enable_arenas: builtins.bool = ... + objc_class_prefix: typing.Text = ... + csharp_namespace: typing.Text = ... + swift_prefix: typing.Text = ... + php_class_prefix: typing.Text = ... + php_namespace: typing.Text = ... + php_metadata_namespace: typing.Text = ... + ruby_package: typing.Text = ... + + @property + def uninterpreted_option(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___UninterpretedOption]: ... def __init__(self, *, - java_package : typing___Optional[typing___Text] = ..., - java_outer_classname : typing___Optional[typing___Text] = ..., - java_multiple_files : typing___Optional[builtin___bool] = ..., - java_generate_equals_and_hash : typing___Optional[builtin___bool] = ..., - java_string_check_utf8 : typing___Optional[builtin___bool] = ..., - optimize_for : typing___Optional[type___FileOptions.OptimizeModeValue] = ..., - go_package : typing___Optional[typing___Text] = ..., - cc_generic_services : typing___Optional[builtin___bool] = ..., - java_generic_services : typing___Optional[builtin___bool] = ..., - py_generic_services : typing___Optional[builtin___bool] = ..., - php_generic_services : typing___Optional[builtin___bool] = ..., - deprecated : typing___Optional[builtin___bool] = ..., - cc_enable_arenas : typing___Optional[builtin___bool] = ..., - objc_class_prefix : typing___Optional[typing___Text] = ..., - csharp_namespace : typing___Optional[typing___Text] = ..., - swift_prefix : typing___Optional[typing___Text] = ..., - php_class_prefix : typing___Optional[typing___Text] = ..., - php_namespace : typing___Optional[typing___Text] = ..., - php_metadata_namespace : typing___Optional[typing___Text] = ..., - ruby_package : typing___Optional[typing___Text] = ..., - uninterpreted_option : typing___Optional[typing___Iterable[type___UninterpretedOption]] = ..., + java_package : typing.Optional[typing.Text] = ..., + java_outer_classname : typing.Optional[typing.Text] = ..., + java_multiple_files : typing.Optional[builtins.bool] = ..., + java_generate_equals_and_hash : typing.Optional[builtins.bool] = ..., + java_string_check_utf8 : typing.Optional[builtins.bool] = ..., + optimize_for : typing.Optional[global___FileOptions.OptimizeMode.V] = ..., + go_package : typing.Optional[typing.Text] = ..., + cc_generic_services : typing.Optional[builtins.bool] = ..., + java_generic_services : typing.Optional[builtins.bool] = ..., + py_generic_services : typing.Optional[builtins.bool] = ..., + php_generic_services : typing.Optional[builtins.bool] = ..., + deprecated : typing.Optional[builtins.bool] = ..., + cc_enable_arenas : typing.Optional[builtins.bool] = ..., + objc_class_prefix : typing.Optional[typing.Text] = ..., + csharp_namespace : typing.Optional[typing.Text] = ..., + swift_prefix : typing.Optional[typing.Text] = ..., + php_class_prefix : typing.Optional[typing.Text] = ..., + php_namespace : typing.Optional[typing.Text] = ..., + php_metadata_namespace : typing.Optional[typing.Text] = ..., + ruby_package : typing.Optional[typing.Text] = ..., + uninterpreted_option : typing.Optional[typing.Iterable[global___UninterpretedOption]] = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions___Literal[u"cc_enable_arenas",b"cc_enable_arenas",u"cc_generic_services",b"cc_generic_services",u"csharp_namespace",b"csharp_namespace",u"deprecated",b"deprecated",u"go_package",b"go_package",u"java_generate_equals_and_hash",b"java_generate_equals_and_hash",u"java_generic_services",b"java_generic_services",u"java_multiple_files",b"java_multiple_files",u"java_outer_classname",b"java_outer_classname",u"java_package",b"java_package",u"java_string_check_utf8",b"java_string_check_utf8",u"objc_class_prefix",b"objc_class_prefix",u"optimize_for",b"optimize_for",u"php_class_prefix",b"php_class_prefix",u"php_generic_services",b"php_generic_services",u"php_metadata_namespace",b"php_metadata_namespace",u"php_namespace",b"php_namespace",u"py_generic_services",b"py_generic_services",u"ruby_package",b"ruby_package",u"swift_prefix",b"swift_prefix"]) -> builtin___bool: ... - def ClearField(self, field_name: typing_extensions___Literal[u"cc_enable_arenas",b"cc_enable_arenas",u"cc_generic_services",b"cc_generic_services",u"csharp_namespace",b"csharp_namespace",u"deprecated",b"deprecated",u"go_package",b"go_package",u"java_generate_equals_and_hash",b"java_generate_equals_and_hash",u"java_generic_services",b"java_generic_services",u"java_multiple_files",b"java_multiple_files",u"java_outer_classname",b"java_outer_classname",u"java_package",b"java_package",u"java_string_check_utf8",b"java_string_check_utf8",u"objc_class_prefix",b"objc_class_prefix",u"optimize_for",b"optimize_for",u"php_class_prefix",b"php_class_prefix",u"php_generic_services",b"php_generic_services",u"php_metadata_namespace",b"php_metadata_namespace",u"php_namespace",b"php_namespace",u"py_generic_services",b"py_generic_services",u"ruby_package",b"ruby_package",u"swift_prefix",b"swift_prefix",u"uninterpreted_option",b"uninterpreted_option"]) -> None: ... -type___FileOptions = FileOptions + def HasField(self, field_name: typing_extensions.Literal[u"cc_enable_arenas",b"cc_enable_arenas",u"cc_generic_services",b"cc_generic_services",u"csharp_namespace",b"csharp_namespace",u"deprecated",b"deprecated",u"go_package",b"go_package",u"java_generate_equals_and_hash",b"java_generate_equals_and_hash",u"java_generic_services",b"java_generic_services",u"java_multiple_files",b"java_multiple_files",u"java_outer_classname",b"java_outer_classname",u"java_package",b"java_package",u"java_string_check_utf8",b"java_string_check_utf8",u"objc_class_prefix",b"objc_class_prefix",u"optimize_for",b"optimize_for",u"php_class_prefix",b"php_class_prefix",u"php_generic_services",b"php_generic_services",u"php_metadata_namespace",b"php_metadata_namespace",u"php_namespace",b"php_namespace",u"py_generic_services",b"py_generic_services",u"ruby_package",b"ruby_package",u"swift_prefix",b"swift_prefix"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"cc_enable_arenas",b"cc_enable_arenas",u"cc_generic_services",b"cc_generic_services",u"csharp_namespace",b"csharp_namespace",u"deprecated",b"deprecated",u"go_package",b"go_package",u"java_generate_equals_and_hash",b"java_generate_equals_and_hash",u"java_generic_services",b"java_generic_services",u"java_multiple_files",b"java_multiple_files",u"java_outer_classname",b"java_outer_classname",u"java_package",b"java_package",u"java_string_check_utf8",b"java_string_check_utf8",u"objc_class_prefix",b"objc_class_prefix",u"optimize_for",b"optimize_for",u"php_class_prefix",b"php_class_prefix",u"php_generic_services",b"php_generic_services",u"php_metadata_namespace",b"php_metadata_namespace",u"php_namespace",b"php_namespace",u"py_generic_services",b"py_generic_services",u"ruby_package",b"ruby_package",u"swift_prefix",b"swift_prefix",u"uninterpreted_option",b"uninterpreted_option"]) -> None: ... +global___FileOptions = FileOptions -class MessageOptions(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - message_set_wire_format: builtin___bool = ... - no_standard_descriptor_accessor: builtin___bool = ... - deprecated: builtin___bool = ... - map_entry: builtin___bool = ... +class MessageOptions(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + MESSAGE_SET_WIRE_FORMAT_FIELD_NUMBER: builtins.int + NO_STANDARD_DESCRIPTOR_ACCESSOR_FIELD_NUMBER: builtins.int + DEPRECATED_FIELD_NUMBER: builtins.int + MAP_ENTRY_FIELD_NUMBER: builtins.int + UNINTERPRETED_OPTION_FIELD_NUMBER: builtins.int + message_set_wire_format: builtins.bool = ... + no_standard_descriptor_accessor: builtins.bool = ... + deprecated: builtins.bool = ... + map_entry: builtins.bool = ... @property - def uninterpreted_option(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[type___UninterpretedOption]: ... + def uninterpreted_option(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___UninterpretedOption]: ... def __init__(self, *, - message_set_wire_format : typing___Optional[builtin___bool] = ..., - no_standard_descriptor_accessor : typing___Optional[builtin___bool] = ..., - deprecated : typing___Optional[builtin___bool] = ..., - map_entry : typing___Optional[builtin___bool] = ..., - uninterpreted_option : typing___Optional[typing___Iterable[type___UninterpretedOption]] = ..., + message_set_wire_format : typing.Optional[builtins.bool] = ..., + no_standard_descriptor_accessor : typing.Optional[builtins.bool] = ..., + deprecated : typing.Optional[builtins.bool] = ..., + map_entry : typing.Optional[builtins.bool] = ..., + uninterpreted_option : typing.Optional[typing.Iterable[global___UninterpretedOption]] = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions___Literal[u"deprecated",b"deprecated",u"map_entry",b"map_entry",u"message_set_wire_format",b"message_set_wire_format",u"no_standard_descriptor_accessor",b"no_standard_descriptor_accessor"]) -> builtin___bool: ... - def ClearField(self, field_name: typing_extensions___Literal[u"deprecated",b"deprecated",u"map_entry",b"map_entry",u"message_set_wire_format",b"message_set_wire_format",u"no_standard_descriptor_accessor",b"no_standard_descriptor_accessor",u"uninterpreted_option",b"uninterpreted_option"]) -> None: ... -type___MessageOptions = MessageOptions - -class FieldOptions(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - CTypeValue = typing___NewType('CTypeValue', builtin___int) - type___CTypeValue = CTypeValue - CType: _CType - class _CType(google___protobuf___internal___enum_type_wrapper____EnumTypeWrapper[FieldOptions.CTypeValue]): - DESCRIPTOR: google___protobuf___descriptor___EnumDescriptor = ... - STRING = typing___cast(FieldOptions.CTypeValue, 0) - CORD = typing___cast(FieldOptions.CTypeValue, 1) - STRING_PIECE = typing___cast(FieldOptions.CTypeValue, 2) - STRING = typing___cast(FieldOptions.CTypeValue, 0) - CORD = typing___cast(FieldOptions.CTypeValue, 1) - STRING_PIECE = typing___cast(FieldOptions.CTypeValue, 2) - - JSTypeValue = typing___NewType('JSTypeValue', builtin___int) - type___JSTypeValue = JSTypeValue - JSType: _JSType - class _JSType(google___protobuf___internal___enum_type_wrapper____EnumTypeWrapper[FieldOptions.JSTypeValue]): - DESCRIPTOR: google___protobuf___descriptor___EnumDescriptor = ... - JS_NORMAL = typing___cast(FieldOptions.JSTypeValue, 0) - JS_STRING = typing___cast(FieldOptions.JSTypeValue, 1) - JS_NUMBER = typing___cast(FieldOptions.JSTypeValue, 2) - JS_NORMAL = typing___cast(FieldOptions.JSTypeValue, 0) - JS_STRING = typing___cast(FieldOptions.JSTypeValue, 1) - JS_NUMBER = typing___cast(FieldOptions.JSTypeValue, 2) - - ctype: type___FieldOptions.CTypeValue = ... - packed: builtin___bool = ... - jstype: type___FieldOptions.JSTypeValue = ... - lazy: builtin___bool = ... - deprecated: builtin___bool = ... - weak: builtin___bool = ... - - @property - def uninterpreted_option(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[type___UninterpretedOption]: ... + def HasField(self, field_name: typing_extensions.Literal[u"deprecated",b"deprecated",u"map_entry",b"map_entry",u"message_set_wire_format",b"message_set_wire_format",u"no_standard_descriptor_accessor",b"no_standard_descriptor_accessor"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"deprecated",b"deprecated",u"map_entry",b"map_entry",u"message_set_wire_format",b"message_set_wire_format",u"no_standard_descriptor_accessor",b"no_standard_descriptor_accessor",u"uninterpreted_option",b"uninterpreted_option"]) -> None: ... +global___MessageOptions = MessageOptions + +class FieldOptions(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + class CType(metaclass=_CType): + V = typing.NewType('V', builtins.int) + + STRING = FieldOptions.CType.V(0) + CORD = FieldOptions.CType.V(1) + STRING_PIECE = FieldOptions.CType.V(2) + + class _CType(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[CType.V], builtins.type): # type: ignore + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor = ... + STRING = FieldOptions.CType.V(0) + CORD = FieldOptions.CType.V(1) + STRING_PIECE = FieldOptions.CType.V(2) + + class JSType(metaclass=_JSType): + V = typing.NewType('V', builtins.int) + + JS_NORMAL = FieldOptions.JSType.V(0) + JS_STRING = FieldOptions.JSType.V(1) + JS_NUMBER = FieldOptions.JSType.V(2) + + class _JSType(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[JSType.V], builtins.type): # type: ignore + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor = ... + JS_NORMAL = FieldOptions.JSType.V(0) + JS_STRING = FieldOptions.JSType.V(1) + JS_NUMBER = FieldOptions.JSType.V(2) + + CTYPE_FIELD_NUMBER: builtins.int + PACKED_FIELD_NUMBER: builtins.int + JSTYPE_FIELD_NUMBER: builtins.int + LAZY_FIELD_NUMBER: builtins.int + DEPRECATED_FIELD_NUMBER: builtins.int + WEAK_FIELD_NUMBER: builtins.int + UNINTERPRETED_OPTION_FIELD_NUMBER: builtins.int + ctype: global___FieldOptions.CType.V = ... + packed: builtins.bool = ... + jstype: global___FieldOptions.JSType.V = ... + lazy: builtins.bool = ... + deprecated: builtins.bool = ... + weak: builtins.bool = ... + + @property + def uninterpreted_option(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___UninterpretedOption]: ... def __init__(self, *, - ctype : typing___Optional[type___FieldOptions.CTypeValue] = ..., - packed : typing___Optional[builtin___bool] = ..., - jstype : typing___Optional[type___FieldOptions.JSTypeValue] = ..., - lazy : typing___Optional[builtin___bool] = ..., - deprecated : typing___Optional[builtin___bool] = ..., - weak : typing___Optional[builtin___bool] = ..., - uninterpreted_option : typing___Optional[typing___Iterable[type___UninterpretedOption]] = ..., + ctype : typing.Optional[global___FieldOptions.CType.V] = ..., + packed : typing.Optional[builtins.bool] = ..., + jstype : typing.Optional[global___FieldOptions.JSType.V] = ..., + lazy : typing.Optional[builtins.bool] = ..., + deprecated : typing.Optional[builtins.bool] = ..., + weak : typing.Optional[builtins.bool] = ..., + uninterpreted_option : typing.Optional[typing.Iterable[global___UninterpretedOption]] = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions___Literal[u"ctype",b"ctype",u"deprecated",b"deprecated",u"jstype",b"jstype",u"lazy",b"lazy",u"packed",b"packed",u"weak",b"weak"]) -> builtin___bool: ... - def ClearField(self, field_name: typing_extensions___Literal[u"ctype",b"ctype",u"deprecated",b"deprecated",u"jstype",b"jstype",u"lazy",b"lazy",u"packed",b"packed",u"uninterpreted_option",b"uninterpreted_option",u"weak",b"weak"]) -> None: ... -type___FieldOptions = FieldOptions + def HasField(self, field_name: typing_extensions.Literal[u"ctype",b"ctype",u"deprecated",b"deprecated",u"jstype",b"jstype",u"lazy",b"lazy",u"packed",b"packed",u"weak",b"weak"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"ctype",b"ctype",u"deprecated",b"deprecated",u"jstype",b"jstype",u"lazy",b"lazy",u"packed",b"packed",u"uninterpreted_option",b"uninterpreted_option",u"weak",b"weak"]) -> None: ... +global___FieldOptions = FieldOptions -class OneofOptions(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... +class OneofOptions(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + UNINTERPRETED_OPTION_FIELD_NUMBER: builtins.int @property - def uninterpreted_option(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[type___UninterpretedOption]: ... + def uninterpreted_option(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___UninterpretedOption]: ... def __init__(self, *, - uninterpreted_option : typing___Optional[typing___Iterable[type___UninterpretedOption]] = ..., + uninterpreted_option : typing.Optional[typing.Iterable[global___UninterpretedOption]] = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions___Literal[u"uninterpreted_option",b"uninterpreted_option"]) -> None: ... -type___OneofOptions = OneofOptions + def ClearField(self, field_name: typing_extensions.Literal[u"uninterpreted_option",b"uninterpreted_option"]) -> None: ... +global___OneofOptions = OneofOptions -class EnumOptions(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - allow_alias: builtin___bool = ... - deprecated: builtin___bool = ... +class EnumOptions(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + ALLOW_ALIAS_FIELD_NUMBER: builtins.int + DEPRECATED_FIELD_NUMBER: builtins.int + UNINTERPRETED_OPTION_FIELD_NUMBER: builtins.int + allow_alias: builtins.bool = ... + deprecated: builtins.bool = ... @property - def uninterpreted_option(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[type___UninterpretedOption]: ... + def uninterpreted_option(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___UninterpretedOption]: ... def __init__(self, *, - allow_alias : typing___Optional[builtin___bool] = ..., - deprecated : typing___Optional[builtin___bool] = ..., - uninterpreted_option : typing___Optional[typing___Iterable[type___UninterpretedOption]] = ..., + allow_alias : typing.Optional[builtins.bool] = ..., + deprecated : typing.Optional[builtins.bool] = ..., + uninterpreted_option : typing.Optional[typing.Iterable[global___UninterpretedOption]] = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions___Literal[u"allow_alias",b"allow_alias",u"deprecated",b"deprecated"]) -> builtin___bool: ... - def ClearField(self, field_name: typing_extensions___Literal[u"allow_alias",b"allow_alias",u"deprecated",b"deprecated",u"uninterpreted_option",b"uninterpreted_option"]) -> None: ... -type___EnumOptions = EnumOptions + def HasField(self, field_name: typing_extensions.Literal[u"allow_alias",b"allow_alias",u"deprecated",b"deprecated"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"allow_alias",b"allow_alias",u"deprecated",b"deprecated",u"uninterpreted_option",b"uninterpreted_option"]) -> None: ... +global___EnumOptions = EnumOptions -class EnumValueOptions(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - deprecated: builtin___bool = ... +class EnumValueOptions(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + DEPRECATED_FIELD_NUMBER: builtins.int + UNINTERPRETED_OPTION_FIELD_NUMBER: builtins.int + deprecated: builtins.bool = ... @property - def uninterpreted_option(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[type___UninterpretedOption]: ... + def uninterpreted_option(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___UninterpretedOption]: ... def __init__(self, *, - deprecated : typing___Optional[builtin___bool] = ..., - uninterpreted_option : typing___Optional[typing___Iterable[type___UninterpretedOption]] = ..., + deprecated : typing.Optional[builtins.bool] = ..., + uninterpreted_option : typing.Optional[typing.Iterable[global___UninterpretedOption]] = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions___Literal[u"deprecated",b"deprecated"]) -> builtin___bool: ... - def ClearField(self, field_name: typing_extensions___Literal[u"deprecated",b"deprecated",u"uninterpreted_option",b"uninterpreted_option"]) -> None: ... -type___EnumValueOptions = EnumValueOptions + def HasField(self, field_name: typing_extensions.Literal[u"deprecated",b"deprecated"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"deprecated",b"deprecated",u"uninterpreted_option",b"uninterpreted_option"]) -> None: ... +global___EnumValueOptions = EnumValueOptions -class ServiceOptions(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - deprecated: builtin___bool = ... +class ServiceOptions(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + DEPRECATED_FIELD_NUMBER: builtins.int + UNINTERPRETED_OPTION_FIELD_NUMBER: builtins.int + deprecated: builtins.bool = ... @property - def uninterpreted_option(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[type___UninterpretedOption]: ... + def uninterpreted_option(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___UninterpretedOption]: ... def __init__(self, *, - deprecated : typing___Optional[builtin___bool] = ..., - uninterpreted_option : typing___Optional[typing___Iterable[type___UninterpretedOption]] = ..., + deprecated : typing.Optional[builtins.bool] = ..., + uninterpreted_option : typing.Optional[typing.Iterable[global___UninterpretedOption]] = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions___Literal[u"deprecated",b"deprecated"]) -> builtin___bool: ... - def ClearField(self, field_name: typing_extensions___Literal[u"deprecated",b"deprecated",u"uninterpreted_option",b"uninterpreted_option"]) -> None: ... -type___ServiceOptions = ServiceOptions - -class MethodOptions(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - IdempotencyLevelValue = typing___NewType('IdempotencyLevelValue', builtin___int) - type___IdempotencyLevelValue = IdempotencyLevelValue - IdempotencyLevel: _IdempotencyLevel - class _IdempotencyLevel(google___protobuf___internal___enum_type_wrapper____EnumTypeWrapper[MethodOptions.IdempotencyLevelValue]): - DESCRIPTOR: google___protobuf___descriptor___EnumDescriptor = ... - IDEMPOTENCY_UNKNOWN = typing___cast(MethodOptions.IdempotencyLevelValue, 0) - NO_SIDE_EFFECTS = typing___cast(MethodOptions.IdempotencyLevelValue, 1) - IDEMPOTENT = typing___cast(MethodOptions.IdempotencyLevelValue, 2) - IDEMPOTENCY_UNKNOWN = typing___cast(MethodOptions.IdempotencyLevelValue, 0) - NO_SIDE_EFFECTS = typing___cast(MethodOptions.IdempotencyLevelValue, 1) - IDEMPOTENT = typing___cast(MethodOptions.IdempotencyLevelValue, 2) - - deprecated: builtin___bool = ... - idempotency_level: type___MethodOptions.IdempotencyLevelValue = ... - - @property - def uninterpreted_option(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[type___UninterpretedOption]: ... + def HasField(self, field_name: typing_extensions.Literal[u"deprecated",b"deprecated"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"deprecated",b"deprecated",u"uninterpreted_option",b"uninterpreted_option"]) -> None: ... +global___ServiceOptions = ServiceOptions + +class MethodOptions(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + class IdempotencyLevel(metaclass=_IdempotencyLevel): + V = typing.NewType('V', builtins.int) + + IDEMPOTENCY_UNKNOWN = MethodOptions.IdempotencyLevel.V(0) + NO_SIDE_EFFECTS = MethodOptions.IdempotencyLevel.V(1) + IDEMPOTENT = MethodOptions.IdempotencyLevel.V(2) + + class _IdempotencyLevel(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[IdempotencyLevel.V], builtins.type): # type: ignore + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor = ... + IDEMPOTENCY_UNKNOWN = MethodOptions.IdempotencyLevel.V(0) + NO_SIDE_EFFECTS = MethodOptions.IdempotencyLevel.V(1) + IDEMPOTENT = MethodOptions.IdempotencyLevel.V(2) + + DEPRECATED_FIELD_NUMBER: builtins.int + IDEMPOTENCY_LEVEL_FIELD_NUMBER: builtins.int + UNINTERPRETED_OPTION_FIELD_NUMBER: builtins.int + deprecated: builtins.bool = ... + idempotency_level: global___MethodOptions.IdempotencyLevel.V = ... + + @property + def uninterpreted_option(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___UninterpretedOption]: ... def __init__(self, *, - deprecated : typing___Optional[builtin___bool] = ..., - idempotency_level : typing___Optional[type___MethodOptions.IdempotencyLevelValue] = ..., - uninterpreted_option : typing___Optional[typing___Iterable[type___UninterpretedOption]] = ..., + deprecated : typing.Optional[builtins.bool] = ..., + idempotency_level : typing.Optional[global___MethodOptions.IdempotencyLevel.V] = ..., + uninterpreted_option : typing.Optional[typing.Iterable[global___UninterpretedOption]] = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions___Literal[u"deprecated",b"deprecated",u"idempotency_level",b"idempotency_level"]) -> builtin___bool: ... - def ClearField(self, field_name: typing_extensions___Literal[u"deprecated",b"deprecated",u"idempotency_level",b"idempotency_level",u"uninterpreted_option",b"uninterpreted_option"]) -> None: ... -type___MethodOptions = MethodOptions - -class UninterpretedOption(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - class NamePart(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - name_part: typing___Text = ... - is_extension: builtin___bool = ... + def HasField(self, field_name: typing_extensions.Literal[u"deprecated",b"deprecated",u"idempotency_level",b"idempotency_level"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"deprecated",b"deprecated",u"idempotency_level",b"idempotency_level",u"uninterpreted_option",b"uninterpreted_option"]) -> None: ... +global___MethodOptions = MethodOptions + +class UninterpretedOption(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + class NamePart(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + NAME_PART_FIELD_NUMBER: builtins.int + IS_EXTENSION_FIELD_NUMBER: builtins.int + name_part: typing.Text = ... + is_extension: builtins.bool = ... def __init__(self, *, - name_part : typing___Optional[typing___Text] = ..., - is_extension : typing___Optional[builtin___bool] = ..., + name_part : typing.Optional[typing.Text] = ..., + is_extension : typing.Optional[builtins.bool] = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions___Literal[u"is_extension",b"is_extension",u"name_part",b"name_part"]) -> builtin___bool: ... - def ClearField(self, field_name: typing_extensions___Literal[u"is_extension",b"is_extension",u"name_part",b"name_part"]) -> None: ... - type___NamePart = NamePart - - identifier_value: typing___Text = ... - positive_int_value: builtin___int = ... - negative_int_value: builtin___int = ... - double_value: builtin___float = ... - string_value: builtin___bytes = ... - aggregate_value: typing___Text = ... - - @property - def name(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[type___UninterpretedOption.NamePart]: ... + def HasField(self, field_name: typing_extensions.Literal[u"is_extension",b"is_extension",u"name_part",b"name_part"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"is_extension",b"is_extension",u"name_part",b"name_part"]) -> None: ... + + NAME_FIELD_NUMBER: builtins.int + IDENTIFIER_VALUE_FIELD_NUMBER: builtins.int + POSITIVE_INT_VALUE_FIELD_NUMBER: builtins.int + NEGATIVE_INT_VALUE_FIELD_NUMBER: builtins.int + DOUBLE_VALUE_FIELD_NUMBER: builtins.int + STRING_VALUE_FIELD_NUMBER: builtins.int + AGGREGATE_VALUE_FIELD_NUMBER: builtins.int + identifier_value: typing.Text = ... + positive_int_value: builtins.int = ... + negative_int_value: builtins.int = ... + double_value: builtins.float = ... + string_value: builtins.bytes = ... + aggregate_value: typing.Text = ... + + @property + def name(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___UninterpretedOption.NamePart]: ... def __init__(self, *, - name : typing___Optional[typing___Iterable[type___UninterpretedOption.NamePart]] = ..., - identifier_value : typing___Optional[typing___Text] = ..., - positive_int_value : typing___Optional[builtin___int] = ..., - negative_int_value : typing___Optional[builtin___int] = ..., - double_value : typing___Optional[builtin___float] = ..., - string_value : typing___Optional[builtin___bytes] = ..., - aggregate_value : typing___Optional[typing___Text] = ..., + name : typing.Optional[typing.Iterable[global___UninterpretedOption.NamePart]] = ..., + identifier_value : typing.Optional[typing.Text] = ..., + positive_int_value : typing.Optional[builtins.int] = ..., + negative_int_value : typing.Optional[builtins.int] = ..., + double_value : typing.Optional[builtins.float] = ..., + string_value : typing.Optional[builtins.bytes] = ..., + aggregate_value : typing.Optional[typing.Text] = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions___Literal[u"aggregate_value",b"aggregate_value",u"double_value",b"double_value",u"identifier_value",b"identifier_value",u"negative_int_value",b"negative_int_value",u"positive_int_value",b"positive_int_value",u"string_value",b"string_value"]) -> builtin___bool: ... - def ClearField(self, field_name: typing_extensions___Literal[u"aggregate_value",b"aggregate_value",u"double_value",b"double_value",u"identifier_value",b"identifier_value",u"name",b"name",u"negative_int_value",b"negative_int_value",u"positive_int_value",b"positive_int_value",u"string_value",b"string_value"]) -> None: ... -type___UninterpretedOption = UninterpretedOption - -class SourceCodeInfo(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - class Location(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - path: google___protobuf___internal___containers___RepeatedScalarFieldContainer[builtin___int] = ... - span: google___protobuf___internal___containers___RepeatedScalarFieldContainer[builtin___int] = ... - leading_comments: typing___Text = ... - trailing_comments: typing___Text = ... - leading_detached_comments: google___protobuf___internal___containers___RepeatedScalarFieldContainer[typing___Text] = ... + def HasField(self, field_name: typing_extensions.Literal[u"aggregate_value",b"aggregate_value",u"double_value",b"double_value",u"identifier_value",b"identifier_value",u"negative_int_value",b"negative_int_value",u"positive_int_value",b"positive_int_value",u"string_value",b"string_value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"aggregate_value",b"aggregate_value",u"double_value",b"double_value",u"identifier_value",b"identifier_value",u"name",b"name",u"negative_int_value",b"negative_int_value",u"positive_int_value",b"positive_int_value",u"string_value",b"string_value"]) -> None: ... +global___UninterpretedOption = UninterpretedOption + +class SourceCodeInfo(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + class Location(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PATH_FIELD_NUMBER: builtins.int + SPAN_FIELD_NUMBER: builtins.int + LEADING_COMMENTS_FIELD_NUMBER: builtins.int + TRAILING_COMMENTS_FIELD_NUMBER: builtins.int + LEADING_DETACHED_COMMENTS_FIELD_NUMBER: builtins.int + + @property + def path(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.int]: ... + + @property + def span(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.int]: ... + leading_comments: typing.Text = ... + trailing_comments: typing.Text = ... + + @property + def leading_detached_comments(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[typing.Text]: ... def __init__(self, *, - path : typing___Optional[typing___Iterable[builtin___int]] = ..., - span : typing___Optional[typing___Iterable[builtin___int]] = ..., - leading_comments : typing___Optional[typing___Text] = ..., - trailing_comments : typing___Optional[typing___Text] = ..., - leading_detached_comments : typing___Optional[typing___Iterable[typing___Text]] = ..., + path : typing.Optional[typing.Iterable[builtins.int]] = ..., + span : typing.Optional[typing.Iterable[builtins.int]] = ..., + leading_comments : typing.Optional[typing.Text] = ..., + trailing_comments : typing.Optional[typing.Text] = ..., + leading_detached_comments : typing.Optional[typing.Iterable[typing.Text]] = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions___Literal[u"leading_comments",b"leading_comments",u"trailing_comments",b"trailing_comments"]) -> builtin___bool: ... - def ClearField(self, field_name: typing_extensions___Literal[u"leading_comments",b"leading_comments",u"leading_detached_comments",b"leading_detached_comments",u"path",b"path",u"span",b"span",u"trailing_comments",b"trailing_comments"]) -> None: ... - type___Location = Location + def HasField(self, field_name: typing_extensions.Literal[u"leading_comments",b"leading_comments",u"trailing_comments",b"trailing_comments"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"leading_comments",b"leading_comments",u"leading_detached_comments",b"leading_detached_comments",u"path",b"path",u"span",b"span",u"trailing_comments",b"trailing_comments"]) -> None: ... + LOCATION_FIELD_NUMBER: builtins.int @property - def location(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[type___SourceCodeInfo.Location]: ... + def location(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___SourceCodeInfo.Location]: ... def __init__(self, *, - location : typing___Optional[typing___Iterable[type___SourceCodeInfo.Location]] = ..., + location : typing.Optional[typing.Iterable[global___SourceCodeInfo.Location]] = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions___Literal[u"location",b"location"]) -> None: ... -type___SourceCodeInfo = SourceCodeInfo - -class GeneratedCodeInfo(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - class Annotation(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - path: google___protobuf___internal___containers___RepeatedScalarFieldContainer[builtin___int] = ... - source_file: typing___Text = ... - begin: builtin___int = ... - end: builtin___int = ... + def ClearField(self, field_name: typing_extensions.Literal[u"location",b"location"]) -> None: ... +global___SourceCodeInfo = SourceCodeInfo + +class GeneratedCodeInfo(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + class Annotation(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PATH_FIELD_NUMBER: builtins.int + SOURCE_FILE_FIELD_NUMBER: builtins.int + BEGIN_FIELD_NUMBER: builtins.int + END_FIELD_NUMBER: builtins.int + + @property + def path(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.int]: ... + source_file: typing.Text = ... + begin: builtins.int = ... + end: builtins.int = ... def __init__(self, *, - path : typing___Optional[typing___Iterable[builtin___int]] = ..., - source_file : typing___Optional[typing___Text] = ..., - begin : typing___Optional[builtin___int] = ..., - end : typing___Optional[builtin___int] = ..., + path : typing.Optional[typing.Iterable[builtins.int]] = ..., + source_file : typing.Optional[typing.Text] = ..., + begin : typing.Optional[builtins.int] = ..., + end : typing.Optional[builtins.int] = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions___Literal[u"begin",b"begin",u"end",b"end",u"source_file",b"source_file"]) -> builtin___bool: ... - def ClearField(self, field_name: typing_extensions___Literal[u"begin",b"begin",u"end",b"end",u"path",b"path",u"source_file",b"source_file"]) -> None: ... - type___Annotation = Annotation + def HasField(self, field_name: typing_extensions.Literal[u"begin",b"begin",u"end",b"end",u"source_file",b"source_file"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"begin",b"begin",u"end",b"end",u"path",b"path",u"source_file",b"source_file"]) -> None: ... + ANNOTATION_FIELD_NUMBER: builtins.int @property - def annotation(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[type___GeneratedCodeInfo.Annotation]: ... + def annotation(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___GeneratedCodeInfo.Annotation]: ... def __init__(self, *, - annotation : typing___Optional[typing___Iterable[type___GeneratedCodeInfo.Annotation]] = ..., + annotation : typing.Optional[typing.Iterable[global___GeneratedCodeInfo.Annotation]] = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions___Literal[u"annotation",b"annotation"]) -> None: ... -type___GeneratedCodeInfo = GeneratedCodeInfo + def ClearField(self, field_name: typing_extensions.Literal[u"annotation",b"annotation"]) -> None: ... +global___GeneratedCodeInfo = GeneratedCodeInfo diff --git a/stubs/protobuf/google/protobuf/duration_pb2.pyi b/stubs/protobuf/google/protobuf/duration_pb2.pyi index 619916b7367f..2f8494ed5dc3 100644 --- a/stubs/protobuf/google/protobuf/duration_pb2.pyi +++ b/stubs/protobuf/google/protobuf/duration_pb2.pyi @@ -2,45 +2,25 @@ @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, -) +import builtins +import google.protobuf.descriptor +import google.protobuf.internal.well_known_types +import google.protobuf.message +import typing_extensions -from google.protobuf.internal.well_known_types import ( - Duration as google___protobuf___internal___well_known_types___Duration, -) +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... -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 Duration(google___protobuf___message___Message, google___protobuf___internal___well_known_types___Duration): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - seconds: builtin___int = ... - nanos: builtin___int = ... +class Duration(google.protobuf.message.Message, google.protobuf.internal.well_known_types.Duration): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + SECONDS_FIELD_NUMBER: builtins.int + NANOS_FIELD_NUMBER: builtins.int + seconds: builtins.int = ... + nanos: builtins.int = ... def __init__(self, *, - seconds : typing___Optional[builtin___int] = ..., - nanos : typing___Optional[builtin___int] = ..., + seconds : builtins.int = ..., + nanos : builtins.int = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions___Literal[u"nanos",b"nanos",u"seconds",b"seconds"]) -> None: ... -type___Duration = Duration + def ClearField(self, field_name: typing_extensions.Literal[u"nanos",b"nanos",u"seconds",b"seconds"]) -> None: ... +global___Duration = Duration diff --git a/stubs/protobuf/google/protobuf/empty_pb2.pyi b/stubs/protobuf/google/protobuf/empty_pb2.pyi index 4fc287d7e2ef..2b80c08deee4 100644 --- a/stubs/protobuf/google/protobuf/empty_pb2.pyi +++ b/stubs/protobuf/google/protobuf/empty_pb2.pyi @@ -2,21 +2,14 @@ @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, -) +import google.protobuf.descriptor +import google.protobuf.message -from google.protobuf.message import ( - Message as google___protobuf___message___Message, -) +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... - -DESCRIPTOR: google___protobuf___descriptor___FileDescriptor = ... - -class Empty(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... +class Empty(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... def __init__(self, ) -> None: ... -type___Empty = Empty +global___Empty = Empty diff --git a/stubs/protobuf/google/protobuf/field_mask_pb2.pyi b/stubs/protobuf/google/protobuf/field_mask_pb2.pyi index adc86c28701b..cc5b356730d3 100644 --- a/stubs/protobuf/google/protobuf/field_mask_pb2.pyi +++ b/stubs/protobuf/google/protobuf/field_mask_pb2.pyi @@ -2,49 +2,26 @@ @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, -) +import builtins +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.internal.well_known_types +import google.protobuf.message +import typing +import typing_extensions -from google.protobuf.internal.containers import ( - RepeatedScalarFieldContainer as google___protobuf___internal___containers___RepeatedScalarFieldContainer, -) +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... -from google.protobuf.internal.well_known_types import ( - FieldMask as google___protobuf___internal___well_known_types___FieldMask, -) +class FieldMask(google.protobuf.message.Message, google.protobuf.internal.well_known_types.FieldMask): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PATHS_FIELD_NUMBER: builtins.int -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 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] = ... + @property + def paths(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[typing.Text]: ... def __init__(self, *, - paths : typing___Optional[typing___Iterable[typing___Text]] = ..., + paths : typing.Optional[typing.Iterable[typing.Text]] = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions___Literal[u"paths",b"paths"]) -> None: ... -type___FieldMask = FieldMask + def ClearField(self, field_name: typing_extensions.Literal[u"paths",b"paths"]) -> None: ... +global___FieldMask = FieldMask diff --git a/stubs/protobuf/google/protobuf/source_context_pb2.pyi b/stubs/protobuf/google/protobuf/source_context_pb2.pyi index 6c3b4c8da8d6..5bf0351b20f5 100644 --- a/stubs/protobuf/google/protobuf/source_context_pb2.pyi +++ b/stubs/protobuf/google/protobuf/source_context_pb2.pyi @@ -2,40 +2,22 @@ @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, -) +import builtins +import google.protobuf.descriptor +import google.protobuf.message +import typing +import typing_extensions -from google.protobuf.message import ( - Message as google___protobuf___message___Message, -) +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... -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 SourceContext(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - file_name: typing___Text = ... +class SourceContext(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + FILE_NAME_FIELD_NUMBER: builtins.int + file_name: typing.Text = ... def __init__(self, *, - file_name : typing___Optional[typing___Text] = ..., + file_name : typing.Text = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions___Literal[u"file_name",b"file_name"]) -> None: ... -type___SourceContext = SourceContext + def ClearField(self, field_name: typing_extensions.Literal[u"file_name",b"file_name"]) -> None: ... +global___SourceContext = SourceContext diff --git a/stubs/protobuf/google/protobuf/struct_pb2.pyi b/stubs/protobuf/google/protobuf/struct_pb2.pyi index a6c8221441ec..d3f4667b9d9d 100644 --- a/stubs/protobuf/google/protobuf/struct_pb2.pyi +++ b/stubs/protobuf/google/protobuf/struct_pb2.pyi @@ -2,130 +2,102 @@ @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, - FileDescriptor as google___protobuf___descriptor___FileDescriptor, -) - -from google.protobuf.internal.containers import ( - MessageMap as google___protobuf___internal___containers___MessageMap, - RepeatedCompositeFieldContainer as google___protobuf___internal___containers___RepeatedCompositeFieldContainer, -) - -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 typing import ( - Any, - Iterable as typing___Iterable, - Mapping as typing___Mapping, - 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 = ... - -NullValueValue = typing___NewType('NullValueValue', builtin___int) -type___NullValueValue = NullValueValue - -# We temporary set this to Any to simplify mypy-protobuf migration, -# replace with `NullValue: _NullValue` after mypy-protobuf 1.24 is out. -NullValue = Any - -class _NullValue(google___protobuf___internal___enum_type_wrapper____EnumTypeWrapper[NullValueValue]): - DESCRIPTOR: google___protobuf___descriptor___EnumDescriptor = ... - NULL_VALUE = typing___cast(NullValueValue, 0) -NULL_VALUE = typing___cast(NullValueValue, 0) - -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 = ... - key: typing___Text = ... +import builtins +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.internal.enum_type_wrapper +import google.protobuf.internal.well_known_types +import google.protobuf.message +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +class NullValue(metaclass=_NullValue): + V = typing.NewType('V', builtins.int) + +global___NullValue = NullValue + +NULL_VALUE = NullValue.V(0) + +class _NullValue(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[NullValue.V], builtins.type): # type: ignore + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor = ... + NULL_VALUE = NullValue.V(0) + +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 = ... + KEY_FIELD_NUMBER: builtins.int + VALUE_FIELD_NUMBER: builtins.int + key: typing.Text = ... @property - def value(self) -> type___Value: ... + def value(self) -> global___Value: ... def __init__(self, *, - key : typing___Optional[typing___Text] = ..., - value : typing___Optional[type___Value] = ..., + key : typing.Text = ..., + value : typing.Optional[global___Value] = ..., ) -> 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___FieldsEntry = FieldsEntry + def HasField(self, field_name: typing_extensions.Literal[u"value",b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"key",b"key",u"value",b"value"]) -> None: ... + FIELDS_FIELD_NUMBER: builtins.int @property - def fields(self) -> google___protobuf___internal___containers___MessageMap[typing___Text, type___Value]: ... + def fields(self) -> google.protobuf.internal.containers.MessageMap[typing.Text, global___Value]: ... def __init__(self, *, - fields : typing___Optional[typing___Mapping[typing___Text, type___Value]] = ..., + fields : typing.Optional[typing.Mapping[typing.Text, global___Value]] = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions___Literal[u"fields",b"fields"]) -> None: ... -type___Struct = Struct - -class Value(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - null_value: type___NullValueValue = ... - number_value: builtin___float = ... - string_value: typing___Text = ... - bool_value: builtin___bool = ... + def ClearField(self, field_name: typing_extensions.Literal[u"fields",b"fields"]) -> None: ... +global___Struct = Struct + +class Value(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + NULL_VALUE_FIELD_NUMBER: builtins.int + NUMBER_VALUE_FIELD_NUMBER: builtins.int + STRING_VALUE_FIELD_NUMBER: builtins.int + BOOL_VALUE_FIELD_NUMBER: builtins.int + STRUCT_VALUE_FIELD_NUMBER: builtins.int + LIST_VALUE_FIELD_NUMBER: builtins.int + null_value: global___NullValue.V = ... + number_value: builtins.float = ... + string_value: typing.Text = ... + bool_value: builtins.bool = ... @property - def struct_value(self) -> type___Struct: ... + def struct_value(self) -> global___Struct: ... @property - def list_value(self) -> type___ListValue: ... + def list_value(self) -> global___ListValue: ... def __init__(self, *, - null_value : typing___Optional[type___NullValueValue] = ..., - number_value : typing___Optional[builtin___float] = ..., - string_value : typing___Optional[typing___Text] = ..., - bool_value : typing___Optional[builtin___bool] = ..., - struct_value : typing___Optional[type___Struct] = ..., - list_value : typing___Optional[type___ListValue] = ..., + null_value : global___NullValue.V = ..., + number_value : builtins.float = ..., + string_value : typing.Text = ..., + bool_value : builtins.bool = ..., + struct_value : typing.Optional[global___Struct] = ..., + list_value : typing.Optional[global___ListValue] = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions___Literal[u"bool_value",b"bool_value",u"kind",b"kind",u"list_value",b"list_value",u"null_value",b"null_value",u"number_value",b"number_value",u"string_value",b"string_value",u"struct_value",b"struct_value"]) -> builtin___bool: ... - def ClearField(self, field_name: typing_extensions___Literal[u"bool_value",b"bool_value",u"kind",b"kind",u"list_value",b"list_value",u"null_value",b"null_value",u"number_value",b"number_value",u"string_value",b"string_value",u"struct_value",b"struct_value"]) -> None: ... - 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 + def HasField(self, field_name: typing_extensions.Literal[u"bool_value",b"bool_value",u"kind",b"kind",u"list_value",b"list_value",u"null_value",b"null_value",u"number_value",b"number_value",u"string_value",b"string_value",u"struct_value",b"struct_value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"bool_value",b"bool_value",u"kind",b"kind",u"list_value",b"list_value",u"null_value",b"null_value",u"number_value",b"number_value",u"string_value",b"string_value",u"struct_value",b"struct_value"]) -> None: ... + def WhichOneof(self, oneof_group: typing_extensions.Literal[u"kind",b"kind"]) -> typing.Optional[typing_extensions.Literal["null_value","number_value","string_value","bool_value","struct_value","list_value"]]: ... +global___Value = Value -class ListValue(google___protobuf___message___Message, google___protobuf___internal___well_known_types___ListValue): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... +class ListValue(google.protobuf.message.Message, google.protobuf.internal.well_known_types.ListValue): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + VALUES_FIELD_NUMBER: builtins.int @property - def values(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[type___Value]: ... + def values(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Value]: ... def __init__(self, *, - values : typing___Optional[typing___Iterable[type___Value]] = ..., + values : typing.Optional[typing.Iterable[global___Value]] = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions___Literal[u"values",b"values"]) -> None: ... -type___ListValue = ListValue + def ClearField(self, field_name: typing_extensions.Literal[u"values",b"values"]) -> None: ... +global___ListValue = ListValue diff --git a/stubs/protobuf/google/protobuf/timestamp_pb2.pyi b/stubs/protobuf/google/protobuf/timestamp_pb2.pyi index dfafd2f8602a..025998518efd 100644 --- a/stubs/protobuf/google/protobuf/timestamp_pb2.pyi +++ b/stubs/protobuf/google/protobuf/timestamp_pb2.pyi @@ -2,45 +2,25 @@ @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, -) +import builtins +import google.protobuf.descriptor +import google.protobuf.internal.well_known_types +import google.protobuf.message +import typing_extensions -from google.protobuf.internal.well_known_types import ( - Timestamp as google___protobuf___internal___well_known_types___Timestamp, -) +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... -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 Timestamp(google___protobuf___message___Message, google___protobuf___internal___well_known_types___Timestamp): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - seconds: builtin___int = ... - nanos: builtin___int = ... +class Timestamp(google.protobuf.message.Message, google.protobuf.internal.well_known_types.Timestamp): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + SECONDS_FIELD_NUMBER: builtins.int + NANOS_FIELD_NUMBER: builtins.int + seconds: builtins.int = ... + nanos: builtins.int = ... def __init__(self, *, - seconds : typing___Optional[builtin___int] = ..., - nanos : typing___Optional[builtin___int] = ..., + seconds : builtins.int = ..., + nanos : builtins.int = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions___Literal[u"nanos",b"nanos",u"seconds",b"seconds"]) -> None: ... -type___Timestamp = Timestamp + def ClearField(self, field_name: typing_extensions.Literal[u"nanos",b"nanos",u"seconds",b"seconds"]) -> None: ... +global___Timestamp = Timestamp diff --git a/stubs/protobuf/google/protobuf/type_pb2.pyi b/stubs/protobuf/google/protobuf/type_pb2.pyi index e1db47751da5..34990406b98a 100644 --- a/stubs/protobuf/google/protobuf/type_pb2.pyi +++ b/stubs/protobuf/google/protobuf/type_pb2.pyi @@ -2,236 +2,233 @@ @generated by mypy-protobuf. Do not edit manually! isort:skip_file """ -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.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.source_context_pb2 import ( - SourceContext as google___protobuf___source_context_pb2___SourceContext, -) - -from typing import ( - Iterable as typing___Iterable, - 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 = ... - -SyntaxValue = typing___NewType('SyntaxValue', builtin___int) -type___SyntaxValue = SyntaxValue -Syntax: _Syntax -class _Syntax(google___protobuf___internal___enum_type_wrapper____EnumTypeWrapper[SyntaxValue]): - DESCRIPTOR: google___protobuf___descriptor___EnumDescriptor = ... - SYNTAX_PROTO2 = typing___cast(SyntaxValue, 0) - SYNTAX_PROTO3 = typing___cast(SyntaxValue, 1) -SYNTAX_PROTO2 = typing___cast(SyntaxValue, 0) -SYNTAX_PROTO3 = typing___cast(SyntaxValue, 1) - -class Type(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - name: typing___Text = ... - oneofs: google___protobuf___internal___containers___RepeatedScalarFieldContainer[typing___Text] = ... - syntax: type___SyntaxValue = ... +import builtins +import google.protobuf.any_pb2 +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.internal.enum_type_wrapper +import google.protobuf.message +import google.protobuf.source_context_pb2 +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +class Syntax(metaclass=_Syntax): + V = typing.NewType('V', builtins.int) + +global___Syntax = Syntax + +SYNTAX_PROTO2 = Syntax.V(0) +SYNTAX_PROTO3 = Syntax.V(1) + +class _Syntax(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[Syntax.V], builtins.type): # type: ignore + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor = ... + SYNTAX_PROTO2 = Syntax.V(0) + SYNTAX_PROTO3 = Syntax.V(1) + +class Type(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + NAME_FIELD_NUMBER: builtins.int + FIELDS_FIELD_NUMBER: builtins.int + ONEOFS_FIELD_NUMBER: builtins.int + OPTIONS_FIELD_NUMBER: builtins.int + SOURCE_CONTEXT_FIELD_NUMBER: builtins.int + SYNTAX_FIELD_NUMBER: builtins.int + name: typing.Text = ... @property - def fields(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[type___Field]: ... + def oneofs(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[typing.Text]: ... + syntax: global___Syntax.V = ... @property - def options(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[type___Option]: ... + def fields(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Field]: ... @property - def source_context(self) -> google___protobuf___source_context_pb2___SourceContext: ... + def options(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Option]: ... + + @property + def source_context(self) -> google.protobuf.source_context_pb2.SourceContext: ... def __init__(self, *, - name : typing___Optional[typing___Text] = ..., - fields : typing___Optional[typing___Iterable[type___Field]] = ..., - oneofs : typing___Optional[typing___Iterable[typing___Text]] = ..., - options : typing___Optional[typing___Iterable[type___Option]] = ..., - source_context : typing___Optional[google___protobuf___source_context_pb2___SourceContext] = ..., - syntax : typing___Optional[type___SyntaxValue] = ..., + name : typing.Text = ..., + fields : typing.Optional[typing.Iterable[global___Field]] = ..., + oneofs : typing.Optional[typing.Iterable[typing.Text]] = ..., + options : typing.Optional[typing.Iterable[global___Option]] = ..., + source_context : typing.Optional[google.protobuf.source_context_pb2.SourceContext] = ..., + syntax : global___Syntax.V = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions___Literal[u"source_context",b"source_context"]) -> builtin___bool: ... - def ClearField(self, field_name: typing_extensions___Literal[u"fields",b"fields",u"name",b"name",u"oneofs",b"oneofs",u"options",b"options",u"source_context",b"source_context",u"syntax",b"syntax"]) -> None: ... -type___Type = Type - -class Field(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - KindValue = typing___NewType('KindValue', builtin___int) - type___KindValue = KindValue - Kind: _Kind - class _Kind(google___protobuf___internal___enum_type_wrapper____EnumTypeWrapper[Field.KindValue]): - DESCRIPTOR: google___protobuf___descriptor___EnumDescriptor = ... - TYPE_UNKNOWN = typing___cast(Field.KindValue, 0) - TYPE_DOUBLE = typing___cast(Field.KindValue, 1) - TYPE_FLOAT = typing___cast(Field.KindValue, 2) - TYPE_INT64 = typing___cast(Field.KindValue, 3) - TYPE_UINT64 = typing___cast(Field.KindValue, 4) - TYPE_INT32 = typing___cast(Field.KindValue, 5) - TYPE_FIXED64 = typing___cast(Field.KindValue, 6) - TYPE_FIXED32 = typing___cast(Field.KindValue, 7) - TYPE_BOOL = typing___cast(Field.KindValue, 8) - TYPE_STRING = typing___cast(Field.KindValue, 9) - TYPE_GROUP = typing___cast(Field.KindValue, 10) - TYPE_MESSAGE = typing___cast(Field.KindValue, 11) - TYPE_BYTES = typing___cast(Field.KindValue, 12) - TYPE_UINT32 = typing___cast(Field.KindValue, 13) - TYPE_ENUM = typing___cast(Field.KindValue, 14) - TYPE_SFIXED32 = typing___cast(Field.KindValue, 15) - TYPE_SFIXED64 = typing___cast(Field.KindValue, 16) - TYPE_SINT32 = typing___cast(Field.KindValue, 17) - TYPE_SINT64 = typing___cast(Field.KindValue, 18) - TYPE_UNKNOWN = typing___cast(Field.KindValue, 0) - TYPE_DOUBLE = typing___cast(Field.KindValue, 1) - TYPE_FLOAT = typing___cast(Field.KindValue, 2) - TYPE_INT64 = typing___cast(Field.KindValue, 3) - TYPE_UINT64 = typing___cast(Field.KindValue, 4) - TYPE_INT32 = typing___cast(Field.KindValue, 5) - TYPE_FIXED64 = typing___cast(Field.KindValue, 6) - TYPE_FIXED32 = typing___cast(Field.KindValue, 7) - TYPE_BOOL = typing___cast(Field.KindValue, 8) - TYPE_STRING = typing___cast(Field.KindValue, 9) - TYPE_GROUP = typing___cast(Field.KindValue, 10) - TYPE_MESSAGE = typing___cast(Field.KindValue, 11) - TYPE_BYTES = typing___cast(Field.KindValue, 12) - TYPE_UINT32 = typing___cast(Field.KindValue, 13) - TYPE_ENUM = typing___cast(Field.KindValue, 14) - TYPE_SFIXED32 = typing___cast(Field.KindValue, 15) - TYPE_SFIXED64 = typing___cast(Field.KindValue, 16) - TYPE_SINT32 = typing___cast(Field.KindValue, 17) - TYPE_SINT64 = typing___cast(Field.KindValue, 18) - - CardinalityValue = typing___NewType('CardinalityValue', builtin___int) - type___CardinalityValue = CardinalityValue - Cardinality: _Cardinality - class _Cardinality(google___protobuf___internal___enum_type_wrapper____EnumTypeWrapper[Field.CardinalityValue]): - DESCRIPTOR: google___protobuf___descriptor___EnumDescriptor = ... - CARDINALITY_UNKNOWN = typing___cast(Field.CardinalityValue, 0) - CARDINALITY_OPTIONAL = typing___cast(Field.CardinalityValue, 1) - CARDINALITY_REQUIRED = typing___cast(Field.CardinalityValue, 2) - CARDINALITY_REPEATED = typing___cast(Field.CardinalityValue, 3) - CARDINALITY_UNKNOWN = typing___cast(Field.CardinalityValue, 0) - CARDINALITY_OPTIONAL = typing___cast(Field.CardinalityValue, 1) - CARDINALITY_REQUIRED = typing___cast(Field.CardinalityValue, 2) - CARDINALITY_REPEATED = typing___cast(Field.CardinalityValue, 3) - - kind: type___Field.KindValue = ... - cardinality: type___Field.CardinalityValue = ... - number: builtin___int = ... - name: typing___Text = ... - type_url: typing___Text = ... - oneof_index: builtin___int = ... - packed: builtin___bool = ... - json_name: typing___Text = ... - default_value: typing___Text = ... + def HasField(self, field_name: typing_extensions.Literal[u"source_context",b"source_context"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"fields",b"fields",u"name",b"name",u"oneofs",b"oneofs",u"options",b"options",u"source_context",b"source_context",u"syntax",b"syntax"]) -> None: ... +global___Type = Type + +class Field(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + class Kind(metaclass=_Kind): + V = typing.NewType('V', builtins.int) + + TYPE_UNKNOWN = Field.Kind.V(0) + TYPE_DOUBLE = Field.Kind.V(1) + TYPE_FLOAT = Field.Kind.V(2) + TYPE_INT64 = Field.Kind.V(3) + TYPE_UINT64 = Field.Kind.V(4) + TYPE_INT32 = Field.Kind.V(5) + TYPE_FIXED64 = Field.Kind.V(6) + TYPE_FIXED32 = Field.Kind.V(7) + TYPE_BOOL = Field.Kind.V(8) + TYPE_STRING = Field.Kind.V(9) + TYPE_GROUP = Field.Kind.V(10) + TYPE_MESSAGE = Field.Kind.V(11) + TYPE_BYTES = Field.Kind.V(12) + TYPE_UINT32 = Field.Kind.V(13) + TYPE_ENUM = Field.Kind.V(14) + TYPE_SFIXED32 = Field.Kind.V(15) + TYPE_SFIXED64 = Field.Kind.V(16) + TYPE_SINT32 = Field.Kind.V(17) + TYPE_SINT64 = Field.Kind.V(18) + + class _Kind(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[Kind.V], builtins.type): # type: ignore + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor = ... + TYPE_UNKNOWN = Field.Kind.V(0) + TYPE_DOUBLE = Field.Kind.V(1) + TYPE_FLOAT = Field.Kind.V(2) + TYPE_INT64 = Field.Kind.V(3) + TYPE_UINT64 = Field.Kind.V(4) + TYPE_INT32 = Field.Kind.V(5) + TYPE_FIXED64 = Field.Kind.V(6) + TYPE_FIXED32 = Field.Kind.V(7) + TYPE_BOOL = Field.Kind.V(8) + TYPE_STRING = Field.Kind.V(9) + TYPE_GROUP = Field.Kind.V(10) + TYPE_MESSAGE = Field.Kind.V(11) + TYPE_BYTES = Field.Kind.V(12) + TYPE_UINT32 = Field.Kind.V(13) + TYPE_ENUM = Field.Kind.V(14) + TYPE_SFIXED32 = Field.Kind.V(15) + TYPE_SFIXED64 = Field.Kind.V(16) + TYPE_SINT32 = Field.Kind.V(17) + TYPE_SINT64 = Field.Kind.V(18) + + class Cardinality(metaclass=_Cardinality): + V = typing.NewType('V', builtins.int) + + CARDINALITY_UNKNOWN = Field.Cardinality.V(0) + CARDINALITY_OPTIONAL = Field.Cardinality.V(1) + CARDINALITY_REQUIRED = Field.Cardinality.V(2) + CARDINALITY_REPEATED = Field.Cardinality.V(3) + + class _Cardinality(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[Cardinality.V], builtins.type): # type: ignore + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor = ... + CARDINALITY_UNKNOWN = Field.Cardinality.V(0) + CARDINALITY_OPTIONAL = Field.Cardinality.V(1) + CARDINALITY_REQUIRED = Field.Cardinality.V(2) + CARDINALITY_REPEATED = Field.Cardinality.V(3) + + KIND_FIELD_NUMBER: builtins.int + CARDINALITY_FIELD_NUMBER: builtins.int + NUMBER_FIELD_NUMBER: builtins.int + NAME_FIELD_NUMBER: builtins.int + TYPE_URL_FIELD_NUMBER: builtins.int + ONEOF_INDEX_FIELD_NUMBER: builtins.int + PACKED_FIELD_NUMBER: builtins.int + OPTIONS_FIELD_NUMBER: builtins.int + JSON_NAME_FIELD_NUMBER: builtins.int + DEFAULT_VALUE_FIELD_NUMBER: builtins.int + kind: global___Field.Kind.V = ... + cardinality: global___Field.Cardinality.V = ... + number: builtins.int = ... + name: typing.Text = ... + type_url: typing.Text = ... + oneof_index: builtins.int = ... + packed: builtins.bool = ... + json_name: typing.Text = ... + default_value: typing.Text = ... @property - def options(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[type___Option]: ... + def options(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Option]: ... def __init__(self, *, - kind : typing___Optional[type___Field.KindValue] = ..., - cardinality : typing___Optional[type___Field.CardinalityValue] = ..., - number : typing___Optional[builtin___int] = ..., - name : typing___Optional[typing___Text] = ..., - type_url : typing___Optional[typing___Text] = ..., - oneof_index : typing___Optional[builtin___int] = ..., - packed : typing___Optional[builtin___bool] = ..., - options : typing___Optional[typing___Iterable[type___Option]] = ..., - json_name : typing___Optional[typing___Text] = ..., - default_value : typing___Optional[typing___Text] = ..., + kind : global___Field.Kind.V = ..., + cardinality : global___Field.Cardinality.V = ..., + number : builtins.int = ..., + name : typing.Text = ..., + type_url : typing.Text = ..., + oneof_index : builtins.int = ..., + packed : builtins.bool = ..., + options : typing.Optional[typing.Iterable[global___Option]] = ..., + json_name : typing.Text = ..., + default_value : typing.Text = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions___Literal[u"cardinality",b"cardinality",u"default_value",b"default_value",u"json_name",b"json_name",u"kind",b"kind",u"name",b"name",u"number",b"number",u"oneof_index",b"oneof_index",u"options",b"options",u"packed",b"packed",u"type_url",b"type_url"]) -> None: ... -type___Field = Field - -class Enum(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - name: typing___Text = ... - syntax: type___SyntaxValue = ... + def ClearField(self, field_name: typing_extensions.Literal[u"cardinality",b"cardinality",u"default_value",b"default_value",u"json_name",b"json_name",u"kind",b"kind",u"name",b"name",u"number",b"number",u"oneof_index",b"oneof_index",u"options",b"options",u"packed",b"packed",u"type_url",b"type_url"]) -> None: ... +global___Field = Field + +class Enum(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + NAME_FIELD_NUMBER: builtins.int + ENUMVALUE_FIELD_NUMBER: builtins.int + OPTIONS_FIELD_NUMBER: builtins.int + SOURCE_CONTEXT_FIELD_NUMBER: builtins.int + SYNTAX_FIELD_NUMBER: builtins.int + name: typing.Text = ... + syntax: global___Syntax.V = ... @property - def enumvalue(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[type___EnumValue]: ... + def enumvalue(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___EnumValue]: ... @property - def options(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[type___Option]: ... + def options(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Option]: ... @property - def source_context(self) -> google___protobuf___source_context_pb2___SourceContext: ... + def source_context(self) -> google.protobuf.source_context_pb2.SourceContext: ... def __init__(self, *, - name : typing___Optional[typing___Text] = ..., - enumvalue : typing___Optional[typing___Iterable[type___EnumValue]] = ..., - options : typing___Optional[typing___Iterable[type___Option]] = ..., - source_context : typing___Optional[google___protobuf___source_context_pb2___SourceContext] = ..., - syntax : typing___Optional[type___SyntaxValue] = ..., + name : typing.Text = ..., + enumvalue : typing.Optional[typing.Iterable[global___EnumValue]] = ..., + options : typing.Optional[typing.Iterable[global___Option]] = ..., + source_context : typing.Optional[google.protobuf.source_context_pb2.SourceContext] = ..., + syntax : global___Syntax.V = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions___Literal[u"source_context",b"source_context"]) -> builtin___bool: ... - def ClearField(self, field_name: typing_extensions___Literal[u"enumvalue",b"enumvalue",u"name",b"name",u"options",b"options",u"source_context",b"source_context",u"syntax",b"syntax"]) -> None: ... -type___Enum = Enum - -class EnumValue(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - name: typing___Text = ... - number: builtin___int = ... + def HasField(self, field_name: typing_extensions.Literal[u"source_context",b"source_context"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"enumvalue",b"enumvalue",u"name",b"name",u"options",b"options",u"source_context",b"source_context",u"syntax",b"syntax"]) -> None: ... +global___Enum = Enum + +class EnumValue(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + NAME_FIELD_NUMBER: builtins.int + NUMBER_FIELD_NUMBER: builtins.int + OPTIONS_FIELD_NUMBER: builtins.int + name: typing.Text = ... + number: builtins.int = ... @property - def options(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[type___Option]: ... + def options(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Option]: ... def __init__(self, *, - name : typing___Optional[typing___Text] = ..., - number : typing___Optional[builtin___int] = ..., - options : typing___Optional[typing___Iterable[type___Option]] = ..., + name : typing.Text = ..., + number : builtins.int = ..., + options : typing.Optional[typing.Iterable[global___Option]] = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions___Literal[u"name",b"name",u"number",b"number",u"options",b"options"]) -> None: ... -type___EnumValue = EnumValue + def ClearField(self, field_name: typing_extensions.Literal[u"name",b"name",u"number",b"number",u"options",b"options"]) -> None: ... +global___EnumValue = EnumValue -class Option(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - name: typing___Text = ... +class Option(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + NAME_FIELD_NUMBER: builtins.int + VALUE_FIELD_NUMBER: builtins.int + name: typing.Text = ... @property - def value(self) -> google___protobuf___any_pb2___Any: ... + def value(self) -> google.protobuf.any_pb2.Any: ... def __init__(self, *, - name : typing___Optional[typing___Text] = ..., - value : typing___Optional[google___protobuf___any_pb2___Any] = ..., + name : typing.Text = ..., + value : typing.Optional[google.protobuf.any_pb2.Any] = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions___Literal[u"value",b"value"]) -> builtin___bool: ... - def ClearField(self, field_name: typing_extensions___Literal[u"name",b"name",u"value",b"value"]) -> None: ... -type___Option = Option + def HasField(self, field_name: typing_extensions.Literal[u"value",b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"name",b"name",u"value",b"value"]) -> None: ... +global___Option = Option diff --git a/stubs/protobuf/google/protobuf/wrappers_pb2.pyi b/stubs/protobuf/google/protobuf/wrappers_pb2.pyi index f6976cad7cbd..127a865a9b17 100644 --- a/stubs/protobuf/google/protobuf/wrappers_pb2.pyi +++ b/stubs/protobuf/google/protobuf/wrappers_pb2.pyi @@ -2,128 +2,118 @@ @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, -) +import builtins +import google.protobuf.descriptor +import google.protobuf.message +import typing +import typing_extensions -from google.protobuf.message import ( - Message as google___protobuf___message___Message, -) +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... -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 DoubleValue(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - value: builtin___float = ... +class DoubleValue(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + VALUE_FIELD_NUMBER: builtins.int + value: builtins.float = ... def __init__(self, *, - value : typing___Optional[builtin___float] = ..., + value : builtins.float = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions___Literal[u"value",b"value"]) -> None: ... -type___DoubleValue = DoubleValue + def ClearField(self, field_name: typing_extensions.Literal[u"value",b"value"]) -> None: ... +global___DoubleValue = DoubleValue -class FloatValue(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - value: builtin___float = ... +class FloatValue(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + VALUE_FIELD_NUMBER: builtins.int + value: builtins.float = ... def __init__(self, *, - value : typing___Optional[builtin___float] = ..., + value : builtins.float = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions___Literal[u"value",b"value"]) -> None: ... -type___FloatValue = FloatValue + def ClearField(self, field_name: typing_extensions.Literal[u"value",b"value"]) -> None: ... +global___FloatValue = FloatValue -class Int64Value(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - value: builtin___int = ... +class Int64Value(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + VALUE_FIELD_NUMBER: builtins.int + value: builtins.int = ... def __init__(self, *, - value : typing___Optional[builtin___int] = ..., + value : builtins.int = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions___Literal[u"value",b"value"]) -> None: ... -type___Int64Value = Int64Value + def ClearField(self, field_name: typing_extensions.Literal[u"value",b"value"]) -> None: ... +global___Int64Value = Int64Value -class UInt64Value(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - value: builtin___int = ... +class UInt64Value(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + VALUE_FIELD_NUMBER: builtins.int + value: builtins.int = ... def __init__(self, *, - value : typing___Optional[builtin___int] = ..., + value : builtins.int = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions___Literal[u"value",b"value"]) -> None: ... -type___UInt64Value = UInt64Value + def ClearField(self, field_name: typing_extensions.Literal[u"value",b"value"]) -> None: ... +global___UInt64Value = UInt64Value -class Int32Value(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - value: builtin___int = ... +class Int32Value(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + VALUE_FIELD_NUMBER: builtins.int + value: builtins.int = ... def __init__(self, *, - value : typing___Optional[builtin___int] = ..., + value : builtins.int = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions___Literal[u"value",b"value"]) -> None: ... -type___Int32Value = Int32Value + def ClearField(self, field_name: typing_extensions.Literal[u"value",b"value"]) -> None: ... +global___Int32Value = Int32Value -class UInt32Value(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - value: builtin___int = ... +class UInt32Value(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + VALUE_FIELD_NUMBER: builtins.int + value: builtins.int = ... def __init__(self, *, - value : typing___Optional[builtin___int] = ..., + value : builtins.int = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions___Literal[u"value",b"value"]) -> None: ... -type___UInt32Value = UInt32Value + def ClearField(self, field_name: typing_extensions.Literal[u"value",b"value"]) -> None: ... +global___UInt32Value = UInt32Value -class BoolValue(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - value: builtin___bool = ... +class BoolValue(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + VALUE_FIELD_NUMBER: builtins.int + value: builtins.bool = ... def __init__(self, *, - value : typing___Optional[builtin___bool] = ..., + value : builtins.bool = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions___Literal[u"value",b"value"]) -> None: ... -type___BoolValue = BoolValue + def ClearField(self, field_name: typing_extensions.Literal[u"value",b"value"]) -> None: ... +global___BoolValue = BoolValue -class StringValue(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - value: typing___Text = ... +class StringValue(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + VALUE_FIELD_NUMBER: builtins.int + value: typing.Text = ... def __init__(self, *, - value : typing___Optional[typing___Text] = ..., + value : typing.Text = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions___Literal[u"value",b"value"]) -> None: ... -type___StringValue = StringValue + def ClearField(self, field_name: typing_extensions.Literal[u"value",b"value"]) -> None: ... +global___StringValue = StringValue -class BytesValue(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - value: builtin___bytes = ... +class BytesValue(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + VALUE_FIELD_NUMBER: builtins.int + value: builtins.bytes = ... def __init__(self, *, - value : typing___Optional[builtin___bytes] = ..., + value : builtins.bytes = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions___Literal[u"value",b"value"]) -> None: ... -type___BytesValue = BytesValue + def ClearField(self, field_name: typing_extensions.Literal[u"value",b"value"]) -> None: ... +global___BytesValue = BytesValue From f55884f3c78fe2ca990c46f6358649ae287d32fb Mon Sep 17 00:00:00 2001 From: Nipunn Koorapati Date: Sat, 10 Jul 2021 16:38:48 -0700 Subject: [PATCH 2/2] Add extra_description indicating which version generated it --- stubs/protobuf/METADATA.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/stubs/protobuf/METADATA.toml b/stubs/protobuf/METADATA.toml index 88eaad7286b7..a30e215a8626 100644 --- a/stubs/protobuf/METADATA.toml +++ b/stubs/protobuf/METADATA.toml @@ -1,3 +1,4 @@ version = "3.17" python2 = true requires = ["types-futures"] +extra_description = "Generated with aid from mypy-protobuf 2.6"