massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / coc-python-data / languageServer.0.5.59 / Typeshed / third_party / 2and3 / google / protobuf / compiler / plugin_pb2.pyi
1 from google.protobuf.descriptor_pb2 import (\r
2     FileDescriptorProto,\r
3 )\r
4 from google.protobuf.internal.containers import (\r
5     RepeatedCompositeFieldContainer,\r
6     RepeatedScalarFieldContainer,\r
7 )\r
8 from google.protobuf.message import (\r
9     Message,\r
10 )\r
11 from typing import (\r
12     Iterable,\r
13     Optional,\r
14     Text,\r
15 )\r
16 \r
17 \r
18 class Version(Message):\r
19     major = ...  # type: int\r
20     minor = ...  # type: int\r
21     patch = ...  # type: int\r
22     suffix = ...  # type: Text\r
23 \r
24     def __init__(self,\r
25                  major: Optional[int] = ...,\r
26                  minor: Optional[int] = ...,\r
27                  patch: Optional[int] = ...,\r
28                  suffix: Optional[Text] = ...,\r
29                  ) -> None: ...\r
30 \r
31     @classmethod\r
32     def FromString(cls, s: bytes) -> Version: ...\r
33 \r
34 \r
35 class CodeGeneratorRequest(Message):\r
36     file_to_generate = ...  # type: RepeatedScalarFieldContainer[Text]\r
37     parameter = ...  # type: Text\r
38 \r
39     @property\r
40     def proto_file(self) -> RepeatedCompositeFieldContainer[FileDescriptorProto]: ...\r
41 \r
42     @property\r
43     def compiler_version(self) -> Version: ...\r
44 \r
45     def __init__(self,\r
46                  file_to_generate: Optional[Iterable[Text]] = ...,\r
47                  parameter: Optional[Text] = ...,\r
48                  proto_file: Optional[Iterable[FileDescriptorProto]] = ...,\r
49                  compiler_version: Optional[Version] = ...,\r
50                  ) -> None: ...\r
51 \r
52     @classmethod\r
53     def FromString(cls, s: bytes) -> CodeGeneratorRequest: ...\r
54 \r
55 \r
56 class CodeGeneratorResponse(Message):\r
57 \r
58     class File(Message):\r
59         name = ...  # type: Text\r
60         insertion_point = ...  # type: Text\r
61         content = ...  # type: Text\r
62 \r
63         def __init__(self,\r
64                      name: Optional[Text] = ...,\r
65                      insertion_point: Optional[Text] = ...,\r
66                      content: Optional[Text] = ...,\r
67                      ) -> None: ...\r
68 \r
69         @classmethod\r
70         def FromString(cls, s: bytes) -> CodeGeneratorResponse.File: ...\r
71     error = ...  # type: Text\r
72 \r
73     @property\r
74     def file(self) -> RepeatedCompositeFieldContainer[CodeGeneratorResponse.File]: ...\r
75 \r
76     def __init__(self,\r
77                  error: Optional[Text] = ...,\r
78                  file: Optional[Iterable[CodeGeneratorResponse.File]] = ...,\r
79                  ) -> None: ...\r
80 \r
81     @classmethod\r
82     def FromString(cls, s: bytes) -> CodeGeneratorResponse: ...\r