naijarea-ts 1.0.2

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.
@@ -0,0 +1,146 @@
1
+ "use strict";
2
+ // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
+ // versions:
4
+ // protoc-gen-ts_proto v2.10.0
5
+ // protoc v6.33.2
6
+ // source: google/api/field_behavior.proto
7
+ Object.defineProperty(exports, "__esModule", { value: true });
8
+ exports.FieldBehavior = exports.protobufPackage = void 0;
9
+ exports.fieldBehaviorFromJSON = fieldBehaviorFromJSON;
10
+ exports.fieldBehaviorToJSON = fieldBehaviorToJSON;
11
+ /* eslint-disable */
12
+ exports.protobufPackage = "google.api";
13
+ /**
14
+ * An indicator of the behavior of a given field (for example, that a field
15
+ * is required in requests, or given as output but ignored as input).
16
+ * This **does not** change the behavior in protocol buffers itself; it only
17
+ * denotes the behavior and may affect how API tooling handles the field.
18
+ *
19
+ * Note: This enum **may** receive new values in the future.
20
+ */
21
+ var FieldBehavior;
22
+ (function (FieldBehavior) {
23
+ /** FIELD_BEHAVIOR_UNSPECIFIED - Conventional default for enums. Do not use this. */
24
+ FieldBehavior[FieldBehavior["FIELD_BEHAVIOR_UNSPECIFIED"] = 0] = "FIELD_BEHAVIOR_UNSPECIFIED";
25
+ /**
26
+ * OPTIONAL - Specifically denotes a field as optional.
27
+ * While all fields in protocol buffers are optional, this may be specified
28
+ * for emphasis if appropriate.
29
+ */
30
+ FieldBehavior[FieldBehavior["OPTIONAL"] = 1] = "OPTIONAL";
31
+ /**
32
+ * REQUIRED - Denotes a field as required.
33
+ * This indicates that the field **must** be provided as part of the request,
34
+ * and failure to do so will cause an error (usually `INVALID_ARGUMENT`).
35
+ */
36
+ FieldBehavior[FieldBehavior["REQUIRED"] = 2] = "REQUIRED";
37
+ /**
38
+ * OUTPUT_ONLY - Denotes a field as output only.
39
+ * This indicates that the field is provided in responses, but including the
40
+ * field in a request does nothing (the server *must* ignore it and
41
+ * *must not* throw an error as a result of the field's presence).
42
+ */
43
+ FieldBehavior[FieldBehavior["OUTPUT_ONLY"] = 3] = "OUTPUT_ONLY";
44
+ /**
45
+ * INPUT_ONLY - Denotes a field as input only.
46
+ * This indicates that the field is provided in requests, and the
47
+ * corresponding field is not included in output.
48
+ */
49
+ FieldBehavior[FieldBehavior["INPUT_ONLY"] = 4] = "INPUT_ONLY";
50
+ /**
51
+ * IMMUTABLE - Denotes a field as immutable.
52
+ * This indicates that the field may be set once in a request to create a
53
+ * resource, but may not be changed thereafter.
54
+ */
55
+ FieldBehavior[FieldBehavior["IMMUTABLE"] = 5] = "IMMUTABLE";
56
+ /**
57
+ * UNORDERED_LIST - Denotes that a (repeated) field is an unordered list.
58
+ * This indicates that the service may provide the elements of the list
59
+ * in any arbitrary order, rather than the order the user originally
60
+ * provided. Additionally, the list's order may or may not be stable.
61
+ */
62
+ FieldBehavior[FieldBehavior["UNORDERED_LIST"] = 6] = "UNORDERED_LIST";
63
+ /**
64
+ * NON_EMPTY_DEFAULT - Denotes that this field returns a non-empty default value if not set.
65
+ * This indicates that if the user provides the empty value in a request,
66
+ * a non-empty value will be returned. The user will not be aware of what
67
+ * non-empty value to expect.
68
+ */
69
+ FieldBehavior[FieldBehavior["NON_EMPTY_DEFAULT"] = 7] = "NON_EMPTY_DEFAULT";
70
+ /**
71
+ * IDENTIFIER - Denotes that the field in a resource (a message annotated with
72
+ * google.api.resource) is used in the resource name to uniquely identify the
73
+ * resource. For AIP-compliant APIs, this should only be applied to the
74
+ * `name` field on the resource.
75
+ *
76
+ * This behavior should not be applied to references to other resources within
77
+ * the message.
78
+ *
79
+ * The identifier field of resources often have different field behavior
80
+ * depending on the request it is embedded in (e.g. for Create methods name
81
+ * is optional and unused, while for Update methods it is required). Instead
82
+ * of method-specific annotations, only `IDENTIFIER` is required.
83
+ */
84
+ FieldBehavior[FieldBehavior["IDENTIFIER"] = 8] = "IDENTIFIER";
85
+ FieldBehavior[FieldBehavior["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
86
+ })(FieldBehavior || (exports.FieldBehavior = FieldBehavior = {}));
87
+ function fieldBehaviorFromJSON(object) {
88
+ switch (object) {
89
+ case 0:
90
+ case "FIELD_BEHAVIOR_UNSPECIFIED":
91
+ return FieldBehavior.FIELD_BEHAVIOR_UNSPECIFIED;
92
+ case 1:
93
+ case "OPTIONAL":
94
+ return FieldBehavior.OPTIONAL;
95
+ case 2:
96
+ case "REQUIRED":
97
+ return FieldBehavior.REQUIRED;
98
+ case 3:
99
+ case "OUTPUT_ONLY":
100
+ return FieldBehavior.OUTPUT_ONLY;
101
+ case 4:
102
+ case "INPUT_ONLY":
103
+ return FieldBehavior.INPUT_ONLY;
104
+ case 5:
105
+ case "IMMUTABLE":
106
+ return FieldBehavior.IMMUTABLE;
107
+ case 6:
108
+ case "UNORDERED_LIST":
109
+ return FieldBehavior.UNORDERED_LIST;
110
+ case 7:
111
+ case "NON_EMPTY_DEFAULT":
112
+ return FieldBehavior.NON_EMPTY_DEFAULT;
113
+ case 8:
114
+ case "IDENTIFIER":
115
+ return FieldBehavior.IDENTIFIER;
116
+ case -1:
117
+ case "UNRECOGNIZED":
118
+ default:
119
+ return FieldBehavior.UNRECOGNIZED;
120
+ }
121
+ }
122
+ function fieldBehaviorToJSON(object) {
123
+ switch (object) {
124
+ case FieldBehavior.FIELD_BEHAVIOR_UNSPECIFIED:
125
+ return "FIELD_BEHAVIOR_UNSPECIFIED";
126
+ case FieldBehavior.OPTIONAL:
127
+ return "OPTIONAL";
128
+ case FieldBehavior.REQUIRED:
129
+ return "REQUIRED";
130
+ case FieldBehavior.OUTPUT_ONLY:
131
+ return "OUTPUT_ONLY";
132
+ case FieldBehavior.INPUT_ONLY:
133
+ return "INPUT_ONLY";
134
+ case FieldBehavior.IMMUTABLE:
135
+ return "IMMUTABLE";
136
+ case FieldBehavior.UNORDERED_LIST:
137
+ return "UNORDERED_LIST";
138
+ case FieldBehavior.NON_EMPTY_DEFAULT:
139
+ return "NON_EMPTY_DEFAULT";
140
+ case FieldBehavior.IDENTIFIER:
141
+ return "IDENTIFIER";
142
+ case FieldBehavior.UNRECOGNIZED:
143
+ default:
144
+ return "UNRECOGNIZED";
145
+ }
146
+ }
@@ -0,0 +1,379 @@
1
+ import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
2
+ export declare const protobufPackage = "google.api";
3
+ /**
4
+ * Defines the HTTP configuration for an API service. It contains a list of
5
+ * [HttpRule][google.api.HttpRule], each specifying the mapping of an RPC method
6
+ * to one or more HTTP REST API methods.
7
+ */
8
+ export interface Http {
9
+ /**
10
+ * A list of HTTP configuration rules that apply to individual API methods.
11
+ *
12
+ * **NOTE:** All service configuration rules follow "last one wins" order.
13
+ */
14
+ rules: HttpRule[];
15
+ /**
16
+ * When set to true, URL path parameters will be fully URI-decoded except in
17
+ * cases of single segment matches in reserved expansion, where "%2F" will be
18
+ * left encoded.
19
+ *
20
+ * The default behavior is to not decode RFC 6570 reserved characters in multi
21
+ * segment matches.
22
+ */
23
+ fullyDecodeReservedExpansion: boolean;
24
+ }
25
+ /**
26
+ * # gRPC Transcoding
27
+ *
28
+ * gRPC Transcoding is a feature for mapping between a gRPC method and one or
29
+ * more HTTP REST endpoints. It allows developers to build a single API service
30
+ * that supports both gRPC APIs and REST APIs. Many systems, including [Google
31
+ * APIs](https://github.com/googleapis/googleapis),
32
+ * [Cloud Endpoints](https://cloud.google.com/endpoints), [gRPC
33
+ * Gateway](https://github.com/grpc-ecosystem/grpc-gateway),
34
+ * and [Envoy](https://github.com/envoyproxy/envoy) proxy support this feature
35
+ * and use it for large scale production services.
36
+ *
37
+ * `HttpRule` defines the schema of the gRPC/REST mapping. The mapping specifies
38
+ * how different portions of the gRPC request message are mapped to the URL
39
+ * path, URL query parameters, and HTTP request body. It also controls how the
40
+ * gRPC response message is mapped to the HTTP response body. `HttpRule` is
41
+ * typically specified as an `google.api.http` annotation on the gRPC method.
42
+ *
43
+ * Each mapping specifies a URL path template and an HTTP method. The path
44
+ * template may refer to one or more fields in the gRPC request message, as long
45
+ * as each field is a non-repeated field with a primitive (non-message) type.
46
+ * The path template controls how fields of the request message are mapped to
47
+ * the URL path.
48
+ *
49
+ * Example:
50
+ *
51
+ * service Messaging {
52
+ * rpc GetMessage(GetMessageRequest) returns (Message) {
53
+ * option (google.api.http) = {
54
+ * get: "/v1/{name=messages/*}"
55
+ * };
56
+ * }
57
+ * }
58
+ * message GetMessageRequest {
59
+ * string name = 1; // Mapped to URL path.
60
+ * }
61
+ * message Message {
62
+ * string text = 1; // The resource content.
63
+ * }
64
+ *
65
+ * This enables an HTTP REST to gRPC mapping as below:
66
+ *
67
+ * HTTP | gRPC
68
+ * -----|-----
69
+ * `GET /v1/messages/123456` | `GetMessage(name: "messages/123456")`
70
+ *
71
+ * Any fields in the request message which are not bound by the path template
72
+ * automatically become HTTP query parameters if there is no HTTP request body.
73
+ * For example:
74
+ *
75
+ * service Messaging {
76
+ * rpc GetMessage(GetMessageRequest) returns (Message) {
77
+ * option (google.api.http) = {
78
+ * get:"/v1/messages/{message_id}"
79
+ * };
80
+ * }
81
+ * }
82
+ * message GetMessageRequest {
83
+ * message SubMessage {
84
+ * string subfield = 1;
85
+ * }
86
+ * string message_id = 1; // Mapped to URL path.
87
+ * int64 revision = 2; // Mapped to URL query parameter `revision`.
88
+ * SubMessage sub = 3; // Mapped to URL query parameter `sub.subfield`.
89
+ * }
90
+ *
91
+ * This enables a HTTP JSON to RPC mapping as below:
92
+ *
93
+ * HTTP | gRPC
94
+ * -----|-----
95
+ * `GET /v1/messages/123456?revision=2&sub.subfield=foo` |
96
+ * `GetMessage(message_id: "123456" revision: 2 sub: SubMessage(subfield:
97
+ * "foo"))`
98
+ *
99
+ * Note that fields which are mapped to URL query parameters must have a
100
+ * primitive type or a repeated primitive type or a non-repeated message type.
101
+ * In the case of a repeated type, the parameter can be repeated in the URL
102
+ * as `...?param=A&param=B`. In the case of a message type, each field of the
103
+ * message is mapped to a separate parameter, such as
104
+ * `...?foo.a=A&foo.b=B&foo.c=C`.
105
+ *
106
+ * For HTTP methods that allow a request body, the `body` field
107
+ * specifies the mapping. Consider a REST update method on the
108
+ * message resource collection:
109
+ *
110
+ * service Messaging {
111
+ * rpc UpdateMessage(UpdateMessageRequest) returns (Message) {
112
+ * option (google.api.http) = {
113
+ * patch: "/v1/messages/{message_id}"
114
+ * body: "message"
115
+ * };
116
+ * }
117
+ * }
118
+ * message UpdateMessageRequest {
119
+ * string message_id = 1; // mapped to the URL
120
+ * Message message = 2; // mapped to the body
121
+ * }
122
+ *
123
+ * The following HTTP JSON to RPC mapping is enabled, where the
124
+ * representation of the JSON in the request body is determined by
125
+ * protos JSON encoding:
126
+ *
127
+ * HTTP | gRPC
128
+ * -----|-----
129
+ * `PATCH /v1/messages/123456 { "text": "Hi!" }` | `UpdateMessage(message_id:
130
+ * "123456" message { text: "Hi!" })`
131
+ *
132
+ * The special name `*` can be used in the body mapping to define that
133
+ * every field not bound by the path template should be mapped to the
134
+ * request body. This enables the following alternative definition of
135
+ * the update method:
136
+ *
137
+ * service Messaging {
138
+ * rpc UpdateMessage(Message) returns (Message) {
139
+ * option (google.api.http) = {
140
+ * patch: "/v1/messages/{message_id}"
141
+ * body: "*"
142
+ * };
143
+ * }
144
+ * }
145
+ * message Message {
146
+ * string message_id = 1;
147
+ * string text = 2;
148
+ * }
149
+ *
150
+ * The following HTTP JSON to RPC mapping is enabled:
151
+ *
152
+ * HTTP | gRPC
153
+ * -----|-----
154
+ * `PATCH /v1/messages/123456 { "text": "Hi!" }` | `UpdateMessage(message_id:
155
+ * "123456" text: "Hi!")`
156
+ *
157
+ * Note that when using `*` in the body mapping, it is not possible to
158
+ * have HTTP parameters, as all fields not bound by the path end in
159
+ * the body. This makes this option more rarely used in practice when
160
+ * defining REST APIs. The common usage of `*` is in custom methods
161
+ * which don't use the URL at all for transferring data.
162
+ *
163
+ * It is possible to define multiple HTTP methods for one RPC by using
164
+ * the `additional_bindings` option. Example:
165
+ *
166
+ * service Messaging {
167
+ * rpc GetMessage(GetMessageRequest) returns (Message) {
168
+ * option (google.api.http) = {
169
+ * get: "/v1/messages/{message_id}"
170
+ * additional_bindings {
171
+ * get: "/v1/users/{user_id}/messages/{message_id}"
172
+ * }
173
+ * };
174
+ * }
175
+ * }
176
+ * message GetMessageRequest {
177
+ * string message_id = 1;
178
+ * string user_id = 2;
179
+ * }
180
+ *
181
+ * This enables the following two alternative HTTP JSON to RPC mappings:
182
+ *
183
+ * HTTP | gRPC
184
+ * -----|-----
185
+ * `GET /v1/messages/123456` | `GetMessage(message_id: "123456")`
186
+ * `GET /v1/users/me/messages/123456` | `GetMessage(user_id: "me" message_id:
187
+ * "123456")`
188
+ *
189
+ * ## Rules for HTTP mapping
190
+ *
191
+ * 1. Leaf request fields (recursive expansion nested messages in the request
192
+ * message) are classified into three categories:
193
+ * - Fields referred by the path template. They are passed via the URL path.
194
+ * - Fields referred by the [HttpRule.body][google.api.HttpRule.body]. They
195
+ * are passed via the HTTP
196
+ * request body.
197
+ * - All other fields are passed via the URL query parameters, and the
198
+ * parameter name is the field path in the request message. A repeated
199
+ * field can be represented as multiple query parameters under the same
200
+ * name.
201
+ * 2. If [HttpRule.body][google.api.HttpRule.body] is "*", there is no URL
202
+ * query parameter, all fields
203
+ * are passed via URL path and HTTP request body.
204
+ * 3. If [HttpRule.body][google.api.HttpRule.body] is omitted, there is no HTTP
205
+ * request body, all
206
+ * fields are passed via URL path and URL query parameters.
207
+ *
208
+ * ### Path template syntax
209
+ *
210
+ * Template = "/" Segments [ Verb ] ;
211
+ * Segments = Segment { "/" Segment } ;
212
+ * Segment = "*" | "**" | LITERAL | Variable ;
213
+ * Variable = "{" FieldPath [ "=" Segments ] "}" ;
214
+ * FieldPath = IDENT { "." IDENT } ;
215
+ * Verb = ":" LITERAL ;
216
+ *
217
+ * The syntax `*` matches a single URL path segment. The syntax `**` matches
218
+ * zero or more URL path segments, which must be the last part of the URL path
219
+ * except the `Verb`.
220
+ *
221
+ * The syntax `Variable` matches part of the URL path as specified by its
222
+ * template. A variable template must not contain other variables. If a variable
223
+ * matches a single path segment, its template may be omitted, e.g. `{var}`
224
+ * is equivalent to `{var=*}`.
225
+ *
226
+ * The syntax `LITERAL` matches literal text in the URL path. If the `LITERAL`
227
+ * contains any reserved character, such characters should be percent-encoded
228
+ * before the matching.
229
+ *
230
+ * If a variable contains exactly one path segment, such as `"{var}"` or
231
+ * `"{var=*}"`, when such a variable is expanded into a URL path on the client
232
+ * side, all characters except `[-_.~0-9a-zA-Z]` are percent-encoded. The
233
+ * server side does the reverse decoding. Such variables show up in the
234
+ * [Discovery
235
+ * Document](https://developers.google.com/discovery/v1/reference/apis) as
236
+ * `{var}`.
237
+ *
238
+ * If a variable contains multiple path segments, such as `"{var=foo/*}"`
239
+ * or `"{var=**}"`, when such a variable is expanded into a URL path on the
240
+ * client side, all characters except `[-_.~/0-9a-zA-Z]` are percent-encoded.
241
+ * The server side does the reverse decoding, except "%2F" and "%2f" are left
242
+ * unchanged. Such variables show up in the
243
+ * [Discovery
244
+ * Document](https://developers.google.com/discovery/v1/reference/apis) as
245
+ * `{+var}`.
246
+ *
247
+ * ## Using gRPC API Service Configuration
248
+ *
249
+ * gRPC API Service Configuration (service config) is a configuration language
250
+ * for configuring a gRPC service to become a user-facing product. The
251
+ * service config is simply the YAML representation of the `google.api.Service`
252
+ * proto message.
253
+ *
254
+ * As an alternative to annotating your proto file, you can configure gRPC
255
+ * transcoding in your service config YAML files. You do this by specifying a
256
+ * `HttpRule` that maps the gRPC method to a REST endpoint, achieving the same
257
+ * effect as the proto annotation. This can be particularly useful if you
258
+ * have a proto that is reused in multiple services. Note that any transcoding
259
+ * specified in the service config will override any matching transcoding
260
+ * configuration in the proto.
261
+ *
262
+ * Example:
263
+ *
264
+ * http:
265
+ * rules:
266
+ * # Selects a gRPC method and applies HttpRule to it.
267
+ * - selector: example.v1.Messaging.GetMessage
268
+ * get: /v1/messages/{message_id}/{sub.subfield}
269
+ *
270
+ * ## Special notes
271
+ *
272
+ * When gRPC Transcoding is used to map a gRPC to JSON REST endpoints, the
273
+ * proto to JSON conversion must follow the [proto3
274
+ * specification](https://developers.google.com/protocol-buffers/docs/proto3#json).
275
+ *
276
+ * While the single segment variable follows the semantics of
277
+ * [RFC 6570](https://tools.ietf.org/html/rfc6570) Section 3.2.2 Simple String
278
+ * Expansion, the multi segment variable **does not** follow RFC 6570 Section
279
+ * 3.2.3 Reserved Expansion. The reason is that the Reserved Expansion
280
+ * does not expand special characters like `?` and `#`, which would lead
281
+ * to invalid URLs. As the result, gRPC Transcoding uses a custom encoding
282
+ * for multi segment variables.
283
+ *
284
+ * The path variables **must not** refer to any repeated or mapped field,
285
+ * because client libraries are not capable of handling such variable expansion.
286
+ *
287
+ * The path variables **must not** capture the leading "/" character. The reason
288
+ * is that the most common use case "{var}" does not capture the leading "/"
289
+ * character. For consistency, all path variables must share the same behavior.
290
+ *
291
+ * Repeated message fields must not be mapped to URL query parameters, because
292
+ * no client library can support such complicated mapping.
293
+ *
294
+ * If an API needs to use a JSON array for request or response body, it can map
295
+ * the request or response body to a repeated field. However, some gRPC
296
+ * Transcoding implementations may not support this feature.
297
+ */
298
+ export interface HttpRule {
299
+ /**
300
+ * Selects a method to which this rule applies.
301
+ *
302
+ * Refer to [selector][google.api.DocumentationRule.selector] for syntax
303
+ * details.
304
+ */
305
+ selector: string;
306
+ /**
307
+ * Maps to HTTP GET. Used for listing and getting information about
308
+ * resources.
309
+ */
310
+ get?: string | undefined;
311
+ /** Maps to HTTP PUT. Used for replacing a resource. */
312
+ put?: string | undefined;
313
+ /** Maps to HTTP POST. Used for creating a resource or performing an action. */
314
+ post?: string | undefined;
315
+ /** Maps to HTTP DELETE. Used for deleting a resource. */
316
+ delete?: string | undefined;
317
+ /** Maps to HTTP PATCH. Used for updating a resource. */
318
+ patch?: string | undefined;
319
+ /**
320
+ * The custom pattern is used for specifying an HTTP method that is not
321
+ * included in the `pattern` field, such as HEAD, or "*" to leave the
322
+ * HTTP method unspecified for this rule. The wild-card rule is useful
323
+ * for services that provide content to Web (HTML) clients.
324
+ */
325
+ custom?: CustomHttpPattern | undefined;
326
+ /**
327
+ * The name of the request field whose value is mapped to the HTTP request
328
+ * body, or `*` for mapping all request fields not captured by the path
329
+ * pattern to the HTTP body, or omitted for not having any HTTP request body.
330
+ *
331
+ * NOTE: the referred field must be present at the top-level of the request
332
+ * message type.
333
+ */
334
+ body: string;
335
+ /**
336
+ * Optional. The name of the response field whose value is mapped to the HTTP
337
+ * response body. When omitted, the entire response message will be used
338
+ * as the HTTP response body.
339
+ *
340
+ * NOTE: The referred field must be present at the top-level of the response
341
+ * message type.
342
+ */
343
+ responseBody: string;
344
+ /**
345
+ * Additional HTTP bindings for the selector. Nested bindings must
346
+ * not contain an `additional_bindings` field themselves (that is,
347
+ * the nesting may only be one level deep).
348
+ */
349
+ additionalBindings: HttpRule[];
350
+ }
351
+ /** A custom pattern is used for defining custom HTTP verb. */
352
+ export interface CustomHttpPattern {
353
+ /** The name of this custom HTTP verb. */
354
+ kind: string;
355
+ /** The path matched by this custom verb. */
356
+ path: string;
357
+ }
358
+ export declare const Http: MessageFns<Http>;
359
+ export declare const HttpRule: MessageFns<HttpRule>;
360
+ export declare const CustomHttpPattern: MessageFns<CustomHttpPattern>;
361
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
362
+ export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
363
+ [K in keyof T]?: DeepPartial<T[K]>;
364
+ } : Partial<T>;
365
+ type KeysOfUnion<T> = T extends T ? keyof T : never;
366
+ export type Exact<P, I extends P> = P extends Builtin ? P : P & {
367
+ [K in keyof P]: Exact<P[K], I[K]>;
368
+ } & {
369
+ [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
370
+ };
371
+ export interface MessageFns<T> {
372
+ encode(message: T, writer?: BinaryWriter): BinaryWriter;
373
+ decode(input: BinaryReader | Uint8Array, length?: number): T;
374
+ fromJSON(object: any): T;
375
+ toJSON(message: T): unknown;
376
+ create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
377
+ fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
378
+ }
379
+ export {};