@ark-us/wasmxjs 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (219) hide show
  1. package/LICENSE +3 -0
  2. package/README.md +280 -0
  3. package/main/codegen/cosmos/base/abci/v1beta1/abci.js +887 -0
  4. package/main/codegen/cosmos/base/kv/v1beta1/kv.js +139 -0
  5. package/main/codegen/cosmos/base/query/v1beta1/pagination.js +157 -0
  6. package/main/codegen/cosmos/base/reflection/v1beta1/reflection.js +231 -0
  7. package/main/codegen/cosmos/base/reflection/v2alpha1/reflection.js +1479 -0
  8. package/main/codegen/cosmos/base/snapshots/v1beta1/snapshot.js +478 -0
  9. package/main/codegen/cosmos/base/store/v1beta1/commit_info.js +207 -0
  10. package/main/codegen/cosmos/base/store/v1beta1/listening.js +89 -0
  11. package/main/codegen/cosmos/base/tendermint/v1beta1/query.js +951 -0
  12. package/main/codegen/cosmos/base/tendermint/v1beta1/query.rpc.Service.js +117 -0
  13. package/main/codegen/cosmos/base/v1beta1/coin.js +223 -0
  14. package/main/codegen/cosmos/bundle.js +63 -0
  15. package/main/codegen/cosmos/rpc.query.js +55 -0
  16. package/main/codegen/extern.js +66 -0
  17. package/main/codegen/gogoproto/bundle.js +16 -0
  18. package/main/codegen/gogoproto/gogo.js +5 -0
  19. package/main/codegen/google/api/annotations.js +5 -0
  20. package/main/codegen/google/api/http.js +306 -0
  21. package/main/codegen/google/api/httpbody.js +102 -0
  22. package/main/codegen/google/bundle.js +26 -0
  23. package/main/codegen/google/protobuf/any.js +69 -0
  24. package/main/codegen/google/protobuf/descriptor.js +3429 -0
  25. package/main/codegen/google/protobuf/duration.js +69 -0
  26. package/main/codegen/google/protobuf/timestamp.js +69 -0
  27. package/main/codegen/helpers.js +170 -0
  28. package/main/codegen/index.js +93 -0
  29. package/main/codegen/tendermint/abci/types.js +3616 -0
  30. package/main/codegen/tendermint/bundle.js +37 -0
  31. package/main/codegen/tendermint/crypto/keys.js +69 -0
  32. package/main/codegen/tendermint/crypto/proof.js +372 -0
  33. package/main/codegen/tendermint/libs/bits/types.js +100 -0
  34. package/main/codegen/tendermint/p2p/types.js +322 -0
  35. package/main/codegen/tendermint/types/block.js +90 -0
  36. package/main/codegen/tendermint/types/evidence.js +335 -0
  37. package/main/codegen/tendermint/types/params.js +397 -0
  38. package/main/codegen/tendermint/types/types.js +1223 -0
  39. package/main/codegen/tendermint/types/validator.js +237 -0
  40. package/main/codegen/tendermint/version/types.js +126 -0
  41. package/main/codegen/wasmx/bundle.js +30 -0
  42. package/main/codegen/wasmx/client.js +65 -0
  43. package/main/codegen/wasmx/index.js +126 -0
  44. package/main/codegen/wasmx/rpc.query.js +65 -0
  45. package/main/codegen/wasmx/rpc.tx.js +44 -0
  46. package/main/codegen/wasmx/wasmx/contract.js +324 -0
  47. package/main/codegen/wasmx/wasmx/genesis.js +481 -0
  48. package/main/codegen/wasmx/wasmx/params.js +45 -0
  49. package/main/codegen/wasmx/wasmx/query.js +1187 -0
  50. package/main/codegen/wasmx/wasmx/query.rpc.Query.js +154 -0
  51. package/main/codegen/wasmx/wasmx/tx.amino.js +251 -0
  52. package/main/codegen/wasmx/wasmx/tx.js +937 -0
  53. package/main/codegen/wasmx/wasmx/tx.registry.js +213 -0
  54. package/main/codegen/wasmx/wasmx/tx.rpc.msg.js +85 -0
  55. package/main/index.js +16 -0
  56. package/module/codegen/cosmos/base/abci/v1beta1/abci.js +755 -0
  57. package/module/codegen/cosmos/base/kv/v1beta1/kv.js +110 -0
  58. package/module/codegen/cosmos/base/query/v1beta1/pagination.js +154 -0
  59. package/module/codegen/cosmos/base/reflection/v1beta1/reflection.js +183 -0
  60. package/module/codegen/cosmos/base/reflection/v2alpha1/reflection.js +1297 -0
  61. package/module/codegen/cosmos/base/snapshots/v1beta1/snapshot.js +439 -0
  62. package/module/codegen/cosmos/base/store/v1beta1/commit_info.js +179 -0
  63. package/module/codegen/cosmos/base/store/v1beta1/listening.js +86 -0
  64. package/module/codegen/cosmos/base/tendermint/v1beta1/query.js +866 -0
  65. package/module/codegen/cosmos/base/tendermint/v1beta1/query.rpc.Service.js +74 -0
  66. package/module/codegen/cosmos/base/v1beta1/coin.js +213 -0
  67. package/module/codegen/cosmos/bundle.js +52 -0
  68. package/module/codegen/cosmos/rpc.query.js +17 -0
  69. package/module/codegen/extern.js +30 -0
  70. package/module/codegen/gogoproto/bundle.js +5 -0
  71. package/module/codegen/gogoproto/gogo.js +1 -0
  72. package/module/codegen/google/api/annotations.js +1 -0
  73. package/module/codegen/google/api/http.js +264 -0
  74. package/module/codegen/google/api/httpbody.js +115 -0
  75. package/module/codegen/google/bundle.js +15 -0
  76. package/module/codegen/google/protobuf/any.js +140 -0
  77. package/module/codegen/google/protobuf/descriptor.js +2801 -0
  78. package/module/codegen/google/protobuf/duration.js +119 -0
  79. package/module/codegen/google/protobuf/timestamp.js +143 -0
  80. package/module/codegen/helpers.js +140 -0
  81. package/module/codegen/index.js +14 -0
  82. package/module/codegen/tendermint/abci/types.js +3305 -0
  83. package/module/codegen/tendermint/bundle.js +26 -0
  84. package/module/codegen/tendermint/crypto/keys.js +60 -0
  85. package/module/codegen/tendermint/crypto/proof.js +320 -0
  86. package/module/codegen/tendermint/libs/bits/types.js +71 -0
  87. package/module/codegen/tendermint/p2p/types.js +305 -0
  88. package/module/codegen/tendermint/types/block.js +79 -0
  89. package/module/codegen/tendermint/types/evidence.js +285 -0
  90. package/module/codegen/tendermint/types/params.js +363 -0
  91. package/module/codegen/tendermint/types/types.js +1149 -0
  92. package/module/codegen/tendermint/types/validator.js +204 -0
  93. package/module/codegen/tendermint/version/types.js +119 -0
  94. package/module/codegen/wasmx/bundle.js +19 -0
  95. package/module/codegen/wasmx/client.js +36 -0
  96. package/module/codegen/wasmx/index.js +11 -0
  97. package/module/codegen/wasmx/rpc.query.js +20 -0
  98. package/module/codegen/wasmx/rpc.tx.js +7 -0
  99. package/module/codegen/wasmx/wasmx/contract.js +291 -0
  100. package/module/codegen/wasmx/wasmx/genesis.js +386 -0
  101. package/module/codegen/wasmx/wasmx/params.js +36 -0
  102. package/module/codegen/wasmx/wasmx/query.js +1052 -0
  103. package/module/codegen/wasmx/wasmx/query.rpc.Query.js +101 -0
  104. package/module/codegen/wasmx/wasmx/tx.amino.js +236 -0
  105. package/module/codegen/wasmx/wasmx/tx.js +815 -0
  106. package/module/codegen/wasmx/wasmx/tx.registry.js +199 -0
  107. package/module/codegen/wasmx/wasmx/tx.rpc.msg.js +47 -0
  108. package/module/index.js +1 -0
  109. package/package.json +88 -0
  110. package/src/codegen/cosmos/base/abci/v1beta1/abci.ts +1254 -0
  111. package/src/codegen/cosmos/base/kv/v1beta1/kv.ts +156 -0
  112. package/src/codegen/cosmos/base/query/v1beta1/pagination.ts +314 -0
  113. package/src/codegen/cosmos/base/reflection/v1beta1/reflection.ts +280 -0
  114. package/src/codegen/cosmos/base/reflection/v2alpha1/reflection.ts +2079 -0
  115. package/src/codegen/cosmos/base/snapshots/v1beta1/snapshot.ts +641 -0
  116. package/src/codegen/cosmos/base/store/v1beta1/commit_info.ts +269 -0
  117. package/src/codegen/cosmos/base/store/v1beta1/listening.ts +129 -0
  118. package/src/codegen/cosmos/base/tendermint/v1beta1/query.rpc.Service.ts +107 -0
  119. package/src/codegen/cosmos/base/tendermint/v1beta1/query.ts +1284 -0
  120. package/src/codegen/cosmos/base/v1beta1/coin.ts +318 -0
  121. package/src/codegen/cosmos/bundle.ts +52 -0
  122. package/src/codegen/cosmos/rpc.query.ts +19 -0
  123. package/src/codegen/extern.ts +33 -0
  124. package/src/codegen/gogoproto/bundle.ts +3 -0
  125. package/src/codegen/gogoproto/gogo.ts +1 -0
  126. package/src/codegen/google/api/annotations.ts +1 -0
  127. package/src/codegen/google/api/http.ts +945 -0
  128. package/src/codegen/google/api/httpbody.ts +200 -0
  129. package/src/codegen/google/bundle.ts +18 -0
  130. package/src/codegen/google/protobuf/any.ts +305 -0
  131. package/src/codegen/google/protobuf/descriptor.ts +5113 -0
  132. package/src/codegen/google/protobuf/duration.ts +229 -0
  133. package/src/codegen/google/protobuf/timestamp.ts +273 -0
  134. package/src/codegen/helpers.ts +240 -0
  135. package/src/codegen/index.ts +14 -0
  136. package/src/codegen/tendermint/abci/types.ts +4754 -0
  137. package/src/codegen/tendermint/bundle.ts +32 -0
  138. package/src/codegen/tendermint/crypto/keys.ts +83 -0
  139. package/src/codegen/tendermint/crypto/proof.ts +465 -0
  140. package/src/codegen/tendermint/libs/bits/types.ts +97 -0
  141. package/src/codegen/tendermint/p2p/types.ts +422 -0
  142. package/src/codegen/tendermint/types/block.ts +109 -0
  143. package/src/codegen/tendermint/types/evidence.ts +415 -0
  144. package/src/codegen/tendermint/types/params.ts +615 -0
  145. package/src/codegen/tendermint/types/types.ts +1663 -0
  146. package/src/codegen/tendermint/types/validator.ts +282 -0
  147. package/src/codegen/tendermint/version/types.ts +180 -0
  148. package/src/codegen/wasmx/bundle.ts +26 -0
  149. package/src/codegen/wasmx/client.ts +45 -0
  150. package/src/codegen/wasmx/index.ts +11 -0
  151. package/src/codegen/wasmx/rpc.query.ts +22 -0
  152. package/src/codegen/wasmx/rpc.tx.ts +10 -0
  153. package/src/codegen/wasmx/wasmx/contract.ts +470 -0
  154. package/src/codegen/wasmx/wasmx/genesis.ts +552 -0
  155. package/src/codegen/wasmx/wasmx/params.ts +50 -0
  156. package/src/codegen/wasmx/wasmx/query.rpc.Query.ts +149 -0
  157. package/src/codegen/wasmx/wasmx/query.ts +1668 -0
  158. package/src/codegen/wasmx/wasmx/tx.amino.ts +314 -0
  159. package/src/codegen/wasmx/wasmx/tx.registry.ts +230 -0
  160. package/src/codegen/wasmx/wasmx/tx.rpc.msg.ts +80 -0
  161. package/src/codegen/wasmx/wasmx/tx.ts +1331 -0
  162. package/src/index.ts +1 -0
  163. package/types/codegen/cosmos/base/abci/v1beta1/abci.d.ts +338 -0
  164. package/types/codegen/cosmos/base/kv/v1beta1/kv.d.ts +33 -0
  165. package/types/codegen/cosmos/base/query/v1beta1/pagination.d.ts +140 -0
  166. package/types/codegen/cosmos/base/reflection/v1beta1/reflection.d.ts +75 -0
  167. package/types/codegen/cosmos/base/reflection/v2alpha1/reflection.d.ts +565 -0
  168. package/types/codegen/cosmos/base/snapshots/v1beta1/snapshot.d.ts +135 -0
  169. package/types/codegen/cosmos/base/store/v1beta1/commit_info.d.ts +71 -0
  170. package/types/codegen/cosmos/base/store/v1beta1/listening.d.ts +38 -0
  171. package/types/codegen/cosmos/base/tendermint/v1beta1/query.d.ts +282 -0
  172. package/types/codegen/cosmos/base/tendermint/v1beta1/query.lcd.d.ts +14 -0
  173. package/types/codegen/cosmos/base/tendermint/v1beta1/query.rpc.Service.d.ts +36 -0
  174. package/types/codegen/cosmos/base/v1beta1/coin.d.ts +85 -0
  175. package/types/codegen/cosmos/bundle.d.ts +594 -0
  176. package/types/codegen/cosmos/lcd.d.ts +11 -0
  177. package/types/codegen/cosmos/rpc.query.d.ts +19 -0
  178. package/types/codegen/extern.d.ts +9 -0
  179. package/types/codegen/gogoproto/bundle.d.ts +1 -0
  180. package/types/codegen/gogoproto/gogo.d.ts +1 -0
  181. package/types/codegen/google/api/annotations.d.ts +1 -0
  182. package/types/codegen/google/api/http.d.ts +622 -0
  183. package/types/codegen/google/api/httpbody.d.ts +113 -0
  184. package/types/codegen/google/bundle.d.ts +274 -0
  185. package/types/codegen/google/protobuf/any.d.ts +238 -0
  186. package/types/codegen/google/protobuf/descriptor.d.ts +1835 -0
  187. package/types/codegen/google/protobuf/duration.d.ts +163 -0
  188. package/types/codegen/google/protobuf/timestamp.d.ts +207 -0
  189. package/types/codegen/helpers.d.ts +82 -0
  190. package/types/codegen/index.d.ts +13 -0
  191. package/types/codegen/tendermint/abci/types.d.ts +993 -0
  192. package/types/codegen/tendermint/bundle.d.ts +639 -0
  193. package/types/codegen/tendermint/crypto/keys.d.ts +18 -0
  194. package/types/codegen/tendermint/crypto/proof.d.ts +101 -0
  195. package/types/codegen/tendermint/libs/bits/types.d.ts +17 -0
  196. package/types/codegen/tendermint/p2p/types.d.ts +78 -0
  197. package/types/codegen/tendermint/types/block.d.ts +22 -0
  198. package/types/codegen/tendermint/types/evidence.d.ts +91 -0
  199. package/types/codegen/tendermint/types/params.d.ts +193 -0
  200. package/types/codegen/tendermint/types/types.d.ts +363 -0
  201. package/types/codegen/tendermint/types/validator.d.ts +54 -0
  202. package/types/codegen/tendermint/version/types.d.ts +52 -0
  203. package/types/codegen/wasmx/bundle.d.ts +614 -0
  204. package/types/codegen/wasmx/client.d.ts +151 -0
  205. package/types/codegen/wasmx/index.d.ts +11 -0
  206. package/types/codegen/wasmx/lcd.d.ts +14 -0
  207. package/types/codegen/wasmx/rpc.query.d.ts +32 -0
  208. package/types/codegen/wasmx/rpc.tx.d.ts +8 -0
  209. package/types/codegen/wasmx/wasmx/contract.d.ts +122 -0
  210. package/types/codegen/wasmx/wasmx/genesis.d.ts +107 -0
  211. package/types/codegen/wasmx/wasmx/params.d.ts +14 -0
  212. package/types/codegen/wasmx/wasmx/query.d.ts +451 -0
  213. package/types/codegen/wasmx/wasmx/query.lcd.d.ts +17 -0
  214. package/types/codegen/wasmx/wasmx/query.rpc.Query.d.ts +48 -0
  215. package/types/codegen/wasmx/wasmx/tx.amino.d.ts +110 -0
  216. package/types/codegen/wasmx/wasmx/tx.d.ts +332 -0
  217. package/types/codegen/wasmx/wasmx/tx.registry.d.ts +136 -0
  218. package/types/codegen/wasmx/wasmx/tx.rpc.msg.d.ts +33 -0
  219. package/types/index.d.ts +1 -0
@@ -0,0 +1,1835 @@
1
+ import * as _m0 from "protobufjs/minimal";
2
+ import { Long } from "../../helpers";
3
+ export declare enum FieldDescriptorProto_Type {
4
+ /**
5
+ * TYPE_DOUBLE - 0 is reserved for errors.
6
+ * Order is weird for historical reasons.
7
+ */
8
+ TYPE_DOUBLE = 1,
9
+ TYPE_FLOAT = 2,
10
+ /**
11
+ * TYPE_INT64 - Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT64 if
12
+ * negative values are likely.
13
+ */
14
+ TYPE_INT64 = 3,
15
+ TYPE_UINT64 = 4,
16
+ /**
17
+ * TYPE_INT32 - Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT32 if
18
+ * negative values are likely.
19
+ */
20
+ TYPE_INT32 = 5,
21
+ TYPE_FIXED64 = 6,
22
+ TYPE_FIXED32 = 7,
23
+ TYPE_BOOL = 8,
24
+ TYPE_STRING = 9,
25
+ /**
26
+ * TYPE_GROUP - Tag-delimited aggregate.
27
+ * Group type is deprecated and not supported in proto3. However, Proto3
28
+ * implementations should still be able to parse the group wire format and
29
+ * treat group fields as unknown fields.
30
+ */
31
+ TYPE_GROUP = 10,
32
+ TYPE_MESSAGE = 11,
33
+ /** TYPE_BYTES - New in version 2. */
34
+ TYPE_BYTES = 12,
35
+ TYPE_UINT32 = 13,
36
+ TYPE_ENUM = 14,
37
+ TYPE_SFIXED32 = 15,
38
+ TYPE_SFIXED64 = 16,
39
+ /** TYPE_SINT32 - Uses ZigZag encoding. */
40
+ TYPE_SINT32 = 17,
41
+ /** TYPE_SINT64 - Uses ZigZag encoding. */
42
+ TYPE_SINT64 = 18,
43
+ UNRECOGNIZED = -1
44
+ }
45
+ export declare enum FieldDescriptorProto_TypeSDKType {
46
+ /**
47
+ * TYPE_DOUBLE - 0 is reserved for errors.
48
+ * Order is weird for historical reasons.
49
+ */
50
+ TYPE_DOUBLE = 1,
51
+ TYPE_FLOAT = 2,
52
+ /**
53
+ * TYPE_INT64 - Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT64 if
54
+ * negative values are likely.
55
+ */
56
+ TYPE_INT64 = 3,
57
+ TYPE_UINT64 = 4,
58
+ /**
59
+ * TYPE_INT32 - Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT32 if
60
+ * negative values are likely.
61
+ */
62
+ TYPE_INT32 = 5,
63
+ TYPE_FIXED64 = 6,
64
+ TYPE_FIXED32 = 7,
65
+ TYPE_BOOL = 8,
66
+ TYPE_STRING = 9,
67
+ /**
68
+ * TYPE_GROUP - Tag-delimited aggregate.
69
+ * Group type is deprecated and not supported in proto3. However, Proto3
70
+ * implementations should still be able to parse the group wire format and
71
+ * treat group fields as unknown fields.
72
+ */
73
+ TYPE_GROUP = 10,
74
+ TYPE_MESSAGE = 11,
75
+ /** TYPE_BYTES - New in version 2. */
76
+ TYPE_BYTES = 12,
77
+ TYPE_UINT32 = 13,
78
+ TYPE_ENUM = 14,
79
+ TYPE_SFIXED32 = 15,
80
+ TYPE_SFIXED64 = 16,
81
+ /** TYPE_SINT32 - Uses ZigZag encoding. */
82
+ TYPE_SINT32 = 17,
83
+ /** TYPE_SINT64 - Uses ZigZag encoding. */
84
+ TYPE_SINT64 = 18,
85
+ UNRECOGNIZED = -1
86
+ }
87
+ export declare function fieldDescriptorProto_TypeFromJSON(object: any): FieldDescriptorProto_Type;
88
+ export declare function fieldDescriptorProto_TypeToJSON(object: FieldDescriptorProto_Type): string;
89
+ export declare enum FieldDescriptorProto_Label {
90
+ /** LABEL_OPTIONAL - 0 is reserved for errors */
91
+ LABEL_OPTIONAL = 1,
92
+ LABEL_REQUIRED = 2,
93
+ LABEL_REPEATED = 3,
94
+ UNRECOGNIZED = -1
95
+ }
96
+ export declare enum FieldDescriptorProto_LabelSDKType {
97
+ /** LABEL_OPTIONAL - 0 is reserved for errors */
98
+ LABEL_OPTIONAL = 1,
99
+ LABEL_REQUIRED = 2,
100
+ LABEL_REPEATED = 3,
101
+ UNRECOGNIZED = -1
102
+ }
103
+ export declare function fieldDescriptorProto_LabelFromJSON(object: any): FieldDescriptorProto_Label;
104
+ export declare function fieldDescriptorProto_LabelToJSON(object: FieldDescriptorProto_Label): string;
105
+ /** Generated classes can be optimized for speed or code size. */
106
+ export declare enum FileOptions_OptimizeMode {
107
+ /**
108
+ * SPEED - Generate complete code for parsing, serialization,
109
+ * etc.
110
+ */
111
+ SPEED = 1,
112
+ /** CODE_SIZE - Use ReflectionOps to implement these methods. */
113
+ CODE_SIZE = 2,
114
+ /** LITE_RUNTIME - Generate code using MessageLite and the lite runtime. */
115
+ LITE_RUNTIME = 3,
116
+ UNRECOGNIZED = -1
117
+ }
118
+ /** Generated classes can be optimized for speed or code size. */
119
+ export declare enum FileOptions_OptimizeModeSDKType {
120
+ /**
121
+ * SPEED - Generate complete code for parsing, serialization,
122
+ * etc.
123
+ */
124
+ SPEED = 1,
125
+ /** CODE_SIZE - Use ReflectionOps to implement these methods. */
126
+ CODE_SIZE = 2,
127
+ /** LITE_RUNTIME - Generate code using MessageLite and the lite runtime. */
128
+ LITE_RUNTIME = 3,
129
+ UNRECOGNIZED = -1
130
+ }
131
+ export declare function fileOptions_OptimizeModeFromJSON(object: any): FileOptions_OptimizeMode;
132
+ export declare function fileOptions_OptimizeModeToJSON(object: FileOptions_OptimizeMode): string;
133
+ export declare enum FieldOptions_CType {
134
+ /** STRING - Default mode. */
135
+ STRING = 0,
136
+ CORD = 1,
137
+ STRING_PIECE = 2,
138
+ UNRECOGNIZED = -1
139
+ }
140
+ export declare enum FieldOptions_CTypeSDKType {
141
+ /** STRING - Default mode. */
142
+ STRING = 0,
143
+ CORD = 1,
144
+ STRING_PIECE = 2,
145
+ UNRECOGNIZED = -1
146
+ }
147
+ export declare function fieldOptions_CTypeFromJSON(object: any): FieldOptions_CType;
148
+ export declare function fieldOptions_CTypeToJSON(object: FieldOptions_CType): string;
149
+ export declare enum FieldOptions_JSType {
150
+ /** JS_NORMAL - Use the default type. */
151
+ JS_NORMAL = 0,
152
+ /** JS_STRING - Use JavaScript strings. */
153
+ JS_STRING = 1,
154
+ /** JS_NUMBER - Use JavaScript numbers. */
155
+ JS_NUMBER = 2,
156
+ UNRECOGNIZED = -1
157
+ }
158
+ export declare enum FieldOptions_JSTypeSDKType {
159
+ /** JS_NORMAL - Use the default type. */
160
+ JS_NORMAL = 0,
161
+ /** JS_STRING - Use JavaScript strings. */
162
+ JS_STRING = 1,
163
+ /** JS_NUMBER - Use JavaScript numbers. */
164
+ JS_NUMBER = 2,
165
+ UNRECOGNIZED = -1
166
+ }
167
+ export declare function fieldOptions_JSTypeFromJSON(object: any): FieldOptions_JSType;
168
+ export declare function fieldOptions_JSTypeToJSON(object: FieldOptions_JSType): string;
169
+ /**
170
+ * Is this method side-effect-free (or safe in HTTP parlance), or idempotent,
171
+ * or neither? HTTP based RPC implementation may choose GET verb for safe
172
+ * methods, and PUT verb for idempotent methods instead of the default POST.
173
+ */
174
+ export declare enum MethodOptions_IdempotencyLevel {
175
+ IDEMPOTENCY_UNKNOWN = 0,
176
+ /** NO_SIDE_EFFECTS - implies idempotent */
177
+ NO_SIDE_EFFECTS = 1,
178
+ /** IDEMPOTENT - idempotent, but may have side effects */
179
+ IDEMPOTENT = 2,
180
+ UNRECOGNIZED = -1
181
+ }
182
+ /**
183
+ * Is this method side-effect-free (or safe in HTTP parlance), or idempotent,
184
+ * or neither? HTTP based RPC implementation may choose GET verb for safe
185
+ * methods, and PUT verb for idempotent methods instead of the default POST.
186
+ */
187
+ export declare enum MethodOptions_IdempotencyLevelSDKType {
188
+ IDEMPOTENCY_UNKNOWN = 0,
189
+ /** NO_SIDE_EFFECTS - implies idempotent */
190
+ NO_SIDE_EFFECTS = 1,
191
+ /** IDEMPOTENT - idempotent, but may have side effects */
192
+ IDEMPOTENT = 2,
193
+ UNRECOGNIZED = -1
194
+ }
195
+ export declare function methodOptions_IdempotencyLevelFromJSON(object: any): MethodOptions_IdempotencyLevel;
196
+ export declare function methodOptions_IdempotencyLevelToJSON(object: MethodOptions_IdempotencyLevel): string;
197
+ /**
198
+ * The protocol compiler can output a FileDescriptorSet containing the .proto
199
+ * files it parses.
200
+ */
201
+ export interface FileDescriptorSet {
202
+ /**
203
+ * The protocol compiler can output a FileDescriptorSet containing the .proto
204
+ * files it parses.
205
+ */
206
+ file: FileDescriptorProto[];
207
+ }
208
+ /**
209
+ * The protocol compiler can output a FileDescriptorSet containing the .proto
210
+ * files it parses.
211
+ */
212
+ export interface FileDescriptorSetSDKType {
213
+ /**
214
+ * The protocol compiler can output a FileDescriptorSet containing the .proto
215
+ * files it parses.
216
+ */
217
+ file: FileDescriptorProtoSDKType[];
218
+ }
219
+ /** Describes a complete .proto file. */
220
+ export interface FileDescriptorProto {
221
+ /** file name, relative to root of source tree */
222
+ name: string;
223
+ package: string;
224
+ /** Names of files imported by this file. */
225
+ dependency: string[];
226
+ /** Indexes of the public imported files in the dependency list above. */
227
+ publicDependency: number[];
228
+ /**
229
+ * Indexes of the weak imported files in the dependency list.
230
+ * For Google-internal migration only. Do not use.
231
+ */
232
+ weakDependency: number[];
233
+ /** All top-level definitions in this file. */
234
+ messageType: DescriptorProto[];
235
+ enumType: EnumDescriptorProto[];
236
+ service: ServiceDescriptorProto[];
237
+ extension: FieldDescriptorProto[];
238
+ options?: FileOptions;
239
+ /**
240
+ * This field contains optional information about the original source code.
241
+ * You may safely remove this entire field without harming runtime
242
+ * functionality of the descriptors -- the information is needed only by
243
+ * development tools.
244
+ */
245
+ sourceCodeInfo?: SourceCodeInfo;
246
+ /**
247
+ * The syntax of the proto file.
248
+ * The supported values are "proto2" and "proto3".
249
+ */
250
+ syntax: string;
251
+ }
252
+ /** Describes a complete .proto file. */
253
+ export interface FileDescriptorProtoSDKType {
254
+ /** file name, relative to root of source tree */
255
+ name: string;
256
+ package: string;
257
+ /** Names of files imported by this file. */
258
+ dependency: string[];
259
+ /** Indexes of the public imported files in the dependency list above. */
260
+ public_dependency: number[];
261
+ /**
262
+ * Indexes of the weak imported files in the dependency list.
263
+ * For Google-internal migration only. Do not use.
264
+ */
265
+ weak_dependency: number[];
266
+ /** All top-level definitions in this file. */
267
+ message_type: DescriptorProtoSDKType[];
268
+ enum_type: EnumDescriptorProtoSDKType[];
269
+ service: ServiceDescriptorProtoSDKType[];
270
+ extension: FieldDescriptorProtoSDKType[];
271
+ options?: FileOptionsSDKType;
272
+ /**
273
+ * This field contains optional information about the original source code.
274
+ * You may safely remove this entire field without harming runtime
275
+ * functionality of the descriptors -- the information is needed only by
276
+ * development tools.
277
+ */
278
+ source_code_info?: SourceCodeInfoSDKType;
279
+ /**
280
+ * The syntax of the proto file.
281
+ * The supported values are "proto2" and "proto3".
282
+ */
283
+ syntax: string;
284
+ }
285
+ /** Describes a message type. */
286
+ export interface DescriptorProto {
287
+ name: string;
288
+ field: FieldDescriptorProto[];
289
+ extension: FieldDescriptorProto[];
290
+ nestedType: DescriptorProto[];
291
+ enumType: EnumDescriptorProto[];
292
+ extensionRange: DescriptorProto_ExtensionRange[];
293
+ oneofDecl: OneofDescriptorProto[];
294
+ options?: MessageOptions;
295
+ reservedRange: DescriptorProto_ReservedRange[];
296
+ /**
297
+ * Reserved field names, which may not be used by fields in the same message.
298
+ * A given name may only be reserved once.
299
+ */
300
+ reservedName: string[];
301
+ }
302
+ /** Describes a message type. */
303
+ export interface DescriptorProtoSDKType {
304
+ name: string;
305
+ field: FieldDescriptorProtoSDKType[];
306
+ extension: FieldDescriptorProtoSDKType[];
307
+ nested_type: DescriptorProtoSDKType[];
308
+ enum_type: EnumDescriptorProtoSDKType[];
309
+ extension_range: DescriptorProto_ExtensionRangeSDKType[];
310
+ oneof_decl: OneofDescriptorProtoSDKType[];
311
+ options?: MessageOptionsSDKType;
312
+ reserved_range: DescriptorProto_ReservedRangeSDKType[];
313
+ /**
314
+ * Reserved field names, which may not be used by fields in the same message.
315
+ * A given name may only be reserved once.
316
+ */
317
+ reserved_name: string[];
318
+ }
319
+ export interface DescriptorProto_ExtensionRange {
320
+ /** Inclusive. */
321
+ start: number;
322
+ /** Exclusive. */
323
+ end: number;
324
+ options?: ExtensionRangeOptions;
325
+ }
326
+ export interface DescriptorProto_ExtensionRangeSDKType {
327
+ /** Inclusive. */
328
+ start: number;
329
+ /** Exclusive. */
330
+ end: number;
331
+ options?: ExtensionRangeOptionsSDKType;
332
+ }
333
+ /**
334
+ * Range of reserved tag numbers. Reserved tag numbers may not be used by
335
+ * fields or extension ranges in the same message. Reserved ranges may
336
+ * not overlap.
337
+ */
338
+ export interface DescriptorProto_ReservedRange {
339
+ /** Inclusive. */
340
+ start: number;
341
+ /** Exclusive. */
342
+ end: number;
343
+ }
344
+ /**
345
+ * Range of reserved tag numbers. Reserved tag numbers may not be used by
346
+ * fields or extension ranges in the same message. Reserved ranges may
347
+ * not overlap.
348
+ */
349
+ export interface DescriptorProto_ReservedRangeSDKType {
350
+ /** Inclusive. */
351
+ start: number;
352
+ /** Exclusive. */
353
+ end: number;
354
+ }
355
+ export interface ExtensionRangeOptions {
356
+ /** The parser stores options it doesn't recognize here. See above. */
357
+ uninterpretedOption: UninterpretedOption[];
358
+ }
359
+ export interface ExtensionRangeOptionsSDKType {
360
+ /** The parser stores options it doesn't recognize here. See above. */
361
+ uninterpreted_option: UninterpretedOptionSDKType[];
362
+ }
363
+ /** Describes a field within a message. */
364
+ export interface FieldDescriptorProto {
365
+ name: string;
366
+ number: number;
367
+ label: FieldDescriptorProto_Label;
368
+ /**
369
+ * If type_name is set, this need not be set. If both this and type_name
370
+ * are set, this must be one of TYPE_ENUM, TYPE_MESSAGE or TYPE_GROUP.
371
+ */
372
+ type: FieldDescriptorProto_Type;
373
+ /**
374
+ * For message and enum types, this is the name of the type. If the name
375
+ * starts with a '.', it is fully-qualified. Otherwise, C++-like scoping
376
+ * rules are used to find the type (i.e. first the nested types within this
377
+ * message are searched, then within the parent, on up to the root
378
+ * namespace).
379
+ */
380
+ typeName: string;
381
+ /**
382
+ * For extensions, this is the name of the type being extended. It is
383
+ * resolved in the same manner as type_name.
384
+ */
385
+ extendee: string;
386
+ /**
387
+ * For numeric types, contains the original text representation of the value.
388
+ * For booleans, "true" or "false".
389
+ * For strings, contains the default text contents (not escaped in any way).
390
+ * For bytes, contains the C escaped value. All bytes >= 128 are escaped.
391
+ * TODO(kenton): Base-64 encode?
392
+ */
393
+ defaultValue: string;
394
+ /**
395
+ * If set, gives the index of a oneof in the containing type's oneof_decl
396
+ * list. This field is a member of that oneof.
397
+ */
398
+ oneofIndex: number;
399
+ /**
400
+ * JSON name of this field. The value is set by protocol compiler. If the
401
+ * user has set a "json_name" option on this field, that option's value
402
+ * will be used. Otherwise, it's deduced from the field's name by converting
403
+ * it to camelCase.
404
+ */
405
+ jsonName: string;
406
+ options?: FieldOptions;
407
+ /**
408
+ * If true, this is a proto3 "optional". When a proto3 field is optional, it
409
+ * tracks presence regardless of field type.
410
+ *
411
+ * When proto3_optional is true, this field must be belong to a oneof to
412
+ * signal to old proto3 clients that presence is tracked for this field. This
413
+ * oneof is known as a "synthetic" oneof, and this field must be its sole
414
+ * member (each proto3 optional field gets its own synthetic oneof). Synthetic
415
+ * oneofs exist in the descriptor only, and do not generate any API. Synthetic
416
+ * oneofs must be ordered after all "real" oneofs.
417
+ *
418
+ * For message fields, proto3_optional doesn't create any semantic change,
419
+ * since non-repeated message fields always track presence. However it still
420
+ * indicates the semantic detail of whether the user wrote "optional" or not.
421
+ * This can be useful for round-tripping the .proto file. For consistency we
422
+ * give message fields a synthetic oneof also, even though it is not required
423
+ * to track presence. This is especially important because the parser can't
424
+ * tell if a field is a message or an enum, so it must always create a
425
+ * synthetic oneof.
426
+ *
427
+ * Proto2 optional fields do not set this flag, because they already indicate
428
+ * optional with `LABEL_OPTIONAL`.
429
+ */
430
+ proto3Optional: boolean;
431
+ }
432
+ /** Describes a field within a message. */
433
+ export interface FieldDescriptorProtoSDKType {
434
+ name: string;
435
+ number: number;
436
+ label: FieldDescriptorProto_LabelSDKType;
437
+ /**
438
+ * If type_name is set, this need not be set. If both this and type_name
439
+ * are set, this must be one of TYPE_ENUM, TYPE_MESSAGE or TYPE_GROUP.
440
+ */
441
+ type: FieldDescriptorProto_TypeSDKType;
442
+ /**
443
+ * For message and enum types, this is the name of the type. If the name
444
+ * starts with a '.', it is fully-qualified. Otherwise, C++-like scoping
445
+ * rules are used to find the type (i.e. first the nested types within this
446
+ * message are searched, then within the parent, on up to the root
447
+ * namespace).
448
+ */
449
+ type_name: string;
450
+ /**
451
+ * For extensions, this is the name of the type being extended. It is
452
+ * resolved in the same manner as type_name.
453
+ */
454
+ extendee: string;
455
+ /**
456
+ * For numeric types, contains the original text representation of the value.
457
+ * For booleans, "true" or "false".
458
+ * For strings, contains the default text contents (not escaped in any way).
459
+ * For bytes, contains the C escaped value. All bytes >= 128 are escaped.
460
+ * TODO(kenton): Base-64 encode?
461
+ */
462
+ default_value: string;
463
+ /**
464
+ * If set, gives the index of a oneof in the containing type's oneof_decl
465
+ * list. This field is a member of that oneof.
466
+ */
467
+ oneof_index: number;
468
+ /**
469
+ * JSON name of this field. The value is set by protocol compiler. If the
470
+ * user has set a "json_name" option on this field, that option's value
471
+ * will be used. Otherwise, it's deduced from the field's name by converting
472
+ * it to camelCase.
473
+ */
474
+ json_name: string;
475
+ options?: FieldOptionsSDKType;
476
+ /**
477
+ * If true, this is a proto3 "optional". When a proto3 field is optional, it
478
+ * tracks presence regardless of field type.
479
+ *
480
+ * When proto3_optional is true, this field must be belong to a oneof to
481
+ * signal to old proto3 clients that presence is tracked for this field. This
482
+ * oneof is known as a "synthetic" oneof, and this field must be its sole
483
+ * member (each proto3 optional field gets its own synthetic oneof). Synthetic
484
+ * oneofs exist in the descriptor only, and do not generate any API. Synthetic
485
+ * oneofs must be ordered after all "real" oneofs.
486
+ *
487
+ * For message fields, proto3_optional doesn't create any semantic change,
488
+ * since non-repeated message fields always track presence. However it still
489
+ * indicates the semantic detail of whether the user wrote "optional" or not.
490
+ * This can be useful for round-tripping the .proto file. For consistency we
491
+ * give message fields a synthetic oneof also, even though it is not required
492
+ * to track presence. This is especially important because the parser can't
493
+ * tell if a field is a message or an enum, so it must always create a
494
+ * synthetic oneof.
495
+ *
496
+ * Proto2 optional fields do not set this flag, because they already indicate
497
+ * optional with `LABEL_OPTIONAL`.
498
+ */
499
+ proto3_optional: boolean;
500
+ }
501
+ /** Describes a oneof. */
502
+ export interface OneofDescriptorProto {
503
+ name: string;
504
+ options?: OneofOptions;
505
+ }
506
+ /** Describes a oneof. */
507
+ export interface OneofDescriptorProtoSDKType {
508
+ name: string;
509
+ options?: OneofOptionsSDKType;
510
+ }
511
+ /** Describes an enum type. */
512
+ export interface EnumDescriptorProto {
513
+ name: string;
514
+ value: EnumValueDescriptorProto[];
515
+ options?: EnumOptions;
516
+ /**
517
+ * Range of reserved numeric values. Reserved numeric values may not be used
518
+ * by enum values in the same enum declaration. Reserved ranges may not
519
+ * overlap.
520
+ */
521
+ reservedRange: EnumDescriptorProto_EnumReservedRange[];
522
+ /**
523
+ * Reserved enum value names, which may not be reused. A given name may only
524
+ * be reserved once.
525
+ */
526
+ reservedName: string[];
527
+ }
528
+ /** Describes an enum type. */
529
+ export interface EnumDescriptorProtoSDKType {
530
+ name: string;
531
+ value: EnumValueDescriptorProtoSDKType[];
532
+ options?: EnumOptionsSDKType;
533
+ /**
534
+ * Range of reserved numeric values. Reserved numeric values may not be used
535
+ * by enum values in the same enum declaration. Reserved ranges may not
536
+ * overlap.
537
+ */
538
+ reserved_range: EnumDescriptorProto_EnumReservedRangeSDKType[];
539
+ /**
540
+ * Reserved enum value names, which may not be reused. A given name may only
541
+ * be reserved once.
542
+ */
543
+ reserved_name: string[];
544
+ }
545
+ /**
546
+ * Range of reserved numeric values. Reserved values may not be used by
547
+ * entries in the same enum. Reserved ranges may not overlap.
548
+ *
549
+ * Note that this is distinct from DescriptorProto.ReservedRange in that it
550
+ * is inclusive such that it can appropriately represent the entire int32
551
+ * domain.
552
+ */
553
+ export interface EnumDescriptorProto_EnumReservedRange {
554
+ /** Inclusive. */
555
+ start: number;
556
+ /** Inclusive. */
557
+ end: number;
558
+ }
559
+ /**
560
+ * Range of reserved numeric values. Reserved values may not be used by
561
+ * entries in the same enum. Reserved ranges may not overlap.
562
+ *
563
+ * Note that this is distinct from DescriptorProto.ReservedRange in that it
564
+ * is inclusive such that it can appropriately represent the entire int32
565
+ * domain.
566
+ */
567
+ export interface EnumDescriptorProto_EnumReservedRangeSDKType {
568
+ /** Inclusive. */
569
+ start: number;
570
+ /** Inclusive. */
571
+ end: number;
572
+ }
573
+ /** Describes a value within an enum. */
574
+ export interface EnumValueDescriptorProto {
575
+ name: string;
576
+ number: number;
577
+ options?: EnumValueOptions;
578
+ }
579
+ /** Describes a value within an enum. */
580
+ export interface EnumValueDescriptorProtoSDKType {
581
+ name: string;
582
+ number: number;
583
+ options?: EnumValueOptionsSDKType;
584
+ }
585
+ /** Describes a service. */
586
+ export interface ServiceDescriptorProto {
587
+ name: string;
588
+ method: MethodDescriptorProto[];
589
+ options?: ServiceOptions;
590
+ }
591
+ /** Describes a service. */
592
+ export interface ServiceDescriptorProtoSDKType {
593
+ name: string;
594
+ method: MethodDescriptorProtoSDKType[];
595
+ options?: ServiceOptionsSDKType;
596
+ }
597
+ /** Describes a method of a service. */
598
+ export interface MethodDescriptorProto {
599
+ name: string;
600
+ /**
601
+ * Input and output type names. These are resolved in the same way as
602
+ * FieldDescriptorProto.type_name, but must refer to a message type.
603
+ */
604
+ inputType: string;
605
+ outputType: string;
606
+ options?: MethodOptions;
607
+ /** Identifies if client streams multiple client messages */
608
+ clientStreaming: boolean;
609
+ /** Identifies if server streams multiple server messages */
610
+ serverStreaming: boolean;
611
+ }
612
+ /** Describes a method of a service. */
613
+ export interface MethodDescriptorProtoSDKType {
614
+ name: string;
615
+ /**
616
+ * Input and output type names. These are resolved in the same way as
617
+ * FieldDescriptorProto.type_name, but must refer to a message type.
618
+ */
619
+ input_type: string;
620
+ output_type: string;
621
+ options?: MethodOptionsSDKType;
622
+ /** Identifies if client streams multiple client messages */
623
+ client_streaming: boolean;
624
+ /** Identifies if server streams multiple server messages */
625
+ server_streaming: boolean;
626
+ }
627
+ export interface FileOptions {
628
+ /**
629
+ * Sets the Java package where classes generated from this .proto will be
630
+ * placed. By default, the proto package is used, but this is often
631
+ * inappropriate because proto packages do not normally start with backwards
632
+ * domain names.
633
+ */
634
+ javaPackage: string;
635
+ /**
636
+ * If set, all the classes from the .proto file are wrapped in a single
637
+ * outer class with the given name. This applies to both Proto1
638
+ * (equivalent to the old "--one_java_file" option) and Proto2 (where
639
+ * a .proto always translates to a single class, but you may want to
640
+ * explicitly choose the class name).
641
+ */
642
+ javaOuterClassname: string;
643
+ /**
644
+ * If set true, then the Java code generator will generate a separate .java
645
+ * file for each top-level message, enum, and service defined in the .proto
646
+ * file. Thus, these types will *not* be nested inside the outer class
647
+ * named by java_outer_classname. However, the outer class will still be
648
+ * generated to contain the file's getDescriptor() method as well as any
649
+ * top-level extensions defined in the file.
650
+ */
651
+ javaMultipleFiles: boolean;
652
+ /** This option does nothing. */
653
+ /** @deprecated */
654
+ javaGenerateEqualsAndHash: boolean;
655
+ /**
656
+ * If set true, then the Java2 code generator will generate code that
657
+ * throws an exception whenever an attempt is made to assign a non-UTF-8
658
+ * byte sequence to a string field.
659
+ * Message reflection will do the same.
660
+ * However, an extension field still accepts non-UTF-8 byte sequences.
661
+ * This option has no effect on when used with the lite runtime.
662
+ */
663
+ javaStringCheckUtf8: boolean;
664
+ optimizeFor: FileOptions_OptimizeMode;
665
+ /**
666
+ * Sets the Go package where structs generated from this .proto will be
667
+ * placed. If omitted, the Go package will be derived from the following:
668
+ * - The basename of the package import path, if provided.
669
+ * - Otherwise, the package statement in the .proto file, if present.
670
+ * - Otherwise, the basename of the .proto file, without extension.
671
+ */
672
+ goPackage: string;
673
+ /**
674
+ * Should generic services be generated in each language? "Generic" services
675
+ * are not specific to any particular RPC system. They are generated by the
676
+ * main code generators in each language (without additional plugins).
677
+ * Generic services were the only kind of service generation supported by
678
+ * early versions of google.protobuf.
679
+ *
680
+ * Generic services are now considered deprecated in favor of using plugins
681
+ * that generate code specific to your particular RPC system. Therefore,
682
+ * these default to false. Old code which depends on generic services should
683
+ * explicitly set them to true.
684
+ */
685
+ ccGenericServices: boolean;
686
+ javaGenericServices: boolean;
687
+ pyGenericServices: boolean;
688
+ phpGenericServices: boolean;
689
+ /**
690
+ * Is this file deprecated?
691
+ * Depending on the target platform, this can emit Deprecated annotations
692
+ * for everything in the file, or it will be completely ignored; in the very
693
+ * least, this is a formalization for deprecating files.
694
+ */
695
+ deprecated: boolean;
696
+ /**
697
+ * Enables the use of arenas for the proto messages in this file. This applies
698
+ * only to generated classes for C++.
699
+ */
700
+ ccEnableArenas: boolean;
701
+ /**
702
+ * Sets the objective c class prefix which is prepended to all objective c
703
+ * generated classes from this .proto. There is no default.
704
+ */
705
+ objcClassPrefix: string;
706
+ /** Namespace for generated classes; defaults to the package. */
707
+ csharpNamespace: string;
708
+ /**
709
+ * By default Swift generators will take the proto package and CamelCase it
710
+ * replacing '.' with underscore and use that to prefix the types/symbols
711
+ * defined. When this options is provided, they will use this value instead
712
+ * to prefix the types/symbols defined.
713
+ */
714
+ swiftPrefix: string;
715
+ /**
716
+ * Sets the php class prefix which is prepended to all php generated classes
717
+ * from this .proto. Default is empty.
718
+ */
719
+ phpClassPrefix: string;
720
+ /**
721
+ * Use this option to change the namespace of php generated classes. Default
722
+ * is empty. When this option is empty, the package name will be used for
723
+ * determining the namespace.
724
+ */
725
+ phpNamespace: string;
726
+ /**
727
+ * Use this option to change the namespace of php generated metadata classes.
728
+ * Default is empty. When this option is empty, the proto file name will be
729
+ * used for determining the namespace.
730
+ */
731
+ phpMetadataNamespace: string;
732
+ /**
733
+ * Use this option to change the package of ruby generated classes. Default
734
+ * is empty. When this option is not set, the package name will be used for
735
+ * determining the ruby package.
736
+ */
737
+ rubyPackage: string;
738
+ /**
739
+ * The parser stores options it doesn't recognize here.
740
+ * See the documentation for the "Options" section above.
741
+ */
742
+ uninterpretedOption: UninterpretedOption[];
743
+ }
744
+ export interface FileOptionsSDKType {
745
+ /**
746
+ * Sets the Java package where classes generated from this .proto will be
747
+ * placed. By default, the proto package is used, but this is often
748
+ * inappropriate because proto packages do not normally start with backwards
749
+ * domain names.
750
+ */
751
+ java_package: string;
752
+ /**
753
+ * If set, all the classes from the .proto file are wrapped in a single
754
+ * outer class with the given name. This applies to both Proto1
755
+ * (equivalent to the old "--one_java_file" option) and Proto2 (where
756
+ * a .proto always translates to a single class, but you may want to
757
+ * explicitly choose the class name).
758
+ */
759
+ java_outer_classname: string;
760
+ /**
761
+ * If set true, then the Java code generator will generate a separate .java
762
+ * file for each top-level message, enum, and service defined in the .proto
763
+ * file. Thus, these types will *not* be nested inside the outer class
764
+ * named by java_outer_classname. However, the outer class will still be
765
+ * generated to contain the file's getDescriptor() method as well as any
766
+ * top-level extensions defined in the file.
767
+ */
768
+ java_multiple_files: boolean;
769
+ /** This option does nothing. */
770
+ /** @deprecated */
771
+ java_generate_equals_and_hash: boolean;
772
+ /**
773
+ * If set true, then the Java2 code generator will generate code that
774
+ * throws an exception whenever an attempt is made to assign a non-UTF-8
775
+ * byte sequence to a string field.
776
+ * Message reflection will do the same.
777
+ * However, an extension field still accepts non-UTF-8 byte sequences.
778
+ * This option has no effect on when used with the lite runtime.
779
+ */
780
+ java_string_check_utf8: boolean;
781
+ optimize_for: FileOptions_OptimizeModeSDKType;
782
+ /**
783
+ * Sets the Go package where structs generated from this .proto will be
784
+ * placed. If omitted, the Go package will be derived from the following:
785
+ * - The basename of the package import path, if provided.
786
+ * - Otherwise, the package statement in the .proto file, if present.
787
+ * - Otherwise, the basename of the .proto file, without extension.
788
+ */
789
+ go_package: string;
790
+ /**
791
+ * Should generic services be generated in each language? "Generic" services
792
+ * are not specific to any particular RPC system. They are generated by the
793
+ * main code generators in each language (without additional plugins).
794
+ * Generic services were the only kind of service generation supported by
795
+ * early versions of google.protobuf.
796
+ *
797
+ * Generic services are now considered deprecated in favor of using plugins
798
+ * that generate code specific to your particular RPC system. Therefore,
799
+ * these default to false. Old code which depends on generic services should
800
+ * explicitly set them to true.
801
+ */
802
+ cc_generic_services: boolean;
803
+ java_generic_services: boolean;
804
+ py_generic_services: boolean;
805
+ php_generic_services: boolean;
806
+ /**
807
+ * Is this file deprecated?
808
+ * Depending on the target platform, this can emit Deprecated annotations
809
+ * for everything in the file, or it will be completely ignored; in the very
810
+ * least, this is a formalization for deprecating files.
811
+ */
812
+ deprecated: boolean;
813
+ /**
814
+ * Enables the use of arenas for the proto messages in this file. This applies
815
+ * only to generated classes for C++.
816
+ */
817
+ cc_enable_arenas: boolean;
818
+ /**
819
+ * Sets the objective c class prefix which is prepended to all objective c
820
+ * generated classes from this .proto. There is no default.
821
+ */
822
+ objc_class_prefix: string;
823
+ /** Namespace for generated classes; defaults to the package. */
824
+ csharp_namespace: string;
825
+ /**
826
+ * By default Swift generators will take the proto package and CamelCase it
827
+ * replacing '.' with underscore and use that to prefix the types/symbols
828
+ * defined. When this options is provided, they will use this value instead
829
+ * to prefix the types/symbols defined.
830
+ */
831
+ swift_prefix: string;
832
+ /**
833
+ * Sets the php class prefix which is prepended to all php generated classes
834
+ * from this .proto. Default is empty.
835
+ */
836
+ php_class_prefix: string;
837
+ /**
838
+ * Use this option to change the namespace of php generated classes. Default
839
+ * is empty. When this option is empty, the package name will be used for
840
+ * determining the namespace.
841
+ */
842
+ php_namespace: string;
843
+ /**
844
+ * Use this option to change the namespace of php generated metadata classes.
845
+ * Default is empty. When this option is empty, the proto file name will be
846
+ * used for determining the namespace.
847
+ */
848
+ php_metadata_namespace: string;
849
+ /**
850
+ * Use this option to change the package of ruby generated classes. Default
851
+ * is empty. When this option is not set, the package name will be used for
852
+ * determining the ruby package.
853
+ */
854
+ ruby_package: string;
855
+ /**
856
+ * The parser stores options it doesn't recognize here.
857
+ * See the documentation for the "Options" section above.
858
+ */
859
+ uninterpreted_option: UninterpretedOptionSDKType[];
860
+ }
861
+ export interface MessageOptions {
862
+ /**
863
+ * Set true to use the old proto1 MessageSet wire format for extensions.
864
+ * This is provided for backwards-compatibility with the MessageSet wire
865
+ * format. You should not use this for any other reason: It's less
866
+ * efficient, has fewer features, and is more complicated.
867
+ *
868
+ * The message must be defined exactly as follows:
869
+ * message Foo {
870
+ * option message_set_wire_format = true;
871
+ * extensions 4 to max;
872
+ * }
873
+ * Note that the message cannot have any defined fields; MessageSets only
874
+ * have extensions.
875
+ *
876
+ * All extensions of your type must be singular messages; e.g. they cannot
877
+ * be int32s, enums, or repeated messages.
878
+ *
879
+ * Because this is an option, the above two restrictions are not enforced by
880
+ * the protocol compiler.
881
+ */
882
+ messageSetWireFormat: boolean;
883
+ /**
884
+ * Disables the generation of the standard "descriptor()" accessor, which can
885
+ * conflict with a field of the same name. This is meant to make migration
886
+ * from proto1 easier; new code should avoid fields named "descriptor".
887
+ */
888
+ noStandardDescriptorAccessor: boolean;
889
+ /**
890
+ * Is this message deprecated?
891
+ * Depending on the target platform, this can emit Deprecated annotations
892
+ * for the message, or it will be completely ignored; in the very least,
893
+ * this is a formalization for deprecating messages.
894
+ */
895
+ deprecated: boolean;
896
+ /**
897
+ * Whether the message is an automatically generated map entry type for the
898
+ * maps field.
899
+ *
900
+ * For maps fields:
901
+ * map<KeyType, ValueType> map_field = 1;
902
+ * The parsed descriptor looks like:
903
+ * message MapFieldEntry {
904
+ * option map_entry = true;
905
+ * optional KeyType key = 1;
906
+ * optional ValueType value = 2;
907
+ * }
908
+ * repeated MapFieldEntry map_field = 1;
909
+ *
910
+ * Implementations may choose not to generate the map_entry=true message, but
911
+ * use a native map in the target language to hold the keys and values.
912
+ * The reflection APIs in such implementations still need to work as
913
+ * if the field is a repeated message field.
914
+ *
915
+ * NOTE: Do not set the option in .proto files. Always use the maps syntax
916
+ * instead. The option should only be implicitly set by the proto compiler
917
+ * parser.
918
+ */
919
+ mapEntry: boolean;
920
+ /** The parser stores options it doesn't recognize here. See above. */
921
+ uninterpretedOption: UninterpretedOption[];
922
+ }
923
+ export interface MessageOptionsSDKType {
924
+ /**
925
+ * Set true to use the old proto1 MessageSet wire format for extensions.
926
+ * This is provided for backwards-compatibility with the MessageSet wire
927
+ * format. You should not use this for any other reason: It's less
928
+ * efficient, has fewer features, and is more complicated.
929
+ *
930
+ * The message must be defined exactly as follows:
931
+ * message Foo {
932
+ * option message_set_wire_format = true;
933
+ * extensions 4 to max;
934
+ * }
935
+ * Note that the message cannot have any defined fields; MessageSets only
936
+ * have extensions.
937
+ *
938
+ * All extensions of your type must be singular messages; e.g. they cannot
939
+ * be int32s, enums, or repeated messages.
940
+ *
941
+ * Because this is an option, the above two restrictions are not enforced by
942
+ * the protocol compiler.
943
+ */
944
+ message_set_wire_format: boolean;
945
+ /**
946
+ * Disables the generation of the standard "descriptor()" accessor, which can
947
+ * conflict with a field of the same name. This is meant to make migration
948
+ * from proto1 easier; new code should avoid fields named "descriptor".
949
+ */
950
+ no_standard_descriptor_accessor: boolean;
951
+ /**
952
+ * Is this message deprecated?
953
+ * Depending on the target platform, this can emit Deprecated annotations
954
+ * for the message, or it will be completely ignored; in the very least,
955
+ * this is a formalization for deprecating messages.
956
+ */
957
+ deprecated: boolean;
958
+ /**
959
+ * Whether the message is an automatically generated map entry type for the
960
+ * maps field.
961
+ *
962
+ * For maps fields:
963
+ * map<KeyType, ValueType> map_field = 1;
964
+ * The parsed descriptor looks like:
965
+ * message MapFieldEntry {
966
+ * option map_entry = true;
967
+ * optional KeyType key = 1;
968
+ * optional ValueType value = 2;
969
+ * }
970
+ * repeated MapFieldEntry map_field = 1;
971
+ *
972
+ * Implementations may choose not to generate the map_entry=true message, but
973
+ * use a native map in the target language to hold the keys and values.
974
+ * The reflection APIs in such implementations still need to work as
975
+ * if the field is a repeated message field.
976
+ *
977
+ * NOTE: Do not set the option in .proto files. Always use the maps syntax
978
+ * instead. The option should only be implicitly set by the proto compiler
979
+ * parser.
980
+ */
981
+ map_entry: boolean;
982
+ /** The parser stores options it doesn't recognize here. See above. */
983
+ uninterpreted_option: UninterpretedOptionSDKType[];
984
+ }
985
+ export interface FieldOptions {
986
+ /**
987
+ * The ctype option instructs the C++ code generator to use a different
988
+ * representation of the field than it normally would. See the specific
989
+ * options below. This option is not yet implemented in the open source
990
+ * release -- sorry, we'll try to include it in a future version!
991
+ */
992
+ ctype: FieldOptions_CType;
993
+ /**
994
+ * The packed option can be enabled for repeated primitive fields to enable
995
+ * a more efficient representation on the wire. Rather than repeatedly
996
+ * writing the tag and type for each element, the entire array is encoded as
997
+ * a single length-delimited blob. In proto3, only explicit setting it to
998
+ * false will avoid using packed encoding.
999
+ */
1000
+ packed: boolean;
1001
+ /**
1002
+ * The jstype option determines the JavaScript type used for values of the
1003
+ * field. The option is permitted only for 64 bit integral and fixed types
1004
+ * (int64, uint64, sint64, fixed64, sfixed64). A field with jstype JS_STRING
1005
+ * is represented as JavaScript string, which avoids loss of precision that
1006
+ * can happen when a large value is converted to a floating point JavaScript.
1007
+ * Specifying JS_NUMBER for the jstype causes the generated JavaScript code to
1008
+ * use the JavaScript "number" type. The behavior of the default option
1009
+ * JS_NORMAL is implementation dependent.
1010
+ *
1011
+ * This option is an enum to permit additional types to be added, e.g.
1012
+ * goog.math.Integer.
1013
+ */
1014
+ jstype: FieldOptions_JSType;
1015
+ /**
1016
+ * Should this field be parsed lazily? Lazy applies only to message-type
1017
+ * fields. It means that when the outer message is initially parsed, the
1018
+ * inner message's contents will not be parsed but instead stored in encoded
1019
+ * form. The inner message will actually be parsed when it is first accessed.
1020
+ *
1021
+ * This is only a hint. Implementations are free to choose whether to use
1022
+ * eager or lazy parsing regardless of the value of this option. However,
1023
+ * setting this option true suggests that the protocol author believes that
1024
+ * using lazy parsing on this field is worth the additional bookkeeping
1025
+ * overhead typically needed to implement it.
1026
+ *
1027
+ * This option does not affect the public interface of any generated code;
1028
+ * all method signatures remain the same. Furthermore, thread-safety of the
1029
+ * interface is not affected by this option; const methods remain safe to
1030
+ * call from multiple threads concurrently, while non-const methods continue
1031
+ * to require exclusive access.
1032
+ *
1033
+ *
1034
+ * Note that implementations may choose not to check required fields within
1035
+ * a lazy sub-message. That is, calling IsInitialized() on the outer message
1036
+ * may return true even if the inner message has missing required fields.
1037
+ * This is necessary because otherwise the inner message would have to be
1038
+ * parsed in order to perform the check, defeating the purpose of lazy
1039
+ * parsing. An implementation which chooses not to check required fields
1040
+ * must be consistent about it. That is, for any particular sub-message, the
1041
+ * implementation must either *always* check its required fields, or *never*
1042
+ * check its required fields, regardless of whether or not the message has
1043
+ * been parsed.
1044
+ */
1045
+ lazy: boolean;
1046
+ /**
1047
+ * Is this field deprecated?
1048
+ * Depending on the target platform, this can emit Deprecated annotations
1049
+ * for accessors, or it will be completely ignored; in the very least, this
1050
+ * is a formalization for deprecating fields.
1051
+ */
1052
+ deprecated: boolean;
1053
+ /** For Google-internal migration only. Do not use. */
1054
+ weak: boolean;
1055
+ /** The parser stores options it doesn't recognize here. See above. */
1056
+ uninterpretedOption: UninterpretedOption[];
1057
+ }
1058
+ export interface FieldOptionsSDKType {
1059
+ /**
1060
+ * The ctype option instructs the C++ code generator to use a different
1061
+ * representation of the field than it normally would. See the specific
1062
+ * options below. This option is not yet implemented in the open source
1063
+ * release -- sorry, we'll try to include it in a future version!
1064
+ */
1065
+ ctype: FieldOptions_CTypeSDKType;
1066
+ /**
1067
+ * The packed option can be enabled for repeated primitive fields to enable
1068
+ * a more efficient representation on the wire. Rather than repeatedly
1069
+ * writing the tag and type for each element, the entire array is encoded as
1070
+ * a single length-delimited blob. In proto3, only explicit setting it to
1071
+ * false will avoid using packed encoding.
1072
+ */
1073
+ packed: boolean;
1074
+ /**
1075
+ * The jstype option determines the JavaScript type used for values of the
1076
+ * field. The option is permitted only for 64 bit integral and fixed types
1077
+ * (int64, uint64, sint64, fixed64, sfixed64). A field with jstype JS_STRING
1078
+ * is represented as JavaScript string, which avoids loss of precision that
1079
+ * can happen when a large value is converted to a floating point JavaScript.
1080
+ * Specifying JS_NUMBER for the jstype causes the generated JavaScript code to
1081
+ * use the JavaScript "number" type. The behavior of the default option
1082
+ * JS_NORMAL is implementation dependent.
1083
+ *
1084
+ * This option is an enum to permit additional types to be added, e.g.
1085
+ * goog.math.Integer.
1086
+ */
1087
+ jstype: FieldOptions_JSTypeSDKType;
1088
+ /**
1089
+ * Should this field be parsed lazily? Lazy applies only to message-type
1090
+ * fields. It means that when the outer message is initially parsed, the
1091
+ * inner message's contents will not be parsed but instead stored in encoded
1092
+ * form. The inner message will actually be parsed when it is first accessed.
1093
+ *
1094
+ * This is only a hint. Implementations are free to choose whether to use
1095
+ * eager or lazy parsing regardless of the value of this option. However,
1096
+ * setting this option true suggests that the protocol author believes that
1097
+ * using lazy parsing on this field is worth the additional bookkeeping
1098
+ * overhead typically needed to implement it.
1099
+ *
1100
+ * This option does not affect the public interface of any generated code;
1101
+ * all method signatures remain the same. Furthermore, thread-safety of the
1102
+ * interface is not affected by this option; const methods remain safe to
1103
+ * call from multiple threads concurrently, while non-const methods continue
1104
+ * to require exclusive access.
1105
+ *
1106
+ *
1107
+ * Note that implementations may choose not to check required fields within
1108
+ * a lazy sub-message. That is, calling IsInitialized() on the outer message
1109
+ * may return true even if the inner message has missing required fields.
1110
+ * This is necessary because otherwise the inner message would have to be
1111
+ * parsed in order to perform the check, defeating the purpose of lazy
1112
+ * parsing. An implementation which chooses not to check required fields
1113
+ * must be consistent about it. That is, for any particular sub-message, the
1114
+ * implementation must either *always* check its required fields, or *never*
1115
+ * check its required fields, regardless of whether or not the message has
1116
+ * been parsed.
1117
+ */
1118
+ lazy: boolean;
1119
+ /**
1120
+ * Is this field deprecated?
1121
+ * Depending on the target platform, this can emit Deprecated annotations
1122
+ * for accessors, or it will be completely ignored; in the very least, this
1123
+ * is a formalization for deprecating fields.
1124
+ */
1125
+ deprecated: boolean;
1126
+ /** For Google-internal migration only. Do not use. */
1127
+ weak: boolean;
1128
+ /** The parser stores options it doesn't recognize here. See above. */
1129
+ uninterpreted_option: UninterpretedOptionSDKType[];
1130
+ }
1131
+ export interface OneofOptions {
1132
+ /** The parser stores options it doesn't recognize here. See above. */
1133
+ uninterpretedOption: UninterpretedOption[];
1134
+ }
1135
+ export interface OneofOptionsSDKType {
1136
+ /** The parser stores options it doesn't recognize here. See above. */
1137
+ uninterpreted_option: UninterpretedOptionSDKType[];
1138
+ }
1139
+ export interface EnumOptions {
1140
+ /**
1141
+ * Set this option to true to allow mapping different tag names to the same
1142
+ * value.
1143
+ */
1144
+ allowAlias: boolean;
1145
+ /**
1146
+ * Is this enum deprecated?
1147
+ * Depending on the target platform, this can emit Deprecated annotations
1148
+ * for the enum, or it will be completely ignored; in the very least, this
1149
+ * is a formalization for deprecating enums.
1150
+ */
1151
+ deprecated: boolean;
1152
+ /** The parser stores options it doesn't recognize here. See above. */
1153
+ uninterpretedOption: UninterpretedOption[];
1154
+ }
1155
+ export interface EnumOptionsSDKType {
1156
+ /**
1157
+ * Set this option to true to allow mapping different tag names to the same
1158
+ * value.
1159
+ */
1160
+ allow_alias: boolean;
1161
+ /**
1162
+ * Is this enum deprecated?
1163
+ * Depending on the target platform, this can emit Deprecated annotations
1164
+ * for the enum, or it will be completely ignored; in the very least, this
1165
+ * is a formalization for deprecating enums.
1166
+ */
1167
+ deprecated: boolean;
1168
+ /** The parser stores options it doesn't recognize here. See above. */
1169
+ uninterpreted_option: UninterpretedOptionSDKType[];
1170
+ }
1171
+ export interface EnumValueOptions {
1172
+ /**
1173
+ * Is this enum value deprecated?
1174
+ * Depending on the target platform, this can emit Deprecated annotations
1175
+ * for the enum value, or it will be completely ignored; in the very least,
1176
+ * this is a formalization for deprecating enum values.
1177
+ */
1178
+ deprecated: boolean;
1179
+ /** The parser stores options it doesn't recognize here. See above. */
1180
+ uninterpretedOption: UninterpretedOption[];
1181
+ }
1182
+ export interface EnumValueOptionsSDKType {
1183
+ /**
1184
+ * Is this enum value deprecated?
1185
+ * Depending on the target platform, this can emit Deprecated annotations
1186
+ * for the enum value, or it will be completely ignored; in the very least,
1187
+ * this is a formalization for deprecating enum values.
1188
+ */
1189
+ deprecated: boolean;
1190
+ /** The parser stores options it doesn't recognize here. See above. */
1191
+ uninterpreted_option: UninterpretedOptionSDKType[];
1192
+ }
1193
+ export interface ServiceOptions {
1194
+ /**
1195
+ * Is this service deprecated?
1196
+ * Depending on the target platform, this can emit Deprecated annotations
1197
+ * for the service, or it will be completely ignored; in the very least,
1198
+ * this is a formalization for deprecating services.
1199
+ */
1200
+ deprecated: boolean;
1201
+ /** The parser stores options it doesn't recognize here. See above. */
1202
+ uninterpretedOption: UninterpretedOption[];
1203
+ }
1204
+ export interface ServiceOptionsSDKType {
1205
+ /**
1206
+ * Is this service deprecated?
1207
+ * Depending on the target platform, this can emit Deprecated annotations
1208
+ * for the service, or it will be completely ignored; in the very least,
1209
+ * this is a formalization for deprecating services.
1210
+ */
1211
+ deprecated: boolean;
1212
+ /** The parser stores options it doesn't recognize here. See above. */
1213
+ uninterpreted_option: UninterpretedOptionSDKType[];
1214
+ }
1215
+ export interface MethodOptions {
1216
+ /**
1217
+ * Is this method deprecated?
1218
+ * Depending on the target platform, this can emit Deprecated annotations
1219
+ * for the method, or it will be completely ignored; in the very least,
1220
+ * this is a formalization for deprecating methods.
1221
+ */
1222
+ deprecated: boolean;
1223
+ idempotencyLevel: MethodOptions_IdempotencyLevel;
1224
+ /** The parser stores options it doesn't recognize here. See above. */
1225
+ uninterpretedOption: UninterpretedOption[];
1226
+ }
1227
+ export interface MethodOptionsSDKType {
1228
+ /**
1229
+ * Is this method deprecated?
1230
+ * Depending on the target platform, this can emit Deprecated annotations
1231
+ * for the method, or it will be completely ignored; in the very least,
1232
+ * this is a formalization for deprecating methods.
1233
+ */
1234
+ deprecated: boolean;
1235
+ idempotency_level: MethodOptions_IdempotencyLevelSDKType;
1236
+ /** The parser stores options it doesn't recognize here. See above. */
1237
+ uninterpreted_option: UninterpretedOptionSDKType[];
1238
+ }
1239
+ /**
1240
+ * A message representing a option the parser does not recognize. This only
1241
+ * appears in options protos created by the compiler::Parser class.
1242
+ * DescriptorPool resolves these when building Descriptor objects. Therefore,
1243
+ * options protos in descriptor objects (e.g. returned by Descriptor::options(),
1244
+ * or produced by Descriptor::CopyTo()) will never have UninterpretedOptions
1245
+ * in them.
1246
+ */
1247
+ export interface UninterpretedOption {
1248
+ name: UninterpretedOption_NamePart[];
1249
+ /**
1250
+ * The value of the uninterpreted option, in whatever type the tokenizer
1251
+ * identified it as during parsing. Exactly one of these should be set.
1252
+ */
1253
+ identifierValue: string;
1254
+ positiveIntValue: Long;
1255
+ negativeIntValue: Long;
1256
+ doubleValue: number;
1257
+ stringValue: Uint8Array;
1258
+ aggregateValue: string;
1259
+ }
1260
+ /**
1261
+ * A message representing a option the parser does not recognize. This only
1262
+ * appears in options protos created by the compiler::Parser class.
1263
+ * DescriptorPool resolves these when building Descriptor objects. Therefore,
1264
+ * options protos in descriptor objects (e.g. returned by Descriptor::options(),
1265
+ * or produced by Descriptor::CopyTo()) will never have UninterpretedOptions
1266
+ * in them.
1267
+ */
1268
+ export interface UninterpretedOptionSDKType {
1269
+ name: UninterpretedOption_NamePartSDKType[];
1270
+ /**
1271
+ * The value of the uninterpreted option, in whatever type the tokenizer
1272
+ * identified it as during parsing. Exactly one of these should be set.
1273
+ */
1274
+ identifier_value: string;
1275
+ positive_int_value: Long;
1276
+ negative_int_value: Long;
1277
+ double_value: number;
1278
+ string_value: Uint8Array;
1279
+ aggregate_value: string;
1280
+ }
1281
+ /**
1282
+ * The name of the uninterpreted option. Each string represents a segment in
1283
+ * a dot-separated name. is_extension is true iff a segment represents an
1284
+ * extension (denoted with parentheses in options specs in .proto files).
1285
+ * E.g.,{ ["foo", false], ["bar.baz", true], ["qux", false] } represents
1286
+ * "foo.(bar.baz).qux".
1287
+ */
1288
+ export interface UninterpretedOption_NamePart {
1289
+ namePart: string;
1290
+ isExtension: boolean;
1291
+ }
1292
+ /**
1293
+ * The name of the uninterpreted option. Each string represents a segment in
1294
+ * a dot-separated name. is_extension is true iff a segment represents an
1295
+ * extension (denoted with parentheses in options specs in .proto files).
1296
+ * E.g.,{ ["foo", false], ["bar.baz", true], ["qux", false] } represents
1297
+ * "foo.(bar.baz).qux".
1298
+ */
1299
+ export interface UninterpretedOption_NamePartSDKType {
1300
+ name_part: string;
1301
+ is_extension: boolean;
1302
+ }
1303
+ /**
1304
+ * Encapsulates information about the original source file from which a
1305
+ * FileDescriptorProto was generated.
1306
+ */
1307
+ export interface SourceCodeInfo {
1308
+ /**
1309
+ * A Location identifies a piece of source code in a .proto file which
1310
+ * corresponds to a particular definition. This information is intended
1311
+ * to be useful to IDEs, code indexers, documentation generators, and similar
1312
+ * tools.
1313
+ *
1314
+ * For example, say we have a file like:
1315
+ * message Foo {
1316
+ * optional string foo = 1;
1317
+ * }
1318
+ * Let's look at just the field definition:
1319
+ * optional string foo = 1;
1320
+ * ^ ^^ ^^ ^ ^^^
1321
+ * a bc de f ghi
1322
+ * We have the following locations:
1323
+ * span path represents
1324
+ * [a,i) [ 4, 0, 2, 0 ] The whole field definition.
1325
+ * [a,b) [ 4, 0, 2, 0, 4 ] The label (optional).
1326
+ * [c,d) [ 4, 0, 2, 0, 5 ] The type (string).
1327
+ * [e,f) [ 4, 0, 2, 0, 1 ] The name (foo).
1328
+ * [g,h) [ 4, 0, 2, 0, 3 ] The number (1).
1329
+ *
1330
+ * Notes:
1331
+ * - A location may refer to a repeated field itself (i.e. not to any
1332
+ * particular index within it). This is used whenever a set of elements are
1333
+ * logically enclosed in a single code segment. For example, an entire
1334
+ * extend block (possibly containing multiple extension definitions) will
1335
+ * have an outer location whose path refers to the "extensions" repeated
1336
+ * field without an index.
1337
+ * - Multiple locations may have the same path. This happens when a single
1338
+ * logical declaration is spread out across multiple places. The most
1339
+ * obvious example is the "extend" block again -- there may be multiple
1340
+ * extend blocks in the same scope, each of which will have the same path.
1341
+ * - A location's span is not always a subset of its parent's span. For
1342
+ * example, the "extendee" of an extension declaration appears at the
1343
+ * beginning of the "extend" block and is shared by all extensions within
1344
+ * the block.
1345
+ * - Just because a location's span is a subset of some other location's span
1346
+ * does not mean that it is a descendant. For example, a "group" defines
1347
+ * both a type and a field in a single declaration. Thus, the locations
1348
+ * corresponding to the type and field and their components will overlap.
1349
+ * - Code which tries to interpret locations should probably be designed to
1350
+ * ignore those that it doesn't understand, as more types of locations could
1351
+ * be recorded in the future.
1352
+ */
1353
+ location: SourceCodeInfo_Location[];
1354
+ }
1355
+ /**
1356
+ * Encapsulates information about the original source file from which a
1357
+ * FileDescriptorProto was generated.
1358
+ */
1359
+ export interface SourceCodeInfoSDKType {
1360
+ /**
1361
+ * A Location identifies a piece of source code in a .proto file which
1362
+ * corresponds to a particular definition. This information is intended
1363
+ * to be useful to IDEs, code indexers, documentation generators, and similar
1364
+ * tools.
1365
+ *
1366
+ * For example, say we have a file like:
1367
+ * message Foo {
1368
+ * optional string foo = 1;
1369
+ * }
1370
+ * Let's look at just the field definition:
1371
+ * optional string foo = 1;
1372
+ * ^ ^^ ^^ ^ ^^^
1373
+ * a bc de f ghi
1374
+ * We have the following locations:
1375
+ * span path represents
1376
+ * [a,i) [ 4, 0, 2, 0 ] The whole field definition.
1377
+ * [a,b) [ 4, 0, 2, 0, 4 ] The label (optional).
1378
+ * [c,d) [ 4, 0, 2, 0, 5 ] The type (string).
1379
+ * [e,f) [ 4, 0, 2, 0, 1 ] The name (foo).
1380
+ * [g,h) [ 4, 0, 2, 0, 3 ] The number (1).
1381
+ *
1382
+ * Notes:
1383
+ * - A location may refer to a repeated field itself (i.e. not to any
1384
+ * particular index within it). This is used whenever a set of elements are
1385
+ * logically enclosed in a single code segment. For example, an entire
1386
+ * extend block (possibly containing multiple extension definitions) will
1387
+ * have an outer location whose path refers to the "extensions" repeated
1388
+ * field without an index.
1389
+ * - Multiple locations may have the same path. This happens when a single
1390
+ * logical declaration is spread out across multiple places. The most
1391
+ * obvious example is the "extend" block again -- there may be multiple
1392
+ * extend blocks in the same scope, each of which will have the same path.
1393
+ * - A location's span is not always a subset of its parent's span. For
1394
+ * example, the "extendee" of an extension declaration appears at the
1395
+ * beginning of the "extend" block and is shared by all extensions within
1396
+ * the block.
1397
+ * - Just because a location's span is a subset of some other location's span
1398
+ * does not mean that it is a descendant. For example, a "group" defines
1399
+ * both a type and a field in a single declaration. Thus, the locations
1400
+ * corresponding to the type and field and their components will overlap.
1401
+ * - Code which tries to interpret locations should probably be designed to
1402
+ * ignore those that it doesn't understand, as more types of locations could
1403
+ * be recorded in the future.
1404
+ */
1405
+ location: SourceCodeInfo_LocationSDKType[];
1406
+ }
1407
+ export interface SourceCodeInfo_Location {
1408
+ /**
1409
+ * Identifies which part of the FileDescriptorProto was defined at this
1410
+ * location.
1411
+ *
1412
+ * Each element is a field number or an index. They form a path from
1413
+ * the root FileDescriptorProto to the place where the definition. For
1414
+ * example, this path:
1415
+ * [ 4, 3, 2, 7, 1 ]
1416
+ * refers to:
1417
+ * file.message_type(3) // 4, 3
1418
+ * .field(7) // 2, 7
1419
+ * .name() // 1
1420
+ * This is because FileDescriptorProto.message_type has field number 4:
1421
+ * repeated DescriptorProto message_type = 4;
1422
+ * and DescriptorProto.field has field number 2:
1423
+ * repeated FieldDescriptorProto field = 2;
1424
+ * and FieldDescriptorProto.name has field number 1:
1425
+ * optional string name = 1;
1426
+ *
1427
+ * Thus, the above path gives the location of a field name. If we removed
1428
+ * the last element:
1429
+ * [ 4, 3, 2, 7 ]
1430
+ * this path refers to the whole field declaration (from the beginning
1431
+ * of the label to the terminating semicolon).
1432
+ */
1433
+ path: number[];
1434
+ /**
1435
+ * Always has exactly three or four elements: start line, start column,
1436
+ * end line (optional, otherwise assumed same as start line), end column.
1437
+ * These are packed into a single field for efficiency. Note that line
1438
+ * and column numbers are zero-based -- typically you will want to add
1439
+ * 1 to each before displaying to a user.
1440
+ */
1441
+ span: number[];
1442
+ /**
1443
+ * If this SourceCodeInfo represents a complete declaration, these are any
1444
+ * comments appearing before and after the declaration which appear to be
1445
+ * attached to the declaration.
1446
+ *
1447
+ * A series of line comments appearing on consecutive lines, with no other
1448
+ * tokens appearing on those lines, will be treated as a single comment.
1449
+ *
1450
+ * leading_detached_comments will keep paragraphs of comments that appear
1451
+ * before (but not connected to) the current element. Each paragraph,
1452
+ * separated by empty lines, will be one comment element in the repeated
1453
+ * field.
1454
+ *
1455
+ * Only the comment content is provided; comment markers (e.g. //) are
1456
+ * stripped out. For block comments, leading whitespace and an asterisk
1457
+ * will be stripped from the beginning of each line other than the first.
1458
+ * Newlines are included in the output.
1459
+ *
1460
+ * Examples:
1461
+ *
1462
+ * optional int32 foo = 1; // Comment attached to foo.
1463
+ * // Comment attached to bar.
1464
+ * optional int32 bar = 2;
1465
+ *
1466
+ * optional string baz = 3;
1467
+ * // Comment attached to baz.
1468
+ * // Another line attached to baz.
1469
+ *
1470
+ * // Comment attached to qux.
1471
+ * //
1472
+ * // Another line attached to qux.
1473
+ * optional double qux = 4;
1474
+ *
1475
+ * // Detached comment for corge. This is not leading or trailing comments
1476
+ * // to qux or corge because there are blank lines separating it from
1477
+ * // both.
1478
+ *
1479
+ * // Detached comment for corge paragraph 2.
1480
+ *
1481
+ * optional string corge = 5;
1482
+ * /* Block comment attached
1483
+ * * to corge. Leading asterisks
1484
+ * * will be removed. *\/
1485
+ * /* Block comment attached to
1486
+ * * grault. *\/
1487
+ * optional int32 grault = 6;
1488
+ *
1489
+ * // ignored detached comments.
1490
+ */
1491
+ leadingComments: string;
1492
+ trailingComments: string;
1493
+ leadingDetachedComments: string[];
1494
+ }
1495
+ export interface SourceCodeInfo_LocationSDKType {
1496
+ /**
1497
+ * Identifies which part of the FileDescriptorProto was defined at this
1498
+ * location.
1499
+ *
1500
+ * Each element is a field number or an index. They form a path from
1501
+ * the root FileDescriptorProto to the place where the definition. For
1502
+ * example, this path:
1503
+ * [ 4, 3, 2, 7, 1 ]
1504
+ * refers to:
1505
+ * file.message_type(3) // 4, 3
1506
+ * .field(7) // 2, 7
1507
+ * .name() // 1
1508
+ * This is because FileDescriptorProto.message_type has field number 4:
1509
+ * repeated DescriptorProto message_type = 4;
1510
+ * and DescriptorProto.field has field number 2:
1511
+ * repeated FieldDescriptorProto field = 2;
1512
+ * and FieldDescriptorProto.name has field number 1:
1513
+ * optional string name = 1;
1514
+ *
1515
+ * Thus, the above path gives the location of a field name. If we removed
1516
+ * the last element:
1517
+ * [ 4, 3, 2, 7 ]
1518
+ * this path refers to the whole field declaration (from the beginning
1519
+ * of the label to the terminating semicolon).
1520
+ */
1521
+ path: number[];
1522
+ /**
1523
+ * Always has exactly three or four elements: start line, start column,
1524
+ * end line (optional, otherwise assumed same as start line), end column.
1525
+ * These are packed into a single field for efficiency. Note that line
1526
+ * and column numbers are zero-based -- typically you will want to add
1527
+ * 1 to each before displaying to a user.
1528
+ */
1529
+ span: number[];
1530
+ /**
1531
+ * If this SourceCodeInfo represents a complete declaration, these are any
1532
+ * comments appearing before and after the declaration which appear to be
1533
+ * attached to the declaration.
1534
+ *
1535
+ * A series of line comments appearing on consecutive lines, with no other
1536
+ * tokens appearing on those lines, will be treated as a single comment.
1537
+ *
1538
+ * leading_detached_comments will keep paragraphs of comments that appear
1539
+ * before (but not connected to) the current element. Each paragraph,
1540
+ * separated by empty lines, will be one comment element in the repeated
1541
+ * field.
1542
+ *
1543
+ * Only the comment content is provided; comment markers (e.g. //) are
1544
+ * stripped out. For block comments, leading whitespace and an asterisk
1545
+ * will be stripped from the beginning of each line other than the first.
1546
+ * Newlines are included in the output.
1547
+ *
1548
+ * Examples:
1549
+ *
1550
+ * optional int32 foo = 1; // Comment attached to foo.
1551
+ * // Comment attached to bar.
1552
+ * optional int32 bar = 2;
1553
+ *
1554
+ * optional string baz = 3;
1555
+ * // Comment attached to baz.
1556
+ * // Another line attached to baz.
1557
+ *
1558
+ * // Comment attached to qux.
1559
+ * //
1560
+ * // Another line attached to qux.
1561
+ * optional double qux = 4;
1562
+ *
1563
+ * // Detached comment for corge. This is not leading or trailing comments
1564
+ * // to qux or corge because there are blank lines separating it from
1565
+ * // both.
1566
+ *
1567
+ * // Detached comment for corge paragraph 2.
1568
+ *
1569
+ * optional string corge = 5;
1570
+ * /* Block comment attached
1571
+ * * to corge. Leading asterisks
1572
+ * * will be removed. *\/
1573
+ * /* Block comment attached to
1574
+ * * grault. *\/
1575
+ * optional int32 grault = 6;
1576
+ *
1577
+ * // ignored detached comments.
1578
+ */
1579
+ leading_comments: string;
1580
+ trailing_comments: string;
1581
+ leading_detached_comments: string[];
1582
+ }
1583
+ /**
1584
+ * Describes the relationship between generated code and its original source
1585
+ * file. A GeneratedCodeInfo message is associated with only one generated
1586
+ * source file, but may contain references to different source .proto files.
1587
+ */
1588
+ export interface GeneratedCodeInfo {
1589
+ /**
1590
+ * An Annotation connects some span of text in generated code to an element
1591
+ * of its generating .proto file.
1592
+ */
1593
+ annotation: GeneratedCodeInfo_Annotation[];
1594
+ }
1595
+ /**
1596
+ * Describes the relationship between generated code and its original source
1597
+ * file. A GeneratedCodeInfo message is associated with only one generated
1598
+ * source file, but may contain references to different source .proto files.
1599
+ */
1600
+ export interface GeneratedCodeInfoSDKType {
1601
+ /**
1602
+ * An Annotation connects some span of text in generated code to an element
1603
+ * of its generating .proto file.
1604
+ */
1605
+ annotation: GeneratedCodeInfo_AnnotationSDKType[];
1606
+ }
1607
+ export interface GeneratedCodeInfo_Annotation {
1608
+ /**
1609
+ * Identifies the element in the original source .proto file. This field
1610
+ * is formatted the same as SourceCodeInfo.Location.path.
1611
+ */
1612
+ path: number[];
1613
+ /** Identifies the filesystem path to the original source .proto. */
1614
+ sourceFile: string;
1615
+ /**
1616
+ * Identifies the starting offset in bytes in the generated code
1617
+ * that relates to the identified object.
1618
+ */
1619
+ begin: number;
1620
+ /**
1621
+ * Identifies the ending offset in bytes in the generated code that
1622
+ * relates to the identified offset. The end offset should be one past
1623
+ * the last relevant byte (so the length of the text = end - begin).
1624
+ */
1625
+ end: number;
1626
+ }
1627
+ export interface GeneratedCodeInfo_AnnotationSDKType {
1628
+ /**
1629
+ * Identifies the element in the original source .proto file. This field
1630
+ * is formatted the same as SourceCodeInfo.Location.path.
1631
+ */
1632
+ path: number[];
1633
+ /** Identifies the filesystem path to the original source .proto. */
1634
+ source_file: string;
1635
+ /**
1636
+ * Identifies the starting offset in bytes in the generated code
1637
+ * that relates to the identified object.
1638
+ */
1639
+ begin: number;
1640
+ /**
1641
+ * Identifies the ending offset in bytes in the generated code that
1642
+ * relates to the identified offset. The end offset should be one past
1643
+ * the last relevant byte (so the length of the text = end - begin).
1644
+ */
1645
+ end: number;
1646
+ }
1647
+ export declare const FileDescriptorSet: {
1648
+ encode(message: FileDescriptorSet, writer?: _m0.Writer): _m0.Writer;
1649
+ decode(input: _m0.Reader | Uint8Array, length?: number): FileDescriptorSet;
1650
+ fromJSON(object: any): FileDescriptorSet;
1651
+ toJSON(message: FileDescriptorSet): unknown;
1652
+ fromPartial(object: Partial<FileDescriptorSet>): FileDescriptorSet;
1653
+ };
1654
+ export declare const FileDescriptorProto: {
1655
+ encode(message: FileDescriptorProto, writer?: _m0.Writer): _m0.Writer;
1656
+ decode(input: _m0.Reader | Uint8Array, length?: number): FileDescriptorProto;
1657
+ fromJSON(object: any): FileDescriptorProto;
1658
+ toJSON(message: FileDescriptorProto): unknown;
1659
+ fromPartial(object: Partial<FileDescriptorProto>): FileDescriptorProto;
1660
+ };
1661
+ export declare const DescriptorProto: {
1662
+ encode(message: DescriptorProto, writer?: _m0.Writer): _m0.Writer;
1663
+ decode(input: _m0.Reader | Uint8Array, length?: number): DescriptorProto;
1664
+ fromJSON(object: any): DescriptorProto;
1665
+ toJSON(message: DescriptorProto): unknown;
1666
+ fromPartial(object: Partial<DescriptorProto>): DescriptorProto;
1667
+ };
1668
+ export declare const DescriptorProto_ExtensionRange: {
1669
+ encode(message: DescriptorProto_ExtensionRange, writer?: _m0.Writer): _m0.Writer;
1670
+ decode(input: _m0.Reader | Uint8Array, length?: number): DescriptorProto_ExtensionRange;
1671
+ fromJSON(object: any): DescriptorProto_ExtensionRange;
1672
+ toJSON(message: DescriptorProto_ExtensionRange): unknown;
1673
+ fromPartial(object: Partial<DescriptorProto_ExtensionRange>): DescriptorProto_ExtensionRange;
1674
+ };
1675
+ export declare const DescriptorProto_ReservedRange: {
1676
+ encode(message: DescriptorProto_ReservedRange, writer?: _m0.Writer): _m0.Writer;
1677
+ decode(input: _m0.Reader | Uint8Array, length?: number): DescriptorProto_ReservedRange;
1678
+ fromJSON(object: any): DescriptorProto_ReservedRange;
1679
+ toJSON(message: DescriptorProto_ReservedRange): unknown;
1680
+ fromPartial(object: Partial<DescriptorProto_ReservedRange>): DescriptorProto_ReservedRange;
1681
+ };
1682
+ export declare const ExtensionRangeOptions: {
1683
+ encode(message: ExtensionRangeOptions, writer?: _m0.Writer): _m0.Writer;
1684
+ decode(input: _m0.Reader | Uint8Array, length?: number): ExtensionRangeOptions;
1685
+ fromJSON(object: any): ExtensionRangeOptions;
1686
+ toJSON(message: ExtensionRangeOptions): unknown;
1687
+ fromPartial(object: Partial<ExtensionRangeOptions>): ExtensionRangeOptions;
1688
+ };
1689
+ export declare const FieldDescriptorProto: {
1690
+ encode(message: FieldDescriptorProto, writer?: _m0.Writer): _m0.Writer;
1691
+ decode(input: _m0.Reader | Uint8Array, length?: number): FieldDescriptorProto;
1692
+ fromJSON(object: any): FieldDescriptorProto;
1693
+ toJSON(message: FieldDescriptorProto): unknown;
1694
+ fromPartial(object: Partial<FieldDescriptorProto>): FieldDescriptorProto;
1695
+ };
1696
+ export declare const OneofDescriptorProto: {
1697
+ encode(message: OneofDescriptorProto, writer?: _m0.Writer): _m0.Writer;
1698
+ decode(input: _m0.Reader | Uint8Array, length?: number): OneofDescriptorProto;
1699
+ fromJSON(object: any): OneofDescriptorProto;
1700
+ toJSON(message: OneofDescriptorProto): unknown;
1701
+ fromPartial(object: Partial<OneofDescriptorProto>): OneofDescriptorProto;
1702
+ };
1703
+ export declare const EnumDescriptorProto: {
1704
+ encode(message: EnumDescriptorProto, writer?: _m0.Writer): _m0.Writer;
1705
+ decode(input: _m0.Reader | Uint8Array, length?: number): EnumDescriptorProto;
1706
+ fromJSON(object: any): EnumDescriptorProto;
1707
+ toJSON(message: EnumDescriptorProto): unknown;
1708
+ fromPartial(object: Partial<EnumDescriptorProto>): EnumDescriptorProto;
1709
+ };
1710
+ export declare const EnumDescriptorProto_EnumReservedRange: {
1711
+ encode(message: EnumDescriptorProto_EnumReservedRange, writer?: _m0.Writer): _m0.Writer;
1712
+ decode(input: _m0.Reader | Uint8Array, length?: number): EnumDescriptorProto_EnumReservedRange;
1713
+ fromJSON(object: any): EnumDescriptorProto_EnumReservedRange;
1714
+ toJSON(message: EnumDescriptorProto_EnumReservedRange): unknown;
1715
+ fromPartial(object: Partial<EnumDescriptorProto_EnumReservedRange>): EnumDescriptorProto_EnumReservedRange;
1716
+ };
1717
+ export declare const EnumValueDescriptorProto: {
1718
+ encode(message: EnumValueDescriptorProto, writer?: _m0.Writer): _m0.Writer;
1719
+ decode(input: _m0.Reader | Uint8Array, length?: number): EnumValueDescriptorProto;
1720
+ fromJSON(object: any): EnumValueDescriptorProto;
1721
+ toJSON(message: EnumValueDescriptorProto): unknown;
1722
+ fromPartial(object: Partial<EnumValueDescriptorProto>): EnumValueDescriptorProto;
1723
+ };
1724
+ export declare const ServiceDescriptorProto: {
1725
+ encode(message: ServiceDescriptorProto, writer?: _m0.Writer): _m0.Writer;
1726
+ decode(input: _m0.Reader | Uint8Array, length?: number): ServiceDescriptorProto;
1727
+ fromJSON(object: any): ServiceDescriptorProto;
1728
+ toJSON(message: ServiceDescriptorProto): unknown;
1729
+ fromPartial(object: Partial<ServiceDescriptorProto>): ServiceDescriptorProto;
1730
+ };
1731
+ export declare const MethodDescriptorProto: {
1732
+ encode(message: MethodDescriptorProto, writer?: _m0.Writer): _m0.Writer;
1733
+ decode(input: _m0.Reader | Uint8Array, length?: number): MethodDescriptorProto;
1734
+ fromJSON(object: any): MethodDescriptorProto;
1735
+ toJSON(message: MethodDescriptorProto): unknown;
1736
+ fromPartial(object: Partial<MethodDescriptorProto>): MethodDescriptorProto;
1737
+ };
1738
+ export declare const FileOptions: {
1739
+ encode(message: FileOptions, writer?: _m0.Writer): _m0.Writer;
1740
+ decode(input: _m0.Reader | Uint8Array, length?: number): FileOptions;
1741
+ fromJSON(object: any): FileOptions;
1742
+ toJSON(message: FileOptions): unknown;
1743
+ fromPartial(object: Partial<FileOptions>): FileOptions;
1744
+ };
1745
+ export declare const MessageOptions: {
1746
+ encode(message: MessageOptions, writer?: _m0.Writer): _m0.Writer;
1747
+ decode(input: _m0.Reader | Uint8Array, length?: number): MessageOptions;
1748
+ fromJSON(object: any): MessageOptions;
1749
+ toJSON(message: MessageOptions): unknown;
1750
+ fromPartial(object: Partial<MessageOptions>): MessageOptions;
1751
+ };
1752
+ export declare const FieldOptions: {
1753
+ encode(message: FieldOptions, writer?: _m0.Writer): _m0.Writer;
1754
+ decode(input: _m0.Reader | Uint8Array, length?: number): FieldOptions;
1755
+ fromJSON(object: any): FieldOptions;
1756
+ toJSON(message: FieldOptions): unknown;
1757
+ fromPartial(object: Partial<FieldOptions>): FieldOptions;
1758
+ };
1759
+ export declare const OneofOptions: {
1760
+ encode(message: OneofOptions, writer?: _m0.Writer): _m0.Writer;
1761
+ decode(input: _m0.Reader | Uint8Array, length?: number): OneofOptions;
1762
+ fromJSON(object: any): OneofOptions;
1763
+ toJSON(message: OneofOptions): unknown;
1764
+ fromPartial(object: Partial<OneofOptions>): OneofOptions;
1765
+ };
1766
+ export declare const EnumOptions: {
1767
+ encode(message: EnumOptions, writer?: _m0.Writer): _m0.Writer;
1768
+ decode(input: _m0.Reader | Uint8Array, length?: number): EnumOptions;
1769
+ fromJSON(object: any): EnumOptions;
1770
+ toJSON(message: EnumOptions): unknown;
1771
+ fromPartial(object: Partial<EnumOptions>): EnumOptions;
1772
+ };
1773
+ export declare const EnumValueOptions: {
1774
+ encode(message: EnumValueOptions, writer?: _m0.Writer): _m0.Writer;
1775
+ decode(input: _m0.Reader | Uint8Array, length?: number): EnumValueOptions;
1776
+ fromJSON(object: any): EnumValueOptions;
1777
+ toJSON(message: EnumValueOptions): unknown;
1778
+ fromPartial(object: Partial<EnumValueOptions>): EnumValueOptions;
1779
+ };
1780
+ export declare const ServiceOptions: {
1781
+ encode(message: ServiceOptions, writer?: _m0.Writer): _m0.Writer;
1782
+ decode(input: _m0.Reader | Uint8Array, length?: number): ServiceOptions;
1783
+ fromJSON(object: any): ServiceOptions;
1784
+ toJSON(message: ServiceOptions): unknown;
1785
+ fromPartial(object: Partial<ServiceOptions>): ServiceOptions;
1786
+ };
1787
+ export declare const MethodOptions: {
1788
+ encode(message: MethodOptions, writer?: _m0.Writer): _m0.Writer;
1789
+ decode(input: _m0.Reader | Uint8Array, length?: number): MethodOptions;
1790
+ fromJSON(object: any): MethodOptions;
1791
+ toJSON(message: MethodOptions): unknown;
1792
+ fromPartial(object: Partial<MethodOptions>): MethodOptions;
1793
+ };
1794
+ export declare const UninterpretedOption: {
1795
+ encode(message: UninterpretedOption, writer?: _m0.Writer): _m0.Writer;
1796
+ decode(input: _m0.Reader | Uint8Array, length?: number): UninterpretedOption;
1797
+ fromJSON(object: any): UninterpretedOption;
1798
+ toJSON(message: UninterpretedOption): unknown;
1799
+ fromPartial(object: Partial<UninterpretedOption>): UninterpretedOption;
1800
+ };
1801
+ export declare const UninterpretedOption_NamePart: {
1802
+ encode(message: UninterpretedOption_NamePart, writer?: _m0.Writer): _m0.Writer;
1803
+ decode(input: _m0.Reader | Uint8Array, length?: number): UninterpretedOption_NamePart;
1804
+ fromJSON(object: any): UninterpretedOption_NamePart;
1805
+ toJSON(message: UninterpretedOption_NamePart): unknown;
1806
+ fromPartial(object: Partial<UninterpretedOption_NamePart>): UninterpretedOption_NamePart;
1807
+ };
1808
+ export declare const SourceCodeInfo: {
1809
+ encode(message: SourceCodeInfo, writer?: _m0.Writer): _m0.Writer;
1810
+ decode(input: _m0.Reader | Uint8Array, length?: number): SourceCodeInfo;
1811
+ fromJSON(object: any): SourceCodeInfo;
1812
+ toJSON(message: SourceCodeInfo): unknown;
1813
+ fromPartial(object: Partial<SourceCodeInfo>): SourceCodeInfo;
1814
+ };
1815
+ export declare const SourceCodeInfo_Location: {
1816
+ encode(message: SourceCodeInfo_Location, writer?: _m0.Writer): _m0.Writer;
1817
+ decode(input: _m0.Reader | Uint8Array, length?: number): SourceCodeInfo_Location;
1818
+ fromJSON(object: any): SourceCodeInfo_Location;
1819
+ toJSON(message: SourceCodeInfo_Location): unknown;
1820
+ fromPartial(object: Partial<SourceCodeInfo_Location>): SourceCodeInfo_Location;
1821
+ };
1822
+ export declare const GeneratedCodeInfo: {
1823
+ encode(message: GeneratedCodeInfo, writer?: _m0.Writer): _m0.Writer;
1824
+ decode(input: _m0.Reader | Uint8Array, length?: number): GeneratedCodeInfo;
1825
+ fromJSON(object: any): GeneratedCodeInfo;
1826
+ toJSON(message: GeneratedCodeInfo): unknown;
1827
+ fromPartial(object: Partial<GeneratedCodeInfo>): GeneratedCodeInfo;
1828
+ };
1829
+ export declare const GeneratedCodeInfo_Annotation: {
1830
+ encode(message: GeneratedCodeInfo_Annotation, writer?: _m0.Writer): _m0.Writer;
1831
+ decode(input: _m0.Reader | Uint8Array, length?: number): GeneratedCodeInfo_Annotation;
1832
+ fromJSON(object: any): GeneratedCodeInfo_Annotation;
1833
+ toJSON(message: GeneratedCodeInfo_Annotation): unknown;
1834
+ fromPartial(object: Partial<GeneratedCodeInfo_Annotation>): GeneratedCodeInfo_Annotation;
1835
+ };