juno-network 0.5.3 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +0 -2
- package/main/codegen/JunoSwap.client.js +44 -42
- package/module/codegen/JunoSwap.client.js +180 -0
- package/module/codegen/JunoSwap.types.js +1 -0
- package/module/codegen/confio/proofs.js +1152 -0
- package/module/codegen/contracts.js +18 -0
- package/module/codegen/cosmos/app/v1alpha1/config.js +148 -0
- package/module/codegen/cosmos/app/v1alpha1/module.js +227 -0
- package/module/codegen/cosmos/app/v1alpha1/query.js +104 -0
- package/module/codegen/cosmos/app/v1alpha1/query.rpc.query.js +20 -0
- package/module/codegen/cosmos/auth/v1beta1/auth.js +297 -0
- package/module/codegen/cosmos/auth/v1beta1/genesis.js +82 -0
- package/module/codegen/cosmos/auth/v1beta1/query.js +806 -0
- package/module/codegen/cosmos/auth/v1beta1/query.lcd.js +73 -0
- package/module/codegen/cosmos/auth/v1beta1/query.rpc.query.js +62 -0
- package/module/codegen/cosmos/authz/v1beta1/authz.js +236 -0
- package/module/codegen/cosmos/authz/v1beta1/event.js +135 -0
- package/module/codegen/cosmos/authz/v1beta1/genesis.js +49 -0
- package/module/codegen/cosmos/authz/v1beta1/query.js +365 -0
- package/module/codegen/cosmos/authz/v1beta1/query.lcd.js +76 -0
- package/module/codegen/cosmos/authz/v1beta1/query.rpc.query.js +53 -0
- package/module/codegen/cosmos/authz/v1beta1/tx.amino.js +91 -0
- package/module/codegen/cosmos/authz/v1beta1/tx.js +309 -0
- package/module/codegen/cosmos/authz/v1beta1/tx.registry.js +124 -0
- package/module/codegen/cosmos/authz/v1beta1/tx.rpc.msg.js +34 -0
- package/module/codegen/cosmos/bank/v1beta1/authz.js +49 -0
- package/module/codegen/cosmos/bank/v1beta1/bank.js +461 -0
- package/module/codegen/cosmos/bank/v1beta1/genesis.js +137 -0
- package/module/codegen/cosmos/bank/v1beta1/query.js +972 -0
- package/module/codegen/cosmos/bank/v1beta1/query.lcd.js +147 -0
- package/module/codegen/cosmos/bank/v1beta1/query.rpc.query.js +123 -0
- package/module/codegen/cosmos/bank/v1beta1/tx.amino.js +78 -0
- package/module/codegen/cosmos/bank/v1beta1/tx.js +195 -0
- package/module/codegen/cosmos/bank/v1beta1/tx.registry.js +57 -0
- package/module/codegen/cosmos/bank/v1beta1/tx.rpc.msg.js +27 -0
- package/module/codegen/cosmos/base/abci/v1beta1/abci.js +754 -0
- package/module/codegen/cosmos/base/kv/v1beta1/kv.js +139 -0
- package/module/codegen/cosmos/base/query/v1beta1/pagination.js +155 -0
- package/module/codegen/cosmos/base/reflection/v1beta1/reflection.js +235 -0
- package/module/codegen/cosmos/base/reflection/v2alpha1/reflection.js +1281 -0
- package/module/codegen/cosmos/base/snapshots/v1beta1/snapshot.js +712 -0
- package/module/codegen/cosmos/base/store/v1beta1/commit_info.js +225 -0
- package/module/codegen/cosmos/base/store/v1beta1/listening.js +104 -0
- package/module/codegen/cosmos/base/tendermint/v1beta1/query.js +1091 -0
- package/module/codegen/cosmos/base/tendermint/v1beta1/query.lcd.js +72 -0
- package/module/codegen/cosmos/base/tendermint/v1beta1/query.rpc.svc.js +55 -0
- package/module/codegen/cosmos/base/v1beta1/coin.js +209 -0
- package/module/codegen/cosmos/bundle.js +190 -0
- package/module/codegen/cosmos/capability/v1beta1/capability.js +199 -0
- package/module/codegen/cosmos/capability/v1beta1/genesis.js +150 -0
- package/module/codegen/cosmos/client.js +44 -0
- package/module/codegen/cosmos/crisis/v1beta1/genesis.js +61 -0
- package/module/codegen/cosmos/crisis/v1beta1/tx.amino.js +27 -0
- package/module/codegen/cosmos/crisis/v1beta1/tx.js +129 -0
- package/module/codegen/cosmos/crisis/v1beta1/tx.registry.js +54 -0
- package/module/codegen/cosmos/crisis/v1beta1/tx.rpc.msg.js +20 -0
- package/module/codegen/cosmos/crypto/ed25519/keys.js +95 -0
- package/module/codegen/cosmos/crypto/hd/v1/hd.js +88 -0
- package/module/codegen/cosmos/crypto/keyring/v1/record.js +270 -0
- package/module/codegen/cosmos/crypto/multisig/keys.js +59 -0
- package/module/codegen/cosmos/crypto/multisig/v1beta1/multisig.js +105 -0
- package/module/codegen/cosmos/crypto/secp256k1/keys.js +95 -0
- package/module/codegen/cosmos/crypto/secp256r1/keys.js +95 -0
- package/module/codegen/cosmos/distribution/v1beta1/distribution.js +728 -0
- package/module/codegen/cosmos/distribution/v1beta1/genesis.js +585 -0
- package/module/codegen/cosmos/distribution/v1beta1/query.js +880 -0
- package/module/codegen/cosmos/distribution/v1beta1/query.lcd.js +101 -0
- package/module/codegen/cosmos/distribution/v1beta1/query.rpc.query.js +119 -0
- package/module/codegen/cosmos/distribution/v1beta1/tx.amino.js +88 -0
- package/module/codegen/cosmos/distribution/v1beta1/tx.js +382 -0
- package/module/codegen/cosmos/distribution/v1beta1/tx.registry.js +99 -0
- package/module/codegen/cosmos/distribution/v1beta1/tx.rpc.msg.js +41 -0
- package/module/codegen/cosmos/evidence/v1beta1/evidence.js +102 -0
- package/module/codegen/cosmos/evidence/v1beta1/genesis.js +67 -0
- package/module/codegen/cosmos/evidence/v1beta1/query.js +255 -0
- package/module/codegen/cosmos/evidence/v1beta1/query.lcd.js +36 -0
- package/module/codegen/cosmos/evidence/v1beta1/query.rpc.query.js +27 -0
- package/module/codegen/cosmos/evidence/v1beta1/tx.amino.js +29 -0
- package/module/codegen/cosmos/evidence/v1beta1/tx.js +137 -0
- package/module/codegen/cosmos/evidence/v1beta1/tx.registry.js +54 -0
- package/module/codegen/cosmos/evidence/v1beta1/tx.rpc.msg.js +20 -0
- package/module/codegen/cosmos/feegrant/v1beta1/feegrant.js +365 -0
- package/module/codegen/cosmos/feegrant/v1beta1/genesis.js +67 -0
- package/module/codegen/cosmos/feegrant/v1beta1/query.js +429 -0
- package/module/codegen/cosmos/feegrant/v1beta1/query.lcd.js +50 -0
- package/module/codegen/cosmos/feegrant/v1beta1/query.rpc.query.js +34 -0
- package/module/codegen/cosmos/feegrant/v1beta1/tx.amino.js +54 -0
- package/module/codegen/cosmos/feegrant/v1beta1/tx.js +247 -0
- package/module/codegen/cosmos/feegrant/v1beta1/tx.registry.js +89 -0
- package/module/codegen/cosmos/feegrant/v1beta1/tx.rpc.msg.js +27 -0
- package/module/codegen/cosmos/genutil/v1beta1/genesis.js +68 -0
- package/module/codegen/cosmos/gov/v1/genesis.js +111 -0
- package/module/codegen/cosmos/gov/v1/gov.js +750 -0
- package/module/codegen/cosmos/gov/v1/query.js +859 -0
- package/module/codegen/cosmos/gov/v1/query.lcd.js +112 -0
- package/module/codegen/cosmos/gov/v1/query.rpc.query.js +108 -0
- package/module/codegen/cosmos/gov/v1/tx.amino.js +167 -0
- package/module/codegen/cosmos/gov/v1/tx.js +545 -0
- package/module/codegen/cosmos/gov/v1/tx.registry.js +120 -0
- package/module/codegen/cosmos/gov/v1/tx.rpc.msg.js +48 -0
- package/module/codegen/cosmos/gov/v1beta1/genesis.js +111 -0
- package/module/codegen/cosmos/gov/v1beta1/gov.js +801 -0
- package/module/codegen/cosmos/gov/v1beta1/query.js +859 -0
- package/module/codegen/cosmos/gov/v1beta1/query.lcd.js +112 -0
- package/module/codegen/cosmos/gov/v1beta1/query.rpc.query.js +108 -0
- package/module/codegen/cosmos/gov/v1beta1/tx.amino.js +128 -0
- package/module/codegen/cosmos/gov/v1beta1/tx.js +424 -0
- package/module/codegen/cosmos/gov/v1beta1/tx.registry.js +99 -0
- package/module/codegen/cosmos/gov/v1beta1/tx.rpc.msg.js +41 -0
- package/module/codegen/cosmos/group/v1/events.js +549 -0
- package/module/codegen/cosmos/group/v1/genesis.js +175 -0
- package/module/codegen/cosmos/group/v1/query.js +1769 -0
- package/module/codegen/cosmos/group/v1/query.lcd.js +167 -0
- package/module/codegen/cosmos/group/v1/query.rpc.query.js +104 -0
- package/module/codegen/cosmos/group/v1/tx.amino.js +429 -0
- package/module/codegen/cosmos/group/v1/tx.js +1969 -0
- package/module/codegen/cosmos/group/v1/tx.registry.js +509 -0
- package/module/codegen/cosmos/group/v1/tx.rpc.msg.js +111 -0
- package/module/codegen/cosmos/group/v1/types.js +1350 -0
- package/module/codegen/cosmos/lcd.js +50 -0
- package/module/codegen/cosmos/mint/v1beta1/genesis.js +73 -0
- package/module/codegen/cosmos/mint/v1beta1/mint.js +193 -0
- package/module/codegen/cosmos/mint/v1beta1/query.js +308 -0
- package/module/codegen/cosmos/mint/v1beta1/query.lcd.js +32 -0
- package/module/codegen/cosmos/mint/v1beta1/query.rpc.query.js +34 -0
- package/module/codegen/cosmos/msg/v1/msg.js +1 -0
- package/module/codegen/cosmos/nft/v1beta1/event.js +264 -0
- package/module/codegen/cosmos/nft/v1beta1/genesis.js +163 -0
- package/module/codegen/cosmos/nft/v1beta1/nft.js +242 -0
- package/module/codegen/cosmos/nft/v1beta1/query.js +917 -0
- package/module/codegen/cosmos/nft/v1beta1/query.lcd.js +88 -0
- package/module/codegen/cosmos/nft/v1beta1/query.rpc.query.js +62 -0
- package/module/codegen/cosmos/nft/v1beta1/tx.amino.js +31 -0
- package/module/codegen/cosmos/nft/v1beta1/tx.js +141 -0
- package/module/codegen/cosmos/nft/v1beta1/tx.registry.js +54 -0
- package/module/codegen/cosmos/nft/v1beta1/tx.rpc.msg.js +20 -0
- package/module/codegen/cosmos/orm/v1/orm.js +305 -0
- package/module/codegen/cosmos/orm/v1alpha1/schema.js +225 -0
- package/module/codegen/cosmos/params/v1beta1/params.js +175 -0
- package/module/codegen/cosmos/params/v1beta1/query.js +317 -0
- package/module/codegen/cosmos/params/v1beta1/query.lcd.js +38 -0
- package/module/codegen/cosmos/params/v1beta1/query.rpc.query.js +27 -0
- package/module/codegen/cosmos/rpc.query.js +34 -0
- package/module/codegen/cosmos/rpc.tx.js +25 -0
- package/module/codegen/cosmos/slashing/v1beta1/genesis.js +317 -0
- package/module/codegen/cosmos/slashing/v1beta1/query.js +355 -0
- package/module/codegen/cosmos/slashing/v1beta1/query.lcd.js +43 -0
- package/module/codegen/cosmos/slashing/v1beta1/query.rpc.query.js +34 -0
- package/module/codegen/cosmos/slashing/v1beta1/slashing.js +234 -0
- package/module/codegen/cosmos/slashing/v1beta1/tx.amino.js +19 -0
- package/module/codegen/cosmos/slashing/v1beta1/tx.js +105 -0
- package/module/codegen/cosmos/slashing/v1beta1/tx.registry.js +54 -0
- package/module/codegen/cosmos/slashing/v1beta1/tx.rpc.msg.js +20 -0
- package/module/codegen/cosmos/staking/v1beta1/authz.js +204 -0
- package/module/codegen/cosmos/staking/v1beta1/genesis.js +178 -0
- package/module/codegen/cosmos/staking/v1beta1/query.js +1469 -0
- package/module/codegen/cosmos/staking/v1beta1/query.lcd.js +196 -0
- package/module/codegen/cosmos/staking/v1beta1/query.rpc.query.js +174 -0
- package/module/codegen/cosmos/staking/v1beta1/staking.js +1446 -0
- package/module/codegen/cosmos/staking/v1beta1/tx.amino.js +216 -0
- package/module/codegen/cosmos/staking/v1beta1/tx.js +598 -0
- package/module/codegen/cosmos/staking/v1beta1/tx.registry.js +120 -0
- package/module/codegen/cosmos/staking/v1beta1/tx.rpc.msg.js +48 -0
- package/module/codegen/cosmos/tx/signing/v1beta1/signing.js +378 -0
- package/module/codegen/cosmos/tx/v1beta1/service.js +714 -0
- package/module/codegen/cosmos/tx/v1beta1/service.lcd.js +62 -0
- package/module/codegen/cosmos/tx/v1beta1/service.rpc.svc.js +75 -0
- package/module/codegen/cosmos/tx/v1beta1/tx.js +903 -0
- package/module/codegen/cosmos/upgrade/v1beta1/query.js +445 -0
- package/module/codegen/cosmos/upgrade/v1beta1/query.lcd.js +66 -0
- package/module/codegen/cosmos/upgrade/v1beta1/query.rpc.query.js +75 -0
- package/module/codegen/cosmos/upgrade/v1beta1/tx.amino.js +59 -0
- package/module/codegen/cosmos/upgrade/v1beta1/tx.js +174 -0
- package/module/codegen/cosmos/upgrade/v1beta1/tx.registry.js +57 -0
- package/module/codegen/cosmos/upgrade/v1beta1/tx.rpc.msg.js +27 -0
- package/module/codegen/cosmos/upgrade/v1beta1/upgrade.js +273 -0
- package/module/codegen/cosmos/vesting/v1beta1/tx.amino.js +114 -0
- package/module/codegen/cosmos/vesting/v1beta1/tx.js +440 -0
- package/module/codegen/cosmos/vesting/v1beta1/tx.registry.js +124 -0
- package/module/codegen/cosmos/vesting/v1beta1/tx.rpc.msg.js +34 -0
- package/module/codegen/cosmos/vesting/v1beta1/vesting.js +480 -0
- package/module/codegen/cosmos_proto/bundle.js +8 -0
- package/module/codegen/cosmos_proto/cosmos.js +194 -0
- package/module/codegen/cosmwasm/bundle.js +31 -0
- package/module/codegen/cosmwasm/client.js +39 -0
- package/module/codegen/cosmwasm/lcd.js +57 -0
- package/module/codegen/cosmwasm/rpc.query.js +39 -0
- package/module/codegen/cosmwasm/rpc.tx.js +30 -0
- package/module/codegen/cosmwasm/wasm/v1/genesis.js +358 -0
- package/module/codegen/cosmwasm/wasm/v1/ibc.js +127 -0
- package/module/codegen/cosmwasm/wasm/v1/proposal.js +772 -0
- package/module/codegen/cosmwasm/wasm/v1/query.js +1046 -0
- package/module/codegen/cosmwasm/wasm/v1/query.lcd.js +128 -0
- package/module/codegen/cosmwasm/wasm/v1/query.rpc.query.js +123 -0
- package/module/codegen/cosmwasm/wasm/v1/tx.amino.js +189 -0
- package/module/codegen/cosmwasm/wasm/v1/tx.js +711 -0
- package/module/codegen/cosmwasm/wasm/v1/tx.registry.js +141 -0
- package/module/codegen/cosmwasm/wasm/v1/tx.rpc.msg.js +55 -0
- package/module/codegen/cosmwasm/wasm/v1/types.js +668 -0
- package/module/codegen/gogoproto/bundle.js +8 -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 +328 -0
- package/module/codegen/google/bundle.js +19 -0
- package/module/codegen/google/protobuf/any.js +58 -0
- package/module/codegen/google/protobuf/descriptor.js +2775 -0
- package/module/codegen/google/protobuf/duration.js +119 -0
- package/module/codegen/google/protobuf/empty.js +35 -0
- package/module/codegen/google/protobuf/field_mask.js +48 -0
- package/module/codegen/google/protobuf/struct.js +310 -0
- package/module/codegen/google/protobuf/timestamp.js +143 -0
- package/module/codegen/google/protobuf/wrappers.js +426 -0
- package/module/codegen/ibc/applications/transfer/v1/genesis.js +69 -0
- package/module/codegen/ibc/applications/transfer/v1/query.js +276 -0
- package/module/codegen/ibc/applications/transfer/v1/query.lcd.js +46 -0
- package/module/codegen/ibc/applications/transfer/v1/query.rpc.query.js +55 -0
- package/module/codegen/ibc/applications/transfer/v1/transfer.js +115 -0
- package/module/codegen/ibc/applications/transfer/v1/tx.amino.js +58 -0
- package/module/codegen/ibc/applications/transfer/v1/tx.js +150 -0
- package/module/codegen/ibc/applications/transfer/v1/tx.registry.js +36 -0
- package/module/codegen/ibc/applications/transfer/v1/tx.rpc.msg.js +20 -0
- package/module/codegen/ibc/applications/transfer/v2/packet.js +78 -0
- package/module/codegen/ibc/bundle.js +120 -0
- package/module/codegen/ibc/client.js +45 -0
- package/module/codegen/ibc/core/channel/v1/channel.js +646 -0
- package/module/codegen/ibc/core/channel/v1/genesis.js +188 -0
- package/module/codegen/ibc/core/channel/v1/query.js +1759 -0
- package/module/codegen/ibc/core/channel/v1/query.lcd.js +162 -0
- package/module/codegen/ibc/core/channel/v1/query.rpc.query.js +165 -0
- package/module/codegen/ibc/core/channel/v1/tx.amino.js +530 -0
- package/module/codegen/ibc/core/channel/v1/tx.js +1218 -0
- package/module/codegen/ibc/core/channel/v1/tx.registry.js +225 -0
- package/module/codegen/ibc/core/channel/v1/tx.rpc.msg.js +83 -0
- package/module/codegen/ibc/core/client/v1/client.js +433 -0
- package/module/codegen/ibc/core/client/v1/genesis.js +215 -0
- package/module/codegen/ibc/core/client/v1/query.js +814 -0
- package/module/codegen/ibc/core/client/v1/query.lcd.js +104 -0
- package/module/codegen/ibc/core/client/v1/query.rpc.query.js +110 -0
- package/module/codegen/ibc/core/client/v1/tx.amino.js +150 -0
- package/module/codegen/ibc/core/client/v1/tx.js +436 -0
- package/module/codegen/ibc/core/client/v1/tx.registry.js +99 -0
- package/module/codegen/ibc/core/client/v1/tx.rpc.msg.js +41 -0
- package/module/codegen/ibc/core/commitment/v1/commitment.js +190 -0
- package/module/codegen/ibc/core/connection/v1/connection.js +537 -0
- package/module/codegen/ibc/core/connection/v1/genesis.js +81 -0
- package/module/codegen/ibc/core/connection/v1/query.js +608 -0
- package/module/codegen/ibc/core/connection/v1/query.lcd.js +65 -0
- package/module/codegen/ibc/core/connection/v1/query.rpc.query.js +77 -0
- package/module/codegen/ibc/core/connection/v1/tx.amino.js +269 -0
- package/module/codegen/ibc/core/connection/v1/tx.js +603 -0
- package/module/codegen/ibc/core/connection/v1/tx.registry.js +99 -0
- package/module/codegen/ibc/core/connection/v1/tx.rpc.msg.js +41 -0
- package/module/codegen/ibc/core/port/v1/query.js +182 -0
- package/module/codegen/ibc/core/port/v1/query.rpc.query.js +20 -0
- package/module/codegen/ibc/core/types/v1/genesis.js +87 -0
- package/module/codegen/ibc/lcd.js +76 -0
- package/module/codegen/ibc/lightclients/localhost/v1/localhost.js +59 -0
- package/module/codegen/ibc/lightclients/solomachine/v1/solomachine.js +1166 -0
- package/module/codegen/ibc/lightclients/solomachine/v2/solomachine.js +1166 -0
- package/module/codegen/ibc/lightclients/tendermint/v1/tendermint.js +424 -0
- package/module/codegen/ibc/rpc.query.js +52 -0
- package/module/codegen/ibc/rpc.tx.js +43 -0
- package/module/codegen/ics23/bundle.js +8 -0
- package/module/codegen/index.js +18 -0
- package/module/codegen/juno/bundle.js +20 -0
- package/module/codegen/juno/lcd.js +55 -0
- package/module/codegen/juno/mint/genesis.js +57 -0
- package/module/codegen/juno/mint/mint.js +137 -0
- package/module/codegen/juno/mint/query.js +243 -0
- package/module/codegen/juno/mint/query.lcd.js +35 -0
- package/module/codegen/juno/mint/query.rpc.query.js +53 -0
- package/module/codegen/juno/rpc.query.js +37 -0
- package/module/codegen/tendermint/abci/types.js +3341 -0
- package/module/codegen/tendermint/bundle.js +36 -0
- package/module/codegen/tendermint/crypto/keys.js +58 -0
- package/module/codegen/tendermint/crypto/proof.js +317 -0
- package/module/codegen/tendermint/libs/bits/types.js +71 -0
- package/module/codegen/tendermint/p2p/types.js +386 -0
- package/module/codegen/tendermint/types/block.js +78 -0
- package/module/codegen/tendermint/types/evidence.js +281 -0
- package/module/codegen/tendermint/types/params.js +361 -0
- package/module/codegen/tendermint/types/types.js +1172 -0
- package/module/codegen/tendermint/types/validator.js +202 -0
- package/module/codegen/tendermint/version/types.js +119 -0
- package/module/index.js +1 -0
- package/package.json +8 -3
- package/src/codegen/JunoSwap.client.ts +299 -0
- package/src/codegen/JunoSwap.types.ts +143 -0
- package/src/codegen/confio/proofs.ts +1521 -0
- package/src/codegen/contracts.ts +13 -0
- package/src/codegen/cosmos/app/v1alpha1/config.ts +172 -0
- package/src/codegen/cosmos/app/v1alpha1/module.ts +308 -0
- package/src/codegen/cosmos/app/v1alpha1/query.rpc.query.ts +26 -0
- package/src/codegen/cosmos/app/v1alpha1/query.ts +112 -0
- package/src/codegen/cosmos/auth/v1beta1/auth.ts +316 -0
- package/src/codegen/cosmos/auth/v1beta1/genesis.ts +88 -0
- package/src/codegen/cosmos/auth/v1beta1/query.lcd.ts +72 -0
- package/src/codegen/cosmos/auth/v1beta1/query.rpc.query.ts +90 -0
- package/src/codegen/cosmos/auth/v1beta1/query.ts +865 -0
- package/src/codegen/cosmos/authz/v1beta1/authz.ts +306 -0
- package/src/codegen/cosmos/authz/v1beta1/event.ts +180 -0
- package/src/codegen/cosmos/authz/v1beta1/genesis.ts +58 -0
- package/src/codegen/cosmos/authz/v1beta1/query.lcd.ts +79 -0
- package/src/codegen/cosmos/authz/v1beta1/query.rpc.query.ts +68 -0
- package/src/codegen/cosmos/authz/v1beta1/query.ts +464 -0
- package/src/codegen/cosmos/authz/v1beta1/tx.amino.ts +131 -0
- package/src/codegen/cosmos/authz/v1beta1/tx.registry.ts +127 -0
- package/src/codegen/cosmos/authz/v1beta1/tx.rpc.msg.ts +51 -0
- package/src/codegen/cosmos/authz/v1beta1/tx.ts +396 -0
- package/src/codegen/cosmos/bank/v1beta1/authz.ts +68 -0
- package/src/codegen/cosmos/bank/v1beta1/bank.ts +666 -0
- package/src/codegen/cosmos/bank/v1beta1/genesis.ts +194 -0
- package/src/codegen/cosmos/bank/v1beta1/query.lcd.ts +150 -0
- package/src/codegen/cosmos/bank/v1beta1/query.rpc.query.ts +155 -0
- package/src/codegen/cosmos/bank/v1beta1/query.ts +1301 -0
- package/src/codegen/cosmos/bank/v1beta1/tx.amino.ts +110 -0
- package/src/codegen/cosmos/bank/v1beta1/tx.registry.ts +58 -0
- package/src/codegen/cosmos/bank/v1beta1/tx.rpc.msg.ts +35 -0
- package/src/codegen/cosmos/bank/v1beta1/tx.ts +230 -0
- package/src/codegen/cosmos/base/abci/v1beta1/abci.ts +1106 -0
- package/src/codegen/cosmos/base/kv/v1beta1/kv.ts +145 -0
- package/src/codegen/cosmos/base/query/v1beta1/pagination.ts +282 -0
- package/src/codegen/cosmos/base/reflection/v1beta1/reflection.ts +254 -0
- package/src/codegen/cosmos/base/reflection/v2alpha1/reflection.ts +1708 -0
- package/src/codegen/cosmos/base/snapshots/v1beta1/snapshot.ts +759 -0
- package/src/codegen/cosmos/base/store/v1beta1/commit_info.ts +242 -0
- package/src/codegen/cosmos/base/store/v1beta1/listening.ts +112 -0
- package/src/codegen/cosmos/base/tendermint/v1beta1/query.lcd.ts +74 -0
- package/src/codegen/cosmos/base/tendermint/v1beta1/query.rpc.svc.ts +80 -0
- package/src/codegen/cosmos/base/tendermint/v1beta1/query.ts +1181 -0
- package/src/codegen/cosmos/base/v1beta1/coin.ts +266 -0
- package/src/codegen/cosmos/bundle.ts +214 -0
- package/src/codegen/cosmos/capability/v1beta1/capability.ts +216 -0
- package/src/codegen/cosmos/capability/v1beta1/genesis.ts +168 -0
- package/src/codegen/cosmos/client.ts +51 -0
- package/src/codegen/cosmos/crisis/v1beta1/genesis.ts +69 -0
- package/src/codegen/cosmos/crisis/v1beta1/tx.amino.ts +37 -0
- package/src/codegen/cosmos/crisis/v1beta1/tx.registry.ts +55 -0
- package/src/codegen/cosmos/crisis/v1beta1/tx.rpc.msg.ts +25 -0
- package/src/codegen/cosmos/crisis/v1beta1/tx.ts +136 -0
- package/src/codegen/cosmos/crypto/ed25519/keys.ts +130 -0
- package/src/codegen/cosmos/crypto/hd/v1/hd.ts +129 -0
- package/src/codegen/cosmos/crypto/keyring/v1/record.ts +349 -0
- package/src/codegen/cosmos/crypto/multisig/keys.ts +78 -0
- package/src/codegen/cosmos/crypto/multisig/v1beta1/multisig.ts +142 -0
- package/src/codegen/cosmos/crypto/secp256k1/keys.ts +124 -0
- package/src/codegen/cosmos/crypto/secp256r1/keys.ts +122 -0
- package/src/codegen/cosmos/distribution/v1beta1/distribution.ts +945 -0
- package/src/codegen/cosmos/distribution/v1beta1/genesis.ts +800 -0
- package/src/codegen/cosmos/distribution/v1beta1/query.lcd.ts +104 -0
- package/src/codegen/cosmos/distribution/v1beta1/query.rpc.query.ts +149 -0
- package/src/codegen/cosmos/distribution/v1beta1/query.ts +1187 -0
- package/src/codegen/cosmos/distribution/v1beta1/tx.amino.ts +120 -0
- package/src/codegen/cosmos/distribution/v1beta1/tx.registry.ts +100 -0
- package/src/codegen/cosmos/distribution/v1beta1/tx.rpc.msg.ts +59 -0
- package/src/codegen/cosmos/distribution/v1beta1/tx.ts +473 -0
- package/src/codegen/cosmos/evidence/v1beta1/evidence.ts +107 -0
- package/src/codegen/cosmos/evidence/v1beta1/genesis.ts +72 -0
- package/src/codegen/cosmos/evidence/v1beta1/query.lcd.ts +39 -0
- package/src/codegen/cosmos/evidence/v1beta1/query.rpc.query.ts +37 -0
- package/src/codegen/cosmos/evidence/v1beta1/query.ts +283 -0
- package/src/codegen/cosmos/evidence/v1beta1/tx.amino.ts +42 -0
- package/src/codegen/cosmos/evidence/v1beta1/tx.registry.ts +56 -0
- package/src/codegen/cosmos/evidence/v1beta1/tx.rpc.msg.ts +27 -0
- package/src/codegen/cosmos/evidence/v1beta1/tx.ts +144 -0
- package/src/codegen/cosmos/feegrant/v1beta1/feegrant.ts +421 -0
- package/src/codegen/cosmos/feegrant/v1beta1/genesis.ts +71 -0
- package/src/codegen/cosmos/feegrant/v1beta1/query.lcd.ts +52 -0
- package/src/codegen/cosmos/feegrant/v1beta1/query.rpc.query.ts +48 -0
- package/src/codegen/cosmos/feegrant/v1beta1/query.ts +467 -0
- package/src/codegen/cosmos/feegrant/v1beta1/tx.amino.ts +75 -0
- package/src/codegen/cosmos/feegrant/v1beta1/tx.registry.ts +91 -0
- package/src/codegen/cosmos/feegrant/v1beta1/tx.rpc.msg.ts +38 -0
- package/src/codegen/cosmos/feegrant/v1beta1/tx.ts +269 -0
- package/src/codegen/cosmos/genutil/v1beta1/genesis.ts +71 -0
- package/src/codegen/cosmos/gov/v1/genesis.ts +156 -0
- package/src/codegen/cosmos/gov/v1/gov.ts +983 -0
- package/src/codegen/cosmos/gov/v1/query.lcd.ts +115 -0
- package/src/codegen/cosmos/gov/v1/query.rpc.query.ts +134 -0
- package/src/codegen/cosmos/gov/v1/query.ts +1114 -0
- package/src/codegen/cosmos/gov/v1/tx.amino.ts +226 -0
- package/src/codegen/cosmos/gov/v1/tx.registry.ts +121 -0
- package/src/codegen/cosmos/gov/v1/tx.rpc.msg.ts +66 -0
- package/src/codegen/cosmos/gov/v1/tx.ts +661 -0
- package/src/codegen/cosmos/gov/v1beta1/genesis.ts +156 -0
- package/src/codegen/cosmos/gov/v1beta1/gov.ts +1064 -0
- package/src/codegen/cosmos/gov/v1beta1/query.lcd.ts +115 -0
- package/src/codegen/cosmos/gov/v1beta1/query.rpc.query.ts +134 -0
- package/src/codegen/cosmos/gov/v1beta1/query.ts +1114 -0
- package/src/codegen/cosmos/gov/v1beta1/tx.amino.ts +174 -0
- package/src/codegen/cosmos/gov/v1beta1/tx.registry.ts +100 -0
- package/src/codegen/cosmos/gov/v1beta1/tx.rpc.msg.ts +57 -0
- package/src/codegen/cosmos/gov/v1beta1/tx.ts +518 -0
- package/src/codegen/cosmos/group/v1/events.ts +600 -0
- package/src/codegen/cosmos/group/v1/genesis.ts +208 -0
- package/src/codegen/cosmos/group/v1/query.lcd.ts +159 -0
- package/src/codegen/cosmos/group/v1/query.rpc.query.ts +147 -0
- package/src/codegen/cosmos/group/v1/query.ts +1945 -0
- package/src/codegen/cosmos/group/v1/tx.amino.ts +585 -0
- package/src/codegen/cosmos/group/v1/tx.registry.ts +512 -0
- package/src/codegen/cosmos/group/v1/tx.rpc.msg.ts +157 -0
- package/src/codegen/cosmos/group/v1/tx.ts +2197 -0
- package/src/codegen/cosmos/group/v1/types.ts +1577 -0
- package/src/codegen/cosmos/lcd.ts +52 -0
- package/src/codegen/cosmos/mint/v1beta1/genesis.ts +81 -0
- package/src/codegen/cosmos/mint/v1beta1/mint.ts +218 -0
- package/src/codegen/cosmos/mint/v1beta1/query.lcd.ts +33 -0
- package/src/codegen/cosmos/mint/v1beta1/query.rpc.query.ts +46 -0
- package/src/codegen/cosmos/mint/v1beta1/query.ts +339 -0
- package/src/codegen/cosmos/msg/v1/msg.ts +1 -0
- package/src/codegen/cosmos/nft/v1beta1/event.ts +279 -0
- package/src/codegen/cosmos/nft/v1beta1/genesis.ts +174 -0
- package/src/codegen/cosmos/nft/v1beta1/nft.ts +279 -0
- package/src/codegen/cosmos/nft/v1beta1/query.lcd.ts +86 -0
- package/src/codegen/cosmos/nft/v1beta1/query.rpc.query.ts +88 -0
- package/src/codegen/cosmos/nft/v1beta1/query.ts +976 -0
- package/src/codegen/cosmos/nft/v1beta1/tx.amino.ts +42 -0
- package/src/codegen/cosmos/nft/v1beta1/tx.registry.ts +55 -0
- package/src/codegen/cosmos/nft/v1beta1/tx.rpc.msg.ts +25 -0
- package/src/codegen/cosmos/nft/v1beta1/tx.ts +156 -0
- package/src/codegen/cosmos/orm/v1/orm.ts +392 -0
- package/src/codegen/cosmos/orm/v1alpha1/schema.ts +289 -0
- package/src/codegen/cosmos/params/v1beta1/params.ts +187 -0
- package/src/codegen/cosmos/params/v1beta1/query.lcd.ts +40 -0
- package/src/codegen/cosmos/params/v1beta1/query.rpc.query.ts +37 -0
- package/src/codegen/cosmos/params/v1beta1/query.ts +348 -0
- package/src/codegen/cosmos/rpc.query.ts +36 -0
- package/src/codegen/cosmos/rpc.tx.ts +28 -0
- package/src/codegen/cosmos/slashing/v1beta1/genesis.ts +356 -0
- package/src/codegen/cosmos/slashing/v1beta1/query.lcd.ts +45 -0
- package/src/codegen/cosmos/slashing/v1beta1/query.rpc.query.ts +47 -0
- package/src/codegen/cosmos/slashing/v1beta1/query.ts +394 -0
- package/src/codegen/cosmos/slashing/v1beta1/slashing.ts +268 -0
- package/src/codegen/cosmos/slashing/v1beta1/tx.amino.ts +27 -0
- package/src/codegen/cosmos/slashing/v1beta1/tx.registry.ts +55 -0
- package/src/codegen/cosmos/slashing/v1beta1/tx.rpc.msg.ts +27 -0
- package/src/codegen/cosmos/slashing/v1beta1/tx.ts +110 -0
- package/src/codegen/cosmos/staking/v1beta1/authz.ts +265 -0
- package/src/codegen/cosmos/staking/v1beta1/genesis.ts +253 -0
- package/src/codegen/cosmos/staking/v1beta1/query.lcd.ts +199 -0
- package/src/codegen/cosmos/staking/v1beta1/query.rpc.query.ts +222 -0
- package/src/codegen/cosmos/staking/v1beta1/query.ts +1970 -0
- package/src/codegen/cosmos/staking/v1beta1/staking.ts +1957 -0
- package/src/codegen/cosmos/staking/v1beta1/tx.amino.ts +294 -0
- package/src/codegen/cosmos/staking/v1beta1/tx.registry.ts +121 -0
- package/src/codegen/cosmos/staking/v1beta1/tx.rpc.msg.ts +68 -0
- package/src/codegen/cosmos/staking/v1beta1/tx.ts +735 -0
- package/src/codegen/cosmos/tx/signing/v1beta1/signing.ts +528 -0
- package/src/codegen/cosmos/tx/v1beta1/service.lcd.ts +65 -0
- package/src/codegen/cosmos/tx/v1beta1/service.rpc.svc.ts +94 -0
- package/src/codegen/cosmos/tx/v1beta1/service.ts +984 -0
- package/src/codegen/cosmos/tx/v1beta1/tx.ts +1497 -0
- package/src/codegen/cosmos/upgrade/v1beta1/query.lcd.ts +69 -0
- package/src/codegen/cosmos/upgrade/v1beta1/query.rpc.query.ts +99 -0
- package/src/codegen/cosmos/upgrade/v1beta1/query.ts +631 -0
- package/src/codegen/cosmos/upgrade/v1beta1/tx.amino.ts +86 -0
- package/src/codegen/cosmos/upgrade/v1beta1/tx.registry.ts +58 -0
- package/src/codegen/cosmos/upgrade/v1beta1/tx.rpc.msg.ts +40 -0
- package/src/codegen/cosmos/upgrade/v1beta1/tx.ts +245 -0
- package/src/codegen/cosmos/upgrade/v1beta1/upgrade.ts +432 -0
- package/src/codegen/cosmos/vesting/v1beta1/tx.amino.ts +157 -0
- package/src/codegen/cosmos/vesting/v1beta1/tx.registry.ts +127 -0
- package/src/codegen/cosmos/vesting/v1beta1/tx.rpc.msg.ts +50 -0
- package/src/codegen/cosmos/vesting/v1beta1/tx.ts +475 -0
- package/src/codegen/cosmos/vesting/v1beta1/vesting.ts +527 -0
- package/src/codegen/cosmos_proto/bundle.ts +3 -0
- package/src/codegen/cosmos_proto/cosmos.ts +289 -0
- package/src/codegen/cosmwasm/bundle.ts +34 -0
- package/src/codegen/cosmwasm/client.ts +44 -0
- package/src/codegen/cosmwasm/lcd.ts +59 -0
- package/src/codegen/cosmwasm/rpc.query.ts +41 -0
- package/src/codegen/cosmwasm/rpc.tx.ts +33 -0
- package/src/codegen/cosmwasm/wasm/v1/genesis.ts +433 -0
- package/src/codegen/cosmwasm/wasm/v1/ibc.ts +180 -0
- package/src/codegen/cosmwasm/wasm/v1/proposal.ts +1083 -0
- package/src/codegen/cosmwasm/wasm/v1/query.lcd.ts +131 -0
- package/src/codegen/cosmwasm/wasm/v1/query.rpc.query.ts +152 -0
- package/src/codegen/cosmwasm/wasm/v1/query.ts +1378 -0
- package/src/codegen/cosmwasm/wasm/v1/tx.amino.ts +252 -0
- package/src/codegen/cosmwasm/wasm/v1/tx.registry.ts +142 -0
- package/src/codegen/cosmwasm/wasm/v1/tx.rpc.msg.ts +75 -0
- package/src/codegen/cosmwasm/wasm/v1/tx.ts +944 -0
- package/src/codegen/cosmwasm/wasm/v1/types.ts +861 -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 +683 -0
- package/src/codegen/google/bundle.ts +19 -0
- package/src/codegen/google/protobuf/any.ts +291 -0
- package/src/codegen/google/protobuf/descriptor.ts +4317 -0
- package/src/codegen/google/protobuf/duration.ts +215 -0
- package/src/codegen/google/protobuf/empty.ts +62 -0
- package/src/codegen/google/protobuf/field_mask.ts +459 -0
- package/src/codegen/google/protobuf/struct.ts +420 -0
- package/src/codegen/google/protobuf/timestamp.ts +259 -0
- package/src/codegen/google/protobuf/wrappers.ts +587 -0
- package/src/codegen/ibc/applications/transfer/v1/genesis.ts +82 -0
- package/src/codegen/ibc/applications/transfer/v1/query.lcd.ts +49 -0
- package/src/codegen/ibc/applications/transfer/v1/query.rpc.query.ts +66 -0
- package/src/codegen/ibc/applications/transfer/v1/query.ts +369 -0
- package/src/codegen/ibc/applications/transfer/v1/transfer.ts +182 -0
- package/src/codegen/ibc/applications/transfer/v1/tx.amino.ts +73 -0
- package/src/codegen/ibc/applications/transfer/v1/tx.registry.ts +37 -0
- package/src/codegen/ibc/applications/transfer/v1/tx.rpc.msg.ts +25 -0
- package/src/codegen/ibc/applications/transfer/v1/tx.ts +217 -0
- package/src/codegen/ibc/applications/transfer/v2/packet.ts +115 -0
- package/src/codegen/ibc/bundle.ts +125 -0
- package/src/codegen/ibc/client.ts +53 -0
- package/src/codegen/ibc/core/channel/v1/channel.ts +923 -0
- package/src/codegen/ibc/core/channel/v1/genesis.ts +231 -0
- package/src/codegen/ibc/core/channel/v1/query.lcd.ts +165 -0
- package/src/codegen/ibc/core/channel/v1/query.rpc.query.ts +214 -0
- package/src/codegen/ibc/core/channel/v1/query.ts +2444 -0
- package/src/codegen/ibc/core/channel/v1/tx.amino.ts +670 -0
- package/src/codegen/ibc/core/channel/v1/tx.registry.ts +226 -0
- package/src/codegen/ibc/core/channel/v1/tx.rpc.msg.ts +116 -0
- package/src/codegen/ibc/core/channel/v1/tx.ts +1492 -0
- package/src/codegen/ibc/core/client/v1/client.ts +629 -0
- package/src/codegen/ibc/core/client/v1/genesis.ts +288 -0
- package/src/codegen/ibc/core/client/v1/query.lcd.ts +107 -0
- package/src/codegen/ibc/core/client/v1/query.rpc.query.ts +138 -0
- package/src/codegen/ibc/core/client/v1/query.ts +1130 -0
- package/src/codegen/ibc/core/client/v1/tx.amino.ts +205 -0
- package/src/codegen/ibc/core/client/v1/tx.registry.ts +100 -0
- package/src/codegen/ibc/core/client/v1/tx.rpc.msg.ts +55 -0
- package/src/codegen/ibc/core/client/v1/tx.ts +603 -0
- package/src/codegen/ibc/core/commitment/v1/commitment.ts +257 -0
- package/src/codegen/ibc/core/connection/v1/connection.ts +758 -0
- package/src/codegen/ibc/core/connection/v1/genesis.ts +98 -0
- package/src/codegen/ibc/core/connection/v1/query.lcd.ts +68 -0
- package/src/codegen/ibc/core/connection/v1/query.rpc.query.ts +97 -0
- package/src/codegen/ibc/core/connection/v1/query.ts +836 -0
- package/src/codegen/ibc/core/connection/v1/tx.amino.ts +343 -0
- package/src/codegen/ibc/core/connection/v1/tx.registry.ts +100 -0
- package/src/codegen/ibc/core/connection/v1/tx.rpc.msg.ts +56 -0
- package/src/codegen/ibc/core/connection/v1/tx.ts +795 -0
- package/src/codegen/ibc/core/port/v1/query.rpc.query.ts +26 -0
- package/src/codegen/ibc/core/port/v1/query.ts +204 -0
- package/src/codegen/ibc/core/types/v1/genesis.ts +98 -0
- package/src/codegen/ibc/lcd.ts +78 -0
- package/src/codegen/ibc/lightclients/localhost/v1/localhost.ts +82 -0
- package/src/codegen/ibc/lightclients/solomachine/v1/solomachine.ts +1499 -0
- package/src/codegen/ibc/lightclients/solomachine/v2/solomachine.ts +1499 -0
- package/src/codegen/ibc/lightclients/tendermint/v1/tendermint.ts +626 -0
- package/src/codegen/ibc/rpc.query.ts +54 -0
- package/src/codegen/ibc/rpc.tx.ts +46 -0
- package/src/codegen/ics23/bundle.ts +3 -0
- package/src/codegen/index.ts +19 -0
- package/src/codegen/juno/bundle.ts +18 -0
- package/src/codegen/juno/lcd.ts +57 -0
- package/src/codegen/juno/mint/genesis.ts +76 -0
- package/src/codegen/juno/mint/mint.ts +172 -0
- package/src/codegen/juno/mint/query.lcd.ts +38 -0
- package/src/codegen/juno/mint/query.rpc.query.ts +64 -0
- package/src/codegen/juno/mint/query.ts +312 -0
- package/src/codegen/juno/rpc.query.ts +39 -0
- package/src/codegen/tendermint/abci/types.ts +3943 -0
- package/src/codegen/tendermint/bundle.ts +32 -0
- package/src/codegen/tendermint/crypto/keys.ts +69 -0
- package/src/codegen/tendermint/crypto/proof.ts +375 -0
- package/src/codegen/tendermint/libs/bits/types.ts +77 -0
- package/src/codegen/tendermint/p2p/types.ts +438 -0
- package/src/codegen/tendermint/types/block.ts +91 -0
- package/src/codegen/tendermint/types/evidence.ts +325 -0
- package/src/codegen/tendermint/types/params.ts +521 -0
- package/src/codegen/tendermint/types/types.ts +1399 -0
- package/src/codegen/tendermint/types/validator.ts +228 -0
- package/src/codegen/tendermint/version/types.ts +152 -0
- package/src/index.ts +1 -0
- package/types/codegen/JunoSwap.client.d.ts +29 -27
- package/types/codegen/JunoSwap.types.d.ts +43 -25
@@ -0,0 +1,4317 @@
|
|
1
|
+
import * as _m0 from "protobufjs/minimal";
|
2
|
+
import { DeepPartial, Long } from "@osmonauts/helpers";
|
3
|
+
export enum FieldDescriptorProto_Type {
|
4
|
+
/**
|
5
|
+
* TYPE_DOUBLE - 0 is reserved for errors.
|
6
|
+
* Order is weird for historical reasons.
|
7
|
+
*/
|
8
|
+
TYPE_DOUBLE = 1,
|
9
|
+
TYPE_FLOAT = 2,
|
10
|
+
|
11
|
+
/**
|
12
|
+
* TYPE_INT64 - Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT64 if
|
13
|
+
* negative values are likely.
|
14
|
+
*/
|
15
|
+
TYPE_INT64 = 3,
|
16
|
+
TYPE_UINT64 = 4,
|
17
|
+
|
18
|
+
/**
|
19
|
+
* TYPE_INT32 - Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT32 if
|
20
|
+
* negative values are likely.
|
21
|
+
*/
|
22
|
+
TYPE_INT32 = 5,
|
23
|
+
TYPE_FIXED64 = 6,
|
24
|
+
TYPE_FIXED32 = 7,
|
25
|
+
TYPE_BOOL = 8,
|
26
|
+
TYPE_STRING = 9,
|
27
|
+
|
28
|
+
/**
|
29
|
+
* TYPE_GROUP - Tag-delimited aggregate.
|
30
|
+
* Group type is deprecated and not supported in proto3. However, Proto3
|
31
|
+
* implementations should still be able to parse the group wire format and
|
32
|
+
* treat group fields as unknown fields.
|
33
|
+
*/
|
34
|
+
TYPE_GROUP = 10,
|
35
|
+
TYPE_MESSAGE = 11,
|
36
|
+
|
37
|
+
/** TYPE_BYTES - New in version 2. */
|
38
|
+
TYPE_BYTES = 12,
|
39
|
+
TYPE_UINT32 = 13,
|
40
|
+
TYPE_ENUM = 14,
|
41
|
+
TYPE_SFIXED32 = 15,
|
42
|
+
TYPE_SFIXED64 = 16,
|
43
|
+
|
44
|
+
/** TYPE_SINT32 - Uses ZigZag encoding. */
|
45
|
+
TYPE_SINT32 = 17,
|
46
|
+
|
47
|
+
/** TYPE_SINT64 - Uses ZigZag encoding. */
|
48
|
+
TYPE_SINT64 = 18,
|
49
|
+
UNRECOGNIZED = -1,
|
50
|
+
}
|
51
|
+
export enum FieldDescriptorProto_TypeSDKType {
|
52
|
+
/**
|
53
|
+
* TYPE_DOUBLE - 0 is reserved for errors.
|
54
|
+
* Order is weird for historical reasons.
|
55
|
+
*/
|
56
|
+
TYPE_DOUBLE = 1,
|
57
|
+
TYPE_FLOAT = 2,
|
58
|
+
|
59
|
+
/**
|
60
|
+
* TYPE_INT64 - Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT64 if
|
61
|
+
* negative values are likely.
|
62
|
+
*/
|
63
|
+
TYPE_INT64 = 3,
|
64
|
+
TYPE_UINT64 = 4,
|
65
|
+
|
66
|
+
/**
|
67
|
+
* TYPE_INT32 - Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT32 if
|
68
|
+
* negative values are likely.
|
69
|
+
*/
|
70
|
+
TYPE_INT32 = 5,
|
71
|
+
TYPE_FIXED64 = 6,
|
72
|
+
TYPE_FIXED32 = 7,
|
73
|
+
TYPE_BOOL = 8,
|
74
|
+
TYPE_STRING = 9,
|
75
|
+
|
76
|
+
/**
|
77
|
+
* TYPE_GROUP - Tag-delimited aggregate.
|
78
|
+
* Group type is deprecated and not supported in proto3. However, Proto3
|
79
|
+
* implementations should still be able to parse the group wire format and
|
80
|
+
* treat group fields as unknown fields.
|
81
|
+
*/
|
82
|
+
TYPE_GROUP = 10,
|
83
|
+
TYPE_MESSAGE = 11,
|
84
|
+
|
85
|
+
/** TYPE_BYTES - New in version 2. */
|
86
|
+
TYPE_BYTES = 12,
|
87
|
+
TYPE_UINT32 = 13,
|
88
|
+
TYPE_ENUM = 14,
|
89
|
+
TYPE_SFIXED32 = 15,
|
90
|
+
TYPE_SFIXED64 = 16,
|
91
|
+
|
92
|
+
/** TYPE_SINT32 - Uses ZigZag encoding. */
|
93
|
+
TYPE_SINT32 = 17,
|
94
|
+
|
95
|
+
/** TYPE_SINT64 - Uses ZigZag encoding. */
|
96
|
+
TYPE_SINT64 = 18,
|
97
|
+
UNRECOGNIZED = -1,
|
98
|
+
}
|
99
|
+
export function fieldDescriptorProto_TypeFromJSON(object: any): FieldDescriptorProto_Type {
|
100
|
+
switch (object) {
|
101
|
+
case 1:
|
102
|
+
case "TYPE_DOUBLE":
|
103
|
+
return FieldDescriptorProto_Type.TYPE_DOUBLE;
|
104
|
+
|
105
|
+
case 2:
|
106
|
+
case "TYPE_FLOAT":
|
107
|
+
return FieldDescriptorProto_Type.TYPE_FLOAT;
|
108
|
+
|
109
|
+
case 3:
|
110
|
+
case "TYPE_INT64":
|
111
|
+
return FieldDescriptorProto_Type.TYPE_INT64;
|
112
|
+
|
113
|
+
case 4:
|
114
|
+
case "TYPE_UINT64":
|
115
|
+
return FieldDescriptorProto_Type.TYPE_UINT64;
|
116
|
+
|
117
|
+
case 5:
|
118
|
+
case "TYPE_INT32":
|
119
|
+
return FieldDescriptorProto_Type.TYPE_INT32;
|
120
|
+
|
121
|
+
case 6:
|
122
|
+
case "TYPE_FIXED64":
|
123
|
+
return FieldDescriptorProto_Type.TYPE_FIXED64;
|
124
|
+
|
125
|
+
case 7:
|
126
|
+
case "TYPE_FIXED32":
|
127
|
+
return FieldDescriptorProto_Type.TYPE_FIXED32;
|
128
|
+
|
129
|
+
case 8:
|
130
|
+
case "TYPE_BOOL":
|
131
|
+
return FieldDescriptorProto_Type.TYPE_BOOL;
|
132
|
+
|
133
|
+
case 9:
|
134
|
+
case "TYPE_STRING":
|
135
|
+
return FieldDescriptorProto_Type.TYPE_STRING;
|
136
|
+
|
137
|
+
case 10:
|
138
|
+
case "TYPE_GROUP":
|
139
|
+
return FieldDescriptorProto_Type.TYPE_GROUP;
|
140
|
+
|
141
|
+
case 11:
|
142
|
+
case "TYPE_MESSAGE":
|
143
|
+
return FieldDescriptorProto_Type.TYPE_MESSAGE;
|
144
|
+
|
145
|
+
case 12:
|
146
|
+
case "TYPE_BYTES":
|
147
|
+
return FieldDescriptorProto_Type.TYPE_BYTES;
|
148
|
+
|
149
|
+
case 13:
|
150
|
+
case "TYPE_UINT32":
|
151
|
+
return FieldDescriptorProto_Type.TYPE_UINT32;
|
152
|
+
|
153
|
+
case 14:
|
154
|
+
case "TYPE_ENUM":
|
155
|
+
return FieldDescriptorProto_Type.TYPE_ENUM;
|
156
|
+
|
157
|
+
case 15:
|
158
|
+
case "TYPE_SFIXED32":
|
159
|
+
return FieldDescriptorProto_Type.TYPE_SFIXED32;
|
160
|
+
|
161
|
+
case 16:
|
162
|
+
case "TYPE_SFIXED64":
|
163
|
+
return FieldDescriptorProto_Type.TYPE_SFIXED64;
|
164
|
+
|
165
|
+
case 17:
|
166
|
+
case "TYPE_SINT32":
|
167
|
+
return FieldDescriptorProto_Type.TYPE_SINT32;
|
168
|
+
|
169
|
+
case 18:
|
170
|
+
case "TYPE_SINT64":
|
171
|
+
return FieldDescriptorProto_Type.TYPE_SINT64;
|
172
|
+
|
173
|
+
case -1:
|
174
|
+
case "UNRECOGNIZED":
|
175
|
+
default:
|
176
|
+
return FieldDescriptorProto_Type.UNRECOGNIZED;
|
177
|
+
}
|
178
|
+
}
|
179
|
+
export function fieldDescriptorProto_TypeToJSON(object: FieldDescriptorProto_Type): string {
|
180
|
+
switch (object) {
|
181
|
+
case FieldDescriptorProto_Type.TYPE_DOUBLE:
|
182
|
+
return "TYPE_DOUBLE";
|
183
|
+
|
184
|
+
case FieldDescriptorProto_Type.TYPE_FLOAT:
|
185
|
+
return "TYPE_FLOAT";
|
186
|
+
|
187
|
+
case FieldDescriptorProto_Type.TYPE_INT64:
|
188
|
+
return "TYPE_INT64";
|
189
|
+
|
190
|
+
case FieldDescriptorProto_Type.TYPE_UINT64:
|
191
|
+
return "TYPE_UINT64";
|
192
|
+
|
193
|
+
case FieldDescriptorProto_Type.TYPE_INT32:
|
194
|
+
return "TYPE_INT32";
|
195
|
+
|
196
|
+
case FieldDescriptorProto_Type.TYPE_FIXED64:
|
197
|
+
return "TYPE_FIXED64";
|
198
|
+
|
199
|
+
case FieldDescriptorProto_Type.TYPE_FIXED32:
|
200
|
+
return "TYPE_FIXED32";
|
201
|
+
|
202
|
+
case FieldDescriptorProto_Type.TYPE_BOOL:
|
203
|
+
return "TYPE_BOOL";
|
204
|
+
|
205
|
+
case FieldDescriptorProto_Type.TYPE_STRING:
|
206
|
+
return "TYPE_STRING";
|
207
|
+
|
208
|
+
case FieldDescriptorProto_Type.TYPE_GROUP:
|
209
|
+
return "TYPE_GROUP";
|
210
|
+
|
211
|
+
case FieldDescriptorProto_Type.TYPE_MESSAGE:
|
212
|
+
return "TYPE_MESSAGE";
|
213
|
+
|
214
|
+
case FieldDescriptorProto_Type.TYPE_BYTES:
|
215
|
+
return "TYPE_BYTES";
|
216
|
+
|
217
|
+
case FieldDescriptorProto_Type.TYPE_UINT32:
|
218
|
+
return "TYPE_UINT32";
|
219
|
+
|
220
|
+
case FieldDescriptorProto_Type.TYPE_ENUM:
|
221
|
+
return "TYPE_ENUM";
|
222
|
+
|
223
|
+
case FieldDescriptorProto_Type.TYPE_SFIXED32:
|
224
|
+
return "TYPE_SFIXED32";
|
225
|
+
|
226
|
+
case FieldDescriptorProto_Type.TYPE_SFIXED64:
|
227
|
+
return "TYPE_SFIXED64";
|
228
|
+
|
229
|
+
case FieldDescriptorProto_Type.TYPE_SINT32:
|
230
|
+
return "TYPE_SINT32";
|
231
|
+
|
232
|
+
case FieldDescriptorProto_Type.TYPE_SINT64:
|
233
|
+
return "TYPE_SINT64";
|
234
|
+
|
235
|
+
default:
|
236
|
+
return "UNKNOWN";
|
237
|
+
}
|
238
|
+
}
|
239
|
+
export enum FieldDescriptorProto_Label {
|
240
|
+
/** LABEL_OPTIONAL - 0 is reserved for errors */
|
241
|
+
LABEL_OPTIONAL = 1,
|
242
|
+
LABEL_REQUIRED = 2,
|
243
|
+
LABEL_REPEATED = 3,
|
244
|
+
UNRECOGNIZED = -1,
|
245
|
+
}
|
246
|
+
export enum FieldDescriptorProto_LabelSDKType {
|
247
|
+
/** LABEL_OPTIONAL - 0 is reserved for errors */
|
248
|
+
LABEL_OPTIONAL = 1,
|
249
|
+
LABEL_REQUIRED = 2,
|
250
|
+
LABEL_REPEATED = 3,
|
251
|
+
UNRECOGNIZED = -1,
|
252
|
+
}
|
253
|
+
export function fieldDescriptorProto_LabelFromJSON(object: any): FieldDescriptorProto_Label {
|
254
|
+
switch (object) {
|
255
|
+
case 1:
|
256
|
+
case "LABEL_OPTIONAL":
|
257
|
+
return FieldDescriptorProto_Label.LABEL_OPTIONAL;
|
258
|
+
|
259
|
+
case 2:
|
260
|
+
case "LABEL_REQUIRED":
|
261
|
+
return FieldDescriptorProto_Label.LABEL_REQUIRED;
|
262
|
+
|
263
|
+
case 3:
|
264
|
+
case "LABEL_REPEATED":
|
265
|
+
return FieldDescriptorProto_Label.LABEL_REPEATED;
|
266
|
+
|
267
|
+
case -1:
|
268
|
+
case "UNRECOGNIZED":
|
269
|
+
default:
|
270
|
+
return FieldDescriptorProto_Label.UNRECOGNIZED;
|
271
|
+
}
|
272
|
+
}
|
273
|
+
export function fieldDescriptorProto_LabelToJSON(object: FieldDescriptorProto_Label): string {
|
274
|
+
switch (object) {
|
275
|
+
case FieldDescriptorProto_Label.LABEL_OPTIONAL:
|
276
|
+
return "LABEL_OPTIONAL";
|
277
|
+
|
278
|
+
case FieldDescriptorProto_Label.LABEL_REQUIRED:
|
279
|
+
return "LABEL_REQUIRED";
|
280
|
+
|
281
|
+
case FieldDescriptorProto_Label.LABEL_REPEATED:
|
282
|
+
return "LABEL_REPEATED";
|
283
|
+
|
284
|
+
default:
|
285
|
+
return "UNKNOWN";
|
286
|
+
}
|
287
|
+
}
|
288
|
+
/** Generated classes can be optimized for speed or code size. */
|
289
|
+
|
290
|
+
export enum FileOptions_OptimizeMode {
|
291
|
+
/**
|
292
|
+
* SPEED - Generate complete code for parsing, serialization,
|
293
|
+
* etc.
|
294
|
+
*/
|
295
|
+
SPEED = 1,
|
296
|
+
|
297
|
+
/** CODE_SIZE - Use ReflectionOps to implement these methods. */
|
298
|
+
CODE_SIZE = 2,
|
299
|
+
|
300
|
+
/** LITE_RUNTIME - Generate code using MessageLite and the lite runtime. */
|
301
|
+
LITE_RUNTIME = 3,
|
302
|
+
UNRECOGNIZED = -1,
|
303
|
+
}
|
304
|
+
/** Generated classes can be optimized for speed or code size. */
|
305
|
+
|
306
|
+
export enum FileOptions_OptimizeModeSDKType {
|
307
|
+
/**
|
308
|
+
* SPEED - Generate complete code for parsing, serialization,
|
309
|
+
* etc.
|
310
|
+
*/
|
311
|
+
SPEED = 1,
|
312
|
+
|
313
|
+
/** CODE_SIZE - Use ReflectionOps to implement these methods. */
|
314
|
+
CODE_SIZE = 2,
|
315
|
+
|
316
|
+
/** LITE_RUNTIME - Generate code using MessageLite and the lite runtime. */
|
317
|
+
LITE_RUNTIME = 3,
|
318
|
+
UNRECOGNIZED = -1,
|
319
|
+
}
|
320
|
+
export function fileOptions_OptimizeModeFromJSON(object: any): FileOptions_OptimizeMode {
|
321
|
+
switch (object) {
|
322
|
+
case 1:
|
323
|
+
case "SPEED":
|
324
|
+
return FileOptions_OptimizeMode.SPEED;
|
325
|
+
|
326
|
+
case 2:
|
327
|
+
case "CODE_SIZE":
|
328
|
+
return FileOptions_OptimizeMode.CODE_SIZE;
|
329
|
+
|
330
|
+
case 3:
|
331
|
+
case "LITE_RUNTIME":
|
332
|
+
return FileOptions_OptimizeMode.LITE_RUNTIME;
|
333
|
+
|
334
|
+
case -1:
|
335
|
+
case "UNRECOGNIZED":
|
336
|
+
default:
|
337
|
+
return FileOptions_OptimizeMode.UNRECOGNIZED;
|
338
|
+
}
|
339
|
+
}
|
340
|
+
export function fileOptions_OptimizeModeToJSON(object: FileOptions_OptimizeMode): string {
|
341
|
+
switch (object) {
|
342
|
+
case FileOptions_OptimizeMode.SPEED:
|
343
|
+
return "SPEED";
|
344
|
+
|
345
|
+
case FileOptions_OptimizeMode.CODE_SIZE:
|
346
|
+
return "CODE_SIZE";
|
347
|
+
|
348
|
+
case FileOptions_OptimizeMode.LITE_RUNTIME:
|
349
|
+
return "LITE_RUNTIME";
|
350
|
+
|
351
|
+
default:
|
352
|
+
return "UNKNOWN";
|
353
|
+
}
|
354
|
+
}
|
355
|
+
export enum FieldOptions_CType {
|
356
|
+
/** STRING - Default mode. */
|
357
|
+
STRING = 0,
|
358
|
+
CORD = 1,
|
359
|
+
STRING_PIECE = 2,
|
360
|
+
UNRECOGNIZED = -1,
|
361
|
+
}
|
362
|
+
export enum FieldOptions_CTypeSDKType {
|
363
|
+
/** STRING - Default mode. */
|
364
|
+
STRING = 0,
|
365
|
+
CORD = 1,
|
366
|
+
STRING_PIECE = 2,
|
367
|
+
UNRECOGNIZED = -1,
|
368
|
+
}
|
369
|
+
export function fieldOptions_CTypeFromJSON(object: any): FieldOptions_CType {
|
370
|
+
switch (object) {
|
371
|
+
case 0:
|
372
|
+
case "STRING":
|
373
|
+
return FieldOptions_CType.STRING;
|
374
|
+
|
375
|
+
case 1:
|
376
|
+
case "CORD":
|
377
|
+
return FieldOptions_CType.CORD;
|
378
|
+
|
379
|
+
case 2:
|
380
|
+
case "STRING_PIECE":
|
381
|
+
return FieldOptions_CType.STRING_PIECE;
|
382
|
+
|
383
|
+
case -1:
|
384
|
+
case "UNRECOGNIZED":
|
385
|
+
default:
|
386
|
+
return FieldOptions_CType.UNRECOGNIZED;
|
387
|
+
}
|
388
|
+
}
|
389
|
+
export function fieldOptions_CTypeToJSON(object: FieldOptions_CType): string {
|
390
|
+
switch (object) {
|
391
|
+
case FieldOptions_CType.STRING:
|
392
|
+
return "STRING";
|
393
|
+
|
394
|
+
case FieldOptions_CType.CORD:
|
395
|
+
return "CORD";
|
396
|
+
|
397
|
+
case FieldOptions_CType.STRING_PIECE:
|
398
|
+
return "STRING_PIECE";
|
399
|
+
|
400
|
+
default:
|
401
|
+
return "UNKNOWN";
|
402
|
+
}
|
403
|
+
}
|
404
|
+
export enum FieldOptions_JSType {
|
405
|
+
/** JS_NORMAL - Use the default type. */
|
406
|
+
JS_NORMAL = 0,
|
407
|
+
|
408
|
+
/** JS_STRING - Use JavaScript strings. */
|
409
|
+
JS_STRING = 1,
|
410
|
+
|
411
|
+
/** JS_NUMBER - Use JavaScript numbers. */
|
412
|
+
JS_NUMBER = 2,
|
413
|
+
UNRECOGNIZED = -1,
|
414
|
+
}
|
415
|
+
export enum FieldOptions_JSTypeSDKType {
|
416
|
+
/** JS_NORMAL - Use the default type. */
|
417
|
+
JS_NORMAL = 0,
|
418
|
+
|
419
|
+
/** JS_STRING - Use JavaScript strings. */
|
420
|
+
JS_STRING = 1,
|
421
|
+
|
422
|
+
/** JS_NUMBER - Use JavaScript numbers. */
|
423
|
+
JS_NUMBER = 2,
|
424
|
+
UNRECOGNIZED = -1,
|
425
|
+
}
|
426
|
+
export function fieldOptions_JSTypeFromJSON(object: any): FieldOptions_JSType {
|
427
|
+
switch (object) {
|
428
|
+
case 0:
|
429
|
+
case "JS_NORMAL":
|
430
|
+
return FieldOptions_JSType.JS_NORMAL;
|
431
|
+
|
432
|
+
case 1:
|
433
|
+
case "JS_STRING":
|
434
|
+
return FieldOptions_JSType.JS_STRING;
|
435
|
+
|
436
|
+
case 2:
|
437
|
+
case "JS_NUMBER":
|
438
|
+
return FieldOptions_JSType.JS_NUMBER;
|
439
|
+
|
440
|
+
case -1:
|
441
|
+
case "UNRECOGNIZED":
|
442
|
+
default:
|
443
|
+
return FieldOptions_JSType.UNRECOGNIZED;
|
444
|
+
}
|
445
|
+
}
|
446
|
+
export function fieldOptions_JSTypeToJSON(object: FieldOptions_JSType): string {
|
447
|
+
switch (object) {
|
448
|
+
case FieldOptions_JSType.JS_NORMAL:
|
449
|
+
return "JS_NORMAL";
|
450
|
+
|
451
|
+
case FieldOptions_JSType.JS_STRING:
|
452
|
+
return "JS_STRING";
|
453
|
+
|
454
|
+
case FieldOptions_JSType.JS_NUMBER:
|
455
|
+
return "JS_NUMBER";
|
456
|
+
|
457
|
+
default:
|
458
|
+
return "UNKNOWN";
|
459
|
+
}
|
460
|
+
}
|
461
|
+
/**
|
462
|
+
* Is this method side-effect-free (or safe in HTTP parlance), or idempotent,
|
463
|
+
* or neither? HTTP based RPC implementation may choose GET verb for safe
|
464
|
+
* methods, and PUT verb for idempotent methods instead of the default POST.
|
465
|
+
*/
|
466
|
+
|
467
|
+
export enum MethodOptions_IdempotencyLevel {
|
468
|
+
IDEMPOTENCY_UNKNOWN = 0,
|
469
|
+
|
470
|
+
/** NO_SIDE_EFFECTS - implies idempotent */
|
471
|
+
NO_SIDE_EFFECTS = 1,
|
472
|
+
|
473
|
+
/** IDEMPOTENT - idempotent, but may have side effects */
|
474
|
+
IDEMPOTENT = 2,
|
475
|
+
UNRECOGNIZED = -1,
|
476
|
+
}
|
477
|
+
/**
|
478
|
+
* Is this method side-effect-free (or safe in HTTP parlance), or idempotent,
|
479
|
+
* or neither? HTTP based RPC implementation may choose GET verb for safe
|
480
|
+
* methods, and PUT verb for idempotent methods instead of the default POST.
|
481
|
+
*/
|
482
|
+
|
483
|
+
export enum MethodOptions_IdempotencyLevelSDKType {
|
484
|
+
IDEMPOTENCY_UNKNOWN = 0,
|
485
|
+
|
486
|
+
/** NO_SIDE_EFFECTS - implies idempotent */
|
487
|
+
NO_SIDE_EFFECTS = 1,
|
488
|
+
|
489
|
+
/** IDEMPOTENT - idempotent, but may have side effects */
|
490
|
+
IDEMPOTENT = 2,
|
491
|
+
UNRECOGNIZED = -1,
|
492
|
+
}
|
493
|
+
export function methodOptions_IdempotencyLevelFromJSON(object: any): MethodOptions_IdempotencyLevel {
|
494
|
+
switch (object) {
|
495
|
+
case 0:
|
496
|
+
case "IDEMPOTENCY_UNKNOWN":
|
497
|
+
return MethodOptions_IdempotencyLevel.IDEMPOTENCY_UNKNOWN;
|
498
|
+
|
499
|
+
case 1:
|
500
|
+
case "NO_SIDE_EFFECTS":
|
501
|
+
return MethodOptions_IdempotencyLevel.NO_SIDE_EFFECTS;
|
502
|
+
|
503
|
+
case 2:
|
504
|
+
case "IDEMPOTENT":
|
505
|
+
return MethodOptions_IdempotencyLevel.IDEMPOTENT;
|
506
|
+
|
507
|
+
case -1:
|
508
|
+
case "UNRECOGNIZED":
|
509
|
+
default:
|
510
|
+
return MethodOptions_IdempotencyLevel.UNRECOGNIZED;
|
511
|
+
}
|
512
|
+
}
|
513
|
+
export function methodOptions_IdempotencyLevelToJSON(object: MethodOptions_IdempotencyLevel): string {
|
514
|
+
switch (object) {
|
515
|
+
case MethodOptions_IdempotencyLevel.IDEMPOTENCY_UNKNOWN:
|
516
|
+
return "IDEMPOTENCY_UNKNOWN";
|
517
|
+
|
518
|
+
case MethodOptions_IdempotencyLevel.NO_SIDE_EFFECTS:
|
519
|
+
return "NO_SIDE_EFFECTS";
|
520
|
+
|
521
|
+
case MethodOptions_IdempotencyLevel.IDEMPOTENT:
|
522
|
+
return "IDEMPOTENT";
|
523
|
+
|
524
|
+
default:
|
525
|
+
return "UNKNOWN";
|
526
|
+
}
|
527
|
+
}
|
528
|
+
/**
|
529
|
+
* The protocol compiler can output a FileDescriptorSet containing the .proto
|
530
|
+
* files it parses.
|
531
|
+
*/
|
532
|
+
|
533
|
+
export interface FileDescriptorSet {
|
534
|
+
file: FileDescriptorProto[];
|
535
|
+
}
|
536
|
+
/**
|
537
|
+
* The protocol compiler can output a FileDescriptorSet containing the .proto
|
538
|
+
* files it parses.
|
539
|
+
*/
|
540
|
+
|
541
|
+
export interface FileDescriptorSetSDKType {
|
542
|
+
file: FileDescriptorProtoSDKType[];
|
543
|
+
}
|
544
|
+
/** Describes a complete .proto file. */
|
545
|
+
|
546
|
+
export interface FileDescriptorProto {
|
547
|
+
/** file name, relative to root of source tree */
|
548
|
+
name: string;
|
549
|
+
package: string;
|
550
|
+
/** Names of files imported by this file. */
|
551
|
+
|
552
|
+
dependency: string[];
|
553
|
+
/** Indexes of the public imported files in the dependency list above. */
|
554
|
+
|
555
|
+
publicDependency: number[];
|
556
|
+
/**
|
557
|
+
* Indexes of the weak imported files in the dependency list.
|
558
|
+
* For Google-internal migration only. Do not use.
|
559
|
+
*/
|
560
|
+
|
561
|
+
weakDependency: number[];
|
562
|
+
/** All top-level definitions in this file. */
|
563
|
+
|
564
|
+
messageType: DescriptorProto[];
|
565
|
+
enumType: EnumDescriptorProto[];
|
566
|
+
service: ServiceDescriptorProto[];
|
567
|
+
extension: FieldDescriptorProto[];
|
568
|
+
options: FileOptions;
|
569
|
+
/**
|
570
|
+
* This field contains optional information about the original source code.
|
571
|
+
* You may safely remove this entire field without harming runtime
|
572
|
+
* functionality of the descriptors -- the information is needed only by
|
573
|
+
* development tools.
|
574
|
+
*/
|
575
|
+
|
576
|
+
sourceCodeInfo: SourceCodeInfo;
|
577
|
+
/**
|
578
|
+
* The syntax of the proto file.
|
579
|
+
* The supported values are "proto2" and "proto3".
|
580
|
+
*/
|
581
|
+
|
582
|
+
syntax: string;
|
583
|
+
}
|
584
|
+
/** Describes a complete .proto file. */
|
585
|
+
|
586
|
+
export interface FileDescriptorProtoSDKType {
|
587
|
+
/** file name, relative to root of source tree */
|
588
|
+
name: string;
|
589
|
+
package: string;
|
590
|
+
/** Names of files imported by this file. */
|
591
|
+
|
592
|
+
dependency: string[];
|
593
|
+
/** Indexes of the public imported files in the dependency list above. */
|
594
|
+
|
595
|
+
public_dependency: number[];
|
596
|
+
/**
|
597
|
+
* Indexes of the weak imported files in the dependency list.
|
598
|
+
* For Google-internal migration only. Do not use.
|
599
|
+
*/
|
600
|
+
|
601
|
+
weak_dependency: number[];
|
602
|
+
/** All top-level definitions in this file. */
|
603
|
+
|
604
|
+
message_type: DescriptorProtoSDKType[];
|
605
|
+
enum_type: EnumDescriptorProtoSDKType[];
|
606
|
+
service: ServiceDescriptorProtoSDKType[];
|
607
|
+
extension: FieldDescriptorProtoSDKType[];
|
608
|
+
options: FileOptionsSDKType;
|
609
|
+
/**
|
610
|
+
* This field contains optional information about the original source code.
|
611
|
+
* You may safely remove this entire field without harming runtime
|
612
|
+
* functionality of the descriptors -- the information is needed only by
|
613
|
+
* development tools.
|
614
|
+
*/
|
615
|
+
|
616
|
+
source_code_info: SourceCodeInfoSDKType;
|
617
|
+
/**
|
618
|
+
* The syntax of the proto file.
|
619
|
+
* The supported values are "proto2" and "proto3".
|
620
|
+
*/
|
621
|
+
|
622
|
+
syntax: string;
|
623
|
+
}
|
624
|
+
/** Describes a message type. */
|
625
|
+
|
626
|
+
export interface DescriptorProto {
|
627
|
+
name: string;
|
628
|
+
field: FieldDescriptorProto[];
|
629
|
+
extension: FieldDescriptorProto[];
|
630
|
+
nestedType: DescriptorProto[];
|
631
|
+
enumType: EnumDescriptorProto[];
|
632
|
+
extensionRange: DescriptorProto_ExtensionRange[];
|
633
|
+
oneofDecl: OneofDescriptorProto[];
|
634
|
+
options: MessageOptions;
|
635
|
+
reservedRange: DescriptorProto_ReservedRange[];
|
636
|
+
/**
|
637
|
+
* Reserved field names, which may not be used by fields in the same message.
|
638
|
+
* A given name may only be reserved once.
|
639
|
+
*/
|
640
|
+
|
641
|
+
reservedName: string[];
|
642
|
+
}
|
643
|
+
/** Describes a message type. */
|
644
|
+
|
645
|
+
export interface DescriptorProtoSDKType {
|
646
|
+
name: string;
|
647
|
+
field: FieldDescriptorProtoSDKType[];
|
648
|
+
extension: FieldDescriptorProtoSDKType[];
|
649
|
+
nested_type: DescriptorProtoSDKType[];
|
650
|
+
enum_type: EnumDescriptorProtoSDKType[];
|
651
|
+
extension_range: DescriptorProto_ExtensionRangeSDKType[];
|
652
|
+
oneof_decl: OneofDescriptorProtoSDKType[];
|
653
|
+
options: MessageOptionsSDKType;
|
654
|
+
reserved_range: DescriptorProto_ReservedRangeSDKType[];
|
655
|
+
/**
|
656
|
+
* Reserved field names, which may not be used by fields in the same message.
|
657
|
+
* A given name may only be reserved once.
|
658
|
+
*/
|
659
|
+
|
660
|
+
reserved_name: string[];
|
661
|
+
}
|
662
|
+
export interface DescriptorProto_ExtensionRange {
|
663
|
+
/** Inclusive. */
|
664
|
+
start: number;
|
665
|
+
/** Exclusive. */
|
666
|
+
|
667
|
+
end: number;
|
668
|
+
options: ExtensionRangeOptions;
|
669
|
+
}
|
670
|
+
export interface DescriptorProto_ExtensionRangeSDKType {
|
671
|
+
/** Inclusive. */
|
672
|
+
start: number;
|
673
|
+
/** Exclusive. */
|
674
|
+
|
675
|
+
end: number;
|
676
|
+
options: ExtensionRangeOptionsSDKType;
|
677
|
+
}
|
678
|
+
/**
|
679
|
+
* Range of reserved tag numbers. Reserved tag numbers may not be used by
|
680
|
+
* fields or extension ranges in the same message. Reserved ranges may
|
681
|
+
* not overlap.
|
682
|
+
*/
|
683
|
+
|
684
|
+
export interface DescriptorProto_ReservedRange {
|
685
|
+
/** Inclusive. */
|
686
|
+
start: number;
|
687
|
+
/** Exclusive. */
|
688
|
+
|
689
|
+
end: number;
|
690
|
+
}
|
691
|
+
/**
|
692
|
+
* Range of reserved tag numbers. Reserved tag numbers may not be used by
|
693
|
+
* fields or extension ranges in the same message. Reserved ranges may
|
694
|
+
* not overlap.
|
695
|
+
*/
|
696
|
+
|
697
|
+
export interface DescriptorProto_ReservedRangeSDKType {
|
698
|
+
/** Inclusive. */
|
699
|
+
start: number;
|
700
|
+
/** Exclusive. */
|
701
|
+
|
702
|
+
end: number;
|
703
|
+
}
|
704
|
+
export interface ExtensionRangeOptions {
|
705
|
+
/** The parser stores options it doesn't recognize here. See above. */
|
706
|
+
uninterpretedOption: UninterpretedOption[];
|
707
|
+
}
|
708
|
+
export interface ExtensionRangeOptionsSDKType {
|
709
|
+
/** The parser stores options it doesn't recognize here. See above. */
|
710
|
+
uninterpreted_option: UninterpretedOptionSDKType[];
|
711
|
+
}
|
712
|
+
/** Describes a field within a message. */
|
713
|
+
|
714
|
+
export interface FieldDescriptorProto {
|
715
|
+
name: string;
|
716
|
+
number: number;
|
717
|
+
label: FieldDescriptorProto_Label;
|
718
|
+
/**
|
719
|
+
* If type_name is set, this need not be set. If both this and type_name
|
720
|
+
* are set, this must be one of TYPE_ENUM, TYPE_MESSAGE or TYPE_GROUP.
|
721
|
+
*/
|
722
|
+
|
723
|
+
type: FieldDescriptorProto_Type;
|
724
|
+
/**
|
725
|
+
* For message and enum types, this is the name of the type. If the name
|
726
|
+
* starts with a '.', it is fully-qualified. Otherwise, C++-like scoping
|
727
|
+
* rules are used to find the type (i.e. first the nested types within this
|
728
|
+
* message are searched, then within the parent, on up to the root
|
729
|
+
* namespace).
|
730
|
+
*/
|
731
|
+
|
732
|
+
typeName: string;
|
733
|
+
/**
|
734
|
+
* For extensions, this is the name of the type being extended. It is
|
735
|
+
* resolved in the same manner as type_name.
|
736
|
+
*/
|
737
|
+
|
738
|
+
extendee: string;
|
739
|
+
/**
|
740
|
+
* For numeric types, contains the original text representation of the value.
|
741
|
+
* For booleans, "true" or "false".
|
742
|
+
* For strings, contains the default text contents (not escaped in any way).
|
743
|
+
* For bytes, contains the C escaped value. All bytes >= 128 are escaped.
|
744
|
+
* TODO(kenton): Base-64 encode?
|
745
|
+
*/
|
746
|
+
|
747
|
+
defaultValue: string;
|
748
|
+
/**
|
749
|
+
* If set, gives the index of a oneof in the containing type's oneof_decl
|
750
|
+
* list. This field is a member of that oneof.
|
751
|
+
*/
|
752
|
+
|
753
|
+
oneofIndex: number;
|
754
|
+
/**
|
755
|
+
* JSON name of this field. The value is set by protocol compiler. If the
|
756
|
+
* user has set a "json_name" option on this field, that option's value
|
757
|
+
* will be used. Otherwise, it's deduced from the field's name by converting
|
758
|
+
* it to camelCase.
|
759
|
+
*/
|
760
|
+
|
761
|
+
jsonName: string;
|
762
|
+
options: FieldOptions;
|
763
|
+
}
|
764
|
+
/** Describes a field within a message. */
|
765
|
+
|
766
|
+
export interface FieldDescriptorProtoSDKType {
|
767
|
+
name: string;
|
768
|
+
number: number;
|
769
|
+
label: FieldDescriptorProto_LabelSDKType;
|
770
|
+
/**
|
771
|
+
* If type_name is set, this need not be set. If both this and type_name
|
772
|
+
* are set, this must be one of TYPE_ENUM, TYPE_MESSAGE or TYPE_GROUP.
|
773
|
+
*/
|
774
|
+
|
775
|
+
type: FieldDescriptorProto_TypeSDKType;
|
776
|
+
/**
|
777
|
+
* For message and enum types, this is the name of the type. If the name
|
778
|
+
* starts with a '.', it is fully-qualified. Otherwise, C++-like scoping
|
779
|
+
* rules are used to find the type (i.e. first the nested types within this
|
780
|
+
* message are searched, then within the parent, on up to the root
|
781
|
+
* namespace).
|
782
|
+
*/
|
783
|
+
|
784
|
+
type_name: string;
|
785
|
+
/**
|
786
|
+
* For extensions, this is the name of the type being extended. It is
|
787
|
+
* resolved in the same manner as type_name.
|
788
|
+
*/
|
789
|
+
|
790
|
+
extendee: string;
|
791
|
+
/**
|
792
|
+
* For numeric types, contains the original text representation of the value.
|
793
|
+
* For booleans, "true" or "false".
|
794
|
+
* For strings, contains the default text contents (not escaped in any way).
|
795
|
+
* For bytes, contains the C escaped value. All bytes >= 128 are escaped.
|
796
|
+
* TODO(kenton): Base-64 encode?
|
797
|
+
*/
|
798
|
+
|
799
|
+
default_value: string;
|
800
|
+
/**
|
801
|
+
* If set, gives the index of a oneof in the containing type's oneof_decl
|
802
|
+
* list. This field is a member of that oneof.
|
803
|
+
*/
|
804
|
+
|
805
|
+
oneof_index: number;
|
806
|
+
/**
|
807
|
+
* JSON name of this field. The value is set by protocol compiler. If the
|
808
|
+
* user has set a "json_name" option on this field, that option's value
|
809
|
+
* will be used. Otherwise, it's deduced from the field's name by converting
|
810
|
+
* it to camelCase.
|
811
|
+
*/
|
812
|
+
|
813
|
+
json_name: string;
|
814
|
+
options: FieldOptionsSDKType;
|
815
|
+
}
|
816
|
+
/** Describes a oneof. */
|
817
|
+
|
818
|
+
export interface OneofDescriptorProto {
|
819
|
+
name: string;
|
820
|
+
options: OneofOptions;
|
821
|
+
}
|
822
|
+
/** Describes a oneof. */
|
823
|
+
|
824
|
+
export interface OneofDescriptorProtoSDKType {
|
825
|
+
name: string;
|
826
|
+
options: OneofOptionsSDKType;
|
827
|
+
}
|
828
|
+
/** Describes an enum type. */
|
829
|
+
|
830
|
+
export interface EnumDescriptorProto {
|
831
|
+
name: string;
|
832
|
+
value: EnumValueDescriptorProto[];
|
833
|
+
options: EnumOptions;
|
834
|
+
/**
|
835
|
+
* Range of reserved numeric values. Reserved numeric values may not be used
|
836
|
+
* by enum values in the same enum declaration. Reserved ranges may not
|
837
|
+
* overlap.
|
838
|
+
*/
|
839
|
+
|
840
|
+
reservedRange: EnumDescriptorProto_EnumReservedRange[];
|
841
|
+
/**
|
842
|
+
* Reserved enum value names, which may not be reused. A given name may only
|
843
|
+
* be reserved once.
|
844
|
+
*/
|
845
|
+
|
846
|
+
reservedName: string[];
|
847
|
+
}
|
848
|
+
/** Describes an enum type. */
|
849
|
+
|
850
|
+
export interface EnumDescriptorProtoSDKType {
|
851
|
+
name: string;
|
852
|
+
value: EnumValueDescriptorProtoSDKType[];
|
853
|
+
options: EnumOptionsSDKType;
|
854
|
+
/**
|
855
|
+
* Range of reserved numeric values. Reserved numeric values may not be used
|
856
|
+
* by enum values in the same enum declaration. Reserved ranges may not
|
857
|
+
* overlap.
|
858
|
+
*/
|
859
|
+
|
860
|
+
reserved_range: EnumDescriptorProto_EnumReservedRangeSDKType[];
|
861
|
+
/**
|
862
|
+
* Reserved enum value names, which may not be reused. A given name may only
|
863
|
+
* be reserved once.
|
864
|
+
*/
|
865
|
+
|
866
|
+
reserved_name: string[];
|
867
|
+
}
|
868
|
+
/**
|
869
|
+
* Range of reserved numeric values. Reserved values may not be used by
|
870
|
+
* entries in the same enum. Reserved ranges may not overlap.
|
871
|
+
*
|
872
|
+
* Note that this is distinct from DescriptorProto.ReservedRange in that it
|
873
|
+
* is inclusive such that it can appropriately represent the entire int32
|
874
|
+
* domain.
|
875
|
+
*/
|
876
|
+
|
877
|
+
export interface EnumDescriptorProto_EnumReservedRange {
|
878
|
+
/** Inclusive. */
|
879
|
+
start: number;
|
880
|
+
/** Inclusive. */
|
881
|
+
|
882
|
+
end: number;
|
883
|
+
}
|
884
|
+
/**
|
885
|
+
* Range of reserved numeric values. Reserved values may not be used by
|
886
|
+
* entries in the same enum. Reserved ranges may not overlap.
|
887
|
+
*
|
888
|
+
* Note that this is distinct from DescriptorProto.ReservedRange in that it
|
889
|
+
* is inclusive such that it can appropriately represent the entire int32
|
890
|
+
* domain.
|
891
|
+
*/
|
892
|
+
|
893
|
+
export interface EnumDescriptorProto_EnumReservedRangeSDKType {
|
894
|
+
/** Inclusive. */
|
895
|
+
start: number;
|
896
|
+
/** Inclusive. */
|
897
|
+
|
898
|
+
end: number;
|
899
|
+
}
|
900
|
+
/** Describes a value within an enum. */
|
901
|
+
|
902
|
+
export interface EnumValueDescriptorProto {
|
903
|
+
name: string;
|
904
|
+
number: number;
|
905
|
+
options: EnumValueOptions;
|
906
|
+
}
|
907
|
+
/** Describes a value within an enum. */
|
908
|
+
|
909
|
+
export interface EnumValueDescriptorProtoSDKType {
|
910
|
+
name: string;
|
911
|
+
number: number;
|
912
|
+
options: EnumValueOptionsSDKType;
|
913
|
+
}
|
914
|
+
/** Describes a service. */
|
915
|
+
|
916
|
+
export interface ServiceDescriptorProto {
|
917
|
+
name: string;
|
918
|
+
method: MethodDescriptorProto[];
|
919
|
+
options: ServiceOptions;
|
920
|
+
}
|
921
|
+
/** Describes a service. */
|
922
|
+
|
923
|
+
export interface ServiceDescriptorProtoSDKType {
|
924
|
+
name: string;
|
925
|
+
method: MethodDescriptorProtoSDKType[];
|
926
|
+
options: ServiceOptionsSDKType;
|
927
|
+
}
|
928
|
+
/** Describes a method of a service. */
|
929
|
+
|
930
|
+
export interface MethodDescriptorProto {
|
931
|
+
name: string;
|
932
|
+
/**
|
933
|
+
* Input and output type names. These are resolved in the same way as
|
934
|
+
* FieldDescriptorProto.type_name, but must refer to a message type.
|
935
|
+
*/
|
936
|
+
|
937
|
+
inputType: string;
|
938
|
+
outputType: string;
|
939
|
+
options: MethodOptions;
|
940
|
+
/** Identifies if client streams multiple client messages */
|
941
|
+
|
942
|
+
clientStreaming: boolean;
|
943
|
+
/** Identifies if server streams multiple server messages */
|
944
|
+
|
945
|
+
serverStreaming: boolean;
|
946
|
+
}
|
947
|
+
/** Describes a method of a service. */
|
948
|
+
|
949
|
+
export interface MethodDescriptorProtoSDKType {
|
950
|
+
name: string;
|
951
|
+
/**
|
952
|
+
* Input and output type names. These are resolved in the same way as
|
953
|
+
* FieldDescriptorProto.type_name, but must refer to a message type.
|
954
|
+
*/
|
955
|
+
|
956
|
+
input_type: string;
|
957
|
+
output_type: string;
|
958
|
+
options: MethodOptionsSDKType;
|
959
|
+
/** Identifies if client streams multiple client messages */
|
960
|
+
|
961
|
+
client_streaming: boolean;
|
962
|
+
/** Identifies if server streams multiple server messages */
|
963
|
+
|
964
|
+
server_streaming: boolean;
|
965
|
+
}
|
966
|
+
export interface FileOptions {
|
967
|
+
/**
|
968
|
+
* Sets the Java package where classes generated from this .proto will be
|
969
|
+
* placed. By default, the proto package is used, but this is often
|
970
|
+
* inappropriate because proto packages do not normally start with backwards
|
971
|
+
* domain names.
|
972
|
+
*/
|
973
|
+
javaPackage: string;
|
974
|
+
/**
|
975
|
+
* If set, all the classes from the .proto file are wrapped in a single
|
976
|
+
* outer class with the given name. This applies to both Proto1
|
977
|
+
* (equivalent to the old "--one_java_file" option) and Proto2 (where
|
978
|
+
* a .proto always translates to a single class, but you may want to
|
979
|
+
* explicitly choose the class name).
|
980
|
+
*/
|
981
|
+
|
982
|
+
javaOuterClassname: string;
|
983
|
+
/**
|
984
|
+
* If set true, then the Java code generator will generate a separate .java
|
985
|
+
* file for each top-level message, enum, and service defined in the .proto
|
986
|
+
* file. Thus, these types will *not* be nested inside the outer class
|
987
|
+
* named by java_outer_classname. However, the outer class will still be
|
988
|
+
* generated to contain the file's getDescriptor() method as well as any
|
989
|
+
* top-level extensions defined in the file.
|
990
|
+
*/
|
991
|
+
|
992
|
+
javaMultipleFiles: boolean;
|
993
|
+
/** This option does nothing. */
|
994
|
+
|
995
|
+
/** @deprecated */
|
996
|
+
|
997
|
+
javaGenerateEqualsAndHash: boolean;
|
998
|
+
/**
|
999
|
+
* If set true, then the Java2 code generator will generate code that
|
1000
|
+
* throws an exception whenever an attempt is made to assign a non-UTF-8
|
1001
|
+
* byte sequence to a string field.
|
1002
|
+
* Message reflection will do the same.
|
1003
|
+
* However, an extension field still accepts non-UTF-8 byte sequences.
|
1004
|
+
* This option has no effect on when used with the lite runtime.
|
1005
|
+
*/
|
1006
|
+
|
1007
|
+
javaStringCheckUtf8: boolean;
|
1008
|
+
optimizeFor: FileOptions_OptimizeMode;
|
1009
|
+
/**
|
1010
|
+
* Sets the Go package where structs generated from this .proto will be
|
1011
|
+
* placed. If omitted, the Go package will be derived from the following:
|
1012
|
+
* - The basename of the package import path, if provided.
|
1013
|
+
* - Otherwise, the package statement in the .proto file, if present.
|
1014
|
+
* - Otherwise, the basename of the .proto file, without extension.
|
1015
|
+
*/
|
1016
|
+
|
1017
|
+
goPackage: string;
|
1018
|
+
/**
|
1019
|
+
* Should generic services be generated in each language? "Generic" services
|
1020
|
+
* are not specific to any particular RPC system. They are generated by the
|
1021
|
+
* main code generators in each language (without additional plugins).
|
1022
|
+
* Generic services were the only kind of service generation supported by
|
1023
|
+
* early versions of google.protobuf.
|
1024
|
+
*
|
1025
|
+
* Generic services are now considered deprecated in favor of using plugins
|
1026
|
+
* that generate code specific to your particular RPC system. Therefore,
|
1027
|
+
* these default to false. Old code which depends on generic services should
|
1028
|
+
* explicitly set them to true.
|
1029
|
+
*/
|
1030
|
+
|
1031
|
+
ccGenericServices: boolean;
|
1032
|
+
javaGenericServices: boolean;
|
1033
|
+
pyGenericServices: boolean;
|
1034
|
+
phpGenericServices: boolean;
|
1035
|
+
/**
|
1036
|
+
* Is this file deprecated?
|
1037
|
+
* Depending on the target platform, this can emit Deprecated annotations
|
1038
|
+
* for everything in the file, or it will be completely ignored; in the very
|
1039
|
+
* least, this is a formalization for deprecating files.
|
1040
|
+
*/
|
1041
|
+
|
1042
|
+
deprecated: boolean;
|
1043
|
+
/**
|
1044
|
+
* Enables the use of arenas for the proto messages in this file. This applies
|
1045
|
+
* only to generated classes for C++.
|
1046
|
+
*/
|
1047
|
+
|
1048
|
+
ccEnableArenas: boolean;
|
1049
|
+
/**
|
1050
|
+
* Sets the objective c class prefix which is prepended to all objective c
|
1051
|
+
* generated classes from this .proto. There is no default.
|
1052
|
+
*/
|
1053
|
+
|
1054
|
+
objcClassPrefix: string;
|
1055
|
+
/** Namespace for generated classes; defaults to the package. */
|
1056
|
+
|
1057
|
+
csharpNamespace: string;
|
1058
|
+
/**
|
1059
|
+
* By default Swift generators will take the proto package and CamelCase it
|
1060
|
+
* replacing '.' with underscore and use that to prefix the types/symbols
|
1061
|
+
* defined. When this options is provided, they will use this value instead
|
1062
|
+
* to prefix the types/symbols defined.
|
1063
|
+
*/
|
1064
|
+
|
1065
|
+
swiftPrefix: string;
|
1066
|
+
/**
|
1067
|
+
* Sets the php class prefix which is prepended to all php generated classes
|
1068
|
+
* from this .proto. Default is empty.
|
1069
|
+
*/
|
1070
|
+
|
1071
|
+
phpClassPrefix: string;
|
1072
|
+
/**
|
1073
|
+
* Use this option to change the namespace of php generated classes. Default
|
1074
|
+
* is empty. When this option is empty, the package name will be used for
|
1075
|
+
* determining the namespace.
|
1076
|
+
*/
|
1077
|
+
|
1078
|
+
phpNamespace: string;
|
1079
|
+
/**
|
1080
|
+
* Use this option to change the namespace of php generated metadata classes.
|
1081
|
+
* Default is empty. When this option is empty, the proto file name will be
|
1082
|
+
* used for determining the namespace.
|
1083
|
+
*/
|
1084
|
+
|
1085
|
+
phpMetadataNamespace: string;
|
1086
|
+
/**
|
1087
|
+
* Use this option to change the package of ruby generated classes. Default
|
1088
|
+
* is empty. When this option is not set, the package name will be used for
|
1089
|
+
* determining the ruby package.
|
1090
|
+
*/
|
1091
|
+
|
1092
|
+
rubyPackage: string;
|
1093
|
+
/**
|
1094
|
+
* The parser stores options it doesn't recognize here.
|
1095
|
+
* See the documentation for the "Options" section above.
|
1096
|
+
*/
|
1097
|
+
|
1098
|
+
uninterpretedOption: UninterpretedOption[];
|
1099
|
+
}
|
1100
|
+
export interface FileOptionsSDKType {
|
1101
|
+
/**
|
1102
|
+
* Sets the Java package where classes generated from this .proto will be
|
1103
|
+
* placed. By default, the proto package is used, but this is often
|
1104
|
+
* inappropriate because proto packages do not normally start with backwards
|
1105
|
+
* domain names.
|
1106
|
+
*/
|
1107
|
+
java_package: string;
|
1108
|
+
/**
|
1109
|
+
* If set, all the classes from the .proto file are wrapped in a single
|
1110
|
+
* outer class with the given name. This applies to both Proto1
|
1111
|
+
* (equivalent to the old "--one_java_file" option) and Proto2 (where
|
1112
|
+
* a .proto always translates to a single class, but you may want to
|
1113
|
+
* explicitly choose the class name).
|
1114
|
+
*/
|
1115
|
+
|
1116
|
+
java_outer_classname: string;
|
1117
|
+
/**
|
1118
|
+
* If set true, then the Java code generator will generate a separate .java
|
1119
|
+
* file for each top-level message, enum, and service defined in the .proto
|
1120
|
+
* file. Thus, these types will *not* be nested inside the outer class
|
1121
|
+
* named by java_outer_classname. However, the outer class will still be
|
1122
|
+
* generated to contain the file's getDescriptor() method as well as any
|
1123
|
+
* top-level extensions defined in the file.
|
1124
|
+
*/
|
1125
|
+
|
1126
|
+
java_multiple_files: boolean;
|
1127
|
+
/** This option does nothing. */
|
1128
|
+
|
1129
|
+
/** @deprecated */
|
1130
|
+
|
1131
|
+
java_generate_equals_and_hash: boolean;
|
1132
|
+
/**
|
1133
|
+
* If set true, then the Java2 code generator will generate code that
|
1134
|
+
* throws an exception whenever an attempt is made to assign a non-UTF-8
|
1135
|
+
* byte sequence to a string field.
|
1136
|
+
* Message reflection will do the same.
|
1137
|
+
* However, an extension field still accepts non-UTF-8 byte sequences.
|
1138
|
+
* This option has no effect on when used with the lite runtime.
|
1139
|
+
*/
|
1140
|
+
|
1141
|
+
java_string_check_utf8: boolean;
|
1142
|
+
optimize_for: FileOptions_OptimizeModeSDKType;
|
1143
|
+
/**
|
1144
|
+
* Sets the Go package where structs generated from this .proto will be
|
1145
|
+
* placed. If omitted, the Go package will be derived from the following:
|
1146
|
+
* - The basename of the package import path, if provided.
|
1147
|
+
* - Otherwise, the package statement in the .proto file, if present.
|
1148
|
+
* - Otherwise, the basename of the .proto file, without extension.
|
1149
|
+
*/
|
1150
|
+
|
1151
|
+
go_package: string;
|
1152
|
+
/**
|
1153
|
+
* Should generic services be generated in each language? "Generic" services
|
1154
|
+
* are not specific to any particular RPC system. They are generated by the
|
1155
|
+
* main code generators in each language (without additional plugins).
|
1156
|
+
* Generic services were the only kind of service generation supported by
|
1157
|
+
* early versions of google.protobuf.
|
1158
|
+
*
|
1159
|
+
* Generic services are now considered deprecated in favor of using plugins
|
1160
|
+
* that generate code specific to your particular RPC system. Therefore,
|
1161
|
+
* these default to false. Old code which depends on generic services should
|
1162
|
+
* explicitly set them to true.
|
1163
|
+
*/
|
1164
|
+
|
1165
|
+
cc_generic_services: boolean;
|
1166
|
+
java_generic_services: boolean;
|
1167
|
+
py_generic_services: boolean;
|
1168
|
+
php_generic_services: boolean;
|
1169
|
+
/**
|
1170
|
+
* Is this file deprecated?
|
1171
|
+
* Depending on the target platform, this can emit Deprecated annotations
|
1172
|
+
* for everything in the file, or it will be completely ignored; in the very
|
1173
|
+
* least, this is a formalization for deprecating files.
|
1174
|
+
*/
|
1175
|
+
|
1176
|
+
deprecated: boolean;
|
1177
|
+
/**
|
1178
|
+
* Enables the use of arenas for the proto messages in this file. This applies
|
1179
|
+
* only to generated classes for C++.
|
1180
|
+
*/
|
1181
|
+
|
1182
|
+
cc_enable_arenas: boolean;
|
1183
|
+
/**
|
1184
|
+
* Sets the objective c class prefix which is prepended to all objective c
|
1185
|
+
* generated classes from this .proto. There is no default.
|
1186
|
+
*/
|
1187
|
+
|
1188
|
+
objc_class_prefix: string;
|
1189
|
+
/** Namespace for generated classes; defaults to the package. */
|
1190
|
+
|
1191
|
+
csharp_namespace: string;
|
1192
|
+
/**
|
1193
|
+
* By default Swift generators will take the proto package and CamelCase it
|
1194
|
+
* replacing '.' with underscore and use that to prefix the types/symbols
|
1195
|
+
* defined. When this options is provided, they will use this value instead
|
1196
|
+
* to prefix the types/symbols defined.
|
1197
|
+
*/
|
1198
|
+
|
1199
|
+
swift_prefix: string;
|
1200
|
+
/**
|
1201
|
+
* Sets the php class prefix which is prepended to all php generated classes
|
1202
|
+
* from this .proto. Default is empty.
|
1203
|
+
*/
|
1204
|
+
|
1205
|
+
php_class_prefix: string;
|
1206
|
+
/**
|
1207
|
+
* Use this option to change the namespace of php generated classes. Default
|
1208
|
+
* is empty. When this option is empty, the package name will be used for
|
1209
|
+
* determining the namespace.
|
1210
|
+
*/
|
1211
|
+
|
1212
|
+
php_namespace: string;
|
1213
|
+
/**
|
1214
|
+
* Use this option to change the namespace of php generated metadata classes.
|
1215
|
+
* Default is empty. When this option is empty, the proto file name will be
|
1216
|
+
* used for determining the namespace.
|
1217
|
+
*/
|
1218
|
+
|
1219
|
+
php_metadata_namespace: string;
|
1220
|
+
/**
|
1221
|
+
* Use this option to change the package of ruby generated classes. Default
|
1222
|
+
* is empty. When this option is not set, the package name will be used for
|
1223
|
+
* determining the ruby package.
|
1224
|
+
*/
|
1225
|
+
|
1226
|
+
ruby_package: string;
|
1227
|
+
/**
|
1228
|
+
* The parser stores options it doesn't recognize here.
|
1229
|
+
* See the documentation for the "Options" section above.
|
1230
|
+
*/
|
1231
|
+
|
1232
|
+
uninterpreted_option: UninterpretedOptionSDKType[];
|
1233
|
+
}
|
1234
|
+
export interface MessageOptions {
|
1235
|
+
/**
|
1236
|
+
* Set true to use the old proto1 MessageSet wire format for extensions.
|
1237
|
+
* This is provided for backwards-compatibility with the MessageSet wire
|
1238
|
+
* format. You should not use this for any other reason: It's less
|
1239
|
+
* efficient, has fewer features, and is more complicated.
|
1240
|
+
*
|
1241
|
+
* The message must be defined exactly as follows:
|
1242
|
+
* message Foo {
|
1243
|
+
* option message_set_wire_format = true;
|
1244
|
+
* extensions 4 to max;
|
1245
|
+
* }
|
1246
|
+
* Note that the message cannot have any defined fields; MessageSets only
|
1247
|
+
* have extensions.
|
1248
|
+
*
|
1249
|
+
* All extensions of your type must be singular messages; e.g. they cannot
|
1250
|
+
* be int32s, enums, or repeated messages.
|
1251
|
+
*
|
1252
|
+
* Because this is an option, the above two restrictions are not enforced by
|
1253
|
+
* the protocol compiler.
|
1254
|
+
*/
|
1255
|
+
messageSetWireFormat: boolean;
|
1256
|
+
/**
|
1257
|
+
* Disables the generation of the standard "descriptor()" accessor, which can
|
1258
|
+
* conflict with a field of the same name. This is meant to make migration
|
1259
|
+
* from proto1 easier; new code should avoid fields named "descriptor".
|
1260
|
+
*/
|
1261
|
+
|
1262
|
+
noStandardDescriptorAccessor: boolean;
|
1263
|
+
/**
|
1264
|
+
* Is this message deprecated?
|
1265
|
+
* Depending on the target platform, this can emit Deprecated annotations
|
1266
|
+
* for the message, or it will be completely ignored; in the very least,
|
1267
|
+
* this is a formalization for deprecating messages.
|
1268
|
+
*/
|
1269
|
+
|
1270
|
+
deprecated: boolean;
|
1271
|
+
/**
|
1272
|
+
* Whether the message is an automatically generated map entry type for the
|
1273
|
+
* maps field.
|
1274
|
+
*
|
1275
|
+
* For maps fields:
|
1276
|
+
* map<KeyType, ValueType> map_field = 1;
|
1277
|
+
* The parsed descriptor looks like:
|
1278
|
+
* message MapFieldEntry {
|
1279
|
+
* option map_entry = true;
|
1280
|
+
* optional KeyType key = 1;
|
1281
|
+
* optional ValueType value = 2;
|
1282
|
+
* }
|
1283
|
+
* repeated MapFieldEntry map_field = 1;
|
1284
|
+
*
|
1285
|
+
* Implementations may choose not to generate the map_entry=true message, but
|
1286
|
+
* use a native map in the target language to hold the keys and values.
|
1287
|
+
* The reflection APIs in such implementations still need to work as
|
1288
|
+
* if the field is a repeated message field.
|
1289
|
+
*
|
1290
|
+
* NOTE: Do not set the option in .proto files. Always use the maps syntax
|
1291
|
+
* instead. The option should only be implicitly set by the proto compiler
|
1292
|
+
* parser.
|
1293
|
+
*/
|
1294
|
+
|
1295
|
+
mapEntry: boolean;
|
1296
|
+
/** The parser stores options it doesn't recognize here. See above. */
|
1297
|
+
|
1298
|
+
uninterpretedOption: UninterpretedOption[];
|
1299
|
+
}
|
1300
|
+
export interface MessageOptionsSDKType {
|
1301
|
+
/**
|
1302
|
+
* Set true to use the old proto1 MessageSet wire format for extensions.
|
1303
|
+
* This is provided for backwards-compatibility with the MessageSet wire
|
1304
|
+
* format. You should not use this for any other reason: It's less
|
1305
|
+
* efficient, has fewer features, and is more complicated.
|
1306
|
+
*
|
1307
|
+
* The message must be defined exactly as follows:
|
1308
|
+
* message Foo {
|
1309
|
+
* option message_set_wire_format = true;
|
1310
|
+
* extensions 4 to max;
|
1311
|
+
* }
|
1312
|
+
* Note that the message cannot have any defined fields; MessageSets only
|
1313
|
+
* have extensions.
|
1314
|
+
*
|
1315
|
+
* All extensions of your type must be singular messages; e.g. they cannot
|
1316
|
+
* be int32s, enums, or repeated messages.
|
1317
|
+
*
|
1318
|
+
* Because this is an option, the above two restrictions are not enforced by
|
1319
|
+
* the protocol compiler.
|
1320
|
+
*/
|
1321
|
+
message_set_wire_format: boolean;
|
1322
|
+
/**
|
1323
|
+
* Disables the generation of the standard "descriptor()" accessor, which can
|
1324
|
+
* conflict with a field of the same name. This is meant to make migration
|
1325
|
+
* from proto1 easier; new code should avoid fields named "descriptor".
|
1326
|
+
*/
|
1327
|
+
|
1328
|
+
no_standard_descriptor_accessor: boolean;
|
1329
|
+
/**
|
1330
|
+
* Is this message deprecated?
|
1331
|
+
* Depending on the target platform, this can emit Deprecated annotations
|
1332
|
+
* for the message, or it will be completely ignored; in the very least,
|
1333
|
+
* this is a formalization for deprecating messages.
|
1334
|
+
*/
|
1335
|
+
|
1336
|
+
deprecated: boolean;
|
1337
|
+
/**
|
1338
|
+
* Whether the message is an automatically generated map entry type for the
|
1339
|
+
* maps field.
|
1340
|
+
*
|
1341
|
+
* For maps fields:
|
1342
|
+
* map<KeyType, ValueType> map_field = 1;
|
1343
|
+
* The parsed descriptor looks like:
|
1344
|
+
* message MapFieldEntry {
|
1345
|
+
* option map_entry = true;
|
1346
|
+
* optional KeyType key = 1;
|
1347
|
+
* optional ValueType value = 2;
|
1348
|
+
* }
|
1349
|
+
* repeated MapFieldEntry map_field = 1;
|
1350
|
+
*
|
1351
|
+
* Implementations may choose not to generate the map_entry=true message, but
|
1352
|
+
* use a native map in the target language to hold the keys and values.
|
1353
|
+
* The reflection APIs in such implementations still need to work as
|
1354
|
+
* if the field is a repeated message field.
|
1355
|
+
*
|
1356
|
+
* NOTE: Do not set the option in .proto files. Always use the maps syntax
|
1357
|
+
* instead. The option should only be implicitly set by the proto compiler
|
1358
|
+
* parser.
|
1359
|
+
*/
|
1360
|
+
|
1361
|
+
map_entry: boolean;
|
1362
|
+
/** The parser stores options it doesn't recognize here. See above. */
|
1363
|
+
|
1364
|
+
uninterpreted_option: UninterpretedOptionSDKType[];
|
1365
|
+
}
|
1366
|
+
export interface FieldOptions {
|
1367
|
+
/**
|
1368
|
+
* The ctype option instructs the C++ code generator to use a different
|
1369
|
+
* representation of the field than it normally would. See the specific
|
1370
|
+
* options below. This option is not yet implemented in the open source
|
1371
|
+
* release -- sorry, we'll try to include it in a future version!
|
1372
|
+
*/
|
1373
|
+
ctype: FieldOptions_CType;
|
1374
|
+
/**
|
1375
|
+
* The packed option can be enabled for repeated primitive fields to enable
|
1376
|
+
* a more efficient representation on the wire. Rather than repeatedly
|
1377
|
+
* writing the tag and type for each element, the entire array is encoded as
|
1378
|
+
* a single length-delimited blob. In proto3, only explicit setting it to
|
1379
|
+
* false will avoid using packed encoding.
|
1380
|
+
*/
|
1381
|
+
|
1382
|
+
packed: boolean;
|
1383
|
+
/**
|
1384
|
+
* The jstype option determines the JavaScript type used for values of the
|
1385
|
+
* field. The option is permitted only for 64 bit integral and fixed types
|
1386
|
+
* (int64, uint64, sint64, fixed64, sfixed64). A field with jstype JS_STRING
|
1387
|
+
* is represented as JavaScript string, which avoids loss of precision that
|
1388
|
+
* can happen when a large value is converted to a floating point JavaScript.
|
1389
|
+
* Specifying JS_NUMBER for the jstype causes the generated JavaScript code to
|
1390
|
+
* use the JavaScript "number" type. The behavior of the default option
|
1391
|
+
* JS_NORMAL is implementation dependent.
|
1392
|
+
*
|
1393
|
+
* This option is an enum to permit additional types to be added, e.g.
|
1394
|
+
* goog.math.Integer.
|
1395
|
+
*/
|
1396
|
+
|
1397
|
+
jstype: FieldOptions_JSType;
|
1398
|
+
/**
|
1399
|
+
* Should this field be parsed lazily? Lazy applies only to message-type
|
1400
|
+
* fields. It means that when the outer message is initially parsed, the
|
1401
|
+
* inner message's contents will not be parsed but instead stored in encoded
|
1402
|
+
* form. The inner message will actually be parsed when it is first accessed.
|
1403
|
+
*
|
1404
|
+
* This is only a hint. Implementations are free to choose whether to use
|
1405
|
+
* eager or lazy parsing regardless of the value of this option. However,
|
1406
|
+
* setting this option true suggests that the protocol author believes that
|
1407
|
+
* using lazy parsing on this field is worth the additional bookkeeping
|
1408
|
+
* overhead typically needed to implement it.
|
1409
|
+
*
|
1410
|
+
* This option does not affect the public interface of any generated code;
|
1411
|
+
* all method signatures remain the same. Furthermore, thread-safety of the
|
1412
|
+
* interface is not affected by this option; const methods remain safe to
|
1413
|
+
* call from multiple threads concurrently, while non-const methods continue
|
1414
|
+
* to require exclusive access.
|
1415
|
+
*
|
1416
|
+
*
|
1417
|
+
* Note that implementations may choose not to check required fields within
|
1418
|
+
* a lazy sub-message. That is, calling IsInitialized() on the outer message
|
1419
|
+
* may return true even if the inner message has missing required fields.
|
1420
|
+
* This is necessary because otherwise the inner message would have to be
|
1421
|
+
* parsed in order to perform the check, defeating the purpose of lazy
|
1422
|
+
* parsing. An implementation which chooses not to check required fields
|
1423
|
+
* must be consistent about it. That is, for any particular sub-message, the
|
1424
|
+
* implementation must either *always* check its required fields, or *never*
|
1425
|
+
* check its required fields, regardless of whether or not the message has
|
1426
|
+
* been parsed.
|
1427
|
+
*/
|
1428
|
+
|
1429
|
+
lazy: boolean;
|
1430
|
+
/**
|
1431
|
+
* Is this field deprecated?
|
1432
|
+
* Depending on the target platform, this can emit Deprecated annotations
|
1433
|
+
* for accessors, or it will be completely ignored; in the very least, this
|
1434
|
+
* is a formalization for deprecating fields.
|
1435
|
+
*/
|
1436
|
+
|
1437
|
+
deprecated: boolean;
|
1438
|
+
/** For Google-internal migration only. Do not use. */
|
1439
|
+
|
1440
|
+
weak: boolean;
|
1441
|
+
/** The parser stores options it doesn't recognize here. See above. */
|
1442
|
+
|
1443
|
+
uninterpretedOption: UninterpretedOption[];
|
1444
|
+
}
|
1445
|
+
export interface FieldOptionsSDKType {
|
1446
|
+
/**
|
1447
|
+
* The ctype option instructs the C++ code generator to use a different
|
1448
|
+
* representation of the field than it normally would. See the specific
|
1449
|
+
* options below. This option is not yet implemented in the open source
|
1450
|
+
* release -- sorry, we'll try to include it in a future version!
|
1451
|
+
*/
|
1452
|
+
ctype: FieldOptions_CTypeSDKType;
|
1453
|
+
/**
|
1454
|
+
* The packed option can be enabled for repeated primitive fields to enable
|
1455
|
+
* a more efficient representation on the wire. Rather than repeatedly
|
1456
|
+
* writing the tag and type for each element, the entire array is encoded as
|
1457
|
+
* a single length-delimited blob. In proto3, only explicit setting it to
|
1458
|
+
* false will avoid using packed encoding.
|
1459
|
+
*/
|
1460
|
+
|
1461
|
+
packed: boolean;
|
1462
|
+
/**
|
1463
|
+
* The jstype option determines the JavaScript type used for values of the
|
1464
|
+
* field. The option is permitted only for 64 bit integral and fixed types
|
1465
|
+
* (int64, uint64, sint64, fixed64, sfixed64). A field with jstype JS_STRING
|
1466
|
+
* is represented as JavaScript string, which avoids loss of precision that
|
1467
|
+
* can happen when a large value is converted to a floating point JavaScript.
|
1468
|
+
* Specifying JS_NUMBER for the jstype causes the generated JavaScript code to
|
1469
|
+
* use the JavaScript "number" type. The behavior of the default option
|
1470
|
+
* JS_NORMAL is implementation dependent.
|
1471
|
+
*
|
1472
|
+
* This option is an enum to permit additional types to be added, e.g.
|
1473
|
+
* goog.math.Integer.
|
1474
|
+
*/
|
1475
|
+
|
1476
|
+
jstype: FieldOptions_JSTypeSDKType;
|
1477
|
+
/**
|
1478
|
+
* Should this field be parsed lazily? Lazy applies only to message-type
|
1479
|
+
* fields. It means that when the outer message is initially parsed, the
|
1480
|
+
* inner message's contents will not be parsed but instead stored in encoded
|
1481
|
+
* form. The inner message will actually be parsed when it is first accessed.
|
1482
|
+
*
|
1483
|
+
* This is only a hint. Implementations are free to choose whether to use
|
1484
|
+
* eager or lazy parsing regardless of the value of this option. However,
|
1485
|
+
* setting this option true suggests that the protocol author believes that
|
1486
|
+
* using lazy parsing on this field is worth the additional bookkeeping
|
1487
|
+
* overhead typically needed to implement it.
|
1488
|
+
*
|
1489
|
+
* This option does not affect the public interface of any generated code;
|
1490
|
+
* all method signatures remain the same. Furthermore, thread-safety of the
|
1491
|
+
* interface is not affected by this option; const methods remain safe to
|
1492
|
+
* call from multiple threads concurrently, while non-const methods continue
|
1493
|
+
* to require exclusive access.
|
1494
|
+
*
|
1495
|
+
*
|
1496
|
+
* Note that implementations may choose not to check required fields within
|
1497
|
+
* a lazy sub-message. That is, calling IsInitialized() on the outer message
|
1498
|
+
* may return true even if the inner message has missing required fields.
|
1499
|
+
* This is necessary because otherwise the inner message would have to be
|
1500
|
+
* parsed in order to perform the check, defeating the purpose of lazy
|
1501
|
+
* parsing. An implementation which chooses not to check required fields
|
1502
|
+
* must be consistent about it. That is, for any particular sub-message, the
|
1503
|
+
* implementation must either *always* check its required fields, or *never*
|
1504
|
+
* check its required fields, regardless of whether or not the message has
|
1505
|
+
* been parsed.
|
1506
|
+
*/
|
1507
|
+
|
1508
|
+
lazy: boolean;
|
1509
|
+
/**
|
1510
|
+
* Is this field deprecated?
|
1511
|
+
* Depending on the target platform, this can emit Deprecated annotations
|
1512
|
+
* for accessors, or it will be completely ignored; in the very least, this
|
1513
|
+
* is a formalization for deprecating fields.
|
1514
|
+
*/
|
1515
|
+
|
1516
|
+
deprecated: boolean;
|
1517
|
+
/** For Google-internal migration only. Do not use. */
|
1518
|
+
|
1519
|
+
weak: boolean;
|
1520
|
+
/** The parser stores options it doesn't recognize here. See above. */
|
1521
|
+
|
1522
|
+
uninterpreted_option: UninterpretedOptionSDKType[];
|
1523
|
+
}
|
1524
|
+
export interface OneofOptions {
|
1525
|
+
/** The parser stores options it doesn't recognize here. See above. */
|
1526
|
+
uninterpretedOption: UninterpretedOption[];
|
1527
|
+
}
|
1528
|
+
export interface OneofOptionsSDKType {
|
1529
|
+
/** The parser stores options it doesn't recognize here. See above. */
|
1530
|
+
uninterpreted_option: UninterpretedOptionSDKType[];
|
1531
|
+
}
|
1532
|
+
export interface EnumOptions {
|
1533
|
+
/**
|
1534
|
+
* Set this option to true to allow mapping different tag names to the same
|
1535
|
+
* value.
|
1536
|
+
*/
|
1537
|
+
allowAlias: boolean;
|
1538
|
+
/**
|
1539
|
+
* Is this enum deprecated?
|
1540
|
+
* Depending on the target platform, this can emit Deprecated annotations
|
1541
|
+
* for the enum, or it will be completely ignored; in the very least, this
|
1542
|
+
* is a formalization for deprecating enums.
|
1543
|
+
*/
|
1544
|
+
|
1545
|
+
deprecated: boolean;
|
1546
|
+
/** The parser stores options it doesn't recognize here. See above. */
|
1547
|
+
|
1548
|
+
uninterpretedOption: UninterpretedOption[];
|
1549
|
+
}
|
1550
|
+
export interface EnumOptionsSDKType {
|
1551
|
+
/**
|
1552
|
+
* Set this option to true to allow mapping different tag names to the same
|
1553
|
+
* value.
|
1554
|
+
*/
|
1555
|
+
allow_alias: boolean;
|
1556
|
+
/**
|
1557
|
+
* Is this enum deprecated?
|
1558
|
+
* Depending on the target platform, this can emit Deprecated annotations
|
1559
|
+
* for the enum, or it will be completely ignored; in the very least, this
|
1560
|
+
* is a formalization for deprecating enums.
|
1561
|
+
*/
|
1562
|
+
|
1563
|
+
deprecated: boolean;
|
1564
|
+
/** The parser stores options it doesn't recognize here. See above. */
|
1565
|
+
|
1566
|
+
uninterpreted_option: UninterpretedOptionSDKType[];
|
1567
|
+
}
|
1568
|
+
export interface EnumValueOptions {
|
1569
|
+
/**
|
1570
|
+
* Is this enum value deprecated?
|
1571
|
+
* Depending on the target platform, this can emit Deprecated annotations
|
1572
|
+
* for the enum value, or it will be completely ignored; in the very least,
|
1573
|
+
* this is a formalization for deprecating enum values.
|
1574
|
+
*/
|
1575
|
+
deprecated: boolean;
|
1576
|
+
/** The parser stores options it doesn't recognize here. See above. */
|
1577
|
+
|
1578
|
+
uninterpretedOption: UninterpretedOption[];
|
1579
|
+
}
|
1580
|
+
export interface EnumValueOptionsSDKType {
|
1581
|
+
/**
|
1582
|
+
* Is this enum value deprecated?
|
1583
|
+
* Depending on the target platform, this can emit Deprecated annotations
|
1584
|
+
* for the enum value, or it will be completely ignored; in the very least,
|
1585
|
+
* this is a formalization for deprecating enum values.
|
1586
|
+
*/
|
1587
|
+
deprecated: boolean;
|
1588
|
+
/** The parser stores options it doesn't recognize here. See above. */
|
1589
|
+
|
1590
|
+
uninterpreted_option: UninterpretedOptionSDKType[];
|
1591
|
+
}
|
1592
|
+
export interface ServiceOptions {
|
1593
|
+
/**
|
1594
|
+
* Is this service deprecated?
|
1595
|
+
* Depending on the target platform, this can emit Deprecated annotations
|
1596
|
+
* for the service, or it will be completely ignored; in the very least,
|
1597
|
+
* this is a formalization for deprecating services.
|
1598
|
+
*/
|
1599
|
+
deprecated: boolean;
|
1600
|
+
/** The parser stores options it doesn't recognize here. See above. */
|
1601
|
+
|
1602
|
+
uninterpretedOption: UninterpretedOption[];
|
1603
|
+
}
|
1604
|
+
export interface ServiceOptionsSDKType {
|
1605
|
+
/**
|
1606
|
+
* Is this service deprecated?
|
1607
|
+
* Depending on the target platform, this can emit Deprecated annotations
|
1608
|
+
* for the service, or it will be completely ignored; in the very least,
|
1609
|
+
* this is a formalization for deprecating services.
|
1610
|
+
*/
|
1611
|
+
deprecated: boolean;
|
1612
|
+
/** The parser stores options it doesn't recognize here. See above. */
|
1613
|
+
|
1614
|
+
uninterpreted_option: UninterpretedOptionSDKType[];
|
1615
|
+
}
|
1616
|
+
export interface MethodOptions {
|
1617
|
+
/**
|
1618
|
+
* Is this method deprecated?
|
1619
|
+
* Depending on the target platform, this can emit Deprecated annotations
|
1620
|
+
* for the method, or it will be completely ignored; in the very least,
|
1621
|
+
* this is a formalization for deprecating methods.
|
1622
|
+
*/
|
1623
|
+
deprecated: boolean;
|
1624
|
+
idempotencyLevel: MethodOptions_IdempotencyLevel;
|
1625
|
+
/** The parser stores options it doesn't recognize here. See above. */
|
1626
|
+
|
1627
|
+
uninterpretedOption: UninterpretedOption[];
|
1628
|
+
}
|
1629
|
+
export interface MethodOptionsSDKType {
|
1630
|
+
/**
|
1631
|
+
* Is this method deprecated?
|
1632
|
+
* Depending on the target platform, this can emit Deprecated annotations
|
1633
|
+
* for the method, or it will be completely ignored; in the very least,
|
1634
|
+
* this is a formalization for deprecating methods.
|
1635
|
+
*/
|
1636
|
+
deprecated: boolean;
|
1637
|
+
idempotency_level: MethodOptions_IdempotencyLevelSDKType;
|
1638
|
+
/** The parser stores options it doesn't recognize here. See above. */
|
1639
|
+
|
1640
|
+
uninterpreted_option: UninterpretedOptionSDKType[];
|
1641
|
+
}
|
1642
|
+
/**
|
1643
|
+
* A message representing a option the parser does not recognize. This only
|
1644
|
+
* appears in options protos created by the compiler::Parser class.
|
1645
|
+
* DescriptorPool resolves these when building Descriptor objects. Therefore,
|
1646
|
+
* options protos in descriptor objects (e.g. returned by Descriptor::options(),
|
1647
|
+
* or produced by Descriptor::CopyTo()) will never have UninterpretedOptions
|
1648
|
+
* in them.
|
1649
|
+
*/
|
1650
|
+
|
1651
|
+
export interface UninterpretedOption {
|
1652
|
+
name: UninterpretedOption_NamePart[];
|
1653
|
+
/**
|
1654
|
+
* The value of the uninterpreted option, in whatever type the tokenizer
|
1655
|
+
* identified it as during parsing. Exactly one of these should be set.
|
1656
|
+
*/
|
1657
|
+
|
1658
|
+
identifierValue: string;
|
1659
|
+
positiveIntValue: Long;
|
1660
|
+
negativeIntValue: Long;
|
1661
|
+
doubleValue: number;
|
1662
|
+
stringValue: Uint8Array;
|
1663
|
+
aggregateValue: string;
|
1664
|
+
}
|
1665
|
+
/**
|
1666
|
+
* A message representing a option the parser does not recognize. This only
|
1667
|
+
* appears in options protos created by the compiler::Parser class.
|
1668
|
+
* DescriptorPool resolves these when building Descriptor objects. Therefore,
|
1669
|
+
* options protos in descriptor objects (e.g. returned by Descriptor::options(),
|
1670
|
+
* or produced by Descriptor::CopyTo()) will never have UninterpretedOptions
|
1671
|
+
* in them.
|
1672
|
+
*/
|
1673
|
+
|
1674
|
+
export interface UninterpretedOptionSDKType {
|
1675
|
+
name: UninterpretedOption_NamePartSDKType[];
|
1676
|
+
/**
|
1677
|
+
* The value of the uninterpreted option, in whatever type the tokenizer
|
1678
|
+
* identified it as during parsing. Exactly one of these should be set.
|
1679
|
+
*/
|
1680
|
+
|
1681
|
+
identifier_value: string;
|
1682
|
+
positive_int_value: Long;
|
1683
|
+
negative_int_value: Long;
|
1684
|
+
double_value: number;
|
1685
|
+
string_value: Uint8Array;
|
1686
|
+
aggregate_value: string;
|
1687
|
+
}
|
1688
|
+
/**
|
1689
|
+
* The name of the uninterpreted option. Each string represents a segment in
|
1690
|
+
* a dot-separated name. is_extension is true iff a segment represents an
|
1691
|
+
* extension (denoted with parentheses in options specs in .proto files).
|
1692
|
+
* E.g.,{ ["foo", false], ["bar.baz", true], ["qux", false] } represents
|
1693
|
+
* "foo.(bar.baz).qux".
|
1694
|
+
*/
|
1695
|
+
|
1696
|
+
export interface UninterpretedOption_NamePart {
|
1697
|
+
namePart: string;
|
1698
|
+
isExtension: boolean;
|
1699
|
+
}
|
1700
|
+
/**
|
1701
|
+
* The name of the uninterpreted option. Each string represents a segment in
|
1702
|
+
* a dot-separated name. is_extension is true iff a segment represents an
|
1703
|
+
* extension (denoted with parentheses in options specs in .proto files).
|
1704
|
+
* E.g.,{ ["foo", false], ["bar.baz", true], ["qux", false] } represents
|
1705
|
+
* "foo.(bar.baz).qux".
|
1706
|
+
*/
|
1707
|
+
|
1708
|
+
export interface UninterpretedOption_NamePartSDKType {
|
1709
|
+
name_part: string;
|
1710
|
+
is_extension: boolean;
|
1711
|
+
}
|
1712
|
+
/**
|
1713
|
+
* Encapsulates information about the original source file from which a
|
1714
|
+
* FileDescriptorProto was generated.
|
1715
|
+
*/
|
1716
|
+
|
1717
|
+
export interface SourceCodeInfo {
|
1718
|
+
/**
|
1719
|
+
* A Location identifies a piece of source code in a .proto file which
|
1720
|
+
* corresponds to a particular definition. This information is intended
|
1721
|
+
* to be useful to IDEs, code indexers, documentation generators, and similar
|
1722
|
+
* tools.
|
1723
|
+
*
|
1724
|
+
* For example, say we have a file like:
|
1725
|
+
* message Foo {
|
1726
|
+
* optional string foo = 1;
|
1727
|
+
* }
|
1728
|
+
* Let's look at just the field definition:
|
1729
|
+
* optional string foo = 1;
|
1730
|
+
* ^ ^^ ^^ ^ ^^^
|
1731
|
+
* a bc de f ghi
|
1732
|
+
* We have the following locations:
|
1733
|
+
* span path represents
|
1734
|
+
* [a,i) [ 4, 0, 2, 0 ] The whole field definition.
|
1735
|
+
* [a,b) [ 4, 0, 2, 0, 4 ] The label (optional).
|
1736
|
+
* [c,d) [ 4, 0, 2, 0, 5 ] The type (string).
|
1737
|
+
* [e,f) [ 4, 0, 2, 0, 1 ] The name (foo).
|
1738
|
+
* [g,h) [ 4, 0, 2, 0, 3 ] The number (1).
|
1739
|
+
*
|
1740
|
+
* Notes:
|
1741
|
+
* - A location may refer to a repeated field itself (i.e. not to any
|
1742
|
+
* particular index within it). This is used whenever a set of elements are
|
1743
|
+
* logically enclosed in a single code segment. For example, an entire
|
1744
|
+
* extend block (possibly containing multiple extension definitions) will
|
1745
|
+
* have an outer location whose path refers to the "extensions" repeated
|
1746
|
+
* field without an index.
|
1747
|
+
* - Multiple locations may have the same path. This happens when a single
|
1748
|
+
* logical declaration is spread out across multiple places. The most
|
1749
|
+
* obvious example is the "extend" block again -- there may be multiple
|
1750
|
+
* extend blocks in the same scope, each of which will have the same path.
|
1751
|
+
* - A location's span is not always a subset of its parent's span. For
|
1752
|
+
* example, the "extendee" of an extension declaration appears at the
|
1753
|
+
* beginning of the "extend" block and is shared by all extensions within
|
1754
|
+
* the block.
|
1755
|
+
* - Just because a location's span is a subset of some other location's span
|
1756
|
+
* does not mean that it is a descendant. For example, a "group" defines
|
1757
|
+
* both a type and a field in a single declaration. Thus, the locations
|
1758
|
+
* corresponding to the type and field and their components will overlap.
|
1759
|
+
* - Code which tries to interpret locations should probably be designed to
|
1760
|
+
* ignore those that it doesn't understand, as more types of locations could
|
1761
|
+
* be recorded in the future.
|
1762
|
+
*/
|
1763
|
+
location: SourceCodeInfo_Location[];
|
1764
|
+
}
|
1765
|
+
/**
|
1766
|
+
* Encapsulates information about the original source file from which a
|
1767
|
+
* FileDescriptorProto was generated.
|
1768
|
+
*/
|
1769
|
+
|
1770
|
+
export interface SourceCodeInfoSDKType {
|
1771
|
+
/**
|
1772
|
+
* A Location identifies a piece of source code in a .proto file which
|
1773
|
+
* corresponds to a particular definition. This information is intended
|
1774
|
+
* to be useful to IDEs, code indexers, documentation generators, and similar
|
1775
|
+
* tools.
|
1776
|
+
*
|
1777
|
+
* For example, say we have a file like:
|
1778
|
+
* message Foo {
|
1779
|
+
* optional string foo = 1;
|
1780
|
+
* }
|
1781
|
+
* Let's look at just the field definition:
|
1782
|
+
* optional string foo = 1;
|
1783
|
+
* ^ ^^ ^^ ^ ^^^
|
1784
|
+
* a bc de f ghi
|
1785
|
+
* We have the following locations:
|
1786
|
+
* span path represents
|
1787
|
+
* [a,i) [ 4, 0, 2, 0 ] The whole field definition.
|
1788
|
+
* [a,b) [ 4, 0, 2, 0, 4 ] The label (optional).
|
1789
|
+
* [c,d) [ 4, 0, 2, 0, 5 ] The type (string).
|
1790
|
+
* [e,f) [ 4, 0, 2, 0, 1 ] The name (foo).
|
1791
|
+
* [g,h) [ 4, 0, 2, 0, 3 ] The number (1).
|
1792
|
+
*
|
1793
|
+
* Notes:
|
1794
|
+
* - A location may refer to a repeated field itself (i.e. not to any
|
1795
|
+
* particular index within it). This is used whenever a set of elements are
|
1796
|
+
* logically enclosed in a single code segment. For example, an entire
|
1797
|
+
* extend block (possibly containing multiple extension definitions) will
|
1798
|
+
* have an outer location whose path refers to the "extensions" repeated
|
1799
|
+
* field without an index.
|
1800
|
+
* - Multiple locations may have the same path. This happens when a single
|
1801
|
+
* logical declaration is spread out across multiple places. The most
|
1802
|
+
* obvious example is the "extend" block again -- there may be multiple
|
1803
|
+
* extend blocks in the same scope, each of which will have the same path.
|
1804
|
+
* - A location's span is not always a subset of its parent's span. For
|
1805
|
+
* example, the "extendee" of an extension declaration appears at the
|
1806
|
+
* beginning of the "extend" block and is shared by all extensions within
|
1807
|
+
* the block.
|
1808
|
+
* - Just because a location's span is a subset of some other location's span
|
1809
|
+
* does not mean that it is a descendant. For example, a "group" defines
|
1810
|
+
* both a type and a field in a single declaration. Thus, the locations
|
1811
|
+
* corresponding to the type and field and their components will overlap.
|
1812
|
+
* - Code which tries to interpret locations should probably be designed to
|
1813
|
+
* ignore those that it doesn't understand, as more types of locations could
|
1814
|
+
* be recorded in the future.
|
1815
|
+
*/
|
1816
|
+
location: SourceCodeInfo_LocationSDKType[];
|
1817
|
+
}
|
1818
|
+
export interface SourceCodeInfo_Location {
|
1819
|
+
/**
|
1820
|
+
* Identifies which part of the FileDescriptorProto was defined at this
|
1821
|
+
* location.
|
1822
|
+
*
|
1823
|
+
* Each element is a field number or an index. They form a path from
|
1824
|
+
* the root FileDescriptorProto to the place where the definition. For
|
1825
|
+
* example, this path:
|
1826
|
+
* [ 4, 3, 2, 7, 1 ]
|
1827
|
+
* refers to:
|
1828
|
+
* file.message_type(3) // 4, 3
|
1829
|
+
* .field(7) // 2, 7
|
1830
|
+
* .name() // 1
|
1831
|
+
* This is because FileDescriptorProto.message_type has field number 4:
|
1832
|
+
* repeated DescriptorProto message_type = 4;
|
1833
|
+
* and DescriptorProto.field has field number 2:
|
1834
|
+
* repeated FieldDescriptorProto field = 2;
|
1835
|
+
* and FieldDescriptorProto.name has field number 1:
|
1836
|
+
* optional string name = 1;
|
1837
|
+
*
|
1838
|
+
* Thus, the above path gives the location of a field name. If we removed
|
1839
|
+
* the last element:
|
1840
|
+
* [ 4, 3, 2, 7 ]
|
1841
|
+
* this path refers to the whole field declaration (from the beginning
|
1842
|
+
* of the label to the terminating semicolon).
|
1843
|
+
*/
|
1844
|
+
path: number[];
|
1845
|
+
/**
|
1846
|
+
* Always has exactly three or four elements: start line, start column,
|
1847
|
+
* end line (optional, otherwise assumed same as start line), end column.
|
1848
|
+
* These are packed into a single field for efficiency. Note that line
|
1849
|
+
* and column numbers are zero-based -- typically you will want to add
|
1850
|
+
* 1 to each before displaying to a user.
|
1851
|
+
*/
|
1852
|
+
|
1853
|
+
span: number[];
|
1854
|
+
/**
|
1855
|
+
* If this SourceCodeInfo represents a complete declaration, these are any
|
1856
|
+
* comments appearing before and after the declaration which appear to be
|
1857
|
+
* attached to the declaration.
|
1858
|
+
*
|
1859
|
+
* A series of line comments appearing on consecutive lines, with no other
|
1860
|
+
* tokens appearing on those lines, will be treated as a single comment.
|
1861
|
+
*
|
1862
|
+
* leading_detached_comments will keep paragraphs of comments that appear
|
1863
|
+
* before (but not connected to) the current element. Each paragraph,
|
1864
|
+
* separated by empty lines, will be one comment element in the repeated
|
1865
|
+
* field.
|
1866
|
+
*
|
1867
|
+
* Only the comment content is provided; comment markers (e.g. //) are
|
1868
|
+
* stripped out. For block comments, leading whitespace and an asterisk
|
1869
|
+
* will be stripped from the beginning of each line other than the first.
|
1870
|
+
* Newlines are included in the output.
|
1871
|
+
*
|
1872
|
+
* Examples:
|
1873
|
+
*
|
1874
|
+
* optional int32 foo = 1; // Comment attached to foo.
|
1875
|
+
* // Comment attached to bar.
|
1876
|
+
* optional int32 bar = 2;
|
1877
|
+
*
|
1878
|
+
* optional string baz = 3;
|
1879
|
+
* // Comment attached to baz.
|
1880
|
+
* // Another line attached to baz.
|
1881
|
+
*
|
1882
|
+
* // Comment attached to qux.
|
1883
|
+
* //
|
1884
|
+
* // Another line attached to qux.
|
1885
|
+
* optional double qux = 4;
|
1886
|
+
*
|
1887
|
+
* // Detached comment for corge. This is not leading or trailing comments
|
1888
|
+
* // to qux or corge because there are blank lines separating it from
|
1889
|
+
* // both.
|
1890
|
+
*
|
1891
|
+
* // Detached comment for corge paragraph 2.
|
1892
|
+
*
|
1893
|
+
* optional string corge = 5;
|
1894
|
+
* /* Block comment attached
|
1895
|
+
* * to corge. Leading asterisks
|
1896
|
+
* * will be removed. *\/
|
1897
|
+
* /* Block comment attached to
|
1898
|
+
* * grault. *\/
|
1899
|
+
* optional int32 grault = 6;
|
1900
|
+
*
|
1901
|
+
* // ignored detached comments.
|
1902
|
+
*/
|
1903
|
+
|
1904
|
+
leadingComments: string;
|
1905
|
+
trailingComments: string;
|
1906
|
+
leadingDetachedComments: string[];
|
1907
|
+
}
|
1908
|
+
export interface SourceCodeInfo_LocationSDKType {
|
1909
|
+
/**
|
1910
|
+
* Identifies which part of the FileDescriptorProto was defined at this
|
1911
|
+
* location.
|
1912
|
+
*
|
1913
|
+
* Each element is a field number or an index. They form a path from
|
1914
|
+
* the root FileDescriptorProto to the place where the definition. For
|
1915
|
+
* example, this path:
|
1916
|
+
* [ 4, 3, 2, 7, 1 ]
|
1917
|
+
* refers to:
|
1918
|
+
* file.message_type(3) // 4, 3
|
1919
|
+
* .field(7) // 2, 7
|
1920
|
+
* .name() // 1
|
1921
|
+
* This is because FileDescriptorProto.message_type has field number 4:
|
1922
|
+
* repeated DescriptorProto message_type = 4;
|
1923
|
+
* and DescriptorProto.field has field number 2:
|
1924
|
+
* repeated FieldDescriptorProto field = 2;
|
1925
|
+
* and FieldDescriptorProto.name has field number 1:
|
1926
|
+
* optional string name = 1;
|
1927
|
+
*
|
1928
|
+
* Thus, the above path gives the location of a field name. If we removed
|
1929
|
+
* the last element:
|
1930
|
+
* [ 4, 3, 2, 7 ]
|
1931
|
+
* this path refers to the whole field declaration (from the beginning
|
1932
|
+
* of the label to the terminating semicolon).
|
1933
|
+
*/
|
1934
|
+
path: number[];
|
1935
|
+
/**
|
1936
|
+
* Always has exactly three or four elements: start line, start column,
|
1937
|
+
* end line (optional, otherwise assumed same as start line), end column.
|
1938
|
+
* These are packed into a single field for efficiency. Note that line
|
1939
|
+
* and column numbers are zero-based -- typically you will want to add
|
1940
|
+
* 1 to each before displaying to a user.
|
1941
|
+
*/
|
1942
|
+
|
1943
|
+
span: number[];
|
1944
|
+
/**
|
1945
|
+
* If this SourceCodeInfo represents a complete declaration, these are any
|
1946
|
+
* comments appearing before and after the declaration which appear to be
|
1947
|
+
* attached to the declaration.
|
1948
|
+
*
|
1949
|
+
* A series of line comments appearing on consecutive lines, with no other
|
1950
|
+
* tokens appearing on those lines, will be treated as a single comment.
|
1951
|
+
*
|
1952
|
+
* leading_detached_comments will keep paragraphs of comments that appear
|
1953
|
+
* before (but not connected to) the current element. Each paragraph,
|
1954
|
+
* separated by empty lines, will be one comment element in the repeated
|
1955
|
+
* field.
|
1956
|
+
*
|
1957
|
+
* Only the comment content is provided; comment markers (e.g. //) are
|
1958
|
+
* stripped out. For block comments, leading whitespace and an asterisk
|
1959
|
+
* will be stripped from the beginning of each line other than the first.
|
1960
|
+
* Newlines are included in the output.
|
1961
|
+
*
|
1962
|
+
* Examples:
|
1963
|
+
*
|
1964
|
+
* optional int32 foo = 1; // Comment attached to foo.
|
1965
|
+
* // Comment attached to bar.
|
1966
|
+
* optional int32 bar = 2;
|
1967
|
+
*
|
1968
|
+
* optional string baz = 3;
|
1969
|
+
* // Comment attached to baz.
|
1970
|
+
* // Another line attached to baz.
|
1971
|
+
*
|
1972
|
+
* // Comment attached to qux.
|
1973
|
+
* //
|
1974
|
+
* // Another line attached to qux.
|
1975
|
+
* optional double qux = 4;
|
1976
|
+
*
|
1977
|
+
* // Detached comment for corge. This is not leading or trailing comments
|
1978
|
+
* // to qux or corge because there are blank lines separating it from
|
1979
|
+
* // both.
|
1980
|
+
*
|
1981
|
+
* // Detached comment for corge paragraph 2.
|
1982
|
+
*
|
1983
|
+
* optional string corge = 5;
|
1984
|
+
* /* Block comment attached
|
1985
|
+
* * to corge. Leading asterisks
|
1986
|
+
* * will be removed. *\/
|
1987
|
+
* /* Block comment attached to
|
1988
|
+
* * grault. *\/
|
1989
|
+
* optional int32 grault = 6;
|
1990
|
+
*
|
1991
|
+
* // ignored detached comments.
|
1992
|
+
*/
|
1993
|
+
|
1994
|
+
leading_comments: string;
|
1995
|
+
trailing_comments: string;
|
1996
|
+
leading_detached_comments: string[];
|
1997
|
+
}
|
1998
|
+
/**
|
1999
|
+
* Describes the relationship between generated code and its original source
|
2000
|
+
* file. A GeneratedCodeInfo message is associated with only one generated
|
2001
|
+
* source file, but may contain references to different source .proto files.
|
2002
|
+
*/
|
2003
|
+
|
2004
|
+
export interface GeneratedCodeInfo {
|
2005
|
+
/**
|
2006
|
+
* An Annotation connects some span of text in generated code to an element
|
2007
|
+
* of its generating .proto file.
|
2008
|
+
*/
|
2009
|
+
annotation: GeneratedCodeInfo_Annotation[];
|
2010
|
+
}
|
2011
|
+
/**
|
2012
|
+
* Describes the relationship between generated code and its original source
|
2013
|
+
* file. A GeneratedCodeInfo message is associated with only one generated
|
2014
|
+
* source file, but may contain references to different source .proto files.
|
2015
|
+
*/
|
2016
|
+
|
2017
|
+
export interface GeneratedCodeInfoSDKType {
|
2018
|
+
/**
|
2019
|
+
* An Annotation connects some span of text in generated code to an element
|
2020
|
+
* of its generating .proto file.
|
2021
|
+
*/
|
2022
|
+
annotation: GeneratedCodeInfo_AnnotationSDKType[];
|
2023
|
+
}
|
2024
|
+
export interface GeneratedCodeInfo_Annotation {
|
2025
|
+
/**
|
2026
|
+
* Identifies the element in the original source .proto file. This field
|
2027
|
+
* is formatted the same as SourceCodeInfo.Location.path.
|
2028
|
+
*/
|
2029
|
+
path: number[];
|
2030
|
+
/** Identifies the filesystem path to the original source .proto. */
|
2031
|
+
|
2032
|
+
sourceFile: string;
|
2033
|
+
/**
|
2034
|
+
* Identifies the starting offset in bytes in the generated code
|
2035
|
+
* that relates to the identified object.
|
2036
|
+
*/
|
2037
|
+
|
2038
|
+
begin: number;
|
2039
|
+
/**
|
2040
|
+
* Identifies the ending offset in bytes in the generated code that
|
2041
|
+
* relates to the identified offset. The end offset should be one past
|
2042
|
+
* the last relevant byte (so the length of the text = end - begin).
|
2043
|
+
*/
|
2044
|
+
|
2045
|
+
end: number;
|
2046
|
+
}
|
2047
|
+
export interface GeneratedCodeInfo_AnnotationSDKType {
|
2048
|
+
/**
|
2049
|
+
* Identifies the element in the original source .proto file. This field
|
2050
|
+
* is formatted the same as SourceCodeInfo.Location.path.
|
2051
|
+
*/
|
2052
|
+
path: number[];
|
2053
|
+
/** Identifies the filesystem path to the original source .proto. */
|
2054
|
+
|
2055
|
+
source_file: string;
|
2056
|
+
/**
|
2057
|
+
* Identifies the starting offset in bytes in the generated code
|
2058
|
+
* that relates to the identified object.
|
2059
|
+
*/
|
2060
|
+
|
2061
|
+
begin: number;
|
2062
|
+
/**
|
2063
|
+
* Identifies the ending offset in bytes in the generated code that
|
2064
|
+
* relates to the identified offset. The end offset should be one past
|
2065
|
+
* the last relevant byte (so the length of the text = end - begin).
|
2066
|
+
*/
|
2067
|
+
|
2068
|
+
end: number;
|
2069
|
+
}
|
2070
|
+
|
2071
|
+
function createBaseFileDescriptorSet(): FileDescriptorSet {
|
2072
|
+
return {
|
2073
|
+
file: []
|
2074
|
+
};
|
2075
|
+
}
|
2076
|
+
|
2077
|
+
export const FileDescriptorSet = {
|
2078
|
+
encode(message: FileDescriptorSet, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
2079
|
+
for (const v of message.file) {
|
2080
|
+
FileDescriptorProto.encode(v!, writer.uint32(10).fork()).ldelim();
|
2081
|
+
}
|
2082
|
+
|
2083
|
+
return writer;
|
2084
|
+
},
|
2085
|
+
|
2086
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): FileDescriptorSet {
|
2087
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
2088
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
2089
|
+
const message = createBaseFileDescriptorSet();
|
2090
|
+
|
2091
|
+
while (reader.pos < end) {
|
2092
|
+
const tag = reader.uint32();
|
2093
|
+
|
2094
|
+
switch (tag >>> 3) {
|
2095
|
+
case 1:
|
2096
|
+
message.file.push(FileDescriptorProto.decode(reader, reader.uint32()));
|
2097
|
+
break;
|
2098
|
+
|
2099
|
+
default:
|
2100
|
+
reader.skipType(tag & 7);
|
2101
|
+
break;
|
2102
|
+
}
|
2103
|
+
}
|
2104
|
+
|
2105
|
+
return message;
|
2106
|
+
},
|
2107
|
+
|
2108
|
+
fromPartial(object: DeepPartial<FileDescriptorSet>): FileDescriptorSet {
|
2109
|
+
const message = createBaseFileDescriptorSet();
|
2110
|
+
message.file = object.file?.map(e => FileDescriptorProto.fromPartial(e)) || [];
|
2111
|
+
return message;
|
2112
|
+
}
|
2113
|
+
|
2114
|
+
};
|
2115
|
+
|
2116
|
+
function createBaseFileDescriptorProto(): FileDescriptorProto {
|
2117
|
+
return {
|
2118
|
+
name: "",
|
2119
|
+
package: "",
|
2120
|
+
dependency: [],
|
2121
|
+
publicDependency: [],
|
2122
|
+
weakDependency: [],
|
2123
|
+
messageType: [],
|
2124
|
+
enumType: [],
|
2125
|
+
service: [],
|
2126
|
+
extension: [],
|
2127
|
+
options: undefined,
|
2128
|
+
sourceCodeInfo: undefined,
|
2129
|
+
syntax: ""
|
2130
|
+
};
|
2131
|
+
}
|
2132
|
+
|
2133
|
+
export const FileDescriptorProto = {
|
2134
|
+
encode(message: FileDescriptorProto, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
2135
|
+
if (message.name !== "") {
|
2136
|
+
writer.uint32(10).string(message.name);
|
2137
|
+
}
|
2138
|
+
|
2139
|
+
if (message.package !== "") {
|
2140
|
+
writer.uint32(18).string(message.package);
|
2141
|
+
}
|
2142
|
+
|
2143
|
+
for (const v of message.dependency) {
|
2144
|
+
writer.uint32(26).string(v!);
|
2145
|
+
}
|
2146
|
+
|
2147
|
+
writer.uint32(82).fork();
|
2148
|
+
|
2149
|
+
for (const v of message.publicDependency) {
|
2150
|
+
writer.int32(v);
|
2151
|
+
}
|
2152
|
+
|
2153
|
+
writer.ldelim();
|
2154
|
+
writer.uint32(90).fork();
|
2155
|
+
|
2156
|
+
for (const v of message.weakDependency) {
|
2157
|
+
writer.int32(v);
|
2158
|
+
}
|
2159
|
+
|
2160
|
+
writer.ldelim();
|
2161
|
+
|
2162
|
+
for (const v of message.messageType) {
|
2163
|
+
DescriptorProto.encode(v!, writer.uint32(34).fork()).ldelim();
|
2164
|
+
}
|
2165
|
+
|
2166
|
+
for (const v of message.enumType) {
|
2167
|
+
EnumDescriptorProto.encode(v!, writer.uint32(42).fork()).ldelim();
|
2168
|
+
}
|
2169
|
+
|
2170
|
+
for (const v of message.service) {
|
2171
|
+
ServiceDescriptorProto.encode(v!, writer.uint32(50).fork()).ldelim();
|
2172
|
+
}
|
2173
|
+
|
2174
|
+
for (const v of message.extension) {
|
2175
|
+
FieldDescriptorProto.encode(v!, writer.uint32(58).fork()).ldelim();
|
2176
|
+
}
|
2177
|
+
|
2178
|
+
if (message.options !== undefined) {
|
2179
|
+
FileOptions.encode(message.options, writer.uint32(66).fork()).ldelim();
|
2180
|
+
}
|
2181
|
+
|
2182
|
+
if (message.sourceCodeInfo !== undefined) {
|
2183
|
+
SourceCodeInfo.encode(message.sourceCodeInfo, writer.uint32(74).fork()).ldelim();
|
2184
|
+
}
|
2185
|
+
|
2186
|
+
if (message.syntax !== "") {
|
2187
|
+
writer.uint32(98).string(message.syntax);
|
2188
|
+
}
|
2189
|
+
|
2190
|
+
return writer;
|
2191
|
+
},
|
2192
|
+
|
2193
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): FileDescriptorProto {
|
2194
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
2195
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
2196
|
+
const message = createBaseFileDescriptorProto();
|
2197
|
+
|
2198
|
+
while (reader.pos < end) {
|
2199
|
+
const tag = reader.uint32();
|
2200
|
+
|
2201
|
+
switch (tag >>> 3) {
|
2202
|
+
case 1:
|
2203
|
+
message.name = reader.string();
|
2204
|
+
break;
|
2205
|
+
|
2206
|
+
case 2:
|
2207
|
+
message.package = reader.string();
|
2208
|
+
break;
|
2209
|
+
|
2210
|
+
case 3:
|
2211
|
+
message.dependency.push(reader.string());
|
2212
|
+
break;
|
2213
|
+
|
2214
|
+
case 10:
|
2215
|
+
if ((tag & 7) === 2) {
|
2216
|
+
const end2 = reader.uint32() + reader.pos;
|
2217
|
+
|
2218
|
+
while (reader.pos < end2) {
|
2219
|
+
message.publicDependency.push(reader.int32());
|
2220
|
+
}
|
2221
|
+
} else {
|
2222
|
+
message.publicDependency.push(reader.int32());
|
2223
|
+
}
|
2224
|
+
|
2225
|
+
break;
|
2226
|
+
|
2227
|
+
case 11:
|
2228
|
+
if ((tag & 7) === 2) {
|
2229
|
+
const end2 = reader.uint32() + reader.pos;
|
2230
|
+
|
2231
|
+
while (reader.pos < end2) {
|
2232
|
+
message.weakDependency.push(reader.int32());
|
2233
|
+
}
|
2234
|
+
} else {
|
2235
|
+
message.weakDependency.push(reader.int32());
|
2236
|
+
}
|
2237
|
+
|
2238
|
+
break;
|
2239
|
+
|
2240
|
+
case 4:
|
2241
|
+
message.messageType.push(DescriptorProto.decode(reader, reader.uint32()));
|
2242
|
+
break;
|
2243
|
+
|
2244
|
+
case 5:
|
2245
|
+
message.enumType.push(EnumDescriptorProto.decode(reader, reader.uint32()));
|
2246
|
+
break;
|
2247
|
+
|
2248
|
+
case 6:
|
2249
|
+
message.service.push(ServiceDescriptorProto.decode(reader, reader.uint32()));
|
2250
|
+
break;
|
2251
|
+
|
2252
|
+
case 7:
|
2253
|
+
message.extension.push(FieldDescriptorProto.decode(reader, reader.uint32()));
|
2254
|
+
break;
|
2255
|
+
|
2256
|
+
case 8:
|
2257
|
+
message.options = FileOptions.decode(reader, reader.uint32());
|
2258
|
+
break;
|
2259
|
+
|
2260
|
+
case 9:
|
2261
|
+
message.sourceCodeInfo = SourceCodeInfo.decode(reader, reader.uint32());
|
2262
|
+
break;
|
2263
|
+
|
2264
|
+
case 12:
|
2265
|
+
message.syntax = reader.string();
|
2266
|
+
break;
|
2267
|
+
|
2268
|
+
default:
|
2269
|
+
reader.skipType(tag & 7);
|
2270
|
+
break;
|
2271
|
+
}
|
2272
|
+
}
|
2273
|
+
|
2274
|
+
return message;
|
2275
|
+
},
|
2276
|
+
|
2277
|
+
fromPartial(object: DeepPartial<FileDescriptorProto>): FileDescriptorProto {
|
2278
|
+
const message = createBaseFileDescriptorProto();
|
2279
|
+
message.name = object.name ?? "";
|
2280
|
+
message.package = object.package ?? "";
|
2281
|
+
message.dependency = object.dependency?.map(e => e) || [];
|
2282
|
+
message.publicDependency = object.publicDependency?.map(e => e) || [];
|
2283
|
+
message.weakDependency = object.weakDependency?.map(e => e) || [];
|
2284
|
+
message.messageType = object.messageType?.map(e => DescriptorProto.fromPartial(e)) || [];
|
2285
|
+
message.enumType = object.enumType?.map(e => EnumDescriptorProto.fromPartial(e)) || [];
|
2286
|
+
message.service = object.service?.map(e => ServiceDescriptorProto.fromPartial(e)) || [];
|
2287
|
+
message.extension = object.extension?.map(e => FieldDescriptorProto.fromPartial(e)) || [];
|
2288
|
+
message.options = object.options !== undefined && object.options !== null ? FileOptions.fromPartial(object.options) : undefined;
|
2289
|
+
message.sourceCodeInfo = object.sourceCodeInfo !== undefined && object.sourceCodeInfo !== null ? SourceCodeInfo.fromPartial(object.sourceCodeInfo) : undefined;
|
2290
|
+
message.syntax = object.syntax ?? "";
|
2291
|
+
return message;
|
2292
|
+
}
|
2293
|
+
|
2294
|
+
};
|
2295
|
+
|
2296
|
+
function createBaseDescriptorProto(): DescriptorProto {
|
2297
|
+
return {
|
2298
|
+
name: "",
|
2299
|
+
field: [],
|
2300
|
+
extension: [],
|
2301
|
+
nestedType: [],
|
2302
|
+
enumType: [],
|
2303
|
+
extensionRange: [],
|
2304
|
+
oneofDecl: [],
|
2305
|
+
options: undefined,
|
2306
|
+
reservedRange: [],
|
2307
|
+
reservedName: []
|
2308
|
+
};
|
2309
|
+
}
|
2310
|
+
|
2311
|
+
export const DescriptorProto = {
|
2312
|
+
encode(message: DescriptorProto, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
2313
|
+
if (message.name !== "") {
|
2314
|
+
writer.uint32(10).string(message.name);
|
2315
|
+
}
|
2316
|
+
|
2317
|
+
for (const v of message.field) {
|
2318
|
+
FieldDescriptorProto.encode(v!, writer.uint32(18).fork()).ldelim();
|
2319
|
+
}
|
2320
|
+
|
2321
|
+
for (const v of message.extension) {
|
2322
|
+
FieldDescriptorProto.encode(v!, writer.uint32(50).fork()).ldelim();
|
2323
|
+
}
|
2324
|
+
|
2325
|
+
for (const v of message.nestedType) {
|
2326
|
+
DescriptorProto.encode(v!, writer.uint32(26).fork()).ldelim();
|
2327
|
+
}
|
2328
|
+
|
2329
|
+
for (const v of message.enumType) {
|
2330
|
+
EnumDescriptorProto.encode(v!, writer.uint32(34).fork()).ldelim();
|
2331
|
+
}
|
2332
|
+
|
2333
|
+
for (const v of message.extensionRange) {
|
2334
|
+
DescriptorProto_ExtensionRange.encode(v!, writer.uint32(42).fork()).ldelim();
|
2335
|
+
}
|
2336
|
+
|
2337
|
+
for (const v of message.oneofDecl) {
|
2338
|
+
OneofDescriptorProto.encode(v!, writer.uint32(66).fork()).ldelim();
|
2339
|
+
}
|
2340
|
+
|
2341
|
+
if (message.options !== undefined) {
|
2342
|
+
MessageOptions.encode(message.options, writer.uint32(58).fork()).ldelim();
|
2343
|
+
}
|
2344
|
+
|
2345
|
+
for (const v of message.reservedRange) {
|
2346
|
+
DescriptorProto_ReservedRange.encode(v!, writer.uint32(74).fork()).ldelim();
|
2347
|
+
}
|
2348
|
+
|
2349
|
+
for (const v of message.reservedName) {
|
2350
|
+
writer.uint32(82).string(v!);
|
2351
|
+
}
|
2352
|
+
|
2353
|
+
return writer;
|
2354
|
+
},
|
2355
|
+
|
2356
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): DescriptorProto {
|
2357
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
2358
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
2359
|
+
const message = createBaseDescriptorProto();
|
2360
|
+
|
2361
|
+
while (reader.pos < end) {
|
2362
|
+
const tag = reader.uint32();
|
2363
|
+
|
2364
|
+
switch (tag >>> 3) {
|
2365
|
+
case 1:
|
2366
|
+
message.name = reader.string();
|
2367
|
+
break;
|
2368
|
+
|
2369
|
+
case 2:
|
2370
|
+
message.field.push(FieldDescriptorProto.decode(reader, reader.uint32()));
|
2371
|
+
break;
|
2372
|
+
|
2373
|
+
case 6:
|
2374
|
+
message.extension.push(FieldDescriptorProto.decode(reader, reader.uint32()));
|
2375
|
+
break;
|
2376
|
+
|
2377
|
+
case 3:
|
2378
|
+
message.nestedType.push(DescriptorProto.decode(reader, reader.uint32()));
|
2379
|
+
break;
|
2380
|
+
|
2381
|
+
case 4:
|
2382
|
+
message.enumType.push(EnumDescriptorProto.decode(reader, reader.uint32()));
|
2383
|
+
break;
|
2384
|
+
|
2385
|
+
case 5:
|
2386
|
+
message.extensionRange.push(DescriptorProto_ExtensionRange.decode(reader, reader.uint32()));
|
2387
|
+
break;
|
2388
|
+
|
2389
|
+
case 8:
|
2390
|
+
message.oneofDecl.push(OneofDescriptorProto.decode(reader, reader.uint32()));
|
2391
|
+
break;
|
2392
|
+
|
2393
|
+
case 7:
|
2394
|
+
message.options = MessageOptions.decode(reader, reader.uint32());
|
2395
|
+
break;
|
2396
|
+
|
2397
|
+
case 9:
|
2398
|
+
message.reservedRange.push(DescriptorProto_ReservedRange.decode(reader, reader.uint32()));
|
2399
|
+
break;
|
2400
|
+
|
2401
|
+
case 10:
|
2402
|
+
message.reservedName.push(reader.string());
|
2403
|
+
break;
|
2404
|
+
|
2405
|
+
default:
|
2406
|
+
reader.skipType(tag & 7);
|
2407
|
+
break;
|
2408
|
+
}
|
2409
|
+
}
|
2410
|
+
|
2411
|
+
return message;
|
2412
|
+
},
|
2413
|
+
|
2414
|
+
fromPartial(object: DeepPartial<DescriptorProto>): DescriptorProto {
|
2415
|
+
const message = createBaseDescriptorProto();
|
2416
|
+
message.name = object.name ?? "";
|
2417
|
+
message.field = object.field?.map(e => FieldDescriptorProto.fromPartial(e)) || [];
|
2418
|
+
message.extension = object.extension?.map(e => FieldDescriptorProto.fromPartial(e)) || [];
|
2419
|
+
message.nestedType = object.nestedType?.map(e => DescriptorProto.fromPartial(e)) || [];
|
2420
|
+
message.enumType = object.enumType?.map(e => EnumDescriptorProto.fromPartial(e)) || [];
|
2421
|
+
message.extensionRange = object.extensionRange?.map(e => DescriptorProto_ExtensionRange.fromPartial(e)) || [];
|
2422
|
+
message.oneofDecl = object.oneofDecl?.map(e => OneofDescriptorProto.fromPartial(e)) || [];
|
2423
|
+
message.options = object.options !== undefined && object.options !== null ? MessageOptions.fromPartial(object.options) : undefined;
|
2424
|
+
message.reservedRange = object.reservedRange?.map(e => DescriptorProto_ReservedRange.fromPartial(e)) || [];
|
2425
|
+
message.reservedName = object.reservedName?.map(e => e) || [];
|
2426
|
+
return message;
|
2427
|
+
}
|
2428
|
+
|
2429
|
+
};
|
2430
|
+
|
2431
|
+
function createBaseDescriptorProto_ExtensionRange(): DescriptorProto_ExtensionRange {
|
2432
|
+
return {
|
2433
|
+
start: 0,
|
2434
|
+
end: 0,
|
2435
|
+
options: undefined
|
2436
|
+
};
|
2437
|
+
}
|
2438
|
+
|
2439
|
+
export const DescriptorProto_ExtensionRange = {
|
2440
|
+
encode(message: DescriptorProto_ExtensionRange, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
2441
|
+
if (message.start !== 0) {
|
2442
|
+
writer.uint32(8).int32(message.start);
|
2443
|
+
}
|
2444
|
+
|
2445
|
+
if (message.end !== 0) {
|
2446
|
+
writer.uint32(16).int32(message.end);
|
2447
|
+
}
|
2448
|
+
|
2449
|
+
if (message.options !== undefined) {
|
2450
|
+
ExtensionRangeOptions.encode(message.options, writer.uint32(26).fork()).ldelim();
|
2451
|
+
}
|
2452
|
+
|
2453
|
+
return writer;
|
2454
|
+
},
|
2455
|
+
|
2456
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): DescriptorProto_ExtensionRange {
|
2457
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
2458
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
2459
|
+
const message = createBaseDescriptorProto_ExtensionRange();
|
2460
|
+
|
2461
|
+
while (reader.pos < end) {
|
2462
|
+
const tag = reader.uint32();
|
2463
|
+
|
2464
|
+
switch (tag >>> 3) {
|
2465
|
+
case 1:
|
2466
|
+
message.start = reader.int32();
|
2467
|
+
break;
|
2468
|
+
|
2469
|
+
case 2:
|
2470
|
+
message.end = reader.int32();
|
2471
|
+
break;
|
2472
|
+
|
2473
|
+
case 3:
|
2474
|
+
message.options = ExtensionRangeOptions.decode(reader, reader.uint32());
|
2475
|
+
break;
|
2476
|
+
|
2477
|
+
default:
|
2478
|
+
reader.skipType(tag & 7);
|
2479
|
+
break;
|
2480
|
+
}
|
2481
|
+
}
|
2482
|
+
|
2483
|
+
return message;
|
2484
|
+
},
|
2485
|
+
|
2486
|
+
fromPartial(object: DeepPartial<DescriptorProto_ExtensionRange>): DescriptorProto_ExtensionRange {
|
2487
|
+
const message = createBaseDescriptorProto_ExtensionRange();
|
2488
|
+
message.start = object.start ?? 0;
|
2489
|
+
message.end = object.end ?? 0;
|
2490
|
+
message.options = object.options !== undefined && object.options !== null ? ExtensionRangeOptions.fromPartial(object.options) : undefined;
|
2491
|
+
return message;
|
2492
|
+
}
|
2493
|
+
|
2494
|
+
};
|
2495
|
+
|
2496
|
+
function createBaseDescriptorProto_ReservedRange(): DescriptorProto_ReservedRange {
|
2497
|
+
return {
|
2498
|
+
start: 0,
|
2499
|
+
end: 0
|
2500
|
+
};
|
2501
|
+
}
|
2502
|
+
|
2503
|
+
export const DescriptorProto_ReservedRange = {
|
2504
|
+
encode(message: DescriptorProto_ReservedRange, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
2505
|
+
if (message.start !== 0) {
|
2506
|
+
writer.uint32(8).int32(message.start);
|
2507
|
+
}
|
2508
|
+
|
2509
|
+
if (message.end !== 0) {
|
2510
|
+
writer.uint32(16).int32(message.end);
|
2511
|
+
}
|
2512
|
+
|
2513
|
+
return writer;
|
2514
|
+
},
|
2515
|
+
|
2516
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): DescriptorProto_ReservedRange {
|
2517
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
2518
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
2519
|
+
const message = createBaseDescriptorProto_ReservedRange();
|
2520
|
+
|
2521
|
+
while (reader.pos < end) {
|
2522
|
+
const tag = reader.uint32();
|
2523
|
+
|
2524
|
+
switch (tag >>> 3) {
|
2525
|
+
case 1:
|
2526
|
+
message.start = reader.int32();
|
2527
|
+
break;
|
2528
|
+
|
2529
|
+
case 2:
|
2530
|
+
message.end = reader.int32();
|
2531
|
+
break;
|
2532
|
+
|
2533
|
+
default:
|
2534
|
+
reader.skipType(tag & 7);
|
2535
|
+
break;
|
2536
|
+
}
|
2537
|
+
}
|
2538
|
+
|
2539
|
+
return message;
|
2540
|
+
},
|
2541
|
+
|
2542
|
+
fromPartial(object: DeepPartial<DescriptorProto_ReservedRange>): DescriptorProto_ReservedRange {
|
2543
|
+
const message = createBaseDescriptorProto_ReservedRange();
|
2544
|
+
message.start = object.start ?? 0;
|
2545
|
+
message.end = object.end ?? 0;
|
2546
|
+
return message;
|
2547
|
+
}
|
2548
|
+
|
2549
|
+
};
|
2550
|
+
|
2551
|
+
function createBaseExtensionRangeOptions(): ExtensionRangeOptions {
|
2552
|
+
return {
|
2553
|
+
uninterpretedOption: []
|
2554
|
+
};
|
2555
|
+
}
|
2556
|
+
|
2557
|
+
export const ExtensionRangeOptions = {
|
2558
|
+
encode(message: ExtensionRangeOptions, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
2559
|
+
for (const v of message.uninterpretedOption) {
|
2560
|
+
UninterpretedOption.encode(v!, writer.uint32(7994).fork()).ldelim();
|
2561
|
+
}
|
2562
|
+
|
2563
|
+
return writer;
|
2564
|
+
},
|
2565
|
+
|
2566
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): ExtensionRangeOptions {
|
2567
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
2568
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
2569
|
+
const message = createBaseExtensionRangeOptions();
|
2570
|
+
|
2571
|
+
while (reader.pos < end) {
|
2572
|
+
const tag = reader.uint32();
|
2573
|
+
|
2574
|
+
switch (tag >>> 3) {
|
2575
|
+
case 999:
|
2576
|
+
message.uninterpretedOption.push(UninterpretedOption.decode(reader, reader.uint32()));
|
2577
|
+
break;
|
2578
|
+
|
2579
|
+
default:
|
2580
|
+
reader.skipType(tag & 7);
|
2581
|
+
break;
|
2582
|
+
}
|
2583
|
+
}
|
2584
|
+
|
2585
|
+
return message;
|
2586
|
+
},
|
2587
|
+
|
2588
|
+
fromPartial(object: DeepPartial<ExtensionRangeOptions>): ExtensionRangeOptions {
|
2589
|
+
const message = createBaseExtensionRangeOptions();
|
2590
|
+
message.uninterpretedOption = object.uninterpretedOption?.map(e => UninterpretedOption.fromPartial(e)) || [];
|
2591
|
+
return message;
|
2592
|
+
}
|
2593
|
+
|
2594
|
+
};
|
2595
|
+
|
2596
|
+
function createBaseFieldDescriptorProto(): FieldDescriptorProto {
|
2597
|
+
return {
|
2598
|
+
name: "",
|
2599
|
+
number: 0,
|
2600
|
+
label: 0,
|
2601
|
+
type: 0,
|
2602
|
+
typeName: "",
|
2603
|
+
extendee: "",
|
2604
|
+
defaultValue: "",
|
2605
|
+
oneofIndex: 0,
|
2606
|
+
jsonName: "",
|
2607
|
+
options: undefined
|
2608
|
+
};
|
2609
|
+
}
|
2610
|
+
|
2611
|
+
export const FieldDescriptorProto = {
|
2612
|
+
encode(message: FieldDescriptorProto, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
2613
|
+
if (message.name !== "") {
|
2614
|
+
writer.uint32(10).string(message.name);
|
2615
|
+
}
|
2616
|
+
|
2617
|
+
if (message.number !== 0) {
|
2618
|
+
writer.uint32(24).int32(message.number);
|
2619
|
+
}
|
2620
|
+
|
2621
|
+
if (message.label !== 0) {
|
2622
|
+
writer.uint32(32).int32(message.label);
|
2623
|
+
}
|
2624
|
+
|
2625
|
+
if (message.type !== 0) {
|
2626
|
+
writer.uint32(40).int32(message.type);
|
2627
|
+
}
|
2628
|
+
|
2629
|
+
if (message.typeName !== "") {
|
2630
|
+
writer.uint32(50).string(message.typeName);
|
2631
|
+
}
|
2632
|
+
|
2633
|
+
if (message.extendee !== "") {
|
2634
|
+
writer.uint32(18).string(message.extendee);
|
2635
|
+
}
|
2636
|
+
|
2637
|
+
if (message.defaultValue !== "") {
|
2638
|
+
writer.uint32(58).string(message.defaultValue);
|
2639
|
+
}
|
2640
|
+
|
2641
|
+
if (message.oneofIndex !== 0) {
|
2642
|
+
writer.uint32(72).int32(message.oneofIndex);
|
2643
|
+
}
|
2644
|
+
|
2645
|
+
if (message.jsonName !== "") {
|
2646
|
+
writer.uint32(82).string(message.jsonName);
|
2647
|
+
}
|
2648
|
+
|
2649
|
+
if (message.options !== undefined) {
|
2650
|
+
FieldOptions.encode(message.options, writer.uint32(66).fork()).ldelim();
|
2651
|
+
}
|
2652
|
+
|
2653
|
+
return writer;
|
2654
|
+
},
|
2655
|
+
|
2656
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): FieldDescriptorProto {
|
2657
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
2658
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
2659
|
+
const message = createBaseFieldDescriptorProto();
|
2660
|
+
|
2661
|
+
while (reader.pos < end) {
|
2662
|
+
const tag = reader.uint32();
|
2663
|
+
|
2664
|
+
switch (tag >>> 3) {
|
2665
|
+
case 1:
|
2666
|
+
message.name = reader.string();
|
2667
|
+
break;
|
2668
|
+
|
2669
|
+
case 3:
|
2670
|
+
message.number = reader.int32();
|
2671
|
+
break;
|
2672
|
+
|
2673
|
+
case 4:
|
2674
|
+
message.label = (reader.int32() as any);
|
2675
|
+
break;
|
2676
|
+
|
2677
|
+
case 5:
|
2678
|
+
message.type = (reader.int32() as any);
|
2679
|
+
break;
|
2680
|
+
|
2681
|
+
case 6:
|
2682
|
+
message.typeName = reader.string();
|
2683
|
+
break;
|
2684
|
+
|
2685
|
+
case 2:
|
2686
|
+
message.extendee = reader.string();
|
2687
|
+
break;
|
2688
|
+
|
2689
|
+
case 7:
|
2690
|
+
message.defaultValue = reader.string();
|
2691
|
+
break;
|
2692
|
+
|
2693
|
+
case 9:
|
2694
|
+
message.oneofIndex = reader.int32();
|
2695
|
+
break;
|
2696
|
+
|
2697
|
+
case 10:
|
2698
|
+
message.jsonName = reader.string();
|
2699
|
+
break;
|
2700
|
+
|
2701
|
+
case 8:
|
2702
|
+
message.options = FieldOptions.decode(reader, reader.uint32());
|
2703
|
+
break;
|
2704
|
+
|
2705
|
+
default:
|
2706
|
+
reader.skipType(tag & 7);
|
2707
|
+
break;
|
2708
|
+
}
|
2709
|
+
}
|
2710
|
+
|
2711
|
+
return message;
|
2712
|
+
},
|
2713
|
+
|
2714
|
+
fromPartial(object: DeepPartial<FieldDescriptorProto>): FieldDescriptorProto {
|
2715
|
+
const message = createBaseFieldDescriptorProto();
|
2716
|
+
message.name = object.name ?? "";
|
2717
|
+
message.number = object.number ?? 0;
|
2718
|
+
message.label = object.label ?? 0;
|
2719
|
+
message.type = object.type ?? 0;
|
2720
|
+
message.typeName = object.typeName ?? "";
|
2721
|
+
message.extendee = object.extendee ?? "";
|
2722
|
+
message.defaultValue = object.defaultValue ?? "";
|
2723
|
+
message.oneofIndex = object.oneofIndex ?? 0;
|
2724
|
+
message.jsonName = object.jsonName ?? "";
|
2725
|
+
message.options = object.options !== undefined && object.options !== null ? FieldOptions.fromPartial(object.options) : undefined;
|
2726
|
+
return message;
|
2727
|
+
}
|
2728
|
+
|
2729
|
+
};
|
2730
|
+
|
2731
|
+
function createBaseOneofDescriptorProto(): OneofDescriptorProto {
|
2732
|
+
return {
|
2733
|
+
name: "",
|
2734
|
+
options: undefined
|
2735
|
+
};
|
2736
|
+
}
|
2737
|
+
|
2738
|
+
export const OneofDescriptorProto = {
|
2739
|
+
encode(message: OneofDescriptorProto, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
2740
|
+
if (message.name !== "") {
|
2741
|
+
writer.uint32(10).string(message.name);
|
2742
|
+
}
|
2743
|
+
|
2744
|
+
if (message.options !== undefined) {
|
2745
|
+
OneofOptions.encode(message.options, writer.uint32(18).fork()).ldelim();
|
2746
|
+
}
|
2747
|
+
|
2748
|
+
return writer;
|
2749
|
+
},
|
2750
|
+
|
2751
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): OneofDescriptorProto {
|
2752
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
2753
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
2754
|
+
const message = createBaseOneofDescriptorProto();
|
2755
|
+
|
2756
|
+
while (reader.pos < end) {
|
2757
|
+
const tag = reader.uint32();
|
2758
|
+
|
2759
|
+
switch (tag >>> 3) {
|
2760
|
+
case 1:
|
2761
|
+
message.name = reader.string();
|
2762
|
+
break;
|
2763
|
+
|
2764
|
+
case 2:
|
2765
|
+
message.options = OneofOptions.decode(reader, reader.uint32());
|
2766
|
+
break;
|
2767
|
+
|
2768
|
+
default:
|
2769
|
+
reader.skipType(tag & 7);
|
2770
|
+
break;
|
2771
|
+
}
|
2772
|
+
}
|
2773
|
+
|
2774
|
+
return message;
|
2775
|
+
},
|
2776
|
+
|
2777
|
+
fromPartial(object: DeepPartial<OneofDescriptorProto>): OneofDescriptorProto {
|
2778
|
+
const message = createBaseOneofDescriptorProto();
|
2779
|
+
message.name = object.name ?? "";
|
2780
|
+
message.options = object.options !== undefined && object.options !== null ? OneofOptions.fromPartial(object.options) : undefined;
|
2781
|
+
return message;
|
2782
|
+
}
|
2783
|
+
|
2784
|
+
};
|
2785
|
+
|
2786
|
+
function createBaseEnumDescriptorProto(): EnumDescriptorProto {
|
2787
|
+
return {
|
2788
|
+
name: "",
|
2789
|
+
value: [],
|
2790
|
+
options: undefined,
|
2791
|
+
reservedRange: [],
|
2792
|
+
reservedName: []
|
2793
|
+
};
|
2794
|
+
}
|
2795
|
+
|
2796
|
+
export const EnumDescriptorProto = {
|
2797
|
+
encode(message: EnumDescriptorProto, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
2798
|
+
if (message.name !== "") {
|
2799
|
+
writer.uint32(10).string(message.name);
|
2800
|
+
}
|
2801
|
+
|
2802
|
+
for (const v of message.value) {
|
2803
|
+
EnumValueDescriptorProto.encode(v!, writer.uint32(18).fork()).ldelim();
|
2804
|
+
}
|
2805
|
+
|
2806
|
+
if (message.options !== undefined) {
|
2807
|
+
EnumOptions.encode(message.options, writer.uint32(26).fork()).ldelim();
|
2808
|
+
}
|
2809
|
+
|
2810
|
+
for (const v of message.reservedRange) {
|
2811
|
+
EnumDescriptorProto_EnumReservedRange.encode(v!, writer.uint32(34).fork()).ldelim();
|
2812
|
+
}
|
2813
|
+
|
2814
|
+
for (const v of message.reservedName) {
|
2815
|
+
writer.uint32(42).string(v!);
|
2816
|
+
}
|
2817
|
+
|
2818
|
+
return writer;
|
2819
|
+
},
|
2820
|
+
|
2821
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): EnumDescriptorProto {
|
2822
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
2823
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
2824
|
+
const message = createBaseEnumDescriptorProto();
|
2825
|
+
|
2826
|
+
while (reader.pos < end) {
|
2827
|
+
const tag = reader.uint32();
|
2828
|
+
|
2829
|
+
switch (tag >>> 3) {
|
2830
|
+
case 1:
|
2831
|
+
message.name = reader.string();
|
2832
|
+
break;
|
2833
|
+
|
2834
|
+
case 2:
|
2835
|
+
message.value.push(EnumValueDescriptorProto.decode(reader, reader.uint32()));
|
2836
|
+
break;
|
2837
|
+
|
2838
|
+
case 3:
|
2839
|
+
message.options = EnumOptions.decode(reader, reader.uint32());
|
2840
|
+
break;
|
2841
|
+
|
2842
|
+
case 4:
|
2843
|
+
message.reservedRange.push(EnumDescriptorProto_EnumReservedRange.decode(reader, reader.uint32()));
|
2844
|
+
break;
|
2845
|
+
|
2846
|
+
case 5:
|
2847
|
+
message.reservedName.push(reader.string());
|
2848
|
+
break;
|
2849
|
+
|
2850
|
+
default:
|
2851
|
+
reader.skipType(tag & 7);
|
2852
|
+
break;
|
2853
|
+
}
|
2854
|
+
}
|
2855
|
+
|
2856
|
+
return message;
|
2857
|
+
},
|
2858
|
+
|
2859
|
+
fromPartial(object: DeepPartial<EnumDescriptorProto>): EnumDescriptorProto {
|
2860
|
+
const message = createBaseEnumDescriptorProto();
|
2861
|
+
message.name = object.name ?? "";
|
2862
|
+
message.value = object.value?.map(e => EnumValueDescriptorProto.fromPartial(e)) || [];
|
2863
|
+
message.options = object.options !== undefined && object.options !== null ? EnumOptions.fromPartial(object.options) : undefined;
|
2864
|
+
message.reservedRange = object.reservedRange?.map(e => EnumDescriptorProto_EnumReservedRange.fromPartial(e)) || [];
|
2865
|
+
message.reservedName = object.reservedName?.map(e => e) || [];
|
2866
|
+
return message;
|
2867
|
+
}
|
2868
|
+
|
2869
|
+
};
|
2870
|
+
|
2871
|
+
function createBaseEnumDescriptorProto_EnumReservedRange(): EnumDescriptorProto_EnumReservedRange {
|
2872
|
+
return {
|
2873
|
+
start: 0,
|
2874
|
+
end: 0
|
2875
|
+
};
|
2876
|
+
}
|
2877
|
+
|
2878
|
+
export const EnumDescriptorProto_EnumReservedRange = {
|
2879
|
+
encode(message: EnumDescriptorProto_EnumReservedRange, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
2880
|
+
if (message.start !== 0) {
|
2881
|
+
writer.uint32(8).int32(message.start);
|
2882
|
+
}
|
2883
|
+
|
2884
|
+
if (message.end !== 0) {
|
2885
|
+
writer.uint32(16).int32(message.end);
|
2886
|
+
}
|
2887
|
+
|
2888
|
+
return writer;
|
2889
|
+
},
|
2890
|
+
|
2891
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): EnumDescriptorProto_EnumReservedRange {
|
2892
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
2893
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
2894
|
+
const message = createBaseEnumDescriptorProto_EnumReservedRange();
|
2895
|
+
|
2896
|
+
while (reader.pos < end) {
|
2897
|
+
const tag = reader.uint32();
|
2898
|
+
|
2899
|
+
switch (tag >>> 3) {
|
2900
|
+
case 1:
|
2901
|
+
message.start = reader.int32();
|
2902
|
+
break;
|
2903
|
+
|
2904
|
+
case 2:
|
2905
|
+
message.end = reader.int32();
|
2906
|
+
break;
|
2907
|
+
|
2908
|
+
default:
|
2909
|
+
reader.skipType(tag & 7);
|
2910
|
+
break;
|
2911
|
+
}
|
2912
|
+
}
|
2913
|
+
|
2914
|
+
return message;
|
2915
|
+
},
|
2916
|
+
|
2917
|
+
fromPartial(object: DeepPartial<EnumDescriptorProto_EnumReservedRange>): EnumDescriptorProto_EnumReservedRange {
|
2918
|
+
const message = createBaseEnumDescriptorProto_EnumReservedRange();
|
2919
|
+
message.start = object.start ?? 0;
|
2920
|
+
message.end = object.end ?? 0;
|
2921
|
+
return message;
|
2922
|
+
}
|
2923
|
+
|
2924
|
+
};
|
2925
|
+
|
2926
|
+
function createBaseEnumValueDescriptorProto(): EnumValueDescriptorProto {
|
2927
|
+
return {
|
2928
|
+
name: "",
|
2929
|
+
number: 0,
|
2930
|
+
options: undefined
|
2931
|
+
};
|
2932
|
+
}
|
2933
|
+
|
2934
|
+
export const EnumValueDescriptorProto = {
|
2935
|
+
encode(message: EnumValueDescriptorProto, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
2936
|
+
if (message.name !== "") {
|
2937
|
+
writer.uint32(10).string(message.name);
|
2938
|
+
}
|
2939
|
+
|
2940
|
+
if (message.number !== 0) {
|
2941
|
+
writer.uint32(16).int32(message.number);
|
2942
|
+
}
|
2943
|
+
|
2944
|
+
if (message.options !== undefined) {
|
2945
|
+
EnumValueOptions.encode(message.options, writer.uint32(26).fork()).ldelim();
|
2946
|
+
}
|
2947
|
+
|
2948
|
+
return writer;
|
2949
|
+
},
|
2950
|
+
|
2951
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): EnumValueDescriptorProto {
|
2952
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
2953
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
2954
|
+
const message = createBaseEnumValueDescriptorProto();
|
2955
|
+
|
2956
|
+
while (reader.pos < end) {
|
2957
|
+
const tag = reader.uint32();
|
2958
|
+
|
2959
|
+
switch (tag >>> 3) {
|
2960
|
+
case 1:
|
2961
|
+
message.name = reader.string();
|
2962
|
+
break;
|
2963
|
+
|
2964
|
+
case 2:
|
2965
|
+
message.number = reader.int32();
|
2966
|
+
break;
|
2967
|
+
|
2968
|
+
case 3:
|
2969
|
+
message.options = EnumValueOptions.decode(reader, reader.uint32());
|
2970
|
+
break;
|
2971
|
+
|
2972
|
+
default:
|
2973
|
+
reader.skipType(tag & 7);
|
2974
|
+
break;
|
2975
|
+
}
|
2976
|
+
}
|
2977
|
+
|
2978
|
+
return message;
|
2979
|
+
},
|
2980
|
+
|
2981
|
+
fromPartial(object: DeepPartial<EnumValueDescriptorProto>): EnumValueDescriptorProto {
|
2982
|
+
const message = createBaseEnumValueDescriptorProto();
|
2983
|
+
message.name = object.name ?? "";
|
2984
|
+
message.number = object.number ?? 0;
|
2985
|
+
message.options = object.options !== undefined && object.options !== null ? EnumValueOptions.fromPartial(object.options) : undefined;
|
2986
|
+
return message;
|
2987
|
+
}
|
2988
|
+
|
2989
|
+
};
|
2990
|
+
|
2991
|
+
function createBaseServiceDescriptorProto(): ServiceDescriptorProto {
|
2992
|
+
return {
|
2993
|
+
name: "",
|
2994
|
+
method: [],
|
2995
|
+
options: undefined
|
2996
|
+
};
|
2997
|
+
}
|
2998
|
+
|
2999
|
+
export const ServiceDescriptorProto = {
|
3000
|
+
encode(message: ServiceDescriptorProto, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
3001
|
+
if (message.name !== "") {
|
3002
|
+
writer.uint32(10).string(message.name);
|
3003
|
+
}
|
3004
|
+
|
3005
|
+
for (const v of message.method) {
|
3006
|
+
MethodDescriptorProto.encode(v!, writer.uint32(18).fork()).ldelim();
|
3007
|
+
}
|
3008
|
+
|
3009
|
+
if (message.options !== undefined) {
|
3010
|
+
ServiceOptions.encode(message.options, writer.uint32(26).fork()).ldelim();
|
3011
|
+
}
|
3012
|
+
|
3013
|
+
return writer;
|
3014
|
+
},
|
3015
|
+
|
3016
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): ServiceDescriptorProto {
|
3017
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
3018
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
3019
|
+
const message = createBaseServiceDescriptorProto();
|
3020
|
+
|
3021
|
+
while (reader.pos < end) {
|
3022
|
+
const tag = reader.uint32();
|
3023
|
+
|
3024
|
+
switch (tag >>> 3) {
|
3025
|
+
case 1:
|
3026
|
+
message.name = reader.string();
|
3027
|
+
break;
|
3028
|
+
|
3029
|
+
case 2:
|
3030
|
+
message.method.push(MethodDescriptorProto.decode(reader, reader.uint32()));
|
3031
|
+
break;
|
3032
|
+
|
3033
|
+
case 3:
|
3034
|
+
message.options = ServiceOptions.decode(reader, reader.uint32());
|
3035
|
+
break;
|
3036
|
+
|
3037
|
+
default:
|
3038
|
+
reader.skipType(tag & 7);
|
3039
|
+
break;
|
3040
|
+
}
|
3041
|
+
}
|
3042
|
+
|
3043
|
+
return message;
|
3044
|
+
},
|
3045
|
+
|
3046
|
+
fromPartial(object: DeepPartial<ServiceDescriptorProto>): ServiceDescriptorProto {
|
3047
|
+
const message = createBaseServiceDescriptorProto();
|
3048
|
+
message.name = object.name ?? "";
|
3049
|
+
message.method = object.method?.map(e => MethodDescriptorProto.fromPartial(e)) || [];
|
3050
|
+
message.options = object.options !== undefined && object.options !== null ? ServiceOptions.fromPartial(object.options) : undefined;
|
3051
|
+
return message;
|
3052
|
+
}
|
3053
|
+
|
3054
|
+
};
|
3055
|
+
|
3056
|
+
function createBaseMethodDescriptorProto(): MethodDescriptorProto {
|
3057
|
+
return {
|
3058
|
+
name: "",
|
3059
|
+
inputType: "",
|
3060
|
+
outputType: "",
|
3061
|
+
options: undefined,
|
3062
|
+
clientStreaming: false,
|
3063
|
+
serverStreaming: false
|
3064
|
+
};
|
3065
|
+
}
|
3066
|
+
|
3067
|
+
export const MethodDescriptorProto = {
|
3068
|
+
encode(message: MethodDescriptorProto, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
3069
|
+
if (message.name !== "") {
|
3070
|
+
writer.uint32(10).string(message.name);
|
3071
|
+
}
|
3072
|
+
|
3073
|
+
if (message.inputType !== "") {
|
3074
|
+
writer.uint32(18).string(message.inputType);
|
3075
|
+
}
|
3076
|
+
|
3077
|
+
if (message.outputType !== "") {
|
3078
|
+
writer.uint32(26).string(message.outputType);
|
3079
|
+
}
|
3080
|
+
|
3081
|
+
if (message.options !== undefined) {
|
3082
|
+
MethodOptions.encode(message.options, writer.uint32(34).fork()).ldelim();
|
3083
|
+
}
|
3084
|
+
|
3085
|
+
if (message.clientStreaming === true) {
|
3086
|
+
writer.uint32(40).bool(message.clientStreaming);
|
3087
|
+
}
|
3088
|
+
|
3089
|
+
if (message.serverStreaming === true) {
|
3090
|
+
writer.uint32(48).bool(message.serverStreaming);
|
3091
|
+
}
|
3092
|
+
|
3093
|
+
return writer;
|
3094
|
+
},
|
3095
|
+
|
3096
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): MethodDescriptorProto {
|
3097
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
3098
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
3099
|
+
const message = createBaseMethodDescriptorProto();
|
3100
|
+
|
3101
|
+
while (reader.pos < end) {
|
3102
|
+
const tag = reader.uint32();
|
3103
|
+
|
3104
|
+
switch (tag >>> 3) {
|
3105
|
+
case 1:
|
3106
|
+
message.name = reader.string();
|
3107
|
+
break;
|
3108
|
+
|
3109
|
+
case 2:
|
3110
|
+
message.inputType = reader.string();
|
3111
|
+
break;
|
3112
|
+
|
3113
|
+
case 3:
|
3114
|
+
message.outputType = reader.string();
|
3115
|
+
break;
|
3116
|
+
|
3117
|
+
case 4:
|
3118
|
+
message.options = MethodOptions.decode(reader, reader.uint32());
|
3119
|
+
break;
|
3120
|
+
|
3121
|
+
case 5:
|
3122
|
+
message.clientStreaming = reader.bool();
|
3123
|
+
break;
|
3124
|
+
|
3125
|
+
case 6:
|
3126
|
+
message.serverStreaming = reader.bool();
|
3127
|
+
break;
|
3128
|
+
|
3129
|
+
default:
|
3130
|
+
reader.skipType(tag & 7);
|
3131
|
+
break;
|
3132
|
+
}
|
3133
|
+
}
|
3134
|
+
|
3135
|
+
return message;
|
3136
|
+
},
|
3137
|
+
|
3138
|
+
fromPartial(object: DeepPartial<MethodDescriptorProto>): MethodDescriptorProto {
|
3139
|
+
const message = createBaseMethodDescriptorProto();
|
3140
|
+
message.name = object.name ?? "";
|
3141
|
+
message.inputType = object.inputType ?? "";
|
3142
|
+
message.outputType = object.outputType ?? "";
|
3143
|
+
message.options = object.options !== undefined && object.options !== null ? MethodOptions.fromPartial(object.options) : undefined;
|
3144
|
+
message.clientStreaming = object.clientStreaming ?? false;
|
3145
|
+
message.serverStreaming = object.serverStreaming ?? false;
|
3146
|
+
return message;
|
3147
|
+
}
|
3148
|
+
|
3149
|
+
};
|
3150
|
+
|
3151
|
+
function createBaseFileOptions(): FileOptions {
|
3152
|
+
return {
|
3153
|
+
javaPackage: "",
|
3154
|
+
javaOuterClassname: "",
|
3155
|
+
javaMultipleFiles: false,
|
3156
|
+
javaGenerateEqualsAndHash: false,
|
3157
|
+
javaStringCheckUtf8: false,
|
3158
|
+
optimizeFor: 0,
|
3159
|
+
goPackage: "",
|
3160
|
+
ccGenericServices: false,
|
3161
|
+
javaGenericServices: false,
|
3162
|
+
pyGenericServices: false,
|
3163
|
+
phpGenericServices: false,
|
3164
|
+
deprecated: false,
|
3165
|
+
ccEnableArenas: false,
|
3166
|
+
objcClassPrefix: "",
|
3167
|
+
csharpNamespace: "",
|
3168
|
+
swiftPrefix: "",
|
3169
|
+
phpClassPrefix: "",
|
3170
|
+
phpNamespace: "",
|
3171
|
+
phpMetadataNamespace: "",
|
3172
|
+
rubyPackage: "",
|
3173
|
+
uninterpretedOption: []
|
3174
|
+
};
|
3175
|
+
}
|
3176
|
+
|
3177
|
+
export const FileOptions = {
|
3178
|
+
encode(message: FileOptions, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
3179
|
+
if (message.javaPackage !== "") {
|
3180
|
+
writer.uint32(10).string(message.javaPackage);
|
3181
|
+
}
|
3182
|
+
|
3183
|
+
if (message.javaOuterClassname !== "") {
|
3184
|
+
writer.uint32(66).string(message.javaOuterClassname);
|
3185
|
+
}
|
3186
|
+
|
3187
|
+
if (message.javaMultipleFiles === true) {
|
3188
|
+
writer.uint32(80).bool(message.javaMultipleFiles);
|
3189
|
+
}
|
3190
|
+
|
3191
|
+
if (message.javaGenerateEqualsAndHash === true) {
|
3192
|
+
writer.uint32(160).bool(message.javaGenerateEqualsAndHash);
|
3193
|
+
}
|
3194
|
+
|
3195
|
+
if (message.javaStringCheckUtf8 === true) {
|
3196
|
+
writer.uint32(216).bool(message.javaStringCheckUtf8);
|
3197
|
+
}
|
3198
|
+
|
3199
|
+
if (message.optimizeFor !== 0) {
|
3200
|
+
writer.uint32(72).int32(message.optimizeFor);
|
3201
|
+
}
|
3202
|
+
|
3203
|
+
if (message.goPackage !== "") {
|
3204
|
+
writer.uint32(90).string(message.goPackage);
|
3205
|
+
}
|
3206
|
+
|
3207
|
+
if (message.ccGenericServices === true) {
|
3208
|
+
writer.uint32(128).bool(message.ccGenericServices);
|
3209
|
+
}
|
3210
|
+
|
3211
|
+
if (message.javaGenericServices === true) {
|
3212
|
+
writer.uint32(136).bool(message.javaGenericServices);
|
3213
|
+
}
|
3214
|
+
|
3215
|
+
if (message.pyGenericServices === true) {
|
3216
|
+
writer.uint32(144).bool(message.pyGenericServices);
|
3217
|
+
}
|
3218
|
+
|
3219
|
+
if (message.phpGenericServices === true) {
|
3220
|
+
writer.uint32(336).bool(message.phpGenericServices);
|
3221
|
+
}
|
3222
|
+
|
3223
|
+
if (message.deprecated === true) {
|
3224
|
+
writer.uint32(184).bool(message.deprecated);
|
3225
|
+
}
|
3226
|
+
|
3227
|
+
if (message.ccEnableArenas === true) {
|
3228
|
+
writer.uint32(248).bool(message.ccEnableArenas);
|
3229
|
+
}
|
3230
|
+
|
3231
|
+
if (message.objcClassPrefix !== "") {
|
3232
|
+
writer.uint32(290).string(message.objcClassPrefix);
|
3233
|
+
}
|
3234
|
+
|
3235
|
+
if (message.csharpNamespace !== "") {
|
3236
|
+
writer.uint32(298).string(message.csharpNamespace);
|
3237
|
+
}
|
3238
|
+
|
3239
|
+
if (message.swiftPrefix !== "") {
|
3240
|
+
writer.uint32(314).string(message.swiftPrefix);
|
3241
|
+
}
|
3242
|
+
|
3243
|
+
if (message.phpClassPrefix !== "") {
|
3244
|
+
writer.uint32(322).string(message.phpClassPrefix);
|
3245
|
+
}
|
3246
|
+
|
3247
|
+
if (message.phpNamespace !== "") {
|
3248
|
+
writer.uint32(330).string(message.phpNamespace);
|
3249
|
+
}
|
3250
|
+
|
3251
|
+
if (message.phpMetadataNamespace !== "") {
|
3252
|
+
writer.uint32(354).string(message.phpMetadataNamespace);
|
3253
|
+
}
|
3254
|
+
|
3255
|
+
if (message.rubyPackage !== "") {
|
3256
|
+
writer.uint32(362).string(message.rubyPackage);
|
3257
|
+
}
|
3258
|
+
|
3259
|
+
for (const v of message.uninterpretedOption) {
|
3260
|
+
UninterpretedOption.encode(v!, writer.uint32(7994).fork()).ldelim();
|
3261
|
+
}
|
3262
|
+
|
3263
|
+
return writer;
|
3264
|
+
},
|
3265
|
+
|
3266
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): FileOptions {
|
3267
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
3268
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
3269
|
+
const message = createBaseFileOptions();
|
3270
|
+
|
3271
|
+
while (reader.pos < end) {
|
3272
|
+
const tag = reader.uint32();
|
3273
|
+
|
3274
|
+
switch (tag >>> 3) {
|
3275
|
+
case 1:
|
3276
|
+
message.javaPackage = reader.string();
|
3277
|
+
break;
|
3278
|
+
|
3279
|
+
case 8:
|
3280
|
+
message.javaOuterClassname = reader.string();
|
3281
|
+
break;
|
3282
|
+
|
3283
|
+
case 10:
|
3284
|
+
message.javaMultipleFiles = reader.bool();
|
3285
|
+
break;
|
3286
|
+
|
3287
|
+
case 20:
|
3288
|
+
message.javaGenerateEqualsAndHash = reader.bool();
|
3289
|
+
break;
|
3290
|
+
|
3291
|
+
case 27:
|
3292
|
+
message.javaStringCheckUtf8 = reader.bool();
|
3293
|
+
break;
|
3294
|
+
|
3295
|
+
case 9:
|
3296
|
+
message.optimizeFor = (reader.int32() as any);
|
3297
|
+
break;
|
3298
|
+
|
3299
|
+
case 11:
|
3300
|
+
message.goPackage = reader.string();
|
3301
|
+
break;
|
3302
|
+
|
3303
|
+
case 16:
|
3304
|
+
message.ccGenericServices = reader.bool();
|
3305
|
+
break;
|
3306
|
+
|
3307
|
+
case 17:
|
3308
|
+
message.javaGenericServices = reader.bool();
|
3309
|
+
break;
|
3310
|
+
|
3311
|
+
case 18:
|
3312
|
+
message.pyGenericServices = reader.bool();
|
3313
|
+
break;
|
3314
|
+
|
3315
|
+
case 42:
|
3316
|
+
message.phpGenericServices = reader.bool();
|
3317
|
+
break;
|
3318
|
+
|
3319
|
+
case 23:
|
3320
|
+
message.deprecated = reader.bool();
|
3321
|
+
break;
|
3322
|
+
|
3323
|
+
case 31:
|
3324
|
+
message.ccEnableArenas = reader.bool();
|
3325
|
+
break;
|
3326
|
+
|
3327
|
+
case 36:
|
3328
|
+
message.objcClassPrefix = reader.string();
|
3329
|
+
break;
|
3330
|
+
|
3331
|
+
case 37:
|
3332
|
+
message.csharpNamespace = reader.string();
|
3333
|
+
break;
|
3334
|
+
|
3335
|
+
case 39:
|
3336
|
+
message.swiftPrefix = reader.string();
|
3337
|
+
break;
|
3338
|
+
|
3339
|
+
case 40:
|
3340
|
+
message.phpClassPrefix = reader.string();
|
3341
|
+
break;
|
3342
|
+
|
3343
|
+
case 41:
|
3344
|
+
message.phpNamespace = reader.string();
|
3345
|
+
break;
|
3346
|
+
|
3347
|
+
case 44:
|
3348
|
+
message.phpMetadataNamespace = reader.string();
|
3349
|
+
break;
|
3350
|
+
|
3351
|
+
case 45:
|
3352
|
+
message.rubyPackage = reader.string();
|
3353
|
+
break;
|
3354
|
+
|
3355
|
+
case 999:
|
3356
|
+
message.uninterpretedOption.push(UninterpretedOption.decode(reader, reader.uint32()));
|
3357
|
+
break;
|
3358
|
+
|
3359
|
+
default:
|
3360
|
+
reader.skipType(tag & 7);
|
3361
|
+
break;
|
3362
|
+
}
|
3363
|
+
}
|
3364
|
+
|
3365
|
+
return message;
|
3366
|
+
},
|
3367
|
+
|
3368
|
+
fromPartial(object: DeepPartial<FileOptions>): FileOptions {
|
3369
|
+
const message = createBaseFileOptions();
|
3370
|
+
message.javaPackage = object.javaPackage ?? "";
|
3371
|
+
message.javaOuterClassname = object.javaOuterClassname ?? "";
|
3372
|
+
message.javaMultipleFiles = object.javaMultipleFiles ?? false;
|
3373
|
+
message.javaGenerateEqualsAndHash = object.javaGenerateEqualsAndHash ?? false;
|
3374
|
+
message.javaStringCheckUtf8 = object.javaStringCheckUtf8 ?? false;
|
3375
|
+
message.optimizeFor = object.optimizeFor ?? 0;
|
3376
|
+
message.goPackage = object.goPackage ?? "";
|
3377
|
+
message.ccGenericServices = object.ccGenericServices ?? false;
|
3378
|
+
message.javaGenericServices = object.javaGenericServices ?? false;
|
3379
|
+
message.pyGenericServices = object.pyGenericServices ?? false;
|
3380
|
+
message.phpGenericServices = object.phpGenericServices ?? false;
|
3381
|
+
message.deprecated = object.deprecated ?? false;
|
3382
|
+
message.ccEnableArenas = object.ccEnableArenas ?? false;
|
3383
|
+
message.objcClassPrefix = object.objcClassPrefix ?? "";
|
3384
|
+
message.csharpNamespace = object.csharpNamespace ?? "";
|
3385
|
+
message.swiftPrefix = object.swiftPrefix ?? "";
|
3386
|
+
message.phpClassPrefix = object.phpClassPrefix ?? "";
|
3387
|
+
message.phpNamespace = object.phpNamespace ?? "";
|
3388
|
+
message.phpMetadataNamespace = object.phpMetadataNamespace ?? "";
|
3389
|
+
message.rubyPackage = object.rubyPackage ?? "";
|
3390
|
+
message.uninterpretedOption = object.uninterpretedOption?.map(e => UninterpretedOption.fromPartial(e)) || [];
|
3391
|
+
return message;
|
3392
|
+
}
|
3393
|
+
|
3394
|
+
};
|
3395
|
+
|
3396
|
+
function createBaseMessageOptions(): MessageOptions {
|
3397
|
+
return {
|
3398
|
+
messageSetWireFormat: false,
|
3399
|
+
noStandardDescriptorAccessor: false,
|
3400
|
+
deprecated: false,
|
3401
|
+
mapEntry: false,
|
3402
|
+
uninterpretedOption: []
|
3403
|
+
};
|
3404
|
+
}
|
3405
|
+
|
3406
|
+
export const MessageOptions = {
|
3407
|
+
encode(message: MessageOptions, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
3408
|
+
if (message.messageSetWireFormat === true) {
|
3409
|
+
writer.uint32(8).bool(message.messageSetWireFormat);
|
3410
|
+
}
|
3411
|
+
|
3412
|
+
if (message.noStandardDescriptorAccessor === true) {
|
3413
|
+
writer.uint32(16).bool(message.noStandardDescriptorAccessor);
|
3414
|
+
}
|
3415
|
+
|
3416
|
+
if (message.deprecated === true) {
|
3417
|
+
writer.uint32(24).bool(message.deprecated);
|
3418
|
+
}
|
3419
|
+
|
3420
|
+
if (message.mapEntry === true) {
|
3421
|
+
writer.uint32(56).bool(message.mapEntry);
|
3422
|
+
}
|
3423
|
+
|
3424
|
+
for (const v of message.uninterpretedOption) {
|
3425
|
+
UninterpretedOption.encode(v!, writer.uint32(7994).fork()).ldelim();
|
3426
|
+
}
|
3427
|
+
|
3428
|
+
return writer;
|
3429
|
+
},
|
3430
|
+
|
3431
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): MessageOptions {
|
3432
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
3433
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
3434
|
+
const message = createBaseMessageOptions();
|
3435
|
+
|
3436
|
+
while (reader.pos < end) {
|
3437
|
+
const tag = reader.uint32();
|
3438
|
+
|
3439
|
+
switch (tag >>> 3) {
|
3440
|
+
case 1:
|
3441
|
+
message.messageSetWireFormat = reader.bool();
|
3442
|
+
break;
|
3443
|
+
|
3444
|
+
case 2:
|
3445
|
+
message.noStandardDescriptorAccessor = reader.bool();
|
3446
|
+
break;
|
3447
|
+
|
3448
|
+
case 3:
|
3449
|
+
message.deprecated = reader.bool();
|
3450
|
+
break;
|
3451
|
+
|
3452
|
+
case 7:
|
3453
|
+
message.mapEntry = reader.bool();
|
3454
|
+
break;
|
3455
|
+
|
3456
|
+
case 999:
|
3457
|
+
message.uninterpretedOption.push(UninterpretedOption.decode(reader, reader.uint32()));
|
3458
|
+
break;
|
3459
|
+
|
3460
|
+
default:
|
3461
|
+
reader.skipType(tag & 7);
|
3462
|
+
break;
|
3463
|
+
}
|
3464
|
+
}
|
3465
|
+
|
3466
|
+
return message;
|
3467
|
+
},
|
3468
|
+
|
3469
|
+
fromPartial(object: DeepPartial<MessageOptions>): MessageOptions {
|
3470
|
+
const message = createBaseMessageOptions();
|
3471
|
+
message.messageSetWireFormat = object.messageSetWireFormat ?? false;
|
3472
|
+
message.noStandardDescriptorAccessor = object.noStandardDescriptorAccessor ?? false;
|
3473
|
+
message.deprecated = object.deprecated ?? false;
|
3474
|
+
message.mapEntry = object.mapEntry ?? false;
|
3475
|
+
message.uninterpretedOption = object.uninterpretedOption?.map(e => UninterpretedOption.fromPartial(e)) || [];
|
3476
|
+
return message;
|
3477
|
+
}
|
3478
|
+
|
3479
|
+
};
|
3480
|
+
|
3481
|
+
function createBaseFieldOptions(): FieldOptions {
|
3482
|
+
return {
|
3483
|
+
ctype: 0,
|
3484
|
+
packed: false,
|
3485
|
+
jstype: 0,
|
3486
|
+
lazy: false,
|
3487
|
+
deprecated: false,
|
3488
|
+
weak: false,
|
3489
|
+
uninterpretedOption: []
|
3490
|
+
};
|
3491
|
+
}
|
3492
|
+
|
3493
|
+
export const FieldOptions = {
|
3494
|
+
encode(message: FieldOptions, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
3495
|
+
if (message.ctype !== 0) {
|
3496
|
+
writer.uint32(8).int32(message.ctype);
|
3497
|
+
}
|
3498
|
+
|
3499
|
+
if (message.packed === true) {
|
3500
|
+
writer.uint32(16).bool(message.packed);
|
3501
|
+
}
|
3502
|
+
|
3503
|
+
if (message.jstype !== 0) {
|
3504
|
+
writer.uint32(48).int32(message.jstype);
|
3505
|
+
}
|
3506
|
+
|
3507
|
+
if (message.lazy === true) {
|
3508
|
+
writer.uint32(40).bool(message.lazy);
|
3509
|
+
}
|
3510
|
+
|
3511
|
+
if (message.deprecated === true) {
|
3512
|
+
writer.uint32(24).bool(message.deprecated);
|
3513
|
+
}
|
3514
|
+
|
3515
|
+
if (message.weak === true) {
|
3516
|
+
writer.uint32(80).bool(message.weak);
|
3517
|
+
}
|
3518
|
+
|
3519
|
+
for (const v of message.uninterpretedOption) {
|
3520
|
+
UninterpretedOption.encode(v!, writer.uint32(7994).fork()).ldelim();
|
3521
|
+
}
|
3522
|
+
|
3523
|
+
return writer;
|
3524
|
+
},
|
3525
|
+
|
3526
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): FieldOptions {
|
3527
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
3528
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
3529
|
+
const message = createBaseFieldOptions();
|
3530
|
+
|
3531
|
+
while (reader.pos < end) {
|
3532
|
+
const tag = reader.uint32();
|
3533
|
+
|
3534
|
+
switch (tag >>> 3) {
|
3535
|
+
case 1:
|
3536
|
+
message.ctype = (reader.int32() as any);
|
3537
|
+
break;
|
3538
|
+
|
3539
|
+
case 2:
|
3540
|
+
message.packed = reader.bool();
|
3541
|
+
break;
|
3542
|
+
|
3543
|
+
case 6:
|
3544
|
+
message.jstype = (reader.int32() as any);
|
3545
|
+
break;
|
3546
|
+
|
3547
|
+
case 5:
|
3548
|
+
message.lazy = reader.bool();
|
3549
|
+
break;
|
3550
|
+
|
3551
|
+
case 3:
|
3552
|
+
message.deprecated = reader.bool();
|
3553
|
+
break;
|
3554
|
+
|
3555
|
+
case 10:
|
3556
|
+
message.weak = reader.bool();
|
3557
|
+
break;
|
3558
|
+
|
3559
|
+
case 999:
|
3560
|
+
message.uninterpretedOption.push(UninterpretedOption.decode(reader, reader.uint32()));
|
3561
|
+
break;
|
3562
|
+
|
3563
|
+
default:
|
3564
|
+
reader.skipType(tag & 7);
|
3565
|
+
break;
|
3566
|
+
}
|
3567
|
+
}
|
3568
|
+
|
3569
|
+
return message;
|
3570
|
+
},
|
3571
|
+
|
3572
|
+
fromPartial(object: DeepPartial<FieldOptions>): FieldOptions {
|
3573
|
+
const message = createBaseFieldOptions();
|
3574
|
+
message.ctype = object.ctype ?? 0;
|
3575
|
+
message.packed = object.packed ?? false;
|
3576
|
+
message.jstype = object.jstype ?? 0;
|
3577
|
+
message.lazy = object.lazy ?? false;
|
3578
|
+
message.deprecated = object.deprecated ?? false;
|
3579
|
+
message.weak = object.weak ?? false;
|
3580
|
+
message.uninterpretedOption = object.uninterpretedOption?.map(e => UninterpretedOption.fromPartial(e)) || [];
|
3581
|
+
return message;
|
3582
|
+
}
|
3583
|
+
|
3584
|
+
};
|
3585
|
+
|
3586
|
+
function createBaseOneofOptions(): OneofOptions {
|
3587
|
+
return {
|
3588
|
+
uninterpretedOption: []
|
3589
|
+
};
|
3590
|
+
}
|
3591
|
+
|
3592
|
+
export const OneofOptions = {
|
3593
|
+
encode(message: OneofOptions, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
3594
|
+
for (const v of message.uninterpretedOption) {
|
3595
|
+
UninterpretedOption.encode(v!, writer.uint32(7994).fork()).ldelim();
|
3596
|
+
}
|
3597
|
+
|
3598
|
+
return writer;
|
3599
|
+
},
|
3600
|
+
|
3601
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): OneofOptions {
|
3602
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
3603
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
3604
|
+
const message = createBaseOneofOptions();
|
3605
|
+
|
3606
|
+
while (reader.pos < end) {
|
3607
|
+
const tag = reader.uint32();
|
3608
|
+
|
3609
|
+
switch (tag >>> 3) {
|
3610
|
+
case 999:
|
3611
|
+
message.uninterpretedOption.push(UninterpretedOption.decode(reader, reader.uint32()));
|
3612
|
+
break;
|
3613
|
+
|
3614
|
+
default:
|
3615
|
+
reader.skipType(tag & 7);
|
3616
|
+
break;
|
3617
|
+
}
|
3618
|
+
}
|
3619
|
+
|
3620
|
+
return message;
|
3621
|
+
},
|
3622
|
+
|
3623
|
+
fromPartial(object: DeepPartial<OneofOptions>): OneofOptions {
|
3624
|
+
const message = createBaseOneofOptions();
|
3625
|
+
message.uninterpretedOption = object.uninterpretedOption?.map(e => UninterpretedOption.fromPartial(e)) || [];
|
3626
|
+
return message;
|
3627
|
+
}
|
3628
|
+
|
3629
|
+
};
|
3630
|
+
|
3631
|
+
function createBaseEnumOptions(): EnumOptions {
|
3632
|
+
return {
|
3633
|
+
allowAlias: false,
|
3634
|
+
deprecated: false,
|
3635
|
+
uninterpretedOption: []
|
3636
|
+
};
|
3637
|
+
}
|
3638
|
+
|
3639
|
+
export const EnumOptions = {
|
3640
|
+
encode(message: EnumOptions, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
3641
|
+
if (message.allowAlias === true) {
|
3642
|
+
writer.uint32(16).bool(message.allowAlias);
|
3643
|
+
}
|
3644
|
+
|
3645
|
+
if (message.deprecated === true) {
|
3646
|
+
writer.uint32(24).bool(message.deprecated);
|
3647
|
+
}
|
3648
|
+
|
3649
|
+
for (const v of message.uninterpretedOption) {
|
3650
|
+
UninterpretedOption.encode(v!, writer.uint32(7994).fork()).ldelim();
|
3651
|
+
}
|
3652
|
+
|
3653
|
+
return writer;
|
3654
|
+
},
|
3655
|
+
|
3656
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): EnumOptions {
|
3657
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
3658
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
3659
|
+
const message = createBaseEnumOptions();
|
3660
|
+
|
3661
|
+
while (reader.pos < end) {
|
3662
|
+
const tag = reader.uint32();
|
3663
|
+
|
3664
|
+
switch (tag >>> 3) {
|
3665
|
+
case 2:
|
3666
|
+
message.allowAlias = reader.bool();
|
3667
|
+
break;
|
3668
|
+
|
3669
|
+
case 3:
|
3670
|
+
message.deprecated = reader.bool();
|
3671
|
+
break;
|
3672
|
+
|
3673
|
+
case 999:
|
3674
|
+
message.uninterpretedOption.push(UninterpretedOption.decode(reader, reader.uint32()));
|
3675
|
+
break;
|
3676
|
+
|
3677
|
+
default:
|
3678
|
+
reader.skipType(tag & 7);
|
3679
|
+
break;
|
3680
|
+
}
|
3681
|
+
}
|
3682
|
+
|
3683
|
+
return message;
|
3684
|
+
},
|
3685
|
+
|
3686
|
+
fromPartial(object: DeepPartial<EnumOptions>): EnumOptions {
|
3687
|
+
const message = createBaseEnumOptions();
|
3688
|
+
message.allowAlias = object.allowAlias ?? false;
|
3689
|
+
message.deprecated = object.deprecated ?? false;
|
3690
|
+
message.uninterpretedOption = object.uninterpretedOption?.map(e => UninterpretedOption.fromPartial(e)) || [];
|
3691
|
+
return message;
|
3692
|
+
}
|
3693
|
+
|
3694
|
+
};
|
3695
|
+
|
3696
|
+
function createBaseEnumValueOptions(): EnumValueOptions {
|
3697
|
+
return {
|
3698
|
+
deprecated: false,
|
3699
|
+
uninterpretedOption: []
|
3700
|
+
};
|
3701
|
+
}
|
3702
|
+
|
3703
|
+
export const EnumValueOptions = {
|
3704
|
+
encode(message: EnumValueOptions, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
3705
|
+
if (message.deprecated === true) {
|
3706
|
+
writer.uint32(8).bool(message.deprecated);
|
3707
|
+
}
|
3708
|
+
|
3709
|
+
for (const v of message.uninterpretedOption) {
|
3710
|
+
UninterpretedOption.encode(v!, writer.uint32(7994).fork()).ldelim();
|
3711
|
+
}
|
3712
|
+
|
3713
|
+
return writer;
|
3714
|
+
},
|
3715
|
+
|
3716
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): EnumValueOptions {
|
3717
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
3718
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
3719
|
+
const message = createBaseEnumValueOptions();
|
3720
|
+
|
3721
|
+
while (reader.pos < end) {
|
3722
|
+
const tag = reader.uint32();
|
3723
|
+
|
3724
|
+
switch (tag >>> 3) {
|
3725
|
+
case 1:
|
3726
|
+
message.deprecated = reader.bool();
|
3727
|
+
break;
|
3728
|
+
|
3729
|
+
case 999:
|
3730
|
+
message.uninterpretedOption.push(UninterpretedOption.decode(reader, reader.uint32()));
|
3731
|
+
break;
|
3732
|
+
|
3733
|
+
default:
|
3734
|
+
reader.skipType(tag & 7);
|
3735
|
+
break;
|
3736
|
+
}
|
3737
|
+
}
|
3738
|
+
|
3739
|
+
return message;
|
3740
|
+
},
|
3741
|
+
|
3742
|
+
fromPartial(object: DeepPartial<EnumValueOptions>): EnumValueOptions {
|
3743
|
+
const message = createBaseEnumValueOptions();
|
3744
|
+
message.deprecated = object.deprecated ?? false;
|
3745
|
+
message.uninterpretedOption = object.uninterpretedOption?.map(e => UninterpretedOption.fromPartial(e)) || [];
|
3746
|
+
return message;
|
3747
|
+
}
|
3748
|
+
|
3749
|
+
};
|
3750
|
+
|
3751
|
+
function createBaseServiceOptions(): ServiceOptions {
|
3752
|
+
return {
|
3753
|
+
deprecated: false,
|
3754
|
+
uninterpretedOption: []
|
3755
|
+
};
|
3756
|
+
}
|
3757
|
+
|
3758
|
+
export const ServiceOptions = {
|
3759
|
+
encode(message: ServiceOptions, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
3760
|
+
if (message.deprecated === true) {
|
3761
|
+
writer.uint32(264).bool(message.deprecated);
|
3762
|
+
}
|
3763
|
+
|
3764
|
+
for (const v of message.uninterpretedOption) {
|
3765
|
+
UninterpretedOption.encode(v!, writer.uint32(7994).fork()).ldelim();
|
3766
|
+
}
|
3767
|
+
|
3768
|
+
return writer;
|
3769
|
+
},
|
3770
|
+
|
3771
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): ServiceOptions {
|
3772
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
3773
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
3774
|
+
const message = createBaseServiceOptions();
|
3775
|
+
|
3776
|
+
while (reader.pos < end) {
|
3777
|
+
const tag = reader.uint32();
|
3778
|
+
|
3779
|
+
switch (tag >>> 3) {
|
3780
|
+
case 33:
|
3781
|
+
message.deprecated = reader.bool();
|
3782
|
+
break;
|
3783
|
+
|
3784
|
+
case 999:
|
3785
|
+
message.uninterpretedOption.push(UninterpretedOption.decode(reader, reader.uint32()));
|
3786
|
+
break;
|
3787
|
+
|
3788
|
+
default:
|
3789
|
+
reader.skipType(tag & 7);
|
3790
|
+
break;
|
3791
|
+
}
|
3792
|
+
}
|
3793
|
+
|
3794
|
+
return message;
|
3795
|
+
},
|
3796
|
+
|
3797
|
+
fromPartial(object: DeepPartial<ServiceOptions>): ServiceOptions {
|
3798
|
+
const message = createBaseServiceOptions();
|
3799
|
+
message.deprecated = object.deprecated ?? false;
|
3800
|
+
message.uninterpretedOption = object.uninterpretedOption?.map(e => UninterpretedOption.fromPartial(e)) || [];
|
3801
|
+
return message;
|
3802
|
+
}
|
3803
|
+
|
3804
|
+
};
|
3805
|
+
|
3806
|
+
function createBaseMethodOptions(): MethodOptions {
|
3807
|
+
return {
|
3808
|
+
deprecated: false,
|
3809
|
+
idempotencyLevel: 0,
|
3810
|
+
uninterpretedOption: []
|
3811
|
+
};
|
3812
|
+
}
|
3813
|
+
|
3814
|
+
export const MethodOptions = {
|
3815
|
+
encode(message: MethodOptions, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
3816
|
+
if (message.deprecated === true) {
|
3817
|
+
writer.uint32(264).bool(message.deprecated);
|
3818
|
+
}
|
3819
|
+
|
3820
|
+
if (message.idempotencyLevel !== 0) {
|
3821
|
+
writer.uint32(272).int32(message.idempotencyLevel);
|
3822
|
+
}
|
3823
|
+
|
3824
|
+
for (const v of message.uninterpretedOption) {
|
3825
|
+
UninterpretedOption.encode(v!, writer.uint32(7994).fork()).ldelim();
|
3826
|
+
}
|
3827
|
+
|
3828
|
+
return writer;
|
3829
|
+
},
|
3830
|
+
|
3831
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): MethodOptions {
|
3832
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
3833
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
3834
|
+
const message = createBaseMethodOptions();
|
3835
|
+
|
3836
|
+
while (reader.pos < end) {
|
3837
|
+
const tag = reader.uint32();
|
3838
|
+
|
3839
|
+
switch (tag >>> 3) {
|
3840
|
+
case 33:
|
3841
|
+
message.deprecated = reader.bool();
|
3842
|
+
break;
|
3843
|
+
|
3844
|
+
case 34:
|
3845
|
+
message.idempotencyLevel = (reader.int32() as any);
|
3846
|
+
break;
|
3847
|
+
|
3848
|
+
case 999:
|
3849
|
+
message.uninterpretedOption.push(UninterpretedOption.decode(reader, reader.uint32()));
|
3850
|
+
break;
|
3851
|
+
|
3852
|
+
default:
|
3853
|
+
reader.skipType(tag & 7);
|
3854
|
+
break;
|
3855
|
+
}
|
3856
|
+
}
|
3857
|
+
|
3858
|
+
return message;
|
3859
|
+
},
|
3860
|
+
|
3861
|
+
fromPartial(object: DeepPartial<MethodOptions>): MethodOptions {
|
3862
|
+
const message = createBaseMethodOptions();
|
3863
|
+
message.deprecated = object.deprecated ?? false;
|
3864
|
+
message.idempotencyLevel = object.idempotencyLevel ?? 0;
|
3865
|
+
message.uninterpretedOption = object.uninterpretedOption?.map(e => UninterpretedOption.fromPartial(e)) || [];
|
3866
|
+
return message;
|
3867
|
+
}
|
3868
|
+
|
3869
|
+
};
|
3870
|
+
|
3871
|
+
function createBaseUninterpretedOption(): UninterpretedOption {
|
3872
|
+
return {
|
3873
|
+
name: [],
|
3874
|
+
identifierValue: "",
|
3875
|
+
positiveIntValue: Long.UZERO,
|
3876
|
+
negativeIntValue: Long.ZERO,
|
3877
|
+
doubleValue: 0,
|
3878
|
+
stringValue: new Uint8Array(),
|
3879
|
+
aggregateValue: ""
|
3880
|
+
};
|
3881
|
+
}
|
3882
|
+
|
3883
|
+
export const UninterpretedOption = {
|
3884
|
+
encode(message: UninterpretedOption, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
3885
|
+
for (const v of message.name) {
|
3886
|
+
UninterpretedOption_NamePart.encode(v!, writer.uint32(18).fork()).ldelim();
|
3887
|
+
}
|
3888
|
+
|
3889
|
+
if (message.identifierValue !== "") {
|
3890
|
+
writer.uint32(26).string(message.identifierValue);
|
3891
|
+
}
|
3892
|
+
|
3893
|
+
if (!message.positiveIntValue.isZero()) {
|
3894
|
+
writer.uint32(32).uint64(message.positiveIntValue);
|
3895
|
+
}
|
3896
|
+
|
3897
|
+
if (!message.negativeIntValue.isZero()) {
|
3898
|
+
writer.uint32(40).int64(message.negativeIntValue);
|
3899
|
+
}
|
3900
|
+
|
3901
|
+
if (message.doubleValue !== 0) {
|
3902
|
+
writer.uint32(49).double(message.doubleValue);
|
3903
|
+
}
|
3904
|
+
|
3905
|
+
if (message.stringValue.length !== 0) {
|
3906
|
+
writer.uint32(58).bytes(message.stringValue);
|
3907
|
+
}
|
3908
|
+
|
3909
|
+
if (message.aggregateValue !== "") {
|
3910
|
+
writer.uint32(66).string(message.aggregateValue);
|
3911
|
+
}
|
3912
|
+
|
3913
|
+
return writer;
|
3914
|
+
},
|
3915
|
+
|
3916
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): UninterpretedOption {
|
3917
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
3918
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
3919
|
+
const message = createBaseUninterpretedOption();
|
3920
|
+
|
3921
|
+
while (reader.pos < end) {
|
3922
|
+
const tag = reader.uint32();
|
3923
|
+
|
3924
|
+
switch (tag >>> 3) {
|
3925
|
+
case 2:
|
3926
|
+
message.name.push(UninterpretedOption_NamePart.decode(reader, reader.uint32()));
|
3927
|
+
break;
|
3928
|
+
|
3929
|
+
case 3:
|
3930
|
+
message.identifierValue = reader.string();
|
3931
|
+
break;
|
3932
|
+
|
3933
|
+
case 4:
|
3934
|
+
message.positiveIntValue = (reader.uint64() as Long);
|
3935
|
+
break;
|
3936
|
+
|
3937
|
+
case 5:
|
3938
|
+
message.negativeIntValue = (reader.int64() as Long);
|
3939
|
+
break;
|
3940
|
+
|
3941
|
+
case 6:
|
3942
|
+
message.doubleValue = reader.double();
|
3943
|
+
break;
|
3944
|
+
|
3945
|
+
case 7:
|
3946
|
+
message.stringValue = reader.bytes();
|
3947
|
+
break;
|
3948
|
+
|
3949
|
+
case 8:
|
3950
|
+
message.aggregateValue = reader.string();
|
3951
|
+
break;
|
3952
|
+
|
3953
|
+
default:
|
3954
|
+
reader.skipType(tag & 7);
|
3955
|
+
break;
|
3956
|
+
}
|
3957
|
+
}
|
3958
|
+
|
3959
|
+
return message;
|
3960
|
+
},
|
3961
|
+
|
3962
|
+
fromPartial(object: DeepPartial<UninterpretedOption>): UninterpretedOption {
|
3963
|
+
const message = createBaseUninterpretedOption();
|
3964
|
+
message.name = object.name?.map(e => UninterpretedOption_NamePart.fromPartial(e)) || [];
|
3965
|
+
message.identifierValue = object.identifierValue ?? "";
|
3966
|
+
message.positiveIntValue = object.positiveIntValue !== undefined && object.positiveIntValue !== null ? Long.fromValue(object.positiveIntValue) : Long.UZERO;
|
3967
|
+
message.negativeIntValue = object.negativeIntValue !== undefined && object.negativeIntValue !== null ? Long.fromValue(object.negativeIntValue) : Long.ZERO;
|
3968
|
+
message.doubleValue = object.doubleValue ?? 0;
|
3969
|
+
message.stringValue = object.stringValue ?? new Uint8Array();
|
3970
|
+
message.aggregateValue = object.aggregateValue ?? "";
|
3971
|
+
return message;
|
3972
|
+
}
|
3973
|
+
|
3974
|
+
};
|
3975
|
+
|
3976
|
+
function createBaseUninterpretedOption_NamePart(): UninterpretedOption_NamePart {
|
3977
|
+
return {
|
3978
|
+
namePart: "",
|
3979
|
+
isExtension: false
|
3980
|
+
};
|
3981
|
+
}
|
3982
|
+
|
3983
|
+
export const UninterpretedOption_NamePart = {
|
3984
|
+
encode(message: UninterpretedOption_NamePart, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
3985
|
+
if (message.namePart !== "") {
|
3986
|
+
writer.uint32(10).string(message.namePart);
|
3987
|
+
}
|
3988
|
+
|
3989
|
+
if (message.isExtension === true) {
|
3990
|
+
writer.uint32(16).bool(message.isExtension);
|
3991
|
+
}
|
3992
|
+
|
3993
|
+
return writer;
|
3994
|
+
},
|
3995
|
+
|
3996
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): UninterpretedOption_NamePart {
|
3997
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
3998
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
3999
|
+
const message = createBaseUninterpretedOption_NamePart();
|
4000
|
+
|
4001
|
+
while (reader.pos < end) {
|
4002
|
+
const tag = reader.uint32();
|
4003
|
+
|
4004
|
+
switch (tag >>> 3) {
|
4005
|
+
case 1:
|
4006
|
+
message.namePart = reader.string();
|
4007
|
+
break;
|
4008
|
+
|
4009
|
+
case 2:
|
4010
|
+
message.isExtension = reader.bool();
|
4011
|
+
break;
|
4012
|
+
|
4013
|
+
default:
|
4014
|
+
reader.skipType(tag & 7);
|
4015
|
+
break;
|
4016
|
+
}
|
4017
|
+
}
|
4018
|
+
|
4019
|
+
return message;
|
4020
|
+
},
|
4021
|
+
|
4022
|
+
fromPartial(object: DeepPartial<UninterpretedOption_NamePart>): UninterpretedOption_NamePart {
|
4023
|
+
const message = createBaseUninterpretedOption_NamePart();
|
4024
|
+
message.namePart = object.namePart ?? "";
|
4025
|
+
message.isExtension = object.isExtension ?? false;
|
4026
|
+
return message;
|
4027
|
+
}
|
4028
|
+
|
4029
|
+
};
|
4030
|
+
|
4031
|
+
function createBaseSourceCodeInfo(): SourceCodeInfo {
|
4032
|
+
return {
|
4033
|
+
location: []
|
4034
|
+
};
|
4035
|
+
}
|
4036
|
+
|
4037
|
+
export const SourceCodeInfo = {
|
4038
|
+
encode(message: SourceCodeInfo, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
4039
|
+
for (const v of message.location) {
|
4040
|
+
SourceCodeInfo_Location.encode(v!, writer.uint32(10).fork()).ldelim();
|
4041
|
+
}
|
4042
|
+
|
4043
|
+
return writer;
|
4044
|
+
},
|
4045
|
+
|
4046
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): SourceCodeInfo {
|
4047
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
4048
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
4049
|
+
const message = createBaseSourceCodeInfo();
|
4050
|
+
|
4051
|
+
while (reader.pos < end) {
|
4052
|
+
const tag = reader.uint32();
|
4053
|
+
|
4054
|
+
switch (tag >>> 3) {
|
4055
|
+
case 1:
|
4056
|
+
message.location.push(SourceCodeInfo_Location.decode(reader, reader.uint32()));
|
4057
|
+
break;
|
4058
|
+
|
4059
|
+
default:
|
4060
|
+
reader.skipType(tag & 7);
|
4061
|
+
break;
|
4062
|
+
}
|
4063
|
+
}
|
4064
|
+
|
4065
|
+
return message;
|
4066
|
+
},
|
4067
|
+
|
4068
|
+
fromPartial(object: DeepPartial<SourceCodeInfo>): SourceCodeInfo {
|
4069
|
+
const message = createBaseSourceCodeInfo();
|
4070
|
+
message.location = object.location?.map(e => SourceCodeInfo_Location.fromPartial(e)) || [];
|
4071
|
+
return message;
|
4072
|
+
}
|
4073
|
+
|
4074
|
+
};
|
4075
|
+
|
4076
|
+
function createBaseSourceCodeInfo_Location(): SourceCodeInfo_Location {
|
4077
|
+
return {
|
4078
|
+
path: [],
|
4079
|
+
span: [],
|
4080
|
+
leadingComments: "",
|
4081
|
+
trailingComments: "",
|
4082
|
+
leadingDetachedComments: []
|
4083
|
+
};
|
4084
|
+
}
|
4085
|
+
|
4086
|
+
export const SourceCodeInfo_Location = {
|
4087
|
+
encode(message: SourceCodeInfo_Location, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
4088
|
+
writer.uint32(10).fork();
|
4089
|
+
|
4090
|
+
for (const v of message.path) {
|
4091
|
+
writer.int32(v);
|
4092
|
+
}
|
4093
|
+
|
4094
|
+
writer.ldelim();
|
4095
|
+
writer.uint32(18).fork();
|
4096
|
+
|
4097
|
+
for (const v of message.span) {
|
4098
|
+
writer.int32(v);
|
4099
|
+
}
|
4100
|
+
|
4101
|
+
writer.ldelim();
|
4102
|
+
|
4103
|
+
if (message.leadingComments !== "") {
|
4104
|
+
writer.uint32(26).string(message.leadingComments);
|
4105
|
+
}
|
4106
|
+
|
4107
|
+
if (message.trailingComments !== "") {
|
4108
|
+
writer.uint32(34).string(message.trailingComments);
|
4109
|
+
}
|
4110
|
+
|
4111
|
+
for (const v of message.leadingDetachedComments) {
|
4112
|
+
writer.uint32(50).string(v!);
|
4113
|
+
}
|
4114
|
+
|
4115
|
+
return writer;
|
4116
|
+
},
|
4117
|
+
|
4118
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): SourceCodeInfo_Location {
|
4119
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
4120
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
4121
|
+
const message = createBaseSourceCodeInfo_Location();
|
4122
|
+
|
4123
|
+
while (reader.pos < end) {
|
4124
|
+
const tag = reader.uint32();
|
4125
|
+
|
4126
|
+
switch (tag >>> 3) {
|
4127
|
+
case 1:
|
4128
|
+
if ((tag & 7) === 2) {
|
4129
|
+
const end2 = reader.uint32() + reader.pos;
|
4130
|
+
|
4131
|
+
while (reader.pos < end2) {
|
4132
|
+
message.path.push(reader.int32());
|
4133
|
+
}
|
4134
|
+
} else {
|
4135
|
+
message.path.push(reader.int32());
|
4136
|
+
}
|
4137
|
+
|
4138
|
+
break;
|
4139
|
+
|
4140
|
+
case 2:
|
4141
|
+
if ((tag & 7) === 2) {
|
4142
|
+
const end2 = reader.uint32() + reader.pos;
|
4143
|
+
|
4144
|
+
while (reader.pos < end2) {
|
4145
|
+
message.span.push(reader.int32());
|
4146
|
+
}
|
4147
|
+
} else {
|
4148
|
+
message.span.push(reader.int32());
|
4149
|
+
}
|
4150
|
+
|
4151
|
+
break;
|
4152
|
+
|
4153
|
+
case 3:
|
4154
|
+
message.leadingComments = reader.string();
|
4155
|
+
break;
|
4156
|
+
|
4157
|
+
case 4:
|
4158
|
+
message.trailingComments = reader.string();
|
4159
|
+
break;
|
4160
|
+
|
4161
|
+
case 6:
|
4162
|
+
message.leadingDetachedComments.push(reader.string());
|
4163
|
+
break;
|
4164
|
+
|
4165
|
+
default:
|
4166
|
+
reader.skipType(tag & 7);
|
4167
|
+
break;
|
4168
|
+
}
|
4169
|
+
}
|
4170
|
+
|
4171
|
+
return message;
|
4172
|
+
},
|
4173
|
+
|
4174
|
+
fromPartial(object: DeepPartial<SourceCodeInfo_Location>): SourceCodeInfo_Location {
|
4175
|
+
const message = createBaseSourceCodeInfo_Location();
|
4176
|
+
message.path = object.path?.map(e => e) || [];
|
4177
|
+
message.span = object.span?.map(e => e) || [];
|
4178
|
+
message.leadingComments = object.leadingComments ?? "";
|
4179
|
+
message.trailingComments = object.trailingComments ?? "";
|
4180
|
+
message.leadingDetachedComments = object.leadingDetachedComments?.map(e => e) || [];
|
4181
|
+
return message;
|
4182
|
+
}
|
4183
|
+
|
4184
|
+
};
|
4185
|
+
|
4186
|
+
function createBaseGeneratedCodeInfo(): GeneratedCodeInfo {
|
4187
|
+
return {
|
4188
|
+
annotation: []
|
4189
|
+
};
|
4190
|
+
}
|
4191
|
+
|
4192
|
+
export const GeneratedCodeInfo = {
|
4193
|
+
encode(message: GeneratedCodeInfo, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
4194
|
+
for (const v of message.annotation) {
|
4195
|
+
GeneratedCodeInfo_Annotation.encode(v!, writer.uint32(10).fork()).ldelim();
|
4196
|
+
}
|
4197
|
+
|
4198
|
+
return writer;
|
4199
|
+
},
|
4200
|
+
|
4201
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): GeneratedCodeInfo {
|
4202
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
4203
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
4204
|
+
const message = createBaseGeneratedCodeInfo();
|
4205
|
+
|
4206
|
+
while (reader.pos < end) {
|
4207
|
+
const tag = reader.uint32();
|
4208
|
+
|
4209
|
+
switch (tag >>> 3) {
|
4210
|
+
case 1:
|
4211
|
+
message.annotation.push(GeneratedCodeInfo_Annotation.decode(reader, reader.uint32()));
|
4212
|
+
break;
|
4213
|
+
|
4214
|
+
default:
|
4215
|
+
reader.skipType(tag & 7);
|
4216
|
+
break;
|
4217
|
+
}
|
4218
|
+
}
|
4219
|
+
|
4220
|
+
return message;
|
4221
|
+
},
|
4222
|
+
|
4223
|
+
fromPartial(object: DeepPartial<GeneratedCodeInfo>): GeneratedCodeInfo {
|
4224
|
+
const message = createBaseGeneratedCodeInfo();
|
4225
|
+
message.annotation = object.annotation?.map(e => GeneratedCodeInfo_Annotation.fromPartial(e)) || [];
|
4226
|
+
return message;
|
4227
|
+
}
|
4228
|
+
|
4229
|
+
};
|
4230
|
+
|
4231
|
+
function createBaseGeneratedCodeInfo_Annotation(): GeneratedCodeInfo_Annotation {
|
4232
|
+
return {
|
4233
|
+
path: [],
|
4234
|
+
sourceFile: "",
|
4235
|
+
begin: 0,
|
4236
|
+
end: 0
|
4237
|
+
};
|
4238
|
+
}
|
4239
|
+
|
4240
|
+
export const GeneratedCodeInfo_Annotation = {
|
4241
|
+
encode(message: GeneratedCodeInfo_Annotation, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
4242
|
+
writer.uint32(10).fork();
|
4243
|
+
|
4244
|
+
for (const v of message.path) {
|
4245
|
+
writer.int32(v);
|
4246
|
+
}
|
4247
|
+
|
4248
|
+
writer.ldelim();
|
4249
|
+
|
4250
|
+
if (message.sourceFile !== "") {
|
4251
|
+
writer.uint32(18).string(message.sourceFile);
|
4252
|
+
}
|
4253
|
+
|
4254
|
+
if (message.begin !== 0) {
|
4255
|
+
writer.uint32(24).int32(message.begin);
|
4256
|
+
}
|
4257
|
+
|
4258
|
+
if (message.end !== 0) {
|
4259
|
+
writer.uint32(32).int32(message.end);
|
4260
|
+
}
|
4261
|
+
|
4262
|
+
return writer;
|
4263
|
+
},
|
4264
|
+
|
4265
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): GeneratedCodeInfo_Annotation {
|
4266
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
4267
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
4268
|
+
const message = createBaseGeneratedCodeInfo_Annotation();
|
4269
|
+
|
4270
|
+
while (reader.pos < end) {
|
4271
|
+
const tag = reader.uint32();
|
4272
|
+
|
4273
|
+
switch (tag >>> 3) {
|
4274
|
+
case 1:
|
4275
|
+
if ((tag & 7) === 2) {
|
4276
|
+
const end2 = reader.uint32() + reader.pos;
|
4277
|
+
|
4278
|
+
while (reader.pos < end2) {
|
4279
|
+
message.path.push(reader.int32());
|
4280
|
+
}
|
4281
|
+
} else {
|
4282
|
+
message.path.push(reader.int32());
|
4283
|
+
}
|
4284
|
+
|
4285
|
+
break;
|
4286
|
+
|
4287
|
+
case 2:
|
4288
|
+
message.sourceFile = reader.string();
|
4289
|
+
break;
|
4290
|
+
|
4291
|
+
case 3:
|
4292
|
+
message.begin = reader.int32();
|
4293
|
+
break;
|
4294
|
+
|
4295
|
+
case 4:
|
4296
|
+
message.end = reader.int32();
|
4297
|
+
break;
|
4298
|
+
|
4299
|
+
default:
|
4300
|
+
reader.skipType(tag & 7);
|
4301
|
+
break;
|
4302
|
+
}
|
4303
|
+
}
|
4304
|
+
|
4305
|
+
return message;
|
4306
|
+
},
|
4307
|
+
|
4308
|
+
fromPartial(object: DeepPartial<GeneratedCodeInfo_Annotation>): GeneratedCodeInfo_Annotation {
|
4309
|
+
const message = createBaseGeneratedCodeInfo_Annotation();
|
4310
|
+
message.path = object.path?.map(e => e) || [];
|
4311
|
+
message.sourceFile = object.sourceFile ?? "";
|
4312
|
+
message.begin = object.begin ?? 0;
|
4313
|
+
message.end = object.end ?? 0;
|
4314
|
+
return message;
|
4315
|
+
}
|
4316
|
+
|
4317
|
+
};
|