@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.
- package/LICENSE +3 -0
- package/README.md +280 -0
- package/main/codegen/cosmos/base/abci/v1beta1/abci.js +887 -0
- package/main/codegen/cosmos/base/kv/v1beta1/kv.js +139 -0
- package/main/codegen/cosmos/base/query/v1beta1/pagination.js +157 -0
- package/main/codegen/cosmos/base/reflection/v1beta1/reflection.js +231 -0
- package/main/codegen/cosmos/base/reflection/v2alpha1/reflection.js +1479 -0
- package/main/codegen/cosmos/base/snapshots/v1beta1/snapshot.js +478 -0
- package/main/codegen/cosmos/base/store/v1beta1/commit_info.js +207 -0
- package/main/codegen/cosmos/base/store/v1beta1/listening.js +89 -0
- package/main/codegen/cosmos/base/tendermint/v1beta1/query.js +951 -0
- package/main/codegen/cosmos/base/tendermint/v1beta1/query.rpc.Service.js +117 -0
- package/main/codegen/cosmos/base/v1beta1/coin.js +223 -0
- package/main/codegen/cosmos/bundle.js +63 -0
- package/main/codegen/cosmos/rpc.query.js +55 -0
- package/main/codegen/extern.js +66 -0
- package/main/codegen/gogoproto/bundle.js +16 -0
- package/main/codegen/gogoproto/gogo.js +5 -0
- package/main/codegen/google/api/annotations.js +5 -0
- package/main/codegen/google/api/http.js +306 -0
- package/main/codegen/google/api/httpbody.js +102 -0
- package/main/codegen/google/bundle.js +26 -0
- package/main/codegen/google/protobuf/any.js +69 -0
- package/main/codegen/google/protobuf/descriptor.js +3429 -0
- package/main/codegen/google/protobuf/duration.js +69 -0
- package/main/codegen/google/protobuf/timestamp.js +69 -0
- package/main/codegen/helpers.js +170 -0
- package/main/codegen/index.js +93 -0
- package/main/codegen/tendermint/abci/types.js +3616 -0
- package/main/codegen/tendermint/bundle.js +37 -0
- package/main/codegen/tendermint/crypto/keys.js +69 -0
- package/main/codegen/tendermint/crypto/proof.js +372 -0
- package/main/codegen/tendermint/libs/bits/types.js +100 -0
- package/main/codegen/tendermint/p2p/types.js +322 -0
- package/main/codegen/tendermint/types/block.js +90 -0
- package/main/codegen/tendermint/types/evidence.js +335 -0
- package/main/codegen/tendermint/types/params.js +397 -0
- package/main/codegen/tendermint/types/types.js +1223 -0
- package/main/codegen/tendermint/types/validator.js +237 -0
- package/main/codegen/tendermint/version/types.js +126 -0
- package/main/codegen/wasmx/bundle.js +30 -0
- package/main/codegen/wasmx/client.js +65 -0
- package/main/codegen/wasmx/index.js +126 -0
- package/main/codegen/wasmx/rpc.query.js +65 -0
- package/main/codegen/wasmx/rpc.tx.js +44 -0
- package/main/codegen/wasmx/wasmx/contract.js +324 -0
- package/main/codegen/wasmx/wasmx/genesis.js +481 -0
- package/main/codegen/wasmx/wasmx/params.js +45 -0
- package/main/codegen/wasmx/wasmx/query.js +1187 -0
- package/main/codegen/wasmx/wasmx/query.rpc.Query.js +154 -0
- package/main/codegen/wasmx/wasmx/tx.amino.js +251 -0
- package/main/codegen/wasmx/wasmx/tx.js +937 -0
- package/main/codegen/wasmx/wasmx/tx.registry.js +213 -0
- package/main/codegen/wasmx/wasmx/tx.rpc.msg.js +85 -0
- package/main/index.js +16 -0
- package/module/codegen/cosmos/base/abci/v1beta1/abci.js +755 -0
- package/module/codegen/cosmos/base/kv/v1beta1/kv.js +110 -0
- package/module/codegen/cosmos/base/query/v1beta1/pagination.js +154 -0
- package/module/codegen/cosmos/base/reflection/v1beta1/reflection.js +183 -0
- package/module/codegen/cosmos/base/reflection/v2alpha1/reflection.js +1297 -0
- package/module/codegen/cosmos/base/snapshots/v1beta1/snapshot.js +439 -0
- package/module/codegen/cosmos/base/store/v1beta1/commit_info.js +179 -0
- package/module/codegen/cosmos/base/store/v1beta1/listening.js +86 -0
- package/module/codegen/cosmos/base/tendermint/v1beta1/query.js +866 -0
- package/module/codegen/cosmos/base/tendermint/v1beta1/query.rpc.Service.js +74 -0
- package/module/codegen/cosmos/base/v1beta1/coin.js +213 -0
- package/module/codegen/cosmos/bundle.js +52 -0
- package/module/codegen/cosmos/rpc.query.js +17 -0
- package/module/codegen/extern.js +30 -0
- package/module/codegen/gogoproto/bundle.js +5 -0
- package/module/codegen/gogoproto/gogo.js +1 -0
- package/module/codegen/google/api/annotations.js +1 -0
- package/module/codegen/google/api/http.js +264 -0
- package/module/codegen/google/api/httpbody.js +115 -0
- package/module/codegen/google/bundle.js +15 -0
- package/module/codegen/google/protobuf/any.js +140 -0
- package/module/codegen/google/protobuf/descriptor.js +2801 -0
- package/module/codegen/google/protobuf/duration.js +119 -0
- package/module/codegen/google/protobuf/timestamp.js +143 -0
- package/module/codegen/helpers.js +140 -0
- package/module/codegen/index.js +14 -0
- package/module/codegen/tendermint/abci/types.js +3305 -0
- package/module/codegen/tendermint/bundle.js +26 -0
- package/module/codegen/tendermint/crypto/keys.js +60 -0
- package/module/codegen/tendermint/crypto/proof.js +320 -0
- package/module/codegen/tendermint/libs/bits/types.js +71 -0
- package/module/codegen/tendermint/p2p/types.js +305 -0
- package/module/codegen/tendermint/types/block.js +79 -0
- package/module/codegen/tendermint/types/evidence.js +285 -0
- package/module/codegen/tendermint/types/params.js +363 -0
- package/module/codegen/tendermint/types/types.js +1149 -0
- package/module/codegen/tendermint/types/validator.js +204 -0
- package/module/codegen/tendermint/version/types.js +119 -0
- package/module/codegen/wasmx/bundle.js +19 -0
- package/module/codegen/wasmx/client.js +36 -0
- package/module/codegen/wasmx/index.js +11 -0
- package/module/codegen/wasmx/rpc.query.js +20 -0
- package/module/codegen/wasmx/rpc.tx.js +7 -0
- package/module/codegen/wasmx/wasmx/contract.js +291 -0
- package/module/codegen/wasmx/wasmx/genesis.js +386 -0
- package/module/codegen/wasmx/wasmx/params.js +36 -0
- package/module/codegen/wasmx/wasmx/query.js +1052 -0
- package/module/codegen/wasmx/wasmx/query.rpc.Query.js +101 -0
- package/module/codegen/wasmx/wasmx/tx.amino.js +236 -0
- package/module/codegen/wasmx/wasmx/tx.js +815 -0
- package/module/codegen/wasmx/wasmx/tx.registry.js +199 -0
- package/module/codegen/wasmx/wasmx/tx.rpc.msg.js +47 -0
- package/module/index.js +1 -0
- package/package.json +88 -0
- package/src/codegen/cosmos/base/abci/v1beta1/abci.ts +1254 -0
- package/src/codegen/cosmos/base/kv/v1beta1/kv.ts +156 -0
- package/src/codegen/cosmos/base/query/v1beta1/pagination.ts +314 -0
- package/src/codegen/cosmos/base/reflection/v1beta1/reflection.ts +280 -0
- package/src/codegen/cosmos/base/reflection/v2alpha1/reflection.ts +2079 -0
- package/src/codegen/cosmos/base/snapshots/v1beta1/snapshot.ts +641 -0
- package/src/codegen/cosmos/base/store/v1beta1/commit_info.ts +269 -0
- package/src/codegen/cosmos/base/store/v1beta1/listening.ts +129 -0
- package/src/codegen/cosmos/base/tendermint/v1beta1/query.rpc.Service.ts +107 -0
- package/src/codegen/cosmos/base/tendermint/v1beta1/query.ts +1284 -0
- package/src/codegen/cosmos/base/v1beta1/coin.ts +318 -0
- package/src/codegen/cosmos/bundle.ts +52 -0
- package/src/codegen/cosmos/rpc.query.ts +19 -0
- package/src/codegen/extern.ts +33 -0
- package/src/codegen/gogoproto/bundle.ts +3 -0
- package/src/codegen/gogoproto/gogo.ts +1 -0
- package/src/codegen/google/api/annotations.ts +1 -0
- package/src/codegen/google/api/http.ts +945 -0
- package/src/codegen/google/api/httpbody.ts +200 -0
- package/src/codegen/google/bundle.ts +18 -0
- package/src/codegen/google/protobuf/any.ts +305 -0
- package/src/codegen/google/protobuf/descriptor.ts +5113 -0
- package/src/codegen/google/protobuf/duration.ts +229 -0
- package/src/codegen/google/protobuf/timestamp.ts +273 -0
- package/src/codegen/helpers.ts +240 -0
- package/src/codegen/index.ts +14 -0
- package/src/codegen/tendermint/abci/types.ts +4754 -0
- package/src/codegen/tendermint/bundle.ts +32 -0
- package/src/codegen/tendermint/crypto/keys.ts +83 -0
- package/src/codegen/tendermint/crypto/proof.ts +465 -0
- package/src/codegen/tendermint/libs/bits/types.ts +97 -0
- package/src/codegen/tendermint/p2p/types.ts +422 -0
- package/src/codegen/tendermint/types/block.ts +109 -0
- package/src/codegen/tendermint/types/evidence.ts +415 -0
- package/src/codegen/tendermint/types/params.ts +615 -0
- package/src/codegen/tendermint/types/types.ts +1663 -0
- package/src/codegen/tendermint/types/validator.ts +282 -0
- package/src/codegen/tendermint/version/types.ts +180 -0
- package/src/codegen/wasmx/bundle.ts +26 -0
- package/src/codegen/wasmx/client.ts +45 -0
- package/src/codegen/wasmx/index.ts +11 -0
- package/src/codegen/wasmx/rpc.query.ts +22 -0
- package/src/codegen/wasmx/rpc.tx.ts +10 -0
- package/src/codegen/wasmx/wasmx/contract.ts +470 -0
- package/src/codegen/wasmx/wasmx/genesis.ts +552 -0
- package/src/codegen/wasmx/wasmx/params.ts +50 -0
- package/src/codegen/wasmx/wasmx/query.rpc.Query.ts +149 -0
- package/src/codegen/wasmx/wasmx/query.ts +1668 -0
- package/src/codegen/wasmx/wasmx/tx.amino.ts +314 -0
- package/src/codegen/wasmx/wasmx/tx.registry.ts +230 -0
- package/src/codegen/wasmx/wasmx/tx.rpc.msg.ts +80 -0
- package/src/codegen/wasmx/wasmx/tx.ts +1331 -0
- package/src/index.ts +1 -0
- package/types/codegen/cosmos/base/abci/v1beta1/abci.d.ts +338 -0
- package/types/codegen/cosmos/base/kv/v1beta1/kv.d.ts +33 -0
- package/types/codegen/cosmos/base/query/v1beta1/pagination.d.ts +140 -0
- package/types/codegen/cosmos/base/reflection/v1beta1/reflection.d.ts +75 -0
- package/types/codegen/cosmos/base/reflection/v2alpha1/reflection.d.ts +565 -0
- package/types/codegen/cosmos/base/snapshots/v1beta1/snapshot.d.ts +135 -0
- package/types/codegen/cosmos/base/store/v1beta1/commit_info.d.ts +71 -0
- package/types/codegen/cosmos/base/store/v1beta1/listening.d.ts +38 -0
- package/types/codegen/cosmos/base/tendermint/v1beta1/query.d.ts +282 -0
- package/types/codegen/cosmos/base/tendermint/v1beta1/query.lcd.d.ts +14 -0
- package/types/codegen/cosmos/base/tendermint/v1beta1/query.rpc.Service.d.ts +36 -0
- package/types/codegen/cosmos/base/v1beta1/coin.d.ts +85 -0
- package/types/codegen/cosmos/bundle.d.ts +594 -0
- package/types/codegen/cosmos/lcd.d.ts +11 -0
- package/types/codegen/cosmos/rpc.query.d.ts +19 -0
- package/types/codegen/extern.d.ts +9 -0
- package/types/codegen/gogoproto/bundle.d.ts +1 -0
- package/types/codegen/gogoproto/gogo.d.ts +1 -0
- package/types/codegen/google/api/annotations.d.ts +1 -0
- package/types/codegen/google/api/http.d.ts +622 -0
- package/types/codegen/google/api/httpbody.d.ts +113 -0
- package/types/codegen/google/bundle.d.ts +274 -0
- package/types/codegen/google/protobuf/any.d.ts +238 -0
- package/types/codegen/google/protobuf/descriptor.d.ts +1835 -0
- package/types/codegen/google/protobuf/duration.d.ts +163 -0
- package/types/codegen/google/protobuf/timestamp.d.ts +207 -0
- package/types/codegen/helpers.d.ts +82 -0
- package/types/codegen/index.d.ts +13 -0
- package/types/codegen/tendermint/abci/types.d.ts +993 -0
- package/types/codegen/tendermint/bundle.d.ts +639 -0
- package/types/codegen/tendermint/crypto/keys.d.ts +18 -0
- package/types/codegen/tendermint/crypto/proof.d.ts +101 -0
- package/types/codegen/tendermint/libs/bits/types.d.ts +17 -0
- package/types/codegen/tendermint/p2p/types.d.ts +78 -0
- package/types/codegen/tendermint/types/block.d.ts +22 -0
- package/types/codegen/tendermint/types/evidence.d.ts +91 -0
- package/types/codegen/tendermint/types/params.d.ts +193 -0
- package/types/codegen/tendermint/types/types.d.ts +363 -0
- package/types/codegen/tendermint/types/validator.d.ts +54 -0
- package/types/codegen/tendermint/version/types.d.ts +52 -0
- package/types/codegen/wasmx/bundle.d.ts +614 -0
- package/types/codegen/wasmx/client.d.ts +151 -0
- package/types/codegen/wasmx/index.d.ts +11 -0
- package/types/codegen/wasmx/lcd.d.ts +14 -0
- package/types/codegen/wasmx/rpc.query.d.ts +32 -0
- package/types/codegen/wasmx/rpc.tx.d.ts +8 -0
- package/types/codegen/wasmx/wasmx/contract.d.ts +122 -0
- package/types/codegen/wasmx/wasmx/genesis.d.ts +107 -0
- package/types/codegen/wasmx/wasmx/params.d.ts +14 -0
- package/types/codegen/wasmx/wasmx/query.d.ts +451 -0
- package/types/codegen/wasmx/wasmx/query.lcd.d.ts +17 -0
- package/types/codegen/wasmx/wasmx/query.rpc.Query.d.ts +48 -0
- package/types/codegen/wasmx/wasmx/tx.amino.d.ts +110 -0
- package/types/codegen/wasmx/wasmx/tx.d.ts +332 -0
- package/types/codegen/wasmx/wasmx/tx.registry.d.ts +136 -0
- package/types/codegen/wasmx/wasmx/tx.rpc.msg.d.ts +33 -0
- package/types/index.d.ts +1 -0
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import { Any, AnySDKType } from "../protobuf/any";
|
|
2
|
+
import * as _m0 from "protobufjs/minimal";
|
|
3
|
+
/**
|
|
4
|
+
* Message that represents an arbitrary HTTP body. It should only be used for
|
|
5
|
+
* payload formats that can't be represented as JSON, such as raw binary or
|
|
6
|
+
* an HTML page.
|
|
7
|
+
*
|
|
8
|
+
*
|
|
9
|
+
* This message can be used both in streaming and non-streaming API methods in
|
|
10
|
+
* the request as well as the response.
|
|
11
|
+
*
|
|
12
|
+
* It can be used as a top-level request field, which is convenient if one
|
|
13
|
+
* wants to extract parameters from either the URL or HTTP template into the
|
|
14
|
+
* request fields and also want access to the raw HTTP body.
|
|
15
|
+
*
|
|
16
|
+
* Example:
|
|
17
|
+
*
|
|
18
|
+
* message GetResourceRequest {
|
|
19
|
+
* // A unique request id.
|
|
20
|
+
* string request_id = 1;
|
|
21
|
+
*
|
|
22
|
+
* // The raw HTTP body is bound to this field.
|
|
23
|
+
* google.api.HttpBody http_body = 2;
|
|
24
|
+
* }
|
|
25
|
+
*
|
|
26
|
+
* service ResourceService {
|
|
27
|
+
* rpc GetResource(GetResourceRequest) returns (google.api.HttpBody);
|
|
28
|
+
* rpc UpdateResource(google.api.HttpBody) returns
|
|
29
|
+
* (google.protobuf.Empty);
|
|
30
|
+
* }
|
|
31
|
+
*
|
|
32
|
+
* Example with streaming methods:
|
|
33
|
+
*
|
|
34
|
+
* service CaldavService {
|
|
35
|
+
* rpc GetCalendar(stream google.api.HttpBody)
|
|
36
|
+
* returns (stream google.api.HttpBody);
|
|
37
|
+
* rpc UpdateCalendar(stream google.api.HttpBody)
|
|
38
|
+
* returns (stream google.api.HttpBody);
|
|
39
|
+
* }
|
|
40
|
+
*
|
|
41
|
+
* Use of this type only changes how the request and response bodies are
|
|
42
|
+
* handled, all other features will continue to work unchanged.
|
|
43
|
+
*/
|
|
44
|
+
export interface HttpBody {
|
|
45
|
+
/** The HTTP Content-Type header value specifying the content type of the body. */
|
|
46
|
+
contentType: string;
|
|
47
|
+
/** The HTTP request/response body as raw binary. */
|
|
48
|
+
data: Uint8Array;
|
|
49
|
+
/**
|
|
50
|
+
* Application specific response metadata. Must be set in the first response
|
|
51
|
+
* for streaming APIs.
|
|
52
|
+
*/
|
|
53
|
+
extensions: Any[];
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Message that represents an arbitrary HTTP body. It should only be used for
|
|
57
|
+
* payload formats that can't be represented as JSON, such as raw binary or
|
|
58
|
+
* an HTML page.
|
|
59
|
+
*
|
|
60
|
+
*
|
|
61
|
+
* This message can be used both in streaming and non-streaming API methods in
|
|
62
|
+
* the request as well as the response.
|
|
63
|
+
*
|
|
64
|
+
* It can be used as a top-level request field, which is convenient if one
|
|
65
|
+
* wants to extract parameters from either the URL or HTTP template into the
|
|
66
|
+
* request fields and also want access to the raw HTTP body.
|
|
67
|
+
*
|
|
68
|
+
* Example:
|
|
69
|
+
*
|
|
70
|
+
* message GetResourceRequest {
|
|
71
|
+
* // A unique request id.
|
|
72
|
+
* string request_id = 1;
|
|
73
|
+
*
|
|
74
|
+
* // The raw HTTP body is bound to this field.
|
|
75
|
+
* google.api.HttpBody http_body = 2;
|
|
76
|
+
* }
|
|
77
|
+
*
|
|
78
|
+
* service ResourceService {
|
|
79
|
+
* rpc GetResource(GetResourceRequest) returns (google.api.HttpBody);
|
|
80
|
+
* rpc UpdateResource(google.api.HttpBody) returns
|
|
81
|
+
* (google.protobuf.Empty);
|
|
82
|
+
* }
|
|
83
|
+
*
|
|
84
|
+
* Example with streaming methods:
|
|
85
|
+
*
|
|
86
|
+
* service CaldavService {
|
|
87
|
+
* rpc GetCalendar(stream google.api.HttpBody)
|
|
88
|
+
* returns (stream google.api.HttpBody);
|
|
89
|
+
* rpc UpdateCalendar(stream google.api.HttpBody)
|
|
90
|
+
* returns (stream google.api.HttpBody);
|
|
91
|
+
* }
|
|
92
|
+
*
|
|
93
|
+
* Use of this type only changes how the request and response bodies are
|
|
94
|
+
* handled, all other features will continue to work unchanged.
|
|
95
|
+
*/
|
|
96
|
+
export interface HttpBodySDKType {
|
|
97
|
+
/** The HTTP Content-Type header value specifying the content type of the body. */
|
|
98
|
+
content_type: string;
|
|
99
|
+
/** The HTTP request/response body as raw binary. */
|
|
100
|
+
data: Uint8Array;
|
|
101
|
+
/**
|
|
102
|
+
* Application specific response metadata. Must be set in the first response
|
|
103
|
+
* for streaming APIs.
|
|
104
|
+
*/
|
|
105
|
+
extensions: AnySDKType[];
|
|
106
|
+
}
|
|
107
|
+
export declare const HttpBody: {
|
|
108
|
+
encode(message: HttpBody, writer?: _m0.Writer): _m0.Writer;
|
|
109
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): HttpBody;
|
|
110
|
+
fromJSON(object: any): HttpBody;
|
|
111
|
+
toJSON(message: HttpBody): unknown;
|
|
112
|
+
fromPartial(object: Partial<HttpBody>): HttpBody;
|
|
113
|
+
};
|
|
@@ -0,0 +1,274 @@
|
|
|
1
|
+
import * as _12 from "./api/http";
|
|
2
|
+
import * as _13 from "./api/httpbody";
|
|
3
|
+
import * as _14 from "./protobuf/any";
|
|
4
|
+
import * as _15 from "./protobuf/descriptor";
|
|
5
|
+
import * as _16 from "./protobuf/timestamp";
|
|
6
|
+
import * as _17 from "./protobuf/duration";
|
|
7
|
+
export declare namespace google {
|
|
8
|
+
const api: {
|
|
9
|
+
HttpBody: {
|
|
10
|
+
encode(message: _13.HttpBody, writer?: import("protobufjs").Writer): import("protobufjs").Writer;
|
|
11
|
+
decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _13.HttpBody;
|
|
12
|
+
fromJSON(object: any): _13.HttpBody;
|
|
13
|
+
toJSON(message: _13.HttpBody): unknown;
|
|
14
|
+
fromPartial(object: Partial<_13.HttpBody>): _13.HttpBody;
|
|
15
|
+
};
|
|
16
|
+
Http: {
|
|
17
|
+
encode(message: _12.Http, writer?: import("protobufjs").Writer): import("protobufjs").Writer;
|
|
18
|
+
decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _12.Http;
|
|
19
|
+
fromJSON(object: any): _12.Http;
|
|
20
|
+
toJSON(message: _12.Http): unknown;
|
|
21
|
+
fromPartial(object: Partial<_12.Http>): _12.Http;
|
|
22
|
+
};
|
|
23
|
+
HttpRule: {
|
|
24
|
+
encode(message: _12.HttpRule, writer?: import("protobufjs").Writer): import("protobufjs").Writer;
|
|
25
|
+
decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _12.HttpRule;
|
|
26
|
+
fromJSON(object: any): _12.HttpRule;
|
|
27
|
+
toJSON(message: _12.HttpRule): unknown;
|
|
28
|
+
fromPartial(object: Partial<_12.HttpRule>): _12.HttpRule;
|
|
29
|
+
};
|
|
30
|
+
CustomHttpPattern: {
|
|
31
|
+
encode(message: _12.CustomHttpPattern, writer?: import("protobufjs").Writer): import("protobufjs").Writer;
|
|
32
|
+
decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _12.CustomHttpPattern;
|
|
33
|
+
fromJSON(object: any): _12.CustomHttpPattern;
|
|
34
|
+
toJSON(message: _12.CustomHttpPattern): unknown;
|
|
35
|
+
fromPartial(object: Partial<_12.CustomHttpPattern>): _12.CustomHttpPattern;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
const protobuf: {
|
|
39
|
+
Duration: {
|
|
40
|
+
encode(message: _17.Duration, writer?: import("protobufjs").Writer): import("protobufjs").Writer;
|
|
41
|
+
decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _17.Duration;
|
|
42
|
+
fromJSON(object: any): _17.Duration;
|
|
43
|
+
toJSON(message: _17.Duration): unknown;
|
|
44
|
+
fromPartial(object: Partial<_17.Duration>): _17.Duration;
|
|
45
|
+
};
|
|
46
|
+
Timestamp: {
|
|
47
|
+
encode(message: _16.Timestamp, writer?: import("protobufjs").Writer): import("protobufjs").Writer;
|
|
48
|
+
decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _16.Timestamp;
|
|
49
|
+
fromJSON(object: any): _16.Timestamp;
|
|
50
|
+
toJSON(message: _16.Timestamp): unknown;
|
|
51
|
+
fromPartial(object: Partial<_16.Timestamp>): _16.Timestamp;
|
|
52
|
+
};
|
|
53
|
+
fieldDescriptorProto_TypeFromJSON(object: any): _15.FieldDescriptorProto_Type;
|
|
54
|
+
fieldDescriptorProto_TypeToJSON(object: _15.FieldDescriptorProto_Type): string;
|
|
55
|
+
fieldDescriptorProto_LabelFromJSON(object: any): _15.FieldDescriptorProto_Label;
|
|
56
|
+
fieldDescriptorProto_LabelToJSON(object: _15.FieldDescriptorProto_Label): string;
|
|
57
|
+
fileOptions_OptimizeModeFromJSON(object: any): _15.FileOptions_OptimizeMode;
|
|
58
|
+
fileOptions_OptimizeModeToJSON(object: _15.FileOptions_OptimizeMode): string;
|
|
59
|
+
fieldOptions_CTypeFromJSON(object: any): _15.FieldOptions_CType;
|
|
60
|
+
fieldOptions_CTypeToJSON(object: _15.FieldOptions_CType): string;
|
|
61
|
+
fieldOptions_JSTypeFromJSON(object: any): _15.FieldOptions_JSType;
|
|
62
|
+
fieldOptions_JSTypeToJSON(object: _15.FieldOptions_JSType): string;
|
|
63
|
+
methodOptions_IdempotencyLevelFromJSON(object: any): _15.MethodOptions_IdempotencyLevel;
|
|
64
|
+
methodOptions_IdempotencyLevelToJSON(object: _15.MethodOptions_IdempotencyLevel): string;
|
|
65
|
+
FieldDescriptorProto_Type: typeof _15.FieldDescriptorProto_Type;
|
|
66
|
+
FieldDescriptorProto_TypeSDKType: typeof _15.FieldDescriptorProto_TypeSDKType;
|
|
67
|
+
FieldDescriptorProto_Label: typeof _15.FieldDescriptorProto_Label;
|
|
68
|
+
FieldDescriptorProto_LabelSDKType: typeof _15.FieldDescriptorProto_LabelSDKType;
|
|
69
|
+
FileOptions_OptimizeMode: typeof _15.FileOptions_OptimizeMode;
|
|
70
|
+
FileOptions_OptimizeModeSDKType: typeof _15.FileOptions_OptimizeModeSDKType;
|
|
71
|
+
FieldOptions_CType: typeof _15.FieldOptions_CType;
|
|
72
|
+
FieldOptions_CTypeSDKType: typeof _15.FieldOptions_CTypeSDKType;
|
|
73
|
+
FieldOptions_JSType: typeof _15.FieldOptions_JSType;
|
|
74
|
+
FieldOptions_JSTypeSDKType: typeof _15.FieldOptions_JSTypeSDKType;
|
|
75
|
+
MethodOptions_IdempotencyLevel: typeof _15.MethodOptions_IdempotencyLevel;
|
|
76
|
+
MethodOptions_IdempotencyLevelSDKType: typeof _15.MethodOptions_IdempotencyLevelSDKType;
|
|
77
|
+
FileDescriptorSet: {
|
|
78
|
+
encode(message: _15.FileDescriptorSet, writer?: import("protobufjs").Writer): import("protobufjs").Writer;
|
|
79
|
+
decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _15.FileDescriptorSet;
|
|
80
|
+
fromJSON(object: any): _15.FileDescriptorSet;
|
|
81
|
+
toJSON(message: _15.FileDescriptorSet): unknown;
|
|
82
|
+
fromPartial(object: Partial<_15.FileDescriptorSet>): _15.FileDescriptorSet;
|
|
83
|
+
};
|
|
84
|
+
FileDescriptorProto: {
|
|
85
|
+
encode(message: _15.FileDescriptorProto, writer?: import("protobufjs").Writer): import("protobufjs").Writer;
|
|
86
|
+
decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _15.FileDescriptorProto;
|
|
87
|
+
fromJSON(object: any): _15.FileDescriptorProto;
|
|
88
|
+
toJSON(message: _15.FileDescriptorProto): unknown;
|
|
89
|
+
fromPartial(object: Partial<_15.FileDescriptorProto>): _15.FileDescriptorProto;
|
|
90
|
+
};
|
|
91
|
+
DescriptorProto: {
|
|
92
|
+
encode(message: _15.DescriptorProto, writer?: import("protobufjs").Writer): import("protobufjs").Writer;
|
|
93
|
+
decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _15.DescriptorProto;
|
|
94
|
+
fromJSON(object: any): _15.DescriptorProto;
|
|
95
|
+
toJSON(message: _15.DescriptorProto): unknown;
|
|
96
|
+
fromPartial(object: Partial<_15.DescriptorProto>): _15.DescriptorProto;
|
|
97
|
+
};
|
|
98
|
+
DescriptorProto_ExtensionRange: {
|
|
99
|
+
encode(message: _15.DescriptorProto_ExtensionRange, writer?: import("protobufjs").Writer): import("protobufjs").Writer;
|
|
100
|
+
decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _15.DescriptorProto_ExtensionRange;
|
|
101
|
+
fromJSON(object: any): _15.DescriptorProto_ExtensionRange;
|
|
102
|
+
toJSON(message: _15.DescriptorProto_ExtensionRange): unknown;
|
|
103
|
+
fromPartial(object: Partial<_15.DescriptorProto_ExtensionRange>): _15.DescriptorProto_ExtensionRange;
|
|
104
|
+
};
|
|
105
|
+
DescriptorProto_ReservedRange: {
|
|
106
|
+
encode(message: _15.DescriptorProto_ReservedRange, writer?: import("protobufjs").Writer): import("protobufjs").Writer;
|
|
107
|
+
decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _15.DescriptorProto_ReservedRange;
|
|
108
|
+
fromJSON(object: any): _15.DescriptorProto_ReservedRange;
|
|
109
|
+
toJSON(message: _15.DescriptorProto_ReservedRange): unknown;
|
|
110
|
+
fromPartial(object: Partial<_15.DescriptorProto_ReservedRange>): _15.DescriptorProto_ReservedRange;
|
|
111
|
+
};
|
|
112
|
+
ExtensionRangeOptions: {
|
|
113
|
+
encode(message: _15.ExtensionRangeOptions, writer?: import("protobufjs").Writer): import("protobufjs").Writer;
|
|
114
|
+
decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _15.ExtensionRangeOptions;
|
|
115
|
+
fromJSON(object: any): _15.ExtensionRangeOptions;
|
|
116
|
+
toJSON(message: _15.ExtensionRangeOptions): unknown;
|
|
117
|
+
fromPartial(object: Partial<_15.ExtensionRangeOptions>): _15.ExtensionRangeOptions;
|
|
118
|
+
};
|
|
119
|
+
FieldDescriptorProto: {
|
|
120
|
+
encode(message: _15.FieldDescriptorProto, writer?: import("protobufjs").Writer): import("protobufjs").Writer;
|
|
121
|
+
decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _15.FieldDescriptorProto;
|
|
122
|
+
fromJSON(object: any): _15.FieldDescriptorProto;
|
|
123
|
+
toJSON(message: _15.FieldDescriptorProto): unknown;
|
|
124
|
+
fromPartial(object: Partial<_15.FieldDescriptorProto>): _15.FieldDescriptorProto;
|
|
125
|
+
};
|
|
126
|
+
OneofDescriptorProto: {
|
|
127
|
+
encode(message: _15.OneofDescriptorProto, writer?: import("protobufjs").Writer): import("protobufjs").Writer;
|
|
128
|
+
decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _15.OneofDescriptorProto;
|
|
129
|
+
fromJSON(object: any): _15.OneofDescriptorProto;
|
|
130
|
+
toJSON(message: _15.OneofDescriptorProto): unknown;
|
|
131
|
+
fromPartial(object: Partial<_15.OneofDescriptorProto>): _15.OneofDescriptorProto;
|
|
132
|
+
};
|
|
133
|
+
EnumDescriptorProto: {
|
|
134
|
+
encode(message: _15.EnumDescriptorProto, writer?: import("protobufjs").Writer): import("protobufjs").Writer;
|
|
135
|
+
decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _15.EnumDescriptorProto;
|
|
136
|
+
fromJSON(object: any): _15.EnumDescriptorProto;
|
|
137
|
+
toJSON(message: _15.EnumDescriptorProto): unknown;
|
|
138
|
+
fromPartial(object: Partial<_15.EnumDescriptorProto>): _15.EnumDescriptorProto;
|
|
139
|
+
};
|
|
140
|
+
EnumDescriptorProto_EnumReservedRange: {
|
|
141
|
+
encode(message: _15.EnumDescriptorProto_EnumReservedRange, writer?: import("protobufjs").Writer): import("protobufjs").Writer;
|
|
142
|
+
decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _15.EnumDescriptorProto_EnumReservedRange;
|
|
143
|
+
fromJSON(object: any): _15.EnumDescriptorProto_EnumReservedRange;
|
|
144
|
+
toJSON(message: _15.EnumDescriptorProto_EnumReservedRange): unknown;
|
|
145
|
+
fromPartial(object: Partial<_15.EnumDescriptorProto_EnumReservedRange>): _15.EnumDescriptorProto_EnumReservedRange;
|
|
146
|
+
};
|
|
147
|
+
EnumValueDescriptorProto: {
|
|
148
|
+
encode(message: _15.EnumValueDescriptorProto, writer?: import("protobufjs").Writer): import("protobufjs").Writer;
|
|
149
|
+
decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _15.EnumValueDescriptorProto;
|
|
150
|
+
fromJSON(object: any): _15.EnumValueDescriptorProto;
|
|
151
|
+
toJSON(message: _15.EnumValueDescriptorProto): unknown;
|
|
152
|
+
fromPartial(object: Partial<_15.EnumValueDescriptorProto>): _15.EnumValueDescriptorProto;
|
|
153
|
+
};
|
|
154
|
+
ServiceDescriptorProto: {
|
|
155
|
+
encode(message: _15.ServiceDescriptorProto, writer?: import("protobufjs").Writer): import("protobufjs").Writer;
|
|
156
|
+
decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _15.ServiceDescriptorProto;
|
|
157
|
+
fromJSON(object: any): _15.ServiceDescriptorProto;
|
|
158
|
+
toJSON(message: _15.ServiceDescriptorProto): unknown;
|
|
159
|
+
fromPartial(object: Partial<_15.ServiceDescriptorProto>): _15.ServiceDescriptorProto;
|
|
160
|
+
};
|
|
161
|
+
MethodDescriptorProto: {
|
|
162
|
+
encode(message: _15.MethodDescriptorProto, writer?: import("protobufjs").Writer): import("protobufjs").Writer;
|
|
163
|
+
decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _15.MethodDescriptorProto;
|
|
164
|
+
fromJSON(object: any): _15.MethodDescriptorProto;
|
|
165
|
+
toJSON(message: _15.MethodDescriptorProto): unknown;
|
|
166
|
+
fromPartial(object: Partial<_15.MethodDescriptorProto>): _15.MethodDescriptorProto;
|
|
167
|
+
};
|
|
168
|
+
FileOptions: {
|
|
169
|
+
encode(message: _15.FileOptions, writer?: import("protobufjs").Writer): import("protobufjs").Writer;
|
|
170
|
+
decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _15.FileOptions;
|
|
171
|
+
fromJSON(object: any): _15.FileOptions;
|
|
172
|
+
toJSON(message: _15.FileOptions): unknown;
|
|
173
|
+
fromPartial(object: Partial<_15.FileOptions>): _15.FileOptions;
|
|
174
|
+
};
|
|
175
|
+
MessageOptions: {
|
|
176
|
+
encode(message: _15.MessageOptions, writer?: import("protobufjs").Writer): import("protobufjs").Writer;
|
|
177
|
+
decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _15.MessageOptions;
|
|
178
|
+
fromJSON(object: any): _15.MessageOptions;
|
|
179
|
+
toJSON(message: _15.MessageOptions): unknown;
|
|
180
|
+
fromPartial(object: Partial<_15.MessageOptions>): _15.MessageOptions;
|
|
181
|
+
};
|
|
182
|
+
FieldOptions: {
|
|
183
|
+
encode(message: _15.FieldOptions, writer?: import("protobufjs").Writer): import("protobufjs").Writer;
|
|
184
|
+
decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _15.FieldOptions;
|
|
185
|
+
fromJSON(object: any): _15.FieldOptions;
|
|
186
|
+
toJSON(message: _15.FieldOptions): unknown;
|
|
187
|
+
fromPartial(object: Partial<_15.FieldOptions>): _15.FieldOptions;
|
|
188
|
+
};
|
|
189
|
+
OneofOptions: {
|
|
190
|
+
encode(message: _15.OneofOptions, writer?: import("protobufjs").Writer): import("protobufjs").Writer;
|
|
191
|
+
decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _15.OneofOptions;
|
|
192
|
+
fromJSON(object: any): _15.OneofOptions;
|
|
193
|
+
toJSON(message: _15.OneofOptions): unknown;
|
|
194
|
+
fromPartial(object: Partial<_15.OneofOptions>): _15.OneofOptions;
|
|
195
|
+
};
|
|
196
|
+
EnumOptions: {
|
|
197
|
+
encode(message: _15.EnumOptions, writer?: import("protobufjs").Writer): import("protobufjs").Writer;
|
|
198
|
+
decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _15.EnumOptions;
|
|
199
|
+
fromJSON(object: any): _15.EnumOptions;
|
|
200
|
+
toJSON(message: _15.EnumOptions): unknown;
|
|
201
|
+
fromPartial(object: Partial<_15.EnumOptions>): _15.EnumOptions;
|
|
202
|
+
};
|
|
203
|
+
EnumValueOptions: {
|
|
204
|
+
encode(message: _15.EnumValueOptions, writer?: import("protobufjs").Writer): import("protobufjs").Writer;
|
|
205
|
+
decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _15.EnumValueOptions;
|
|
206
|
+
fromJSON(object: any): _15.EnumValueOptions;
|
|
207
|
+
toJSON(message: _15.EnumValueOptions): unknown;
|
|
208
|
+
fromPartial(object: Partial<_15.EnumValueOptions>): _15.EnumValueOptions;
|
|
209
|
+
};
|
|
210
|
+
ServiceOptions: {
|
|
211
|
+
encode(message: _15.ServiceOptions, writer?: import("protobufjs").Writer): import("protobufjs").Writer;
|
|
212
|
+
decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _15.ServiceOptions;
|
|
213
|
+
fromJSON(object: any): _15.ServiceOptions;
|
|
214
|
+
toJSON(message: _15.ServiceOptions): unknown;
|
|
215
|
+
fromPartial(object: Partial<_15.ServiceOptions>): _15.ServiceOptions;
|
|
216
|
+
};
|
|
217
|
+
MethodOptions: {
|
|
218
|
+
encode(message: _15.MethodOptions, writer?: import("protobufjs").Writer): import("protobufjs").Writer;
|
|
219
|
+
decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _15.MethodOptions;
|
|
220
|
+
fromJSON(object: any): _15.MethodOptions;
|
|
221
|
+
toJSON(message: _15.MethodOptions): unknown;
|
|
222
|
+
fromPartial(object: Partial<_15.MethodOptions>): _15.MethodOptions;
|
|
223
|
+
};
|
|
224
|
+
UninterpretedOption: {
|
|
225
|
+
encode(message: _15.UninterpretedOption, writer?: import("protobufjs").Writer): import("protobufjs").Writer;
|
|
226
|
+
decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _15.UninterpretedOption;
|
|
227
|
+
fromJSON(object: any): _15.UninterpretedOption;
|
|
228
|
+
toJSON(message: _15.UninterpretedOption): unknown;
|
|
229
|
+
fromPartial(object: Partial<_15.UninterpretedOption>): _15.UninterpretedOption;
|
|
230
|
+
};
|
|
231
|
+
UninterpretedOption_NamePart: {
|
|
232
|
+
encode(message: _15.UninterpretedOption_NamePart, writer?: import("protobufjs").Writer): import("protobufjs").Writer;
|
|
233
|
+
decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _15.UninterpretedOption_NamePart;
|
|
234
|
+
fromJSON(object: any): _15.UninterpretedOption_NamePart;
|
|
235
|
+
toJSON(message: _15.UninterpretedOption_NamePart): unknown;
|
|
236
|
+
fromPartial(object: Partial<_15.UninterpretedOption_NamePart>): _15.UninterpretedOption_NamePart;
|
|
237
|
+
};
|
|
238
|
+
SourceCodeInfo: {
|
|
239
|
+
encode(message: _15.SourceCodeInfo, writer?: import("protobufjs").Writer): import("protobufjs").Writer;
|
|
240
|
+
decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _15.SourceCodeInfo;
|
|
241
|
+
fromJSON(object: any): _15.SourceCodeInfo;
|
|
242
|
+
toJSON(message: _15.SourceCodeInfo): unknown;
|
|
243
|
+
fromPartial(object: Partial<_15.SourceCodeInfo>): _15.SourceCodeInfo;
|
|
244
|
+
};
|
|
245
|
+
SourceCodeInfo_Location: {
|
|
246
|
+
encode(message: _15.SourceCodeInfo_Location, writer?: import("protobufjs").Writer): import("protobufjs").Writer;
|
|
247
|
+
decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _15.SourceCodeInfo_Location;
|
|
248
|
+
fromJSON(object: any): _15.SourceCodeInfo_Location;
|
|
249
|
+
toJSON(message: _15.SourceCodeInfo_Location): unknown;
|
|
250
|
+
fromPartial(object: Partial<_15.SourceCodeInfo_Location>): _15.SourceCodeInfo_Location;
|
|
251
|
+
};
|
|
252
|
+
GeneratedCodeInfo: {
|
|
253
|
+
encode(message: _15.GeneratedCodeInfo, writer?: import("protobufjs").Writer): import("protobufjs").Writer;
|
|
254
|
+
decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _15.GeneratedCodeInfo;
|
|
255
|
+
fromJSON(object: any): _15.GeneratedCodeInfo;
|
|
256
|
+
toJSON(message: _15.GeneratedCodeInfo): unknown;
|
|
257
|
+
fromPartial(object: Partial<_15.GeneratedCodeInfo>): _15.GeneratedCodeInfo;
|
|
258
|
+
};
|
|
259
|
+
GeneratedCodeInfo_Annotation: {
|
|
260
|
+
encode(message: _15.GeneratedCodeInfo_Annotation, writer?: import("protobufjs").Writer): import("protobufjs").Writer;
|
|
261
|
+
decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _15.GeneratedCodeInfo_Annotation;
|
|
262
|
+
fromJSON(object: any): _15.GeneratedCodeInfo_Annotation;
|
|
263
|
+
toJSON(message: _15.GeneratedCodeInfo_Annotation): unknown;
|
|
264
|
+
fromPartial(object: Partial<_15.GeneratedCodeInfo_Annotation>): _15.GeneratedCodeInfo_Annotation;
|
|
265
|
+
};
|
|
266
|
+
Any: {
|
|
267
|
+
encode(message: _14.Any, writer?: import("protobufjs").Writer): import("protobufjs").Writer;
|
|
268
|
+
decode(input: Uint8Array | import("protobufjs").Reader, length?: number): _14.Any;
|
|
269
|
+
fromJSON(object: any): _14.Any;
|
|
270
|
+
toJSON(message: _14.Any): unknown;
|
|
271
|
+
fromPartial(object: Partial<_14.Any>): _14.Any;
|
|
272
|
+
};
|
|
273
|
+
};
|
|
274
|
+
}
|
|
@@ -0,0 +1,238 @@
|
|
|
1
|
+
import * as _m0 from "protobufjs/minimal";
|
|
2
|
+
/**
|
|
3
|
+
* `Any` contains an arbitrary serialized protocol buffer message along with a
|
|
4
|
+
* URL that describes the type of the serialized message.
|
|
5
|
+
*
|
|
6
|
+
* Protobuf library provides support to pack/unpack Any values in the form
|
|
7
|
+
* of utility functions or additional generated methods of the Any type.
|
|
8
|
+
*
|
|
9
|
+
* Example 1: Pack and unpack a message in C++.
|
|
10
|
+
*
|
|
11
|
+
* Foo foo = ...;
|
|
12
|
+
* Any any;
|
|
13
|
+
* any.PackFrom(foo);
|
|
14
|
+
* ...
|
|
15
|
+
* if (any.UnpackTo(&foo)) {
|
|
16
|
+
* ...
|
|
17
|
+
* }
|
|
18
|
+
*
|
|
19
|
+
* Example 2: Pack and unpack a message in Java.
|
|
20
|
+
*
|
|
21
|
+
* Foo foo = ...;
|
|
22
|
+
* Any any = Any.pack(foo);
|
|
23
|
+
* ...
|
|
24
|
+
* if (any.is(Foo.class)) {
|
|
25
|
+
* foo = any.unpack(Foo.class);
|
|
26
|
+
* }
|
|
27
|
+
*
|
|
28
|
+
* Example 3: Pack and unpack a message in Python.
|
|
29
|
+
*
|
|
30
|
+
* foo = Foo(...)
|
|
31
|
+
* any = Any()
|
|
32
|
+
* any.Pack(foo)
|
|
33
|
+
* ...
|
|
34
|
+
* if any.Is(Foo.DESCRIPTOR):
|
|
35
|
+
* any.Unpack(foo)
|
|
36
|
+
* ...
|
|
37
|
+
*
|
|
38
|
+
* Example 4: Pack and unpack a message in Go
|
|
39
|
+
*
|
|
40
|
+
* foo := &pb.Foo{...}
|
|
41
|
+
* any, err := ptypes.MarshalAny(foo)
|
|
42
|
+
* ...
|
|
43
|
+
* foo := &pb.Foo{}
|
|
44
|
+
* if err := ptypes.UnmarshalAny(any, foo); err != nil {
|
|
45
|
+
* ...
|
|
46
|
+
* }
|
|
47
|
+
*
|
|
48
|
+
* The pack methods provided by protobuf library will by default use
|
|
49
|
+
* 'type.googleapis.com/full.type.name' as the type URL and the unpack
|
|
50
|
+
* methods only use the fully qualified type name after the last '/'
|
|
51
|
+
* in the type URL, for example "foo.bar.com/x/y.z" will yield type
|
|
52
|
+
* name "y.z".
|
|
53
|
+
*
|
|
54
|
+
*
|
|
55
|
+
* JSON
|
|
56
|
+
* ====
|
|
57
|
+
* The JSON representation of an `Any` value uses the regular
|
|
58
|
+
* representation of the deserialized, embedded message, with an
|
|
59
|
+
* additional field `@type` which contains the type URL. Example:
|
|
60
|
+
*
|
|
61
|
+
* package google.profile;
|
|
62
|
+
* message Person {
|
|
63
|
+
* string first_name = 1;
|
|
64
|
+
* string last_name = 2;
|
|
65
|
+
* }
|
|
66
|
+
*
|
|
67
|
+
* {
|
|
68
|
+
* "@type": "type.googleapis.com/google.profile.Person",
|
|
69
|
+
* "firstName": <string>,
|
|
70
|
+
* "lastName": <string>
|
|
71
|
+
* }
|
|
72
|
+
*
|
|
73
|
+
* If the embedded message type is well-known and has a custom JSON
|
|
74
|
+
* representation, that representation will be embedded adding a field
|
|
75
|
+
* `value` which holds the custom JSON in addition to the `@type`
|
|
76
|
+
* field. Example (for message [google.protobuf.Duration][]):
|
|
77
|
+
*
|
|
78
|
+
* {
|
|
79
|
+
* "@type": "type.googleapis.com/google.protobuf.Duration",
|
|
80
|
+
* "value": "1.212s"
|
|
81
|
+
* }
|
|
82
|
+
*/
|
|
83
|
+
export interface Any {
|
|
84
|
+
/**
|
|
85
|
+
* A URL/resource name that uniquely identifies the type of the serialized
|
|
86
|
+
* protocol buffer message. This string must contain at least
|
|
87
|
+
* one "/" character. The last segment of the URL's path must represent
|
|
88
|
+
* the fully qualified name of the type (as in
|
|
89
|
+
* `path/google.protobuf.Duration`). The name should be in a canonical form
|
|
90
|
+
* (e.g., leading "." is not accepted).
|
|
91
|
+
*
|
|
92
|
+
* In practice, teams usually precompile into the binary all types that they
|
|
93
|
+
* expect it to use in the context of Any. However, for URLs which use the
|
|
94
|
+
* scheme `http`, `https`, or no scheme, one can optionally set up a type
|
|
95
|
+
* server that maps type URLs to message definitions as follows:
|
|
96
|
+
*
|
|
97
|
+
* * If no scheme is provided, `https` is assumed.
|
|
98
|
+
* * An HTTP GET on the URL must yield a [google.protobuf.Type][]
|
|
99
|
+
* value in binary format, or produce an error.
|
|
100
|
+
* * Applications are allowed to cache lookup results based on the
|
|
101
|
+
* URL, or have them precompiled into a binary to avoid any
|
|
102
|
+
* lookup. Therefore, binary compatibility needs to be preserved
|
|
103
|
+
* on changes to types. (Use versioned type names to manage
|
|
104
|
+
* breaking changes.)
|
|
105
|
+
*
|
|
106
|
+
* Note: this functionality is not currently available in the official
|
|
107
|
+
* protobuf release, and it is not used for type URLs beginning with
|
|
108
|
+
* type.googleapis.com.
|
|
109
|
+
*
|
|
110
|
+
* Schemes other than `http`, `https` (or the empty scheme) might be
|
|
111
|
+
* used with implementation specific semantics.
|
|
112
|
+
*/
|
|
113
|
+
typeUrl: string;
|
|
114
|
+
/** Must be a valid serialized protocol buffer of the above specified type. */
|
|
115
|
+
value: Uint8Array;
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* `Any` contains an arbitrary serialized protocol buffer message along with a
|
|
119
|
+
* URL that describes the type of the serialized message.
|
|
120
|
+
*
|
|
121
|
+
* Protobuf library provides support to pack/unpack Any values in the form
|
|
122
|
+
* of utility functions or additional generated methods of the Any type.
|
|
123
|
+
*
|
|
124
|
+
* Example 1: Pack and unpack a message in C++.
|
|
125
|
+
*
|
|
126
|
+
* Foo foo = ...;
|
|
127
|
+
* Any any;
|
|
128
|
+
* any.PackFrom(foo);
|
|
129
|
+
* ...
|
|
130
|
+
* if (any.UnpackTo(&foo)) {
|
|
131
|
+
* ...
|
|
132
|
+
* }
|
|
133
|
+
*
|
|
134
|
+
* Example 2: Pack and unpack a message in Java.
|
|
135
|
+
*
|
|
136
|
+
* Foo foo = ...;
|
|
137
|
+
* Any any = Any.pack(foo);
|
|
138
|
+
* ...
|
|
139
|
+
* if (any.is(Foo.class)) {
|
|
140
|
+
* foo = any.unpack(Foo.class);
|
|
141
|
+
* }
|
|
142
|
+
*
|
|
143
|
+
* Example 3: Pack and unpack a message in Python.
|
|
144
|
+
*
|
|
145
|
+
* foo = Foo(...)
|
|
146
|
+
* any = Any()
|
|
147
|
+
* any.Pack(foo)
|
|
148
|
+
* ...
|
|
149
|
+
* if any.Is(Foo.DESCRIPTOR):
|
|
150
|
+
* any.Unpack(foo)
|
|
151
|
+
* ...
|
|
152
|
+
*
|
|
153
|
+
* Example 4: Pack and unpack a message in Go
|
|
154
|
+
*
|
|
155
|
+
* foo := &pb.Foo{...}
|
|
156
|
+
* any, err := ptypes.MarshalAny(foo)
|
|
157
|
+
* ...
|
|
158
|
+
* foo := &pb.Foo{}
|
|
159
|
+
* if err := ptypes.UnmarshalAny(any, foo); err != nil {
|
|
160
|
+
* ...
|
|
161
|
+
* }
|
|
162
|
+
*
|
|
163
|
+
* The pack methods provided by protobuf library will by default use
|
|
164
|
+
* 'type.googleapis.com/full.type.name' as the type URL and the unpack
|
|
165
|
+
* methods only use the fully qualified type name after the last '/'
|
|
166
|
+
* in the type URL, for example "foo.bar.com/x/y.z" will yield type
|
|
167
|
+
* name "y.z".
|
|
168
|
+
*
|
|
169
|
+
*
|
|
170
|
+
* JSON
|
|
171
|
+
* ====
|
|
172
|
+
* The JSON representation of an `Any` value uses the regular
|
|
173
|
+
* representation of the deserialized, embedded message, with an
|
|
174
|
+
* additional field `@type` which contains the type URL. Example:
|
|
175
|
+
*
|
|
176
|
+
* package google.profile;
|
|
177
|
+
* message Person {
|
|
178
|
+
* string first_name = 1;
|
|
179
|
+
* string last_name = 2;
|
|
180
|
+
* }
|
|
181
|
+
*
|
|
182
|
+
* {
|
|
183
|
+
* "@type": "type.googleapis.com/google.profile.Person",
|
|
184
|
+
* "firstName": <string>,
|
|
185
|
+
* "lastName": <string>
|
|
186
|
+
* }
|
|
187
|
+
*
|
|
188
|
+
* If the embedded message type is well-known and has a custom JSON
|
|
189
|
+
* representation, that representation will be embedded adding a field
|
|
190
|
+
* `value` which holds the custom JSON in addition to the `@type`
|
|
191
|
+
* field. Example (for message [google.protobuf.Duration][]):
|
|
192
|
+
*
|
|
193
|
+
* {
|
|
194
|
+
* "@type": "type.googleapis.com/google.protobuf.Duration",
|
|
195
|
+
* "value": "1.212s"
|
|
196
|
+
* }
|
|
197
|
+
*/
|
|
198
|
+
export interface AnySDKType {
|
|
199
|
+
/**
|
|
200
|
+
* A URL/resource name that uniquely identifies the type of the serialized
|
|
201
|
+
* protocol buffer message. This string must contain at least
|
|
202
|
+
* one "/" character. The last segment of the URL's path must represent
|
|
203
|
+
* the fully qualified name of the type (as in
|
|
204
|
+
* `path/google.protobuf.Duration`). The name should be in a canonical form
|
|
205
|
+
* (e.g., leading "." is not accepted).
|
|
206
|
+
*
|
|
207
|
+
* In practice, teams usually precompile into the binary all types that they
|
|
208
|
+
* expect it to use in the context of Any. However, for URLs which use the
|
|
209
|
+
* scheme `http`, `https`, or no scheme, one can optionally set up a type
|
|
210
|
+
* server that maps type URLs to message definitions as follows:
|
|
211
|
+
*
|
|
212
|
+
* * If no scheme is provided, `https` is assumed.
|
|
213
|
+
* * An HTTP GET on the URL must yield a [google.protobuf.Type][]
|
|
214
|
+
* value in binary format, or produce an error.
|
|
215
|
+
* * Applications are allowed to cache lookup results based on the
|
|
216
|
+
* URL, or have them precompiled into a binary to avoid any
|
|
217
|
+
* lookup. Therefore, binary compatibility needs to be preserved
|
|
218
|
+
* on changes to types. (Use versioned type names to manage
|
|
219
|
+
* breaking changes.)
|
|
220
|
+
*
|
|
221
|
+
* Note: this functionality is not currently available in the official
|
|
222
|
+
* protobuf release, and it is not used for type URLs beginning with
|
|
223
|
+
* type.googleapis.com.
|
|
224
|
+
*
|
|
225
|
+
* Schemes other than `http`, `https` (or the empty scheme) might be
|
|
226
|
+
* used with implementation specific semantics.
|
|
227
|
+
*/
|
|
228
|
+
type_url: string;
|
|
229
|
+
/** Must be a valid serialized protocol buffer of the above specified type. */
|
|
230
|
+
value: Uint8Array;
|
|
231
|
+
}
|
|
232
|
+
export declare const Any: {
|
|
233
|
+
encode(message: Any, writer?: _m0.Writer): _m0.Writer;
|
|
234
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): Any;
|
|
235
|
+
fromJSON(object: any): Any;
|
|
236
|
+
toJSON(message: Any): unknown;
|
|
237
|
+
fromPartial(object: Partial<Any>): Any;
|
|
238
|
+
};
|