mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-16 00:37:10 +08:00
Bump protobuf to v25.3 (#11694)
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
version = "4.24.*"
|
||||
# Whenever you update version here, PROTOBUF_VERSION should be updated
|
||||
# in scripts/generate_proto_stubs.sh and vice-versa.
|
||||
version = "4.25.*"
|
||||
upstream_repository = "https://github.com/protocolbuffers/protobuf"
|
||||
extra_description = "Generated using [mypy-protobuf==3.5.0](https://github.com/nipunn1313/mypy-protobuf/tree/v3.5.0) on [protobuf v24.4](https://github.com/protocolbuffers/protobuf/releases/tag/v24.4) (python protobuf==4.24.4)"
|
||||
extra_description = "Generated using [mypy-protobuf==3.6.0](https://github.com/nipunn1313/mypy-protobuf/tree/v3.6.0) on [protobuf v25.3](https://github.com/protocolbuffers/protobuf/releases/tag/v25.3) (python protobuf==4.25.3)"
|
||||
partial_stub = true
|
||||
|
||||
[tool.stubtest]
|
||||
|
||||
@@ -31,8 +31,9 @@ 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 typing as typing_extensions
|
||||
import typing
|
||||
|
||||
import google.protobuf.descriptor
|
||||
import google.protobuf.internal.well_known_types
|
||||
@@ -40,7 +41,7 @@ import google.protobuf.message
|
||||
|
||||
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
|
||||
|
||||
@typing_extensions.final
|
||||
@typing.final
|
||||
class Any(google.protobuf.message.Message, google.protobuf.internal.well_known_types.Any):
|
||||
"""`Any` contains an arbitrary serialized protocol buffer message along with a
|
||||
URL that describes the type of the serialized message.
|
||||
@@ -171,6 +172,6 @@ class Any(google.protobuf.message.Message, google.protobuf.internal.well_known_t
|
||||
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: ...
|
||||
def ClearField(self, field_name: typing.Literal["type_url", b"type_url", "value", b"value"]) -> None: ...
|
||||
|
||||
global___Any = Any
|
||||
|
||||
@@ -31,9 +31,10 @@ 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 typing as typing_extensions
|
||||
import typing
|
||||
|
||||
import google.protobuf.descriptor
|
||||
import google.protobuf.internal.containers
|
||||
@@ -43,7 +44,7 @@ import google.protobuf.type_pb2
|
||||
|
||||
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
|
||||
|
||||
@typing_extensions.final
|
||||
@typing.final
|
||||
class Api(google.protobuf.message.Message):
|
||||
"""Api is a light-weight descriptor for an API Interface.
|
||||
|
||||
@@ -69,12 +70,6 @@ class Api(google.protobuf.message.Message):
|
||||
"""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."""
|
||||
@property
|
||||
def options(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[google.protobuf.type_pb2.Option]:
|
||||
"""Any metadata attached to the interface."""
|
||||
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
|
||||
@@ -96,16 +91,26 @@ class Api(google.protobuf.message.Message):
|
||||
be omitted. Zero major versions must only be used for
|
||||
experimental, non-GA interfaces.
|
||||
"""
|
||||
syntax: google.protobuf.type_pb2.Syntax.ValueType
|
||||
"""The source syntax of the service."""
|
||||
@property
|
||||
def methods(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Method]:
|
||||
"""The methods of this interface, in unspecified order."""
|
||||
|
||||
@property
|
||||
def options(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[google.protobuf.type_pb2.Option]:
|
||||
"""Any metadata attached to the interface."""
|
||||
|
||||
@property
|
||||
def source_context(self) -> google.protobuf.source_context_pb2.SourceContext:
|
||||
"""Source context for the protocol buffer service represented by this
|
||||
message.
|
||||
"""
|
||||
|
||||
@property
|
||||
def mixins(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Mixin]:
|
||||
"""Included interfaces. See [Mixin][]."""
|
||||
syntax: google.protobuf.type_pb2.Syntax.ValueType
|
||||
"""The source syntax of the service."""
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
*,
|
||||
@@ -117,12 +122,12 @@ class Api(google.protobuf.message.Message):
|
||||
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: ...
|
||||
def HasField(self, field_name: typing.Literal["source_context", b"source_context"]) -> builtins.bool: ...
|
||||
def ClearField(self, field_name: typing.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
|
||||
|
||||
@typing_extensions.final
|
||||
@typing.final
|
||||
class Method(google.protobuf.message.Message):
|
||||
"""Method represents a method of an API interface."""
|
||||
|
||||
@@ -145,11 +150,12 @@ class Method(google.protobuf.message.Message):
|
||||
"""The URL of the output message type."""
|
||||
response_streaming: builtins.bool
|
||||
"""If true, the response is streamed."""
|
||||
syntax: google.protobuf.type_pb2.Syntax.ValueType
|
||||
"""The source syntax of this method."""
|
||||
@property
|
||||
def options(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[google.protobuf.type_pb2.Option]:
|
||||
"""Any metadata attached to the method."""
|
||||
syntax: google.protobuf.type_pb2.Syntax.ValueType
|
||||
"""The source syntax of this method."""
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
*,
|
||||
@@ -161,11 +167,11 @@ class Method(google.protobuf.message.Message):
|
||||
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: ...
|
||||
def ClearField(self, field_name: typing.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
|
||||
|
||||
@typing_extensions.final
|
||||
@typing.final
|
||||
class Mixin(google.protobuf.message.Message):
|
||||
"""Declares an API Interface to be included in this interface. The including
|
||||
interface must redeclare all the methods from the included interface, but
|
||||
@@ -263,6 +269,6 @@ class Mixin(google.protobuf.message.Message):
|
||||
name: builtins.str | None = ...,
|
||||
root: builtins.str | None = ...,
|
||||
) -> None: ...
|
||||
def ClearField(self, field_name: typing_extensions.Literal["name", b"name", "root", b"root"]) -> None: ...
|
||||
def ClearField(self, field_name: typing.Literal["name", b"name", "root", b"root"]) -> None: ...
|
||||
|
||||
global___Mixin = Mixin
|
||||
|
||||
@@ -14,6 +14,7 @@ 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 sys
|
||||
@@ -32,7 +33,7 @@ else:
|
||||
|
||||
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
|
||||
|
||||
@typing_extensions.final
|
||||
@typing.final
|
||||
class Version(google.protobuf.message.Message):
|
||||
"""The version number of protocol compiler."""
|
||||
|
||||
@@ -57,12 +58,12 @@ class Version(google.protobuf.message.Message):
|
||||
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: ...
|
||||
def HasField(self, field_name: typing.Literal["major", b"major", "minor", b"minor", "patch", b"patch", "suffix", b"suffix"]) -> builtins.bool: ...
|
||||
def ClearField(self, field_name: typing.Literal["major", b"major", "minor", b"minor", "patch", b"patch", "suffix", b"suffix"]) -> None: ...
|
||||
|
||||
global___Version = Version
|
||||
|
||||
@typing_extensions.final
|
||||
@typing.final
|
||||
class CodeGeneratorRequest(google.protobuf.message.Message):
|
||||
"""An encoded CodeGeneratorRequest is written to the plugin's stdin."""
|
||||
|
||||
@@ -73,14 +74,15 @@ class CodeGeneratorRequest(google.protobuf.message.Message):
|
||||
PROTO_FILE_FIELD_NUMBER: builtins.int
|
||||
SOURCE_FILE_DESCRIPTORS_FIELD_NUMBER: builtins.int
|
||||
COMPILER_VERSION_FIELD_NUMBER: builtins.int
|
||||
parameter: builtins.str
|
||||
"""The generator parameter passed on the command-line."""
|
||||
@property
|
||||
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.
|
||||
"""
|
||||
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
|
||||
@@ -103,15 +105,18 @@ class CodeGeneratorRequest(google.protobuf.message.Message):
|
||||
Type names of fields and extensions in the FileDescriptorProto are always
|
||||
fully qualified.
|
||||
"""
|
||||
|
||||
@property
|
||||
def source_file_descriptors(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[google.protobuf.descriptor_pb2.FileDescriptorProto]:
|
||||
"""File descriptors with all options, including source-retention options.
|
||||
These descriptors are only provided for the files listed in
|
||||
files_to_generate.
|
||||
"""
|
||||
|
||||
@property
|
||||
def compiler_version(self) -> global___Version:
|
||||
"""The version number of protocol compiler."""
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
*,
|
||||
@@ -121,12 +126,12 @@ class CodeGeneratorRequest(google.protobuf.message.Message):
|
||||
source_file_descriptors: 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", "source_file_descriptors", b"source_file_descriptors"]) -> None: ...
|
||||
def HasField(self, field_name: typing.Literal["compiler_version", b"compiler_version", "parameter", b"parameter"]) -> builtins.bool: ...
|
||||
def ClearField(self, field_name: typing.Literal["compiler_version", b"compiler_version", "file_to_generate", b"file_to_generate", "parameter", b"parameter", "proto_file", b"proto_file", "source_file_descriptors", b"source_file_descriptors"]) -> None: ...
|
||||
|
||||
global___CodeGeneratorRequest = CodeGeneratorRequest
|
||||
|
||||
@typing_extensions.final
|
||||
@typing.final
|
||||
class CodeGeneratorResponse(google.protobuf.message.Message):
|
||||
"""The plugin writes an encoded CodeGeneratorResponse to stdout."""
|
||||
|
||||
@@ -149,7 +154,7 @@ class CodeGeneratorResponse(google.protobuf.message.Message):
|
||||
FEATURE_PROTO3_OPTIONAL: CodeGeneratorResponse.Feature.ValueType # 1
|
||||
FEATURE_SUPPORTS_EDITIONS: CodeGeneratorResponse.Feature.ValueType # 2
|
||||
|
||||
@typing_extensions.final
|
||||
@typing.final
|
||||
class File(google.protobuf.message.Message):
|
||||
"""Represents a single generated file."""
|
||||
|
||||
@@ -219,6 +224,7 @@ class CodeGeneratorResponse(google.protobuf.message.Message):
|
||||
point is used, this information will be appropriately offset and inserted
|
||||
into the code generation metadata for the generated files.
|
||||
"""
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
*,
|
||||
@@ -227,8 +233,8 @@ class CodeGeneratorResponse(google.protobuf.message.Message):
|
||||
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: ...
|
||||
def HasField(self, field_name: typing.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.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
|
||||
@@ -256,7 +262,7 @@ class CodeGeneratorResponse(google.protobuf.message.Message):
|
||||
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: ...
|
||||
def HasField(self, field_name: typing.Literal["error", b"error", "supported_features", b"supported_features"]) -> builtins.bool: ...
|
||||
def ClearField(self, field_name: typing.Literal["error", b"error", "file", b"file", "supported_features", b"supported_features"]) -> None: ...
|
||||
|
||||
global___CodeGeneratorResponse = CodeGeneratorResponse
|
||||
|
||||
@@ -24,7 +24,7 @@ _USE_C_DESCRIPTORS: bool
|
||||
|
||||
class DescriptorBase(metaclass=DescriptorMetaclass):
|
||||
has_options: Any
|
||||
def __init__(self, options, serialized_options, options_class_name) -> None: ...
|
||||
def __init__(self, file, options, serialized_options, options_class_name) -> None: ...
|
||||
def GetOptions(self): ...
|
||||
|
||||
class _NestedDescriptorBase(DescriptorBase):
|
||||
@@ -40,9 +40,9 @@ class _NestedDescriptorBase(DescriptorBase):
|
||||
full_name,
|
||||
file,
|
||||
containing_type,
|
||||
serialized_start=...,
|
||||
serialized_end=...,
|
||||
serialized_options=...,
|
||||
serialized_start=None,
|
||||
serialized_end=None,
|
||||
serialized_options=None,
|
||||
) -> None: ...
|
||||
def CopyToProto(self, proto): ...
|
||||
|
||||
@@ -61,7 +61,8 @@ class Descriptor(_NestedDescriptorBase):
|
||||
extension_ranges: Any
|
||||
oneofs: Any
|
||||
oneofs_by_name: Any
|
||||
syntax: Any
|
||||
@property
|
||||
def syntax(self): ...
|
||||
def __init__(
|
||||
self,
|
||||
name: str,
|
||||
@@ -72,16 +73,17 @@ class Descriptor(_NestedDescriptorBase):
|
||||
nested_types: list[FieldDescriptor],
|
||||
enum_types: list[EnumDescriptor],
|
||||
extensions: list[FieldDescriptor],
|
||||
options: Incomplete | None = ...,
|
||||
serialized_options: Incomplete | None = ...,
|
||||
is_extendable: bool | None = ...,
|
||||
extension_ranges: Incomplete | None = ...,
|
||||
oneofs: list[OneofDescriptor] | None = ...,
|
||||
file: FileDescriptor | None = ...,
|
||||
serialized_start: Incomplete | None = ...,
|
||||
serialized_end: Incomplete | None = ...,
|
||||
syntax: str | None = ...,
|
||||
create_key: Incomplete | None = ...,
|
||||
options: Incomplete | None = None,
|
||||
serialized_options: Incomplete | None = None,
|
||||
is_extendable: bool | None = True,
|
||||
extension_ranges: Incomplete | None = None,
|
||||
oneofs: list[OneofDescriptor] | None = None,
|
||||
file: FileDescriptor | None = None,
|
||||
serialized_start: Incomplete | None = None,
|
||||
serialized_end: Incomplete | None = None,
|
||||
syntax: str | None = None,
|
||||
is_map_entry=False,
|
||||
create_key: Incomplete | None = None,
|
||||
): ...
|
||||
def EnumValueName(self, enum, value): ...
|
||||
def CopyToProto(self, proto): ...
|
||||
@@ -140,13 +142,13 @@ class FieldDescriptor(DescriptorBase):
|
||||
containing_type,
|
||||
is_extension,
|
||||
extension_scope,
|
||||
options=...,
|
||||
serialized_options=...,
|
||||
has_default_value=...,
|
||||
containing_oneof=...,
|
||||
json_name=...,
|
||||
file=...,
|
||||
create_key=...,
|
||||
options=None,
|
||||
serialized_options=None,
|
||||
has_default_value=True,
|
||||
containing_oneof=None,
|
||||
json_name=None,
|
||||
file=None,
|
||||
create_key=None,
|
||||
): ...
|
||||
name: Any
|
||||
full_name: Any
|
||||
@@ -178,13 +180,13 @@ class FieldDescriptor(DescriptorBase):
|
||||
containing_type,
|
||||
is_extension,
|
||||
extension_scope,
|
||||
options=...,
|
||||
serialized_options=...,
|
||||
has_default_value=...,
|
||||
containing_oneof=...,
|
||||
json_name=...,
|
||||
file=...,
|
||||
create_key=...,
|
||||
options=None,
|
||||
serialized_options=None,
|
||||
has_default_value=True,
|
||||
containing_oneof=None,
|
||||
json_name=None,
|
||||
file=None,
|
||||
create_key=None,
|
||||
) -> None: ...
|
||||
@staticmethod
|
||||
def ProtoTypeToCppProtoType(proto_type): ...
|
||||
@@ -197,13 +199,13 @@ class EnumDescriptor(_NestedDescriptorBase):
|
||||
full_name,
|
||||
filename,
|
||||
values,
|
||||
containing_type=...,
|
||||
options=...,
|
||||
serialized_options=...,
|
||||
file=...,
|
||||
serialized_start=...,
|
||||
serialized_end=...,
|
||||
create_key=...,
|
||||
containing_type=None,
|
||||
options=None,
|
||||
serialized_options=None,
|
||||
file=None,
|
||||
serialized_start=None,
|
||||
serialized_end=None,
|
||||
create_key=None,
|
||||
): ...
|
||||
values: Any
|
||||
values_by_name: Any
|
||||
@@ -214,35 +216,35 @@ class EnumDescriptor(_NestedDescriptorBase):
|
||||
full_name,
|
||||
filename,
|
||||
values,
|
||||
containing_type=...,
|
||||
options=...,
|
||||
serialized_options=...,
|
||||
file=...,
|
||||
serialized_start=...,
|
||||
serialized_end=...,
|
||||
create_key=...,
|
||||
containing_type=None,
|
||||
options=None,
|
||||
serialized_options=None,
|
||||
file=None,
|
||||
serialized_start=None,
|
||||
serialized_end=None,
|
||||
create_key=None,
|
||||
) -> None: ...
|
||||
def CopyToProto(self, proto): ...
|
||||
def GetOptions(self) -> EnumOptions: ...
|
||||
|
||||
class EnumValueDescriptor(DescriptorBase):
|
||||
def __new__(cls, name, index, number, type=..., options=..., serialized_options=..., create_key=...): ...
|
||||
def __new__(cls, name, index, number, type=None, options=None, serialized_options=None, create_key=None): ...
|
||||
name: Any
|
||||
index: Any
|
||||
number: Any
|
||||
type: Any
|
||||
def __init__(self, name, index, number, type=..., options=..., serialized_options=..., create_key=...) -> None: ...
|
||||
def __init__(self, name, index, number, type=None, options=None, serialized_options=None, create_key=None) -> None: ...
|
||||
def GetOptions(self) -> EnumValueOptions: ...
|
||||
|
||||
class OneofDescriptor:
|
||||
def __new__(cls, name, full_name, index, containing_type, fields, options=..., serialized_options=..., create_key=...): ...
|
||||
def __new__(cls, name, full_name, index, containing_type, fields, options=None, serialized_options=None, create_key=None): ...
|
||||
name: Any
|
||||
full_name: Any
|
||||
index: Any
|
||||
containing_type: Any
|
||||
fields: Any
|
||||
def __init__(
|
||||
self, name, full_name, index, containing_type, fields, options=..., serialized_options=..., create_key=...
|
||||
self, name, full_name, index, containing_type, fields, options=None, serialized_options=None, create_key=None
|
||||
) -> None: ...
|
||||
def GetOptions(self) -> OneofOptions: ...
|
||||
|
||||
@@ -256,12 +258,12 @@ class ServiceDescriptor(_NestedDescriptorBase):
|
||||
full_name: str,
|
||||
index: int,
|
||||
methods: list[MethodDescriptor],
|
||||
options: ServiceOptions | None = ...,
|
||||
serialized_options: Incomplete | None = ...,
|
||||
file: FileDescriptor | None = ...,
|
||||
serialized_start: Incomplete | None = ...,
|
||||
serialized_end: Incomplete | None = ...,
|
||||
create_key: Incomplete | None = ...,
|
||||
options: ServiceOptions | None = None,
|
||||
serialized_options: Incomplete | None = None,
|
||||
file: FileDescriptor | None = None,
|
||||
serialized_start: Incomplete | None = None,
|
||||
serialized_end: Incomplete | None = None,
|
||||
create_key: Incomplete | None = None,
|
||||
): ...
|
||||
def FindMethodByName(self, name): ...
|
||||
def CopyToProto(self, proto): ...
|
||||
@@ -276,11 +278,11 @@ class MethodDescriptor(DescriptorBase):
|
||||
containing_service,
|
||||
input_type,
|
||||
output_type,
|
||||
client_streaming=...,
|
||||
server_streaming=...,
|
||||
options=...,
|
||||
serialized_options=...,
|
||||
create_key=...,
|
||||
client_streaming=False,
|
||||
server_streaming=False,
|
||||
options=None,
|
||||
serialized_options=None,
|
||||
create_key=None,
|
||||
): ...
|
||||
name: Any
|
||||
full_name: Any
|
||||
@@ -298,11 +300,11 @@ class MethodDescriptor(DescriptorBase):
|
||||
containing_service,
|
||||
input_type,
|
||||
output_type,
|
||||
client_streaming=...,
|
||||
server_streaming=...,
|
||||
options=...,
|
||||
serialized_options=...,
|
||||
create_key=...,
|
||||
client_streaming=False,
|
||||
server_streaming=False,
|
||||
options=None,
|
||||
serialized_options=None,
|
||||
create_key=None,
|
||||
) -> None: ...
|
||||
def GetOptions(self) -> MethodOptions: ...
|
||||
|
||||
@@ -311,21 +313,22 @@ class FileDescriptor(DescriptorBase):
|
||||
cls,
|
||||
name,
|
||||
package,
|
||||
options=...,
|
||||
serialized_options=...,
|
||||
serialized_pb=...,
|
||||
dependencies=...,
|
||||
public_dependencies=...,
|
||||
syntax=...,
|
||||
pool=...,
|
||||
create_key=...,
|
||||
options=None,
|
||||
serialized_options=None,
|
||||
serialized_pb=None,
|
||||
dependencies=None,
|
||||
public_dependencies=None,
|
||||
syntax=None,
|
||||
pool=None,
|
||||
create_key=None,
|
||||
): ...
|
||||
_options: Any
|
||||
pool: Any
|
||||
message_types_by_name: Any
|
||||
name: Any
|
||||
package: Any
|
||||
syntax: Any
|
||||
@property
|
||||
def syntax(self): ...
|
||||
serialized_pb: Any
|
||||
enum_types_by_name: Any
|
||||
extensions_by_name: Any
|
||||
@@ -336,17 +339,17 @@ class FileDescriptor(DescriptorBase):
|
||||
self,
|
||||
name,
|
||||
package,
|
||||
options=...,
|
||||
serialized_options=...,
|
||||
serialized_pb=...,
|
||||
dependencies=...,
|
||||
public_dependencies=...,
|
||||
syntax=...,
|
||||
pool=...,
|
||||
create_key=...,
|
||||
options=None,
|
||||
serialized_options=None,
|
||||
serialized_pb=None,
|
||||
dependencies=None,
|
||||
public_dependencies=None,
|
||||
syntax=None,
|
||||
pool=None,
|
||||
create_key=None,
|
||||
) -> None: ...
|
||||
def CopyToProto(self, proto): ...
|
||||
def GetOptions(self) -> FileOptions: ...
|
||||
|
||||
def MakeDescriptor(desc_proto, package=..., build_file_if_cpp=..., syntax=...): ...
|
||||
def MakeDescriptor(desc_proto, package="", build_file_if_cpp=True, syntax=None): ...
|
||||
def _ParseOptions(message: Message, string: bytes) -> Message: ...
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,9 +1,9 @@
|
||||
from _typeshed import Incomplete
|
||||
|
||||
class DescriptorPool:
|
||||
def __new__(cls, descriptor_db: Incomplete | None = ...): ...
|
||||
def __new__(cls, descriptor_db: Incomplete | None = None): ...
|
||||
def __init__( # pyright: ignore[reportInconsistentConstructor]
|
||||
self, descriptor_db: Incomplete | None = ..., use_deprecated_legacy_json_field_conflicts: bool = ...
|
||||
self, descriptor_db: Incomplete | None = None, use_deprecated_legacy_json_field_conflicts: bool = False
|
||||
) -> None: ...
|
||||
def Add(self, file_desc_proto): ...
|
||||
def AddSerializedFile(self, serialized_file_desc_proto): ...
|
||||
|
||||
@@ -31,8 +31,9 @@ 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 typing as typing_extensions
|
||||
import typing
|
||||
|
||||
import google.protobuf.descriptor
|
||||
import google.protobuf.internal.well_known_types
|
||||
@@ -40,7 +41,7 @@ import google.protobuf.message
|
||||
|
||||
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
|
||||
|
||||
@typing_extensions.final
|
||||
@typing.final
|
||||
class Duration(google.protobuf.message.Message, google.protobuf.internal.well_known_types.Duration):
|
||||
"""A Duration represents a signed, fixed-length span of time represented
|
||||
as a count of seconds and fractions of seconds at nanosecond
|
||||
@@ -125,6 +126,6 @@ class Duration(google.protobuf.message.Message, google.protobuf.internal.well_kn
|
||||
seconds: builtins.int | None = ...,
|
||||
nanos: builtins.int | None = ...,
|
||||
) -> None: ...
|
||||
def ClearField(self, field_name: typing_extensions.Literal["nanos", b"nanos", "seconds", b"seconds"]) -> None: ...
|
||||
def ClearField(self, field_name: typing.Literal["nanos", b"nanos", "seconds", b"seconds"]) -> None: ...
|
||||
|
||||
global___Duration = Duration
|
||||
|
||||
@@ -32,14 +32,14 @@ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
"""
|
||||
|
||||
import typing as typing_extensions
|
||||
import typing
|
||||
|
||||
import google.protobuf.descriptor
|
||||
import google.protobuf.message
|
||||
|
||||
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
|
||||
|
||||
@typing_extensions.final
|
||||
@typing.final
|
||||
class Empty(google.protobuf.message.Message):
|
||||
"""A generic empty message that you can re-use to avoid defining duplicated
|
||||
empty messages in your APIs. A typical example is to use it as the request
|
||||
|
||||
@@ -31,9 +31,10 @@ 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 typing as typing_extensions
|
||||
import typing
|
||||
|
||||
import google.protobuf.descriptor
|
||||
import google.protobuf.internal.containers
|
||||
@@ -42,7 +43,7 @@ import google.protobuf.message
|
||||
|
||||
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
|
||||
|
||||
@typing_extensions.final
|
||||
@typing.final
|
||||
class FieldMask(google.protobuf.message.Message, google.protobuf.internal.well_known_types.FieldMask):
|
||||
"""`FieldMask` represents a set of symbolic field paths, for example:
|
||||
|
||||
@@ -251,11 +252,12 @@ class FieldMask(google.protobuf.message.Message, google.protobuf.internal.well_k
|
||||
@property
|
||||
def paths(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]:
|
||||
"""The set of field mask paths."""
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
*,
|
||||
paths: collections.abc.Iterable[builtins.str] | None = ...,
|
||||
) -> None: ...
|
||||
def ClearField(self, field_name: typing_extensions.Literal["paths", b"paths"]) -> None: ...
|
||||
def ClearField(self, field_name: typing.Literal["paths", b"paths"]) -> None: ...
|
||||
|
||||
global___FieldMask = FieldMask
|
||||
|
||||
@@ -34,7 +34,7 @@ class RepeatedScalarFieldContainer(BaseContainer[_ScalarV]):
|
||||
def extend(self, elem_seq: Iterable[_ScalarV] | None) -> None: ...
|
||||
def MergeFrom(self: _M, other: _M) -> None: ...
|
||||
def remove(self, elem: _ScalarV) -> None: ...
|
||||
def pop(self, key: int = ...) -> _ScalarV: ...
|
||||
def pop(self, key: int = -1) -> _ScalarV: ...
|
||||
@overload
|
||||
def __setitem__(self, key: int, value: _ScalarV) -> None: ...
|
||||
@overload
|
||||
@@ -50,7 +50,7 @@ class RepeatedCompositeFieldContainer(BaseContainer[_MessageV]):
|
||||
def extend(self, elem_seq: Iterable[_MessageV]) -> None: ...
|
||||
def MergeFrom(self: _M, other: _M) -> None: ...
|
||||
def remove(self, elem: _MessageV) -> None: ...
|
||||
def pop(self, key: int = ...) -> _MessageV: ...
|
||||
def pop(self, key: int = -1) -> _MessageV: ...
|
||||
def __delitem__(self, key: int | slice) -> None: ...
|
||||
def __eq__(self, other: object) -> bool: ...
|
||||
|
||||
@@ -69,7 +69,7 @@ class ScalarMap(MutableMapping[_K, _ScalarV]):
|
||||
def __iter__(self) -> Iterator[_K]: ...
|
||||
def __eq__(self, other: object) -> bool: ...
|
||||
@overload
|
||||
def get(self, key: _K, default: None = ...) -> _ScalarV | None: ...
|
||||
def get(self, key: _K, default: None = None) -> _ScalarV | None: ...
|
||||
@overload
|
||||
def get(self, key: _K, default: _ScalarV | _T) -> _ScalarV | _T: ...
|
||||
def MergeFrom(self: _M, other: _M): ...
|
||||
@@ -91,7 +91,7 @@ class MessageMap(MutableMapping[_K, _MessageV]):
|
||||
def __iter__(self) -> Iterator[_K]: ...
|
||||
def __eq__(self, other: object) -> bool: ...
|
||||
@overload
|
||||
def get(self, key: _K, default: None = ...) -> _MessageV | None: ...
|
||||
def get(self, key: _K, default: None = None) -> _MessageV | None: ...
|
||||
@overload
|
||||
def get(self, key: _K, default: _MessageV | _T) -> _MessageV | _T: ...
|
||||
def get_or_create(self, key: _K) -> _MessageV: ...
|
||||
|
||||
@@ -30,7 +30,7 @@ def EnumDecoder(
|
||||
is_packed: bool,
|
||||
key: FieldDescriptor,
|
||||
new_default: _NewDefault,
|
||||
clear_if_default: bool = ...,
|
||||
clear_if_default: bool = False,
|
||||
) -> _Decoder: ...
|
||||
def StringDecoder(
|
||||
field_number: int,
|
||||
@@ -38,7 +38,7 @@ def StringDecoder(
|
||||
is_packed: bool,
|
||||
key: FieldDescriptor,
|
||||
new_default: _NewDefault,
|
||||
clear_if_default: bool = ...,
|
||||
clear_if_default: bool = False,
|
||||
) -> _Decoder: ...
|
||||
def BytesDecoder(
|
||||
field_number: int,
|
||||
@@ -46,7 +46,7 @@ def BytesDecoder(
|
||||
is_packed: bool,
|
||||
key: FieldDescriptor,
|
||||
new_default: _NewDefault,
|
||||
clear_if_default: bool = ...,
|
||||
clear_if_default: bool = False,
|
||||
) -> _Decoder: ...
|
||||
def GroupDecoder(
|
||||
field_number: int, is_repeated: bool, is_packed: bool, key: FieldDescriptor, new_default: _NewDefault
|
||||
|
||||
@@ -30,7 +30,7 @@ class Timestamp:
|
||||
def FromMicroseconds(self, micros: int) -> None: ...
|
||||
def FromMilliseconds(self, millis: int) -> None: ...
|
||||
def FromSeconds(self, seconds: int) -> None: ...
|
||||
def ToDatetime(self, tzinfo: tzinfo | None = ...) -> datetime: ...
|
||||
def ToDatetime(self, tzinfo: tzinfo | None = None) -> datetime: ...
|
||||
def FromDatetime(self, dt: datetime) -> None: ...
|
||||
|
||||
class Duration:
|
||||
@@ -58,7 +58,7 @@ class FieldMask:
|
||||
def Union(self, mask1: tAny, mask2: tAny) -> None: ...
|
||||
def Intersect(self, mask1: tAny, mask2: tAny) -> None: ...
|
||||
def MergeMessage(
|
||||
self, source: tAny, destination: tAny, replace_message_field: bool = ..., replace_repeated_field: bool = ...
|
||||
self, source: tAny, destination: tAny, replace_message_field: bool = False, replace_repeated_field: bool = False
|
||||
) -> None: ...
|
||||
|
||||
class _FieldMaskTree:
|
||||
|
||||
@@ -11,34 +11,34 @@ class SerializeToJsonError(Error): ...
|
||||
|
||||
def MessageToJson(
|
||||
message: Message,
|
||||
including_default_value_fields: bool = ...,
|
||||
preserving_proto_field_name: bool = ...,
|
||||
indent: int | None = ...,
|
||||
sort_keys: bool = ...,
|
||||
use_integers_for_enums: bool = ...,
|
||||
descriptor_pool: DescriptorPool | None = ...,
|
||||
float_precision: int | None = ...,
|
||||
ensure_ascii: bool = ...,
|
||||
including_default_value_fields: bool = False,
|
||||
preserving_proto_field_name: bool = False,
|
||||
indent: int | None = 2,
|
||||
sort_keys: bool = False,
|
||||
use_integers_for_enums: bool = False,
|
||||
descriptor_pool: DescriptorPool | None = None,
|
||||
float_precision: int | None = None,
|
||||
ensure_ascii: bool = True,
|
||||
) -> str: ...
|
||||
def MessageToDict(
|
||||
message: Message,
|
||||
including_default_value_fields: bool = ...,
|
||||
preserving_proto_field_name: bool = ...,
|
||||
use_integers_for_enums: bool = ...,
|
||||
descriptor_pool: DescriptorPool | None = ...,
|
||||
float_precision: int | None = ...,
|
||||
including_default_value_fields: bool = False,
|
||||
preserving_proto_field_name: bool = False,
|
||||
use_integers_for_enums: bool = False,
|
||||
descriptor_pool: DescriptorPool | None = None,
|
||||
float_precision: int | None = None,
|
||||
) -> dict[str, Any]: ...
|
||||
def Parse(
|
||||
text: bytes | str,
|
||||
message: _MessageT,
|
||||
ignore_unknown_fields: bool = ...,
|
||||
descriptor_pool: DescriptorPool | None = ...,
|
||||
max_recursion_depth: int = ...,
|
||||
ignore_unknown_fields: bool = False,
|
||||
descriptor_pool: DescriptorPool | None = None,
|
||||
max_recursion_depth: int = 100,
|
||||
) -> _MessageT: ...
|
||||
def ParseDict(
|
||||
js_dict: Any,
|
||||
message: _MessageT,
|
||||
ignore_unknown_fields: bool = ...,
|
||||
descriptor_pool: DescriptorPool | None = ...,
|
||||
max_recursion_depth: int = ...,
|
||||
ignore_unknown_fields: bool = False,
|
||||
descriptor_pool: DescriptorPool | None = None,
|
||||
max_recursion_depth: int = 100,
|
||||
) -> _MessageT: ...
|
||||
|
||||
@@ -13,7 +13,7 @@ _M = TypeVar("_M", bound=Message) # message type (of self)
|
||||
|
||||
class Message:
|
||||
DESCRIPTOR: Descriptor
|
||||
def __deepcopy__(self, memo: Any = ...) -> Self: ...
|
||||
def __deepcopy__(self, memo: Any = None) -> Self: ...
|
||||
def __eq__(self, other_msg): ...
|
||||
def __ne__(self, other_msg): ...
|
||||
def MergeFrom(self, other_msg: Self) -> None: ...
|
||||
|
||||
@@ -8,10 +8,10 @@ from google.protobuf.message import Message
|
||||
|
||||
class MessageFactory:
|
||||
pool: Any
|
||||
def __init__(self, pool: DescriptorPool | None = ...) -> None: ...
|
||||
def __init__(self, pool: DescriptorPool | None = None) -> None: ...
|
||||
def GetPrototype(self, descriptor: Descriptor) -> type[Message]: ...
|
||||
def GetMessages(self, files: Iterable[str]) -> dict[str, type[Message]]: ...
|
||||
|
||||
def GetMessageClass(descriptor: Descriptor) -> type[Message]: ...
|
||||
def GetMessageClassesForFiles(files: Iterable[str], pool: DescriptorPool) -> dict[str, type[Message]]: ...
|
||||
def GetMessages(file_protos: Iterable[FileDescriptorProto], pool: DescriptorPool | None = ...) -> dict[str, type[Message]]: ...
|
||||
def GetMessages(file_protos: Iterable[FileDescriptorProto], pool: DescriptorPool | None = None) -> dict[str, type[Message]]: ...
|
||||
|
||||
@@ -31,15 +31,16 @@ 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 typing as typing_extensions
|
||||
import typing
|
||||
|
||||
import google.protobuf.descriptor
|
||||
import google.protobuf.message
|
||||
|
||||
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
|
||||
|
||||
@typing_extensions.final
|
||||
@typing.final
|
||||
class SourceContext(google.protobuf.message.Message):
|
||||
"""`SourceContext` represents information about the source of a
|
||||
protobuf element, like the file in which it is defined.
|
||||
@@ -57,6 +58,6 @@ class SourceContext(google.protobuf.message.Message):
|
||||
*,
|
||||
file_name: builtins.str | None = ...,
|
||||
) -> None: ...
|
||||
def ClearField(self, field_name: typing_extensions.Literal["file_name", b"file_name"]) -> None: ...
|
||||
def ClearField(self, field_name: typing.Literal["file_name", b"file_name"]) -> None: ...
|
||||
|
||||
global___SourceContext = SourceContext
|
||||
|
||||
@@ -31,6 +31,7 @@ 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 sys
|
||||
@@ -69,7 +70,7 @@ NULL_VALUE: NullValue.ValueType # 0
|
||||
"""Null value."""
|
||||
global___NullValue = NullValue
|
||||
|
||||
@typing_extensions.final
|
||||
@typing.final
|
||||
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`
|
||||
@@ -83,7 +84,7 @@ class Struct(google.protobuf.message.Message, google.protobuf.internal.well_know
|
||||
|
||||
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
||||
|
||||
@typing_extensions.final
|
||||
@typing.final
|
||||
class FieldsEntry(google.protobuf.message.Message):
|
||||
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
||||
|
||||
@@ -98,23 +99,24 @@ class Struct(google.protobuf.message.Message, google.protobuf.internal.well_know
|
||||
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: ...
|
||||
def HasField(self, field_name: typing.Literal["value", b"value"]) -> builtins.bool: ...
|
||||
def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ...
|
||||
|
||||
FIELDS_FIELD_NUMBER: builtins.int
|
||||
@property
|
||||
def fields(self) -> google.protobuf.internal.containers.MessageMap[builtins.str, global___Value]:
|
||||
"""Unordered map of dynamically typed values."""
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
*,
|
||||
fields: collections.abc.Mapping[builtins.str, global___Value] | None = ...,
|
||||
) -> None: ...
|
||||
def ClearField(self, field_name: typing_extensions.Literal["fields", b"fields"]) -> None: ...
|
||||
def ClearField(self, field_name: typing.Literal["fields", b"fields"]) -> None: ...
|
||||
|
||||
global___Struct = Struct
|
||||
|
||||
@typing_extensions.final
|
||||
@typing.final
|
||||
class Value(google.protobuf.message.Message):
|
||||
"""`Value` represents a dynamically typed value which can be either
|
||||
null, a number, a string, a boolean, a recursive struct value, or a
|
||||
@@ -143,9 +145,11 @@ class Value(google.protobuf.message.Message):
|
||||
@property
|
||||
def struct_value(self) -> global___Struct:
|
||||
"""Represents a structured value."""
|
||||
|
||||
@property
|
||||
def list_value(self) -> global___ListValue:
|
||||
"""Represents a repeated `Value`."""
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
*,
|
||||
@@ -156,13 +160,13 @@ class Value(google.protobuf.message.Message):
|
||||
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: ...
|
||||
def HasField(self, field_name: typing.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.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.Literal["kind", b"kind"]) -> typing.Literal["null_value", "number_value", "string_value", "bool_value", "struct_value", "list_value"] | None: ...
|
||||
|
||||
global___Value = Value
|
||||
|
||||
@typing_extensions.final
|
||||
@typing.final
|
||||
class ListValue(google.protobuf.message.Message, google.protobuf.internal.well_known_types.ListValue):
|
||||
"""`ListValue` is a wrapper around a repeated field of values.
|
||||
|
||||
@@ -175,11 +179,12 @@ class ListValue(google.protobuf.message.Message, google.protobuf.internal.well_k
|
||||
@property
|
||||
def values(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Value]:
|
||||
"""Repeated field of dynamically typed values."""
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
*,
|
||||
values: collections.abc.Iterable[global___Value] | None = ...,
|
||||
) -> None: ...
|
||||
def ClearField(self, field_name: typing_extensions.Literal["values", b"values"]) -> None: ...
|
||||
def ClearField(self, field_name: typing.Literal["values", b"values"]) -> None: ...
|
||||
|
||||
global___ListValue = ListValue
|
||||
|
||||
@@ -12,7 +12,7 @@ _M = TypeVar("_M", bound=Message) # message type (of self)
|
||||
class Error(Exception): ...
|
||||
|
||||
class ParseError(Error):
|
||||
def __init__(self, message: str | None = ..., line: int | None = ..., column: int | None = ...) -> None: ...
|
||||
def __init__(self, message: str | None = None, line: int | None = None, column: int | None = None) -> None: ...
|
||||
def GetLine(self) -> int | None: ...
|
||||
def GetColumn(self) -> int | None: ...
|
||||
|
||||
@@ -26,19 +26,19 @@ _MessageFormatter: TypeAlias = Callable[[Message, int, bool], str | None]
|
||||
|
||||
def MessageToString(
|
||||
message: Message,
|
||||
as_utf8: bool = ...,
|
||||
as_one_line: bool = ...,
|
||||
use_short_repeated_primitives: bool = ...,
|
||||
pointy_brackets: bool = ...,
|
||||
use_index_order: bool = ...,
|
||||
float_format: str | None = ...,
|
||||
double_format: str | None = ...,
|
||||
use_field_number: bool = ...,
|
||||
descriptor_pool: DescriptorPool | None = ...,
|
||||
indent: int = ...,
|
||||
message_formatter: _MessageFormatter | None = ...,
|
||||
print_unknown_fields: bool = ...,
|
||||
force_colon: bool = ...,
|
||||
as_utf8: bool = False,
|
||||
as_one_line: bool = False,
|
||||
use_short_repeated_primitives: bool = False,
|
||||
pointy_brackets: bool = False,
|
||||
use_index_order: bool = False,
|
||||
float_format: str | None = None,
|
||||
double_format: str | None = None,
|
||||
use_field_number: bool = False,
|
||||
descriptor_pool: DescriptorPool | None = None,
|
||||
indent: int = 0,
|
||||
message_formatter: _MessageFormatter | None = None,
|
||||
print_unknown_fields: bool = False,
|
||||
force_colon: bool = False,
|
||||
) -> str: ...
|
||||
def MessageToBytes(
|
||||
message: Message,
|
||||
@@ -59,51 +59,51 @@ def MessageToBytes(
|
||||
def PrintMessage(
|
||||
message: Message,
|
||||
out: SupportsWrite[str],
|
||||
indent: int = ...,
|
||||
as_utf8: bool = ...,
|
||||
as_one_line: bool = ...,
|
||||
use_short_repeated_primitives: bool = ...,
|
||||
pointy_brackets: bool = ...,
|
||||
use_index_order: bool = ...,
|
||||
float_format: str | None = ...,
|
||||
double_format: str | None = ...,
|
||||
use_field_number: bool = ...,
|
||||
descriptor_pool: DescriptorPool | None = ...,
|
||||
message_formatter: _MessageFormatter | None = ...,
|
||||
print_unknown_fields: bool = ...,
|
||||
force_colon: bool = ...,
|
||||
indent: int = 0,
|
||||
as_utf8: bool = False,
|
||||
as_one_line: bool = False,
|
||||
use_short_repeated_primitives: bool = False,
|
||||
pointy_brackets: bool = False,
|
||||
use_index_order: bool = False,
|
||||
float_format: str | None = None,
|
||||
double_format: str | None = None,
|
||||
use_field_number: bool = False,
|
||||
descriptor_pool: DescriptorPool | None = None,
|
||||
message_formatter: _MessageFormatter | None = None,
|
||||
print_unknown_fields: bool = False,
|
||||
force_colon: bool = False,
|
||||
) -> None: ...
|
||||
def PrintField(
|
||||
field: FieldDescriptor,
|
||||
value: Any,
|
||||
out: SupportsWrite[str],
|
||||
indent: int = ...,
|
||||
as_utf8: bool = ...,
|
||||
as_one_line: bool = ...,
|
||||
use_short_repeated_primitives: bool = ...,
|
||||
pointy_brackets: bool = ...,
|
||||
use_index_order: bool = ...,
|
||||
float_format: str | None = ...,
|
||||
double_format: str | None = ...,
|
||||
message_formatter: _MessageFormatter | None = ...,
|
||||
print_unknown_fields: bool = ...,
|
||||
force_colon: bool = ...,
|
||||
indent: int = 0,
|
||||
as_utf8: bool = False,
|
||||
as_one_line: bool = False,
|
||||
use_short_repeated_primitives: bool = False,
|
||||
pointy_brackets: bool = False,
|
||||
use_index_order: bool = False,
|
||||
float_format: str | None = None,
|
||||
double_format: str | None = None,
|
||||
message_formatter: _MessageFormatter | None = None,
|
||||
print_unknown_fields: bool = False,
|
||||
force_colon: bool = False,
|
||||
) -> None: ...
|
||||
def PrintFieldValue(
|
||||
field: FieldDescriptor,
|
||||
value: Any,
|
||||
out: SupportsWrite[str],
|
||||
indent: int = ...,
|
||||
as_utf8: bool = ...,
|
||||
as_one_line: bool = ...,
|
||||
use_short_repeated_primitives: bool = ...,
|
||||
pointy_brackets: bool = ...,
|
||||
use_index_order: bool = ...,
|
||||
float_format: str | None = ...,
|
||||
double_format: str | None = ...,
|
||||
message_formatter: _MessageFormatter | None = ...,
|
||||
print_unknown_fields: bool = ...,
|
||||
force_colon: bool = ...,
|
||||
indent: int = 0,
|
||||
as_utf8: bool = False,
|
||||
as_one_line: bool = False,
|
||||
use_short_repeated_primitives: bool = False,
|
||||
pointy_brackets: bool = False,
|
||||
use_index_order: bool = False,
|
||||
float_format: str | None = None,
|
||||
double_format: str | None = None,
|
||||
message_formatter: _MessageFormatter | None = None,
|
||||
print_unknown_fields: bool = False,
|
||||
force_colon: bool = False,
|
||||
) -> None: ...
|
||||
|
||||
class _Printer:
|
||||
@@ -124,19 +124,19 @@ class _Printer:
|
||||
def __init__(
|
||||
self,
|
||||
out: SupportsWrite[str],
|
||||
indent: int = ...,
|
||||
as_utf8: bool = ...,
|
||||
as_one_line: bool = ...,
|
||||
use_short_repeated_primitives: bool = ...,
|
||||
pointy_brackets: bool = ...,
|
||||
use_index_order: bool = ...,
|
||||
float_format: str | None = ...,
|
||||
double_format: str | None = ...,
|
||||
use_field_number: bool = ...,
|
||||
descriptor_pool: DescriptorPool | None = ...,
|
||||
message_formatter: _MessageFormatter | None = ...,
|
||||
print_unknown_fields: bool = ...,
|
||||
force_colon: bool = ...,
|
||||
indent: int = 0,
|
||||
as_utf8: bool = False,
|
||||
as_one_line: bool = False,
|
||||
use_short_repeated_primitives: bool = False,
|
||||
pointy_brackets: bool = False,
|
||||
use_index_order: bool = False,
|
||||
float_format: str | None = None,
|
||||
double_format: str | None = None,
|
||||
use_field_number: bool = False,
|
||||
descriptor_pool: DescriptorPool | None = None,
|
||||
message_formatter: _MessageFormatter | None = None,
|
||||
print_unknown_fields: bool = False,
|
||||
force_colon: bool = False,
|
||||
) -> None: ...
|
||||
def PrintMessage(self, message: Message) -> None: ...
|
||||
def PrintField(self, field: FieldDescriptor, value: Any) -> None: ...
|
||||
@@ -145,26 +145,26 @@ class _Printer:
|
||||
def Parse(
|
||||
text: str | bytes,
|
||||
message: _M,
|
||||
allow_unknown_extension: bool = ...,
|
||||
allow_field_number: bool = ...,
|
||||
descriptor_pool: DescriptorPool | None = ...,
|
||||
allow_unknown_field: bool = ...,
|
||||
allow_unknown_extension: bool = False,
|
||||
allow_field_number: bool = False,
|
||||
descriptor_pool: DescriptorPool | None = None,
|
||||
allow_unknown_field: bool = False,
|
||||
) -> _M: ...
|
||||
def Merge(
|
||||
text: str | bytes,
|
||||
message: _M,
|
||||
allow_unknown_extension: bool = ...,
|
||||
allow_field_number: bool = ...,
|
||||
descriptor_pool: DescriptorPool | None = ...,
|
||||
allow_unknown_field: bool = ...,
|
||||
allow_unknown_extension: bool = False,
|
||||
allow_field_number: bool = False,
|
||||
descriptor_pool: DescriptorPool | None = None,
|
||||
allow_unknown_field: bool = False,
|
||||
) -> _M: ...
|
||||
def MergeLines(
|
||||
lines: Iterable[str | bytes],
|
||||
message: _M,
|
||||
allow_unknown_extension: bool = ...,
|
||||
allow_field_number: bool = ...,
|
||||
descriptor_pool: DescriptorPool | None = ...,
|
||||
allow_unknown_field: bool = ...,
|
||||
allow_unknown_extension: bool = False,
|
||||
allow_field_number: bool = False,
|
||||
descriptor_pool: DescriptorPool | None = None,
|
||||
allow_unknown_field: bool = False,
|
||||
) -> _M: ...
|
||||
|
||||
class _Parser:
|
||||
@@ -174,10 +174,10 @@ class _Parser:
|
||||
allow_unknown_field: bool
|
||||
def __init__(
|
||||
self,
|
||||
allow_unknown_extension: bool = ...,
|
||||
allow_field_number: bool = ...,
|
||||
descriptor_pool: DescriptorPool | None = ...,
|
||||
allow_unknown_field: bool = ...,
|
||||
allow_unknown_extension: bool = False,
|
||||
allow_field_number: bool = False,
|
||||
descriptor_pool: DescriptorPool | None = None,
|
||||
allow_unknown_field: bool = False,
|
||||
) -> None: ...
|
||||
def ParseLines(self, lines: Iterable[str | bytes], message: _M) -> _M: ...
|
||||
def MergeLines(self, lines: Iterable[str | bytes], message: _M) -> _M: ...
|
||||
@@ -210,7 +210,7 @@ class Tokenizer:
|
||||
def ParseError(self, message: Message) -> _ParseError: ...
|
||||
def NextToken(self) -> None: ...
|
||||
|
||||
def ParseInteger(text: str, is_signed: bool = ..., is_long: bool = ...) -> int: ...
|
||||
def ParseInteger(text: str, is_signed: bool = False, is_long: bool = False) -> int: ...
|
||||
def ParseFloat(text: str) -> float: ...
|
||||
def ParseBool(text: str) -> bool: ...
|
||||
def ParseEnum(field: FieldDescriptor, value: str) -> int: ...
|
||||
|
||||
@@ -31,8 +31,9 @@ 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 typing as typing_extensions
|
||||
import typing
|
||||
|
||||
import google.protobuf.descriptor
|
||||
import google.protobuf.internal.well_known_types
|
||||
@@ -40,7 +41,7 @@ import google.protobuf.message
|
||||
|
||||
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
|
||||
|
||||
@typing_extensions.final
|
||||
@typing.final
|
||||
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
|
||||
calendar, encoded as a count of seconds and fractions of seconds at
|
||||
@@ -154,6 +155,6 @@ class Timestamp(google.protobuf.message.Message, google.protobuf.internal.well_k
|
||||
seconds: builtins.int | None = ...,
|
||||
nanos: builtins.int | None = ...,
|
||||
) -> None: ...
|
||||
def ClearField(self, field_name: typing_extensions.Literal["nanos", b"nanos", "seconds", b"seconds"]) -> None: ...
|
||||
def ClearField(self, field_name: typing.Literal["nanos", b"nanos", "seconds", b"seconds"]) -> None: ...
|
||||
|
||||
global___Timestamp = Timestamp
|
||||
|
||||
@@ -31,6 +31,7 @@ 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 sys
|
||||
@@ -74,7 +75,7 @@ SYNTAX_EDITIONS: Syntax.ValueType # 2
|
||||
"""Syntax `editions`."""
|
||||
global___Syntax = Syntax
|
||||
|
||||
@typing_extensions.final
|
||||
@typing.final
|
||||
class Type(google.protobuf.message.Message):
|
||||
"""A protocol buffer message type."""
|
||||
|
||||
@@ -89,22 +90,26 @@ class Type(google.protobuf.message.Message):
|
||||
EDITION_FIELD_NUMBER: builtins.int
|
||||
name: builtins.str
|
||||
"""The fully qualified message name."""
|
||||
@property
|
||||
def fields(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Field]:
|
||||
"""The list of fields."""
|
||||
@property
|
||||
def oneofs(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]:
|
||||
"""The list of types appearing in `oneof` definitions in this type."""
|
||||
@property
|
||||
def options(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Option]:
|
||||
"""The protocol buffer options."""
|
||||
@property
|
||||
def source_context(self) -> google.protobuf.source_context_pb2.SourceContext:
|
||||
"""The source context."""
|
||||
syntax: global___Syntax.ValueType
|
||||
"""The source syntax."""
|
||||
edition: builtins.str
|
||||
"""The source edition string, only valid when syntax is SYNTAX_EDITIONS."""
|
||||
@property
|
||||
def fields(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Field]:
|
||||
"""The list of fields."""
|
||||
|
||||
@property
|
||||
def oneofs(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]:
|
||||
"""The list of types appearing in `oneof` definitions in this type."""
|
||||
|
||||
@property
|
||||
def options(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Option]:
|
||||
"""The protocol buffer options."""
|
||||
|
||||
@property
|
||||
def source_context(self) -> google.protobuf.source_context_pb2.SourceContext:
|
||||
"""The source context."""
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
*,
|
||||
@@ -116,12 +121,12 @@ class Type(google.protobuf.message.Message):
|
||||
syntax: global___Syntax.ValueType | None = ...,
|
||||
edition: builtins.str | 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["edition", b"edition", "fields", b"fields", "name", b"name", "oneofs", b"oneofs", "options", b"options", "source_context", b"source_context", "syntax", b"syntax"]) -> None: ...
|
||||
def HasField(self, field_name: typing.Literal["source_context", b"source_context"]) -> builtins.bool: ...
|
||||
def ClearField(self, field_name: typing.Literal["edition", b"edition", "fields", b"fields", "name", b"name", "oneofs", b"oneofs", "options", b"options", "source_context", b"source_context", "syntax", b"syntax"]) -> None: ...
|
||||
|
||||
global___Type = Type
|
||||
|
||||
@typing_extensions.final
|
||||
@typing.final
|
||||
class Field(google.protobuf.message.Message):
|
||||
"""A single field of a message type."""
|
||||
|
||||
@@ -269,13 +274,14 @@ class Field(google.protobuf.message.Message):
|
||||
"""
|
||||
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."""
|
||||
json_name: builtins.str
|
||||
"""The field JSON name."""
|
||||
default_value: builtins.str
|
||||
"""The string value of the default value of this field. Proto2 syntax only."""
|
||||
@property
|
||||
def options(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Option]:
|
||||
"""The protocol buffer options."""
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
*,
|
||||
@@ -290,11 +296,11 @@ class Field(google.protobuf.message.Message):
|
||||
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: ...
|
||||
def ClearField(self, field_name: typing.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
|
||||
|
||||
@typing_extensions.final
|
||||
@typing.final
|
||||
class Enum(google.protobuf.message.Message):
|
||||
"""Enum type definition."""
|
||||
|
||||
@@ -308,19 +314,22 @@ class Enum(google.protobuf.message.Message):
|
||||
EDITION_FIELD_NUMBER: builtins.int
|
||||
name: builtins.str
|
||||
"""Enum type name."""
|
||||
@property
|
||||
def enumvalue(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___EnumValue]:
|
||||
"""Enum value definitions."""
|
||||
@property
|
||||
def options(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Option]:
|
||||
"""Protocol buffer options."""
|
||||
@property
|
||||
def source_context(self) -> google.protobuf.source_context_pb2.SourceContext:
|
||||
"""The source context."""
|
||||
syntax: global___Syntax.ValueType
|
||||
"""The source syntax."""
|
||||
edition: builtins.str
|
||||
"""The source edition string, only valid when syntax is SYNTAX_EDITIONS."""
|
||||
@property
|
||||
def enumvalue(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___EnumValue]:
|
||||
"""Enum value definitions."""
|
||||
|
||||
@property
|
||||
def options(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Option]:
|
||||
"""Protocol buffer options."""
|
||||
|
||||
@property
|
||||
def source_context(self) -> google.protobuf.source_context_pb2.SourceContext:
|
||||
"""The source context."""
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
*,
|
||||
@@ -331,12 +340,12 @@ class Enum(google.protobuf.message.Message):
|
||||
syntax: global___Syntax.ValueType | None = ...,
|
||||
edition: builtins.str | 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["edition", b"edition", "enumvalue", b"enumvalue", "name", b"name", "options", b"options", "source_context", b"source_context", "syntax", b"syntax"]) -> None: ...
|
||||
def HasField(self, field_name: typing.Literal["source_context", b"source_context"]) -> builtins.bool: ...
|
||||
def ClearField(self, field_name: typing.Literal["edition", b"edition", "enumvalue", b"enumvalue", "name", b"name", "options", b"options", "source_context", b"source_context", "syntax", b"syntax"]) -> None: ...
|
||||
|
||||
global___Enum = Enum
|
||||
|
||||
@typing_extensions.final
|
||||
@typing.final
|
||||
class EnumValue(google.protobuf.message.Message):
|
||||
"""Enum value definition."""
|
||||
|
||||
@@ -352,6 +361,7 @@ class EnumValue(google.protobuf.message.Message):
|
||||
@property
|
||||
def options(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Option]:
|
||||
"""Protocol buffer options."""
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
*,
|
||||
@@ -359,11 +369,11 @@ class EnumValue(google.protobuf.message.Message):
|
||||
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: ...
|
||||
def ClearField(self, field_name: typing.Literal["name", b"name", "number", b"number", "options", b"options"]) -> None: ...
|
||||
|
||||
global___EnumValue = EnumValue
|
||||
|
||||
@typing_extensions.final
|
||||
@typing.final
|
||||
class Option(google.protobuf.message.Message):
|
||||
"""A protocol buffer option, which can be attached to a message, field,
|
||||
enumeration, etc.
|
||||
@@ -386,13 +396,14 @@ 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.
|
||||
"""
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
*,
|
||||
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: ...
|
||||
def HasField(self, field_name: typing.Literal["value", b"value"]) -> builtins.bool: ...
|
||||
def ClearField(self, field_name: typing.Literal["name", b"name", "value", b"value"]) -> None: ...
|
||||
|
||||
global___Option = Option
|
||||
|
||||
@@ -41,15 +41,16 @@ 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 typing as typing_extensions
|
||||
import typing
|
||||
|
||||
import google.protobuf.descriptor
|
||||
import google.protobuf.message
|
||||
|
||||
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
|
||||
|
||||
@typing_extensions.final
|
||||
@typing.final
|
||||
class DoubleValue(google.protobuf.message.Message):
|
||||
"""Wrapper message for `double`.
|
||||
|
||||
@@ -66,11 +67,11 @@ class DoubleValue(google.protobuf.message.Message):
|
||||
*,
|
||||
value: builtins.float | None = ...,
|
||||
) -> None: ...
|
||||
def ClearField(self, field_name: typing_extensions.Literal["value", b"value"]) -> None: ...
|
||||
def ClearField(self, field_name: typing.Literal["value", b"value"]) -> None: ...
|
||||
|
||||
global___DoubleValue = DoubleValue
|
||||
|
||||
@typing_extensions.final
|
||||
@typing.final
|
||||
class FloatValue(google.protobuf.message.Message):
|
||||
"""Wrapper message for `float`.
|
||||
|
||||
@@ -87,11 +88,11 @@ class FloatValue(google.protobuf.message.Message):
|
||||
*,
|
||||
value: builtins.float | None = ...,
|
||||
) -> None: ...
|
||||
def ClearField(self, field_name: typing_extensions.Literal["value", b"value"]) -> None: ...
|
||||
def ClearField(self, field_name: typing.Literal["value", b"value"]) -> None: ...
|
||||
|
||||
global___FloatValue = FloatValue
|
||||
|
||||
@typing_extensions.final
|
||||
@typing.final
|
||||
class Int64Value(google.protobuf.message.Message):
|
||||
"""Wrapper message for `int64`.
|
||||
|
||||
@@ -108,11 +109,11 @@ class Int64Value(google.protobuf.message.Message):
|
||||
*,
|
||||
value: builtins.int | None = ...,
|
||||
) -> None: ...
|
||||
def ClearField(self, field_name: typing_extensions.Literal["value", b"value"]) -> None: ...
|
||||
def ClearField(self, field_name: typing.Literal["value", b"value"]) -> None: ...
|
||||
|
||||
global___Int64Value = Int64Value
|
||||
|
||||
@typing_extensions.final
|
||||
@typing.final
|
||||
class UInt64Value(google.protobuf.message.Message):
|
||||
"""Wrapper message for `uint64`.
|
||||
|
||||
@@ -129,11 +130,11 @@ class UInt64Value(google.protobuf.message.Message):
|
||||
*,
|
||||
value: builtins.int | None = ...,
|
||||
) -> None: ...
|
||||
def ClearField(self, field_name: typing_extensions.Literal["value", b"value"]) -> None: ...
|
||||
def ClearField(self, field_name: typing.Literal["value", b"value"]) -> None: ...
|
||||
|
||||
global___UInt64Value = UInt64Value
|
||||
|
||||
@typing_extensions.final
|
||||
@typing.final
|
||||
class Int32Value(google.protobuf.message.Message):
|
||||
"""Wrapper message for `int32`.
|
||||
|
||||
@@ -150,11 +151,11 @@ class Int32Value(google.protobuf.message.Message):
|
||||
*,
|
||||
value: builtins.int | None = ...,
|
||||
) -> None: ...
|
||||
def ClearField(self, field_name: typing_extensions.Literal["value", b"value"]) -> None: ...
|
||||
def ClearField(self, field_name: typing.Literal["value", b"value"]) -> None: ...
|
||||
|
||||
global___Int32Value = Int32Value
|
||||
|
||||
@typing_extensions.final
|
||||
@typing.final
|
||||
class UInt32Value(google.protobuf.message.Message):
|
||||
"""Wrapper message for `uint32`.
|
||||
|
||||
@@ -171,11 +172,11 @@ class UInt32Value(google.protobuf.message.Message):
|
||||
*,
|
||||
value: builtins.int | None = ...,
|
||||
) -> None: ...
|
||||
def ClearField(self, field_name: typing_extensions.Literal["value", b"value"]) -> None: ...
|
||||
def ClearField(self, field_name: typing.Literal["value", b"value"]) -> None: ...
|
||||
|
||||
global___UInt32Value = UInt32Value
|
||||
|
||||
@typing_extensions.final
|
||||
@typing.final
|
||||
class BoolValue(google.protobuf.message.Message):
|
||||
"""Wrapper message for `bool`.
|
||||
|
||||
@@ -192,11 +193,11 @@ class BoolValue(google.protobuf.message.Message):
|
||||
*,
|
||||
value: builtins.bool | None = ...,
|
||||
) -> None: ...
|
||||
def ClearField(self, field_name: typing_extensions.Literal["value", b"value"]) -> None: ...
|
||||
def ClearField(self, field_name: typing.Literal["value", b"value"]) -> None: ...
|
||||
|
||||
global___BoolValue = BoolValue
|
||||
|
||||
@typing_extensions.final
|
||||
@typing.final
|
||||
class StringValue(google.protobuf.message.Message):
|
||||
"""Wrapper message for `string`.
|
||||
|
||||
@@ -213,11 +214,11 @@ class StringValue(google.protobuf.message.Message):
|
||||
*,
|
||||
value: builtins.str | None = ...,
|
||||
) -> None: ...
|
||||
def ClearField(self, field_name: typing_extensions.Literal["value", b"value"]) -> None: ...
|
||||
def ClearField(self, field_name: typing.Literal["value", b"value"]) -> None: ...
|
||||
|
||||
global___StringValue = StringValue
|
||||
|
||||
@typing_extensions.final
|
||||
@typing.final
|
||||
class BytesValue(google.protobuf.message.Message):
|
||||
"""Wrapper message for `bytes`.
|
||||
|
||||
@@ -234,6 +235,6 @@ class BytesValue(google.protobuf.message.Message):
|
||||
*,
|
||||
value: builtins.bytes | None = ...,
|
||||
) -> None: ...
|
||||
def ClearField(self, field_name: typing_extensions.Literal["value", b"value"]) -> None: ...
|
||||
def ClearField(self, field_name: typing.Literal["value", b"value"]) -> None: ...
|
||||
|
||||
global___BytesValue = BytesValue
|
||||
|
||||
Reference in New Issue
Block a user