Bump to mypy-protobuf 3.2.0 (#7013)

This commit is contained in:
Nipunn Koorapati
2022-01-23 14:49:33 -08:00
committed by GitHub
parent dc176d70ec
commit 35064a7f75
14 changed files with 663 additions and 652 deletions

View File

@@ -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

View File

@@ -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"

View File

@@ -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

View File

@@ -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

View File

@@ -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: ...

File diff suppressed because it is too large Load Diff

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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: ...

View File

@@ -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