|
1 |
| -from typing import Iterable, Optional, Text |
| 1 | +# @generated by generate_proto_mypy_stubs.py. Do not edit! |
| 2 | +import sys |
| 3 | +from google.protobuf.descriptor import ( |
| 4 | + Descriptor as google___protobuf___descriptor___Descriptor, |
| 5 | + FileDescriptor as google___protobuf___descriptor___FileDescriptor, |
| 6 | +) |
2 | 7 |
|
3 |
| -from google.protobuf.internal.containers import RepeatedCompositeFieldContainer |
4 |
| -from google.protobuf.message import Message |
5 |
| -from google.protobuf.source_context_pb2 import SourceContext |
6 |
| -from google.protobuf.type_pb2 import Option, Syntax |
| 8 | +from google.protobuf.internal.containers import ( |
| 9 | + RepeatedCompositeFieldContainer as google___protobuf___internal___containers___RepeatedCompositeFieldContainer, |
| 10 | +) |
| 11 | + |
| 12 | +from google.protobuf.message import ( |
| 13 | + Message as google___protobuf___message___Message, |
| 14 | +) |
| 15 | + |
| 16 | +from google.protobuf.source_context_pb2 import ( |
| 17 | + SourceContext as google___protobuf___source_context_pb2___SourceContext, |
| 18 | +) |
| 19 | + |
| 20 | +from google.protobuf.type_pb2 import ( |
| 21 | + Option as google___protobuf___type_pb2___Option, |
| 22 | + SyntaxValue as google___protobuf___type_pb2___SyntaxValue, |
| 23 | +) |
| 24 | + |
| 25 | +from typing import ( |
| 26 | + Iterable as typing___Iterable, |
| 27 | + Optional as typing___Optional, |
| 28 | + Text as typing___Text, |
| 29 | +) |
| 30 | + |
| 31 | +from typing_extensions import ( |
| 32 | + Literal as typing_extensions___Literal, |
| 33 | +) |
| 34 | + |
| 35 | + |
| 36 | +builtin___bool = bool |
| 37 | +builtin___bytes = bytes |
| 38 | +builtin___float = float |
| 39 | +builtin___int = int |
| 40 | + |
| 41 | + |
| 42 | +DESCRIPTOR: google___protobuf___descriptor___FileDescriptor = ... |
| 43 | + |
| 44 | +class Api(google___protobuf___message___Message): |
| 45 | + DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... |
| 46 | + name: typing___Text = ... |
| 47 | + version: typing___Text = ... |
| 48 | + syntax: google___protobuf___type_pb2___SyntaxValue = ... |
7 | 49 |
|
8 |
| -class Api(Message): |
9 |
| - name: Text |
10 |
| - version: Text |
11 |
| - syntax: Syntax |
12 | 50 | @property
|
13 |
| - def methods(self) -> RepeatedCompositeFieldContainer[Method]: ... |
| 51 | + def methods(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[type___Method]: ... |
| 52 | + |
14 | 53 | @property
|
15 |
| - def options(self) -> RepeatedCompositeFieldContainer[Option]: ... |
| 54 | + def options(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[google___protobuf___type_pb2___Option]: ... |
| 55 | + |
16 | 56 | @property
|
17 |
| - def source_context(self) -> SourceContext: ... |
| 57 | + def source_context(self) -> google___protobuf___source_context_pb2___SourceContext: ... |
| 58 | + |
18 | 59 | @property
|
19 |
| - def mixins(self) -> RepeatedCompositeFieldContainer[Mixin]: ... |
20 |
| - def __init__( |
21 |
| - self, |
22 |
| - name: Optional[Text] = ..., |
23 |
| - methods: Optional[Iterable[Method]] = ..., |
24 |
| - options: Optional[Iterable[Option]] = ..., |
25 |
| - version: Optional[Text] = ..., |
26 |
| - source_context: Optional[SourceContext] = ..., |
27 |
| - mixins: Optional[Iterable[Mixin]] = ..., |
28 |
| - syntax: Optional[Syntax] = ..., |
29 |
| - ) -> None: ... |
30 |
| - |
31 |
| -class Method(Message): |
32 |
| - name: Text |
33 |
| - request_type_url: Text |
34 |
| - request_streaming: bool |
35 |
| - response_type_url: Text |
36 |
| - response_streaming: bool |
37 |
| - syntax: Syntax |
| 60 | + def mixins(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[type___Mixin]: ... |
| 61 | + |
| 62 | + def __init__(self, |
| 63 | + *, |
| 64 | + name : typing___Optional[typing___Text] = None, |
| 65 | + methods : typing___Optional[typing___Iterable[type___Method]] = None, |
| 66 | + options : typing___Optional[typing___Iterable[google___protobuf___type_pb2___Option]] = None, |
| 67 | + version : typing___Optional[typing___Text] = None, |
| 68 | + source_context : typing___Optional[google___protobuf___source_context_pb2___SourceContext] = None, |
| 69 | + mixins : typing___Optional[typing___Iterable[type___Mixin]] = None, |
| 70 | + syntax : typing___Optional[google___protobuf___type_pb2___SyntaxValue] = None, |
| 71 | + ) -> None: ... |
| 72 | + def HasField(self, field_name: typing_extensions___Literal[u"source_context",b"source_context"]) -> builtin___bool: ... |
| 73 | + def ClearField(self, field_name: typing_extensions___Literal[u"methods",b"methods",u"mixins",b"mixins",u"name",b"name",u"options",b"options",u"source_context",b"source_context",u"syntax",b"syntax",u"version",b"version"]) -> None: ... |
| 74 | +type___Api = Api |
| 75 | + |
| 76 | +class Method(google___protobuf___message___Message): |
| 77 | + DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... |
| 78 | + name: typing___Text = ... |
| 79 | + request_type_url: typing___Text = ... |
| 80 | + request_streaming: builtin___bool = ... |
| 81 | + response_type_url: typing___Text = ... |
| 82 | + response_streaming: builtin___bool = ... |
| 83 | + syntax: google___protobuf___type_pb2___SyntaxValue = ... |
| 84 | + |
38 | 85 | @property
|
39 |
| - def options(self) -> RepeatedCompositeFieldContainer[Option]: ... |
40 |
| - def __init__( |
41 |
| - self, |
42 |
| - name: Optional[Text] = ..., |
43 |
| - request_type_url: Optional[Text] = ..., |
44 |
| - request_streaming: Optional[bool] = ..., |
45 |
| - response_type_url: Optional[Text] = ..., |
46 |
| - response_streaming: Optional[bool] = ..., |
47 |
| - options: Optional[Iterable[Option]] = ..., |
48 |
| - syntax: Optional[Syntax] = ..., |
49 |
| - ) -> None: ... |
50 |
| - |
51 |
| -class Mixin(Message): |
52 |
| - name: Text |
53 |
| - root: Text |
54 |
| - def __init__(self, name: Optional[Text] = ..., root: Optional[Text] = ...) -> None: ... |
| 86 | + def options(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[google___protobuf___type_pb2___Option]: ... |
| 87 | + |
| 88 | + def __init__(self, |
| 89 | + *, |
| 90 | + name : typing___Optional[typing___Text] = None, |
| 91 | + request_type_url : typing___Optional[typing___Text] = None, |
| 92 | + request_streaming : typing___Optional[builtin___bool] = None, |
| 93 | + response_type_url : typing___Optional[typing___Text] = None, |
| 94 | + response_streaming : typing___Optional[builtin___bool] = None, |
| 95 | + options : typing___Optional[typing___Iterable[google___protobuf___type_pb2___Option]] = None, |
| 96 | + syntax : typing___Optional[google___protobuf___type_pb2___SyntaxValue] = None, |
| 97 | + ) -> None: ... |
| 98 | + def ClearField(self, field_name: typing_extensions___Literal[u"name",b"name",u"options",b"options",u"request_streaming",b"request_streaming",u"request_type_url",b"request_type_url",u"response_streaming",b"response_streaming",u"response_type_url",b"response_type_url",u"syntax",b"syntax"]) -> None: ... |
| 99 | +type___Method = Method |
| 100 | + |
| 101 | +class Mixin(google___protobuf___message___Message): |
| 102 | + DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... |
| 103 | + name: typing___Text = ... |
| 104 | + root: typing___Text = ... |
| 105 | + |
| 106 | + def __init__(self, |
| 107 | + *, |
| 108 | + name : typing___Optional[typing___Text] = None, |
| 109 | + root : typing___Optional[typing___Text] = None, |
| 110 | + ) -> None: ... |
| 111 | + def ClearField(self, field_name: typing_extensions___Literal[u"name",b"name",u"root",b"root"]) -> None: ... |
| 112 | +type___Mixin = Mixin |
0 commit comments