Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions third_party/2and3/google/protobuf/any_pb2.pyi
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

from google.protobuf.message import (
Message,
)
Expand All @@ -17,6 +18,3 @@ class Any(Message, well_known_types.Any_):
type_url: Optional[Text] = ...,
value: Optional[bytes] = ...,
) -> None: ...

@classmethod
def FromString(cls, s: bytes) -> Any: ...
4 changes: 1 addition & 3 deletions third_party/2and3/google/protobuf/any_test_pb2.pyi
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

from google.protobuf.any_pb2 import (
Any,
)
Expand Down Expand Up @@ -27,6 +28,3 @@ class TestAny(Message):
any_value: Optional[Any] = ...,
repeated_any_value: Optional[Iterable[Any]] = ...,
) -> None: ...

@classmethod
def FromString(cls, s: bytes) -> TestAny: ...
10 changes: 1 addition & 9 deletions third_party/2and3/google/protobuf/api_pb2.pyi
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

from google.protobuf.internal.containers import (
RepeatedCompositeFieldContainer,
)
Expand Down Expand Up @@ -45,9 +46,6 @@ class Api(Message):
syntax: Optional[Syntax] = ...,
) -> None: ...

@classmethod
def FromString(cls, s: bytes) -> Api: ...


class Method(Message):
name: Text
Expand All @@ -70,9 +68,6 @@ class Method(Message):
syntax: Optional[Syntax] = ...,
) -> None: ...

@classmethod
def FromString(cls, s: bytes) -> Method: ...


class Mixin(Message):
name: Text
Expand All @@ -82,6 +77,3 @@ class Mixin(Message):
name: Optional[Text] = ...,
root: Optional[Text] = ...,
) -> None: ...

@classmethod
def FromString(cls, s: bytes) -> Mixin: ...
14 changes: 1 addition & 13 deletions third_party/2and3/google/protobuf/compiler/plugin_pb2.pyi
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

from google.protobuf.descriptor_pb2 import (
FileDescriptorProto,
)
Expand Down Expand Up @@ -28,9 +29,6 @@ class Version(Message):
suffix: Optional[Text] = ...,
) -> None: ...

@classmethod
def FromString(cls, s: bytes) -> Version: ...


class CodeGeneratorRequest(Message):
file_to_generate: RepeatedScalarFieldContainer[Text]
Expand All @@ -49,9 +47,6 @@ class CodeGeneratorRequest(Message):
compiler_version: Optional[Version] = ...,
) -> None: ...

@classmethod
def FromString(cls, s: bytes) -> CodeGeneratorRequest: ...


class CodeGeneratorResponse(Message):

Expand All @@ -66,17 +61,10 @@ class CodeGeneratorResponse(Message):
content: Optional[Text] = ...,
) -> None: ...

@classmethod
def FromString(cls, s: bytes) -> CodeGeneratorResponse.File: ...
error: Text

@property
def file(self) -> RepeatedCompositeFieldContainer[CodeGeneratorResponse.File]: ...

def __init__(self,
error: Optional[Text] = ...,
file: Optional[Iterable[CodeGeneratorResponse.File]] = ...,
) -> None: ...

@classmethod
def FromString(cls, s: bytes) -> CodeGeneratorResponse: ...
93 changes: 1 addition & 92 deletions third_party/2and3/google/protobuf/descriptor_pb2.pyi
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

from google.protobuf.internal.containers import (
RepeatedCompositeFieldContainer,
RepeatedScalarFieldContainer,
Expand All @@ -24,9 +25,6 @@ class FileDescriptorSet(Message):
file: Optional[Iterable[FileDescriptorProto]] = ...,
) -> None: ...

@classmethod
def FromString(cls, s: bytes) -> FileDescriptorSet: ...


class FileDescriptorProto(Message):
name: Text
Expand Down Expand Up @@ -73,9 +71,6 @@ class FileDescriptorProto(Message):
syntax: Optional[Text] = ...,
) -> None: ...

@classmethod
def FromString(cls, s: bytes) -> FileDescriptorProto: ...


class DescriptorProto(Message):

Expand All @@ -92,9 +87,6 @@ class DescriptorProto(Message):
options: Optional[ExtensionRangeOptions] = ...,
) -> None: ...

@classmethod
def FromString(cls, s: bytes) -> DescriptorProto.ExtensionRange: ...

class ReservedRange(Message):
start: int
end: int
Expand All @@ -104,11 +96,6 @@ class DescriptorProto(Message):
end: Optional[int] = ...,
) -> None: ...

@classmethod
def FromString(cls, s: bytes) -> DescriptorProto.ReservedRange: ...
name: Text
reserved_name: RepeatedScalarFieldContainer[Text]

@property
def field(
self) -> RepeatedCompositeFieldContainer[FieldDescriptorProto]: ...
Expand Down Expand Up @@ -153,9 +140,6 @@ class DescriptorProto(Message):
reserved_name: Optional[Iterable[Text]] = ...,
) -> None: ...

@classmethod
def FromString(cls, s: bytes) -> DescriptorProto: ...


class ExtensionRangeOptions(Message):

Expand All @@ -167,9 +151,6 @@ class ExtensionRangeOptions(Message):
uninterpreted_option: Optional[Iterable[UninterpretedOption]] = ...,
) -> None: ...

@classmethod
def FromString(cls, s: bytes) -> ExtensionRangeOptions: ...


class FieldDescriptorProto(Message):

Expand Down Expand Up @@ -253,9 +234,6 @@ class FieldDescriptorProto(Message):
options: Optional[FieldOptions] = ...,
) -> None: ...

@classmethod
def FromString(cls, s: bytes) -> FieldDescriptorProto: ...


class OneofDescriptorProto(Message):
name: Text
Expand All @@ -268,9 +246,6 @@ class OneofDescriptorProto(Message):
options: Optional[OneofOptions] = ...,
) -> None: ...

@classmethod
def FromString(cls, s: bytes) -> OneofDescriptorProto: ...


class EnumDescriptorProto(Message):

Expand All @@ -283,12 +258,6 @@ class EnumDescriptorProto(Message):
end: Optional[int] = ...,
) -> None: ...

@classmethod
def FromString(
cls, s: bytes) -> EnumDescriptorProto.EnumReservedRange: ...
name: Text
reserved_name: RepeatedScalarFieldContainer[Text]

@property
def value(
self) -> RepeatedCompositeFieldContainer[EnumValueDescriptorProto]: ...
Expand All @@ -308,9 +277,6 @@ class EnumDescriptorProto(Message):
reserved_name: Optional[Iterable[Text]] = ...,
) -> None: ...

@classmethod
def FromString(cls, s: bytes) -> EnumDescriptorProto: ...


class EnumValueDescriptorProto(Message):
name: Text
Expand All @@ -325,9 +291,6 @@ class EnumValueDescriptorProto(Message):
options: Optional[EnumValueOptions] = ...,
) -> None: ...

@classmethod
def FromString(cls, s: bytes) -> EnumValueDescriptorProto: ...


class ServiceDescriptorProto(Message):
name: Text
Expand All @@ -345,9 +308,6 @@ class ServiceDescriptorProto(Message):
options: Optional[ServiceOptions] = ...,
) -> None: ...

@classmethod
def FromString(cls, s: bytes) -> ServiceDescriptorProto: ...


class MethodDescriptorProto(Message):
name: Text
Expand All @@ -368,9 +328,6 @@ class MethodDescriptorProto(Message):
server_streaming: Optional[bool] = ...,
) -> None: ...

@classmethod
def FromString(cls, s: bytes) -> MethodDescriptorProto: ...


class FileOptions(Message):

Expand Down Expand Up @@ -438,9 +395,6 @@ class FileOptions(Message):
uninterpreted_option: Optional[Iterable[UninterpretedOption]] = ...,
) -> None: ...

@classmethod
def FromString(cls, s: bytes) -> FileOptions: ...


class MessageOptions(Message):
message_set_wire_format: bool
Expand All @@ -460,9 +414,6 @@ class MessageOptions(Message):
uninterpreted_option: Optional[Iterable[UninterpretedOption]] = ...,
) -> None: ...

@classmethod
def FromString(cls, s: bytes) -> MessageOptions: ...


class FieldOptions(Message):

Expand Down Expand Up @@ -526,9 +477,6 @@ class FieldOptions(Message):
uninterpreted_option: Optional[Iterable[UninterpretedOption]] = ...,
) -> None: ...

@classmethod
def FromString(cls, s: bytes) -> FieldOptions: ...


class OneofOptions(Message):

Expand All @@ -540,9 +488,6 @@ class OneofOptions(Message):
uninterpreted_option: Optional[Iterable[UninterpretedOption]] = ...,
) -> None: ...

@classmethod
def FromString(cls, s: bytes) -> OneofOptions: ...


class EnumOptions(Message):
allow_alias: bool
Expand All @@ -558,9 +503,6 @@ class EnumOptions(Message):
uninterpreted_option: Optional[Iterable[UninterpretedOption]] = ...,
) -> None: ...

@classmethod
def FromString(cls, s: bytes) -> EnumOptions: ...


class EnumValueOptions(Message):
deprecated: bool
Expand All @@ -574,9 +516,6 @@ class EnumValueOptions(Message):
uninterpreted_option: Optional[Iterable[UninterpretedOption]] = ...,
) -> None: ...

@classmethod
def FromString(cls, s: bytes) -> EnumValueOptions: ...


class ServiceOptions(Message):
deprecated: bool
Expand All @@ -590,9 +529,6 @@ class ServiceOptions(Message):
uninterpreted_option: Optional[Iterable[UninterpretedOption]] = ...,
) -> None: ...

@classmethod
def FromString(cls, s: bytes) -> ServiceOptions: ...


class MethodOptions(Message):

Expand Down Expand Up @@ -628,9 +564,6 @@ class MethodOptions(Message):
uninterpreted_option: Optional[Iterable[UninterpretedOption]] = ...,
) -> None: ...

@classmethod
def FromString(cls, s: bytes) -> MethodOptions: ...


class UninterpretedOption(Message):

Expand All @@ -643,15 +576,6 @@ class UninterpretedOption(Message):
is_extension: bool,
) -> None: ...

@classmethod
def FromString(cls, s: bytes) -> UninterpretedOption.NamePart: ...
identifier_value: Text
positive_int_value: int
negative_int_value: int
double_value: float
string_value: bytes
aggregate_value: Text

@property
def name(
self) -> RepeatedCompositeFieldContainer[UninterpretedOption.NamePart]: ...
Expand All @@ -666,9 +590,6 @@ class UninterpretedOption(Message):
aggregate_value: Optional[Text] = ...,
) -> None: ...

@classmethod
def FromString(cls, s: bytes) -> UninterpretedOption: ...


class SourceCodeInfo(Message):

Expand All @@ -687,9 +608,6 @@ class SourceCodeInfo(Message):
leading_detached_comments: Optional[Iterable[Text]] = ...,
) -> None: ...

@classmethod
def FromString(cls, s: bytes) -> SourceCodeInfo.Location: ...

@property
def location(
self) -> RepeatedCompositeFieldContainer[SourceCodeInfo.Location]: ...
Expand All @@ -698,9 +616,6 @@ class SourceCodeInfo(Message):
location: Optional[Iterable[SourceCodeInfo.Location]] = ...,
) -> None: ...

@classmethod
def FromString(cls, s: bytes) -> SourceCodeInfo: ...


class GeneratedCodeInfo(Message):

Expand All @@ -717,16 +632,10 @@ class GeneratedCodeInfo(Message):
end: Optional[int] = ...,
) -> None: ...

@classmethod
def FromString(cls, s: bytes) -> GeneratedCodeInfo.Annotation: ...

@property
def annotation(
self) -> RepeatedCompositeFieldContainer[GeneratedCodeInfo.Annotation]: ...

def __init__(self,
annotation: Optional[Iterable[GeneratedCodeInfo.Annotation]] = ...,
) -> None: ...

@classmethod
def FromString(cls, s: bytes) -> GeneratedCodeInfo: ...
4 changes: 1 addition & 3 deletions third_party/2and3/google/protobuf/duration_pb2.pyi
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

from google.protobuf.message import (
Message,
)
Expand All @@ -16,6 +17,3 @@ class Duration(Message, well_known_types.Duration):
seconds: Optional[int] = ...,
nanos: Optional[int] = ...,
) -> None: ...

@classmethod
def FromString(cls, s: bytes) -> Duration: ...
Loading