@bze/bzejs 0.0.10 → 0.0.11
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/package.json +1 -1
- package/types/codegen/amino/amino.d.ts +1 -0
- package/types/codegen/amino/bundle.d.ts +1 -0
- package/types/codegen/beezee/burner/query.d.ts +0 -1
- package/types/codegen/beezee/burner/tx.amino.d.ts +3 -3
- package/types/codegen/beezee/cointrunk/anon_articles_counter.d.ts +1 -1
- package/types/codegen/beezee/cointrunk/article.d.ts +1 -1
- package/types/codegen/beezee/cointrunk/events.d.ts +1 -1
- package/types/codegen/beezee/cointrunk/genesis.d.ts +1 -1
- package/types/codegen/beezee/cointrunk/publisher.d.ts +1 -1
- package/types/codegen/beezee/cointrunk/query.d.ts +0 -1
- package/types/codegen/beezee/cointrunk/tx.amino.d.ts +6 -6
- package/types/codegen/bze/bundle.d.ts +247 -3513
- package/types/codegen/confio/proofs.d.ts +439 -0
- package/types/codegen/cosmos/app/v1alpha1/config.d.ts +0 -17
- package/types/codegen/cosmos/app/v1alpha1/module.d.ts +0 -64
- package/types/codegen/cosmos/app/v1alpha1/query.d.ts +0 -1
- package/types/codegen/cosmos/auth/v1beta1/auth.d.ts +1 -1
- package/types/codegen/cosmos/auth/v1beta1/genesis.d.ts +0 -2
- package/types/codegen/cosmos/auth/v1beta1/query.d.ts +0 -6
- package/types/codegen/cosmos/authz/v1beta1/authz.d.ts +0 -7
- package/types/codegen/cosmos/authz/v1beta1/event.d.ts +0 -6
- package/types/codegen/cosmos/authz/v1beta1/query.d.ts +0 -10
- package/types/codegen/cosmos/authz/v1beta1/tx.amino.d.ts +9 -9
- package/types/codegen/cosmos/authz/v1beta1/tx.d.ts +0 -5
- package/types/codegen/cosmos/bank/v1beta1/bank.d.ts +0 -37
- package/types/codegen/cosmos/bank/v1beta1/genesis.d.ts +0 -9
- package/types/codegen/cosmos/bank/v1beta1/query.d.ts +0 -34
- package/types/codegen/cosmos/bank/v1beta1/tx.amino.d.ts +6 -6
- package/types/codegen/cosmos/base/abci/v1beta1/abci.d.ts +1 -62
- package/types/codegen/cosmos/base/query/v1beta1/pagination.d.ts +1 -35
- package/types/codegen/cosmos/base/reflection/v1beta1/reflection.d.ts +0 -2
- package/types/codegen/cosmos/base/reflection/v2alpha1/reflection.d.ts +0 -63
- package/types/codegen/cosmos/base/snapshots/v1beta1/snapshot.d.ts +1 -4
- package/types/codegen/cosmos/base/store/v1beta1/commit_info.d.ts +1 -1
- package/types/codegen/cosmos/base/store/v1beta1/listening.d.ts +0 -2
- package/types/codegen/cosmos/base/tendermint/v1beta1/query.d.ts +1 -9
- package/types/codegen/cosmos/bundle.d.ts +3223 -41279
- package/types/codegen/cosmos/capability/v1beta1/capability.d.ts +1 -1
- package/types/codegen/cosmos/capability/v1beta1/genesis.d.ts +1 -8
- package/types/codegen/cosmos/crisis/v1beta1/genesis.d.ts +0 -4
- package/types/codegen/cosmos/crisis/v1beta1/tx.amino.d.ts +3 -3
- package/types/codegen/cosmos/crypto/hd/v1/hd.d.ts +0 -8
- package/types/codegen/cosmos/crypto/keyring/v1/record.d.ts +0 -6
- package/types/codegen/cosmos/crypto/secp256r1/keys.d.ts +0 -5
- package/types/codegen/cosmos/distribution/v1beta1/genesis.d.ts +0 -28
- package/types/codegen/cosmos/distribution/v1beta1/query.d.ts +0 -21
- package/types/codegen/cosmos/distribution/v1beta1/tx.amino.d.ts +12 -12
- package/types/codegen/cosmos/evidence/v1beta1/evidence.d.ts +1 -1
- package/types/codegen/cosmos/evidence/v1beta1/genesis.d.ts +0 -1
- package/types/codegen/cosmos/evidence/v1beta1/query.d.ts +0 -5
- package/types/codegen/cosmos/evidence/v1beta1/tx.amino.d.ts +3 -3
- package/types/codegen/cosmos/evidence/v1beta1/tx.d.ts +0 -1
- package/types/codegen/cosmos/feegrant/v1beta1/feegrant.d.ts +0 -26
- package/types/codegen/cosmos/feegrant/v1beta1/query.d.ts +0 -9
- package/types/codegen/cosmos/feegrant/v1beta1/tx.amino.d.ts +6 -6
- package/types/codegen/cosmos/feegrant/v1beta1/tx.d.ts +0 -5
- package/types/codegen/cosmos/genutil/v1beta1/genesis.d.ts +0 -1
- package/types/codegen/cosmos/gov/v1/genesis.d.ts +1 -8
- package/types/codegen/cosmos/gov/v1/gov.d.ts +4 -69
- package/types/codegen/cosmos/gov/v1/query.d.ts +3 -31
- package/types/codegen/cosmos/gov/v1/tx.amino.d.ts +15 -15
- package/types/codegen/cosmos/gov/v1/tx.d.ts +2 -5
- package/types/codegen/cosmos/gov/v1beta1/genesis.d.ts +1 -8
- package/types/codegen/cosmos/gov/v1beta1/gov.d.ts +5 -74
- package/types/codegen/cosmos/gov/v1beta1/query.d.ts +3 -31
- package/types/codegen/cosmos/gov/v1beta1/tx.amino.d.ts +12 -12
- package/types/codegen/cosmos/gov/v1beta1/tx.d.ts +2 -2
- package/types/codegen/cosmos/group/v1/events.d.ts +3 -14
- package/types/codegen/cosmos/group/v1/genesis.d.ts +1 -18
- package/types/codegen/cosmos/group/v1/query.d.ts +1 -44
- package/types/codegen/cosmos/group/v1/tx.amino.d.ts +42 -42
- package/types/codegen/cosmos/group/v1/tx.d.ts +5 -85
- package/types/codegen/cosmos/group/v1/types.d.ts +8 -150
- package/types/codegen/cosmos/mint/v1beta1/genesis.d.ts +0 -2
- package/types/codegen/cosmos/mint/v1beta1/mint.d.ts +0 -8
- package/types/codegen/cosmos/mint/v1beta1/query.d.ts +0 -3
- package/types/codegen/cosmos/nft/v1beta1/genesis.d.ts +0 -3
- package/types/codegen/cosmos/nft/v1beta1/nft.d.ts +0 -12
- package/types/codegen/cosmos/nft/v1beta1/query.d.ts +0 -1
- package/types/codegen/cosmos/nft/v1beta1/tx.amino.d.ts +3 -3
- package/types/codegen/cosmos/nft/v1beta1/tx.d.ts +0 -4
- package/types/codegen/cosmos/orm/v1/orm.d.ts +0 -66
- package/types/codegen/cosmos/orm/v1alpha1/schema.d.ts +2 -62
- package/types/codegen/cosmos/params/v1beta1/query.d.ts +0 -3
- package/types/codegen/cosmos/slashing/v1beta1/genesis.d.ts +0 -15
- package/types/codegen/cosmos/slashing/v1beta1/query.d.ts +0 -3
- package/types/codegen/cosmos/slashing/v1beta1/slashing.d.ts +1 -16
- package/types/codegen/cosmos/slashing/v1beta1/tx.amino.d.ts +3 -3
- package/types/codegen/cosmos/staking/v1beta1/authz.d.ts +2 -27
- package/types/codegen/cosmos/staking/v1beta1/genesis.d.ts +0 -15
- package/types/codegen/cosmos/staking/v1beta1/query.d.ts +0 -41
- package/types/codegen/cosmos/staking/v1beta1/staking.d.ts +2 -58
- package/types/codegen/cosmos/staking/v1beta1/tx.amino.d.ts +15 -15
- package/types/codegen/cosmos/staking/v1beta1/tx.d.ts +0 -6
- package/types/codegen/cosmos/tx/signing/v1beta1/signing.d.ts +2 -57
- package/types/codegen/cosmos/tx/v1beta1/service.d.ts +4 -58
- package/types/codegen/cosmos/tx/v1beta1/tx.d.ts +3 -152
- package/types/codegen/cosmos/upgrade/v1beta1/query.d.ts +0 -14
- package/types/codegen/cosmos/upgrade/v1beta1/tx.amino.d.ts +6 -6
- package/types/codegen/cosmos/upgrade/v1beta1/tx.d.ts +0 -3
- package/types/codegen/cosmos/upgrade/v1beta1/upgrade.d.ts +1 -30
- package/types/codegen/cosmos/vesting/v1beta1/tx.amino.d.ts +9 -9
- package/types/codegen/cosmos/vesting/v1beta1/tx.d.ts +1 -1
- package/types/codegen/cosmos/vesting/v1beta1/vesting.d.ts +1 -1
- package/types/codegen/cosmos_proto/bundle.d.ts +12 -12
- package/types/codegen/cosmos_proto/cosmos.d.ts +2 -34
- package/types/codegen/google/api/http.d.ts +0 -55
- package/types/codegen/google/bundle.d.ts +284 -7810
- package/types/codegen/google/protobuf/any.d.ts +0 -30
- package/types/codegen/google/protobuf/descriptor.d.ts +12 -566
- package/types/codegen/google/protobuf/duration.d.ts +1 -14
- package/types/codegen/google/protobuf/timestamp.d.ts +1 -12
- package/types/codegen/helpers.d.ts +2 -2
- package/types/codegen/ibc/applications/transfer/v1/genesis.d.ts +20 -0
- package/types/codegen/ibc/applications/transfer/v1/query.d.ts +112 -0
- package/types/codegen/ibc/applications/transfer/v1/query.lcd.d.ts +11 -0
- package/types/codegen/ibc/applications/transfer/v1/query.rpc.Query.d.ts +24 -0
- package/types/codegen/ibc/applications/transfer/v1/transfer.d.ts +61 -0
- package/types/codegen/ibc/applications/transfer/v1/tx.amino.d.ts +25 -0
- package/types/codegen/ibc/applications/transfer/v1/tx.d.ts +61 -0
- package/types/codegen/ibc/applications/transfer/v1/tx.registry.d.ts +24 -0
- package/types/codegen/ibc/applications/transfer/v1/tx.rpc.msg.d.ts +12 -0
- package/types/codegen/ibc/applications/transfer/v2/packet.d.ts +33 -0
- package/types/codegen/ibc/bundle.d.ts +4077 -0
- package/types/codegen/ibc/client.d.ts +560 -0
- package/types/codegen/ibc/core/channel/v1/channel.d.ts +243 -0
- package/types/codegen/ibc/core/channel/v1/genesis.d.ts +54 -0
- package/types/codegen/ibc/core/channel/v1/query.d.ts +655 -0
- package/types/codegen/ibc/core/channel/v1/query.lcd.d.ts +21 -0
- package/types/codegen/ibc/core/channel/v1/query.rpc.Query.d.ts +88 -0
- package/types/codegen/ibc/core/channel/v1/tx.amino.d.ts +209 -0
- package/types/codegen/ibc/core/channel/v1/tx.d.ts +376 -0
- package/types/codegen/ibc/core/channel/v1/tx.registry.d.ts +132 -0
- package/types/codegen/ibc/core/channel/v1/tx.rpc.msg.d.ts +42 -0
- package/types/codegen/ibc/core/client/v1/client.d.ts +195 -0
- package/types/codegen/ibc/core/client/v1/genesis.d.ts +75 -0
- package/types/codegen/ibc/core/client/v1/query.d.ts +352 -0
- package/types/codegen/ibc/core/client/v1/query.lcd.d.ts +16 -0
- package/types/codegen/ibc/core/client/v1/query.rpc.Query.d.ts +50 -0
- package/types/codegen/ibc/core/client/v1/tx.amino.d.ts +77 -0
- package/types/codegen/ibc/core/client/v1/tx.d.ts +166 -0
- package/types/codegen/ibc/core/client/v1/tx.registry.d.ts +60 -0
- package/types/codegen/ibc/core/client/v1/tx.rpc.msg.d.ts +21 -0
- package/types/codegen/ibc/core/commitment/v1/commitment.d.ts +89 -0
- package/types/codegen/ibc/core/connection/v1/connection.d.ts +203 -0
- package/types/codegen/ibc/core/connection/v1/genesis.d.ts +23 -0
- package/types/codegen/ibc/core/connection/v1/query.d.ts +244 -0
- package/types/codegen/ibc/core/connection/v1/query.lcd.d.ts +13 -0
- package/types/codegen/ibc/core/connection/v1/query.rpc.Query.d.ts +41 -0
- package/types/codegen/ibc/core/connection/v1/tx.amino.d.ts +103 -0
- package/types/codegen/ibc/core/connection/v1/tx.d.ts +208 -0
- package/types/codegen/ibc/core/connection/v1/tx.registry.d.ts +60 -0
- package/types/codegen/ibc/core/connection/v1/tx.rpc.msg.d.ts +24 -0
- package/types/codegen/ibc/core/port/v1/query.d.ts +46 -0
- package/types/codegen/ibc/core/port/v1/query.rpc.Query.d.ts +16 -0
- package/types/codegen/ibc/core/types/v1/genesis.d.ts +28 -0
- package/types/codegen/ibc/lcd.d.ts +75 -0
- package/types/codegen/ibc/lightclients/localhost/v1/localhost.d.ts +26 -0
- package/types/codegen/ibc/lightclients/solomachine/v1/solomachine.d.ts +390 -0
- package/types/codegen/ibc/lightclients/solomachine/v2/solomachine.d.ts +390 -0
- package/types/codegen/ibc/lightclients/tendermint/v1/tendermint.d.ts +184 -0
- package/types/codegen/ibc/rpc.query.d.ts +243 -0
- package/types/codegen/ibc/rpc.tx.d.ts +65 -0
- package/types/codegen/ics23/bundle.d.ts +545 -0
- package/types/codegen/index.d.ts +5 -2
- package/types/codegen/tendermint/abci/types.d.ts +8 -78
- package/types/codegen/tendermint/bundle.d.ts +567 -18175
- package/types/codegen/tendermint/crypto/proof.d.ts +1 -3
- package/types/codegen/tendermint/libs/bits/types.d.ts +1 -1
- package/types/codegen/tendermint/p2p/types.d.ts +1 -1
- package/types/codegen/tendermint/types/params.d.ts +0 -32
- package/types/codegen/tendermint/types/types.d.ts +5 -36
- package/types/codegen/tendermint/types/validator.d.ts +1 -1
- package/types/codegen/tendermint/version/types.d.ts +1 -1
|
@@ -42,48 +42,7 @@ export declare enum FieldDescriptorProto_Type {
|
|
|
42
42
|
TYPE_SINT64 = 18,
|
|
43
43
|
UNRECOGNIZED = -1
|
|
44
44
|
}
|
|
45
|
-
export declare
|
|
46
|
-
/**
|
|
47
|
-
* TYPE_DOUBLE - 0 is reserved for errors.
|
|
48
|
-
* Order is weird for historical reasons.
|
|
49
|
-
*/
|
|
50
|
-
TYPE_DOUBLE = 1,
|
|
51
|
-
TYPE_FLOAT = 2,
|
|
52
|
-
/**
|
|
53
|
-
* TYPE_INT64 - Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT64 if
|
|
54
|
-
* negative values are likely.
|
|
55
|
-
*/
|
|
56
|
-
TYPE_INT64 = 3,
|
|
57
|
-
TYPE_UINT64 = 4,
|
|
58
|
-
/**
|
|
59
|
-
* TYPE_INT32 - Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT32 if
|
|
60
|
-
* negative values are likely.
|
|
61
|
-
*/
|
|
62
|
-
TYPE_INT32 = 5,
|
|
63
|
-
TYPE_FIXED64 = 6,
|
|
64
|
-
TYPE_FIXED32 = 7,
|
|
65
|
-
TYPE_BOOL = 8,
|
|
66
|
-
TYPE_STRING = 9,
|
|
67
|
-
/**
|
|
68
|
-
* TYPE_GROUP - Tag-delimited aggregate.
|
|
69
|
-
* Group type is deprecated and not supported in proto3. However, Proto3
|
|
70
|
-
* implementations should still be able to parse the group wire format and
|
|
71
|
-
* treat group fields as unknown fields.
|
|
72
|
-
*/
|
|
73
|
-
TYPE_GROUP = 10,
|
|
74
|
-
TYPE_MESSAGE = 11,
|
|
75
|
-
/** TYPE_BYTES - New in version 2. */
|
|
76
|
-
TYPE_BYTES = 12,
|
|
77
|
-
TYPE_UINT32 = 13,
|
|
78
|
-
TYPE_ENUM = 14,
|
|
79
|
-
TYPE_SFIXED32 = 15,
|
|
80
|
-
TYPE_SFIXED64 = 16,
|
|
81
|
-
/** TYPE_SINT32 - Uses ZigZag encoding. */
|
|
82
|
-
TYPE_SINT32 = 17,
|
|
83
|
-
/** TYPE_SINT64 - Uses ZigZag encoding. */
|
|
84
|
-
TYPE_SINT64 = 18,
|
|
85
|
-
UNRECOGNIZED = -1
|
|
86
|
-
}
|
|
45
|
+
export declare const FieldDescriptorProto_TypeSDKType: typeof FieldDescriptorProto_Type;
|
|
87
46
|
export declare function fieldDescriptorProto_TypeFromJSON(object: any): FieldDescriptorProto_Type;
|
|
88
47
|
export declare function fieldDescriptorProto_TypeToJSON(object: FieldDescriptorProto_Type): string;
|
|
89
48
|
export declare enum FieldDescriptorProto_Label {
|
|
@@ -93,13 +52,7 @@ export declare enum FieldDescriptorProto_Label {
|
|
|
93
52
|
LABEL_REPEATED = 3,
|
|
94
53
|
UNRECOGNIZED = -1
|
|
95
54
|
}
|
|
96
|
-
export declare
|
|
97
|
-
/** LABEL_OPTIONAL - 0 is reserved for errors */
|
|
98
|
-
LABEL_OPTIONAL = 1,
|
|
99
|
-
LABEL_REQUIRED = 2,
|
|
100
|
-
LABEL_REPEATED = 3,
|
|
101
|
-
UNRECOGNIZED = -1
|
|
102
|
-
}
|
|
55
|
+
export declare const FieldDescriptorProto_LabelSDKType: typeof FieldDescriptorProto_Label;
|
|
103
56
|
export declare function fieldDescriptorProto_LabelFromJSON(object: any): FieldDescriptorProto_Label;
|
|
104
57
|
export declare function fieldDescriptorProto_LabelToJSON(object: FieldDescriptorProto_Label): string;
|
|
105
58
|
/** Generated classes can be optimized for speed or code size. */
|
|
@@ -115,19 +68,7 @@ export declare enum FileOptions_OptimizeMode {
|
|
|
115
68
|
LITE_RUNTIME = 3,
|
|
116
69
|
UNRECOGNIZED = -1
|
|
117
70
|
}
|
|
118
|
-
|
|
119
|
-
export declare enum FileOptions_OptimizeModeSDKType {
|
|
120
|
-
/**
|
|
121
|
-
* SPEED - Generate complete code for parsing, serialization,
|
|
122
|
-
* etc.
|
|
123
|
-
*/
|
|
124
|
-
SPEED = 1,
|
|
125
|
-
/** CODE_SIZE - Use ReflectionOps to implement these methods. */
|
|
126
|
-
CODE_SIZE = 2,
|
|
127
|
-
/** LITE_RUNTIME - Generate code using MessageLite and the lite runtime. */
|
|
128
|
-
LITE_RUNTIME = 3,
|
|
129
|
-
UNRECOGNIZED = -1
|
|
130
|
-
}
|
|
71
|
+
export declare const FileOptions_OptimizeModeSDKType: typeof FileOptions_OptimizeMode;
|
|
131
72
|
export declare function fileOptions_OptimizeModeFromJSON(object: any): FileOptions_OptimizeMode;
|
|
132
73
|
export declare function fileOptions_OptimizeModeToJSON(object: FileOptions_OptimizeMode): string;
|
|
133
74
|
export declare enum FieldOptions_CType {
|
|
@@ -137,13 +78,7 @@ export declare enum FieldOptions_CType {
|
|
|
137
78
|
STRING_PIECE = 2,
|
|
138
79
|
UNRECOGNIZED = -1
|
|
139
80
|
}
|
|
140
|
-
export declare
|
|
141
|
-
/** STRING - Default mode. */
|
|
142
|
-
STRING = 0,
|
|
143
|
-
CORD = 1,
|
|
144
|
-
STRING_PIECE = 2,
|
|
145
|
-
UNRECOGNIZED = -1
|
|
146
|
-
}
|
|
81
|
+
export declare const FieldOptions_CTypeSDKType: typeof FieldOptions_CType;
|
|
147
82
|
export declare function fieldOptions_CTypeFromJSON(object: any): FieldOptions_CType;
|
|
148
83
|
export declare function fieldOptions_CTypeToJSON(object: FieldOptions_CType): string;
|
|
149
84
|
export declare enum FieldOptions_JSType {
|
|
@@ -155,15 +90,7 @@ export declare enum FieldOptions_JSType {
|
|
|
155
90
|
JS_NUMBER = 2,
|
|
156
91
|
UNRECOGNIZED = -1
|
|
157
92
|
}
|
|
158
|
-
export declare
|
|
159
|
-
/** JS_NORMAL - Use the default type. */
|
|
160
|
-
JS_NORMAL = 0,
|
|
161
|
-
/** JS_STRING - Use JavaScript strings. */
|
|
162
|
-
JS_STRING = 1,
|
|
163
|
-
/** JS_NUMBER - Use JavaScript numbers. */
|
|
164
|
-
JS_NUMBER = 2,
|
|
165
|
-
UNRECOGNIZED = -1
|
|
166
|
-
}
|
|
93
|
+
export declare const FieldOptions_JSTypeSDKType: typeof FieldOptions_JSType;
|
|
167
94
|
export declare function fieldOptions_JSTypeFromJSON(object: any): FieldOptions_JSType;
|
|
168
95
|
export declare function fieldOptions_JSTypeToJSON(object: FieldOptions_JSType): string;
|
|
169
96
|
/**
|
|
@@ -179,19 +106,7 @@ export declare enum MethodOptions_IdempotencyLevel {
|
|
|
179
106
|
IDEMPOTENT = 2,
|
|
180
107
|
UNRECOGNIZED = -1
|
|
181
108
|
}
|
|
182
|
-
|
|
183
|
-
* Is this method side-effect-free (or safe in HTTP parlance), or idempotent,
|
|
184
|
-
* or neither? HTTP based RPC implementation may choose GET verb for safe
|
|
185
|
-
* methods, and PUT verb for idempotent methods instead of the default POST.
|
|
186
|
-
*/
|
|
187
|
-
export declare enum MethodOptions_IdempotencyLevelSDKType {
|
|
188
|
-
IDEMPOTENCY_UNKNOWN = 0,
|
|
189
|
-
/** NO_SIDE_EFFECTS - implies idempotent */
|
|
190
|
-
NO_SIDE_EFFECTS = 1,
|
|
191
|
-
/** IDEMPOTENT - idempotent, but may have side effects */
|
|
192
|
-
IDEMPOTENT = 2,
|
|
193
|
-
UNRECOGNIZED = -1
|
|
194
|
-
}
|
|
109
|
+
export declare const MethodOptions_IdempotencyLevelSDKType: typeof MethodOptions_IdempotencyLevel;
|
|
195
110
|
export declare function methodOptions_IdempotencyLevelFromJSON(object: any): MethodOptions_IdempotencyLevel;
|
|
196
111
|
export declare function methodOptions_IdempotencyLevelToJSON(object: MethodOptions_IdempotencyLevel): string;
|
|
197
112
|
/**
|
|
@@ -243,35 +158,17 @@ export interface FileDescriptorProto {
|
|
|
243
158
|
}
|
|
244
159
|
/** Describes a complete .proto file. */
|
|
245
160
|
export interface FileDescriptorProtoSDKType {
|
|
246
|
-
/** file name, relative to root of source tree */
|
|
247
161
|
name: string;
|
|
248
162
|
package: string;
|
|
249
|
-
/** Names of files imported by this file. */
|
|
250
163
|
dependency: string[];
|
|
251
|
-
/** Indexes of the public imported files in the dependency list above. */
|
|
252
164
|
public_dependency: number[];
|
|
253
|
-
/**
|
|
254
|
-
* Indexes of the weak imported files in the dependency list.
|
|
255
|
-
* For Google-internal migration only. Do not use.
|
|
256
|
-
*/
|
|
257
165
|
weak_dependency: number[];
|
|
258
|
-
/** All top-level definitions in this file. */
|
|
259
166
|
message_type: DescriptorProtoSDKType[];
|
|
260
167
|
enum_type: EnumDescriptorProtoSDKType[];
|
|
261
168
|
service: ServiceDescriptorProtoSDKType[];
|
|
262
169
|
extension: FieldDescriptorProtoSDKType[];
|
|
263
170
|
options?: FileOptionsSDKType;
|
|
264
|
-
/**
|
|
265
|
-
* This field contains optional information about the original source code.
|
|
266
|
-
* You may safely remove this entire field without harming runtime
|
|
267
|
-
* functionality of the descriptors -- the information is needed only by
|
|
268
|
-
* development tools.
|
|
269
|
-
*/
|
|
270
171
|
source_code_info?: SourceCodeInfoSDKType;
|
|
271
|
-
/**
|
|
272
|
-
* The syntax of the proto file.
|
|
273
|
-
* The supported values are "proto2" and "proto3".
|
|
274
|
-
*/
|
|
275
172
|
syntax: string;
|
|
276
173
|
}
|
|
277
174
|
/** Describes a message type. */
|
|
@@ -302,10 +199,6 @@ export interface DescriptorProtoSDKType {
|
|
|
302
199
|
oneof_decl: OneofDescriptorProtoSDKType[];
|
|
303
200
|
options?: MessageOptionsSDKType;
|
|
304
201
|
reserved_range: DescriptorProto_ReservedRangeSDKType[];
|
|
305
|
-
/**
|
|
306
|
-
* Reserved field names, which may not be used by fields in the same message.
|
|
307
|
-
* A given name may only be reserved once.
|
|
308
|
-
*/
|
|
309
202
|
reserved_name: string[];
|
|
310
203
|
}
|
|
311
204
|
export interface DescriptorProto_ExtensionRange {
|
|
@@ -316,9 +209,7 @@ export interface DescriptorProto_ExtensionRange {
|
|
|
316
209
|
options?: ExtensionRangeOptions;
|
|
317
210
|
}
|
|
318
211
|
export interface DescriptorProto_ExtensionRangeSDKType {
|
|
319
|
-
/** Inclusive. */
|
|
320
212
|
start: number;
|
|
321
|
-
/** Exclusive. */
|
|
322
213
|
end: number;
|
|
323
214
|
options?: ExtensionRangeOptionsSDKType;
|
|
324
215
|
}
|
|
@@ -339,9 +230,7 @@ export interface DescriptorProto_ReservedRange {
|
|
|
339
230
|
* not overlap.
|
|
340
231
|
*/
|
|
341
232
|
export interface DescriptorProto_ReservedRangeSDKType {
|
|
342
|
-
/** Inclusive. */
|
|
343
233
|
start: number;
|
|
344
|
-
/** Exclusive. */
|
|
345
234
|
end: number;
|
|
346
235
|
}
|
|
347
236
|
export interface ExtensionRangeOptions {
|
|
@@ -349,7 +238,6 @@ export interface ExtensionRangeOptions {
|
|
|
349
238
|
uninterpretedOption: UninterpretedOption[];
|
|
350
239
|
}
|
|
351
240
|
export interface ExtensionRangeOptionsSDKType {
|
|
352
|
-
/** The parser stores options it doesn't recognize here. See above. */
|
|
353
241
|
uninterpreted_option: UninterpretedOptionSDKType[];
|
|
354
242
|
}
|
|
355
243
|
/** Describes a field within a message. */
|
|
@@ -401,44 +289,12 @@ export interface FieldDescriptorProto {
|
|
|
401
289
|
export interface FieldDescriptorProtoSDKType {
|
|
402
290
|
name: string;
|
|
403
291
|
number: number;
|
|
404
|
-
label:
|
|
405
|
-
|
|
406
|
-
* If type_name is set, this need not be set. If both this and type_name
|
|
407
|
-
* are set, this must be one of TYPE_ENUM, TYPE_MESSAGE or TYPE_GROUP.
|
|
408
|
-
*/
|
|
409
|
-
type: FieldDescriptorProto_TypeSDKType;
|
|
410
|
-
/**
|
|
411
|
-
* For message and enum types, this is the name of the type. If the name
|
|
412
|
-
* starts with a '.', it is fully-qualified. Otherwise, C++-like scoping
|
|
413
|
-
* rules are used to find the type (i.e. first the nested types within this
|
|
414
|
-
* message are searched, then within the parent, on up to the root
|
|
415
|
-
* namespace).
|
|
416
|
-
*/
|
|
292
|
+
label: FieldDescriptorProto_Label;
|
|
293
|
+
type: FieldDescriptorProto_Type;
|
|
417
294
|
type_name: string;
|
|
418
|
-
/**
|
|
419
|
-
* For extensions, this is the name of the type being extended. It is
|
|
420
|
-
* resolved in the same manner as type_name.
|
|
421
|
-
*/
|
|
422
295
|
extendee: string;
|
|
423
|
-
/**
|
|
424
|
-
* For numeric types, contains the original text representation of the value.
|
|
425
|
-
* For booleans, "true" or "false".
|
|
426
|
-
* For strings, contains the default text contents (not escaped in any way).
|
|
427
|
-
* For bytes, contains the C escaped value. All bytes >= 128 are escaped.
|
|
428
|
-
* TODO(kenton): Base-64 encode?
|
|
429
|
-
*/
|
|
430
296
|
default_value: string;
|
|
431
|
-
/**
|
|
432
|
-
* If set, gives the index of a oneof in the containing type's oneof_decl
|
|
433
|
-
* list. This field is a member of that oneof.
|
|
434
|
-
*/
|
|
435
297
|
oneof_index: number;
|
|
436
|
-
/**
|
|
437
|
-
* JSON name of this field. The value is set by protocol compiler. If the
|
|
438
|
-
* user has set a "json_name" option on this field, that option's value
|
|
439
|
-
* will be used. Otherwise, it's deduced from the field's name by converting
|
|
440
|
-
* it to camelCase.
|
|
441
|
-
*/
|
|
442
298
|
json_name: string;
|
|
443
299
|
options?: FieldOptionsSDKType;
|
|
444
300
|
}
|
|
@@ -474,16 +330,7 @@ export interface EnumDescriptorProtoSDKType {
|
|
|
474
330
|
name: string;
|
|
475
331
|
value: EnumValueDescriptorProtoSDKType[];
|
|
476
332
|
options?: EnumOptionsSDKType;
|
|
477
|
-
/**
|
|
478
|
-
* Range of reserved numeric values. Reserved numeric values may not be used
|
|
479
|
-
* by enum values in the same enum declaration. Reserved ranges may not
|
|
480
|
-
* overlap.
|
|
481
|
-
*/
|
|
482
333
|
reserved_range: EnumDescriptorProto_EnumReservedRangeSDKType[];
|
|
483
|
-
/**
|
|
484
|
-
* Reserved enum value names, which may not be reused. A given name may only
|
|
485
|
-
* be reserved once.
|
|
486
|
-
*/
|
|
487
334
|
reserved_name: string[];
|
|
488
335
|
}
|
|
489
336
|
/**
|
|
@@ -509,9 +356,7 @@ export interface EnumDescriptorProto_EnumReservedRange {
|
|
|
509
356
|
* domain.
|
|
510
357
|
*/
|
|
511
358
|
export interface EnumDescriptorProto_EnumReservedRangeSDKType {
|
|
512
|
-
/** Inclusive. */
|
|
513
359
|
start: number;
|
|
514
|
-
/** Inclusive. */
|
|
515
360
|
end: number;
|
|
516
361
|
}
|
|
517
362
|
/** Describes a value within an enum. */
|
|
@@ -556,16 +401,10 @@ export interface MethodDescriptorProto {
|
|
|
556
401
|
/** Describes a method of a service. */
|
|
557
402
|
export interface MethodDescriptorProtoSDKType {
|
|
558
403
|
name: string;
|
|
559
|
-
/**
|
|
560
|
-
* Input and output type names. These are resolved in the same way as
|
|
561
|
-
* FieldDescriptorProto.type_name, but must refer to a message type.
|
|
562
|
-
*/
|
|
563
404
|
input_type: string;
|
|
564
405
|
output_type: string;
|
|
565
406
|
options?: MethodOptionsSDKType;
|
|
566
|
-
/** Identifies if client streams multiple client messages */
|
|
567
407
|
client_streaming: boolean;
|
|
568
|
-
/** Identifies if server streams multiple server messages */
|
|
569
408
|
server_streaming: boolean;
|
|
570
409
|
}
|
|
571
410
|
export interface FileOptions {
|
|
@@ -686,120 +525,27 @@ export interface FileOptions {
|
|
|
686
525
|
uninterpretedOption: UninterpretedOption[];
|
|
687
526
|
}
|
|
688
527
|
export interface FileOptionsSDKType {
|
|
689
|
-
/**
|
|
690
|
-
* Sets the Java package where classes generated from this .proto will be
|
|
691
|
-
* placed. By default, the proto package is used, but this is often
|
|
692
|
-
* inappropriate because proto packages do not normally start with backwards
|
|
693
|
-
* domain names.
|
|
694
|
-
*/
|
|
695
528
|
java_package: string;
|
|
696
|
-
/**
|
|
697
|
-
* If set, all the classes from the .proto file are wrapped in a single
|
|
698
|
-
* outer class with the given name. This applies to both Proto1
|
|
699
|
-
* (equivalent to the old "--one_java_file" option) and Proto2 (where
|
|
700
|
-
* a .proto always translates to a single class, but you may want to
|
|
701
|
-
* explicitly choose the class name).
|
|
702
|
-
*/
|
|
703
529
|
java_outer_classname: string;
|
|
704
|
-
/**
|
|
705
|
-
* If set true, then the Java code generator will generate a separate .java
|
|
706
|
-
* file for each top-level message, enum, and service defined in the .proto
|
|
707
|
-
* file. Thus, these types will *not* be nested inside the outer class
|
|
708
|
-
* named by java_outer_classname. However, the outer class will still be
|
|
709
|
-
* generated to contain the file's getDescriptor() method as well as any
|
|
710
|
-
* top-level extensions defined in the file.
|
|
711
|
-
*/
|
|
712
530
|
java_multiple_files: boolean;
|
|
713
|
-
/** This option does nothing. */
|
|
714
531
|
/** @deprecated */
|
|
715
532
|
java_generate_equals_and_hash: boolean;
|
|
716
|
-
/**
|
|
717
|
-
* If set true, then the Java2 code generator will generate code that
|
|
718
|
-
* throws an exception whenever an attempt is made to assign a non-UTF-8
|
|
719
|
-
* byte sequence to a string field.
|
|
720
|
-
* Message reflection will do the same.
|
|
721
|
-
* However, an extension field still accepts non-UTF-8 byte sequences.
|
|
722
|
-
* This option has no effect on when used with the lite runtime.
|
|
723
|
-
*/
|
|
724
533
|
java_string_check_utf8: boolean;
|
|
725
|
-
optimize_for:
|
|
726
|
-
/**
|
|
727
|
-
* Sets the Go package where structs generated from this .proto will be
|
|
728
|
-
* placed. If omitted, the Go package will be derived from the following:
|
|
729
|
-
* - The basename of the package import path, if provided.
|
|
730
|
-
* - Otherwise, the package statement in the .proto file, if present.
|
|
731
|
-
* - Otherwise, the basename of the .proto file, without extension.
|
|
732
|
-
*/
|
|
534
|
+
optimize_for: FileOptions_OptimizeMode;
|
|
733
535
|
go_package: string;
|
|
734
|
-
/**
|
|
735
|
-
* Should generic services be generated in each language? "Generic" services
|
|
736
|
-
* are not specific to any particular RPC system. They are generated by the
|
|
737
|
-
* main code generators in each language (without additional plugins).
|
|
738
|
-
* Generic services were the only kind of service generation supported by
|
|
739
|
-
* early versions of google.protobuf.
|
|
740
|
-
*
|
|
741
|
-
* Generic services are now considered deprecated in favor of using plugins
|
|
742
|
-
* that generate code specific to your particular RPC system. Therefore,
|
|
743
|
-
* these default to false. Old code which depends on generic services should
|
|
744
|
-
* explicitly set them to true.
|
|
745
|
-
*/
|
|
746
536
|
cc_generic_services: boolean;
|
|
747
537
|
java_generic_services: boolean;
|
|
748
538
|
py_generic_services: boolean;
|
|
749
539
|
php_generic_services: boolean;
|
|
750
|
-
/**
|
|
751
|
-
* Is this file deprecated?
|
|
752
|
-
* Depending on the target platform, this can emit Deprecated annotations
|
|
753
|
-
* for everything in the file, or it will be completely ignored; in the very
|
|
754
|
-
* least, this is a formalization for deprecating files.
|
|
755
|
-
*/
|
|
756
540
|
deprecated: boolean;
|
|
757
|
-
/**
|
|
758
|
-
* Enables the use of arenas for the proto messages in this file. This applies
|
|
759
|
-
* only to generated classes for C++.
|
|
760
|
-
*/
|
|
761
541
|
cc_enable_arenas: boolean;
|
|
762
|
-
/**
|
|
763
|
-
* Sets the objective c class prefix which is prepended to all objective c
|
|
764
|
-
* generated classes from this .proto. There is no default.
|
|
765
|
-
*/
|
|
766
542
|
objc_class_prefix: string;
|
|
767
|
-
/** Namespace for generated classes; defaults to the package. */
|
|
768
543
|
csharp_namespace: string;
|
|
769
|
-
/**
|
|
770
|
-
* By default Swift generators will take the proto package and CamelCase it
|
|
771
|
-
* replacing '.' with underscore and use that to prefix the types/symbols
|
|
772
|
-
* defined. When this options is provided, they will use this value instead
|
|
773
|
-
* to prefix the types/symbols defined.
|
|
774
|
-
*/
|
|
775
544
|
swift_prefix: string;
|
|
776
|
-
/**
|
|
777
|
-
* Sets the php class prefix which is prepended to all php generated classes
|
|
778
|
-
* from this .proto. Default is empty.
|
|
779
|
-
*/
|
|
780
545
|
php_class_prefix: string;
|
|
781
|
-
/**
|
|
782
|
-
* Use this option to change the namespace of php generated classes. Default
|
|
783
|
-
* is empty. When this option is empty, the package name will be used for
|
|
784
|
-
* determining the namespace.
|
|
785
|
-
*/
|
|
786
546
|
php_namespace: string;
|
|
787
|
-
/**
|
|
788
|
-
* Use this option to change the namespace of php generated metadata classes.
|
|
789
|
-
* Default is empty. When this option is empty, the proto file name will be
|
|
790
|
-
* used for determining the namespace.
|
|
791
|
-
*/
|
|
792
547
|
php_metadata_namespace: string;
|
|
793
|
-
/**
|
|
794
|
-
* Use this option to change the package of ruby generated classes. Default
|
|
795
|
-
* is empty. When this option is not set, the package name will be used for
|
|
796
|
-
* determining the ruby package.
|
|
797
|
-
*/
|
|
798
548
|
ruby_package: string;
|
|
799
|
-
/**
|
|
800
|
-
* The parser stores options it doesn't recognize here.
|
|
801
|
-
* See the documentation for the "Options" section above.
|
|
802
|
-
*/
|
|
803
549
|
uninterpreted_option: UninterpretedOptionSDKType[];
|
|
804
550
|
}
|
|
805
551
|
export interface MessageOptions {
|
|
@@ -865,65 +611,10 @@ export interface MessageOptions {
|
|
|
865
611
|
uninterpretedOption: UninterpretedOption[];
|
|
866
612
|
}
|
|
867
613
|
export interface MessageOptionsSDKType {
|
|
868
|
-
/**
|
|
869
|
-
* Set true to use the old proto1 MessageSet wire format for extensions.
|
|
870
|
-
* This is provided for backwards-compatibility with the MessageSet wire
|
|
871
|
-
* format. You should not use this for any other reason: It's less
|
|
872
|
-
* efficient, has fewer features, and is more complicated.
|
|
873
|
-
*
|
|
874
|
-
* The message must be defined exactly as follows:
|
|
875
|
-
* message Foo {
|
|
876
|
-
* option message_set_wire_format = true;
|
|
877
|
-
* extensions 4 to max;
|
|
878
|
-
* }
|
|
879
|
-
* Note that the message cannot have any defined fields; MessageSets only
|
|
880
|
-
* have extensions.
|
|
881
|
-
*
|
|
882
|
-
* All extensions of your type must be singular messages; e.g. they cannot
|
|
883
|
-
* be int32s, enums, or repeated messages.
|
|
884
|
-
*
|
|
885
|
-
* Because this is an option, the above two restrictions are not enforced by
|
|
886
|
-
* the protocol compiler.
|
|
887
|
-
*/
|
|
888
614
|
message_set_wire_format: boolean;
|
|
889
|
-
/**
|
|
890
|
-
* Disables the generation of the standard "descriptor()" accessor, which can
|
|
891
|
-
* conflict with a field of the same name. This is meant to make migration
|
|
892
|
-
* from proto1 easier; new code should avoid fields named "descriptor".
|
|
893
|
-
*/
|
|
894
615
|
no_standard_descriptor_accessor: boolean;
|
|
895
|
-
/**
|
|
896
|
-
* Is this message deprecated?
|
|
897
|
-
* Depending on the target platform, this can emit Deprecated annotations
|
|
898
|
-
* for the message, or it will be completely ignored; in the very least,
|
|
899
|
-
* this is a formalization for deprecating messages.
|
|
900
|
-
*/
|
|
901
616
|
deprecated: boolean;
|
|
902
|
-
/**
|
|
903
|
-
* Whether the message is an automatically generated map entry type for the
|
|
904
|
-
* maps field.
|
|
905
|
-
*
|
|
906
|
-
* For maps fields:
|
|
907
|
-
* map<KeyType, ValueType> map_field = 1;
|
|
908
|
-
* The parsed descriptor looks like:
|
|
909
|
-
* message MapFieldEntry {
|
|
910
|
-
* option map_entry = true;
|
|
911
|
-
* optional KeyType key = 1;
|
|
912
|
-
* optional ValueType value = 2;
|
|
913
|
-
* }
|
|
914
|
-
* repeated MapFieldEntry map_field = 1;
|
|
915
|
-
*
|
|
916
|
-
* Implementations may choose not to generate the map_entry=true message, but
|
|
917
|
-
* use a native map in the target language to hold the keys and values.
|
|
918
|
-
* The reflection APIs in such implementations still need to work as
|
|
919
|
-
* if the field is a repeated message field.
|
|
920
|
-
*
|
|
921
|
-
* NOTE: Do not set the option in .proto files. Always use the maps syntax
|
|
922
|
-
* instead. The option should only be implicitly set by the proto compiler
|
|
923
|
-
* parser.
|
|
924
|
-
*/
|
|
925
617
|
map_entry: boolean;
|
|
926
|
-
/** The parser stores options it doesn't recognize here. See above. */
|
|
927
618
|
uninterpreted_option: UninterpretedOptionSDKType[];
|
|
928
619
|
}
|
|
929
620
|
export interface FieldOptions {
|
|
@@ -1000,76 +691,12 @@ export interface FieldOptions {
|
|
|
1000
691
|
uninterpretedOption: UninterpretedOption[];
|
|
1001
692
|
}
|
|
1002
693
|
export interface FieldOptionsSDKType {
|
|
1003
|
-
|
|
1004
|
-
* The ctype option instructs the C++ code generator to use a different
|
|
1005
|
-
* representation of the field than it normally would. See the specific
|
|
1006
|
-
* options below. This option is not yet implemented in the open source
|
|
1007
|
-
* release -- sorry, we'll try to include it in a future version!
|
|
1008
|
-
*/
|
|
1009
|
-
ctype: FieldOptions_CTypeSDKType;
|
|
1010
|
-
/**
|
|
1011
|
-
* The packed option can be enabled for repeated primitive fields to enable
|
|
1012
|
-
* a more efficient representation on the wire. Rather than repeatedly
|
|
1013
|
-
* writing the tag and type for each element, the entire array is encoded as
|
|
1014
|
-
* a single length-delimited blob. In proto3, only explicit setting it to
|
|
1015
|
-
* false will avoid using packed encoding.
|
|
1016
|
-
*/
|
|
694
|
+
ctype: FieldOptions_CType;
|
|
1017
695
|
packed: boolean;
|
|
1018
|
-
|
|
1019
|
-
* The jstype option determines the JavaScript type used for values of the
|
|
1020
|
-
* field. The option is permitted only for 64 bit integral and fixed types
|
|
1021
|
-
* (int64, uint64, sint64, fixed64, sfixed64). A field with jstype JS_STRING
|
|
1022
|
-
* is represented as JavaScript string, which avoids loss of precision that
|
|
1023
|
-
* can happen when a large value is converted to a floating point JavaScript.
|
|
1024
|
-
* Specifying JS_NUMBER for the jstype causes the generated JavaScript code to
|
|
1025
|
-
* use the JavaScript "number" type. The behavior of the default option
|
|
1026
|
-
* JS_NORMAL is implementation dependent.
|
|
1027
|
-
*
|
|
1028
|
-
* This option is an enum to permit additional types to be added, e.g.
|
|
1029
|
-
* goog.math.Integer.
|
|
1030
|
-
*/
|
|
1031
|
-
jstype: FieldOptions_JSTypeSDKType;
|
|
1032
|
-
/**
|
|
1033
|
-
* Should this field be parsed lazily? Lazy applies only to message-type
|
|
1034
|
-
* fields. It means that when the outer message is initially parsed, the
|
|
1035
|
-
* inner message's contents will not be parsed but instead stored in encoded
|
|
1036
|
-
* form. The inner message will actually be parsed when it is first accessed.
|
|
1037
|
-
*
|
|
1038
|
-
* This is only a hint. Implementations are free to choose whether to use
|
|
1039
|
-
* eager or lazy parsing regardless of the value of this option. However,
|
|
1040
|
-
* setting this option true suggests that the protocol author believes that
|
|
1041
|
-
* using lazy parsing on this field is worth the additional bookkeeping
|
|
1042
|
-
* overhead typically needed to implement it.
|
|
1043
|
-
*
|
|
1044
|
-
* This option does not affect the public interface of any generated code;
|
|
1045
|
-
* all method signatures remain the same. Furthermore, thread-safety of the
|
|
1046
|
-
* interface is not affected by this option; const methods remain safe to
|
|
1047
|
-
* call from multiple threads concurrently, while non-const methods continue
|
|
1048
|
-
* to require exclusive access.
|
|
1049
|
-
*
|
|
1050
|
-
*
|
|
1051
|
-
* Note that implementations may choose not to check required fields within
|
|
1052
|
-
* a lazy sub-message. That is, calling IsInitialized() on the outer message
|
|
1053
|
-
* may return true even if the inner message has missing required fields.
|
|
1054
|
-
* This is necessary because otherwise the inner message would have to be
|
|
1055
|
-
* parsed in order to perform the check, defeating the purpose of lazy
|
|
1056
|
-
* parsing. An implementation which chooses not to check required fields
|
|
1057
|
-
* must be consistent about it. That is, for any particular sub-message, the
|
|
1058
|
-
* implementation must either *always* check its required fields, or *never*
|
|
1059
|
-
* check its required fields, regardless of whether or not the message has
|
|
1060
|
-
* been parsed.
|
|
1061
|
-
*/
|
|
696
|
+
jstype: FieldOptions_JSType;
|
|
1062
697
|
lazy: boolean;
|
|
1063
|
-
/**
|
|
1064
|
-
* Is this field deprecated?
|
|
1065
|
-
* Depending on the target platform, this can emit Deprecated annotations
|
|
1066
|
-
* for accessors, or it will be completely ignored; in the very least, this
|
|
1067
|
-
* is a formalization for deprecating fields.
|
|
1068
|
-
*/
|
|
1069
698
|
deprecated: boolean;
|
|
1070
|
-
/** For Google-internal migration only. Do not use. */
|
|
1071
699
|
weak: boolean;
|
|
1072
|
-
/** The parser stores options it doesn't recognize here. See above. */
|
|
1073
700
|
uninterpreted_option: UninterpretedOptionSDKType[];
|
|
1074
701
|
}
|
|
1075
702
|
export interface OneofOptions {
|
|
@@ -1077,7 +704,6 @@ export interface OneofOptions {
|
|
|
1077
704
|
uninterpretedOption: UninterpretedOption[];
|
|
1078
705
|
}
|
|
1079
706
|
export interface OneofOptionsSDKType {
|
|
1080
|
-
/** The parser stores options it doesn't recognize here. See above. */
|
|
1081
707
|
uninterpreted_option: UninterpretedOptionSDKType[];
|
|
1082
708
|
}
|
|
1083
709
|
export interface EnumOptions {
|
|
@@ -1097,19 +723,8 @@ export interface EnumOptions {
|
|
|
1097
723
|
uninterpretedOption: UninterpretedOption[];
|
|
1098
724
|
}
|
|
1099
725
|
export interface EnumOptionsSDKType {
|
|
1100
|
-
/**
|
|
1101
|
-
* Set this option to true to allow mapping different tag names to the same
|
|
1102
|
-
* value.
|
|
1103
|
-
*/
|
|
1104
726
|
allow_alias: boolean;
|
|
1105
|
-
/**
|
|
1106
|
-
* Is this enum deprecated?
|
|
1107
|
-
* Depending on the target platform, this can emit Deprecated annotations
|
|
1108
|
-
* for the enum, or it will be completely ignored; in the very least, this
|
|
1109
|
-
* is a formalization for deprecating enums.
|
|
1110
|
-
*/
|
|
1111
727
|
deprecated: boolean;
|
|
1112
|
-
/** The parser stores options it doesn't recognize here. See above. */
|
|
1113
728
|
uninterpreted_option: UninterpretedOptionSDKType[];
|
|
1114
729
|
}
|
|
1115
730
|
export interface EnumValueOptions {
|
|
@@ -1124,14 +739,7 @@ export interface EnumValueOptions {
|
|
|
1124
739
|
uninterpretedOption: UninterpretedOption[];
|
|
1125
740
|
}
|
|
1126
741
|
export interface EnumValueOptionsSDKType {
|
|
1127
|
-
/**
|
|
1128
|
-
* Is this enum value deprecated?
|
|
1129
|
-
* Depending on the target platform, this can emit Deprecated annotations
|
|
1130
|
-
* for the enum value, or it will be completely ignored; in the very least,
|
|
1131
|
-
* this is a formalization for deprecating enum values.
|
|
1132
|
-
*/
|
|
1133
742
|
deprecated: boolean;
|
|
1134
|
-
/** The parser stores options it doesn't recognize here. See above. */
|
|
1135
743
|
uninterpreted_option: UninterpretedOptionSDKType[];
|
|
1136
744
|
}
|
|
1137
745
|
export interface ServiceOptions {
|
|
@@ -1146,14 +754,7 @@ export interface ServiceOptions {
|
|
|
1146
754
|
uninterpretedOption: UninterpretedOption[];
|
|
1147
755
|
}
|
|
1148
756
|
export interface ServiceOptionsSDKType {
|
|
1149
|
-
/**
|
|
1150
|
-
* Is this service deprecated?
|
|
1151
|
-
* Depending on the target platform, this can emit Deprecated annotations
|
|
1152
|
-
* for the service, or it will be completely ignored; in the very least,
|
|
1153
|
-
* this is a formalization for deprecating services.
|
|
1154
|
-
*/
|
|
1155
757
|
deprecated: boolean;
|
|
1156
|
-
/** The parser stores options it doesn't recognize here. See above. */
|
|
1157
758
|
uninterpreted_option: UninterpretedOptionSDKType[];
|
|
1158
759
|
}
|
|
1159
760
|
export interface MethodOptions {
|
|
@@ -1169,15 +770,8 @@ export interface MethodOptions {
|
|
|
1169
770
|
uninterpretedOption: UninterpretedOption[];
|
|
1170
771
|
}
|
|
1171
772
|
export interface MethodOptionsSDKType {
|
|
1172
|
-
/**
|
|
1173
|
-
* Is this method deprecated?
|
|
1174
|
-
* Depending on the target platform, this can emit Deprecated annotations
|
|
1175
|
-
* for the method, or it will be completely ignored; in the very least,
|
|
1176
|
-
* this is a formalization for deprecating methods.
|
|
1177
|
-
*/
|
|
1178
773
|
deprecated: boolean;
|
|
1179
|
-
idempotency_level:
|
|
1180
|
-
/** The parser stores options it doesn't recognize here. See above. */
|
|
774
|
+
idempotency_level: MethodOptions_IdempotencyLevel;
|
|
1181
775
|
uninterpreted_option: UninterpretedOptionSDKType[];
|
|
1182
776
|
}
|
|
1183
777
|
/**
|
|
@@ -1211,10 +805,6 @@ export interface UninterpretedOption {
|
|
|
1211
805
|
*/
|
|
1212
806
|
export interface UninterpretedOptionSDKType {
|
|
1213
807
|
name: UninterpretedOption_NamePartSDKType[];
|
|
1214
|
-
/**
|
|
1215
|
-
* The value of the uninterpreted option, in whatever type the tokenizer
|
|
1216
|
-
* identified it as during parsing. Exactly one of these should be set.
|
|
1217
|
-
*/
|
|
1218
808
|
identifier_value: string;
|
|
1219
809
|
positive_int_value: Long;
|
|
1220
810
|
negative_int_value: Long;
|
|
@@ -1301,51 +891,6 @@ export interface SourceCodeInfo {
|
|
|
1301
891
|
* FileDescriptorProto was generated.
|
|
1302
892
|
*/
|
|
1303
893
|
export interface SourceCodeInfoSDKType {
|
|
1304
|
-
/**
|
|
1305
|
-
* A Location identifies a piece of source code in a .proto file which
|
|
1306
|
-
* corresponds to a particular definition. This information is intended
|
|
1307
|
-
* to be useful to IDEs, code indexers, documentation generators, and similar
|
|
1308
|
-
* tools.
|
|
1309
|
-
*
|
|
1310
|
-
* For example, say we have a file like:
|
|
1311
|
-
* message Foo {
|
|
1312
|
-
* optional string foo = 1;
|
|
1313
|
-
* }
|
|
1314
|
-
* Let's look at just the field definition:
|
|
1315
|
-
* optional string foo = 1;
|
|
1316
|
-
* ^ ^^ ^^ ^ ^^^
|
|
1317
|
-
* a bc de f ghi
|
|
1318
|
-
* We have the following locations:
|
|
1319
|
-
* span path represents
|
|
1320
|
-
* [a,i) [ 4, 0, 2, 0 ] The whole field definition.
|
|
1321
|
-
* [a,b) [ 4, 0, 2, 0, 4 ] The label (optional).
|
|
1322
|
-
* [c,d) [ 4, 0, 2, 0, 5 ] The type (string).
|
|
1323
|
-
* [e,f) [ 4, 0, 2, 0, 1 ] The name (foo).
|
|
1324
|
-
* [g,h) [ 4, 0, 2, 0, 3 ] The number (1).
|
|
1325
|
-
*
|
|
1326
|
-
* Notes:
|
|
1327
|
-
* - A location may refer to a repeated field itself (i.e. not to any
|
|
1328
|
-
* particular index within it). This is used whenever a set of elements are
|
|
1329
|
-
* logically enclosed in a single code segment. For example, an entire
|
|
1330
|
-
* extend block (possibly containing multiple extension definitions) will
|
|
1331
|
-
* have an outer location whose path refers to the "extensions" repeated
|
|
1332
|
-
* field without an index.
|
|
1333
|
-
* - Multiple locations may have the same path. This happens when a single
|
|
1334
|
-
* logical declaration is spread out across multiple places. The most
|
|
1335
|
-
* obvious example is the "extend" block again -- there may be multiple
|
|
1336
|
-
* extend blocks in the same scope, each of which will have the same path.
|
|
1337
|
-
* - A location's span is not always a subset of its parent's span. For
|
|
1338
|
-
* example, the "extendee" of an extension declaration appears at the
|
|
1339
|
-
* beginning of the "extend" block and is shared by all extensions within
|
|
1340
|
-
* the block.
|
|
1341
|
-
* - Just because a location's span is a subset of some other location's span
|
|
1342
|
-
* does not mean that it is a descendant. For example, a "group" defines
|
|
1343
|
-
* both a type and a field in a single declaration. Thus, the locations
|
|
1344
|
-
* corresponding to the type and field and their components will overlap.
|
|
1345
|
-
* - Code which tries to interpret locations should probably be designed to
|
|
1346
|
-
* ignore those that it doesn't understand, as more types of locations could
|
|
1347
|
-
* be recorded in the future.
|
|
1348
|
-
*/
|
|
1349
894
|
location: SourceCodeInfo_LocationSDKType[];
|
|
1350
895
|
}
|
|
1351
896
|
export interface SourceCodeInfo_Location {
|
|
@@ -1437,89 +982,8 @@ export interface SourceCodeInfo_Location {
|
|
|
1437
982
|
leadingDetachedComments: string[];
|
|
1438
983
|
}
|
|
1439
984
|
export interface SourceCodeInfo_LocationSDKType {
|
|
1440
|
-
/**
|
|
1441
|
-
* Identifies which part of the FileDescriptorProto was defined at this
|
|
1442
|
-
* location.
|
|
1443
|
-
*
|
|
1444
|
-
* Each element is a field number or an index. They form a path from
|
|
1445
|
-
* the root FileDescriptorProto to the place where the definition. For
|
|
1446
|
-
* example, this path:
|
|
1447
|
-
* [ 4, 3, 2, 7, 1 ]
|
|
1448
|
-
* refers to:
|
|
1449
|
-
* file.message_type(3) // 4, 3
|
|
1450
|
-
* .field(7) // 2, 7
|
|
1451
|
-
* .name() // 1
|
|
1452
|
-
* This is because FileDescriptorProto.message_type has field number 4:
|
|
1453
|
-
* repeated DescriptorProto message_type = 4;
|
|
1454
|
-
* and DescriptorProto.field has field number 2:
|
|
1455
|
-
* repeated FieldDescriptorProto field = 2;
|
|
1456
|
-
* and FieldDescriptorProto.name has field number 1:
|
|
1457
|
-
* optional string name = 1;
|
|
1458
|
-
*
|
|
1459
|
-
* Thus, the above path gives the location of a field name. If we removed
|
|
1460
|
-
* the last element:
|
|
1461
|
-
* [ 4, 3, 2, 7 ]
|
|
1462
|
-
* this path refers to the whole field declaration (from the beginning
|
|
1463
|
-
* of the label to the terminating semicolon).
|
|
1464
|
-
*/
|
|
1465
985
|
path: number[];
|
|
1466
|
-
/**
|
|
1467
|
-
* Always has exactly three or four elements: start line, start column,
|
|
1468
|
-
* end line (optional, otherwise assumed same as start line), end column.
|
|
1469
|
-
* These are packed into a single field for efficiency. Note that line
|
|
1470
|
-
* and column numbers are zero-based -- typically you will want to add
|
|
1471
|
-
* 1 to each before displaying to a user.
|
|
1472
|
-
*/
|
|
1473
986
|
span: number[];
|
|
1474
|
-
/**
|
|
1475
|
-
* If this SourceCodeInfo represents a complete declaration, these are any
|
|
1476
|
-
* comments appearing before and after the declaration which appear to be
|
|
1477
|
-
* attached to the declaration.
|
|
1478
|
-
*
|
|
1479
|
-
* A series of line comments appearing on consecutive lines, with no other
|
|
1480
|
-
* tokens appearing on those lines, will be treated as a single comment.
|
|
1481
|
-
*
|
|
1482
|
-
* leading_detached_comments will keep paragraphs of comments that appear
|
|
1483
|
-
* before (but not connected to) the current element. Each paragraph,
|
|
1484
|
-
* separated by empty lines, will be one comment element in the repeated
|
|
1485
|
-
* field.
|
|
1486
|
-
*
|
|
1487
|
-
* Only the comment content is provided; comment markers (e.g. //) are
|
|
1488
|
-
* stripped out. For block comments, leading whitespace and an asterisk
|
|
1489
|
-
* will be stripped from the beginning of each line other than the first.
|
|
1490
|
-
* Newlines are included in the output.
|
|
1491
|
-
*
|
|
1492
|
-
* Examples:
|
|
1493
|
-
*
|
|
1494
|
-
* optional int32 foo = 1; // Comment attached to foo.
|
|
1495
|
-
* // Comment attached to bar.
|
|
1496
|
-
* optional int32 bar = 2;
|
|
1497
|
-
*
|
|
1498
|
-
* optional string baz = 3;
|
|
1499
|
-
* // Comment attached to baz.
|
|
1500
|
-
* // Another line attached to baz.
|
|
1501
|
-
*
|
|
1502
|
-
* // Comment attached to qux.
|
|
1503
|
-
* //
|
|
1504
|
-
* // Another line attached to qux.
|
|
1505
|
-
* optional double qux = 4;
|
|
1506
|
-
*
|
|
1507
|
-
* // Detached comment for corge. This is not leading or trailing comments
|
|
1508
|
-
* // to qux or corge because there are blank lines separating it from
|
|
1509
|
-
* // both.
|
|
1510
|
-
*
|
|
1511
|
-
* // Detached comment for corge paragraph 2.
|
|
1512
|
-
*
|
|
1513
|
-
* optional string corge = 5;
|
|
1514
|
-
* /* Block comment attached
|
|
1515
|
-
* * to corge. Leading asterisks
|
|
1516
|
-
* * will be removed. *\/
|
|
1517
|
-
* /* Block comment attached to
|
|
1518
|
-
* * grault. *\/
|
|
1519
|
-
* optional int32 grault = 6;
|
|
1520
|
-
*
|
|
1521
|
-
* // ignored detached comments.
|
|
1522
|
-
*/
|
|
1523
987
|
leading_comments: string;
|
|
1524
988
|
trailing_comments: string;
|
|
1525
989
|
leading_detached_comments: string[];
|
|
@@ -1542,10 +1006,6 @@ export interface GeneratedCodeInfo {
|
|
|
1542
1006
|
* source file, but may contain references to different source .proto files.
|
|
1543
1007
|
*/
|
|
1544
1008
|
export interface GeneratedCodeInfoSDKType {
|
|
1545
|
-
/**
|
|
1546
|
-
* An Annotation connects some span of text in generated code to an element
|
|
1547
|
-
* of its generating .proto file.
|
|
1548
|
-
*/
|
|
1549
1009
|
annotation: GeneratedCodeInfo_AnnotationSDKType[];
|
|
1550
1010
|
}
|
|
1551
1011
|
export interface GeneratedCodeInfo_Annotation {
|
|
@@ -1569,23 +1029,9 @@ export interface GeneratedCodeInfo_Annotation {
|
|
|
1569
1029
|
end: number;
|
|
1570
1030
|
}
|
|
1571
1031
|
export interface GeneratedCodeInfo_AnnotationSDKType {
|
|
1572
|
-
/**
|
|
1573
|
-
* Identifies the element in the original source .proto file. This field
|
|
1574
|
-
* is formatted the same as SourceCodeInfo.Location.path.
|
|
1575
|
-
*/
|
|
1576
1032
|
path: number[];
|
|
1577
|
-
/** Identifies the filesystem path to the original source .proto. */
|
|
1578
1033
|
source_file: string;
|
|
1579
|
-
/**
|
|
1580
|
-
* Identifies the starting offset in bytes in the generated code
|
|
1581
|
-
* that relates to the identified object.
|
|
1582
|
-
*/
|
|
1583
1034
|
begin: number;
|
|
1584
|
-
/**
|
|
1585
|
-
* Identifies the ending offset in bytes in the generated code that
|
|
1586
|
-
* relates to the identified offset. The end offset should be one past
|
|
1587
|
-
* the last relevant byte (so the length of the text = end - begin).
|
|
1588
|
-
*/
|
|
1589
1035
|
end: number;
|
|
1590
1036
|
}
|
|
1591
1037
|
export declare const FileDescriptorSet: {
|