@firmachain/firma-js 0.2.37 → 0.2.38

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 (181) hide show
  1. package/dist/index.d.ts +4 -0
  2. package/dist/index.js +20 -0
  3. package/dist/sdk/FirmaAuthzService.d.ts +41 -0
  4. package/dist/sdk/FirmaAuthzService.js +633 -0
  5. package/dist/sdk/FirmaBankService.d.ts +17 -0
  6. package/dist/sdk/FirmaBankService.js +236 -0
  7. package/dist/sdk/FirmaChainService.d.ts +8 -0
  8. package/dist/sdk/FirmaChainService.js +86 -0
  9. package/dist/sdk/FirmaConfig.d.ts +18 -0
  10. package/dist/sdk/FirmaConfig.js +63 -0
  11. package/dist/sdk/FirmaContractService.d.ts +32 -0
  12. package/dist/sdk/FirmaContractService.js +434 -0
  13. package/dist/sdk/FirmaCosmWasmService.d.ts +38 -0
  14. package/dist/sdk/FirmaCosmWasmService.js +667 -0
  15. package/dist/sdk/FirmaDistributionService.d.ts +32 -0
  16. package/dist/sdk/FirmaDistributionService.js +527 -0
  17. package/dist/sdk/FirmaFeeGrantService.d.ts +21 -0
  18. package/dist/sdk/FirmaFeeGrantService.js +341 -0
  19. package/dist/sdk/FirmaGovService.d.ts +35 -0
  20. package/dist/sdk/FirmaGovService.js +775 -0
  21. package/dist/sdk/FirmaIbcService.d.ts +15 -0
  22. package/dist/sdk/FirmaIbcService.js +144 -0
  23. package/dist/sdk/FirmaIpfsService.d.ts +12 -0
  24. package/dist/sdk/FirmaIpfsService.js +185 -0
  25. package/dist/sdk/FirmaMobileSDK.d.ts +29 -0
  26. package/dist/sdk/FirmaMobileSDK.js +48 -0
  27. package/dist/sdk/FirmaNftService.d.ts +31 -0
  28. package/dist/sdk/FirmaNftService.js +372 -0
  29. package/dist/sdk/FirmaSDK.d.ts +35 -0
  30. package/dist/sdk/FirmaSDK.js +57 -0
  31. package/dist/sdk/FirmaSlashingService.d.ts +9 -0
  32. package/dist/sdk/FirmaSlashingService.js +105 -0
  33. package/dist/sdk/FirmaStakingService.d.ts +47 -0
  34. package/dist/sdk/FirmaStakingService.js +611 -0
  35. package/dist/sdk/FirmaTokenService.d.ts +26 -0
  36. package/dist/sdk/FirmaTokenService.js +416 -0
  37. package/dist/sdk/FirmaUtil.d.ts +56 -0
  38. package/dist/sdk/FirmaUtil.js +430 -0
  39. package/dist/sdk/FirmaWalletService.d.ts +39 -0
  40. package/dist/sdk/FirmaWalletService.js +317 -0
  41. package/dist/sdk/firmachain/amino/addresses.d.ts +5 -0
  42. package/dist/sdk/firmachain/amino/addresses.js +46 -0
  43. package/dist/sdk/firmachain/amino/aminomsgs.d.ts +281 -0
  44. package/dist/sdk/firmachain/amino/aminomsgs.js +77 -0
  45. package/dist/sdk/firmachain/amino/aminotypes.d.ts +22 -0
  46. package/dist/sdk/firmachain/amino/aminotypes.js +525 -0
  47. package/dist/sdk/firmachain/amino/coins.d.ts +30 -0
  48. package/dist/sdk/firmachain/amino/coins.js +69 -0
  49. package/dist/sdk/firmachain/amino/encoding.d.ts +24 -0
  50. package/dist/sdk/firmachain/amino/encoding.js +238 -0
  51. package/dist/sdk/firmachain/amino/multisig.d.ts +10 -0
  52. package/dist/sdk/firmachain/amino/multisig.js +42 -0
  53. package/dist/sdk/firmachain/amino/paths.d.ts +6 -0
  54. package/dist/sdk/firmachain/amino/paths.js +18 -0
  55. package/dist/sdk/firmachain/amino/pubkeys.d.ts +47 -0
  56. package/dist/sdk/firmachain/amino/pubkeys.js +29 -0
  57. package/dist/sdk/firmachain/amino/signature.d.ts +16 -0
  58. package/dist/sdk/firmachain/amino/signature.js +36 -0
  59. package/dist/sdk/firmachain/amino/signdoc.d.ts +26 -0
  60. package/dist/sdk/firmachain/amino/signdoc.js +42 -0
  61. package/dist/sdk/firmachain/amino/signer.d.ts +32 -0
  62. package/dist/sdk/firmachain/amino/signer.js +2 -0
  63. package/dist/sdk/firmachain/amino/stdtx.d.ts +15 -0
  64. package/dist/sdk/firmachain/amino/stdtx.js +17 -0
  65. package/dist/sdk/firmachain/amino/wallet.d.ts +32 -0
  66. package/dist/sdk/firmachain/amino/wallet.js +136 -0
  67. package/dist/sdk/firmachain/authz/AuthzQueryClient.d.ts +48 -0
  68. package/dist/sdk/firmachain/authz/AuthzQueryClient.js +142 -0
  69. package/dist/sdk/firmachain/authz/AuthzTxClient.d.ts +23 -0
  70. package/dist/sdk/firmachain/authz/AuthzTxClient.js +47 -0
  71. package/dist/sdk/firmachain/authz/AuthzTxTypes.d.ts +147 -0
  72. package/dist/sdk/firmachain/authz/AuthzTxTypes.js +358 -0
  73. package/dist/sdk/firmachain/authz/index.d.ts +3 -0
  74. package/dist/sdk/firmachain/authz/index.js +19 -0
  75. package/dist/sdk/firmachain/bank/BankQueryClient.d.ts +12 -0
  76. package/dist/sdk/firmachain/bank/BankQueryClient.js +116 -0
  77. package/dist/sdk/firmachain/bank/BankTxClient.d.ts +18 -0
  78. package/dist/sdk/firmachain/bank/BankTxClient.js +43 -0
  79. package/dist/sdk/firmachain/bank/index.d.ts +3 -0
  80. package/dist/sdk/firmachain/bank/index.js +19 -0
  81. package/dist/sdk/firmachain/common/CommonTxClient.d.ts +7 -0
  82. package/dist/sdk/firmachain/common/CommonTxClient.js +79 -0
  83. package/dist/sdk/firmachain/common/ITxClient.d.ts +18 -0
  84. package/dist/sdk/firmachain/common/ITxClient.js +117 -0
  85. package/dist/sdk/firmachain/common/LedgerSigningStargateClient.d.ts +27 -0
  86. package/dist/sdk/firmachain/common/LedgerSigningStargateClient.js +165 -0
  87. package/dist/sdk/firmachain/common/LedgerWallet.d.ts +14 -0
  88. package/dist/sdk/firmachain/common/LedgerWallet.js +151 -0
  89. package/dist/sdk/firmachain/common/QueryCommon.d.ts +4 -0
  90. package/dist/sdk/firmachain/common/QueryCommon.js +2 -0
  91. package/dist/sdk/firmachain/common/TendermintQueryClient.d.ts +42 -0
  92. package/dist/sdk/firmachain/common/TendermintQueryClient.js +111 -0
  93. package/dist/sdk/firmachain/common/TxCommon.d.ts +87 -0
  94. package/dist/sdk/firmachain/common/TxCommon.js +18 -0
  95. package/dist/sdk/firmachain/common/accounts.d.ts +16 -0
  96. package/dist/sdk/firmachain/common/accounts.js +64 -0
  97. package/dist/sdk/firmachain/common/index.d.ts +2 -0
  98. package/dist/sdk/firmachain/common/index.js +18 -0
  99. package/dist/sdk/firmachain/common/signing.d.ts +10 -0
  100. package/dist/sdk/firmachain/common/signing.js +79 -0
  101. package/dist/sdk/firmachain/common/signingaminostargateclient.d.ts +50 -0
  102. package/dist/sdk/firmachain/common/signingaminostargateclient.js +267 -0
  103. package/dist/sdk/firmachain/common/signingstargateclient.d.ts +44 -0
  104. package/dist/sdk/firmachain/common/signingstargateclient.js +361 -0
  105. package/dist/sdk/firmachain/common/stargateclient.d.ts +46 -0
  106. package/dist/sdk/firmachain/common/stargateclient.js +211 -0
  107. package/dist/sdk/firmachain/contract/ContractQueryClient.d.ts +32 -0
  108. package/dist/sdk/firmachain/contract/ContractQueryClient.js +156 -0
  109. package/dist/sdk/firmachain/contract/ContractTxClient.d.ts +18 -0
  110. package/dist/sdk/firmachain/contract/ContractTxClient.js +43 -0
  111. package/dist/sdk/firmachain/contract/ContractTxTypes.d.ts +69 -0
  112. package/dist/sdk/firmachain/contract/ContractTxTypes.js +483 -0
  113. package/dist/sdk/firmachain/contract/index.d.ts +3 -0
  114. package/dist/sdk/firmachain/contract/index.js +19 -0
  115. package/dist/sdk/firmachain/cosmwasm/CosmWasmQueryClient.d.ts +52 -0
  116. package/dist/sdk/firmachain/cosmwasm/CosmWasmQueryClient.js +193 -0
  117. package/dist/sdk/firmachain/cosmwasm/CosmWasmTxClient.d.ts +38 -0
  118. package/dist/sdk/firmachain/cosmwasm/CosmWasmTxClient.js +59 -0
  119. package/dist/sdk/firmachain/cosmwasm/index.d.ts +3 -0
  120. package/dist/sdk/firmachain/cosmwasm/index.js +19 -0
  121. package/dist/sdk/firmachain/distribution/DistributionQueryClient.d.ts +18 -0
  122. package/dist/sdk/firmachain/distribution/DistributionQueryClient.js +167 -0
  123. package/dist/sdk/firmachain/distribution/DistributionTxClient.d.ts +28 -0
  124. package/dist/sdk/firmachain/distribution/DistributionTxClient.js +51 -0
  125. package/dist/sdk/firmachain/distribution/index.d.ts +3 -0
  126. package/dist/sdk/firmachain/distribution/index.js +19 -0
  127. package/dist/sdk/firmachain/feegrant/FeeGrantQueryClient.d.ts +17 -0
  128. package/dist/sdk/firmachain/feegrant/FeeGrantQueryClient.js +86 -0
  129. package/dist/sdk/firmachain/feegrant/FeeGrantTxClient.d.ts +18 -0
  130. package/dist/sdk/firmachain/feegrant/FeeGrantTxClient.js +43 -0
  131. package/dist/sdk/firmachain/feegrant/FeeGrantTxTypes.d.ts +76 -0
  132. package/dist/sdk/firmachain/feegrant/FeeGrantTxTypes.js +194 -0
  133. package/dist/sdk/firmachain/feegrant/index.d.ts +2 -0
  134. package/dist/sdk/firmachain/feegrant/index.js +19 -0
  135. package/dist/sdk/firmachain/google/protobuf/any.d.ts +128 -0
  136. package/dist/sdk/firmachain/google/protobuf/any.js +106 -0
  137. package/dist/sdk/firmachain/google/protobuf/descriptor.d.ts +996 -0
  138. package/dist/sdk/firmachain/google/protobuf/descriptor.js +5329 -0
  139. package/dist/sdk/firmachain/google/protobuf/duration.d.ts +91 -0
  140. package/dist/sdk/firmachain/google/protobuf/duration.js +107 -0
  141. package/dist/sdk/firmachain/google/protobuf/timestamp.d.ts +109 -0
  142. package/dist/sdk/firmachain/google/protobuf/timestamp.js +107 -0
  143. package/dist/sdk/firmachain/gov/GovQueryClient.d.ts +61 -0
  144. package/dist/sdk/firmachain/gov/GovQueryClient.js +152 -0
  145. package/dist/sdk/firmachain/gov/GovTxClient.d.ts +23 -0
  146. package/dist/sdk/firmachain/gov/GovTxClient.js +47 -0
  147. package/dist/sdk/firmachain/gov/index.d.ts +3 -0
  148. package/dist/sdk/firmachain/gov/index.js +19 -0
  149. package/dist/sdk/firmachain/ibc/IbcQueryClient.d.ts +34 -0
  150. package/dist/sdk/firmachain/ibc/IbcQueryClient.js +71 -0
  151. package/dist/sdk/firmachain/ibc/IbcTxClient.d.ts +13 -0
  152. package/dist/sdk/firmachain/ibc/IbcTxClient.js +39 -0
  153. package/dist/sdk/firmachain/ibc/index.d.ts +3 -0
  154. package/dist/sdk/firmachain/ibc/index.js +19 -0
  155. package/dist/sdk/firmachain/nft/NftQueryClient.d.ts +20 -0
  156. package/dist/sdk/firmachain/nft/NftQueryClient.js +125 -0
  157. package/dist/sdk/firmachain/nft/NftTxClient.d.ts +23 -0
  158. package/dist/sdk/firmachain/nft/NftTxClient.js +47 -0
  159. package/dist/sdk/firmachain/nft/NftTxTypes.d.ts +86 -0
  160. package/dist/sdk/firmachain/nft/NftTxTypes.js +424 -0
  161. package/dist/sdk/firmachain/nft/index.d.ts +3 -0
  162. package/dist/sdk/firmachain/nft/index.js +19 -0
  163. package/dist/sdk/firmachain/slashing/SlashingQueryClient.d.ts +22 -0
  164. package/dist/sdk/firmachain/slashing/SlashingQueryClient.js +101 -0
  165. package/dist/sdk/firmachain/slashing/index.d.ts +2 -0
  166. package/dist/sdk/firmachain/slashing/index.js +18 -0
  167. package/dist/sdk/firmachain/staking/StakingQueryClient.d.ts +106 -0
  168. package/dist/sdk/firmachain/staking/StakingQueryClient.js +243 -0
  169. package/dist/sdk/firmachain/staking/StakingTxClient.d.ts +33 -0
  170. package/dist/sdk/firmachain/staking/StakingTxClient.js +55 -0
  171. package/dist/sdk/firmachain/staking/index.d.ts +3 -0
  172. package/dist/sdk/firmachain/staking/index.js +19 -0
  173. package/dist/sdk/firmachain/token/TokenQueryClient.d.ts +24 -0
  174. package/dist/sdk/firmachain/token/TokenQueryClient.js +106 -0
  175. package/dist/sdk/firmachain/token/TokenTxClient.d.ts +28 -0
  176. package/dist/sdk/firmachain/token/TokenTxClient.js +51 -0
  177. package/dist/sdk/firmachain/token/TokenTxTypes.d.ts +116 -0
  178. package/dist/sdk/firmachain/token/TokenTxTypes.js +685 -0
  179. package/dist/sdk/firmachain/token/index.d.ts +3 -0
  180. package/dist/sdk/firmachain/token/index.js +19 -0
  181. package/package.json +1 -1
@@ -0,0 +1,996 @@
1
+ import { Writer, Reader } from "protobufjs/minimal";
2
+ export declare const protobufPackage = "google.protobuf";
3
+ /**
4
+ * The protocol compiler can output a FileDescriptorSet containing the .proto
5
+ * files it parses.
6
+ */
7
+ export interface FileDescriptorSet {
8
+ file: FileDescriptorProto[];
9
+ }
10
+ /** Describes a complete .proto file. */
11
+ export interface FileDescriptorProto {
12
+ /** file name, relative to root of source tree */
13
+ name: string;
14
+ /** e.g. "foo", "foo.bar", etc. */
15
+ package: string;
16
+ /** Names of files imported by this file. */
17
+ dependency: string[];
18
+ /** Indexes of the public imported files in the dependency list above. */
19
+ publicDependency: number[];
20
+ /**
21
+ * Indexes of the weak imported files in the dependency list.
22
+ * For Google-internal migration only. Do not use.
23
+ */
24
+ weakDependency: number[];
25
+ /** All top-level definitions in this file. */
26
+ messageType: DescriptorProto[];
27
+ enumType: EnumDescriptorProto[];
28
+ service: ServiceDescriptorProto[];
29
+ extension: FieldDescriptorProto[];
30
+ options: FileOptions | undefined;
31
+ /**
32
+ * This field contains optional information about the original source code.
33
+ * You may safely remove this entire field without harming runtime
34
+ * functionality of the descriptors -- the information is needed only by
35
+ * development tools.
36
+ */
37
+ sourceCodeInfo: SourceCodeInfo | undefined;
38
+ /**
39
+ * The syntax of the proto file.
40
+ * The supported values are "proto2" and "proto3".
41
+ */
42
+ syntax: string;
43
+ }
44
+ /** Describes a message type. */
45
+ export interface DescriptorProto {
46
+ name: string;
47
+ field: FieldDescriptorProto[];
48
+ extension: FieldDescriptorProto[];
49
+ nestedType: DescriptorProto[];
50
+ enumType: EnumDescriptorProto[];
51
+ extensionRange: DescriptorProto_ExtensionRange[];
52
+ oneofDecl: OneofDescriptorProto[];
53
+ options: MessageOptions | undefined;
54
+ reservedRange: DescriptorProto_ReservedRange[];
55
+ /**
56
+ * Reserved field names, which may not be used by fields in the same message.
57
+ * A given name may only be reserved once.
58
+ */
59
+ reservedName: string[];
60
+ }
61
+ export interface DescriptorProto_ExtensionRange {
62
+ start: number;
63
+ end: number;
64
+ options: ExtensionRangeOptions | undefined;
65
+ }
66
+ /**
67
+ * Range of reserved tag numbers. Reserved tag numbers may not be used by
68
+ * fields or extension ranges in the same message. Reserved ranges may
69
+ * not overlap.
70
+ */
71
+ export interface DescriptorProto_ReservedRange {
72
+ /** Inclusive. */
73
+ start: number;
74
+ /** Exclusive. */
75
+ end: number;
76
+ }
77
+ export interface ExtensionRangeOptions {
78
+ /** The parser stores options it doesn't recognize here. See above. */
79
+ uninterpretedOption: UninterpretedOption[];
80
+ }
81
+ /** Describes a field within a message. */
82
+ export interface FieldDescriptorProto {
83
+ name: string;
84
+ number: number;
85
+ label: FieldDescriptorProto_Label;
86
+ /**
87
+ * If type_name is set, this need not be set. If both this and type_name
88
+ * are set, this must be one of TYPE_ENUM, TYPE_MESSAGE or TYPE_GROUP.
89
+ */
90
+ type: FieldDescriptorProto_Type;
91
+ /**
92
+ * For message and enum types, this is the name of the type. If the name
93
+ * starts with a '.', it is fully-qualified. Otherwise, C++-like scoping
94
+ * rules are used to find the type (i.e. first the nested types within this
95
+ * message are searched, then within the parent, on up to the root
96
+ * namespace).
97
+ */
98
+ typeName: string;
99
+ /**
100
+ * For extensions, this is the name of the type being extended. It is
101
+ * resolved in the same manner as type_name.
102
+ */
103
+ extendee: string;
104
+ /**
105
+ * For numeric types, contains the original text representation of the value.
106
+ * For booleans, "true" or "false".
107
+ * For strings, contains the default text contents (not escaped in any way).
108
+ * For bytes, contains the C escaped value. All bytes >= 128 are escaped.
109
+ * TODO(kenton): Base-64 encode?
110
+ */
111
+ defaultValue: string;
112
+ /**
113
+ * If set, gives the index of a oneof in the containing type's oneof_decl
114
+ * list. This field is a member of that oneof.
115
+ */
116
+ oneofIndex: number;
117
+ /**
118
+ * JSON name of this field. The value is set by protocol compiler. If the
119
+ * user has set a "json_name" option on this field, that option's value
120
+ * will be used. Otherwise, it's deduced from the field's name by converting
121
+ * it to camelCase.
122
+ */
123
+ jsonName: string;
124
+ options: FieldOptions | undefined;
125
+ }
126
+ export declare enum FieldDescriptorProto_Type {
127
+ /**
128
+ * TYPE_DOUBLE - 0 is reserved for errors.
129
+ * Order is weird for historical reasons.
130
+ */
131
+ TYPE_DOUBLE = 1,
132
+ TYPE_FLOAT = 2,
133
+ /**
134
+ * TYPE_INT64 - Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT64 if
135
+ * negative values are likely.
136
+ */
137
+ TYPE_INT64 = 3,
138
+ TYPE_UINT64 = 4,
139
+ /**
140
+ * TYPE_INT32 - Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT32 if
141
+ * negative values are likely.
142
+ */
143
+ TYPE_INT32 = 5,
144
+ TYPE_FIXED64 = 6,
145
+ TYPE_FIXED32 = 7,
146
+ TYPE_BOOL = 8,
147
+ TYPE_STRING = 9,
148
+ /**
149
+ * TYPE_GROUP - Tag-delimited aggregate.
150
+ * Group type is deprecated and not supported in proto3. However, Proto3
151
+ * implementations should still be able to parse the group wire format and
152
+ * treat group fields as unknown fields.
153
+ */
154
+ TYPE_GROUP = 10,
155
+ /** TYPE_MESSAGE - Length-delimited aggregate. */
156
+ TYPE_MESSAGE = 11,
157
+ /** TYPE_BYTES - New in version 2. */
158
+ TYPE_BYTES = 12,
159
+ TYPE_UINT32 = 13,
160
+ TYPE_ENUM = 14,
161
+ TYPE_SFIXED32 = 15,
162
+ TYPE_SFIXED64 = 16,
163
+ /** TYPE_SINT32 - Uses ZigZag encoding. */
164
+ TYPE_SINT32 = 17,
165
+ /** TYPE_SINT64 - Uses ZigZag encoding. */
166
+ TYPE_SINT64 = 18,
167
+ UNRECOGNIZED = -1
168
+ }
169
+ export declare function fieldDescriptorProto_TypeFromJSON(object: any): FieldDescriptorProto_Type;
170
+ export declare function fieldDescriptorProto_TypeToJSON(object: FieldDescriptorProto_Type): string;
171
+ export declare enum FieldDescriptorProto_Label {
172
+ /** LABEL_OPTIONAL - 0 is reserved for errors */
173
+ LABEL_OPTIONAL = 1,
174
+ LABEL_REQUIRED = 2,
175
+ LABEL_REPEATED = 3,
176
+ UNRECOGNIZED = -1
177
+ }
178
+ export declare function fieldDescriptorProto_LabelFromJSON(object: any): FieldDescriptorProto_Label;
179
+ export declare function fieldDescriptorProto_LabelToJSON(object: FieldDescriptorProto_Label): string;
180
+ /** Describes a oneof. */
181
+ export interface OneofDescriptorProto {
182
+ name: string;
183
+ options: OneofOptions | undefined;
184
+ }
185
+ /** Describes an enum type. */
186
+ export interface EnumDescriptorProto {
187
+ name: string;
188
+ value: EnumValueDescriptorProto[];
189
+ options: EnumOptions | undefined;
190
+ /**
191
+ * Range of reserved numeric values. Reserved numeric values may not be used
192
+ * by enum values in the same enum declaration. Reserved ranges may not
193
+ * overlap.
194
+ */
195
+ reservedRange: EnumDescriptorProto_EnumReservedRange[];
196
+ /**
197
+ * Reserved enum value names, which may not be reused. A given name may only
198
+ * be reserved once.
199
+ */
200
+ reservedName: string[];
201
+ }
202
+ /**
203
+ * Range of reserved numeric values. Reserved values may not be used by
204
+ * entries in the same enum. Reserved ranges may not overlap.
205
+ *
206
+ * Note that this is distinct from DescriptorProto.ReservedRange in that it
207
+ * is inclusive such that it can appropriately represent the entire int32
208
+ * domain.
209
+ */
210
+ export interface EnumDescriptorProto_EnumReservedRange {
211
+ /** Inclusive. */
212
+ start: number;
213
+ /** Inclusive. */
214
+ end: number;
215
+ }
216
+ /** Describes a value within an enum. */
217
+ export interface EnumValueDescriptorProto {
218
+ name: string;
219
+ number: number;
220
+ options: EnumValueOptions | undefined;
221
+ }
222
+ /** Describes a service. */
223
+ export interface ServiceDescriptorProto {
224
+ name: string;
225
+ method: MethodDescriptorProto[];
226
+ options: ServiceOptions | undefined;
227
+ }
228
+ /** Describes a method of a service. */
229
+ export interface MethodDescriptorProto {
230
+ name: string;
231
+ /**
232
+ * Input and output type names. These are resolved in the same way as
233
+ * FieldDescriptorProto.type_name, but must refer to a message type.
234
+ */
235
+ inputType: string;
236
+ outputType: string;
237
+ options: MethodOptions | undefined;
238
+ /** Identifies if client streams multiple client messages */
239
+ clientStreaming: boolean;
240
+ /** Identifies if server streams multiple server messages */
241
+ serverStreaming: boolean;
242
+ }
243
+ export interface FileOptions {
244
+ /**
245
+ * Sets the Java package where classes generated from this .proto will be
246
+ * placed. By default, the proto package is used, but this is often
247
+ * inappropriate because proto packages do not normally start with backwards
248
+ * domain names.
249
+ */
250
+ javaPackage: string;
251
+ /**
252
+ * If set, all the classes from the .proto file are wrapped in a single
253
+ * outer class with the given name. This applies to both Proto1
254
+ * (equivalent to the old "--one_java_file" option) and Proto2 (where
255
+ * a .proto always translates to a single class, but you may want to
256
+ * explicitly choose the class name).
257
+ */
258
+ javaOuterClassname: string;
259
+ /**
260
+ * If set true, then the Java code generator will generate a separate .java
261
+ * file for each top-level message, enum, and service defined in the .proto
262
+ * file. Thus, these types will *not* be nested inside the outer class
263
+ * named by java_outer_classname. However, the outer class will still be
264
+ * generated to contain the file's getDescriptor() method as well as any
265
+ * top-level extensions defined in the file.
266
+ */
267
+ javaMultipleFiles: boolean;
268
+ /**
269
+ * This option does nothing.
270
+ *
271
+ * @deprecated
272
+ */
273
+ javaGenerateEqualsAndHash: boolean;
274
+ /**
275
+ * If set true, then the Java2 code generator will generate code that
276
+ * throws an exception whenever an attempt is made to assign a non-UTF-8
277
+ * byte sequence to a string field.
278
+ * Message reflection will do the same.
279
+ * However, an extension field still accepts non-UTF-8 byte sequences.
280
+ * This option has no effect on when used with the lite runtime.
281
+ */
282
+ javaStringCheckUtf8: boolean;
283
+ optimizeFor: FileOptions_OptimizeMode;
284
+ /**
285
+ * Sets the Go package where structs generated from this .proto will be
286
+ * placed. If omitted, the Go package will be derived from the following:
287
+ * - The basename of the package import path, if provided.
288
+ * - Otherwise, the package statement in the .proto file, if present.
289
+ * - Otherwise, the basename of the .proto file, without extension.
290
+ */
291
+ goPackage: string;
292
+ /**
293
+ * Should generic services be generated in each language? "Generic" services
294
+ * are not specific to any particular RPC system. They are generated by the
295
+ * main code generators in each language (without additional plugins).
296
+ * Generic services were the only kind of service generation supported by
297
+ * early versions of google.protobuf.
298
+ *
299
+ * Generic services are now considered deprecated in favor of using plugins
300
+ * that generate code specific to your particular RPC system. Therefore,
301
+ * these default to false. Old code which depends on generic services should
302
+ * explicitly set them to true.
303
+ */
304
+ ccGenericServices: boolean;
305
+ javaGenericServices: boolean;
306
+ pyGenericServices: boolean;
307
+ phpGenericServices: boolean;
308
+ /**
309
+ * Is this file deprecated?
310
+ * Depending on the target platform, this can emit Deprecated annotations
311
+ * for everything in the file, or it will be completely ignored; in the very
312
+ * least, this is a formalization for deprecating files.
313
+ */
314
+ deprecated: boolean;
315
+ /**
316
+ * Enables the use of arenas for the proto messages in this file. This applies
317
+ * only to generated classes for C++.
318
+ */
319
+ ccEnableArenas: boolean;
320
+ /**
321
+ * Sets the objective c class prefix which is prepended to all objective c
322
+ * generated classes from this .proto. There is no default.
323
+ */
324
+ objcClassPrefix: string;
325
+ /** Namespace for generated classes; defaults to the package. */
326
+ csharpNamespace: string;
327
+ /**
328
+ * By default Swift generators will take the proto package and CamelCase it
329
+ * replacing '.' with underscore and use that to prefix the types/symbols
330
+ * defined. When this options is provided, they will use this value instead
331
+ * to prefix the types/symbols defined.
332
+ */
333
+ swiftPrefix: string;
334
+ /**
335
+ * Sets the php class prefix which is prepended to all php generated classes
336
+ * from this .proto. Default is empty.
337
+ */
338
+ phpClassPrefix: string;
339
+ /**
340
+ * Use this option to change the namespace of php generated classes. Default
341
+ * is empty. When this option is empty, the package name will be used for
342
+ * determining the namespace.
343
+ */
344
+ phpNamespace: string;
345
+ /**
346
+ * Use this option to change the namespace of php generated metadata classes.
347
+ * Default is empty. When this option is empty, the proto file name will be used
348
+ * for determining the namespace.
349
+ */
350
+ phpMetadataNamespace: string;
351
+ /**
352
+ * Use this option to change the package of ruby generated classes. Default
353
+ * is empty. When this option is not set, the package name will be used for
354
+ * determining the ruby package.
355
+ */
356
+ rubyPackage: string;
357
+ /**
358
+ * The parser stores options it doesn't recognize here.
359
+ * See the documentation for the "Options" section above.
360
+ */
361
+ uninterpretedOption: UninterpretedOption[];
362
+ }
363
+ /** Generated classes can be optimized for speed or code size. */
364
+ export declare enum FileOptions_OptimizeMode {
365
+ /** SPEED - Generate complete code for parsing, serialization, */
366
+ SPEED = 1,
367
+ /** CODE_SIZE - etc. */
368
+ CODE_SIZE = 2,
369
+ /** LITE_RUNTIME - Generate code using MessageLite and the lite runtime. */
370
+ LITE_RUNTIME = 3,
371
+ UNRECOGNIZED = -1
372
+ }
373
+ export declare function fileOptions_OptimizeModeFromJSON(object: any): FileOptions_OptimizeMode;
374
+ export declare function fileOptions_OptimizeModeToJSON(object: FileOptions_OptimizeMode): string;
375
+ export interface MessageOptions {
376
+ /**
377
+ * Set true to use the old proto1 MessageSet wire format for extensions.
378
+ * This is provided for backwards-compatibility with the MessageSet wire
379
+ * format. You should not use this for any other reason: It's less
380
+ * efficient, has fewer features, and is more complicated.
381
+ *
382
+ * The message must be defined exactly as follows:
383
+ * message Foo {
384
+ * option message_set_wire_format = true;
385
+ * extensions 4 to max;
386
+ * }
387
+ * Note that the message cannot have any defined fields; MessageSets only
388
+ * have extensions.
389
+ *
390
+ * All extensions of your type must be singular messages; e.g. they cannot
391
+ * be int32s, enums, or repeated messages.
392
+ *
393
+ * Because this is an option, the above two restrictions are not enforced by
394
+ * the protocol compiler.
395
+ */
396
+ messageSetWireFormat: boolean;
397
+ /**
398
+ * Disables the generation of the standard "descriptor()" accessor, which can
399
+ * conflict with a field of the same name. This is meant to make migration
400
+ * from proto1 easier; new code should avoid fields named "descriptor".
401
+ */
402
+ noStandardDescriptorAccessor: boolean;
403
+ /**
404
+ * Is this message deprecated?
405
+ * Depending on the target platform, this can emit Deprecated annotations
406
+ * for the message, or it will be completely ignored; in the very least,
407
+ * this is a formalization for deprecating messages.
408
+ */
409
+ deprecated: boolean;
410
+ /**
411
+ * Whether the message is an automatically generated map entry type for the
412
+ * maps field.
413
+ *
414
+ * For maps fields:
415
+ * map<KeyType, ValueType> map_field = 1;
416
+ * The parsed descriptor looks like:
417
+ * message MapFieldEntry {
418
+ * option map_entry = true;
419
+ * optional KeyType key = 1;
420
+ * optional ValueType value = 2;
421
+ * }
422
+ * repeated MapFieldEntry map_field = 1;
423
+ *
424
+ * Implementations may choose not to generate the map_entry=true message, but
425
+ * use a native map in the target language to hold the keys and values.
426
+ * The reflection APIs in such implementions still need to work as
427
+ * if the field is a repeated message field.
428
+ *
429
+ * NOTE: Do not set the option in .proto files. Always use the maps syntax
430
+ * instead. The option should only be implicitly set by the proto compiler
431
+ * parser.
432
+ */
433
+ mapEntry: boolean;
434
+ /** The parser stores options it doesn't recognize here. See above. */
435
+ uninterpretedOption: UninterpretedOption[];
436
+ }
437
+ export interface FieldOptions {
438
+ /**
439
+ * The ctype option instructs the C++ code generator to use a different
440
+ * representation of the field than it normally would. See the specific
441
+ * options below. This option is not yet implemented in the open source
442
+ * release -- sorry, we'll try to include it in a future version!
443
+ */
444
+ ctype: FieldOptions_CType;
445
+ /**
446
+ * The packed option can be enabled for repeated primitive fields to enable
447
+ * a more efficient representation on the wire. Rather than repeatedly
448
+ * writing the tag and type for each element, the entire array is encoded as
449
+ * a single length-delimited blob. In proto3, only explicit setting it to
450
+ * false will avoid using packed encoding.
451
+ */
452
+ packed: boolean;
453
+ /**
454
+ * The jstype option determines the JavaScript type used for values of the
455
+ * field. The option is permitted only for 64 bit integral and fixed types
456
+ * (int64, uint64, sint64, fixed64, sfixed64). A field with jstype JS_STRING
457
+ * is represented as JavaScript string, which avoids loss of precision that
458
+ * can happen when a large value is converted to a floating point JavaScript.
459
+ * Specifying JS_NUMBER for the jstype causes the generated JavaScript code to
460
+ * use the JavaScript "number" type. The behavior of the default option
461
+ * JS_NORMAL is implementation dependent.
462
+ *
463
+ * This option is an enum to permit additional types to be added, e.g.
464
+ * goog.math.Integer.
465
+ */
466
+ jstype: FieldOptions_JSType;
467
+ /**
468
+ * Should this field be parsed lazily? Lazy applies only to message-type
469
+ * fields. It means that when the outer message is initially parsed, the
470
+ * inner message's contents will not be parsed but instead stored in encoded
471
+ * form. The inner message will actually be parsed when it is first accessed.
472
+ *
473
+ * This is only a hint. Implementations are free to choose whether to use
474
+ * eager or lazy parsing regardless of the value of this option. However,
475
+ * setting this option true suggests that the protocol author believes that
476
+ * using lazy parsing on this field is worth the additional bookkeeping
477
+ * overhead typically needed to implement it.
478
+ *
479
+ * This option does not affect the public interface of any generated code;
480
+ * all method signatures remain the same. Furthermore, thread-safety of the
481
+ * interface is not affected by this option; const methods remain safe to
482
+ * call from multiple threads concurrently, while non-const methods continue
483
+ * to require exclusive access.
484
+ *
485
+ *
486
+ * Note that implementations may choose not to check required fields within
487
+ * a lazy sub-message. That is, calling IsInitialized() on the outer message
488
+ * may return true even if the inner message has missing required fields.
489
+ * This is necessary because otherwise the inner message would have to be
490
+ * parsed in order to perform the check, defeating the purpose of lazy
491
+ * parsing. An implementation which chooses not to check required fields
492
+ * must be consistent about it. That is, for any particular sub-message, the
493
+ * implementation must either *always* check its required fields, or *never*
494
+ * check its required fields, regardless of whether or not the message has
495
+ * been parsed.
496
+ */
497
+ lazy: boolean;
498
+ /**
499
+ * Is this field deprecated?
500
+ * Depending on the target platform, this can emit Deprecated annotations
501
+ * for accessors, or it will be completely ignored; in the very least, this
502
+ * is a formalization for deprecating fields.
503
+ */
504
+ deprecated: boolean;
505
+ /** For Google-internal migration only. Do not use. */
506
+ weak: boolean;
507
+ /** The parser stores options it doesn't recognize here. See above. */
508
+ uninterpretedOption: UninterpretedOption[];
509
+ }
510
+ export declare enum FieldOptions_CType {
511
+ /** STRING - Default mode. */
512
+ STRING = 0,
513
+ CORD = 1,
514
+ STRING_PIECE = 2,
515
+ UNRECOGNIZED = -1
516
+ }
517
+ export declare function fieldOptions_CTypeFromJSON(object: any): FieldOptions_CType;
518
+ export declare function fieldOptions_CTypeToJSON(object: FieldOptions_CType): string;
519
+ export declare enum FieldOptions_JSType {
520
+ /** JS_NORMAL - Use the default type. */
521
+ JS_NORMAL = 0,
522
+ /** JS_STRING - Use JavaScript strings. */
523
+ JS_STRING = 1,
524
+ /** JS_NUMBER - Use JavaScript numbers. */
525
+ JS_NUMBER = 2,
526
+ UNRECOGNIZED = -1
527
+ }
528
+ export declare function fieldOptions_JSTypeFromJSON(object: any): FieldOptions_JSType;
529
+ export declare function fieldOptions_JSTypeToJSON(object: FieldOptions_JSType): string;
530
+ export interface OneofOptions {
531
+ /** The parser stores options it doesn't recognize here. See above. */
532
+ uninterpretedOption: UninterpretedOption[];
533
+ }
534
+ export interface EnumOptions {
535
+ /**
536
+ * Set this option to true to allow mapping different tag names to the same
537
+ * value.
538
+ */
539
+ allowAlias: boolean;
540
+ /**
541
+ * Is this enum deprecated?
542
+ * Depending on the target platform, this can emit Deprecated annotations
543
+ * for the enum, or it will be completely ignored; in the very least, this
544
+ * is a formalization for deprecating enums.
545
+ */
546
+ deprecated: boolean;
547
+ /** The parser stores options it doesn't recognize here. See above. */
548
+ uninterpretedOption: UninterpretedOption[];
549
+ }
550
+ export interface EnumValueOptions {
551
+ /**
552
+ * Is this enum value deprecated?
553
+ * Depending on the target platform, this can emit Deprecated annotations
554
+ * for the enum value, or it will be completely ignored; in the very least,
555
+ * this is a formalization for deprecating enum values.
556
+ */
557
+ deprecated: boolean;
558
+ /** The parser stores options it doesn't recognize here. See above. */
559
+ uninterpretedOption: UninterpretedOption[];
560
+ }
561
+ export interface ServiceOptions {
562
+ /**
563
+ * Is this service deprecated?
564
+ * Depending on the target platform, this can emit Deprecated annotations
565
+ * for the service, or it will be completely ignored; in the very least,
566
+ * this is a formalization for deprecating services.
567
+ */
568
+ deprecated: boolean;
569
+ /** The parser stores options it doesn't recognize here. See above. */
570
+ uninterpretedOption: UninterpretedOption[];
571
+ }
572
+ export interface MethodOptions {
573
+ /**
574
+ * Is this method deprecated?
575
+ * Depending on the target platform, this can emit Deprecated annotations
576
+ * for the method, or it will be completely ignored; in the very least,
577
+ * this is a formalization for deprecating methods.
578
+ */
579
+ deprecated: boolean;
580
+ idempotencyLevel: MethodOptions_IdempotencyLevel;
581
+ /** The parser stores options it doesn't recognize here. See above. */
582
+ uninterpretedOption: UninterpretedOption[];
583
+ }
584
+ /**
585
+ * Is this method side-effect-free (or safe in HTTP parlance), or idempotent,
586
+ * or neither? HTTP based RPC implementation may choose GET verb for safe
587
+ * methods, and PUT verb for idempotent methods instead of the default POST.
588
+ */
589
+ export declare enum MethodOptions_IdempotencyLevel {
590
+ IDEMPOTENCY_UNKNOWN = 0,
591
+ /** NO_SIDE_EFFECTS - implies idempotent */
592
+ NO_SIDE_EFFECTS = 1,
593
+ /** IDEMPOTENT - idempotent, but may have side effects */
594
+ IDEMPOTENT = 2,
595
+ UNRECOGNIZED = -1
596
+ }
597
+ export declare function methodOptions_IdempotencyLevelFromJSON(object: any): MethodOptions_IdempotencyLevel;
598
+ export declare function methodOptions_IdempotencyLevelToJSON(object: MethodOptions_IdempotencyLevel): string;
599
+ /**
600
+ * A message representing a option the parser does not recognize. This only
601
+ * appears in options protos created by the compiler::Parser class.
602
+ * DescriptorPool resolves these when building Descriptor objects. Therefore,
603
+ * options protos in descriptor objects (e.g. returned by Descriptor::options(),
604
+ * or produced by Descriptor::CopyTo()) will never have UninterpretedOptions
605
+ * in them.
606
+ */
607
+ export interface UninterpretedOption {
608
+ name: UninterpretedOption_NamePart[];
609
+ /**
610
+ * The value of the uninterpreted option, in whatever type the tokenizer
611
+ * identified it as during parsing. Exactly one of these should be set.
612
+ */
613
+ identifierValue: string;
614
+ positiveIntValue: number;
615
+ negativeIntValue: number;
616
+ doubleValue: number;
617
+ stringValue: Uint8Array;
618
+ aggregateValue: string;
619
+ }
620
+ /**
621
+ * The name of the uninterpreted option. Each string represents a segment in
622
+ * a dot-separated name. is_extension is true iff a segment represents an
623
+ * extension (denoted with parentheses in options specs in .proto files).
624
+ * E.g.,{ ["foo", false], ["bar.baz", true], ["qux", false] } represents
625
+ * "foo.(bar.baz).qux".
626
+ */
627
+ export interface UninterpretedOption_NamePart {
628
+ namePart: string;
629
+ isExtension: boolean;
630
+ }
631
+ /**
632
+ * Encapsulates information about the original source file from which a
633
+ * FileDescriptorProto was generated.
634
+ */
635
+ export interface SourceCodeInfo {
636
+ /**
637
+ * A Location identifies a piece of source code in a .proto file which
638
+ * corresponds to a particular definition. This information is intended
639
+ * to be useful to IDEs, code indexers, documentation generators, and similar
640
+ * tools.
641
+ *
642
+ * For example, say we have a file like:
643
+ * message Foo {
644
+ * optional string foo = 1;
645
+ * }
646
+ * Let's look at just the field definition:
647
+ * optional string foo = 1;
648
+ * ^ ^^ ^^ ^ ^^^
649
+ * a bc de f ghi
650
+ * We have the following locations:
651
+ * span path represents
652
+ * [a,i) [ 4, 0, 2, 0 ] The whole field definition.
653
+ * [a,b) [ 4, 0, 2, 0, 4 ] The label (optional).
654
+ * [c,d) [ 4, 0, 2, 0, 5 ] The type (string).
655
+ * [e,f) [ 4, 0, 2, 0, 1 ] The name (foo).
656
+ * [g,h) [ 4, 0, 2, 0, 3 ] The number (1).
657
+ *
658
+ * Notes:
659
+ * - A location may refer to a repeated field itself (i.e. not to any
660
+ * particular index within it). This is used whenever a set of elements are
661
+ * logically enclosed in a single code segment. For example, an entire
662
+ * extend block (possibly containing multiple extension definitions) will
663
+ * have an outer location whose path refers to the "extensions" repeated
664
+ * field without an index.
665
+ * - Multiple locations may have the same path. This happens when a single
666
+ * logical declaration is spread out across multiple places. The most
667
+ * obvious example is the "extend" block again -- there may be multiple
668
+ * extend blocks in the same scope, each of which will have the same path.
669
+ * - A location's span is not always a subset of its parent's span. For
670
+ * example, the "extendee" of an extension declaration appears at the
671
+ * beginning of the "extend" block and is shared by all extensions within
672
+ * the block.
673
+ * - Just because a location's span is a subset of some other location's span
674
+ * does not mean that it is a descendent. For example, a "group" defines
675
+ * both a type and a field in a single declaration. Thus, the locations
676
+ * corresponding to the type and field and their components will overlap.
677
+ * - Code which tries to interpret locations should probably be designed to
678
+ * ignore those that it doesn't understand, as more types of locations could
679
+ * be recorded in the future.
680
+ */
681
+ location: SourceCodeInfo_Location[];
682
+ }
683
+ export interface SourceCodeInfo_Location {
684
+ /**
685
+ * Identifies which part of the FileDescriptorProto was defined at this
686
+ * location.
687
+ *
688
+ * Each element is a field number or an index. They form a path from
689
+ * the root FileDescriptorProto to the place where the definition. For
690
+ * example, this path:
691
+ * [ 4, 3, 2, 7, 1 ]
692
+ * refers to:
693
+ * file.message_type(3) // 4, 3
694
+ * .field(7) // 2, 7
695
+ * .name() // 1
696
+ * This is because FileDescriptorProto.message_type has field number 4:
697
+ * repeated DescriptorProto message_type = 4;
698
+ * and DescriptorProto.field has field number 2:
699
+ * repeated FieldDescriptorProto field = 2;
700
+ * and FieldDescriptorProto.name has field number 1:
701
+ * optional string name = 1;
702
+ *
703
+ * Thus, the above path gives the location of a field name. If we removed
704
+ * the last element:
705
+ * [ 4, 3, 2, 7 ]
706
+ * this path refers to the whole field declaration (from the beginning
707
+ * of the label to the terminating semicolon).
708
+ */
709
+ path: number[];
710
+ /**
711
+ * Always has exactly three or four elements: start line, start column,
712
+ * end line (optional, otherwise assumed same as start line), end column.
713
+ * These are packed into a single field for efficiency. Note that line
714
+ * and column numbers are zero-based -- typically you will want to add
715
+ * 1 to each before displaying to a user.
716
+ */
717
+ span: number[];
718
+ /**
719
+ * If this SourceCodeInfo represents a complete declaration, these are any
720
+ * comments appearing before and after the declaration which appear to be
721
+ * attached to the declaration.
722
+ *
723
+ * A series of line comments appearing on consecutive lines, with no other
724
+ * tokens appearing on those lines, will be treated as a single comment.
725
+ *
726
+ * leading_detached_comments will keep paragraphs of comments that appear
727
+ * before (but not connected to) the current element. Each paragraph,
728
+ * separated by empty lines, will be one comment element in the repeated
729
+ * field.
730
+ *
731
+ * Only the comment content is provided; comment markers (e.g. //) are
732
+ * stripped out. For block comments, leading whitespace and an asterisk
733
+ * will be stripped from the beginning of each line other than the first.
734
+ * Newlines are included in the output.
735
+ *
736
+ * Examples:
737
+ *
738
+ * optional int32 foo = 1; // Comment attached to foo.
739
+ * // Comment attached to bar.
740
+ * optional int32 bar = 2;
741
+ *
742
+ * optional string baz = 3;
743
+ * // Comment attached to baz.
744
+ * // Another line attached to baz.
745
+ *
746
+ * // Comment attached to qux.
747
+ * //
748
+ * // Another line attached to qux.
749
+ * optional double qux = 4;
750
+ *
751
+ * // Detached comment for corge. This is not leading or trailing comments
752
+ * // to qux or corge because there are blank lines separating it from
753
+ * // both.
754
+ *
755
+ * // Detached comment for corge paragraph 2.
756
+ *
757
+ * optional string corge = 5;
758
+ * /* Block comment attached
759
+ * * to corge. Leading asterisks
760
+ * * will be removed. * /
761
+ * /* Block comment attached to
762
+ * * grault. * /
763
+ * optional int32 grault = 6;
764
+ *
765
+ * // ignored detached comments.
766
+ */
767
+ leadingComments: string;
768
+ trailingComments: string;
769
+ leadingDetachedComments: string[];
770
+ }
771
+ /**
772
+ * Describes the relationship between generated code and its original source
773
+ * file. A GeneratedCodeInfo message is associated with only one generated
774
+ * source file, but may contain references to different source .proto files.
775
+ */
776
+ export interface GeneratedCodeInfo {
777
+ /**
778
+ * An Annotation connects some span of text in generated code to an element
779
+ * of its generating .proto file.
780
+ */
781
+ annotation: GeneratedCodeInfo_Annotation[];
782
+ }
783
+ export interface GeneratedCodeInfo_Annotation {
784
+ /**
785
+ * Identifies the element in the original source .proto file. This field
786
+ * is formatted the same as SourceCodeInfo.Location.path.
787
+ */
788
+ path: number[];
789
+ /** Identifies the filesystem path to the original source .proto. */
790
+ sourceFile: string;
791
+ /**
792
+ * Identifies the starting offset in bytes in the generated code
793
+ * that relates to the identified object.
794
+ */
795
+ begin: number;
796
+ /**
797
+ * Identifies the ending offset in bytes in the generated code that
798
+ * relates to the identified offset. The end offset should be one past
799
+ * the last relevant byte (so the length of the text = end - begin).
800
+ */
801
+ end: number;
802
+ }
803
+ export declare const FileDescriptorSet: {
804
+ encode(message: FileDescriptorSet, writer?: Writer): Writer;
805
+ decode(input: Reader | Uint8Array, length?: number): FileDescriptorSet;
806
+ fromJSON(object: any): FileDescriptorSet;
807
+ toJSON(message: FileDescriptorSet): unknown;
808
+ fromPartial(object: DeepPartial<FileDescriptorSet>): FileDescriptorSet;
809
+ };
810
+ export declare const FileDescriptorProto: {
811
+ encode(message: FileDescriptorProto, writer?: Writer): Writer;
812
+ decode(input: Reader | Uint8Array, length?: number): FileDescriptorProto;
813
+ fromJSON(object: any): FileDescriptorProto;
814
+ toJSON(message: FileDescriptorProto): unknown;
815
+ fromPartial(object: DeepPartial<FileDescriptorProto>): FileDescriptorProto;
816
+ };
817
+ export declare const DescriptorProto: {
818
+ encode(message: DescriptorProto, writer?: Writer): Writer;
819
+ decode(input: Reader | Uint8Array, length?: number): DescriptorProto;
820
+ fromJSON(object: any): DescriptorProto;
821
+ toJSON(message: DescriptorProto): unknown;
822
+ fromPartial(object: DeepPartial<DescriptorProto>): DescriptorProto;
823
+ };
824
+ export declare const DescriptorProto_ExtensionRange: {
825
+ encode(message: DescriptorProto_ExtensionRange, writer?: Writer): Writer;
826
+ decode(input: Reader | Uint8Array, length?: number): DescriptorProto_ExtensionRange;
827
+ fromJSON(object: any): DescriptorProto_ExtensionRange;
828
+ toJSON(message: DescriptorProto_ExtensionRange): unknown;
829
+ fromPartial(object: DeepPartial<DescriptorProto_ExtensionRange>): DescriptorProto_ExtensionRange;
830
+ };
831
+ export declare const DescriptorProto_ReservedRange: {
832
+ encode(message: DescriptorProto_ReservedRange, writer?: Writer): Writer;
833
+ decode(input: Reader | Uint8Array, length?: number): DescriptorProto_ReservedRange;
834
+ fromJSON(object: any): DescriptorProto_ReservedRange;
835
+ toJSON(message: DescriptorProto_ReservedRange): unknown;
836
+ fromPartial(object: DeepPartial<DescriptorProto_ReservedRange>): DescriptorProto_ReservedRange;
837
+ };
838
+ export declare const ExtensionRangeOptions: {
839
+ encode(message: ExtensionRangeOptions, writer?: Writer): Writer;
840
+ decode(input: Reader | Uint8Array, length?: number): ExtensionRangeOptions;
841
+ fromJSON(object: any): ExtensionRangeOptions;
842
+ toJSON(message: ExtensionRangeOptions): unknown;
843
+ fromPartial(object: DeepPartial<ExtensionRangeOptions>): ExtensionRangeOptions;
844
+ };
845
+ export declare const FieldDescriptorProto: {
846
+ encode(message: FieldDescriptorProto, writer?: Writer): Writer;
847
+ decode(input: Reader | Uint8Array, length?: number): FieldDescriptorProto;
848
+ fromJSON(object: any): FieldDescriptorProto;
849
+ toJSON(message: FieldDescriptorProto): unknown;
850
+ fromPartial(object: DeepPartial<FieldDescriptorProto>): FieldDescriptorProto;
851
+ };
852
+ export declare const OneofDescriptorProto: {
853
+ encode(message: OneofDescriptorProto, writer?: Writer): Writer;
854
+ decode(input: Reader | Uint8Array, length?: number): OneofDescriptorProto;
855
+ fromJSON(object: any): OneofDescriptorProto;
856
+ toJSON(message: OneofDescriptorProto): unknown;
857
+ fromPartial(object: DeepPartial<OneofDescriptorProto>): OneofDescriptorProto;
858
+ };
859
+ export declare const EnumDescriptorProto: {
860
+ encode(message: EnumDescriptorProto, writer?: Writer): Writer;
861
+ decode(input: Reader | Uint8Array, length?: number): EnumDescriptorProto;
862
+ fromJSON(object: any): EnumDescriptorProto;
863
+ toJSON(message: EnumDescriptorProto): unknown;
864
+ fromPartial(object: DeepPartial<EnumDescriptorProto>): EnumDescriptorProto;
865
+ };
866
+ export declare const EnumDescriptorProto_EnumReservedRange: {
867
+ encode(message: EnumDescriptorProto_EnumReservedRange, writer?: Writer): Writer;
868
+ decode(input: Reader | Uint8Array, length?: number): EnumDescriptorProto_EnumReservedRange;
869
+ fromJSON(object: any): EnumDescriptorProto_EnumReservedRange;
870
+ toJSON(message: EnumDescriptorProto_EnumReservedRange): unknown;
871
+ fromPartial(object: DeepPartial<EnumDescriptorProto_EnumReservedRange>): EnumDescriptorProto_EnumReservedRange;
872
+ };
873
+ export declare const EnumValueDescriptorProto: {
874
+ encode(message: EnumValueDescriptorProto, writer?: Writer): Writer;
875
+ decode(input: Reader | Uint8Array, length?: number): EnumValueDescriptorProto;
876
+ fromJSON(object: any): EnumValueDescriptorProto;
877
+ toJSON(message: EnumValueDescriptorProto): unknown;
878
+ fromPartial(object: DeepPartial<EnumValueDescriptorProto>): EnumValueDescriptorProto;
879
+ };
880
+ export declare const ServiceDescriptorProto: {
881
+ encode(message: ServiceDescriptorProto, writer?: Writer): Writer;
882
+ decode(input: Reader | Uint8Array, length?: number): ServiceDescriptorProto;
883
+ fromJSON(object: any): ServiceDescriptorProto;
884
+ toJSON(message: ServiceDescriptorProto): unknown;
885
+ fromPartial(object: DeepPartial<ServiceDescriptorProto>): ServiceDescriptorProto;
886
+ };
887
+ export declare const MethodDescriptorProto: {
888
+ encode(message: MethodDescriptorProto, writer?: Writer): Writer;
889
+ decode(input: Reader | Uint8Array, length?: number): MethodDescriptorProto;
890
+ fromJSON(object: any): MethodDescriptorProto;
891
+ toJSON(message: MethodDescriptorProto): unknown;
892
+ fromPartial(object: DeepPartial<MethodDescriptorProto>): MethodDescriptorProto;
893
+ };
894
+ export declare const FileOptions: {
895
+ encode(message: FileOptions, writer?: Writer): Writer;
896
+ decode(input: Reader | Uint8Array, length?: number): FileOptions;
897
+ fromJSON(object: any): FileOptions;
898
+ toJSON(message: FileOptions): unknown;
899
+ fromPartial(object: DeepPartial<FileOptions>): FileOptions;
900
+ };
901
+ export declare const MessageOptions: {
902
+ encode(message: MessageOptions, writer?: Writer): Writer;
903
+ decode(input: Reader | Uint8Array, length?: number): MessageOptions;
904
+ fromJSON(object: any): MessageOptions;
905
+ toJSON(message: MessageOptions): unknown;
906
+ fromPartial(object: DeepPartial<MessageOptions>): MessageOptions;
907
+ };
908
+ export declare const FieldOptions: {
909
+ encode(message: FieldOptions, writer?: Writer): Writer;
910
+ decode(input: Reader | Uint8Array, length?: number): FieldOptions;
911
+ fromJSON(object: any): FieldOptions;
912
+ toJSON(message: FieldOptions): unknown;
913
+ fromPartial(object: DeepPartial<FieldOptions>): FieldOptions;
914
+ };
915
+ export declare const OneofOptions: {
916
+ encode(message: OneofOptions, writer?: Writer): Writer;
917
+ decode(input: Reader | Uint8Array, length?: number): OneofOptions;
918
+ fromJSON(object: any): OneofOptions;
919
+ toJSON(message: OneofOptions): unknown;
920
+ fromPartial(object: DeepPartial<OneofOptions>): OneofOptions;
921
+ };
922
+ export declare const EnumOptions: {
923
+ encode(message: EnumOptions, writer?: Writer): Writer;
924
+ decode(input: Reader | Uint8Array, length?: number): EnumOptions;
925
+ fromJSON(object: any): EnumOptions;
926
+ toJSON(message: EnumOptions): unknown;
927
+ fromPartial(object: DeepPartial<EnumOptions>): EnumOptions;
928
+ };
929
+ export declare const EnumValueOptions: {
930
+ encode(message: EnumValueOptions, writer?: Writer): Writer;
931
+ decode(input: Reader | Uint8Array, length?: number): EnumValueOptions;
932
+ fromJSON(object: any): EnumValueOptions;
933
+ toJSON(message: EnumValueOptions): unknown;
934
+ fromPartial(object: DeepPartial<EnumValueOptions>): EnumValueOptions;
935
+ };
936
+ export declare const ServiceOptions: {
937
+ encode(message: ServiceOptions, writer?: Writer): Writer;
938
+ decode(input: Reader | Uint8Array, length?: number): ServiceOptions;
939
+ fromJSON(object: any): ServiceOptions;
940
+ toJSON(message: ServiceOptions): unknown;
941
+ fromPartial(object: DeepPartial<ServiceOptions>): ServiceOptions;
942
+ };
943
+ export declare const MethodOptions: {
944
+ encode(message: MethodOptions, writer?: Writer): Writer;
945
+ decode(input: Reader | Uint8Array, length?: number): MethodOptions;
946
+ fromJSON(object: any): MethodOptions;
947
+ toJSON(message: MethodOptions): unknown;
948
+ fromPartial(object: DeepPartial<MethodOptions>): MethodOptions;
949
+ };
950
+ export declare const UninterpretedOption: {
951
+ encode(message: UninterpretedOption, writer?: Writer): Writer;
952
+ decode(input: Reader | Uint8Array, length?: number): UninterpretedOption;
953
+ fromJSON(object: any): UninterpretedOption;
954
+ toJSON(message: UninterpretedOption): unknown;
955
+ fromPartial(object: DeepPartial<UninterpretedOption>): UninterpretedOption;
956
+ };
957
+ export declare const UninterpretedOption_NamePart: {
958
+ encode(message: UninterpretedOption_NamePart, writer?: Writer): Writer;
959
+ decode(input: Reader | Uint8Array, length?: number): UninterpretedOption_NamePart;
960
+ fromJSON(object: any): UninterpretedOption_NamePart;
961
+ toJSON(message: UninterpretedOption_NamePart): unknown;
962
+ fromPartial(object: DeepPartial<UninterpretedOption_NamePart>): UninterpretedOption_NamePart;
963
+ };
964
+ export declare const SourceCodeInfo: {
965
+ encode(message: SourceCodeInfo, writer?: Writer): Writer;
966
+ decode(input: Reader | Uint8Array, length?: number): SourceCodeInfo;
967
+ fromJSON(object: any): SourceCodeInfo;
968
+ toJSON(message: SourceCodeInfo): unknown;
969
+ fromPartial(object: DeepPartial<SourceCodeInfo>): SourceCodeInfo;
970
+ };
971
+ export declare const SourceCodeInfo_Location: {
972
+ encode(message: SourceCodeInfo_Location, writer?: Writer): Writer;
973
+ decode(input: Reader | Uint8Array, length?: number): SourceCodeInfo_Location;
974
+ fromJSON(object: any): SourceCodeInfo_Location;
975
+ toJSON(message: SourceCodeInfo_Location): unknown;
976
+ fromPartial(object: DeepPartial<SourceCodeInfo_Location>): SourceCodeInfo_Location;
977
+ };
978
+ export declare const GeneratedCodeInfo: {
979
+ encode(message: GeneratedCodeInfo, writer?: Writer): Writer;
980
+ decode(input: Reader | Uint8Array, length?: number): GeneratedCodeInfo;
981
+ fromJSON(object: any): GeneratedCodeInfo;
982
+ toJSON(message: GeneratedCodeInfo): unknown;
983
+ fromPartial(object: DeepPartial<GeneratedCodeInfo>): GeneratedCodeInfo;
984
+ };
985
+ export declare const GeneratedCodeInfo_Annotation: {
986
+ encode(message: GeneratedCodeInfo_Annotation, writer?: Writer): Writer;
987
+ decode(input: Reader | Uint8Array, length?: number): GeneratedCodeInfo_Annotation;
988
+ fromJSON(object: any): GeneratedCodeInfo_Annotation;
989
+ toJSON(message: GeneratedCodeInfo_Annotation): unknown;
990
+ fromPartial(object: DeepPartial<GeneratedCodeInfo_Annotation>): GeneratedCodeInfo_Annotation;
991
+ };
992
+ declare type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
993
+ export declare type DeepPartial<T> = T extends Builtin ? T : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
994
+ [K in keyof T]?: DeepPartial<T[K]>;
995
+ } : Partial<T>;
996
+ export {};