diff --git a/scripts/generate_proto_stubs.sh b/scripts/generate_proto_stubs.sh index 1bb7a8c6a..b63cffcc8 100755 --- a/scripts/generate_proto_stubs.sh +++ b/scripts/generate_proto_stubs.sh @@ -11,8 +11,8 @@ set -ex -o pipefail # followed by committing the changes to typeshed # # Update these two variables when rerunning script -PROTOBUF_VERSION=3.19.2 -MYPY_PROTOBUF_VERSION=v3.0.0 +PROTOBUF_VERSION=3.19.3 +MYPY_PROTOBUF_VERSION=v3.2.0 if uname -a | grep Darwin; then # brew install coreutils wget diff --git a/stubs/protobuf/METADATA.toml b/stubs/protobuf/METADATA.toml index cd11ebcd1..808e95a45 100644 --- a/stubs/protobuf/METADATA.toml +++ b/stubs/protobuf/METADATA.toml @@ -1,4 +1,4 @@ version = "3.19.*" python2 = true requires = ["types-futures"] -extra_description = "Generated with aid from mypy-protobuf v3.0.0" +extra_description = "Generated with aid from mypy-protobuf v3.2.0" diff --git a/stubs/protobuf/google/protobuf/any_pb2.pyi b/stubs/protobuf/google/protobuf/any_pb2.pyi index 4d800b304..f78f7101a 100644 --- a/stubs/protobuf/google/protobuf/any_pb2.pyi +++ b/stubs/protobuf/google/protobuf/any_pb2.pyi @@ -9,7 +9,7 @@ import google.protobuf.message import typing import typing_extensions -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor class Any(google.protobuf.message.Message, google.protobuf.internal.well_known_types.Any): """`Any` contains an arbitrary serialized protocol buffer message along with a @@ -95,10 +95,10 @@ class Any(google.protobuf.message.Message, google.protobuf.internal.well_known_t "value": "1.212s" } """ - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + DESCRIPTOR: google.protobuf.descriptor.Descriptor TYPE_URL_FIELD_NUMBER: builtins.int VALUE_FIELD_NUMBER: builtins.int - type_url: typing.Text = ... + type_url: typing.Text """A URL/resource name that uniquely identifies the type of the serialized protocol buffer message. This string must contain at least one "/" character. The last segment of the URL's path must represent @@ -128,13 +128,13 @@ class Any(google.protobuf.message.Message, google.protobuf.internal.well_known_t used with implementation specific semantics. """ - value: builtins.bytes = ... + value: builtins.bytes """Must be a valid serialized protocol buffer of the above specified type.""" def __init__(self, *, - type_url : typing.Text = ..., - value : builtins.bytes = ..., + type_url: typing.Text = ..., + value: builtins.bytes = ..., ) -> None: ... def ClearField(self, field_name: typing_extensions.Literal["type_url",b"type_url","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 c7d3dd04c..5c435a784 100644 --- a/stubs/protobuf/google/protobuf/api_pb2.pyi +++ b/stubs/protobuf/google/protobuf/api_pb2.pyi @@ -11,7 +11,7 @@ import google.protobuf.type_pb2 import typing import typing_extensions -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor class Api(google.protobuf.message.Message): """Api is a light-weight descriptor for an API Interface. @@ -24,7 +24,7 @@ class Api(google.protobuf.message.Message): this message itself. See https://cloud.google.com/apis/design/glossary for detailed terminology. """ - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + DESCRIPTOR: google.protobuf.descriptor.Descriptor NAME_FIELD_NUMBER: builtins.int METHODS_FIELD_NUMBER: builtins.int OPTIONS_FIELD_NUMBER: builtins.int @@ -32,7 +32,7 @@ class Api(google.protobuf.message.Message): SOURCE_CONTEXT_FIELD_NUMBER: builtins.int MIXINS_FIELD_NUMBER: builtins.int SYNTAX_FIELD_NUMBER: builtins.int - name: typing.Text = ... + name: typing.Text """The fully qualified name of this interface, including package name followed by the interface's simple name. """ @@ -45,7 +45,7 @@ class Api(google.protobuf.message.Message): def options(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[google.protobuf.type_pb2.Option]: """Any metadata attached to the interface.""" pass - version: typing.Text = ... + version: typing.Text """A version string for this interface. If specified, must have the form `major-version.minor-version`, as in `1.10`. If the minor version is omitted, it defaults to zero. If the entire version field is empty, the @@ -77,18 +77,18 @@ class Api(google.protobuf.message.Message): def mixins(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Mixin]: """Included interfaces. See [Mixin][].""" pass - syntax: google.protobuf.type_pb2.Syntax.V = ... + syntax: google.protobuf.type_pb2.Syntax.ValueType """The source syntax of the service.""" def __init__(self, *, - 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 = ..., + 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.ValueType = ..., ) -> None: ... def HasField(self, field_name: typing_extensions.Literal["source_context",b"source_context"]) -> builtins.bool: ... def ClearField(self, field_name: typing_extensions.Literal["methods",b"methods","mixins",b"mixins","name",b"name","options",b"options","source_context",b"source_context","syntax",b"syntax","version",b"version"]) -> None: ... @@ -96,7 +96,7 @@ global___Api = Api class Method(google.protobuf.message.Message): """Method represents a method of an API interface.""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + DESCRIPTOR: google.protobuf.descriptor.Descriptor NAME_FIELD_NUMBER: builtins.int REQUEST_TYPE_URL_FIELD_NUMBER: builtins.int REQUEST_STREAMING_FIELD_NUMBER: builtins.int @@ -104,37 +104,37 @@ class Method(google.protobuf.message.Message): RESPONSE_STREAMING_FIELD_NUMBER: builtins.int OPTIONS_FIELD_NUMBER: builtins.int SYNTAX_FIELD_NUMBER: builtins.int - name: typing.Text = ... + name: typing.Text """The simple name of this method.""" - request_type_url: typing.Text = ... + request_type_url: typing.Text """A URL of the input message type.""" - request_streaming: builtins.bool = ... + request_streaming: builtins.bool """If true, the request is streamed.""" - response_type_url: typing.Text = ... + response_type_url: typing.Text """The URL of the output message type.""" - response_streaming: builtins.bool = ... + response_streaming: builtins.bool """If true, the response is streamed.""" @property def options(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[google.protobuf.type_pb2.Option]: """Any metadata attached to the method.""" pass - syntax: google.protobuf.type_pb2.Syntax.V = ... + syntax: google.protobuf.type_pb2.Syntax.ValueType """The source syntax of this method.""" def __init__(self, *, - 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 = ..., + 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.ValueType = ..., ) -> None: ... def ClearField(self, field_name: typing_extensions.Literal["name",b"name","options",b"options","request_streaming",b"request_streaming","request_type_url",b"request_type_url","response_streaming",b"response_streaming","response_type_url",b"response_type_url","syntax",b"syntax"]) -> None: ... global___Method = Method @@ -219,21 +219,21 @@ class Mixin(google.protobuf.message.Message): ... } """ - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + DESCRIPTOR: google.protobuf.descriptor.Descriptor NAME_FIELD_NUMBER: builtins.int ROOT_FIELD_NUMBER: builtins.int - name: typing.Text = ... + name: typing.Text """The fully qualified name of the interface which is included.""" - root: typing.Text = ... + root: typing.Text """If non-empty specifies a path under which inherited HTTP paths are rooted. """ def __init__(self, *, - name : typing.Text = ..., - root : typing.Text = ..., + name: typing.Text = ..., + root: typing.Text = ..., ) -> None: ... def ClearField(self, field_name: typing_extensions.Literal["name",b"name","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 b3e034115..543116729 100644 --- a/stubs/protobuf/google/protobuf/compiler/plugin_pb2.pyi +++ b/stubs/protobuf/google/protobuf/compiler/plugin_pb2.pyi @@ -11,29 +11,29 @@ import google.protobuf.message import typing import typing_extensions -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor class Version(google.protobuf.message.Message): """The version number of protocol compiler.""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + 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 = ... + major: builtins.int + minor: builtins.int + patch: builtins.int + suffix: typing.Text """A suffix for alpha, beta or rc release, e.g., "alpha-1", "rc2". It should be empty for mainline stable releases. """ def __init__(self, *, - major : typing.Optional[builtins.int] = ..., - minor : typing.Optional[builtins.int] = ..., - patch : typing.Optional[builtins.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["major",b"major","minor",b"minor","patch",b"patch","suffix",b"suffix"]) -> builtins.bool: ... def ClearField(self, field_name: typing_extensions.Literal["major",b"major","minor",b"minor","patch",b"patch","suffix",b"suffix"]) -> None: ... @@ -41,7 +41,7 @@ global___Version = Version class CodeGeneratorRequest(google.protobuf.message.Message): """An encoded CodeGeneratorRequest is written to the plugin's stdin.""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + DESCRIPTOR: google.protobuf.descriptor.Descriptor FILE_TO_GENERATE_FIELD_NUMBER: builtins.int PARAMETER_FIELD_NUMBER: builtins.int PROTO_FILE_FIELD_NUMBER: builtins.int @@ -53,7 +53,7 @@ class CodeGeneratorRequest(google.protobuf.message.Message): descriptor will be included in proto_file, below. """ pass - parameter: typing.Text = ... + parameter: typing.Text """The generator parameter passed on the command-line.""" @property @@ -80,10 +80,10 @@ class CodeGeneratorRequest(google.protobuf.message.Message): pass 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[global___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["compiler_version",b"compiler_version","parameter",b"parameter"]) -> builtins.bool: ... def ClearField(self, field_name: typing_extensions.Literal["compiler_version",b"compiler_version","file_to_generate",b"file_to_generate","parameter",b"parameter","proto_file",b"proto_file"]) -> None: ... @@ -91,28 +91,29 @@ global___CodeGeneratorRequest = CodeGeneratorRequest class CodeGeneratorResponse(google.protobuf.message.Message): """The plugin writes an encoded CodeGeneratorResponse to stdout.""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + DESCRIPTOR: google.protobuf.descriptor.Descriptor + class _Feature: + ValueType = typing.NewType('ValueType', builtins.int) + V: typing_extensions.TypeAlias = ValueType + class _FeatureEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[CodeGeneratorResponse._Feature.ValueType], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor + FEATURE_NONE: CodeGeneratorResponse._Feature.ValueType # 0 + FEATURE_PROTO3_OPTIONAL: CodeGeneratorResponse._Feature.ValueType # 1 class Feature(_Feature, metaclass=_FeatureEnumTypeWrapper): """Sync with code_generator.h.""" pass - class _Feature: - V = typing.NewType('V', builtins.int) - class _FeatureEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_Feature.V], builtins.type): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor = ... - FEATURE_NONE = CodeGeneratorResponse.Feature.V(0) - FEATURE_PROTO3_OPTIONAL = CodeGeneratorResponse.Feature.V(1) - FEATURE_NONE = CodeGeneratorResponse.Feature.V(0) - FEATURE_PROTO3_OPTIONAL = CodeGeneratorResponse.Feature.V(1) + FEATURE_NONE: CodeGeneratorResponse.Feature.ValueType # 0 + FEATURE_PROTO3_OPTIONAL: CodeGeneratorResponse.Feature.ValueType # 1 class File(google.protobuf.message.Message): """Represents a single generated file.""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + 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 = ... + name: typing.Text """The file name, relative to the output directory. The name must not contain "." or ".." components and must be relative, not be absolute (so, the file cannot lie outside the output directory). "/" must be used as @@ -126,7 +127,7 @@ class CodeGeneratorResponse(google.protobuf.message.Message): CodeGeneratorResponse before writing files to disk. """ - insertion_point: typing.Text = ... + insertion_point: typing.Text """If non-empty, indicates that the named file should already exist, and the content here is to be inserted into that file at a defined insertion point. This feature allows a code generator to extend the output @@ -166,7 +167,7 @@ class CodeGeneratorResponse(google.protobuf.message.Message): If |insertion_point| is present, |name| must also be present. """ - content: typing.Text = ... + content: typing.Text """The file contents.""" @property @@ -178,10 +179,10 @@ class CodeGeneratorResponse(google.protobuf.message.Message): pass 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["content",b"content","generated_code_info",b"generated_code_info","insertion_point",b"insertion_point","name",b"name"]) -> builtins.bool: ... def ClearField(self, field_name: typing_extensions.Literal["content",b"content","generated_code_info",b"generated_code_info","insertion_point",b"insertion_point","name",b"name"]) -> None: ... @@ -189,7 +190,7 @@ class CodeGeneratorResponse(google.protobuf.message.Message): ERROR_FIELD_NUMBER: builtins.int SUPPORTED_FEATURES_FIELD_NUMBER: builtins.int FILE_FIELD_NUMBER: builtins.int - error: typing.Text = ... + error: typing.Text """Error message. If non-empty, code generation failed. The plugin process should exit with status code zero even if it reports an error in this way. @@ -200,7 +201,7 @@ class CodeGeneratorResponse(google.protobuf.message.Message): exiting with a non-zero status code. """ - supported_features: builtins.int = ... + supported_features: builtins.int """A bitmask of supported features that the code generator supports. This is a bitwise "or" of values from the Feature enum. """ @@ -209,9 +210,9 @@ class CodeGeneratorResponse(google.protobuf.message.Message): def file(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___CodeGeneratorResponse.File]: ... def __init__(self, *, - error : typing.Optional[typing.Text] = ..., - supported_features : typing.Optional[builtins.int] = ..., - file : typing.Optional[typing.Iterable[global___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["error",b"error","supported_features",b"supported_features"]) -> builtins.bool: ... def ClearField(self, field_name: typing_extensions.Literal["error",b"error","file",b"file","supported_features",b"supported_features"]) -> None: ... diff --git a/stubs/protobuf/google/protobuf/descriptor_pb2.pyi b/stubs/protobuf/google/protobuf/descriptor_pb2.pyi index 555c15131..a3e816b9e 100644 --- a/stubs/protobuf/google/protobuf/descriptor_pb2.pyi +++ b/stubs/protobuf/google/protobuf/descriptor_pb2.pyi @@ -10,26 +10,26 @@ import google.protobuf.message import typing import typing_extensions -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor class FileDescriptorSet(google.protobuf.message.Message): """The protocol compiler can output a FileDescriptorSet containing the .proto files it parses. """ - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + DESCRIPTOR: google.protobuf.descriptor.Descriptor FILE_FIELD_NUMBER: builtins.int @property def file(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___FileDescriptorProto]: ... def __init__(self, *, - file : typing.Optional[typing.Iterable[global___FileDescriptorProto]] = ..., + file: typing.Optional[typing.Iterable[global___FileDescriptorProto]] = ..., ) -> None: ... def ClearField(self, field_name: typing_extensions.Literal["file",b"file"]) -> None: ... global___FileDescriptorSet = FileDescriptorSet class FileDescriptorProto(google.protobuf.message.Message): """Describes a complete .proto file.""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + DESCRIPTOR: google.protobuf.descriptor.Descriptor NAME_FIELD_NUMBER: builtins.int PACKAGE_FIELD_NUMBER: builtins.int DEPENDENCY_FIELD_NUMBER: builtins.int @@ -42,10 +42,10 @@ class FileDescriptorProto(google.protobuf.message.Message): OPTIONS_FIELD_NUMBER: builtins.int SOURCE_CODE_INFO_FIELD_NUMBER: builtins.int SYNTAX_FIELD_NUMBER: builtins.int - name: typing.Text = ... + name: typing.Text """file name, relative to root of source tree""" - package: typing.Text = ... + package: typing.Text """e.g. "foo", "foo.bar", etc.""" @property @@ -82,25 +82,25 @@ class FileDescriptorProto(google.protobuf.message.Message): development tools. """ pass - syntax: typing.Text = ... + syntax: typing.Text """The syntax of the proto file. The supported values are "proto2" and "proto3". """ 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[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] = ..., + 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["name",b"name","options",b"options","package",b"package","source_code_info",b"source_code_info","syntax",b"syntax"]) -> builtins.bool: ... def ClearField(self, field_name: typing_extensions.Literal["dependency",b"dependency","enum_type",b"enum_type","extension",b"extension","message_type",b"message_type","name",b"name","options",b"options","package",b"package","public_dependency",b"public_dependency","service",b"service","source_code_info",b"source_code_info","syntax",b"syntax","weak_dependency",b"weak_dependency"]) -> None: ... @@ -108,25 +108,25 @@ global___FileDescriptorProto = FileDescriptorProto class DescriptorProto(google.protobuf.message.Message): """Describes a message type.""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + DESCRIPTOR: google.protobuf.descriptor.Descriptor class ExtensionRange(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + DESCRIPTOR: google.protobuf.descriptor.Descriptor START_FIELD_NUMBER: builtins.int END_FIELD_NUMBER: builtins.int OPTIONS_FIELD_NUMBER: builtins.int - start: builtins.int = ... + start: builtins.int """Inclusive.""" - end: builtins.int = ... + end: builtins.int """Exclusive.""" @property def options(self) -> global___ExtensionRangeOptions: ... def __init__(self, *, - start : typing.Optional[builtins.int] = ..., - end : typing.Optional[builtins.int] = ..., - options : typing.Optional[global___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["end",b"end","options",b"options","start",b"start"]) -> builtins.bool: ... def ClearField(self, field_name: typing_extensions.Literal["end",b"end","options",b"options","start",b"start"]) -> None: ... @@ -136,19 +136,19 @@ class DescriptorProto(google.protobuf.message.Message): fields or extension ranges in the same message. Reserved ranges may not overlap. """ - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + DESCRIPTOR: google.protobuf.descriptor.Descriptor START_FIELD_NUMBER: builtins.int END_FIELD_NUMBER: builtins.int - start: builtins.int = ... + start: builtins.int """Inclusive.""" - end: builtins.int = ... + end: builtins.int """Exclusive.""" def __init__(self, *, - start : typing.Optional[builtins.int] = ..., - end : typing.Optional[builtins.int] = ..., + start: typing.Optional[builtins.int] = ..., + end: typing.Optional[builtins.int] = ..., ) -> None: ... def HasField(self, field_name: typing_extensions.Literal["end",b"end","start",b"start"]) -> builtins.bool: ... def ClearField(self, field_name: typing_extensions.Literal["end",b"end","start",b"start"]) -> None: ... @@ -163,7 +163,7 @@ class DescriptorProto(google.protobuf.message.Message): OPTIONS_FIELD_NUMBER: builtins.int RESERVED_RANGE_FIELD_NUMBER: builtins.int RESERVED_NAME_FIELD_NUMBER: builtins.int - name: typing.Text = ... + name: typing.Text @property def field(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___FieldDescriptorProto]: ... @property @@ -188,23 +188,23 @@ class DescriptorProto(google.protobuf.message.Message): pass def __init__(self, *, - 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]] = ..., + 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["name",b"name","options",b"options"]) -> builtins.bool: ... def ClearField(self, field_name: typing_extensions.Literal["enum_type",b"enum_type","extension",b"extension","extension_range",b"extension_range","field",b"field","name",b"name","nested_type",b"nested_type","oneof_decl",b"oneof_decl","options",b"options","reserved_name",b"reserved_name","reserved_range",b"reserved_range"]) -> None: ... global___DescriptorProto = DescriptorProto class ExtensionRangeOptions(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + DESCRIPTOR: google.protobuf.descriptor.Descriptor UNINTERPRETED_OPTION_FIELD_NUMBER: builtins.int @property def uninterpreted_option(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___UninterpretedOption]: @@ -212,127 +212,129 @@ class ExtensionRangeOptions(google.protobuf.message.Message): pass def __init__(self, *, - uninterpreted_option : typing.Optional[typing.Iterable[global___UninterpretedOption]] = ..., + uninterpreted_option: typing.Optional[typing.Iterable[global___UninterpretedOption]] = ..., ) -> None: ... def ClearField(self, field_name: typing_extensions.Literal["uninterpreted_option",b"uninterpreted_option"]) -> None: ... global___ExtensionRangeOptions = ExtensionRangeOptions class FieldDescriptorProto(google.protobuf.message.Message): """Describes a field within a message.""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - class Type(_Type, metaclass=_TypeEnumTypeWrapper): - pass + DESCRIPTOR: google.protobuf.descriptor.Descriptor class _Type: - V = typing.NewType('V', builtins.int) - class _TypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_Type.V], builtins.type): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor = ... - TYPE_DOUBLE = FieldDescriptorProto.Type.V(1) + ValueType = typing.NewType('ValueType', builtins.int) + V: typing_extensions.TypeAlias = ValueType + class _TypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[FieldDescriptorProto._Type.ValueType], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor + TYPE_DOUBLE: FieldDescriptorProto._Type.ValueType # 1 """0 is reserved for errors. Order is weird for historical reasons. """ - TYPE_FLOAT = FieldDescriptorProto.Type.V(2) - TYPE_INT64 = FieldDescriptorProto.Type.V(3) + TYPE_FLOAT: FieldDescriptorProto._Type.ValueType # 2 + TYPE_INT64: FieldDescriptorProto._Type.ValueType # 3 """Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT64 if negative values are likely. """ - TYPE_UINT64 = FieldDescriptorProto.Type.V(4) - TYPE_INT32 = FieldDescriptorProto.Type.V(5) + TYPE_UINT64: FieldDescriptorProto._Type.ValueType # 4 + TYPE_INT32: FieldDescriptorProto._Type.ValueType # 5 """Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT32 if negative values are likely. """ - 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_FIXED64: FieldDescriptorProto._Type.ValueType # 6 + TYPE_FIXED32: FieldDescriptorProto._Type.ValueType # 7 + TYPE_BOOL: FieldDescriptorProto._Type.ValueType # 8 + TYPE_STRING: FieldDescriptorProto._Type.ValueType # 9 + TYPE_GROUP: FieldDescriptorProto._Type.ValueType # 10 """Tag-delimited aggregate. Group type is deprecated and not supported in proto3. However, Proto3 implementations should still be able to parse the group wire format and treat group fields as unknown fields. """ - TYPE_MESSAGE = FieldDescriptorProto.Type.V(11) + TYPE_MESSAGE: FieldDescriptorProto._Type.ValueType # 11 """Length-delimited aggregate.""" - TYPE_BYTES = FieldDescriptorProto.Type.V(12) + TYPE_BYTES: FieldDescriptorProto._Type.ValueType # 12 """New in version 2.""" - 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_UINT32: FieldDescriptorProto._Type.ValueType # 13 + TYPE_ENUM: FieldDescriptorProto._Type.ValueType # 14 + TYPE_SFIXED32: FieldDescriptorProto._Type.ValueType # 15 + TYPE_SFIXED64: FieldDescriptorProto._Type.ValueType # 16 + TYPE_SINT32: FieldDescriptorProto._Type.ValueType # 17 """Uses ZigZag encoding.""" - TYPE_SINT64 = FieldDescriptorProto.Type.V(18) + TYPE_SINT64: FieldDescriptorProto._Type.ValueType # 18 """Uses ZigZag encoding.""" + class Type(_Type, metaclass=_TypeEnumTypeWrapper): + pass - TYPE_DOUBLE = FieldDescriptorProto.Type.V(1) + TYPE_DOUBLE: FieldDescriptorProto.Type.ValueType # 1 """0 is reserved for errors. Order is weird for historical reasons. """ - TYPE_FLOAT = FieldDescriptorProto.Type.V(2) - TYPE_INT64 = FieldDescriptorProto.Type.V(3) + TYPE_FLOAT: FieldDescriptorProto.Type.ValueType # 2 + TYPE_INT64: FieldDescriptorProto.Type.ValueType # 3 """Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT64 if negative values are likely. """ - TYPE_UINT64 = FieldDescriptorProto.Type.V(4) - TYPE_INT32 = FieldDescriptorProto.Type.V(5) + TYPE_UINT64: FieldDescriptorProto.Type.ValueType # 4 + TYPE_INT32: FieldDescriptorProto.Type.ValueType # 5 """Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT32 if negative values are likely. """ - 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_FIXED64: FieldDescriptorProto.Type.ValueType # 6 + TYPE_FIXED32: FieldDescriptorProto.Type.ValueType # 7 + TYPE_BOOL: FieldDescriptorProto.Type.ValueType # 8 + TYPE_STRING: FieldDescriptorProto.Type.ValueType # 9 + TYPE_GROUP: FieldDescriptorProto.Type.ValueType # 10 """Tag-delimited aggregate. Group type is deprecated and not supported in proto3. However, Proto3 implementations should still be able to parse the group wire format and treat group fields as unknown fields. """ - TYPE_MESSAGE = FieldDescriptorProto.Type.V(11) + TYPE_MESSAGE: FieldDescriptorProto.Type.ValueType # 11 """Length-delimited aggregate.""" - TYPE_BYTES = FieldDescriptorProto.Type.V(12) + TYPE_BYTES: FieldDescriptorProto.Type.ValueType # 12 """New in version 2.""" - 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_UINT32: FieldDescriptorProto.Type.ValueType # 13 + TYPE_ENUM: FieldDescriptorProto.Type.ValueType # 14 + TYPE_SFIXED32: FieldDescriptorProto.Type.ValueType # 15 + TYPE_SFIXED64: FieldDescriptorProto.Type.ValueType # 16 + TYPE_SINT32: FieldDescriptorProto.Type.ValueType # 17 """Uses ZigZag encoding.""" - TYPE_SINT64 = FieldDescriptorProto.Type.V(18) + TYPE_SINT64: FieldDescriptorProto.Type.ValueType # 18 """Uses ZigZag encoding.""" - class Label(_Label, metaclass=_LabelEnumTypeWrapper): - pass class _Label: - V = typing.NewType('V', builtins.int) - class _LabelEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_Label.V], builtins.type): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor = ... - LABEL_OPTIONAL = FieldDescriptorProto.Label.V(1) + ValueType = typing.NewType('ValueType', builtins.int) + V: typing_extensions.TypeAlias = ValueType + class _LabelEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[FieldDescriptorProto._Label.ValueType], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor + LABEL_OPTIONAL: FieldDescriptorProto._Label.ValueType # 1 """0 is reserved for errors""" - LABEL_REQUIRED = FieldDescriptorProto.Label.V(2) - LABEL_REPEATED = FieldDescriptorProto.Label.V(3) + LABEL_REQUIRED: FieldDescriptorProto._Label.ValueType # 2 + LABEL_REPEATED: FieldDescriptorProto._Label.ValueType # 3 + class Label(_Label, metaclass=_LabelEnumTypeWrapper): + pass - LABEL_OPTIONAL = FieldDescriptorProto.Label.V(1) + LABEL_OPTIONAL: FieldDescriptorProto.Label.ValueType # 1 """0 is reserved for errors""" - LABEL_REQUIRED = FieldDescriptorProto.Label.V(2) - LABEL_REPEATED = FieldDescriptorProto.Label.V(3) + LABEL_REQUIRED: FieldDescriptorProto.Label.ValueType # 2 + LABEL_REPEATED: FieldDescriptorProto.Label.ValueType # 3 NAME_FIELD_NUMBER: builtins.int NUMBER_FIELD_NUMBER: builtins.int @@ -345,15 +347,15 @@ class FieldDescriptorProto(google.protobuf.message.Message): 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 = ... + name: typing.Text + number: builtins.int + label: global___FieldDescriptorProto.Label.ValueType + type: global___FieldDescriptorProto.Type.ValueType """If type_name is set, this need not be set. If both this and type_name are set, this must be one of TYPE_ENUM, TYPE_MESSAGE or TYPE_GROUP. """ - type_name: typing.Text = ... + type_name: typing.Text """For message and enum types, this is the name of the type. If the name starts with a '.', it is fully-qualified. Otherwise, C++-like scoping rules are used to find the type (i.e. first the nested types within this @@ -361,12 +363,12 @@ class FieldDescriptorProto(google.protobuf.message.Message): namespace). """ - extendee: typing.Text = ... + extendee: typing.Text """For extensions, this is the name of the type being extended. It is resolved in the same manner as type_name. """ - default_value: typing.Text = ... + default_value: typing.Text """For numeric types, contains the original text representation of the value. For booleans, "true" or "false". For strings, contains the default text contents (not escaped in any way). @@ -374,12 +376,12 @@ class FieldDescriptorProto(google.protobuf.message.Message): TODO(kenton): Base-64 encode? """ - oneof_index: builtins.int = ... + oneof_index: builtins.int """If set, gives the index of a oneof in the containing type's oneof_decl list. This field is a member of that oneof. """ - json_name: typing.Text = ... + json_name: typing.Text """JSON name of this field. The value is set by protocol compiler. If the user has set a "json_name" option on this field, that option's value will be used. Otherwise, it's deduced from the field's name by converting @@ -388,7 +390,7 @@ class FieldDescriptorProto(google.protobuf.message.Message): @property def options(self) -> global___FieldOptions: ... - proto3_optional: builtins.bool = ... + proto3_optional: builtins.bool """If true, this is a proto3 "optional". When a proto3 field is optional, it tracks presence regardless of field type. @@ -414,17 +416,17 @@ class FieldDescriptorProto(google.protobuf.message.Message): def __init__(self, *, - 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] = ..., + name: typing.Optional[typing.Text] = ..., + number: typing.Optional[builtins.int] = ..., + label: typing.Optional[global___FieldDescriptorProto.Label.ValueType] = ..., + type: typing.Optional[global___FieldDescriptorProto.Type.ValueType] = ..., + 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["default_value",b"default_value","extendee",b"extendee","json_name",b"json_name","label",b"label","name",b"name","number",b"number","oneof_index",b"oneof_index","options",b"options","proto3_optional",b"proto3_optional","type",b"type","type_name",b"type_name"]) -> builtins.bool: ... def ClearField(self, field_name: typing_extensions.Literal["default_value",b"default_value","extendee",b"extendee","json_name",b"json_name","label",b"label","name",b"name","number",b"number","oneof_index",b"oneof_index","options",b"options","proto3_optional",b"proto3_optional","type",b"type","type_name",b"type_name"]) -> None: ... @@ -432,16 +434,16 @@ global___FieldDescriptorProto = FieldDescriptorProto class OneofDescriptorProto(google.protobuf.message.Message): """Describes a oneof.""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + DESCRIPTOR: google.protobuf.descriptor.Descriptor NAME_FIELD_NUMBER: builtins.int OPTIONS_FIELD_NUMBER: builtins.int - name: typing.Text = ... + name: typing.Text @property def options(self) -> global___OneofOptions: ... def __init__(self, *, - name : typing.Optional[typing.Text] = ..., - options : typing.Optional[global___OneofOptions] = ..., + name: typing.Optional[typing.Text] = ..., + options: typing.Optional[global___OneofOptions] = ..., ) -> None: ... def HasField(self, field_name: typing_extensions.Literal["name",b"name","options",b"options"]) -> builtins.bool: ... def ClearField(self, field_name: typing_extensions.Literal["name",b"name","options",b"options"]) -> None: ... @@ -449,7 +451,7 @@ global___OneofDescriptorProto = OneofDescriptorProto class EnumDescriptorProto(google.protobuf.message.Message): """Describes an enum type.""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + DESCRIPTOR: google.protobuf.descriptor.Descriptor class EnumReservedRange(google.protobuf.message.Message): """Range of reserved numeric values. Reserved values may not be used by entries in the same enum. Reserved ranges may not overlap. @@ -458,19 +460,19 @@ class EnumDescriptorProto(google.protobuf.message.Message): is inclusive such that it can appropriately represent the entire int32 domain. """ - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + DESCRIPTOR: google.protobuf.descriptor.Descriptor START_FIELD_NUMBER: builtins.int END_FIELD_NUMBER: builtins.int - start: builtins.int = ... + start: builtins.int """Inclusive.""" - end: builtins.int = ... + end: builtins.int """Inclusive.""" def __init__(self, *, - start : typing.Optional[builtins.int] = ..., - end : typing.Optional[builtins.int] = ..., + start: typing.Optional[builtins.int] = ..., + end: typing.Optional[builtins.int] = ..., ) -> None: ... def HasField(self, field_name: typing_extensions.Literal["end",b"end","start",b"start"]) -> builtins.bool: ... def ClearField(self, field_name: typing_extensions.Literal["end",b"end","start",b"start"]) -> None: ... @@ -480,7 +482,7 @@ class EnumDescriptorProto(google.protobuf.message.Message): OPTIONS_FIELD_NUMBER: builtins.int RESERVED_RANGE_FIELD_NUMBER: builtins.int RESERVED_NAME_FIELD_NUMBER: builtins.int - name: typing.Text = ... + name: typing.Text @property def value(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___EnumValueDescriptorProto]: ... @property @@ -500,11 +502,11 @@ class EnumDescriptorProto(google.protobuf.message.Message): pass def __init__(self, *, - 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]] = ..., + 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["name",b"name","options",b"options"]) -> builtins.bool: ... def ClearField(self, field_name: typing_extensions.Literal["name",b"name","options",b"options","reserved_name",b"reserved_name","reserved_range",b"reserved_range","value",b"value"]) -> None: ... @@ -512,19 +514,19 @@ global___EnumDescriptorProto = EnumDescriptorProto class EnumValueDescriptorProto(google.protobuf.message.Message): """Describes a value within an enum.""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + 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 = ... + name: typing.Text + number: builtins.int @property def options(self) -> global___EnumValueOptions: ... def __init__(self, *, - name : typing.Optional[typing.Text] = ..., - number : typing.Optional[builtins.int] = ..., - options : typing.Optional[global___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["name",b"name","number",b"number","options",b"options"]) -> builtins.bool: ... def ClearField(self, field_name: typing_extensions.Literal["name",b"name","number",b"number","options",b"options"]) -> None: ... @@ -532,20 +534,20 @@ global___EnumValueDescriptorProto = EnumValueDescriptorProto class ServiceDescriptorProto(google.protobuf.message.Message): """Describes a service.""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + DESCRIPTOR: google.protobuf.descriptor.Descriptor NAME_FIELD_NUMBER: builtins.int METHOD_FIELD_NUMBER: builtins.int OPTIONS_FIELD_NUMBER: builtins.int - name: typing.Text = ... + name: typing.Text @property def method(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___MethodDescriptorProto]: ... @property def options(self) -> global___ServiceOptions: ... def __init__(self, *, - name : typing.Optional[typing.Text] = ..., - method : typing.Optional[typing.Iterable[global___MethodDescriptorProto]] = ..., - options : typing.Optional[global___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["name",b"name","options",b"options"]) -> builtins.bool: ... def ClearField(self, field_name: typing_extensions.Literal["method",b"method","name",b"name","options",b"options"]) -> None: ... @@ -553,36 +555,36 @@ global___ServiceDescriptorProto = ServiceDescriptorProto class MethodDescriptorProto(google.protobuf.message.Message): """Describes a method of a service.""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + 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 = ... + name: typing.Text + input_type: typing.Text """Input and output type names. These are resolved in the same way as FieldDescriptorProto.type_name, but must refer to a message type. """ - output_type: typing.Text = ... + output_type: typing.Text @property def options(self) -> global___MethodOptions: ... - client_streaming: builtins.bool = ... + client_streaming: builtins.bool """Identifies if client streams multiple client messages""" - server_streaming: builtins.bool = ... + server_streaming: builtins.bool """Identifies if server streams multiple server messages""" def __init__(self, *, - 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] = ..., + 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["client_streaming",b"client_streaming","input_type",b"input_type","name",b"name","options",b"options","output_type",b"output_type","server_streaming",b"server_streaming"]) -> builtins.bool: ... def ClearField(self, field_name: typing_extensions.Literal["client_streaming",b"client_streaming","input_type",b"input_type","name",b"name","options",b"options","output_type",b"output_type","server_streaming",b"server_streaming"]) -> None: ... @@ -622,35 +624,36 @@ class FileOptions(google.protobuf.message.Message): to automatically assign option numbers. """ - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - class OptimizeMode(_OptimizeMode, metaclass=_OptimizeModeEnumTypeWrapper): - """Generated classes can be optimized for speed or code size.""" - pass + DESCRIPTOR: google.protobuf.descriptor.Descriptor class _OptimizeMode: - V = typing.NewType('V', builtins.int) - class _OptimizeModeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_OptimizeMode.V], builtins.type): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor = ... - SPEED = FileOptions.OptimizeMode.V(1) + ValueType = typing.NewType('ValueType', builtins.int) + V: typing_extensions.TypeAlias = ValueType + class _OptimizeModeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[FileOptions._OptimizeMode.ValueType], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor + SPEED: FileOptions._OptimizeMode.ValueType # 1 """Generate complete code for parsing, serialization,""" - CODE_SIZE = FileOptions.OptimizeMode.V(2) + CODE_SIZE: FileOptions._OptimizeMode.ValueType # 2 """etc. Use ReflectionOps to implement these methods. """ - LITE_RUNTIME = FileOptions.OptimizeMode.V(3) + LITE_RUNTIME: FileOptions._OptimizeMode.ValueType # 3 """Generate code using MessageLite and the lite runtime.""" + class OptimizeMode(_OptimizeMode, metaclass=_OptimizeModeEnumTypeWrapper): + """Generated classes can be optimized for speed or code size.""" + pass - SPEED = FileOptions.OptimizeMode.V(1) + SPEED: FileOptions.OptimizeMode.ValueType # 1 """Generate complete code for parsing, serialization,""" - CODE_SIZE = FileOptions.OptimizeMode.V(2) + CODE_SIZE: FileOptions.OptimizeMode.ValueType # 2 """etc. Use ReflectionOps to implement these methods. """ - LITE_RUNTIME = FileOptions.OptimizeMode.V(3) + LITE_RUNTIME: FileOptions.OptimizeMode.ValueType # 3 """Generate code using MessageLite and the lite runtime.""" @@ -675,14 +678,14 @@ class FileOptions(google.protobuf.message.Message): PHP_METADATA_NAMESPACE_FIELD_NUMBER: builtins.int RUBY_PACKAGE_FIELD_NUMBER: builtins.int UNINTERPRETED_OPTION_FIELD_NUMBER: builtins.int - java_package: typing.Text = ... + java_package: typing.Text """Sets the Java package where classes generated from this .proto will be placed. By default, the proto package is used, but this is often inappropriate because proto packages do not normally start with backwards domain names. """ - java_outer_classname: typing.Text = ... + java_outer_classname: typing.Text """Controls the name of the wrapper Java class generated for the .proto file. That class will always contain the .proto file's getDescriptor() method as well as any top-level extensions defined in the .proto file. @@ -690,7 +693,7 @@ class FileOptions(google.protobuf.message.Message): .proto file will be nested inside the single wrapper outer class. """ - java_multiple_files: builtins.bool = ... + java_multiple_files: builtins.bool """If enabled, then the Java code generator will generate a separate .java file for each top-level message, enum, and service defined in the .proto file. Thus, these types will *not* be nested inside the wrapper class @@ -699,10 +702,10 @@ class FileOptions(google.protobuf.message.Message): top-level extensions defined in the file. """ - java_generate_equals_and_hash: builtins.bool = ... + java_generate_equals_and_hash: builtins.bool """This option does nothing.""" - java_string_check_utf8: builtins.bool = ... + java_string_check_utf8: builtins.bool """If set true, then the Java2 code generator will generate code that throws an exception whenever an attempt is made to assign a non-UTF-8 byte sequence to a string field. @@ -711,8 +714,8 @@ class FileOptions(google.protobuf.message.Message): This option has no effect on when used with the lite runtime. """ - optimize_for: global___FileOptions.OptimizeMode.V = ... - go_package: typing.Text = ... + optimize_for: global___FileOptions.OptimizeMode.ValueType + go_package: typing.Text """Sets the Go package where structs generated from this .proto will be placed. If omitted, the Go package will be derived from the following: - The basename of the package import path, if provided. @@ -720,7 +723,7 @@ class FileOptions(google.protobuf.message.Message): - Otherwise, the basename of the .proto file, without extension. """ - cc_generic_services: builtins.bool = ... + cc_generic_services: builtins.bool """Should generic services be generated in each language? "Generic" services are not specific to any particular RPC system. They are generated by the main code generators in each language (without additional plugins). @@ -733,54 +736,54 @@ class FileOptions(google.protobuf.message.Message): explicitly set them to true. """ - java_generic_services: builtins.bool = ... - py_generic_services: builtins.bool = ... - php_generic_services: builtins.bool = ... - deprecated: builtins.bool = ... + java_generic_services: builtins.bool + py_generic_services: builtins.bool + php_generic_services: builtins.bool + deprecated: builtins.bool """Is this file deprecated? Depending on the target platform, this can emit Deprecated annotations for everything in the file, or it will be completely ignored; in the very least, this is a formalization for deprecating files. """ - cc_enable_arenas: builtins.bool = ... + cc_enable_arenas: builtins.bool """Enables the use of arenas for the proto messages in this file. This applies only to generated classes for C++. """ - objc_class_prefix: typing.Text = ... + objc_class_prefix: typing.Text """Sets the objective c class prefix which is prepended to all objective c generated classes from this .proto. There is no default. """ - csharp_namespace: typing.Text = ... + csharp_namespace: typing.Text """Namespace for generated classes; defaults to the package.""" - swift_prefix: typing.Text = ... + swift_prefix: typing.Text """By default Swift generators will take the proto package and CamelCase it replacing '.' with underscore and use that to prefix the types/symbols defined. When this options is provided, they will use this value instead to prefix the types/symbols defined. """ - php_class_prefix: typing.Text = ... + php_class_prefix: typing.Text """Sets the php class prefix which is prepended to all php generated classes from this .proto. Default is empty. """ - php_namespace: typing.Text = ... + php_namespace: typing.Text """Use this option to change the namespace of php generated classes. Default is empty. When this option is empty, the package name will be used for determining the namespace. """ - php_metadata_namespace: typing.Text = ... + php_metadata_namespace: typing.Text """Use this option to change the namespace of php generated metadata classes. Default is empty. When this option is empty, the proto file name will be used for determining the namespace. """ - ruby_package: typing.Text = ... + ruby_package: typing.Text """Use this option to change the package of ruby generated classes. Default is empty. When this option is not set, the package name will be used for determining the ruby package. @@ -794,40 +797,40 @@ class FileOptions(google.protobuf.message.Message): pass def __init__(self, *, - 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]] = ..., + 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.ValueType] = ..., + 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["cc_enable_arenas",b"cc_enable_arenas","cc_generic_services",b"cc_generic_services","csharp_namespace",b"csharp_namespace","deprecated",b"deprecated","go_package",b"go_package","java_generate_equals_and_hash",b"java_generate_equals_and_hash","java_generic_services",b"java_generic_services","java_multiple_files",b"java_multiple_files","java_outer_classname",b"java_outer_classname","java_package",b"java_package","java_string_check_utf8",b"java_string_check_utf8","objc_class_prefix",b"objc_class_prefix","optimize_for",b"optimize_for","php_class_prefix",b"php_class_prefix","php_generic_services",b"php_generic_services","php_metadata_namespace",b"php_metadata_namespace","php_namespace",b"php_namespace","py_generic_services",b"py_generic_services","ruby_package",b"ruby_package","swift_prefix",b"swift_prefix"]) -> builtins.bool: ... def ClearField(self, field_name: typing_extensions.Literal["cc_enable_arenas",b"cc_enable_arenas","cc_generic_services",b"cc_generic_services","csharp_namespace",b"csharp_namespace","deprecated",b"deprecated","go_package",b"go_package","java_generate_equals_and_hash",b"java_generate_equals_and_hash","java_generic_services",b"java_generic_services","java_multiple_files",b"java_multiple_files","java_outer_classname",b"java_outer_classname","java_package",b"java_package","java_string_check_utf8",b"java_string_check_utf8","objc_class_prefix",b"objc_class_prefix","optimize_for",b"optimize_for","php_class_prefix",b"php_class_prefix","php_generic_services",b"php_generic_services","php_metadata_namespace",b"php_metadata_namespace","php_namespace",b"php_namespace","py_generic_services",b"py_generic_services","ruby_package",b"ruby_package","swift_prefix",b"swift_prefix","uninterpreted_option",b"uninterpreted_option"]) -> None: ... global___FileOptions = FileOptions class MessageOptions(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + 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 = ... + message_set_wire_format: builtins.bool """Set true to use the old proto1 MessageSet wire format for extensions. This is provided for backwards-compatibility with the MessageSet wire format. You should not use this for any other reason: It's less @@ -848,20 +851,20 @@ class MessageOptions(google.protobuf.message.Message): the protocol compiler. """ - no_standard_descriptor_accessor: builtins.bool = ... + no_standard_descriptor_accessor: builtins.bool """Disables the generation of the standard "descriptor()" accessor, which can conflict with a field of the same name. This is meant to make migration from proto1 easier; new code should avoid fields named "descriptor". """ - deprecated: builtins.bool = ... + deprecated: builtins.bool """Is this message deprecated? Depending on the target platform, this can emit Deprecated annotations for the message, or it will be completely ignored; in the very least, this is a formalization for deprecating messages. """ - map_entry: builtins.bool = ... + map_entry: builtins.bool """Whether the message is an automatically generated map entry type for the maps field. @@ -891,59 +894,61 @@ class MessageOptions(google.protobuf.message.Message): pass def __init__(self, *, - 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]] = ..., + 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["deprecated",b"deprecated","map_entry",b"map_entry","message_set_wire_format",b"message_set_wire_format","no_standard_descriptor_accessor",b"no_standard_descriptor_accessor"]) -> builtins.bool: ... def ClearField(self, field_name: typing_extensions.Literal["deprecated",b"deprecated","map_entry",b"map_entry","message_set_wire_format",b"message_set_wire_format","no_standard_descriptor_accessor",b"no_standard_descriptor_accessor","uninterpreted_option",b"uninterpreted_option"]) -> None: ... global___MessageOptions = MessageOptions class FieldOptions(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - class CType(_CType, metaclass=_CTypeEnumTypeWrapper): - pass + DESCRIPTOR: google.protobuf.descriptor.Descriptor class _CType: - V = typing.NewType('V', builtins.int) - class _CTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_CType.V], builtins.type): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor = ... - STRING = FieldOptions.CType.V(0) + ValueType = typing.NewType('ValueType', builtins.int) + V: typing_extensions.TypeAlias = ValueType + class _CTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[FieldOptions._CType.ValueType], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor + STRING: FieldOptions._CType.ValueType # 0 """Default mode.""" - CORD = FieldOptions.CType.V(1) - STRING_PIECE = FieldOptions.CType.V(2) + CORD: FieldOptions._CType.ValueType # 1 + STRING_PIECE: FieldOptions._CType.ValueType # 2 + class CType(_CType, metaclass=_CTypeEnumTypeWrapper): + pass - STRING = FieldOptions.CType.V(0) + STRING: FieldOptions.CType.ValueType # 0 """Default mode.""" - CORD = FieldOptions.CType.V(1) - STRING_PIECE = FieldOptions.CType.V(2) + CORD: FieldOptions.CType.ValueType # 1 + STRING_PIECE: FieldOptions.CType.ValueType # 2 + + class _JSType: + ValueType = typing.NewType('ValueType', builtins.int) + V: typing_extensions.TypeAlias = ValueType + class _JSTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[FieldOptions._JSType.ValueType], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor + JS_NORMAL: FieldOptions._JSType.ValueType # 0 + """Use the default type.""" + + JS_STRING: FieldOptions._JSType.ValueType # 1 + """Use JavaScript strings.""" + + JS_NUMBER: FieldOptions._JSType.ValueType # 2 + """Use JavaScript numbers.""" class JSType(_JSType, metaclass=_JSTypeEnumTypeWrapper): pass - class _JSType: - V = typing.NewType('V', builtins.int) - class _JSTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_JSType.V], builtins.type): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor = ... - JS_NORMAL = FieldOptions.JSType.V(0) - """Use the default type.""" - JS_STRING = FieldOptions.JSType.V(1) - """Use JavaScript strings.""" - - JS_NUMBER = FieldOptions.JSType.V(2) - """Use JavaScript numbers.""" - - - JS_NORMAL = FieldOptions.JSType.V(0) + JS_NORMAL: FieldOptions.JSType.ValueType # 0 """Use the default type.""" - JS_STRING = FieldOptions.JSType.V(1) + JS_STRING: FieldOptions.JSType.ValueType # 1 """Use JavaScript strings.""" - JS_NUMBER = FieldOptions.JSType.V(2) + JS_NUMBER: FieldOptions.JSType.ValueType # 2 """Use JavaScript numbers.""" @@ -954,14 +959,14 @@ class FieldOptions(google.protobuf.message.Message): DEPRECATED_FIELD_NUMBER: builtins.int WEAK_FIELD_NUMBER: builtins.int UNINTERPRETED_OPTION_FIELD_NUMBER: builtins.int - ctype: global___FieldOptions.CType.V = ... + ctype: global___FieldOptions.CType.ValueType """The ctype option instructs the C++ code generator to use a different representation of the field than it normally would. See the specific options below. This option is not yet implemented in the open source release -- sorry, we'll try to include it in a future version! """ - packed: builtins.bool = ... + packed: builtins.bool """The packed option can be enabled for repeated primitive fields to enable a more efficient representation on the wire. Rather than repeatedly writing the tag and type for each element, the entire array is encoded as @@ -969,7 +974,7 @@ class FieldOptions(google.protobuf.message.Message): false will avoid using packed encoding. """ - jstype: global___FieldOptions.JSType.V = ... + jstype: global___FieldOptions.JSType.ValueType """The jstype option determines the JavaScript type used for values of the field. The option is permitted only for 64 bit integral and fixed types (int64, uint64, sint64, fixed64, sfixed64). A field with jstype JS_STRING @@ -983,7 +988,7 @@ class FieldOptions(google.protobuf.message.Message): goog.math.Integer. """ - lazy: builtins.bool = ... + lazy: builtins.bool """Should this field be parsed lazily? Lazy applies only to message-type fields. It means that when the outer message is initially parsed, the inner message's contents will not be parsed but instead stored in encoded @@ -1014,14 +1019,14 @@ class FieldOptions(google.protobuf.message.Message): been parsed. """ - deprecated: builtins.bool = ... + deprecated: builtins.bool """Is this field deprecated? Depending on the target platform, this can emit Deprecated annotations for accessors, or it will be completely ignored; in the very least, this is a formalization for deprecating fields. """ - weak: builtins.bool = ... + weak: builtins.bool """For Google-internal migration only. Do not use.""" @property @@ -1030,20 +1035,20 @@ class FieldOptions(google.protobuf.message.Message): pass def __init__(self, *, - 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]] = ..., + ctype: typing.Optional[global___FieldOptions.CType.ValueType] = ..., + packed: typing.Optional[builtins.bool] = ..., + jstype: typing.Optional[global___FieldOptions.JSType.ValueType] = ..., + 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["ctype",b"ctype","deprecated",b"deprecated","jstype",b"jstype","lazy",b"lazy","packed",b"packed","weak",b"weak"]) -> builtins.bool: ... def ClearField(self, field_name: typing_extensions.Literal["ctype",b"ctype","deprecated",b"deprecated","jstype",b"jstype","lazy",b"lazy","packed",b"packed","uninterpreted_option",b"uninterpreted_option","weak",b"weak"]) -> None: ... global___FieldOptions = FieldOptions class OneofOptions(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + DESCRIPTOR: google.protobuf.descriptor.Descriptor UNINTERPRETED_OPTION_FIELD_NUMBER: builtins.int @property def uninterpreted_option(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___UninterpretedOption]: @@ -1051,22 +1056,22 @@ class OneofOptions(google.protobuf.message.Message): pass def __init__(self, *, - uninterpreted_option : typing.Optional[typing.Iterable[global___UninterpretedOption]] = ..., + uninterpreted_option: typing.Optional[typing.Iterable[global___UninterpretedOption]] = ..., ) -> None: ... def ClearField(self, field_name: typing_extensions.Literal["uninterpreted_option",b"uninterpreted_option"]) -> None: ... global___OneofOptions = OneofOptions class EnumOptions(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + 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 = ... + allow_alias: builtins.bool """Set this option to true to allow mapping different tag names to the same value. """ - deprecated: builtins.bool = ... + deprecated: builtins.bool """Is this enum deprecated? Depending on the target platform, this can emit Deprecated annotations for the enum, or it will be completely ignored; in the very least, this @@ -1079,19 +1084,19 @@ class EnumOptions(google.protobuf.message.Message): pass def __init__(self, *, - allow_alias : typing.Optional[builtins.bool] = ..., - deprecated : typing.Optional[builtins.bool] = ..., - uninterpreted_option : typing.Optional[typing.Iterable[global___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["allow_alias",b"allow_alias","deprecated",b"deprecated"]) -> builtins.bool: ... def ClearField(self, field_name: typing_extensions.Literal["allow_alias",b"allow_alias","deprecated",b"deprecated","uninterpreted_option",b"uninterpreted_option"]) -> None: ... global___EnumOptions = EnumOptions class EnumValueOptions(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + DESCRIPTOR: google.protobuf.descriptor.Descriptor DEPRECATED_FIELD_NUMBER: builtins.int UNINTERPRETED_OPTION_FIELD_NUMBER: builtins.int - deprecated: builtins.bool = ... + deprecated: builtins.bool """Is this enum value deprecated? Depending on the target platform, this can emit Deprecated annotations for the enum value, or it will be completely ignored; in the very least, @@ -1104,18 +1109,18 @@ class EnumValueOptions(google.protobuf.message.Message): pass def __init__(self, *, - deprecated : typing.Optional[builtins.bool] = ..., - uninterpreted_option : typing.Optional[typing.Iterable[global___UninterpretedOption]] = ..., + deprecated: typing.Optional[builtins.bool] = ..., + uninterpreted_option: typing.Optional[typing.Iterable[global___UninterpretedOption]] = ..., ) -> None: ... def HasField(self, field_name: typing_extensions.Literal["deprecated",b"deprecated"]) -> builtins.bool: ... def ClearField(self, field_name: typing_extensions.Literal["deprecated",b"deprecated","uninterpreted_option",b"uninterpreted_option"]) -> None: ... global___EnumValueOptions = EnumValueOptions class ServiceOptions(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + DESCRIPTOR: google.protobuf.descriptor.Descriptor DEPRECATED_FIELD_NUMBER: builtins.int UNINTERPRETED_OPTION_FIELD_NUMBER: builtins.int - deprecated: builtins.bool = ... + deprecated: builtins.bool """Note: Field numbers 1 through 32 are reserved for Google's internal RPC framework. We apologize for hoarding these numbers to ourselves, but we were already using them long before we decided to release Protocol @@ -1133,45 +1138,46 @@ class ServiceOptions(google.protobuf.message.Message): pass def __init__(self, *, - deprecated : typing.Optional[builtins.bool] = ..., - uninterpreted_option : typing.Optional[typing.Iterable[global___UninterpretedOption]] = ..., + deprecated: typing.Optional[builtins.bool] = ..., + uninterpreted_option: typing.Optional[typing.Iterable[global___UninterpretedOption]] = ..., ) -> None: ... def HasField(self, field_name: typing_extensions.Literal["deprecated",b"deprecated"]) -> builtins.bool: ... def ClearField(self, field_name: typing_extensions.Literal["deprecated",b"deprecated","uninterpreted_option",b"uninterpreted_option"]) -> None: ... global___ServiceOptions = ServiceOptions class MethodOptions(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + DESCRIPTOR: google.protobuf.descriptor.Descriptor + class _IdempotencyLevel: + ValueType = typing.NewType('ValueType', builtins.int) + V: typing_extensions.TypeAlias = ValueType + class _IdempotencyLevelEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[MethodOptions._IdempotencyLevel.ValueType], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor + IDEMPOTENCY_UNKNOWN: MethodOptions._IdempotencyLevel.ValueType # 0 + NO_SIDE_EFFECTS: MethodOptions._IdempotencyLevel.ValueType # 1 + """implies idempotent""" + + IDEMPOTENT: MethodOptions._IdempotencyLevel.ValueType # 2 + """idempotent, but may have side effects""" + class IdempotencyLevel(_IdempotencyLevel, metaclass=_IdempotencyLevelEnumTypeWrapper): """Is this method side-effect-free (or safe in HTTP parlance), or idempotent, or neither? HTTP based RPC implementation may choose GET verb for safe methods, and PUT verb for idempotent methods instead of the default POST. """ pass - class _IdempotencyLevel: - V = typing.NewType('V', builtins.int) - class _IdempotencyLevelEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_IdempotencyLevel.V], builtins.type): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor = ... - IDEMPOTENCY_UNKNOWN = MethodOptions.IdempotencyLevel.V(0) - NO_SIDE_EFFECTS = MethodOptions.IdempotencyLevel.V(1) - """implies idempotent""" - IDEMPOTENT = MethodOptions.IdempotencyLevel.V(2) - """idempotent, but may have side effects""" - - - IDEMPOTENCY_UNKNOWN = MethodOptions.IdempotencyLevel.V(0) - NO_SIDE_EFFECTS = MethodOptions.IdempotencyLevel.V(1) + IDEMPOTENCY_UNKNOWN: MethodOptions.IdempotencyLevel.ValueType # 0 + NO_SIDE_EFFECTS: MethodOptions.IdempotencyLevel.ValueType # 1 """implies idempotent""" - IDEMPOTENT = MethodOptions.IdempotencyLevel.V(2) + IDEMPOTENT: MethodOptions.IdempotencyLevel.ValueType # 2 """idempotent, but may have side effects""" DEPRECATED_FIELD_NUMBER: builtins.int IDEMPOTENCY_LEVEL_FIELD_NUMBER: builtins.int UNINTERPRETED_OPTION_FIELD_NUMBER: builtins.int - deprecated: builtins.bool = ... + deprecated: builtins.bool """Note: Field numbers 1 through 32 are reserved for Google's internal RPC framework. We apologize for hoarding these numbers to ourselves, but we were already using them long before we decided to release Protocol @@ -1183,16 +1189,16 @@ class MethodOptions(google.protobuf.message.Message): this is a formalization for deprecating methods. """ - idempotency_level: global___MethodOptions.IdempotencyLevel.V = ... + idempotency_level: global___MethodOptions.IdempotencyLevel.ValueType @property def uninterpreted_option(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___UninterpretedOption]: """The parser stores options it doesn't recognize here. See above.""" pass def __init__(self, *, - deprecated : typing.Optional[builtins.bool] = ..., - idempotency_level : typing.Optional[global___MethodOptions.IdempotencyLevel.V] = ..., - uninterpreted_option : typing.Optional[typing.Iterable[global___UninterpretedOption]] = ..., + deprecated: typing.Optional[builtins.bool] = ..., + idempotency_level: typing.Optional[global___MethodOptions.IdempotencyLevel.ValueType] = ..., + uninterpreted_option: typing.Optional[typing.Iterable[global___UninterpretedOption]] = ..., ) -> None: ... def HasField(self, field_name: typing_extensions.Literal["deprecated",b"deprecated","idempotency_level",b"idempotency_level"]) -> builtins.bool: ... def ClearField(self, field_name: typing_extensions.Literal["deprecated",b"deprecated","idempotency_level",b"idempotency_level","uninterpreted_option",b"uninterpreted_option"]) -> None: ... @@ -1206,7 +1212,7 @@ class UninterpretedOption(google.protobuf.message.Message): or produced by Descriptor::CopyTo()) will never have UninterpretedOptions in them. """ - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + DESCRIPTOR: google.protobuf.descriptor.Descriptor class NamePart(google.protobuf.message.Message): """The name of the uninterpreted option. Each string represents a segment in a dot-separated name. is_extension is true iff a segment represents an @@ -1214,15 +1220,15 @@ class UninterpretedOption(google.protobuf.message.Message): E.g.,{ ["foo", false], ["bar.baz", true], ["qux", false] } represents "foo.(bar.baz).qux". """ - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + 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 = ... + name_part: typing.Text + is_extension: builtins.bool def __init__(self, *, - name_part : typing.Optional[typing.Text] = ..., - is_extension : typing.Optional[builtins.bool] = ..., + name_part: typing.Optional[typing.Text] = ..., + is_extension: typing.Optional[builtins.bool] = ..., ) -> None: ... def HasField(self, field_name: typing_extensions.Literal["is_extension",b"is_extension","name_part",b"name_part"]) -> builtins.bool: ... def ClearField(self, field_name: typing_extensions.Literal["is_extension",b"is_extension","name_part",b"name_part"]) -> None: ... @@ -1236,25 +1242,25 @@ class UninterpretedOption(google.protobuf.message.Message): AGGREGATE_VALUE_FIELD_NUMBER: builtins.int @property def name(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___UninterpretedOption.NamePart]: ... - identifier_value: typing.Text = ... + identifier_value: typing.Text """The value of the uninterpreted option, in whatever type the tokenizer identified it as during parsing. Exactly one of these should be set. """ - positive_int_value: builtins.int = ... - negative_int_value: builtins.int = ... - double_value: builtins.float = ... - string_value: builtins.bytes = ... - aggregate_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 def __init__(self, *, - 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] = ..., + 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["aggregate_value",b"aggregate_value","double_value",b"double_value","identifier_value",b"identifier_value","negative_int_value",b"negative_int_value","positive_int_value",b"positive_int_value","string_value",b"string_value"]) -> builtins.bool: ... def ClearField(self, field_name: typing_extensions.Literal["aggregate_value",b"aggregate_value","double_value",b"double_value","identifier_value",b"identifier_value","name",b"name","negative_int_value",b"negative_int_value","positive_int_value",b"positive_int_value","string_value",b"string_value"]) -> None: ... @@ -1267,9 +1273,9 @@ class SourceCodeInfo(google.protobuf.message.Message): Encapsulates information about the original source file from which a FileDescriptorProto was generated. """ - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + DESCRIPTOR: google.protobuf.descriptor.Descriptor class Location(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + DESCRIPTOR: google.protobuf.descriptor.Descriptor PATH_FIELD_NUMBER: builtins.int SPAN_FIELD_NUMBER: builtins.int LEADING_COMMENTS_FIELD_NUMBER: builtins.int @@ -1311,7 +1317,7 @@ class SourceCodeInfo(google.protobuf.message.Message): 1 to each before displaying to a user. """ pass - leading_comments: typing.Text = ... + leading_comments: typing.Text """If this SourceCodeInfo represents a complete declaration, these are any comments appearing before and after the declaration which appear to be attached to the declaration. @@ -1361,16 +1367,16 @@ class SourceCodeInfo(google.protobuf.message.Message): // ignored detached comments. """ - trailing_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[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]] = ..., + 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["leading_comments",b"leading_comments","trailing_comments",b"trailing_comments"]) -> builtins.bool: ... def ClearField(self, field_name: typing_extensions.Literal["leading_comments",b"leading_comments","leading_detached_comments",b"leading_detached_comments","path",b"path","span",b"span","trailing_comments",b"trailing_comments"]) -> None: ... @@ -1425,7 +1431,7 @@ class SourceCodeInfo(google.protobuf.message.Message): pass def __init__(self, *, - location : typing.Optional[typing.Iterable[global___SourceCodeInfo.Location]] = ..., + location: typing.Optional[typing.Iterable[global___SourceCodeInfo.Location]] = ..., ) -> None: ... def ClearField(self, field_name: typing_extensions.Literal["location",b"location"]) -> None: ... global___SourceCodeInfo = SourceCodeInfo @@ -1435,9 +1441,9 @@ class GeneratedCodeInfo(google.protobuf.message.Message): file. A GeneratedCodeInfo message is associated with only one generated source file, but may contain references to different source .proto files. """ - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + DESCRIPTOR: google.protobuf.descriptor.Descriptor class Annotation(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + DESCRIPTOR: google.protobuf.descriptor.Descriptor PATH_FIELD_NUMBER: builtins.int SOURCE_FILE_FIELD_NUMBER: builtins.int BEGIN_FIELD_NUMBER: builtins.int @@ -1448,15 +1454,15 @@ class GeneratedCodeInfo(google.protobuf.message.Message): is formatted the same as SourceCodeInfo.Location.path. """ pass - source_file: typing.Text = ... + source_file: typing.Text """Identifies the filesystem path to the original source .proto.""" - begin: builtins.int = ... + begin: builtins.int """Identifies the starting offset in bytes in the generated code that relates to the identified object. """ - end: builtins.int = ... + end: builtins.int """Identifies the ending offset in bytes in the generated code that relates to the identified offset. The end offset should be one past the last relevant byte (so the length of the text = end - begin). @@ -1464,10 +1470,10 @@ class GeneratedCodeInfo(google.protobuf.message.Message): def __init__(self, *, - path : typing.Optional[typing.Iterable[builtins.int]] = ..., - source_file : typing.Optional[typing.Text] = ..., - begin : typing.Optional[builtins.int] = ..., - end : typing.Optional[builtins.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["begin",b"begin","end",b"end","source_file",b"source_file"]) -> builtins.bool: ... def ClearField(self, field_name: typing_extensions.Literal["begin",b"begin","end",b"end","path",b"path","source_file",b"source_file"]) -> None: ... @@ -1481,7 +1487,7 @@ class GeneratedCodeInfo(google.protobuf.message.Message): pass def __init__(self, *, - annotation : typing.Optional[typing.Iterable[global___GeneratedCodeInfo.Annotation]] = ..., + annotation: typing.Optional[typing.Iterable[global___GeneratedCodeInfo.Annotation]] = ..., ) -> None: ... def ClearField(self, field_name: typing_extensions.Literal["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 b2786a8ed..edfbf1193 100644 --- a/stubs/protobuf/google/protobuf/duration_pb2.pyi +++ b/stubs/protobuf/google/protobuf/duration_pb2.pyi @@ -8,7 +8,7 @@ import google.protobuf.internal.well_known_types import google.protobuf.message import typing_extensions -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor class Duration(google.protobuf.message.Message, google.protobuf.internal.well_known_types.Duration): """A Duration represents a signed, fixed-length span of time represented @@ -70,16 +70,16 @@ class Duration(google.protobuf.message.Message, google.protobuf.internal.well_kn be expressed in JSON format as "3.000000001s", and 3 seconds and 1 microsecond should be expressed in JSON format as "3.000001s". """ - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + DESCRIPTOR: google.protobuf.descriptor.Descriptor SECONDS_FIELD_NUMBER: builtins.int NANOS_FIELD_NUMBER: builtins.int - seconds: builtins.int = ... + seconds: builtins.int """Signed seconds of the span of time. Must be from -315,576,000,000 to +315,576,000,000 inclusive. Note: these bounds are computed from: 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years """ - nanos: builtins.int = ... + nanos: builtins.int """Signed fractions of a second at nanosecond resolution of the span of time. Durations less than one second are represented with a 0 `seconds` field and a positive or negative `nanos` field. For durations @@ -90,8 +90,8 @@ class Duration(google.protobuf.message.Message, google.protobuf.internal.well_kn def __init__(self, *, - seconds : builtins.int = ..., - nanos : builtins.int = ..., + seconds: builtins.int = ..., + nanos: builtins.int = ..., ) -> None: ... def ClearField(self, field_name: typing_extensions.Literal["nanos",b"nanos","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 333e26158..6615bb960 100644 --- a/stubs/protobuf/google/protobuf/empty_pb2.pyi +++ b/stubs/protobuf/google/protobuf/empty_pb2.pyi @@ -5,7 +5,7 @@ isort:skip_file import google.protobuf.descriptor import google.protobuf.message -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor class Empty(google.protobuf.message.Message): """A generic empty message that you can re-use to avoid defining duplicated @@ -18,7 +18,7 @@ class Empty(google.protobuf.message.Message): The JSON representation for `Empty` is empty JSON object `{}`. """ - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + DESCRIPTOR: google.protobuf.descriptor.Descriptor def __init__(self, ) -> None: ... global___Empty = Empty diff --git a/stubs/protobuf/google/protobuf/field_mask_pb2.pyi b/stubs/protobuf/google/protobuf/field_mask_pb2.pyi index fba06afd7..c14cfe6ab 100644 --- a/stubs/protobuf/google/protobuf/field_mask_pb2.pyi +++ b/stubs/protobuf/google/protobuf/field_mask_pb2.pyi @@ -10,7 +10,7 @@ import google.protobuf.message import typing import typing_extensions -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor class FieldMask(google.protobuf.message.Message, google.protobuf.internal.well_known_types.FieldMask): """`FieldMask` represents a set of symbolic field paths, for example: @@ -213,7 +213,7 @@ class FieldMask(google.protobuf.message.Message, google.protobuf.internal.well_k request should verify the included field paths, and return an `INVALID_ARGUMENT` error if any path is unmappable. """ - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + DESCRIPTOR: google.protobuf.descriptor.Descriptor PATHS_FIELD_NUMBER: builtins.int @property def paths(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[typing.Text]: @@ -221,7 +221,7 @@ class FieldMask(google.protobuf.message.Message, google.protobuf.internal.well_k pass 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["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 61c2e83e3..e490d1dc3 100644 --- a/stubs/protobuf/google/protobuf/source_context_pb2.pyi +++ b/stubs/protobuf/google/protobuf/source_context_pb2.pyi @@ -8,22 +8,22 @@ import google.protobuf.message import typing import typing_extensions -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor class SourceContext(google.protobuf.message.Message): """`SourceContext` represents information about the source of a protobuf element, like the file in which it is defined. """ - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + DESCRIPTOR: google.protobuf.descriptor.Descriptor FILE_NAME_FIELD_NUMBER: builtins.int - file_name: typing.Text = ... + file_name: typing.Text """The path-qualified name of the .proto file that contained the associated protobuf element. For example: `"google/protobuf/source_context.proto"`. """ def __init__(self, *, - file_name : typing.Text = ..., + file_name: typing.Text = ..., ) -> None: ... def ClearField(self, field_name: typing_extensions.Literal["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 ade8d5ad0..cd6e9dbc9 100644 --- a/stubs/protobuf/google/protobuf/struct_pb2.pyi +++ b/stubs/protobuf/google/protobuf/struct_pb2.pyi @@ -11,7 +11,15 @@ import google.protobuf.message import typing import typing_extensions -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor + +class _NullValue: + ValueType = typing.NewType('ValueType', builtins.int) + V: typing_extensions.TypeAlias = ValueType +class _NullValueEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_NullValue.ValueType], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor + NULL_VALUE: _NullValue.ValueType # 0 + """Null value.""" class NullValue(_NullValue, metaclass=_NullValueEnumTypeWrapper): """`NullValue` is a singleton enumeration to represent the null value for the @@ -20,15 +28,8 @@ class NullValue(_NullValue, metaclass=_NullValueEnumTypeWrapper): The JSON representation for `NullValue` is JSON `null`. """ pass -class _NullValue: - V = typing.NewType('V', builtins.int) -class _NullValueEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_NullValue.V], builtins.type): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor = ... - NULL_VALUE = NullValue.V(0) - """Null value.""" - -NULL_VALUE = NullValue.V(0) +NULL_VALUE: NullValue.ValueType # 0 """Null value.""" global___NullValue = NullValue @@ -44,18 +45,18 @@ class Struct(google.protobuf.message.Message, google.protobuf.internal.well_know The JSON representation for `Struct` is JSON object. """ - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + DESCRIPTOR: google.protobuf.descriptor.Descriptor class FieldsEntry(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + DESCRIPTOR: google.protobuf.descriptor.Descriptor KEY_FIELD_NUMBER: builtins.int VALUE_FIELD_NUMBER: builtins.int - key: typing.Text = ... + key: typing.Text @property def value(self) -> global___Value: ... def __init__(self, *, - key : typing.Text = ..., - value : typing.Optional[global___Value] = ..., + key: typing.Text = ..., + value: typing.Optional[global___Value] = ..., ) -> None: ... def HasField(self, field_name: typing_extensions.Literal["value",b"value"]) -> builtins.bool: ... def ClearField(self, field_name: typing_extensions.Literal["key",b"key","value",b"value"]) -> None: ... @@ -67,7 +68,7 @@ class Struct(google.protobuf.message.Message, google.protobuf.internal.well_know pass def __init__(self, *, - fields : typing.Optional[typing.Mapping[typing.Text, global___Value]] = ..., + fields: typing.Optional[typing.Mapping[typing.Text, global___Value]] = ..., ) -> None: ... def ClearField(self, field_name: typing_extensions.Literal["fields",b"fields"]) -> None: ... global___Struct = Struct @@ -80,23 +81,23 @@ class Value(google.protobuf.message.Message): The JSON representation for `Value` is JSON value. """ - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + 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 = ... + null_value: global___NullValue.ValueType """Represents a null value.""" - number_value: builtins.float = ... + number_value: builtins.float """Represents a double value.""" - string_value: typing.Text = ... + string_value: typing.Text """Represents a string value.""" - bool_value: builtins.bool = ... + bool_value: builtins.bool """Represents a boolean value.""" @property @@ -109,12 +110,12 @@ class Value(google.protobuf.message.Message): pass def __init__(self, *, - 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] = ..., + null_value: global___NullValue.ValueType = ..., + 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["bool_value",b"bool_value","kind",b"kind","list_value",b"list_value","null_value",b"null_value","number_value",b"number_value","string_value",b"string_value","struct_value",b"struct_value"]) -> builtins.bool: ... def ClearField(self, field_name: typing_extensions.Literal["bool_value",b"bool_value","kind",b"kind","list_value",b"list_value","null_value",b"null_value","number_value",b"number_value","string_value",b"string_value","struct_value",b"struct_value"]) -> None: ... @@ -126,7 +127,7 @@ class ListValue(google.protobuf.message.Message, google.protobuf.internal.well_k The JSON representation for `ListValue` is JSON array. """ - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + DESCRIPTOR: google.protobuf.descriptor.Descriptor VALUES_FIELD_NUMBER: builtins.int @property def values(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Value]: @@ -134,7 +135,7 @@ class ListValue(google.protobuf.message.Message, google.protobuf.internal.well_k pass def __init__(self, *, - values : typing.Optional[typing.Iterable[global___Value]] = ..., + values: typing.Optional[typing.Iterable[global___Value]] = ..., ) -> None: ... def ClearField(self, field_name: typing_extensions.Literal["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 846004d18..b4f9d3486 100644 --- a/stubs/protobuf/google/protobuf/timestamp_pb2.pyi +++ b/stubs/protobuf/google/protobuf/timestamp_pb2.pyi @@ -8,7 +8,7 @@ import google.protobuf.internal.well_known_types import google.protobuf.message import typing_extensions -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor class Timestamp(google.protobuf.message.Message, google.protobuf.internal.well_known_types.Timestamp): """A Timestamp represents a point in time independent of any time zone or local @@ -103,16 +103,16 @@ class Timestamp(google.protobuf.message.Message, google.protobuf.internal.well_k http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime%2D%2D ) to obtain a formatter capable of generating timestamps in this format. """ - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + DESCRIPTOR: google.protobuf.descriptor.Descriptor SECONDS_FIELD_NUMBER: builtins.int NANOS_FIELD_NUMBER: builtins.int - seconds: builtins.int = ... + seconds: builtins.int """Represents seconds of UTC time since Unix epoch 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive. """ - nanos: builtins.int = ... + nanos: builtins.int """Non-negative fractions of a second at nanosecond resolution. Negative second values with fractions must still have non-negative nanos values that count forward in time. Must be from 0 to 999,999,999 @@ -121,8 +121,8 @@ class Timestamp(google.protobuf.message.Message, google.protobuf.internal.well_k def __init__(self, *, - seconds : builtins.int = ..., - nanos : builtins.int = ..., + seconds: builtins.int = ..., + nanos: builtins.int = ..., ) -> None: ... def ClearField(self, field_name: typing_extensions.Literal["nanos",b"nanos","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 d79a3c26a..3188aa7c0 100644 --- a/stubs/protobuf/google/protobuf/type_pb2.pyi +++ b/stubs/protobuf/google/protobuf/type_pb2.pyi @@ -12,26 +12,27 @@ import google.protobuf.source_context_pb2 import typing import typing_extensions -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor + +class _Syntax: + ValueType = typing.NewType('ValueType', builtins.int) + V: typing_extensions.TypeAlias = ValueType +class _SyntaxEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_Syntax.ValueType], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor + SYNTAX_PROTO2: _Syntax.ValueType # 0 + """Syntax `proto2`.""" + + SYNTAX_PROTO3: _Syntax.ValueType # 1 + """Syntax `proto3`.""" class Syntax(_Syntax, metaclass=_SyntaxEnumTypeWrapper): """The syntax in which a protocol buffer element is defined.""" pass -class _Syntax: - V = typing.NewType('V', builtins.int) -class _SyntaxEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_Syntax.V], builtins.type): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor = ... - SYNTAX_PROTO2 = Syntax.V(0) - """Syntax `proto2`.""" - SYNTAX_PROTO3 = Syntax.V(1) - """Syntax `proto3`.""" - - -SYNTAX_PROTO2 = Syntax.V(0) +SYNTAX_PROTO2: Syntax.ValueType # 0 """Syntax `proto2`.""" -SYNTAX_PROTO3 = Syntax.V(1) +SYNTAX_PROTO3: Syntax.ValueType # 1 """Syntax `proto3`.""" global___Syntax = Syntax @@ -39,14 +40,14 @@ global___Syntax = Syntax class Type(google.protobuf.message.Message): """A protocol buffer message type.""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + 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 = ... + name: typing.Text """The fully qualified message name.""" @property @@ -65,17 +66,17 @@ class Type(google.protobuf.message.Message): def source_context(self) -> google.protobuf.source_context_pb2.SourceContext: """The source context.""" pass - syntax: global___Syntax.V = ... + syntax: global___Syntax.ValueType """The source syntax.""" def __init__(self, *, - 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 = ..., + 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.ValueType = ..., ) -> None: ... def HasField(self, field_name: typing_extensions.Literal["source_context",b"source_context"]) -> builtins.bool: ... def ClearField(self, field_name: typing_extensions.Literal["fields",b"fields","name",b"name","oneofs",b"oneofs","options",b"options","source_context",b"source_context","syntax",b"syntax"]) -> None: ... @@ -83,160 +84,162 @@ global___Type = Type class Field(google.protobuf.message.Message): """A single field of a message type.""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + DESCRIPTOR: google.protobuf.descriptor.Descriptor + class _Kind: + ValueType = typing.NewType('ValueType', builtins.int) + V: typing_extensions.TypeAlias = ValueType + class _KindEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[Field._Kind.ValueType], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor + TYPE_UNKNOWN: Field._Kind.ValueType # 0 + """Field type unknown.""" + + TYPE_DOUBLE: Field._Kind.ValueType # 1 + """Field type double.""" + + TYPE_FLOAT: Field._Kind.ValueType # 2 + """Field type float.""" + + TYPE_INT64: Field._Kind.ValueType # 3 + """Field type int64.""" + + TYPE_UINT64: Field._Kind.ValueType # 4 + """Field type uint64.""" + + TYPE_INT32: Field._Kind.ValueType # 5 + """Field type int32.""" + + TYPE_FIXED64: Field._Kind.ValueType # 6 + """Field type fixed64.""" + + TYPE_FIXED32: Field._Kind.ValueType # 7 + """Field type fixed32.""" + + TYPE_BOOL: Field._Kind.ValueType # 8 + """Field type bool.""" + + TYPE_STRING: Field._Kind.ValueType # 9 + """Field type string.""" + + TYPE_GROUP: Field._Kind.ValueType # 10 + """Field type group. Proto2 syntax only, and deprecated.""" + + TYPE_MESSAGE: Field._Kind.ValueType # 11 + """Field type message.""" + + TYPE_BYTES: Field._Kind.ValueType # 12 + """Field type bytes.""" + + TYPE_UINT32: Field._Kind.ValueType # 13 + """Field type uint32.""" + + TYPE_ENUM: Field._Kind.ValueType # 14 + """Field type enum.""" + + TYPE_SFIXED32: Field._Kind.ValueType # 15 + """Field type sfixed32.""" + + TYPE_SFIXED64: Field._Kind.ValueType # 16 + """Field type sfixed64.""" + + TYPE_SINT32: Field._Kind.ValueType # 17 + """Field type sint32.""" + + TYPE_SINT64: Field._Kind.ValueType # 18 + """Field type sint64.""" + class Kind(_Kind, metaclass=_KindEnumTypeWrapper): """Basic field types.""" pass - class _Kind: - V = typing.NewType('V', builtins.int) - class _KindEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_Kind.V], builtins.type): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor = ... - TYPE_UNKNOWN = Field.Kind.V(0) - """Field type unknown.""" - TYPE_DOUBLE = Field.Kind.V(1) - """Field type double.""" - - TYPE_FLOAT = Field.Kind.V(2) - """Field type float.""" - - TYPE_INT64 = Field.Kind.V(3) - """Field type int64.""" - - TYPE_UINT64 = Field.Kind.V(4) - """Field type uint64.""" - - TYPE_INT32 = Field.Kind.V(5) - """Field type int32.""" - - TYPE_FIXED64 = Field.Kind.V(6) - """Field type fixed64.""" - - TYPE_FIXED32 = Field.Kind.V(7) - """Field type fixed32.""" - - TYPE_BOOL = Field.Kind.V(8) - """Field type bool.""" - - TYPE_STRING = Field.Kind.V(9) - """Field type string.""" - - TYPE_GROUP = Field.Kind.V(10) - """Field type group. Proto2 syntax only, and deprecated.""" - - TYPE_MESSAGE = Field.Kind.V(11) - """Field type message.""" - - TYPE_BYTES = Field.Kind.V(12) - """Field type bytes.""" - - TYPE_UINT32 = Field.Kind.V(13) - """Field type uint32.""" - - TYPE_ENUM = Field.Kind.V(14) - """Field type enum.""" - - TYPE_SFIXED32 = Field.Kind.V(15) - """Field type sfixed32.""" - - TYPE_SFIXED64 = Field.Kind.V(16) - """Field type sfixed64.""" - - TYPE_SINT32 = Field.Kind.V(17) - """Field type sint32.""" - - TYPE_SINT64 = Field.Kind.V(18) - """Field type sint64.""" - - - TYPE_UNKNOWN = Field.Kind.V(0) + TYPE_UNKNOWN: Field.Kind.ValueType # 0 """Field type unknown.""" - TYPE_DOUBLE = Field.Kind.V(1) + TYPE_DOUBLE: Field.Kind.ValueType # 1 """Field type double.""" - TYPE_FLOAT = Field.Kind.V(2) + TYPE_FLOAT: Field.Kind.ValueType # 2 """Field type float.""" - TYPE_INT64 = Field.Kind.V(3) + TYPE_INT64: Field.Kind.ValueType # 3 """Field type int64.""" - TYPE_UINT64 = Field.Kind.V(4) + TYPE_UINT64: Field.Kind.ValueType # 4 """Field type uint64.""" - TYPE_INT32 = Field.Kind.V(5) + TYPE_INT32: Field.Kind.ValueType # 5 """Field type int32.""" - TYPE_FIXED64 = Field.Kind.V(6) + TYPE_FIXED64: Field.Kind.ValueType # 6 """Field type fixed64.""" - TYPE_FIXED32 = Field.Kind.V(7) + TYPE_FIXED32: Field.Kind.ValueType # 7 """Field type fixed32.""" - TYPE_BOOL = Field.Kind.V(8) + TYPE_BOOL: Field.Kind.ValueType # 8 """Field type bool.""" - TYPE_STRING = Field.Kind.V(9) + TYPE_STRING: Field.Kind.ValueType # 9 """Field type string.""" - TYPE_GROUP = Field.Kind.V(10) + TYPE_GROUP: Field.Kind.ValueType # 10 """Field type group. Proto2 syntax only, and deprecated.""" - TYPE_MESSAGE = Field.Kind.V(11) + TYPE_MESSAGE: Field.Kind.ValueType # 11 """Field type message.""" - TYPE_BYTES = Field.Kind.V(12) + TYPE_BYTES: Field.Kind.ValueType # 12 """Field type bytes.""" - TYPE_UINT32 = Field.Kind.V(13) + TYPE_UINT32: Field.Kind.ValueType # 13 """Field type uint32.""" - TYPE_ENUM = Field.Kind.V(14) + TYPE_ENUM: Field.Kind.ValueType # 14 """Field type enum.""" - TYPE_SFIXED32 = Field.Kind.V(15) + TYPE_SFIXED32: Field.Kind.ValueType # 15 """Field type sfixed32.""" - TYPE_SFIXED64 = Field.Kind.V(16) + TYPE_SFIXED64: Field.Kind.ValueType # 16 """Field type sfixed64.""" - TYPE_SINT32 = Field.Kind.V(17) + TYPE_SINT32: Field.Kind.ValueType # 17 """Field type sint32.""" - TYPE_SINT64 = Field.Kind.V(18) + TYPE_SINT64: Field.Kind.ValueType # 18 """Field type sint64.""" + class _Cardinality: + ValueType = typing.NewType('ValueType', builtins.int) + V: typing_extensions.TypeAlias = ValueType + class _CardinalityEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[Field._Cardinality.ValueType], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor + CARDINALITY_UNKNOWN: Field._Cardinality.ValueType # 0 + """For fields with unknown cardinality.""" + + CARDINALITY_OPTIONAL: Field._Cardinality.ValueType # 1 + """For optional fields.""" + + CARDINALITY_REQUIRED: Field._Cardinality.ValueType # 2 + """For required fields. Proto2 syntax only.""" + + CARDINALITY_REPEATED: Field._Cardinality.ValueType # 3 + """For repeated fields.""" + class Cardinality(_Cardinality, metaclass=_CardinalityEnumTypeWrapper): """Whether a field is optional, required, or repeated.""" pass - class _Cardinality: - V = typing.NewType('V', builtins.int) - class _CardinalityEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_Cardinality.V], builtins.type): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor = ... - CARDINALITY_UNKNOWN = Field.Cardinality.V(0) - """For fields with unknown cardinality.""" - CARDINALITY_OPTIONAL = Field.Cardinality.V(1) - """For optional fields.""" - - CARDINALITY_REQUIRED = Field.Cardinality.V(2) - """For required fields. Proto2 syntax only.""" - - CARDINALITY_REPEATED = Field.Cardinality.V(3) - """For repeated fields.""" - - - CARDINALITY_UNKNOWN = Field.Cardinality.V(0) + CARDINALITY_UNKNOWN: Field.Cardinality.ValueType # 0 """For fields with unknown cardinality.""" - CARDINALITY_OPTIONAL = Field.Cardinality.V(1) + CARDINALITY_OPTIONAL: Field.Cardinality.ValueType # 1 """For optional fields.""" - CARDINALITY_REQUIRED = Field.Cardinality.V(2) + CARDINALITY_REQUIRED: Field.Cardinality.ValueType # 2 """For required fields. Proto2 syntax only.""" - CARDINALITY_REPEATED = Field.Cardinality.V(3) + CARDINALITY_REPEATED: Field.Cardinality.ValueType # 3 """For repeated fields.""" @@ -250,66 +253,66 @@ class Field(google.protobuf.message.Message): OPTIONS_FIELD_NUMBER: builtins.int JSON_NAME_FIELD_NUMBER: builtins.int DEFAULT_VALUE_FIELD_NUMBER: builtins.int - kind: global___Field.Kind.V = ... + kind: global___Field.Kind.ValueType """The field type.""" - cardinality: global___Field.Cardinality.V = ... + cardinality: global___Field.Cardinality.ValueType """The field cardinality.""" - number: builtins.int = ... + number: builtins.int """The field number.""" - name: typing.Text = ... + name: typing.Text """The field name.""" - type_url: typing.Text = ... + type_url: typing.Text """The field type URL, without the scheme, for message or enumeration types. Example: `"type.googleapis.com/google.protobuf.Timestamp"`. """ - oneof_index: builtins.int = ... + oneof_index: builtins.int """The index of the field type in `Type.oneofs`, for message or enumeration types. The first type has index 1; zero means the type is not in the list. """ - packed: builtins.bool = ... + packed: builtins.bool """Whether to use alternative packed wire representation.""" @property def options(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Option]: """The protocol buffer options.""" pass - json_name: typing.Text = ... + json_name: typing.Text """The field JSON name.""" - default_value: typing.Text = ... + default_value: typing.Text """The string value of the default value of this field. Proto2 syntax only.""" def __init__(self, *, - 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 = ..., + kind: global___Field.Kind.ValueType = ..., + cardinality: global___Field.Cardinality.ValueType = ..., + 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["cardinality",b"cardinality","default_value",b"default_value","json_name",b"json_name","kind",b"kind","name",b"name","number",b"number","oneof_index",b"oneof_index","options",b"options","packed",b"packed","type_url",b"type_url"]) -> None: ... global___Field = Field class Enum(google.protobuf.message.Message): """Enum type definition.""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + 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 = ... + name: typing.Text """Enum type name.""" @property @@ -324,16 +327,16 @@ class Enum(google.protobuf.message.Message): def source_context(self) -> google.protobuf.source_context_pb2.SourceContext: """The source context.""" pass - syntax: global___Syntax.V = ... + syntax: global___Syntax.ValueType """The source syntax.""" def __init__(self, *, - 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 = ..., + 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.ValueType = ..., ) -> None: ... def HasField(self, field_name: typing_extensions.Literal["source_context",b"source_context"]) -> builtins.bool: ... def ClearField(self, field_name: typing_extensions.Literal["enumvalue",b"enumvalue","name",b"name","options",b"options","source_context",b"source_context","syntax",b"syntax"]) -> None: ... @@ -341,14 +344,14 @@ global___Enum = Enum class EnumValue(google.protobuf.message.Message): """Enum value definition.""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + DESCRIPTOR: google.protobuf.descriptor.Descriptor NAME_FIELD_NUMBER: builtins.int NUMBER_FIELD_NUMBER: builtins.int OPTIONS_FIELD_NUMBER: builtins.int - name: typing.Text = ... + name: typing.Text """Enum value name.""" - number: builtins.int = ... + number: builtins.int """Enum value number.""" @property @@ -357,9 +360,9 @@ class EnumValue(google.protobuf.message.Message): pass def __init__(self, *, - name : typing.Text = ..., - number : builtins.int = ..., - options : typing.Optional[typing.Iterable[global___Option]] = ..., + name: typing.Text = ..., + number: builtins.int = ..., + options: typing.Optional[typing.Iterable[global___Option]] = ..., ) -> None: ... def ClearField(self, field_name: typing_extensions.Literal["name",b"name","number",b"number","options",b"options"]) -> None: ... global___EnumValue = EnumValue @@ -368,10 +371,10 @@ class Option(google.protobuf.message.Message): """A protocol buffer option, which can be attached to a message, field, enumeration, etc. """ - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + DESCRIPTOR: google.protobuf.descriptor.Descriptor NAME_FIELD_NUMBER: builtins.int VALUE_FIELD_NUMBER: builtins.int - name: typing.Text = ... + name: typing.Text """The option's name. For protobuf built-in options (options defined in descriptor.proto), this is the short name. For example, `"map_entry"`. For custom options, it should be the fully-qualified name. For example, @@ -388,8 +391,8 @@ class Option(google.protobuf.message.Message): pass def __init__(self, *, - name : 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["value",b"value"]) -> builtins.bool: ... def ClearField(self, field_name: typing_extensions.Literal["name",b"name","value",b"value"]) -> None: ... diff --git a/stubs/protobuf/google/protobuf/wrappers_pb2.pyi b/stubs/protobuf/google/protobuf/wrappers_pb2.pyi index f4cdb76be..46698096b 100644 --- a/stubs/protobuf/google/protobuf/wrappers_pb2.pyi +++ b/stubs/protobuf/google/protobuf/wrappers_pb2.pyi @@ -8,21 +8,21 @@ import google.protobuf.message import typing import typing_extensions -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor class DoubleValue(google.protobuf.message.Message): """Wrapper message for `double`. The JSON representation for `DoubleValue` is JSON number. """ - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + DESCRIPTOR: google.protobuf.descriptor.Descriptor VALUE_FIELD_NUMBER: builtins.int - value: builtins.float = ... + value: builtins.float """The double value.""" def __init__(self, *, - value : builtins.float = ..., + value: builtins.float = ..., ) -> None: ... def ClearField(self, field_name: typing_extensions.Literal["value",b"value"]) -> None: ... global___DoubleValue = DoubleValue @@ -32,14 +32,14 @@ class FloatValue(google.protobuf.message.Message): The JSON representation for `FloatValue` is JSON number. """ - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + DESCRIPTOR: google.protobuf.descriptor.Descriptor VALUE_FIELD_NUMBER: builtins.int - value: builtins.float = ... + value: builtins.float """The float value.""" def __init__(self, *, - value : builtins.float = ..., + value: builtins.float = ..., ) -> None: ... def ClearField(self, field_name: typing_extensions.Literal["value",b"value"]) -> None: ... global___FloatValue = FloatValue @@ -49,14 +49,14 @@ class Int64Value(google.protobuf.message.Message): The JSON representation for `Int64Value` is JSON string. """ - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + DESCRIPTOR: google.protobuf.descriptor.Descriptor VALUE_FIELD_NUMBER: builtins.int - value: builtins.int = ... + value: builtins.int """The int64 value.""" def __init__(self, *, - value : builtins.int = ..., + value: builtins.int = ..., ) -> None: ... def ClearField(self, field_name: typing_extensions.Literal["value",b"value"]) -> None: ... global___Int64Value = Int64Value @@ -66,14 +66,14 @@ class UInt64Value(google.protobuf.message.Message): The JSON representation for `UInt64Value` is JSON string. """ - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + DESCRIPTOR: google.protobuf.descriptor.Descriptor VALUE_FIELD_NUMBER: builtins.int - value: builtins.int = ... + value: builtins.int """The uint64 value.""" def __init__(self, *, - value : builtins.int = ..., + value: builtins.int = ..., ) -> None: ... def ClearField(self, field_name: typing_extensions.Literal["value",b"value"]) -> None: ... global___UInt64Value = UInt64Value @@ -83,14 +83,14 @@ class Int32Value(google.protobuf.message.Message): The JSON representation for `Int32Value` is JSON number. """ - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + DESCRIPTOR: google.protobuf.descriptor.Descriptor VALUE_FIELD_NUMBER: builtins.int - value: builtins.int = ... + value: builtins.int """The int32 value.""" def __init__(self, *, - value : builtins.int = ..., + value: builtins.int = ..., ) -> None: ... def ClearField(self, field_name: typing_extensions.Literal["value",b"value"]) -> None: ... global___Int32Value = Int32Value @@ -100,14 +100,14 @@ class UInt32Value(google.protobuf.message.Message): The JSON representation for `UInt32Value` is JSON number. """ - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + DESCRIPTOR: google.protobuf.descriptor.Descriptor VALUE_FIELD_NUMBER: builtins.int - value: builtins.int = ... + value: builtins.int """The uint32 value.""" def __init__(self, *, - value : builtins.int = ..., + value: builtins.int = ..., ) -> None: ... def ClearField(self, field_name: typing_extensions.Literal["value",b"value"]) -> None: ... global___UInt32Value = UInt32Value @@ -117,14 +117,14 @@ class BoolValue(google.protobuf.message.Message): The JSON representation for `BoolValue` is JSON `true` and `false`. """ - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + DESCRIPTOR: google.protobuf.descriptor.Descriptor VALUE_FIELD_NUMBER: builtins.int - value: builtins.bool = ... + value: builtins.bool """The bool value.""" def __init__(self, *, - value : builtins.bool = ..., + value: builtins.bool = ..., ) -> None: ... def ClearField(self, field_name: typing_extensions.Literal["value",b"value"]) -> None: ... global___BoolValue = BoolValue @@ -134,14 +134,14 @@ class StringValue(google.protobuf.message.Message): The JSON representation for `StringValue` is JSON string. """ - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + DESCRIPTOR: google.protobuf.descriptor.Descriptor VALUE_FIELD_NUMBER: builtins.int - value: typing.Text = ... + value: typing.Text """The string value.""" def __init__(self, *, - value : typing.Text = ..., + value: typing.Text = ..., ) -> None: ... def ClearField(self, field_name: typing_extensions.Literal["value",b"value"]) -> None: ... global___StringValue = StringValue @@ -151,14 +151,14 @@ class BytesValue(google.protobuf.message.Message): The JSON representation for `BytesValue` is JSON string. """ - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + DESCRIPTOR: google.protobuf.descriptor.Descriptor VALUE_FIELD_NUMBER: builtins.int - value: builtins.bytes = ... + value: builtins.bytes """The bytes value.""" def __init__(self, *, - value : builtins.bytes = ..., + value: builtins.bytes = ..., ) -> None: ... def ClearField(self, field_name: typing_extensions.Literal["value",b"value"]) -> None: ... global___BytesValue = BytesValue