mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-31 00:24:24 +08:00
Bump to mypy-protobuf 3.3.0 (#8612)
* Bump to mypy-protobuf 3.3.0 * Remove some ignores for formatting
This commit is contained in:
4
.flake8
4
.flake8
@@ -31,5 +31,7 @@ per-file-ignores =
|
||||
# https://github.com/PyCQA/flake8/issues/1079
|
||||
# F811 redefinition of unused '...'
|
||||
stdlib/typing.pyi: E301, E302, E305, E501, E701, E741, F401, F403, F405, F811, F822, Y037
|
||||
# Generate protobuf files include docstrings
|
||||
*_pb2.pyi: E301, E302, E305, E501, E701, Y021, Y026
|
||||
|
||||
exclude = .venv*,.git,*_pb2.pyi
|
||||
exclude = .venv*,.git
|
||||
|
||||
@@ -1,15 +1,17 @@
|
||||
[tool.black]
|
||||
line_length = 130
|
||||
target_version = ["py310"]
|
||||
force-exclude = ".*_pb2.pyi"
|
||||
skip_magic_trailing_comma = true
|
||||
# Exclude protobuf files because they have long line lengths
|
||||
# Ideally, we could configure black to allow longer line lengths
|
||||
# for just these files, but doesn't seem possible yet.
|
||||
force-exclude = ".*_pb2.pyi"
|
||||
|
||||
[tool.isort]
|
||||
profile = "black"
|
||||
combine_as_imports = true
|
||||
line_length = 130
|
||||
skip = [".git", ".github", ".venv"]
|
||||
skip_glob = "*_pb2.pyi"
|
||||
extra_standard_library = [
|
||||
"typing_extensions",
|
||||
"_typeshed",
|
||||
|
||||
@@ -12,7 +12,7 @@ set -ex -o pipefail
|
||||
#
|
||||
# Update these two variables when rerunning script
|
||||
PROTOBUF_VERSION=3.20.1
|
||||
MYPY_PROTOBUF_VERSION=v3.2.0
|
||||
MYPY_PROTOBUF_VERSION=v3.3.0
|
||||
|
||||
if uname -a | grep Darwin; then
|
||||
# brew install coreutils wget
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
version = "3.20.*"
|
||||
extra_description = "Generated with aid from mypy-protobuf v3.2.0"
|
||||
extra_description = "Generated with aid from mypy-protobuf v3.3.0"
|
||||
|
||||
@@ -1,13 +1,46 @@
|
||||
"""
|
||||
@generated by mypy-protobuf. Do not edit manually!
|
||||
isort:skip_file
|
||||
Protocol Buffers - Google's data interchange format
|
||||
Copyright 2008 Google Inc. All rights reserved.
|
||||
https://developers.google.com/protocol-buffers/
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions are
|
||||
met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright
|
||||
notice, this list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above
|
||||
copyright notice, this list of conditions and the following disclaimer
|
||||
in the documentation and/or other materials provided with the
|
||||
distribution.
|
||||
* Neither the name of Google Inc. nor the names of its
|
||||
contributors may be used to endorse or promote products derived from
|
||||
this software without specific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
"""
|
||||
import builtins
|
||||
import google.protobuf.descriptor
|
||||
import google.protobuf.internal.well_known_types
|
||||
import google.protobuf.message
|
||||
import typing
|
||||
import typing_extensions
|
||||
import sys
|
||||
|
||||
if sys.version_info >= (3, 8):
|
||||
import typing as typing_extensions
|
||||
else:
|
||||
import typing_extensions
|
||||
|
||||
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
|
||||
|
||||
@@ -95,10 +128,12 @@ class Any(google.protobuf.message.Message, google.protobuf.internal.well_known_t
|
||||
"value": "1.212s"
|
||||
}
|
||||
"""
|
||||
|
||||
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
||||
|
||||
TYPE_URL_FIELD_NUMBER: builtins.int
|
||||
VALUE_FIELD_NUMBER: builtins.int
|
||||
type_url: typing.Text
|
||||
type_url: builtins.str
|
||||
"""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
|
||||
@@ -127,14 +162,14 @@ class Any(google.protobuf.message.Message, google.protobuf.internal.well_known_t
|
||||
Schemes other than `http`, `https` (or the empty scheme) might be
|
||||
used with implementation specific semantics.
|
||||
"""
|
||||
|
||||
value: builtins.bytes
|
||||
"""Must be a valid serialized protocol buffer of the above specified type."""
|
||||
|
||||
def __init__(self,
|
||||
def __init__(
|
||||
self,
|
||||
*,
|
||||
type_url: typing.Optional[typing.Text] = ...,
|
||||
value: typing.Optional[builtins.bytes] = ...,
|
||||
) -> None: ...
|
||||
def ClearField(self, field_name: typing_extensions.Literal["type_url",b"type_url","value",b"value"]) -> None: ...
|
||||
type_url: builtins.str | None = ...,
|
||||
value: builtins.bytes | None = ...,
|
||||
) -> None: ...
|
||||
def ClearField(self, field_name: typing_extensions.Literal["type_url", b"type_url", "value", b"value"]) -> None: ...
|
||||
|
||||
global___Any = Any
|
||||
|
||||
@@ -1,15 +1,49 @@
|
||||
"""
|
||||
@generated by mypy-protobuf. Do not edit manually!
|
||||
isort:skip_file
|
||||
Protocol Buffers - Google's data interchange format
|
||||
Copyright 2008 Google Inc. All rights reserved.
|
||||
https://developers.google.com/protocol-buffers/
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions are
|
||||
met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright
|
||||
notice, this list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above
|
||||
copyright notice, this list of conditions and the following disclaimer
|
||||
in the documentation and/or other materials provided with the
|
||||
distribution.
|
||||
* Neither the name of Google Inc. nor the names of its
|
||||
contributors may be used to endorse or promote products derived from
|
||||
this software without specific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
"""
|
||||
import builtins
|
||||
import collections.abc
|
||||
import google.protobuf.descriptor
|
||||
import google.protobuf.internal.containers
|
||||
import google.protobuf.message
|
||||
import google.protobuf.source_context_pb2
|
||||
import google.protobuf.type_pb2
|
||||
import typing
|
||||
import typing_extensions
|
||||
import sys
|
||||
|
||||
if sys.version_info >= (3, 8):
|
||||
import typing as typing_extensions
|
||||
else:
|
||||
import typing_extensions
|
||||
|
||||
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
|
||||
|
||||
@@ -24,7 +58,9 @@ 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
|
||||
|
||||
NAME_FIELD_NUMBER: builtins.int
|
||||
METHODS_FIELD_NUMBER: builtins.int
|
||||
OPTIONS_FIELD_NUMBER: builtins.int
|
||||
@@ -32,20 +68,17 @@ 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: builtins.str
|
||||
"""The fully qualified name of this interface, including package name
|
||||
followed by the interface's simple name.
|
||||
"""
|
||||
|
||||
@property
|
||||
def methods(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Method]:
|
||||
"""The methods of this interface, in unspecified order."""
|
||||
pass
|
||||
@property
|
||||
def options(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[google.protobuf.type_pb2.Option]:
|
||||
"""Any metadata attached to the interface."""
|
||||
pass
|
||||
version: typing.Text
|
||||
version: builtins.str
|
||||
"""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
|
||||
@@ -66,37 +99,37 @@ class Api(google.protobuf.message.Message):
|
||||
be omitted. Zero major versions must only be used for
|
||||
experimental, non-GA interfaces.
|
||||
"""
|
||||
|
||||
@property
|
||||
def source_context(self) -> google.protobuf.source_context_pb2.SourceContext:
|
||||
"""Source context for the protocol buffer service represented by this
|
||||
message.
|
||||
"""
|
||||
pass
|
||||
@property
|
||||
def mixins(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Mixin]:
|
||||
"""Included interfaces. See [Mixin][]."""
|
||||
pass
|
||||
syntax: google.protobuf.type_pb2.Syntax.ValueType
|
||||
"""The source syntax of the service."""
|
||||
|
||||
def __init__(self,
|
||||
def __init__(
|
||||
self,
|
||||
*,
|
||||
name: typing.Optional[typing.Text] = ...,
|
||||
methods: typing.Optional[typing.Iterable[global___Method]] = ...,
|
||||
options: typing.Optional[typing.Iterable[google.protobuf.type_pb2.Option]] = ...,
|
||||
version: typing.Optional[typing.Text] = ...,
|
||||
source_context: typing.Optional[google.protobuf.source_context_pb2.SourceContext] = ...,
|
||||
mixins: typing.Optional[typing.Iterable[global___Mixin]] = ...,
|
||||
syntax: typing.Optional[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: ...
|
||||
name: builtins.str | None = ...,
|
||||
methods: collections.abc.Iterable[global___Method] | None = ...,
|
||||
options: collections.abc.Iterable[google.protobuf.type_pb2.Option] | None = ...,
|
||||
version: builtins.str | None = ...,
|
||||
source_context: google.protobuf.source_context_pb2.SourceContext | None = ...,
|
||||
mixins: collections.abc.Iterable[global___Mixin] | None = ...,
|
||||
syntax: google.protobuf.type_pb2.Syntax.ValueType | None = ...,
|
||||
) -> 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: ...
|
||||
|
||||
global___Api = Api
|
||||
|
||||
class Method(google.protobuf.message.Message):
|
||||
"""Method represents a method of an API interface."""
|
||||
|
||||
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
||||
|
||||
NAME_FIELD_NUMBER: builtins.int
|
||||
REQUEST_TYPE_URL_FIELD_NUMBER: builtins.int
|
||||
REQUEST_STREAMING_FIELD_NUMBER: builtins.int
|
||||
@@ -104,39 +137,34 @@ 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: builtins.str
|
||||
"""The simple name of this method."""
|
||||
|
||||
request_type_url: typing.Text
|
||||
request_type_url: builtins.str
|
||||
"""A URL of the input message type."""
|
||||
|
||||
request_streaming: builtins.bool
|
||||
"""If true, the request is streamed."""
|
||||
|
||||
response_type_url: typing.Text
|
||||
response_type_url: builtins.str
|
||||
"""The URL of the output message type."""
|
||||
|
||||
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.ValueType
|
||||
"""The source syntax of this method."""
|
||||
|
||||
def __init__(self,
|
||||
def __init__(
|
||||
self,
|
||||
*,
|
||||
name: typing.Optional[typing.Text] = ...,
|
||||
request_type_url: typing.Optional[typing.Text] = ...,
|
||||
request_streaming: typing.Optional[builtins.bool] = ...,
|
||||
response_type_url: typing.Optional[typing.Text] = ...,
|
||||
response_streaming: typing.Optional[builtins.bool] = ...,
|
||||
options: typing.Optional[typing.Iterable[google.protobuf.type_pb2.Option]] = ...,
|
||||
syntax: typing.Optional[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: ...
|
||||
name: builtins.str | None = ...,
|
||||
request_type_url: builtins.str | None = ...,
|
||||
request_streaming: builtins.bool | None = ...,
|
||||
response_type_url: builtins.str | None = ...,
|
||||
response_streaming: builtins.bool | None = ...,
|
||||
options: collections.abc.Iterable[google.protobuf.type_pb2.Option] | None = ...,
|
||||
syntax: google.protobuf.type_pb2.Syntax.ValueType | None = ...,
|
||||
) -> 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
|
||||
|
||||
class Mixin(google.protobuf.message.Message):
|
||||
@@ -219,21 +247,23 @@ class Mixin(google.protobuf.message.Message):
|
||||
...
|
||||
}
|
||||
"""
|
||||
|
||||
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
||||
|
||||
NAME_FIELD_NUMBER: builtins.int
|
||||
ROOT_FIELD_NUMBER: builtins.int
|
||||
name: typing.Text
|
||||
name: builtins.str
|
||||
"""The fully qualified name of the interface which is included."""
|
||||
|
||||
root: typing.Text
|
||||
root: builtins.str
|
||||
"""If non-empty specifies a path under which inherited HTTP paths
|
||||
are rooted.
|
||||
"""
|
||||
|
||||
def __init__(self,
|
||||
def __init__(
|
||||
self,
|
||||
*,
|
||||
name: typing.Optional[typing.Text] = ...,
|
||||
root: typing.Optional[typing.Text] = ...,
|
||||
) -> None: ...
|
||||
def ClearField(self, field_name: typing_extensions.Literal["name",b"name","root",b"root"]) -> None: ...
|
||||
name: builtins.str | None = ...,
|
||||
root: builtins.str | None = ...,
|
||||
) -> None: ...
|
||||
def ClearField(self, field_name: typing_extensions.Literal["name", b"name", "root", b"root"]) -> None: ...
|
||||
|
||||
global___Mixin = Mixin
|
||||
|
||||
@@ -1,21 +1,44 @@
|
||||
"""
|
||||
@generated by mypy-protobuf. Do not edit manually!
|
||||
isort:skip_file
|
||||
Author: kenton@google.com (Kenton Varda)
|
||||
|
||||
WARNING: The plugin interface is currently EXPERIMENTAL and is subject to
|
||||
change.
|
||||
|
||||
protoc (aka the Protocol Compiler) can be extended via plugins. A plugin is
|
||||
just a program that reads a CodeGeneratorRequest from stdin and writes a
|
||||
CodeGeneratorResponse to stdout.
|
||||
|
||||
Plugins written using C++ can use google/protobuf/compiler/plugin.h instead
|
||||
of dealing with the raw protocol defined here.
|
||||
|
||||
A plugin executable needs only to be placed somewhere in the path. The
|
||||
plugin should be named "protoc-gen-$NAME", and will then be used when the
|
||||
flag "--${NAME}_out" is passed to protoc.
|
||||
"""
|
||||
import builtins
|
||||
import collections.abc
|
||||
import google.protobuf.descriptor
|
||||
import google.protobuf.descriptor_pb2
|
||||
import google.protobuf.internal.containers
|
||||
import google.protobuf.internal.enum_type_wrapper
|
||||
import google.protobuf.message
|
||||
import sys
|
||||
import typing
|
||||
import typing_extensions
|
||||
|
||||
if sys.version_info >= (3, 10):
|
||||
import typing as typing_extensions
|
||||
else:
|
||||
import typing_extensions
|
||||
|
||||
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
|
||||
|
||||
class Version(google.protobuf.message.Message):
|
||||
"""The version number of protocol compiler."""
|
||||
|
||||
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
||||
|
||||
MAJOR_FIELD_NUMBER: builtins.int
|
||||
MINOR_FIELD_NUMBER: builtins.int
|
||||
PATCH_FIELD_NUMBER: builtins.int
|
||||
@@ -23,39 +46,40 @@ class Version(google.protobuf.message.Message):
|
||||
major: builtins.int
|
||||
minor: builtins.int
|
||||
patch: builtins.int
|
||||
suffix: typing.Text
|
||||
suffix: builtins.str
|
||||
"""A suffix for alpha, beta or rc release, e.g., "alpha-1", "rc2". It should
|
||||
be empty for mainline stable releases.
|
||||
"""
|
||||
|
||||
def __init__(self,
|
||||
def __init__(
|
||||
self,
|
||||
*,
|
||||
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: ...
|
||||
major: builtins.int | None = ...,
|
||||
minor: builtins.int | None = ...,
|
||||
patch: builtins.int | None = ...,
|
||||
suffix: builtins.str | None = ...,
|
||||
) -> 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: ...
|
||||
|
||||
global___Version = Version
|
||||
|
||||
class CodeGeneratorRequest(google.protobuf.message.Message):
|
||||
"""An encoded CodeGeneratorRequest is written to the plugin's stdin."""
|
||||
|
||||
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
||||
|
||||
FILE_TO_GENERATE_FIELD_NUMBER: builtins.int
|
||||
PARAMETER_FIELD_NUMBER: builtins.int
|
||||
PROTO_FILE_FIELD_NUMBER: builtins.int
|
||||
COMPILER_VERSION_FIELD_NUMBER: builtins.int
|
||||
@property
|
||||
def file_to_generate(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[typing.Text]:
|
||||
def file_to_generate(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]:
|
||||
"""The .proto files that were explicitly listed on the command-line. The
|
||||
code generator should generate code only for these files. Each file's
|
||||
descriptor will be included in proto_file, below.
|
||||
"""
|
||||
pass
|
||||
parameter: typing.Text
|
||||
parameter: builtins.str
|
||||
"""The generator parameter passed on the command-line."""
|
||||
|
||||
@property
|
||||
def proto_file(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[google.protobuf.descriptor_pb2.FileDescriptorProto]:
|
||||
"""FileDescriptorProtos for all files in files_to_generate and everything
|
||||
@@ -73,47 +97,52 @@ class CodeGeneratorRequest(google.protobuf.message.Message):
|
||||
Type names of fields and extensions in the FileDescriptorProto are always
|
||||
fully qualified.
|
||||
"""
|
||||
pass
|
||||
@property
|
||||
def compiler_version(self) -> global___Version:
|
||||
"""The version number of protocol compiler."""
|
||||
pass
|
||||
def __init__(self,
|
||||
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] = ...,
|
||||
) -> 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: ...
|
||||
file_to_generate: collections.abc.Iterable[builtins.str] | None = ...,
|
||||
parameter: builtins.str | None = ...,
|
||||
proto_file: collections.abc.Iterable[google.protobuf.descriptor_pb2.FileDescriptorProto] | None = ...,
|
||||
compiler_version: global___Version | None = ...,
|
||||
) -> 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: ...
|
||||
|
||||
global___CodeGeneratorRequest = CodeGeneratorRequest
|
||||
|
||||
class CodeGeneratorResponse(google.protobuf.message.Message):
|
||||
"""The plugin writes an encoded CodeGeneratorResponse to stdout."""
|
||||
|
||||
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
||||
|
||||
class _Feature:
|
||||
ValueType = typing.NewType('ValueType', builtins.int)
|
||||
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):
|
||||
|
||||
class _FeatureEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[CodeGeneratorResponse._Feature.ValueType], builtins.type): # noqa: F821
|
||||
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
|
||||
|
||||
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
|
||||
|
||||
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: builtins.str
|
||||
"""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,8 +155,7 @@ class CodeGeneratorResponse(google.protobuf.message.Message):
|
||||
this writing protoc does not optimize for this -- it will read the entire
|
||||
CodeGeneratorResponse before writing files to disk.
|
||||
"""
|
||||
|
||||
insertion_point: typing.Text
|
||||
insertion_point: builtins.str
|
||||
"""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,31 +194,29 @@ class CodeGeneratorResponse(google.protobuf.message.Message):
|
||||
|
||||
If |insertion_point| is present, |name| must also be present.
|
||||
"""
|
||||
|
||||
content: typing.Text
|
||||
content: builtins.str
|
||||
"""The file contents."""
|
||||
|
||||
@property
|
||||
def generated_code_info(self) -> google.protobuf.descriptor_pb2.GeneratedCodeInfo:
|
||||
"""Information describing the file content being inserted. If an insertion
|
||||
point is used, this information will be appropriately offset and inserted
|
||||
into the code generation metadata for the generated files.
|
||||
"""
|
||||
pass
|
||||
def __init__(self,
|
||||
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] = ...,
|
||||
) -> 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: ...
|
||||
name: builtins.str | None = ...,
|
||||
insertion_point: builtins.str | None = ...,
|
||||
content: builtins.str | None = ...,
|
||||
generated_code_info: google.protobuf.descriptor_pb2.GeneratedCodeInfo | None = ...,
|
||||
) -> 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: ...
|
||||
|
||||
ERROR_FIELD_NUMBER: builtins.int
|
||||
SUPPORTED_FEATURES_FIELD_NUMBER: builtins.int
|
||||
FILE_FIELD_NUMBER: builtins.int
|
||||
error: typing.Text
|
||||
error: builtins.str
|
||||
"""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,20 +226,20 @@ class CodeGeneratorResponse(google.protobuf.message.Message):
|
||||
unparseable -- should be reported by writing a message to stderr and
|
||||
exiting with a non-zero status code.
|
||||
"""
|
||||
|
||||
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.
|
||||
"""
|
||||
|
||||
@property
|
||||
def file(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___CodeGeneratorResponse.File]: ...
|
||||
def __init__(self,
|
||||
def __init__(
|
||||
self,
|
||||
*,
|
||||
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: ...
|
||||
error: builtins.str | None = ...,
|
||||
supported_features: builtins.int | None = ...,
|
||||
file: collections.abc.Iterable[global___CodeGeneratorResponse.File] | None = ...,
|
||||
) -> 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: ...
|
||||
|
||||
global___CodeGeneratorResponse = CodeGeneratorResponse
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,13 +1,46 @@
|
||||
"""
|
||||
@generated by mypy-protobuf. Do not edit manually!
|
||||
isort:skip_file
|
||||
Protocol Buffers - Google's data interchange format
|
||||
Copyright 2008 Google Inc. All rights reserved.
|
||||
https://developers.google.com/protocol-buffers/
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions are
|
||||
met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright
|
||||
notice, this list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above
|
||||
copyright notice, this list of conditions and the following disclaimer
|
||||
in the documentation and/or other materials provided with the
|
||||
distribution.
|
||||
* Neither the name of Google Inc. nor the names of its
|
||||
contributors may be used to endorse or promote products derived from
|
||||
this software without specific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
"""
|
||||
import builtins
|
||||
import google.protobuf.descriptor
|
||||
import google.protobuf.internal.well_known_types
|
||||
import google.protobuf.message
|
||||
import typing
|
||||
import typing_extensions
|
||||
import sys
|
||||
|
||||
if sys.version_info >= (3, 8):
|
||||
import typing as typing_extensions
|
||||
else:
|
||||
import typing_extensions
|
||||
|
||||
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
|
||||
|
||||
@@ -71,7 +104,9 @@ 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
|
||||
|
||||
SECONDS_FIELD_NUMBER: builtins.int
|
||||
NANOS_FIELD_NUMBER: builtins.int
|
||||
seconds: builtins.int
|
||||
@@ -79,7 +114,6 @@ class Duration(google.protobuf.message.Message, google.protobuf.internal.well_kn
|
||||
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
|
||||
"""Signed fractions of a second at nanosecond resolution of the span
|
||||
of time. Durations less than one second are represented with a 0
|
||||
@@ -88,11 +122,12 @@ class Duration(google.protobuf.message.Message, google.protobuf.internal.well_kn
|
||||
of the same sign as the `seconds` field. Must be from -999,999,999
|
||||
to +999,999,999 inclusive.
|
||||
"""
|
||||
|
||||
def __init__(self,
|
||||
def __init__(
|
||||
self,
|
||||
*,
|
||||
seconds: typing.Optional[builtins.int] = ...,
|
||||
nanos: typing.Optional[builtins.int] = ...,
|
||||
) -> None: ...
|
||||
def ClearField(self, field_name: typing_extensions.Literal["nanos",b"nanos","seconds",b"seconds"]) -> None: ...
|
||||
seconds: builtins.int | None = ...,
|
||||
nanos: builtins.int | None = ...,
|
||||
) -> None: ...
|
||||
def ClearField(self, field_name: typing_extensions.Literal["nanos", b"nanos", "seconds", b"seconds"]) -> None: ...
|
||||
|
||||
global___Duration = Duration
|
||||
|
||||
@@ -1,6 +1,35 @@
|
||||
"""
|
||||
@generated by mypy-protobuf. Do not edit manually!
|
||||
isort:skip_file
|
||||
Protocol Buffers - Google's data interchange format
|
||||
Copyright 2008 Google Inc. All rights reserved.
|
||||
https://developers.google.com/protocol-buffers/
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions are
|
||||
met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright
|
||||
notice, this list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above
|
||||
copyright notice, this list of conditions and the following disclaimer
|
||||
in the documentation and/or other materials provided with the
|
||||
distribution.
|
||||
* Neither the name of Google Inc. nor the names of its
|
||||
contributors may be used to endorse or promote products derived from
|
||||
this software without specific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
"""
|
||||
import google.protobuf.descriptor
|
||||
import google.protobuf.message
|
||||
@@ -18,7 +47,11 @@ class Empty(google.protobuf.message.Message):
|
||||
|
||||
The JSON representation for `Empty` is empty JSON object `{}`.
|
||||
"""
|
||||
|
||||
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
||||
def __init__(self,
|
||||
) -> None: ...
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
) -> None: ...
|
||||
|
||||
global___Empty = Empty
|
||||
|
||||
@@ -1,14 +1,48 @@
|
||||
"""
|
||||
@generated by mypy-protobuf. Do not edit manually!
|
||||
isort:skip_file
|
||||
Protocol Buffers - Google's data interchange format
|
||||
Copyright 2008 Google Inc. All rights reserved.
|
||||
https://developers.google.com/protocol-buffers/
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions are
|
||||
met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright
|
||||
notice, this list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above
|
||||
copyright notice, this list of conditions and the following disclaimer
|
||||
in the documentation and/or other materials provided with the
|
||||
distribution.
|
||||
* Neither the name of Google Inc. nor the names of its
|
||||
contributors may be used to endorse or promote products derived from
|
||||
this software without specific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
"""
|
||||
import builtins
|
||||
import collections.abc
|
||||
import google.protobuf.descriptor
|
||||
import google.protobuf.internal.containers
|
||||
import google.protobuf.internal.well_known_types
|
||||
import google.protobuf.message
|
||||
import typing
|
||||
import typing_extensions
|
||||
import sys
|
||||
|
||||
if sys.version_info >= (3, 8):
|
||||
import typing as typing_extensions
|
||||
else:
|
||||
import typing_extensions
|
||||
|
||||
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
|
||||
|
||||
@@ -213,15 +247,18 @@ 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
|
||||
|
||||
PATHS_FIELD_NUMBER: builtins.int
|
||||
@property
|
||||
def paths(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[typing.Text]:
|
||||
def paths(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]:
|
||||
"""The set of field mask paths."""
|
||||
pass
|
||||
def __init__(self,
|
||||
def __init__(
|
||||
self,
|
||||
*,
|
||||
paths: typing.Optional[typing.Iterable[typing.Text]] = ...,
|
||||
) -> None: ...
|
||||
def ClearField(self, field_name: typing_extensions.Literal["paths",b"paths"]) -> None: ...
|
||||
paths: collections.abc.Iterable[builtins.str] | None = ...,
|
||||
) -> None: ...
|
||||
def ClearField(self, field_name: typing_extensions.Literal["paths", b"paths"]) -> None: ...
|
||||
|
||||
global___FieldMask = FieldMask
|
||||
|
||||
@@ -1,12 +1,45 @@
|
||||
"""
|
||||
@generated by mypy-protobuf. Do not edit manually!
|
||||
isort:skip_file
|
||||
Protocol Buffers - Google's data interchange format
|
||||
Copyright 2008 Google Inc. All rights reserved.
|
||||
https://developers.google.com/protocol-buffers/
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions are
|
||||
met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright
|
||||
notice, this list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above
|
||||
copyright notice, this list of conditions and the following disclaimer
|
||||
in the documentation and/or other materials provided with the
|
||||
distribution.
|
||||
* Neither the name of Google Inc. nor the names of its
|
||||
contributors may be used to endorse or promote products derived from
|
||||
this software without specific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
"""
|
||||
import builtins
|
||||
import google.protobuf.descriptor
|
||||
import google.protobuf.message
|
||||
import typing
|
||||
import typing_extensions
|
||||
import sys
|
||||
|
||||
if sys.version_info >= (3, 8):
|
||||
import typing as typing_extensions
|
||||
else:
|
||||
import typing_extensions
|
||||
|
||||
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
|
||||
|
||||
@@ -14,16 +47,19 @@ 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
|
||||
|
||||
FILE_NAME_FIELD_NUMBER: builtins.int
|
||||
file_name: typing.Text
|
||||
file_name: builtins.str
|
||||
"""The path-qualified name of the .proto file that contained the associated
|
||||
protobuf element. For example: `"google/protobuf/source_context.proto"`.
|
||||
"""
|
||||
|
||||
def __init__(self,
|
||||
def __init__(
|
||||
self,
|
||||
*,
|
||||
file_name: typing.Optional[typing.Text] = ...,
|
||||
) -> None: ...
|
||||
def ClearField(self, field_name: typing_extensions.Literal["file_name",b"file_name"]) -> None: ...
|
||||
file_name: builtins.str | None = ...,
|
||||
) -> None: ...
|
||||
def ClearField(self, field_name: typing_extensions.Literal["file_name", b"file_name"]) -> None: ...
|
||||
|
||||
global___SourceContext = SourceContext
|
||||
|
||||
@@ -1,22 +1,58 @@
|
||||
"""
|
||||
@generated by mypy-protobuf. Do not edit manually!
|
||||
isort:skip_file
|
||||
Protocol Buffers - Google's data interchange format
|
||||
Copyright 2008 Google Inc. All rights reserved.
|
||||
https://developers.google.com/protocol-buffers/
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions are
|
||||
met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright
|
||||
notice, this list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above
|
||||
copyright notice, this list of conditions and the following disclaimer
|
||||
in the documentation and/or other materials provided with the
|
||||
distribution.
|
||||
* Neither the name of Google Inc. nor the names of its
|
||||
contributors may be used to endorse or promote products derived from
|
||||
this software without specific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
"""
|
||||
import builtins
|
||||
import collections.abc
|
||||
import google.protobuf.descriptor
|
||||
import google.protobuf.internal.containers
|
||||
import google.protobuf.internal.enum_type_wrapper
|
||||
import google.protobuf.internal.well_known_types
|
||||
import google.protobuf.message
|
||||
import sys
|
||||
import typing
|
||||
import typing_extensions
|
||||
|
||||
if sys.version_info >= (3, 10):
|
||||
import typing as typing_extensions
|
||||
else:
|
||||
import typing_extensions
|
||||
|
||||
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
|
||||
|
||||
class _NullValue:
|
||||
ValueType = typing.NewType('ValueType', builtins.int)
|
||||
ValueType = typing.NewType("ValueType", builtins.int)
|
||||
V: typing_extensions.TypeAlias = ValueType
|
||||
class _NullValueEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_NullValue.ValueType], builtins.type):
|
||||
|
||||
class _NullValueEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_NullValue.ValueType], builtins.type): # noqa: F821
|
||||
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
|
||||
NULL_VALUE: _NullValue.ValueType # 0
|
||||
"""Null value."""
|
||||
@@ -27,14 +63,11 @@ class NullValue(_NullValue, metaclass=_NullValueEnumTypeWrapper):
|
||||
|
||||
The JSON representation for `NullValue` is JSON `null`.
|
||||
"""
|
||||
pass
|
||||
|
||||
NULL_VALUE: NullValue.ValueType # 0
|
||||
"""Null value."""
|
||||
|
||||
global___NullValue = NullValue
|
||||
|
||||
|
||||
class Struct(google.protobuf.message.Message, google.protobuf.internal.well_known_types.Struct):
|
||||
"""`Struct` represents a structured data value, consisting of fields
|
||||
which map to dynamically typed values. In some languages, `Struct`
|
||||
@@ -45,32 +78,37 @@ class Struct(google.protobuf.message.Message, google.protobuf.internal.well_know
|
||||
|
||||
The JSON representation for `Struct` is JSON object.
|
||||
"""
|
||||
|
||||
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
||||
|
||||
class FieldsEntry(google.protobuf.message.Message):
|
||||
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
||||
|
||||
KEY_FIELD_NUMBER: builtins.int
|
||||
VALUE_FIELD_NUMBER: builtins.int
|
||||
key: typing.Text
|
||||
key: builtins.str
|
||||
@property
|
||||
def value(self) -> global___Value: ...
|
||||
def __init__(self,
|
||||
def __init__(
|
||||
self,
|
||||
*,
|
||||
key: typing.Optional[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: ...
|
||||
key: builtins.str | None = ...,
|
||||
value: global___Value | None = ...,
|
||||
) -> 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: ...
|
||||
|
||||
FIELDS_FIELD_NUMBER: builtins.int
|
||||
@property
|
||||
def fields(self) -> google.protobuf.internal.containers.MessageMap[typing.Text, global___Value]:
|
||||
def fields(self) -> google.protobuf.internal.containers.MessageMap[builtins.str, global___Value]:
|
||||
"""Unordered map of dynamically typed values."""
|
||||
pass
|
||||
def __init__(self,
|
||||
def __init__(
|
||||
self,
|
||||
*,
|
||||
fields: typing.Optional[typing.Mapping[typing.Text, global___Value]] = ...,
|
||||
) -> None: ...
|
||||
def ClearField(self, field_name: typing_extensions.Literal["fields",b"fields"]) -> None: ...
|
||||
fields: collections.abc.Mapping[builtins.str, global___Value] | None = ...,
|
||||
) -> None: ...
|
||||
def ClearField(self, field_name: typing_extensions.Literal["fields", b"fields"]) -> None: ...
|
||||
|
||||
global___Struct = Struct
|
||||
|
||||
class Value(google.protobuf.message.Message):
|
||||
@@ -81,7 +119,9 @@ class Value(google.protobuf.message.Message):
|
||||
|
||||
The JSON representation for `Value` is JSON value.
|
||||
"""
|
||||
|
||||
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
||||
|
||||
NULL_VALUE_FIELD_NUMBER: builtins.int
|
||||
NUMBER_VALUE_FIELD_NUMBER: builtins.int
|
||||
STRING_VALUE_FIELD_NUMBER: builtins.int
|
||||
@@ -90,36 +130,32 @@ class Value(google.protobuf.message.Message):
|
||||
LIST_VALUE_FIELD_NUMBER: builtins.int
|
||||
null_value: global___NullValue.ValueType
|
||||
"""Represents a null value."""
|
||||
|
||||
number_value: builtins.float
|
||||
"""Represents a double value."""
|
||||
|
||||
string_value: typing.Text
|
||||
string_value: builtins.str
|
||||
"""Represents a string value."""
|
||||
|
||||
bool_value: builtins.bool
|
||||
"""Represents a boolean value."""
|
||||
|
||||
@property
|
||||
def struct_value(self) -> global___Struct:
|
||||
"""Represents a structured value."""
|
||||
pass
|
||||
@property
|
||||
def list_value(self) -> global___ListValue:
|
||||
"""Represents a repeated `Value`."""
|
||||
pass
|
||||
def __init__(self,
|
||||
def __init__(
|
||||
self,
|
||||
*,
|
||||
null_value: typing.Optional[global___NullValue.ValueType] = ...,
|
||||
number_value: typing.Optional[builtins.float] = ...,
|
||||
string_value: typing.Optional[typing.Text] = ...,
|
||||
bool_value: typing.Optional[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: ...
|
||||
def WhichOneof(self, oneof_group: typing_extensions.Literal["kind",b"kind"]) -> typing.Optional[typing_extensions.Literal["null_value","number_value","string_value","bool_value","struct_value","list_value"]]: ...
|
||||
null_value: global___NullValue.ValueType | None = ...,
|
||||
number_value: builtins.float | None = ...,
|
||||
string_value: builtins.str | None = ...,
|
||||
bool_value: builtins.bool | None = ...,
|
||||
struct_value: global___Struct | None = ...,
|
||||
list_value: global___ListValue | None = ...,
|
||||
) -> 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: ...
|
||||
def WhichOneof(self, oneof_group: typing_extensions.Literal["kind", b"kind"]) -> typing_extensions.Literal["null_value", "number_value", "string_value", "bool_value", "struct_value", "list_value"] | None: ...
|
||||
|
||||
global___Value = Value
|
||||
|
||||
class ListValue(google.protobuf.message.Message, google.protobuf.internal.well_known_types.ListValue):
|
||||
@@ -127,15 +163,18 @@ class ListValue(google.protobuf.message.Message, google.protobuf.internal.well_k
|
||||
|
||||
The JSON representation for `ListValue` is JSON array.
|
||||
"""
|
||||
|
||||
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
||||
|
||||
VALUES_FIELD_NUMBER: builtins.int
|
||||
@property
|
||||
def values(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Value]:
|
||||
"""Repeated field of dynamically typed values."""
|
||||
pass
|
||||
def __init__(self,
|
||||
def __init__(
|
||||
self,
|
||||
*,
|
||||
values: typing.Optional[typing.Iterable[global___Value]] = ...,
|
||||
) -> None: ...
|
||||
def ClearField(self, field_name: typing_extensions.Literal["values",b"values"]) -> None: ...
|
||||
values: collections.abc.Iterable[global___Value] | None = ...,
|
||||
) -> None: ...
|
||||
def ClearField(self, field_name: typing_extensions.Literal["values", b"values"]) -> None: ...
|
||||
|
||||
global___ListValue = ListValue
|
||||
|
||||
@@ -1,13 +1,46 @@
|
||||
"""
|
||||
@generated by mypy-protobuf. Do not edit manually!
|
||||
isort:skip_file
|
||||
Protocol Buffers - Google's data interchange format
|
||||
Copyright 2008 Google Inc. All rights reserved.
|
||||
https://developers.google.com/protocol-buffers/
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions are
|
||||
met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright
|
||||
notice, this list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above
|
||||
copyright notice, this list of conditions and the following disclaimer
|
||||
in the documentation and/or other materials provided with the
|
||||
distribution.
|
||||
* Neither the name of Google Inc. nor the names of its
|
||||
contributors may be used to endorse or promote products derived from
|
||||
this software without specific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
"""
|
||||
import builtins
|
||||
import google.protobuf.descriptor
|
||||
import google.protobuf.internal.well_known_types
|
||||
import google.protobuf.message
|
||||
import typing
|
||||
import typing_extensions
|
||||
import sys
|
||||
|
||||
if sys.version_info >= (3, 8):
|
||||
import typing as typing_extensions
|
||||
else:
|
||||
import typing_extensions
|
||||
|
||||
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
|
||||
|
||||
@@ -104,7 +137,9 @@ 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
|
||||
|
||||
SECONDS_FIELD_NUMBER: builtins.int
|
||||
NANOS_FIELD_NUMBER: builtins.int
|
||||
seconds: builtins.int
|
||||
@@ -112,18 +147,18 @@ class Timestamp(google.protobuf.message.Message, google.protobuf.internal.well_k
|
||||
1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to
|
||||
9999-12-31T23:59:59Z inclusive.
|
||||
"""
|
||||
|
||||
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
|
||||
inclusive.
|
||||
"""
|
||||
|
||||
def __init__(self,
|
||||
def __init__(
|
||||
self,
|
||||
*,
|
||||
seconds: typing.Optional[builtins.int] = ...,
|
||||
nanos: typing.Optional[builtins.int] = ...,
|
||||
) -> None: ...
|
||||
def ClearField(self, field_name: typing_extensions.Literal["nanos",b"nanos","seconds",b"seconds"]) -> None: ...
|
||||
seconds: builtins.int | None = ...,
|
||||
nanos: builtins.int | None = ...,
|
||||
) -> None: ...
|
||||
def ClearField(self, field_name: typing_extensions.Literal["nanos", b"nanos", "seconds", b"seconds"]) -> None: ...
|
||||
|
||||
global___Timestamp = Timestamp
|
||||
|
||||
@@ -1,248 +1,235 @@
|
||||
"""
|
||||
@generated by mypy-protobuf. Do not edit manually!
|
||||
isort:skip_file
|
||||
Protocol Buffers - Google's data interchange format
|
||||
Copyright 2008 Google Inc. All rights reserved.
|
||||
https://developers.google.com/protocol-buffers/
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions are
|
||||
met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright
|
||||
notice, this list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above
|
||||
copyright notice, this list of conditions and the following disclaimer
|
||||
in the documentation and/or other materials provided with the
|
||||
distribution.
|
||||
* Neither the name of Google Inc. nor the names of its
|
||||
contributors may be used to endorse or promote products derived from
|
||||
this software without specific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
"""
|
||||
import builtins
|
||||
import collections.abc
|
||||
import google.protobuf.any_pb2
|
||||
import google.protobuf.descriptor
|
||||
import google.protobuf.internal.containers
|
||||
import google.protobuf.internal.enum_type_wrapper
|
||||
import google.protobuf.message
|
||||
import google.protobuf.source_context_pb2
|
||||
import sys
|
||||
import typing
|
||||
import typing_extensions
|
||||
|
||||
if sys.version_info >= (3, 10):
|
||||
import typing as typing_extensions
|
||||
else:
|
||||
import typing_extensions
|
||||
|
||||
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
|
||||
|
||||
class _Syntax:
|
||||
ValueType = typing.NewType('ValueType', builtins.int)
|
||||
ValueType = typing.NewType("ValueType", builtins.int)
|
||||
V: typing_extensions.TypeAlias = ValueType
|
||||
class _SyntaxEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_Syntax.ValueType], builtins.type):
|
||||
|
||||
class _SyntaxEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_Syntax.ValueType], builtins.type): # noqa: F821
|
||||
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
|
||||
|
||||
SYNTAX_PROTO2: Syntax.ValueType # 0
|
||||
"""Syntax `proto2`."""
|
||||
|
||||
SYNTAX_PROTO3: Syntax.ValueType # 1
|
||||
"""Syntax `proto3`."""
|
||||
|
||||
global___Syntax = Syntax
|
||||
|
||||
|
||||
class Type(google.protobuf.message.Message):
|
||||
"""A protocol buffer message type."""
|
||||
|
||||
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: builtins.str
|
||||
"""The fully qualified message name."""
|
||||
|
||||
@property
|
||||
def fields(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Field]:
|
||||
"""The list of fields."""
|
||||
pass
|
||||
@property
|
||||
def oneofs(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[typing.Text]:
|
||||
def oneofs(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]:
|
||||
"""The list of types appearing in `oneof` definitions in this type."""
|
||||
pass
|
||||
@property
|
||||
def options(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Option]:
|
||||
"""The protocol buffer options."""
|
||||
pass
|
||||
@property
|
||||
def source_context(self) -> google.protobuf.source_context_pb2.SourceContext:
|
||||
"""The source context."""
|
||||
pass
|
||||
syntax: global___Syntax.ValueType
|
||||
"""The source syntax."""
|
||||
|
||||
def __init__(self,
|
||||
def __init__(
|
||||
self,
|
||||
*,
|
||||
name: typing.Optional[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: typing.Optional[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: ...
|
||||
name: builtins.str | None = ...,
|
||||
fields: collections.abc.Iterable[global___Field] | None = ...,
|
||||
oneofs: collections.abc.Iterable[builtins.str] | None = ...,
|
||||
options: collections.abc.Iterable[global___Option] | None = ...,
|
||||
source_context: google.protobuf.source_context_pb2.SourceContext | None = ...,
|
||||
syntax: global___Syntax.ValueType | None = ...,
|
||||
) -> 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: ...
|
||||
|
||||
global___Type = Type
|
||||
|
||||
class Field(google.protobuf.message.Message):
|
||||
"""A single field of a message type."""
|
||||
|
||||
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
||||
|
||||
class _Kind:
|
||||
ValueType = typing.NewType('ValueType', builtins.int)
|
||||
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):
|
||||
|
||||
class _KindEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[Field._Kind.ValueType], builtins.type): # noqa: F821
|
||||
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
|
||||
|
||||
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 _Cardinality:
|
||||
ValueType = typing.NewType('ValueType', builtins.int)
|
||||
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):
|
||||
|
||||
class _CardinalityEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[Field._Cardinality.ValueType], builtins.type): # noqa: F821
|
||||
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
|
||||
|
||||
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."""
|
||||
|
||||
|
||||
KIND_FIELD_NUMBER: builtins.int
|
||||
CARDINALITY_FIELD_NUMBER: builtins.int
|
||||
NUMBER_FIELD_NUMBER: builtins.int
|
||||
@@ -255,132 +242,125 @@ class Field(google.protobuf.message.Message):
|
||||
DEFAULT_VALUE_FIELD_NUMBER: builtins.int
|
||||
kind: global___Field.Kind.ValueType
|
||||
"""The field type."""
|
||||
|
||||
cardinality: global___Field.Cardinality.ValueType
|
||||
"""The field cardinality."""
|
||||
|
||||
number: builtins.int
|
||||
"""The field number."""
|
||||
|
||||
name: typing.Text
|
||||
name: builtins.str
|
||||
"""The field name."""
|
||||
|
||||
type_url: typing.Text
|
||||
type_url: builtins.str
|
||||
"""The field type URL, without the scheme, for message or enumeration
|
||||
types. Example: `"type.googleapis.com/google.protobuf.Timestamp"`.
|
||||
"""
|
||||
|
||||
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
|
||||
"""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: builtins.str
|
||||
"""The field JSON name."""
|
||||
|
||||
default_value: typing.Text
|
||||
default_value: builtins.str
|
||||
"""The string value of the default value of this field. Proto2 syntax only."""
|
||||
|
||||
def __init__(self,
|
||||
def __init__(
|
||||
self,
|
||||
*,
|
||||
kind: typing.Optional[global___Field.Kind.ValueType] = ...,
|
||||
cardinality: typing.Optional[global___Field.Cardinality.ValueType] = ...,
|
||||
number: typing.Optional[builtins.int] = ...,
|
||||
name: typing.Optional[typing.Text] = ...,
|
||||
type_url: typing.Optional[typing.Text] = ...,
|
||||
oneof_index: typing.Optional[builtins.int] = ...,
|
||||
packed: typing.Optional[builtins.bool] = ...,
|
||||
options: typing.Optional[typing.Iterable[global___Option]] = ...,
|
||||
json_name: typing.Optional[typing.Text] = ...,
|
||||
default_value: typing.Optional[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: ...
|
||||
kind: global___Field.Kind.ValueType | None = ...,
|
||||
cardinality: global___Field.Cardinality.ValueType | None = ...,
|
||||
number: builtins.int | None = ...,
|
||||
name: builtins.str | None = ...,
|
||||
type_url: builtins.str | None = ...,
|
||||
oneof_index: builtins.int | None = ...,
|
||||
packed: builtins.bool | None = ...,
|
||||
options: collections.abc.Iterable[global___Option] | None = ...,
|
||||
json_name: builtins.str | None = ...,
|
||||
default_value: builtins.str | None = ...,
|
||||
) -> 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
|
||||
|
||||
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: builtins.str
|
||||
"""Enum type name."""
|
||||
|
||||
@property
|
||||
def enumvalue(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___EnumValue]:
|
||||
"""Enum value definitions."""
|
||||
pass
|
||||
@property
|
||||
def options(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Option]:
|
||||
"""Protocol buffer options."""
|
||||
pass
|
||||
@property
|
||||
def source_context(self) -> google.protobuf.source_context_pb2.SourceContext:
|
||||
"""The source context."""
|
||||
pass
|
||||
syntax: global___Syntax.ValueType
|
||||
"""The source syntax."""
|
||||
|
||||
def __init__(self,
|
||||
def __init__(
|
||||
self,
|
||||
*,
|
||||
name: typing.Optional[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: typing.Optional[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: ...
|
||||
name: builtins.str | None = ...,
|
||||
enumvalue: collections.abc.Iterable[global___EnumValue] | None = ...,
|
||||
options: collections.abc.Iterable[global___Option] | None = ...,
|
||||
source_context: google.protobuf.source_context_pb2.SourceContext | None = ...,
|
||||
syntax: global___Syntax.ValueType | None = ...,
|
||||
) -> 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: ...
|
||||
|
||||
global___Enum = Enum
|
||||
|
||||
class EnumValue(google.protobuf.message.Message):
|
||||
"""Enum value definition."""
|
||||
|
||||
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
||||
|
||||
NAME_FIELD_NUMBER: builtins.int
|
||||
NUMBER_FIELD_NUMBER: builtins.int
|
||||
OPTIONS_FIELD_NUMBER: builtins.int
|
||||
name: typing.Text
|
||||
name: builtins.str
|
||||
"""Enum value name."""
|
||||
|
||||
number: builtins.int
|
||||
"""Enum value number."""
|
||||
|
||||
@property
|
||||
def options(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Option]:
|
||||
"""Protocol buffer options."""
|
||||
pass
|
||||
def __init__(self,
|
||||
def __init__(
|
||||
self,
|
||||
*,
|
||||
name: typing.Optional[typing.Text] = ...,
|
||||
number: typing.Optional[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: ...
|
||||
name: builtins.str | None = ...,
|
||||
number: builtins.int | None = ...,
|
||||
options: collections.abc.Iterable[global___Option] | None = ...,
|
||||
) -> None: ...
|
||||
def ClearField(self, field_name: typing_extensions.Literal["name", b"name", "number", b"number", "options", b"options"]) -> None: ...
|
||||
|
||||
global___EnumValue = EnumValue
|
||||
|
||||
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
|
||||
|
||||
NAME_FIELD_NUMBER: builtins.int
|
||||
VALUE_FIELD_NUMBER: builtins.int
|
||||
name: typing.Text
|
||||
name: builtins.str
|
||||
"""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,
|
||||
`"google.api.http"`.
|
||||
"""
|
||||
|
||||
@property
|
||||
def value(self) -> google.protobuf.any_pb2.Any:
|
||||
"""The option's value packed in an Any message. If the value is a primitive,
|
||||
@@ -388,12 +368,13 @@ class Option(google.protobuf.message.Message):
|
||||
should be used. If the value is an enum, it should be stored as an int32
|
||||
value using the google.protobuf.Int32Value type.
|
||||
"""
|
||||
pass
|
||||
def __init__(self,
|
||||
def __init__(
|
||||
self,
|
||||
*,
|
||||
name: typing.Optional[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: ...
|
||||
name: builtins.str | None = ...,
|
||||
value: google.protobuf.any_pb2.Any | None = ...,
|
||||
) -> 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: ...
|
||||
|
||||
global___Option = Option
|
||||
|
||||
@@ -1,12 +1,25 @@
|
||||
"""
|
||||
@generated by mypy-protobuf. Do not edit manually!
|
||||
isort:skip_file
|
||||
Wrappers for primitive (non-message) types. These types are useful
|
||||
for embedding primitives in the `google.protobuf.Any` type and for places
|
||||
where we need to distinguish between the absence of a primitive
|
||||
typed field and its default value.
|
||||
|
||||
These wrappers have no meaningful use within repeated fields as they lack
|
||||
the ability to detect presence on individual elements.
|
||||
These wrappers have no meaningful use within a map or a oneof since
|
||||
individual entries of a map or fields of a oneof can already detect presence.
|
||||
"""
|
||||
import builtins
|
||||
import google.protobuf.descriptor
|
||||
import google.protobuf.message
|
||||
import typing
|
||||
import typing_extensions
|
||||
import sys
|
||||
|
||||
if sys.version_info >= (3, 8):
|
||||
import typing as typing_extensions
|
||||
else:
|
||||
import typing_extensions
|
||||
|
||||
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
|
||||
|
||||
@@ -15,16 +28,19 @@ class DoubleValue(google.protobuf.message.Message):
|
||||
|
||||
The JSON representation for `DoubleValue` is JSON number.
|
||||
"""
|
||||
|
||||
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
||||
|
||||
VALUE_FIELD_NUMBER: builtins.int
|
||||
value: builtins.float
|
||||
"""The double value."""
|
||||
|
||||
def __init__(self,
|
||||
def __init__(
|
||||
self,
|
||||
*,
|
||||
value: typing.Optional[builtins.float] = ...,
|
||||
) -> None: ...
|
||||
def ClearField(self, field_name: typing_extensions.Literal["value",b"value"]) -> None: ...
|
||||
value: builtins.float | None = ...,
|
||||
) -> None: ...
|
||||
def ClearField(self, field_name: typing_extensions.Literal["value", b"value"]) -> None: ...
|
||||
|
||||
global___DoubleValue = DoubleValue
|
||||
|
||||
class FloatValue(google.protobuf.message.Message):
|
||||
@@ -32,16 +48,19 @@ class FloatValue(google.protobuf.message.Message):
|
||||
|
||||
The JSON representation for `FloatValue` is JSON number.
|
||||
"""
|
||||
|
||||
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
||||
|
||||
VALUE_FIELD_NUMBER: builtins.int
|
||||
value: builtins.float
|
||||
"""The float value."""
|
||||
|
||||
def __init__(self,
|
||||
def __init__(
|
||||
self,
|
||||
*,
|
||||
value: typing.Optional[builtins.float] = ...,
|
||||
) -> None: ...
|
||||
def ClearField(self, field_name: typing_extensions.Literal["value",b"value"]) -> None: ...
|
||||
value: builtins.float | None = ...,
|
||||
) -> None: ...
|
||||
def ClearField(self, field_name: typing_extensions.Literal["value", b"value"]) -> None: ...
|
||||
|
||||
global___FloatValue = FloatValue
|
||||
|
||||
class Int64Value(google.protobuf.message.Message):
|
||||
@@ -49,16 +68,19 @@ class Int64Value(google.protobuf.message.Message):
|
||||
|
||||
The JSON representation for `Int64Value` is JSON string.
|
||||
"""
|
||||
|
||||
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
||||
|
||||
VALUE_FIELD_NUMBER: builtins.int
|
||||
value: builtins.int
|
||||
"""The int64 value."""
|
||||
|
||||
def __init__(self,
|
||||
def __init__(
|
||||
self,
|
||||
*,
|
||||
value: typing.Optional[builtins.int] = ...,
|
||||
) -> None: ...
|
||||
def ClearField(self, field_name: typing_extensions.Literal["value",b"value"]) -> None: ...
|
||||
value: builtins.int | None = ...,
|
||||
) -> None: ...
|
||||
def ClearField(self, field_name: typing_extensions.Literal["value", b"value"]) -> None: ...
|
||||
|
||||
global___Int64Value = Int64Value
|
||||
|
||||
class UInt64Value(google.protobuf.message.Message):
|
||||
@@ -66,16 +88,19 @@ class UInt64Value(google.protobuf.message.Message):
|
||||
|
||||
The JSON representation for `UInt64Value` is JSON string.
|
||||
"""
|
||||
|
||||
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
||||
|
||||
VALUE_FIELD_NUMBER: builtins.int
|
||||
value: builtins.int
|
||||
"""The uint64 value."""
|
||||
|
||||
def __init__(self,
|
||||
def __init__(
|
||||
self,
|
||||
*,
|
||||
value: typing.Optional[builtins.int] = ...,
|
||||
) -> None: ...
|
||||
def ClearField(self, field_name: typing_extensions.Literal["value",b"value"]) -> None: ...
|
||||
value: builtins.int | None = ...,
|
||||
) -> None: ...
|
||||
def ClearField(self, field_name: typing_extensions.Literal["value", b"value"]) -> None: ...
|
||||
|
||||
global___UInt64Value = UInt64Value
|
||||
|
||||
class Int32Value(google.protobuf.message.Message):
|
||||
@@ -83,16 +108,19 @@ class Int32Value(google.protobuf.message.Message):
|
||||
|
||||
The JSON representation for `Int32Value` is JSON number.
|
||||
"""
|
||||
|
||||
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
||||
|
||||
VALUE_FIELD_NUMBER: builtins.int
|
||||
value: builtins.int
|
||||
"""The int32 value."""
|
||||
|
||||
def __init__(self,
|
||||
def __init__(
|
||||
self,
|
||||
*,
|
||||
value: typing.Optional[builtins.int] = ...,
|
||||
) -> None: ...
|
||||
def ClearField(self, field_name: typing_extensions.Literal["value",b"value"]) -> None: ...
|
||||
value: builtins.int | None = ...,
|
||||
) -> None: ...
|
||||
def ClearField(self, field_name: typing_extensions.Literal["value", b"value"]) -> None: ...
|
||||
|
||||
global___Int32Value = Int32Value
|
||||
|
||||
class UInt32Value(google.protobuf.message.Message):
|
||||
@@ -100,16 +128,19 @@ class UInt32Value(google.protobuf.message.Message):
|
||||
|
||||
The JSON representation for `UInt32Value` is JSON number.
|
||||
"""
|
||||
|
||||
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
||||
|
||||
VALUE_FIELD_NUMBER: builtins.int
|
||||
value: builtins.int
|
||||
"""The uint32 value."""
|
||||
|
||||
def __init__(self,
|
||||
def __init__(
|
||||
self,
|
||||
*,
|
||||
value: typing.Optional[builtins.int] = ...,
|
||||
) -> None: ...
|
||||
def ClearField(self, field_name: typing_extensions.Literal["value",b"value"]) -> None: ...
|
||||
value: builtins.int | None = ...,
|
||||
) -> None: ...
|
||||
def ClearField(self, field_name: typing_extensions.Literal["value", b"value"]) -> None: ...
|
||||
|
||||
global___UInt32Value = UInt32Value
|
||||
|
||||
class BoolValue(google.protobuf.message.Message):
|
||||
@@ -117,16 +148,19 @@ class BoolValue(google.protobuf.message.Message):
|
||||
|
||||
The JSON representation for `BoolValue` is JSON `true` and `false`.
|
||||
"""
|
||||
|
||||
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
||||
|
||||
VALUE_FIELD_NUMBER: builtins.int
|
||||
value: builtins.bool
|
||||
"""The bool value."""
|
||||
|
||||
def __init__(self,
|
||||
def __init__(
|
||||
self,
|
||||
*,
|
||||
value: typing.Optional[builtins.bool] = ...,
|
||||
) -> None: ...
|
||||
def ClearField(self, field_name: typing_extensions.Literal["value",b"value"]) -> None: ...
|
||||
value: builtins.bool | None = ...,
|
||||
) -> None: ...
|
||||
def ClearField(self, field_name: typing_extensions.Literal["value", b"value"]) -> None: ...
|
||||
|
||||
global___BoolValue = BoolValue
|
||||
|
||||
class StringValue(google.protobuf.message.Message):
|
||||
@@ -134,16 +168,19 @@ class StringValue(google.protobuf.message.Message):
|
||||
|
||||
The JSON representation for `StringValue` is JSON string.
|
||||
"""
|
||||
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
||||
VALUE_FIELD_NUMBER: builtins.int
|
||||
value: typing.Text
|
||||
"""The string value."""
|
||||
|
||||
def __init__(self,
|
||||
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
||||
|
||||
VALUE_FIELD_NUMBER: builtins.int
|
||||
value: builtins.str
|
||||
"""The string value."""
|
||||
def __init__(
|
||||
self,
|
||||
*,
|
||||
value: typing.Optional[typing.Text] = ...,
|
||||
) -> None: ...
|
||||
def ClearField(self, field_name: typing_extensions.Literal["value",b"value"]) -> None: ...
|
||||
value: builtins.str | None = ...,
|
||||
) -> None: ...
|
||||
def ClearField(self, field_name: typing_extensions.Literal["value", b"value"]) -> None: ...
|
||||
|
||||
global___StringValue = StringValue
|
||||
|
||||
class BytesValue(google.protobuf.message.Message):
|
||||
@@ -151,14 +188,17 @@ class BytesValue(google.protobuf.message.Message):
|
||||
|
||||
The JSON representation for `BytesValue` is JSON string.
|
||||
"""
|
||||
|
||||
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
||||
|
||||
VALUE_FIELD_NUMBER: builtins.int
|
||||
value: builtins.bytes
|
||||
"""The bytes value."""
|
||||
|
||||
def __init__(self,
|
||||
def __init__(
|
||||
self,
|
||||
*,
|
||||
value: typing.Optional[builtins.bytes] = ...,
|
||||
) -> None: ...
|
||||
def ClearField(self, field_name: typing_extensions.Literal["value",b"value"]) -> None: ...
|
||||
value: builtins.bytes | None = ...,
|
||||
) -> None: ...
|
||||
def ClearField(self, field_name: typing_extensions.Literal["value", b"value"]) -> None: ...
|
||||
|
||||
global___BytesValue = BytesValue
|
||||
|
||||
@@ -96,9 +96,6 @@ def check_new_syntax(tree: ast.AST, path: Path, stub: str) -> list[str]:
|
||||
def main() -> None:
|
||||
errors = []
|
||||
for path in chain(Path("stdlib").rglob("*.pyi"), Path("stubs").rglob("*.pyi")):
|
||||
if Path("stubs/protobuf/google/protobuf") in path.parents: # TODO: fix protobuf stubs
|
||||
continue
|
||||
|
||||
with open(path) as f:
|
||||
stub = f.read()
|
||||
tree = ast.parse(stub)
|
||||
|
||||
Reference in New Issue
Block a user