diff --git a/packages/cosmwasm-stargate/package.json b/packages/cosmwasm-stargate/package.json index ffeb3a0f..119a8666 100644 --- a/packages/cosmwasm-stargate/package.json +++ b/packages/cosmwasm-stargate/package.json @@ -41,7 +41,7 @@ "coverage": "nyc --reporter=text --reporter=lcov yarn test --quiet", "pack-web": "yarn build-or-skip && webpack --mode development --config webpack.web.config.js", "preget-proto": "shx rm -rf proto", - "get-proto": "WASM_REF=v0.13.0 COSMOS_REF=v0.40.0-rc3 ./scripts/get-proto.sh", + "get-proto": "WASM_REF=v0.14.0-rc2 COSMOS_REF=v0.40.0-rc7 ./scripts/get-proto.sh", "predefine-proto": "./scripts/predefine-proto.sh", "define-proto": "./scripts/define-proto.sh", "postdefine-proto": "prettier --write \"src/codec/generated/codecimpl.*\"" diff --git a/packages/cosmwasm-stargate/scripts/predefine-proto.sh b/packages/cosmwasm-stargate/scripts/predefine-proto.sh index 2b1ddb9e..2b52593f 100755 --- a/packages/cosmwasm-stargate/scripts/predefine-proto.sh +++ b/packages/cosmwasm-stargate/scripts/predefine-proto.sh @@ -19,8 +19,8 @@ yarn pbjs \ --no-verify \ --no-convert \ --force-long \ - "$WASM_PROTO_DIR/internal/types/msg.proto" \ "$WASM_PROTO_DIR/internal/types/query.proto" \ + "$WASM_PROTO_DIR/internal/types/tx.proto" \ "$WASM_PROTO_DIR/internal/types/types.proto" \ "$COSMOS_PROTO_DIR/base/v1beta1/coin.proto" \ "$COSMOS_PROTO_DIR/base/query/v1beta1/pagination.proto" diff --git a/packages/cosmwasm-stargate/src/codec/generated/codecimpl.d.ts b/packages/cosmwasm-stargate/src/codec/generated/codecimpl.d.ts index 22d9bf39..98d5e340 100644 --- a/packages/cosmwasm-stargate/src/codec/generated/codecimpl.d.ts +++ b/packages/cosmwasm-stargate/src/codec/generated/codecimpl.d.ts @@ -5,414 +5,6 @@ export namespace cosmwasm { namespace wasm { /** Namespace v1beta1. */ namespace v1beta1 { - /** Properties of a MsgStoreCode. */ - interface IMsgStoreCode { - /** MsgStoreCode sender */ - sender?: string | null; - - /** MsgStoreCode wasmByteCode */ - wasmByteCode?: Uint8Array | null; - - /** MsgStoreCode source */ - source?: string | null; - - /** MsgStoreCode builder */ - builder?: string | null; - - /** MsgStoreCode instantiatePermission */ - instantiatePermission?: cosmwasm.wasm.v1beta1.IAccessConfig | null; - } - - /** Represents a MsgStoreCode. */ - class MsgStoreCode implements IMsgStoreCode { - /** - * Constructs a new MsgStoreCode. - * @param [p] Properties to set - */ - constructor(p?: cosmwasm.wasm.v1beta1.IMsgStoreCode); - - /** MsgStoreCode sender. */ - public sender: string; - - /** MsgStoreCode wasmByteCode. */ - public wasmByteCode: Uint8Array; - - /** MsgStoreCode source. */ - public source: string; - - /** MsgStoreCode builder. */ - public builder: string; - - /** MsgStoreCode instantiatePermission. */ - public instantiatePermission?: cosmwasm.wasm.v1beta1.IAccessConfig | null; - - /** - * Creates a new MsgStoreCode instance using the specified properties. - * @param [properties] Properties to set - * @returns MsgStoreCode instance - */ - public static create( - properties?: cosmwasm.wasm.v1beta1.IMsgStoreCode, - ): cosmwasm.wasm.v1beta1.MsgStoreCode; - - /** - * Encodes the specified MsgStoreCode message. Does not implicitly {@link cosmwasm.wasm.v1beta1.MsgStoreCode.verify|verify} messages. - * @param m MsgStoreCode message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmwasm.wasm.v1beta1.IMsgStoreCode, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a MsgStoreCode message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns MsgStoreCode - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): cosmwasm.wasm.v1beta1.MsgStoreCode; - } - - /** Properties of a MsgInstantiateContract. */ - interface IMsgInstantiateContract { - /** MsgInstantiateContract sender */ - sender?: string | null; - - /** MsgInstantiateContract admin */ - admin?: string | null; - - /** MsgInstantiateContract codeId */ - codeId?: Long | null; - - /** MsgInstantiateContract label */ - label?: string | null; - - /** MsgInstantiateContract initMsg */ - initMsg?: Uint8Array | null; - - /** MsgInstantiateContract initFunds */ - initFunds?: cosmos.base.v1beta1.ICoin[] | null; - } - - /** Represents a MsgInstantiateContract. */ - class MsgInstantiateContract implements IMsgInstantiateContract { - /** - * Constructs a new MsgInstantiateContract. - * @param [p] Properties to set - */ - constructor(p?: cosmwasm.wasm.v1beta1.IMsgInstantiateContract); - - /** MsgInstantiateContract sender. */ - public sender: string; - - /** MsgInstantiateContract admin. */ - public admin: string; - - /** MsgInstantiateContract codeId. */ - public codeId: Long; - - /** MsgInstantiateContract label. */ - public label: string; - - /** MsgInstantiateContract initMsg. */ - public initMsg: Uint8Array; - - /** MsgInstantiateContract initFunds. */ - public initFunds: cosmos.base.v1beta1.ICoin[]; - - /** - * Creates a new MsgInstantiateContract instance using the specified properties. - * @param [properties] Properties to set - * @returns MsgInstantiateContract instance - */ - public static create( - properties?: cosmwasm.wasm.v1beta1.IMsgInstantiateContract, - ): cosmwasm.wasm.v1beta1.MsgInstantiateContract; - - /** - * Encodes the specified MsgInstantiateContract message. Does not implicitly {@link cosmwasm.wasm.v1beta1.MsgInstantiateContract.verify|verify} messages. - * @param m MsgInstantiateContract message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: cosmwasm.wasm.v1beta1.IMsgInstantiateContract, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a MsgInstantiateContract message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns MsgInstantiateContract - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): cosmwasm.wasm.v1beta1.MsgInstantiateContract; - } - - /** Properties of a MsgExecuteContract. */ - interface IMsgExecuteContract { - /** MsgExecuteContract sender */ - sender?: string | null; - - /** MsgExecuteContract contract */ - contract?: string | null; - - /** MsgExecuteContract msg */ - msg?: Uint8Array | null; - - /** MsgExecuteContract sentFunds */ - sentFunds?: cosmos.base.v1beta1.ICoin[] | null; - } - - /** Represents a MsgExecuteContract. */ - class MsgExecuteContract implements IMsgExecuteContract { - /** - * Constructs a new MsgExecuteContract. - * @param [p] Properties to set - */ - constructor(p?: cosmwasm.wasm.v1beta1.IMsgExecuteContract); - - /** MsgExecuteContract sender. */ - public sender: string; - - /** MsgExecuteContract contract. */ - public contract: string; - - /** MsgExecuteContract msg. */ - public msg: Uint8Array; - - /** MsgExecuteContract sentFunds. */ - public sentFunds: cosmos.base.v1beta1.ICoin[]; - - /** - * Creates a new MsgExecuteContract instance using the specified properties. - * @param [properties] Properties to set - * @returns MsgExecuteContract instance - */ - public static create( - properties?: cosmwasm.wasm.v1beta1.IMsgExecuteContract, - ): cosmwasm.wasm.v1beta1.MsgExecuteContract; - - /** - * Encodes the specified MsgExecuteContract message. Does not implicitly {@link cosmwasm.wasm.v1beta1.MsgExecuteContract.verify|verify} messages. - * @param m MsgExecuteContract message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: cosmwasm.wasm.v1beta1.IMsgExecuteContract, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a MsgExecuteContract message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns MsgExecuteContract - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): cosmwasm.wasm.v1beta1.MsgExecuteContract; - } - - /** Properties of a MsgMigrateContract. */ - interface IMsgMigrateContract { - /** MsgMigrateContract sender */ - sender?: string | null; - - /** MsgMigrateContract contract */ - contract?: string | null; - - /** MsgMigrateContract codeId */ - codeId?: Long | null; - - /** MsgMigrateContract migrateMsg */ - migrateMsg?: Uint8Array | null; - } - - /** Represents a MsgMigrateContract. */ - class MsgMigrateContract implements IMsgMigrateContract { - /** - * Constructs a new MsgMigrateContract. - * @param [p] Properties to set - */ - constructor(p?: cosmwasm.wasm.v1beta1.IMsgMigrateContract); - - /** MsgMigrateContract sender. */ - public sender: string; - - /** MsgMigrateContract contract. */ - public contract: string; - - /** MsgMigrateContract codeId. */ - public codeId: Long; - - /** MsgMigrateContract migrateMsg. */ - public migrateMsg: Uint8Array; - - /** - * Creates a new MsgMigrateContract instance using the specified properties. - * @param [properties] Properties to set - * @returns MsgMigrateContract instance - */ - public static create( - properties?: cosmwasm.wasm.v1beta1.IMsgMigrateContract, - ): cosmwasm.wasm.v1beta1.MsgMigrateContract; - - /** - * Encodes the specified MsgMigrateContract message. Does not implicitly {@link cosmwasm.wasm.v1beta1.MsgMigrateContract.verify|verify} messages. - * @param m MsgMigrateContract message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: cosmwasm.wasm.v1beta1.IMsgMigrateContract, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a MsgMigrateContract message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns MsgMigrateContract - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): cosmwasm.wasm.v1beta1.MsgMigrateContract; - } - - /** Properties of a MsgUpdateAdmin. */ - interface IMsgUpdateAdmin { - /** MsgUpdateAdmin sender */ - sender?: string | null; - - /** MsgUpdateAdmin newAdmin */ - newAdmin?: string | null; - - /** MsgUpdateAdmin contract */ - contract?: string | null; - } - - /** Represents a MsgUpdateAdmin. */ - class MsgUpdateAdmin implements IMsgUpdateAdmin { - /** - * Constructs a new MsgUpdateAdmin. - * @param [p] Properties to set - */ - constructor(p?: cosmwasm.wasm.v1beta1.IMsgUpdateAdmin); - - /** MsgUpdateAdmin sender. */ - public sender: string; - - /** MsgUpdateAdmin newAdmin. */ - public newAdmin: string; - - /** MsgUpdateAdmin contract. */ - public contract: string; - - /** - * Creates a new MsgUpdateAdmin instance using the specified properties. - * @param [properties] Properties to set - * @returns MsgUpdateAdmin instance - */ - public static create( - properties?: cosmwasm.wasm.v1beta1.IMsgUpdateAdmin, - ): cosmwasm.wasm.v1beta1.MsgUpdateAdmin; - - /** - * Encodes the specified MsgUpdateAdmin message. Does not implicitly {@link cosmwasm.wasm.v1beta1.MsgUpdateAdmin.verify|verify} messages. - * @param m MsgUpdateAdmin message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: cosmwasm.wasm.v1beta1.IMsgUpdateAdmin, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a MsgUpdateAdmin message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns MsgUpdateAdmin - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): cosmwasm.wasm.v1beta1.MsgUpdateAdmin; - } - - /** Properties of a MsgClearAdmin. */ - interface IMsgClearAdmin { - /** MsgClearAdmin sender */ - sender?: string | null; - - /** MsgClearAdmin contract */ - contract?: string | null; - } - - /** Represents a MsgClearAdmin. */ - class MsgClearAdmin implements IMsgClearAdmin { - /** - * Constructs a new MsgClearAdmin. - * @param [p] Properties to set - */ - constructor(p?: cosmwasm.wasm.v1beta1.IMsgClearAdmin); - - /** MsgClearAdmin sender. */ - public sender: string; - - /** MsgClearAdmin contract. */ - public contract: string; - - /** - * Creates a new MsgClearAdmin instance using the specified properties. - * @param [properties] Properties to set - * @returns MsgClearAdmin instance - */ - public static create( - properties?: cosmwasm.wasm.v1beta1.IMsgClearAdmin, - ): cosmwasm.wasm.v1beta1.MsgClearAdmin; - - /** - * Encodes the specified MsgClearAdmin message. Does not implicitly {@link cosmwasm.wasm.v1beta1.MsgClearAdmin.verify|verify} messages. - * @param m MsgClearAdmin message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmwasm.wasm.v1beta1.IMsgClearAdmin, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a MsgClearAdmin message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns MsgClearAdmin - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): cosmwasm.wasm.v1beta1.MsgClearAdmin; - } - /** Represents a Query */ class Query extends $protobuf.rpc.Service { /** @@ -1682,6 +1274,908 @@ export namespace cosmwasm { ): cosmwasm.wasm.v1beta1.QueryCodesResponse; } + /** Represents a Msg */ + class Msg extends $protobuf.rpc.Service { + /** + * Constructs a new Msg service. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + */ + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + + /** + * Creates new Msg service using the specified rpc implementation. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + * @returns RPC service. Useful where requests and/or responses are streamed. + */ + public static create( + rpcImpl: $protobuf.RPCImpl, + requestDelimited?: boolean, + responseDelimited?: boolean, + ): Msg; + + /** + * Calls StoreCode. + * @param request MsgStoreCode message or plain object + * @param callback Node-style callback called with the error, if any, and MsgStoreCodeResponse + */ + public storeCode( + request: cosmwasm.wasm.v1beta1.IMsgStoreCode, + callback: cosmwasm.wasm.v1beta1.Msg.StoreCodeCallback, + ): void; + + /** + * Calls StoreCode. + * @param request MsgStoreCode message or plain object + * @returns Promise + */ + public storeCode( + request: cosmwasm.wasm.v1beta1.IMsgStoreCode, + ): Promise; + + /** + * Calls InstantiateContract. + * @param request MsgInstantiateContract message or plain object + * @param callback Node-style callback called with the error, if any, and MsgInstantiateContractResponse + */ + public instantiateContract( + request: cosmwasm.wasm.v1beta1.IMsgInstantiateContract, + callback: cosmwasm.wasm.v1beta1.Msg.InstantiateContractCallback, + ): void; + + /** + * Calls InstantiateContract. + * @param request MsgInstantiateContract message or plain object + * @returns Promise + */ + public instantiateContract( + request: cosmwasm.wasm.v1beta1.IMsgInstantiateContract, + ): Promise; + + /** + * Calls ExecuteContract. + * @param request MsgExecuteContract message or plain object + * @param callback Node-style callback called with the error, if any, and MsgExecuteContractResponse + */ + public executeContract( + request: cosmwasm.wasm.v1beta1.IMsgExecuteContract, + callback: cosmwasm.wasm.v1beta1.Msg.ExecuteContractCallback, + ): void; + + /** + * Calls ExecuteContract. + * @param request MsgExecuteContract message or plain object + * @returns Promise + */ + public executeContract( + request: cosmwasm.wasm.v1beta1.IMsgExecuteContract, + ): Promise; + + /** + * Calls MigrateContract. + * @param request MsgMigrateContract message or plain object + * @param callback Node-style callback called with the error, if any, and MsgMigrateContractResponse + */ + public migrateContract( + request: cosmwasm.wasm.v1beta1.IMsgMigrateContract, + callback: cosmwasm.wasm.v1beta1.Msg.MigrateContractCallback, + ): void; + + /** + * Calls MigrateContract. + * @param request MsgMigrateContract message or plain object + * @returns Promise + */ + public migrateContract( + request: cosmwasm.wasm.v1beta1.IMsgMigrateContract, + ): Promise; + + /** + * Calls UpdateAdmin. + * @param request MsgUpdateAdmin message or plain object + * @param callback Node-style callback called with the error, if any, and MsgUpdateAdminResponse + */ + public updateAdmin( + request: cosmwasm.wasm.v1beta1.IMsgUpdateAdmin, + callback: cosmwasm.wasm.v1beta1.Msg.UpdateAdminCallback, + ): void; + + /** + * Calls UpdateAdmin. + * @param request MsgUpdateAdmin message or plain object + * @returns Promise + */ + public updateAdmin( + request: cosmwasm.wasm.v1beta1.IMsgUpdateAdmin, + ): Promise; + + /** + * Calls ClearAdmin. + * @param request MsgClearAdmin message or plain object + * @param callback Node-style callback called with the error, if any, and MsgClearAdminResponse + */ + public clearAdmin( + request: cosmwasm.wasm.v1beta1.IMsgClearAdmin, + callback: cosmwasm.wasm.v1beta1.Msg.ClearAdminCallback, + ): void; + + /** + * Calls ClearAdmin. + * @param request MsgClearAdmin message or plain object + * @returns Promise + */ + public clearAdmin( + request: cosmwasm.wasm.v1beta1.IMsgClearAdmin, + ): Promise; + } + + namespace Msg { + /** + * Callback as used by {@link cosmwasm.wasm.v1beta1.Msg#storeCode}. + * @param error Error, if any + * @param [response] MsgStoreCodeResponse + */ + type StoreCodeCallback = ( + error: Error | null, + response?: cosmwasm.wasm.v1beta1.MsgStoreCodeResponse, + ) => void; + + /** + * Callback as used by {@link cosmwasm.wasm.v1beta1.Msg#instantiateContract}. + * @param error Error, if any + * @param [response] MsgInstantiateContractResponse + */ + type InstantiateContractCallback = ( + error: Error | null, + response?: cosmwasm.wasm.v1beta1.MsgInstantiateContractResponse, + ) => void; + + /** + * Callback as used by {@link cosmwasm.wasm.v1beta1.Msg#executeContract}. + * @param error Error, if any + * @param [response] MsgExecuteContractResponse + */ + type ExecuteContractCallback = ( + error: Error | null, + response?: cosmwasm.wasm.v1beta1.MsgExecuteContractResponse, + ) => void; + + /** + * Callback as used by {@link cosmwasm.wasm.v1beta1.Msg#migrateContract}. + * @param error Error, if any + * @param [response] MsgMigrateContractResponse + */ + type MigrateContractCallback = ( + error: Error | null, + response?: cosmwasm.wasm.v1beta1.MsgMigrateContractResponse, + ) => void; + + /** + * Callback as used by {@link cosmwasm.wasm.v1beta1.Msg#updateAdmin}. + * @param error Error, if any + * @param [response] MsgUpdateAdminResponse + */ + type UpdateAdminCallback = ( + error: Error | null, + response?: cosmwasm.wasm.v1beta1.MsgUpdateAdminResponse, + ) => void; + + /** + * Callback as used by {@link cosmwasm.wasm.v1beta1.Msg#clearAdmin}. + * @param error Error, if any + * @param [response] MsgClearAdminResponse + */ + type ClearAdminCallback = ( + error: Error | null, + response?: cosmwasm.wasm.v1beta1.MsgClearAdminResponse, + ) => void; + } + + /** Properties of a MsgStoreCode. */ + interface IMsgStoreCode { + /** MsgStoreCode sender */ + sender?: string | null; + + /** MsgStoreCode wasmByteCode */ + wasmByteCode?: Uint8Array | null; + + /** MsgStoreCode source */ + source?: string | null; + + /** MsgStoreCode builder */ + builder?: string | null; + + /** MsgStoreCode instantiatePermission */ + instantiatePermission?: cosmwasm.wasm.v1beta1.IAccessConfig | null; + } + + /** Represents a MsgStoreCode. */ + class MsgStoreCode implements IMsgStoreCode { + /** + * Constructs a new MsgStoreCode. + * @param [p] Properties to set + */ + constructor(p?: cosmwasm.wasm.v1beta1.IMsgStoreCode); + + /** MsgStoreCode sender. */ + public sender: string; + + /** MsgStoreCode wasmByteCode. */ + public wasmByteCode: Uint8Array; + + /** MsgStoreCode source. */ + public source: string; + + /** MsgStoreCode builder. */ + public builder: string; + + /** MsgStoreCode instantiatePermission. */ + public instantiatePermission?: cosmwasm.wasm.v1beta1.IAccessConfig | null; + + /** + * Creates a new MsgStoreCode instance using the specified properties. + * @param [properties] Properties to set + * @returns MsgStoreCode instance + */ + public static create( + properties?: cosmwasm.wasm.v1beta1.IMsgStoreCode, + ): cosmwasm.wasm.v1beta1.MsgStoreCode; + + /** + * Encodes the specified MsgStoreCode message. Does not implicitly {@link cosmwasm.wasm.v1beta1.MsgStoreCode.verify|verify} messages. + * @param m MsgStoreCode message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: cosmwasm.wasm.v1beta1.IMsgStoreCode, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MsgStoreCode message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns MsgStoreCode + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + r: $protobuf.Reader | Uint8Array, + l?: number, + ): cosmwasm.wasm.v1beta1.MsgStoreCode; + } + + /** Properties of a MsgStoreCodeResponse. */ + interface IMsgStoreCodeResponse { + /** MsgStoreCodeResponse codeId */ + codeId?: Long | null; + } + + /** Represents a MsgStoreCodeResponse. */ + class MsgStoreCodeResponse implements IMsgStoreCodeResponse { + /** + * Constructs a new MsgStoreCodeResponse. + * @param [p] Properties to set + */ + constructor(p?: cosmwasm.wasm.v1beta1.IMsgStoreCodeResponse); + + /** MsgStoreCodeResponse codeId. */ + public codeId: Long; + + /** + * Creates a new MsgStoreCodeResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns MsgStoreCodeResponse instance + */ + public static create( + properties?: cosmwasm.wasm.v1beta1.IMsgStoreCodeResponse, + ): cosmwasm.wasm.v1beta1.MsgStoreCodeResponse; + + /** + * Encodes the specified MsgStoreCodeResponse message. Does not implicitly {@link cosmwasm.wasm.v1beta1.MsgStoreCodeResponse.verify|verify} messages. + * @param m MsgStoreCodeResponse message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: cosmwasm.wasm.v1beta1.IMsgStoreCodeResponse, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a MsgStoreCodeResponse message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns MsgStoreCodeResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + r: $protobuf.Reader | Uint8Array, + l?: number, + ): cosmwasm.wasm.v1beta1.MsgStoreCodeResponse; + } + + /** Properties of a MsgInstantiateContract. */ + interface IMsgInstantiateContract { + /** MsgInstantiateContract sender */ + sender?: string | null; + + /** MsgInstantiateContract admin */ + admin?: string | null; + + /** MsgInstantiateContract codeId */ + codeId?: Long | null; + + /** MsgInstantiateContract label */ + label?: string | null; + + /** MsgInstantiateContract initMsg */ + initMsg?: Uint8Array | null; + + /** MsgInstantiateContract initFunds */ + initFunds?: cosmos.base.v1beta1.ICoin[] | null; + } + + /** Represents a MsgInstantiateContract. */ + class MsgInstantiateContract implements IMsgInstantiateContract { + /** + * Constructs a new MsgInstantiateContract. + * @param [p] Properties to set + */ + constructor(p?: cosmwasm.wasm.v1beta1.IMsgInstantiateContract); + + /** MsgInstantiateContract sender. */ + public sender: string; + + /** MsgInstantiateContract admin. */ + public admin: string; + + /** MsgInstantiateContract codeId. */ + public codeId: Long; + + /** MsgInstantiateContract label. */ + public label: string; + + /** MsgInstantiateContract initMsg. */ + public initMsg: Uint8Array; + + /** MsgInstantiateContract initFunds. */ + public initFunds: cosmos.base.v1beta1.ICoin[]; + + /** + * Creates a new MsgInstantiateContract instance using the specified properties. + * @param [properties] Properties to set + * @returns MsgInstantiateContract instance + */ + public static create( + properties?: cosmwasm.wasm.v1beta1.IMsgInstantiateContract, + ): cosmwasm.wasm.v1beta1.MsgInstantiateContract; + + /** + * Encodes the specified MsgInstantiateContract message. Does not implicitly {@link cosmwasm.wasm.v1beta1.MsgInstantiateContract.verify|verify} messages. + * @param m MsgInstantiateContract message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: cosmwasm.wasm.v1beta1.IMsgInstantiateContract, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a MsgInstantiateContract message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns MsgInstantiateContract + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + r: $protobuf.Reader | Uint8Array, + l?: number, + ): cosmwasm.wasm.v1beta1.MsgInstantiateContract; + } + + /** Properties of a MsgInstantiateContractResponse. */ + interface IMsgInstantiateContractResponse { + /** MsgInstantiateContractResponse address */ + address?: string | null; + } + + /** Represents a MsgInstantiateContractResponse. */ + class MsgInstantiateContractResponse implements IMsgInstantiateContractResponse { + /** + * Constructs a new MsgInstantiateContractResponse. + * @param [p] Properties to set + */ + constructor(p?: cosmwasm.wasm.v1beta1.IMsgInstantiateContractResponse); + + /** MsgInstantiateContractResponse address. */ + public address: string; + + /** + * Creates a new MsgInstantiateContractResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns MsgInstantiateContractResponse instance + */ + public static create( + properties?: cosmwasm.wasm.v1beta1.IMsgInstantiateContractResponse, + ): cosmwasm.wasm.v1beta1.MsgInstantiateContractResponse; + + /** + * Encodes the specified MsgInstantiateContractResponse message. Does not implicitly {@link cosmwasm.wasm.v1beta1.MsgInstantiateContractResponse.verify|verify} messages. + * @param m MsgInstantiateContractResponse message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: cosmwasm.wasm.v1beta1.IMsgInstantiateContractResponse, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a MsgInstantiateContractResponse message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns MsgInstantiateContractResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + r: $protobuf.Reader | Uint8Array, + l?: number, + ): cosmwasm.wasm.v1beta1.MsgInstantiateContractResponse; + } + + /** Properties of a MsgExecuteContract. */ + interface IMsgExecuteContract { + /** MsgExecuteContract sender */ + sender?: string | null; + + /** MsgExecuteContract contract */ + contract?: string | null; + + /** MsgExecuteContract msg */ + msg?: Uint8Array | null; + + /** MsgExecuteContract sentFunds */ + sentFunds?: cosmos.base.v1beta1.ICoin[] | null; + } + + /** Represents a MsgExecuteContract. */ + class MsgExecuteContract implements IMsgExecuteContract { + /** + * Constructs a new MsgExecuteContract. + * @param [p] Properties to set + */ + constructor(p?: cosmwasm.wasm.v1beta1.IMsgExecuteContract); + + /** MsgExecuteContract sender. */ + public sender: string; + + /** MsgExecuteContract contract. */ + public contract: string; + + /** MsgExecuteContract msg. */ + public msg: Uint8Array; + + /** MsgExecuteContract sentFunds. */ + public sentFunds: cosmos.base.v1beta1.ICoin[]; + + /** + * Creates a new MsgExecuteContract instance using the specified properties. + * @param [properties] Properties to set + * @returns MsgExecuteContract instance + */ + public static create( + properties?: cosmwasm.wasm.v1beta1.IMsgExecuteContract, + ): cosmwasm.wasm.v1beta1.MsgExecuteContract; + + /** + * Encodes the specified MsgExecuteContract message. Does not implicitly {@link cosmwasm.wasm.v1beta1.MsgExecuteContract.verify|verify} messages. + * @param m MsgExecuteContract message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: cosmwasm.wasm.v1beta1.IMsgExecuteContract, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a MsgExecuteContract message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns MsgExecuteContract + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + r: $protobuf.Reader | Uint8Array, + l?: number, + ): cosmwasm.wasm.v1beta1.MsgExecuteContract; + } + + /** Properties of a MsgExecuteContractResponse. */ + interface IMsgExecuteContractResponse { + /** MsgExecuteContractResponse data */ + data?: Uint8Array | null; + } + + /** Represents a MsgExecuteContractResponse. */ + class MsgExecuteContractResponse implements IMsgExecuteContractResponse { + /** + * Constructs a new MsgExecuteContractResponse. + * @param [p] Properties to set + */ + constructor(p?: cosmwasm.wasm.v1beta1.IMsgExecuteContractResponse); + + /** MsgExecuteContractResponse data. */ + public data: Uint8Array; + + /** + * Creates a new MsgExecuteContractResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns MsgExecuteContractResponse instance + */ + public static create( + properties?: cosmwasm.wasm.v1beta1.IMsgExecuteContractResponse, + ): cosmwasm.wasm.v1beta1.MsgExecuteContractResponse; + + /** + * Encodes the specified MsgExecuteContractResponse message. Does not implicitly {@link cosmwasm.wasm.v1beta1.MsgExecuteContractResponse.verify|verify} messages. + * @param m MsgExecuteContractResponse message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: cosmwasm.wasm.v1beta1.IMsgExecuteContractResponse, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a MsgExecuteContractResponse message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns MsgExecuteContractResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + r: $protobuf.Reader | Uint8Array, + l?: number, + ): cosmwasm.wasm.v1beta1.MsgExecuteContractResponse; + } + + /** Properties of a MsgMigrateContract. */ + interface IMsgMigrateContract { + /** MsgMigrateContract sender */ + sender?: string | null; + + /** MsgMigrateContract contract */ + contract?: string | null; + + /** MsgMigrateContract codeId */ + codeId?: Long | null; + + /** MsgMigrateContract migrateMsg */ + migrateMsg?: Uint8Array | null; + } + + /** Represents a MsgMigrateContract. */ + class MsgMigrateContract implements IMsgMigrateContract { + /** + * Constructs a new MsgMigrateContract. + * @param [p] Properties to set + */ + constructor(p?: cosmwasm.wasm.v1beta1.IMsgMigrateContract); + + /** MsgMigrateContract sender. */ + public sender: string; + + /** MsgMigrateContract contract. */ + public contract: string; + + /** MsgMigrateContract codeId. */ + public codeId: Long; + + /** MsgMigrateContract migrateMsg. */ + public migrateMsg: Uint8Array; + + /** + * Creates a new MsgMigrateContract instance using the specified properties. + * @param [properties] Properties to set + * @returns MsgMigrateContract instance + */ + public static create( + properties?: cosmwasm.wasm.v1beta1.IMsgMigrateContract, + ): cosmwasm.wasm.v1beta1.MsgMigrateContract; + + /** + * Encodes the specified MsgMigrateContract message. Does not implicitly {@link cosmwasm.wasm.v1beta1.MsgMigrateContract.verify|verify} messages. + * @param m MsgMigrateContract message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: cosmwasm.wasm.v1beta1.IMsgMigrateContract, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a MsgMigrateContract message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns MsgMigrateContract + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + r: $protobuf.Reader | Uint8Array, + l?: number, + ): cosmwasm.wasm.v1beta1.MsgMigrateContract; + } + + /** Properties of a MsgMigrateContractResponse. */ + interface IMsgMigrateContractResponse { + /** MsgMigrateContractResponse data */ + data?: Uint8Array | null; + } + + /** Represents a MsgMigrateContractResponse. */ + class MsgMigrateContractResponse implements IMsgMigrateContractResponse { + /** + * Constructs a new MsgMigrateContractResponse. + * @param [p] Properties to set + */ + constructor(p?: cosmwasm.wasm.v1beta1.IMsgMigrateContractResponse); + + /** MsgMigrateContractResponse data. */ + public data: Uint8Array; + + /** + * Creates a new MsgMigrateContractResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns MsgMigrateContractResponse instance + */ + public static create( + properties?: cosmwasm.wasm.v1beta1.IMsgMigrateContractResponse, + ): cosmwasm.wasm.v1beta1.MsgMigrateContractResponse; + + /** + * Encodes the specified MsgMigrateContractResponse message. Does not implicitly {@link cosmwasm.wasm.v1beta1.MsgMigrateContractResponse.verify|verify} messages. + * @param m MsgMigrateContractResponse message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: cosmwasm.wasm.v1beta1.IMsgMigrateContractResponse, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a MsgMigrateContractResponse message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns MsgMigrateContractResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + r: $protobuf.Reader | Uint8Array, + l?: number, + ): cosmwasm.wasm.v1beta1.MsgMigrateContractResponse; + } + + /** Properties of a MsgUpdateAdmin. */ + interface IMsgUpdateAdmin { + /** MsgUpdateAdmin sender */ + sender?: string | null; + + /** MsgUpdateAdmin newAdmin */ + newAdmin?: string | null; + + /** MsgUpdateAdmin contract */ + contract?: string | null; + } + + /** Represents a MsgUpdateAdmin. */ + class MsgUpdateAdmin implements IMsgUpdateAdmin { + /** + * Constructs a new MsgUpdateAdmin. + * @param [p] Properties to set + */ + constructor(p?: cosmwasm.wasm.v1beta1.IMsgUpdateAdmin); + + /** MsgUpdateAdmin sender. */ + public sender: string; + + /** MsgUpdateAdmin newAdmin. */ + public newAdmin: string; + + /** MsgUpdateAdmin contract. */ + public contract: string; + + /** + * Creates a new MsgUpdateAdmin instance using the specified properties. + * @param [properties] Properties to set + * @returns MsgUpdateAdmin instance + */ + public static create( + properties?: cosmwasm.wasm.v1beta1.IMsgUpdateAdmin, + ): cosmwasm.wasm.v1beta1.MsgUpdateAdmin; + + /** + * Encodes the specified MsgUpdateAdmin message. Does not implicitly {@link cosmwasm.wasm.v1beta1.MsgUpdateAdmin.verify|verify} messages. + * @param m MsgUpdateAdmin message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: cosmwasm.wasm.v1beta1.IMsgUpdateAdmin, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a MsgUpdateAdmin message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns MsgUpdateAdmin + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + r: $protobuf.Reader | Uint8Array, + l?: number, + ): cosmwasm.wasm.v1beta1.MsgUpdateAdmin; + } + + /** Properties of a MsgUpdateAdminResponse. */ + interface IMsgUpdateAdminResponse {} + + /** Represents a MsgUpdateAdminResponse. */ + class MsgUpdateAdminResponse implements IMsgUpdateAdminResponse { + /** + * Constructs a new MsgUpdateAdminResponse. + * @param [p] Properties to set + */ + constructor(p?: cosmwasm.wasm.v1beta1.IMsgUpdateAdminResponse); + + /** + * Creates a new MsgUpdateAdminResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns MsgUpdateAdminResponse instance + */ + public static create( + properties?: cosmwasm.wasm.v1beta1.IMsgUpdateAdminResponse, + ): cosmwasm.wasm.v1beta1.MsgUpdateAdminResponse; + + /** + * Encodes the specified MsgUpdateAdminResponse message. Does not implicitly {@link cosmwasm.wasm.v1beta1.MsgUpdateAdminResponse.verify|verify} messages. + * @param m MsgUpdateAdminResponse message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: cosmwasm.wasm.v1beta1.IMsgUpdateAdminResponse, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a MsgUpdateAdminResponse message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns MsgUpdateAdminResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + r: $protobuf.Reader | Uint8Array, + l?: number, + ): cosmwasm.wasm.v1beta1.MsgUpdateAdminResponse; + } + + /** Properties of a MsgClearAdmin. */ + interface IMsgClearAdmin { + /** MsgClearAdmin sender */ + sender?: string | null; + + /** MsgClearAdmin contract */ + contract?: string | null; + } + + /** Represents a MsgClearAdmin. */ + class MsgClearAdmin implements IMsgClearAdmin { + /** + * Constructs a new MsgClearAdmin. + * @param [p] Properties to set + */ + constructor(p?: cosmwasm.wasm.v1beta1.IMsgClearAdmin); + + /** MsgClearAdmin sender. */ + public sender: string; + + /** MsgClearAdmin contract. */ + public contract: string; + + /** + * Creates a new MsgClearAdmin instance using the specified properties. + * @param [properties] Properties to set + * @returns MsgClearAdmin instance + */ + public static create( + properties?: cosmwasm.wasm.v1beta1.IMsgClearAdmin, + ): cosmwasm.wasm.v1beta1.MsgClearAdmin; + + /** + * Encodes the specified MsgClearAdmin message. Does not implicitly {@link cosmwasm.wasm.v1beta1.MsgClearAdmin.verify|verify} messages. + * @param m MsgClearAdmin message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: cosmwasm.wasm.v1beta1.IMsgClearAdmin, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MsgClearAdmin message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns MsgClearAdmin + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + r: $protobuf.Reader | Uint8Array, + l?: number, + ): cosmwasm.wasm.v1beta1.MsgClearAdmin; + } + + /** Properties of a MsgClearAdminResponse. */ + interface IMsgClearAdminResponse {} + + /** Represents a MsgClearAdminResponse. */ + class MsgClearAdminResponse implements IMsgClearAdminResponse { + /** + * Constructs a new MsgClearAdminResponse. + * @param [p] Properties to set + */ + constructor(p?: cosmwasm.wasm.v1beta1.IMsgClearAdminResponse); + + /** + * Creates a new MsgClearAdminResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns MsgClearAdminResponse instance + */ + public static create( + properties?: cosmwasm.wasm.v1beta1.IMsgClearAdminResponse, + ): cosmwasm.wasm.v1beta1.MsgClearAdminResponse; + + /** + * Encodes the specified MsgClearAdminResponse message. Does not implicitly {@link cosmwasm.wasm.v1beta1.MsgClearAdminResponse.verify|verify} messages. + * @param m MsgClearAdminResponse message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: cosmwasm.wasm.v1beta1.IMsgClearAdminResponse, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a MsgClearAdminResponse message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns MsgClearAdminResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + r: $protobuf.Reader | Uint8Array, + l?: number, + ): cosmwasm.wasm.v1beta1.MsgClearAdminResponse; + } + /** AccessType enum. */ enum AccessType { ACCESS_TYPE_UNSPECIFIED = 0, @@ -2175,1940 +2669,6 @@ export namespace cosmwasm { } } -/** Namespace google. */ -export namespace google { - /** Namespace api. */ - namespace api { - /** Properties of a Http. */ - interface IHttp { - /** Http rules */ - rules?: google.api.IHttpRule[] | null; - } - - /** Represents a Http. */ - class Http implements IHttp { - /** - * Constructs a new Http. - * @param [p] Properties to set - */ - constructor(p?: google.api.IHttp); - - /** Http rules. */ - public rules: google.api.IHttpRule[]; - - /** - * Creates a new Http instance using the specified properties. - * @param [properties] Properties to set - * @returns Http instance - */ - public static create(properties?: google.api.IHttp): google.api.Http; - - /** - * Encodes the specified Http message. Does not implicitly {@link google.api.Http.verify|verify} messages. - * @param m Http message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: google.api.IHttp, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Http message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns Http - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(r: $protobuf.Reader | Uint8Array, l?: number): google.api.Http; - } - - /** Properties of a HttpRule. */ - interface IHttpRule { - /** HttpRule get */ - get?: string | null; - - /** HttpRule put */ - put?: string | null; - - /** HttpRule post */ - post?: string | null; - - /** HttpRule delete */ - delete?: string | null; - - /** HttpRule patch */ - patch?: string | null; - - /** HttpRule custom */ - custom?: google.api.ICustomHttpPattern | null; - - /** HttpRule selector */ - selector?: string | null; - - /** HttpRule body */ - body?: string | null; - - /** HttpRule additionalBindings */ - additionalBindings?: google.api.IHttpRule[] | null; - } - - /** Represents a HttpRule. */ - class HttpRule implements IHttpRule { - /** - * Constructs a new HttpRule. - * @param [p] Properties to set - */ - constructor(p?: google.api.IHttpRule); - - /** HttpRule get. */ - public get: string; - - /** HttpRule put. */ - public put: string; - - /** HttpRule post. */ - public post: string; - - /** HttpRule delete. */ - public delete: string; - - /** HttpRule patch. */ - public patch: string; - - /** HttpRule custom. */ - public custom?: google.api.ICustomHttpPattern | null; - - /** HttpRule selector. */ - public selector: string; - - /** HttpRule body. */ - public body: string; - - /** HttpRule additionalBindings. */ - public additionalBindings: google.api.IHttpRule[]; - - /** HttpRule pattern. */ - public pattern?: "get" | "put" | "post" | "delete" | "patch" | "custom"; - - /** - * Creates a new HttpRule instance using the specified properties. - * @param [properties] Properties to set - * @returns HttpRule instance - */ - public static create(properties?: google.api.IHttpRule): google.api.HttpRule; - - /** - * Encodes the specified HttpRule message. Does not implicitly {@link google.api.HttpRule.verify|verify} messages. - * @param m HttpRule message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: google.api.IHttpRule, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a HttpRule message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns HttpRule - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(r: $protobuf.Reader | Uint8Array, l?: number): google.api.HttpRule; - } - - /** Properties of a CustomHttpPattern. */ - interface ICustomHttpPattern { - /** CustomHttpPattern kind */ - kind?: string | null; - - /** CustomHttpPattern path */ - path?: string | null; - } - - /** Represents a CustomHttpPattern. */ - class CustomHttpPattern implements ICustomHttpPattern { - /** - * Constructs a new CustomHttpPattern. - * @param [p] Properties to set - */ - constructor(p?: google.api.ICustomHttpPattern); - - /** CustomHttpPattern kind. */ - public kind: string; - - /** CustomHttpPattern path. */ - public path: string; - - /** - * Creates a new CustomHttpPattern instance using the specified properties. - * @param [properties] Properties to set - * @returns CustomHttpPattern instance - */ - public static create(properties?: google.api.ICustomHttpPattern): google.api.CustomHttpPattern; - - /** - * Encodes the specified CustomHttpPattern message. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages. - * @param m CustomHttpPattern message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: google.api.ICustomHttpPattern, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a CustomHttpPattern message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns CustomHttpPattern - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(r: $protobuf.Reader | Uint8Array, l?: number): google.api.CustomHttpPattern; - } - } - - /** Namespace protobuf. */ - namespace protobuf { - /** Properties of a FileDescriptorSet. */ - interface IFileDescriptorSet { - /** FileDescriptorSet file */ - file?: google.protobuf.IFileDescriptorProto[] | null; - } - - /** Represents a FileDescriptorSet. */ - class FileDescriptorSet implements IFileDescriptorSet { - /** - * Constructs a new FileDescriptorSet. - * @param [p] Properties to set - */ - constructor(p?: google.protobuf.IFileDescriptorSet); - - /** FileDescriptorSet file. */ - public file: google.protobuf.IFileDescriptorProto[]; - - /** - * Creates a new FileDescriptorSet instance using the specified properties. - * @param [properties] Properties to set - * @returns FileDescriptorSet instance - */ - public static create( - properties?: google.protobuf.IFileDescriptorSet, - ): google.protobuf.FileDescriptorSet; - - /** - * Encodes the specified FileDescriptorSet message. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages. - * @param m FileDescriptorSet message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: google.protobuf.IFileDescriptorSet, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a FileDescriptorSet message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns FileDescriptorSet - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(r: $protobuf.Reader | Uint8Array, l?: number): google.protobuf.FileDescriptorSet; - } - - /** Properties of a FileDescriptorProto. */ - interface IFileDescriptorProto { - /** FileDescriptorProto name */ - name?: string | null; - - /** FileDescriptorProto package */ - package?: string | null; - - /** FileDescriptorProto dependency */ - dependency?: string[] | null; - - /** FileDescriptorProto publicDependency */ - publicDependency?: number[] | null; - - /** FileDescriptorProto weakDependency */ - weakDependency?: number[] | null; - - /** FileDescriptorProto messageType */ - messageType?: google.protobuf.IDescriptorProto[] | null; - - /** FileDescriptorProto enumType */ - enumType?: google.protobuf.IEnumDescriptorProto[] | null; - - /** FileDescriptorProto service */ - service?: google.protobuf.IServiceDescriptorProto[] | null; - - /** FileDescriptorProto extension */ - extension?: google.protobuf.IFieldDescriptorProto[] | null; - - /** FileDescriptorProto options */ - options?: google.protobuf.IFileOptions | null; - - /** FileDescriptorProto sourceCodeInfo */ - sourceCodeInfo?: google.protobuf.ISourceCodeInfo | null; - - /** FileDescriptorProto syntax */ - syntax?: string | null; - } - - /** Represents a FileDescriptorProto. */ - class FileDescriptorProto implements IFileDescriptorProto { - /** - * Constructs a new FileDescriptorProto. - * @param [p] Properties to set - */ - constructor(p?: google.protobuf.IFileDescriptorProto); - - /** FileDescriptorProto name. */ - public name: string; - - /** FileDescriptorProto package. */ - public package: string; - - /** FileDescriptorProto dependency. */ - public dependency: string[]; - - /** FileDescriptorProto publicDependency. */ - public publicDependency: number[]; - - /** FileDescriptorProto weakDependency. */ - public weakDependency: number[]; - - /** FileDescriptorProto messageType. */ - public messageType: google.protobuf.IDescriptorProto[]; - - /** FileDescriptorProto enumType. */ - public enumType: google.protobuf.IEnumDescriptorProto[]; - - /** FileDescriptorProto service. */ - public service: google.protobuf.IServiceDescriptorProto[]; - - /** FileDescriptorProto extension. */ - public extension: google.protobuf.IFieldDescriptorProto[]; - - /** FileDescriptorProto options. */ - public options?: google.protobuf.IFileOptions | null; - - /** FileDescriptorProto sourceCodeInfo. */ - public sourceCodeInfo?: google.protobuf.ISourceCodeInfo | null; - - /** FileDescriptorProto syntax. */ - public syntax: string; - - /** - * Creates a new FileDescriptorProto instance using the specified properties. - * @param [properties] Properties to set - * @returns FileDescriptorProto instance - */ - public static create( - properties?: google.protobuf.IFileDescriptorProto, - ): google.protobuf.FileDescriptorProto; - - /** - * Encodes the specified FileDescriptorProto message. Does not implicitly {@link google.protobuf.FileDescriptorProto.verify|verify} messages. - * @param m FileDescriptorProto message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: google.protobuf.IFileDescriptorProto, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a FileDescriptorProto message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns FileDescriptorProto - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(r: $protobuf.Reader | Uint8Array, l?: number): google.protobuf.FileDescriptorProto; - } - - /** Properties of a DescriptorProto. */ - interface IDescriptorProto { - /** DescriptorProto name */ - name?: string | null; - - /** DescriptorProto field */ - field?: google.protobuf.IFieldDescriptorProto[] | null; - - /** DescriptorProto extension */ - extension?: google.protobuf.IFieldDescriptorProto[] | null; - - /** DescriptorProto nestedType */ - nestedType?: google.protobuf.IDescriptorProto[] | null; - - /** DescriptorProto enumType */ - enumType?: google.protobuf.IEnumDescriptorProto[] | null; - - /** DescriptorProto extensionRange */ - extensionRange?: google.protobuf.DescriptorProto.IExtensionRange[] | null; - - /** DescriptorProto oneofDecl */ - oneofDecl?: google.protobuf.IOneofDescriptorProto[] | null; - - /** DescriptorProto options */ - options?: google.protobuf.IMessageOptions | null; - - /** DescriptorProto reservedRange */ - reservedRange?: google.protobuf.DescriptorProto.IReservedRange[] | null; - - /** DescriptorProto reservedName */ - reservedName?: string[] | null; - } - - /** Represents a DescriptorProto. */ - class DescriptorProto implements IDescriptorProto { - /** - * Constructs a new DescriptorProto. - * @param [p] Properties to set - */ - constructor(p?: google.protobuf.IDescriptorProto); - - /** DescriptorProto name. */ - public name: string; - - /** DescriptorProto field. */ - public field: google.protobuf.IFieldDescriptorProto[]; - - /** DescriptorProto extension. */ - public extension: google.protobuf.IFieldDescriptorProto[]; - - /** DescriptorProto nestedType. */ - public nestedType: google.protobuf.IDescriptorProto[]; - - /** DescriptorProto enumType. */ - public enumType: google.protobuf.IEnumDescriptorProto[]; - - /** DescriptorProto extensionRange. */ - public extensionRange: google.protobuf.DescriptorProto.IExtensionRange[]; - - /** DescriptorProto oneofDecl. */ - public oneofDecl: google.protobuf.IOneofDescriptorProto[]; - - /** DescriptorProto options. */ - public options?: google.protobuf.IMessageOptions | null; - - /** DescriptorProto reservedRange. */ - public reservedRange: google.protobuf.DescriptorProto.IReservedRange[]; - - /** DescriptorProto reservedName. */ - public reservedName: string[]; - - /** - * Creates a new DescriptorProto instance using the specified properties. - * @param [properties] Properties to set - * @returns DescriptorProto instance - */ - public static create(properties?: google.protobuf.IDescriptorProto): google.protobuf.DescriptorProto; - - /** - * Encodes the specified DescriptorProto message. Does not implicitly {@link google.protobuf.DescriptorProto.verify|verify} messages. - * @param m DescriptorProto message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: google.protobuf.IDescriptorProto, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a DescriptorProto message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns DescriptorProto - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(r: $protobuf.Reader | Uint8Array, l?: number): google.protobuf.DescriptorProto; - } - - namespace DescriptorProto { - /** Properties of an ExtensionRange. */ - interface IExtensionRange { - /** ExtensionRange start */ - start?: number | null; - - /** ExtensionRange end */ - end?: number | null; - } - - /** Represents an ExtensionRange. */ - class ExtensionRange implements IExtensionRange { - /** - * Constructs a new ExtensionRange. - * @param [p] Properties to set - */ - constructor(p?: google.protobuf.DescriptorProto.IExtensionRange); - - /** ExtensionRange start. */ - public start: number; - - /** ExtensionRange end. */ - public end: number; - - /** - * Creates a new ExtensionRange instance using the specified properties. - * @param [properties] Properties to set - * @returns ExtensionRange instance - */ - public static create( - properties?: google.protobuf.DescriptorProto.IExtensionRange, - ): google.protobuf.DescriptorProto.ExtensionRange; - - /** - * Encodes the specified ExtensionRange message. Does not implicitly {@link google.protobuf.DescriptorProto.ExtensionRange.verify|verify} messages. - * @param m ExtensionRange message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: google.protobuf.DescriptorProto.IExtensionRange, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes an ExtensionRange message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns ExtensionRange - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): google.protobuf.DescriptorProto.ExtensionRange; - } - - /** Properties of a ReservedRange. */ - interface IReservedRange { - /** ReservedRange start */ - start?: number | null; - - /** ReservedRange end */ - end?: number | null; - } - - /** Represents a ReservedRange. */ - class ReservedRange implements IReservedRange { - /** - * Constructs a new ReservedRange. - * @param [p] Properties to set - */ - constructor(p?: google.protobuf.DescriptorProto.IReservedRange); - - /** ReservedRange start. */ - public start: number; - - /** ReservedRange end. */ - public end: number; - - /** - * Creates a new ReservedRange instance using the specified properties. - * @param [properties] Properties to set - * @returns ReservedRange instance - */ - public static create( - properties?: google.protobuf.DescriptorProto.IReservedRange, - ): google.protobuf.DescriptorProto.ReservedRange; - - /** - * Encodes the specified ReservedRange message. Does not implicitly {@link google.protobuf.DescriptorProto.ReservedRange.verify|verify} messages. - * @param m ReservedRange message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: google.protobuf.DescriptorProto.IReservedRange, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a ReservedRange message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns ReservedRange - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): google.protobuf.DescriptorProto.ReservedRange; - } - } - - /** Properties of a FieldDescriptorProto. */ - interface IFieldDescriptorProto { - /** FieldDescriptorProto name */ - name?: string | null; - - /** FieldDescriptorProto number */ - number?: number | null; - - /** FieldDescriptorProto label */ - label?: google.protobuf.FieldDescriptorProto.Label | null; - - /** FieldDescriptorProto type */ - type?: google.protobuf.FieldDescriptorProto.Type | null; - - /** FieldDescriptorProto typeName */ - typeName?: string | null; - - /** FieldDescriptorProto extendee */ - extendee?: string | null; - - /** FieldDescriptorProto defaultValue */ - defaultValue?: string | null; - - /** FieldDescriptorProto oneofIndex */ - oneofIndex?: number | null; - - /** FieldDescriptorProto jsonName */ - jsonName?: string | null; - - /** FieldDescriptorProto options */ - options?: google.protobuf.IFieldOptions | null; - } - - /** Represents a FieldDescriptorProto. */ - class FieldDescriptorProto implements IFieldDescriptorProto { - /** - * Constructs a new FieldDescriptorProto. - * @param [p] Properties to set - */ - constructor(p?: google.protobuf.IFieldDescriptorProto); - - /** FieldDescriptorProto name. */ - public name: string; - - /** FieldDescriptorProto number. */ - public number: number; - - /** FieldDescriptorProto label. */ - public label: google.protobuf.FieldDescriptorProto.Label; - - /** FieldDescriptorProto type. */ - public type: google.protobuf.FieldDescriptorProto.Type; - - /** FieldDescriptorProto typeName. */ - public typeName: string; - - /** FieldDescriptorProto extendee. */ - public extendee: string; - - /** FieldDescriptorProto defaultValue. */ - public defaultValue: string; - - /** FieldDescriptorProto oneofIndex. */ - public oneofIndex: number; - - /** FieldDescriptorProto jsonName. */ - public jsonName: string; - - /** FieldDescriptorProto options. */ - public options?: google.protobuf.IFieldOptions | null; - - /** - * Creates a new FieldDescriptorProto instance using the specified properties. - * @param [properties] Properties to set - * @returns FieldDescriptorProto instance - */ - public static create( - properties?: google.protobuf.IFieldDescriptorProto, - ): google.protobuf.FieldDescriptorProto; - - /** - * Encodes the specified FieldDescriptorProto message. Does not implicitly {@link google.protobuf.FieldDescriptorProto.verify|verify} messages. - * @param m FieldDescriptorProto message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: google.protobuf.IFieldDescriptorProto, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a FieldDescriptorProto message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns FieldDescriptorProto - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): google.protobuf.FieldDescriptorProto; - } - - namespace FieldDescriptorProto { - /** Type enum. */ - enum Type { - TYPE_DOUBLE = 1, - TYPE_FLOAT = 2, - TYPE_INT64 = 3, - TYPE_UINT64 = 4, - TYPE_INT32 = 5, - TYPE_FIXED64 = 6, - TYPE_FIXED32 = 7, - TYPE_BOOL = 8, - TYPE_STRING = 9, - TYPE_GROUP = 10, - TYPE_MESSAGE = 11, - TYPE_BYTES = 12, - TYPE_UINT32 = 13, - TYPE_ENUM = 14, - TYPE_SFIXED32 = 15, - TYPE_SFIXED64 = 16, - TYPE_SINT32 = 17, - TYPE_SINT64 = 18, - } - - /** Label enum. */ - enum Label { - LABEL_OPTIONAL = 1, - LABEL_REQUIRED = 2, - LABEL_REPEATED = 3, - } - } - - /** Properties of an OneofDescriptorProto. */ - interface IOneofDescriptorProto { - /** OneofDescriptorProto name */ - name?: string | null; - - /** OneofDescriptorProto options */ - options?: google.protobuf.IOneofOptions | null; - } - - /** Represents an OneofDescriptorProto. */ - class OneofDescriptorProto implements IOneofDescriptorProto { - /** - * Constructs a new OneofDescriptorProto. - * @param [p] Properties to set - */ - constructor(p?: google.protobuf.IOneofDescriptorProto); - - /** OneofDescriptorProto name. */ - public name: string; - - /** OneofDescriptorProto options. */ - public options?: google.protobuf.IOneofOptions | null; - - /** - * Creates a new OneofDescriptorProto instance using the specified properties. - * @param [properties] Properties to set - * @returns OneofDescriptorProto instance - */ - public static create( - properties?: google.protobuf.IOneofDescriptorProto, - ): google.protobuf.OneofDescriptorProto; - - /** - * Encodes the specified OneofDescriptorProto message. Does not implicitly {@link google.protobuf.OneofDescriptorProto.verify|verify} messages. - * @param m OneofDescriptorProto message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: google.protobuf.IOneofDescriptorProto, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an OneofDescriptorProto message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns OneofDescriptorProto - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): google.protobuf.OneofDescriptorProto; - } - - /** Properties of an EnumDescriptorProto. */ - interface IEnumDescriptorProto { - /** EnumDescriptorProto name */ - name?: string | null; - - /** EnumDescriptorProto value */ - value?: google.protobuf.IEnumValueDescriptorProto[] | null; - - /** EnumDescriptorProto options */ - options?: google.protobuf.IEnumOptions | null; - } - - /** Represents an EnumDescriptorProto. */ - class EnumDescriptorProto implements IEnumDescriptorProto { - /** - * Constructs a new EnumDescriptorProto. - * @param [p] Properties to set - */ - constructor(p?: google.protobuf.IEnumDescriptorProto); - - /** EnumDescriptorProto name. */ - public name: string; - - /** EnumDescriptorProto value. */ - public value: google.protobuf.IEnumValueDescriptorProto[]; - - /** EnumDescriptorProto options. */ - public options?: google.protobuf.IEnumOptions | null; - - /** - * Creates a new EnumDescriptorProto instance using the specified properties. - * @param [properties] Properties to set - * @returns EnumDescriptorProto instance - */ - public static create( - properties?: google.protobuf.IEnumDescriptorProto, - ): google.protobuf.EnumDescriptorProto; - - /** - * Encodes the specified EnumDescriptorProto message. Does not implicitly {@link google.protobuf.EnumDescriptorProto.verify|verify} messages. - * @param m EnumDescriptorProto message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: google.protobuf.IEnumDescriptorProto, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an EnumDescriptorProto message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns EnumDescriptorProto - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(r: $protobuf.Reader | Uint8Array, l?: number): google.protobuf.EnumDescriptorProto; - } - - /** Properties of an EnumValueDescriptorProto. */ - interface IEnumValueDescriptorProto { - /** EnumValueDescriptorProto name */ - name?: string | null; - - /** EnumValueDescriptorProto number */ - number?: number | null; - - /** EnumValueDescriptorProto options */ - options?: google.protobuf.IEnumValueOptions | null; - } - - /** Represents an EnumValueDescriptorProto. */ - class EnumValueDescriptorProto implements IEnumValueDescriptorProto { - /** - * Constructs a new EnumValueDescriptorProto. - * @param [p] Properties to set - */ - constructor(p?: google.protobuf.IEnumValueDescriptorProto); - - /** EnumValueDescriptorProto name. */ - public name: string; - - /** EnumValueDescriptorProto number. */ - public number: number; - - /** EnumValueDescriptorProto options. */ - public options?: google.protobuf.IEnumValueOptions | null; - - /** - * Creates a new EnumValueDescriptorProto instance using the specified properties. - * @param [properties] Properties to set - * @returns EnumValueDescriptorProto instance - */ - public static create( - properties?: google.protobuf.IEnumValueDescriptorProto, - ): google.protobuf.EnumValueDescriptorProto; - - /** - * Encodes the specified EnumValueDescriptorProto message. Does not implicitly {@link google.protobuf.EnumValueDescriptorProto.verify|verify} messages. - * @param m EnumValueDescriptorProto message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: google.protobuf.IEnumValueDescriptorProto, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes an EnumValueDescriptorProto message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns EnumValueDescriptorProto - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): google.protobuf.EnumValueDescriptorProto; - } - - /** Properties of a ServiceDescriptorProto. */ - interface IServiceDescriptorProto { - /** ServiceDescriptorProto name */ - name?: string | null; - - /** ServiceDescriptorProto method */ - method?: google.protobuf.IMethodDescriptorProto[] | null; - - /** ServiceDescriptorProto options */ - options?: google.protobuf.IServiceOptions | null; - } - - /** Represents a ServiceDescriptorProto. */ - class ServiceDescriptorProto implements IServiceDescriptorProto { - /** - * Constructs a new ServiceDescriptorProto. - * @param [p] Properties to set - */ - constructor(p?: google.protobuf.IServiceDescriptorProto); - - /** ServiceDescriptorProto name. */ - public name: string; - - /** ServiceDescriptorProto method. */ - public method: google.protobuf.IMethodDescriptorProto[]; - - /** ServiceDescriptorProto options. */ - public options?: google.protobuf.IServiceOptions | null; - - /** - * Creates a new ServiceDescriptorProto instance using the specified properties. - * @param [properties] Properties to set - * @returns ServiceDescriptorProto instance - */ - public static create( - properties?: google.protobuf.IServiceDescriptorProto, - ): google.protobuf.ServiceDescriptorProto; - - /** - * Encodes the specified ServiceDescriptorProto message. Does not implicitly {@link google.protobuf.ServiceDescriptorProto.verify|verify} messages. - * @param m ServiceDescriptorProto message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: google.protobuf.IServiceDescriptorProto, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a ServiceDescriptorProto message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns ServiceDescriptorProto - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): google.protobuf.ServiceDescriptorProto; - } - - /** Properties of a MethodDescriptorProto. */ - interface IMethodDescriptorProto { - /** MethodDescriptorProto name */ - name?: string | null; - - /** MethodDescriptorProto inputType */ - inputType?: string | null; - - /** MethodDescriptorProto outputType */ - outputType?: string | null; - - /** MethodDescriptorProto options */ - options?: google.protobuf.IMethodOptions | null; - - /** MethodDescriptorProto clientStreaming */ - clientStreaming?: boolean | null; - - /** MethodDescriptorProto serverStreaming */ - serverStreaming?: boolean | null; - } - - /** Represents a MethodDescriptorProto. */ - class MethodDescriptorProto implements IMethodDescriptorProto { - /** - * Constructs a new MethodDescriptorProto. - * @param [p] Properties to set - */ - constructor(p?: google.protobuf.IMethodDescriptorProto); - - /** MethodDescriptorProto name. */ - public name: string; - - /** MethodDescriptorProto inputType. */ - public inputType: string; - - /** MethodDescriptorProto outputType. */ - public outputType: string; - - /** MethodDescriptorProto options. */ - public options?: google.protobuf.IMethodOptions | null; - - /** MethodDescriptorProto clientStreaming. */ - public clientStreaming: boolean; - - /** MethodDescriptorProto serverStreaming. */ - public serverStreaming: boolean; - - /** - * Creates a new MethodDescriptorProto instance using the specified properties. - * @param [properties] Properties to set - * @returns MethodDescriptorProto instance - */ - public static create( - properties?: google.protobuf.IMethodDescriptorProto, - ): google.protobuf.MethodDescriptorProto; - - /** - * Encodes the specified MethodDescriptorProto message. Does not implicitly {@link google.protobuf.MethodDescriptorProto.verify|verify} messages. - * @param m MethodDescriptorProto message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: google.protobuf.IMethodDescriptorProto, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a MethodDescriptorProto message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns MethodDescriptorProto - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): google.protobuf.MethodDescriptorProto; - } - - /** Properties of a FileOptions. */ - interface IFileOptions { - /** FileOptions javaPackage */ - javaPackage?: string | null; - - /** FileOptions javaOuterClassname */ - javaOuterClassname?: string | null; - - /** FileOptions javaMultipleFiles */ - javaMultipleFiles?: boolean | null; - - /** FileOptions javaGenerateEqualsAndHash */ - javaGenerateEqualsAndHash?: boolean | null; - - /** FileOptions javaStringCheckUtf8 */ - javaStringCheckUtf8?: boolean | null; - - /** FileOptions optimizeFor */ - optimizeFor?: google.protobuf.FileOptions.OptimizeMode | null; - - /** FileOptions goPackage */ - goPackage?: string | null; - - /** FileOptions ccGenericServices */ - ccGenericServices?: boolean | null; - - /** FileOptions javaGenericServices */ - javaGenericServices?: boolean | null; - - /** FileOptions pyGenericServices */ - pyGenericServices?: boolean | null; - - /** FileOptions deprecated */ - deprecated?: boolean | null; - - /** FileOptions ccEnableArenas */ - ccEnableArenas?: boolean | null; - - /** FileOptions objcClassPrefix */ - objcClassPrefix?: string | null; - - /** FileOptions csharpNamespace */ - csharpNamespace?: string | null; - - /** FileOptions uninterpretedOption */ - uninterpretedOption?: google.protobuf.IUninterpretedOption[] | null; - } - - /** Represents a FileOptions. */ - class FileOptions implements IFileOptions { - /** - * Constructs a new FileOptions. - * @param [p] Properties to set - */ - constructor(p?: google.protobuf.IFileOptions); - - /** FileOptions javaPackage. */ - public javaPackage: string; - - /** FileOptions javaOuterClassname. */ - public javaOuterClassname: string; - - /** FileOptions javaMultipleFiles. */ - public javaMultipleFiles: boolean; - - /** FileOptions javaGenerateEqualsAndHash. */ - public javaGenerateEqualsAndHash: boolean; - - /** FileOptions javaStringCheckUtf8. */ - public javaStringCheckUtf8: boolean; - - /** FileOptions optimizeFor. */ - public optimizeFor: google.protobuf.FileOptions.OptimizeMode; - - /** FileOptions goPackage. */ - public goPackage: string; - - /** FileOptions ccGenericServices. */ - public ccGenericServices: boolean; - - /** FileOptions javaGenericServices. */ - public javaGenericServices: boolean; - - /** FileOptions pyGenericServices. */ - public pyGenericServices: boolean; - - /** FileOptions deprecated. */ - public deprecated: boolean; - - /** FileOptions ccEnableArenas. */ - public ccEnableArenas: boolean; - - /** FileOptions objcClassPrefix. */ - public objcClassPrefix: string; - - /** FileOptions csharpNamespace. */ - public csharpNamespace: string; - - /** FileOptions uninterpretedOption. */ - public uninterpretedOption: google.protobuf.IUninterpretedOption[]; - - /** - * Creates a new FileOptions instance using the specified properties. - * @param [properties] Properties to set - * @returns FileOptions instance - */ - public static create(properties?: google.protobuf.IFileOptions): google.protobuf.FileOptions; - - /** - * Encodes the specified FileOptions message. Does not implicitly {@link google.protobuf.FileOptions.verify|verify} messages. - * @param m FileOptions message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: google.protobuf.IFileOptions, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a FileOptions message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns FileOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(r: $protobuf.Reader | Uint8Array, l?: number): google.protobuf.FileOptions; - } - - namespace FileOptions { - /** OptimizeMode enum. */ - enum OptimizeMode { - SPEED = 1, - CODE_SIZE = 2, - LITE_RUNTIME = 3, - } - } - - /** Properties of a MessageOptions. */ - interface IMessageOptions { - /** MessageOptions messageSetWireFormat */ - messageSetWireFormat?: boolean | null; - - /** MessageOptions noStandardDescriptorAccessor */ - noStandardDescriptorAccessor?: boolean | null; - - /** MessageOptions deprecated */ - deprecated?: boolean | null; - - /** MessageOptions mapEntry */ - mapEntry?: boolean | null; - - /** MessageOptions uninterpretedOption */ - uninterpretedOption?: google.protobuf.IUninterpretedOption[] | null; - } - - /** Represents a MessageOptions. */ - class MessageOptions implements IMessageOptions { - /** - * Constructs a new MessageOptions. - * @param [p] Properties to set - */ - constructor(p?: google.protobuf.IMessageOptions); - - /** MessageOptions messageSetWireFormat. */ - public messageSetWireFormat: boolean; - - /** MessageOptions noStandardDescriptorAccessor. */ - public noStandardDescriptorAccessor: boolean; - - /** MessageOptions deprecated. */ - public deprecated: boolean; - - /** MessageOptions mapEntry. */ - public mapEntry: boolean; - - /** MessageOptions uninterpretedOption. */ - public uninterpretedOption: google.protobuf.IUninterpretedOption[]; - - /** - * Creates a new MessageOptions instance using the specified properties. - * @param [properties] Properties to set - * @returns MessageOptions instance - */ - public static create(properties?: google.protobuf.IMessageOptions): google.protobuf.MessageOptions; - - /** - * Encodes the specified MessageOptions message. Does not implicitly {@link google.protobuf.MessageOptions.verify|verify} messages. - * @param m MessageOptions message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: google.protobuf.IMessageOptions, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a MessageOptions message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns MessageOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(r: $protobuf.Reader | Uint8Array, l?: number): google.protobuf.MessageOptions; - } - - /** Properties of a FieldOptions. */ - interface IFieldOptions { - /** FieldOptions ctype */ - ctype?: google.protobuf.FieldOptions.CType | null; - - /** FieldOptions packed */ - packed?: boolean | null; - - /** FieldOptions jstype */ - jstype?: google.protobuf.FieldOptions.JSType | null; - - /** FieldOptions lazy */ - lazy?: boolean | null; - - /** FieldOptions deprecated */ - deprecated?: boolean | null; - - /** FieldOptions weak */ - weak?: boolean | null; - - /** FieldOptions uninterpretedOption */ - uninterpretedOption?: google.protobuf.IUninterpretedOption[] | null; - } - - /** Represents a FieldOptions. */ - class FieldOptions implements IFieldOptions { - /** - * Constructs a new FieldOptions. - * @param [p] Properties to set - */ - constructor(p?: google.protobuf.IFieldOptions); - - /** FieldOptions ctype. */ - public ctype: google.protobuf.FieldOptions.CType; - - /** FieldOptions packed. */ - public packed: boolean; - - /** FieldOptions jstype. */ - public jstype: google.protobuf.FieldOptions.JSType; - - /** FieldOptions lazy. */ - public lazy: boolean; - - /** FieldOptions deprecated. */ - public deprecated: boolean; - - /** FieldOptions weak. */ - public weak: boolean; - - /** FieldOptions uninterpretedOption. */ - public uninterpretedOption: google.protobuf.IUninterpretedOption[]; - - /** - * Creates a new FieldOptions instance using the specified properties. - * @param [properties] Properties to set - * @returns FieldOptions instance - */ - public static create(properties?: google.protobuf.IFieldOptions): google.protobuf.FieldOptions; - - /** - * Encodes the specified FieldOptions message. Does not implicitly {@link google.protobuf.FieldOptions.verify|verify} messages. - * @param m FieldOptions message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: google.protobuf.IFieldOptions, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a FieldOptions message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns FieldOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(r: $protobuf.Reader | Uint8Array, l?: number): google.protobuf.FieldOptions; - } - - namespace FieldOptions { - /** CType enum. */ - enum CType { - STRING = 0, - CORD = 1, - STRING_PIECE = 2, - } - - /** JSType enum. */ - enum JSType { - JS_NORMAL = 0, - JS_STRING = 1, - JS_NUMBER = 2, - } - } - - /** Properties of an OneofOptions. */ - interface IOneofOptions { - /** OneofOptions uninterpretedOption */ - uninterpretedOption?: google.protobuf.IUninterpretedOption[] | null; - } - - /** Represents an OneofOptions. */ - class OneofOptions implements IOneofOptions { - /** - * Constructs a new OneofOptions. - * @param [p] Properties to set - */ - constructor(p?: google.protobuf.IOneofOptions); - - /** OneofOptions uninterpretedOption. */ - public uninterpretedOption: google.protobuf.IUninterpretedOption[]; - - /** - * Creates a new OneofOptions instance using the specified properties. - * @param [properties] Properties to set - * @returns OneofOptions instance - */ - public static create(properties?: google.protobuf.IOneofOptions): google.protobuf.OneofOptions; - - /** - * Encodes the specified OneofOptions message. Does not implicitly {@link google.protobuf.OneofOptions.verify|verify} messages. - * @param m OneofOptions message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: google.protobuf.IOneofOptions, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an OneofOptions message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns OneofOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(r: $protobuf.Reader | Uint8Array, l?: number): google.protobuf.OneofOptions; - } - - /** Properties of an EnumOptions. */ - interface IEnumOptions { - /** EnumOptions allowAlias */ - allowAlias?: boolean | null; - - /** EnumOptions deprecated */ - deprecated?: boolean | null; - - /** EnumOptions uninterpretedOption */ - uninterpretedOption?: google.protobuf.IUninterpretedOption[] | null; - } - - /** Represents an EnumOptions. */ - class EnumOptions implements IEnumOptions { - /** - * Constructs a new EnumOptions. - * @param [p] Properties to set - */ - constructor(p?: google.protobuf.IEnumOptions); - - /** EnumOptions allowAlias. */ - public allowAlias: boolean; - - /** EnumOptions deprecated. */ - public deprecated: boolean; - - /** EnumOptions uninterpretedOption. */ - public uninterpretedOption: google.protobuf.IUninterpretedOption[]; - - /** - * Creates a new EnumOptions instance using the specified properties. - * @param [properties] Properties to set - * @returns EnumOptions instance - */ - public static create(properties?: google.protobuf.IEnumOptions): google.protobuf.EnumOptions; - - /** - * Encodes the specified EnumOptions message. Does not implicitly {@link google.protobuf.EnumOptions.verify|verify} messages. - * @param m EnumOptions message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: google.protobuf.IEnumOptions, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an EnumOptions message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns EnumOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(r: $protobuf.Reader | Uint8Array, l?: number): google.protobuf.EnumOptions; - } - - /** Properties of an EnumValueOptions. */ - interface IEnumValueOptions { - /** EnumValueOptions deprecated */ - deprecated?: boolean | null; - - /** EnumValueOptions uninterpretedOption */ - uninterpretedOption?: google.protobuf.IUninterpretedOption[] | null; - } - - /** Represents an EnumValueOptions. */ - class EnumValueOptions implements IEnumValueOptions { - /** - * Constructs a new EnumValueOptions. - * @param [p] Properties to set - */ - constructor(p?: google.protobuf.IEnumValueOptions); - - /** EnumValueOptions deprecated. */ - public deprecated: boolean; - - /** EnumValueOptions uninterpretedOption. */ - public uninterpretedOption: google.protobuf.IUninterpretedOption[]; - - /** - * Creates a new EnumValueOptions instance using the specified properties. - * @param [properties] Properties to set - * @returns EnumValueOptions instance - */ - public static create(properties?: google.protobuf.IEnumValueOptions): google.protobuf.EnumValueOptions; - - /** - * Encodes the specified EnumValueOptions message. Does not implicitly {@link google.protobuf.EnumValueOptions.verify|verify} messages. - * @param m EnumValueOptions message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: google.protobuf.IEnumValueOptions, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an EnumValueOptions message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns EnumValueOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(r: $protobuf.Reader | Uint8Array, l?: number): google.protobuf.EnumValueOptions; - } - - /** Properties of a ServiceOptions. */ - interface IServiceOptions { - /** ServiceOptions deprecated */ - deprecated?: boolean | null; - - /** ServiceOptions uninterpretedOption */ - uninterpretedOption?: google.protobuf.IUninterpretedOption[] | null; - } - - /** Represents a ServiceOptions. */ - class ServiceOptions implements IServiceOptions { - /** - * Constructs a new ServiceOptions. - * @param [p] Properties to set - */ - constructor(p?: google.protobuf.IServiceOptions); - - /** ServiceOptions deprecated. */ - public deprecated: boolean; - - /** ServiceOptions uninterpretedOption. */ - public uninterpretedOption: google.protobuf.IUninterpretedOption[]; - - /** - * Creates a new ServiceOptions instance using the specified properties. - * @param [properties] Properties to set - * @returns ServiceOptions instance - */ - public static create(properties?: google.protobuf.IServiceOptions): google.protobuf.ServiceOptions; - - /** - * Encodes the specified ServiceOptions message. Does not implicitly {@link google.protobuf.ServiceOptions.verify|verify} messages. - * @param m ServiceOptions message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: google.protobuf.IServiceOptions, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ServiceOptions message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns ServiceOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(r: $protobuf.Reader | Uint8Array, l?: number): google.protobuf.ServiceOptions; - } - - /** Properties of a MethodOptions. */ - interface IMethodOptions { - /** MethodOptions deprecated */ - deprecated?: boolean | null; - - /** MethodOptions uninterpretedOption */ - uninterpretedOption?: google.protobuf.IUninterpretedOption[] | null; - - /** MethodOptions .google.api.http */ - ".google.api.http"?: google.api.IHttpRule | null; - } - - /** Represents a MethodOptions. */ - class MethodOptions implements IMethodOptions { - /** - * Constructs a new MethodOptions. - * @param [p] Properties to set - */ - constructor(p?: google.protobuf.IMethodOptions); - - /** MethodOptions deprecated. */ - public deprecated: boolean; - - /** MethodOptions uninterpretedOption. */ - public uninterpretedOption: google.protobuf.IUninterpretedOption[]; - - /** - * Creates a new MethodOptions instance using the specified properties. - * @param [properties] Properties to set - * @returns MethodOptions instance - */ - public static create(properties?: google.protobuf.IMethodOptions): google.protobuf.MethodOptions; - - /** - * Encodes the specified MethodOptions message. Does not implicitly {@link google.protobuf.MethodOptions.verify|verify} messages. - * @param m MethodOptions message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: google.protobuf.IMethodOptions, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a MethodOptions message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns MethodOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(r: $protobuf.Reader | Uint8Array, l?: number): google.protobuf.MethodOptions; - } - - /** Properties of an UninterpretedOption. */ - interface IUninterpretedOption { - /** UninterpretedOption name */ - name?: google.protobuf.UninterpretedOption.INamePart[] | null; - - /** UninterpretedOption identifierValue */ - identifierValue?: string | null; - - /** UninterpretedOption positiveIntValue */ - positiveIntValue?: Long | null; - - /** UninterpretedOption negativeIntValue */ - negativeIntValue?: Long | null; - - /** UninterpretedOption doubleValue */ - doubleValue?: number | null; - - /** UninterpretedOption stringValue */ - stringValue?: Uint8Array | null; - - /** UninterpretedOption aggregateValue */ - aggregateValue?: string | null; - } - - /** Represents an UninterpretedOption. */ - class UninterpretedOption implements IUninterpretedOption { - /** - * Constructs a new UninterpretedOption. - * @param [p] Properties to set - */ - constructor(p?: google.protobuf.IUninterpretedOption); - - /** UninterpretedOption name. */ - public name: google.protobuf.UninterpretedOption.INamePart[]; - - /** UninterpretedOption identifierValue. */ - public identifierValue: string; - - /** UninterpretedOption positiveIntValue. */ - public positiveIntValue: Long; - - /** UninterpretedOption negativeIntValue. */ - public negativeIntValue: Long; - - /** UninterpretedOption doubleValue. */ - public doubleValue: number; - - /** UninterpretedOption stringValue. */ - public stringValue: Uint8Array; - - /** UninterpretedOption aggregateValue. */ - public aggregateValue: string; - - /** - * Creates a new UninterpretedOption instance using the specified properties. - * @param [properties] Properties to set - * @returns UninterpretedOption instance - */ - public static create( - properties?: google.protobuf.IUninterpretedOption, - ): google.protobuf.UninterpretedOption; - - /** - * Encodes the specified UninterpretedOption message. Does not implicitly {@link google.protobuf.UninterpretedOption.verify|verify} messages. - * @param m UninterpretedOption message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: google.protobuf.IUninterpretedOption, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an UninterpretedOption message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns UninterpretedOption - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(r: $protobuf.Reader | Uint8Array, l?: number): google.protobuf.UninterpretedOption; - } - - namespace UninterpretedOption { - /** Properties of a NamePart. */ - interface INamePart { - /** NamePart namePart */ - namePart: string; - - /** NamePart isExtension */ - isExtension: boolean; - } - - /** Represents a NamePart. */ - class NamePart implements INamePart { - /** - * Constructs a new NamePart. - * @param [p] Properties to set - */ - constructor(p?: google.protobuf.UninterpretedOption.INamePart); - - /** NamePart namePart. */ - public namePart: string; - - /** NamePart isExtension. */ - public isExtension: boolean; - - /** - * Creates a new NamePart instance using the specified properties. - * @param [properties] Properties to set - * @returns NamePart instance - */ - public static create( - properties?: google.protobuf.UninterpretedOption.INamePart, - ): google.protobuf.UninterpretedOption.NamePart; - - /** - * Encodes the specified NamePart message. Does not implicitly {@link google.protobuf.UninterpretedOption.NamePart.verify|verify} messages. - * @param m NamePart message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: google.protobuf.UninterpretedOption.INamePart, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a NamePart message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns NamePart - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): google.protobuf.UninterpretedOption.NamePart; - } - } - - /** Properties of a SourceCodeInfo. */ - interface ISourceCodeInfo { - /** SourceCodeInfo location */ - location?: google.protobuf.SourceCodeInfo.ILocation[] | null; - } - - /** Represents a SourceCodeInfo. */ - class SourceCodeInfo implements ISourceCodeInfo { - /** - * Constructs a new SourceCodeInfo. - * @param [p] Properties to set - */ - constructor(p?: google.protobuf.ISourceCodeInfo); - - /** SourceCodeInfo location. */ - public location: google.protobuf.SourceCodeInfo.ILocation[]; - - /** - * Creates a new SourceCodeInfo instance using the specified properties. - * @param [properties] Properties to set - * @returns SourceCodeInfo instance - */ - public static create(properties?: google.protobuf.ISourceCodeInfo): google.protobuf.SourceCodeInfo; - - /** - * Encodes the specified SourceCodeInfo message. Does not implicitly {@link google.protobuf.SourceCodeInfo.verify|verify} messages. - * @param m SourceCodeInfo message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: google.protobuf.ISourceCodeInfo, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a SourceCodeInfo message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns SourceCodeInfo - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(r: $protobuf.Reader | Uint8Array, l?: number): google.protobuf.SourceCodeInfo; - } - - namespace SourceCodeInfo { - /** Properties of a Location. */ - interface ILocation { - /** Location path */ - path?: number[] | null; - - /** Location span */ - span?: number[] | null; - - /** Location leadingComments */ - leadingComments?: string | null; - - /** Location trailingComments */ - trailingComments?: string | null; - - /** Location leadingDetachedComments */ - leadingDetachedComments?: string[] | null; - } - - /** Represents a Location. */ - class Location implements ILocation { - /** - * Constructs a new Location. - * @param [p] Properties to set - */ - constructor(p?: google.protobuf.SourceCodeInfo.ILocation); - - /** Location path. */ - public path: number[]; - - /** Location span. */ - public span: number[]; - - /** Location leadingComments. */ - public leadingComments: string; - - /** Location trailingComments. */ - public trailingComments: string; - - /** Location leadingDetachedComments. */ - public leadingDetachedComments: string[]; - - /** - * Creates a new Location instance using the specified properties. - * @param [properties] Properties to set - * @returns Location instance - */ - public static create( - properties?: google.protobuf.SourceCodeInfo.ILocation, - ): google.protobuf.SourceCodeInfo.Location; - - /** - * Encodes the specified Location message. Does not implicitly {@link google.protobuf.SourceCodeInfo.Location.verify|verify} messages. - * @param m Location message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: google.protobuf.SourceCodeInfo.ILocation, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a Location message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns Location - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): google.protobuf.SourceCodeInfo.Location; - } - } - - /** Properties of a GeneratedCodeInfo. */ - interface IGeneratedCodeInfo { - /** GeneratedCodeInfo annotation */ - annotation?: google.protobuf.GeneratedCodeInfo.IAnnotation[] | null; - } - - /** Represents a GeneratedCodeInfo. */ - class GeneratedCodeInfo implements IGeneratedCodeInfo { - /** - * Constructs a new GeneratedCodeInfo. - * @param [p] Properties to set - */ - constructor(p?: google.protobuf.IGeneratedCodeInfo); - - /** GeneratedCodeInfo annotation. */ - public annotation: google.protobuf.GeneratedCodeInfo.IAnnotation[]; - - /** - * Creates a new GeneratedCodeInfo instance using the specified properties. - * @param [properties] Properties to set - * @returns GeneratedCodeInfo instance - */ - public static create( - properties?: google.protobuf.IGeneratedCodeInfo, - ): google.protobuf.GeneratedCodeInfo; - - /** - * Encodes the specified GeneratedCodeInfo message. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.verify|verify} messages. - * @param m GeneratedCodeInfo message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: google.protobuf.IGeneratedCodeInfo, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GeneratedCodeInfo message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns GeneratedCodeInfo - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(r: $protobuf.Reader | Uint8Array, l?: number): google.protobuf.GeneratedCodeInfo; - } - - namespace GeneratedCodeInfo { - /** Properties of an Annotation. */ - interface IAnnotation { - /** Annotation path */ - path?: number[] | null; - - /** Annotation sourceFile */ - sourceFile?: string | null; - - /** Annotation begin */ - begin?: number | null; - - /** Annotation end */ - end?: number | null; - } - - /** Represents an Annotation. */ - class Annotation implements IAnnotation { - /** - * Constructs a new Annotation. - * @param [p] Properties to set - */ - constructor(p?: google.protobuf.GeneratedCodeInfo.IAnnotation); - - /** Annotation path. */ - public path: number[]; - - /** Annotation sourceFile. */ - public sourceFile: string; - - /** Annotation begin. */ - public begin: number; - - /** Annotation end. */ - public end: number; - - /** - * Creates a new Annotation instance using the specified properties. - * @param [properties] Properties to set - * @returns Annotation instance - */ - public static create( - properties?: google.protobuf.GeneratedCodeInfo.IAnnotation, - ): google.protobuf.GeneratedCodeInfo.Annotation; - - /** - * Encodes the specified Annotation message. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.Annotation.verify|verify} messages. - * @param m Annotation message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: google.protobuf.GeneratedCodeInfo.IAnnotation, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes an Annotation message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns Annotation - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): google.protobuf.GeneratedCodeInfo.Annotation; - } - } - } -} - /** Namespace cosmos. */ export namespace cosmos { /** Namespace base. */ diff --git a/packages/cosmwasm-stargate/src/codec/generated/codecimpl.js b/packages/cosmwasm-stargate/src/codec/generated/codecimpl.js index a058f277..48086626 100644 --- a/packages/cosmwasm-stargate/src/codec/generated/codecimpl.js +++ b/packages/cosmwasm-stargate/src/codec/generated/codecimpl.js @@ -1,6 +1,6 @@ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -exports.cosmos = exports.google = exports.cosmwasm = void 0; +exports.cosmos = exports.cosmwasm = void 0; var $protobuf = require("protobufjs/minimal"); const $Reader = $protobuf.Reader, $Writer = $protobuf.Writer, @@ -12,321 +12,6 @@ exports.cosmwasm = $root.cosmwasm = (() => { const wasm = {}; wasm.v1beta1 = (function () { const v1beta1 = {}; - v1beta1.MsgStoreCode = (function () { - function MsgStoreCode(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; - } - MsgStoreCode.prototype.sender = ""; - MsgStoreCode.prototype.wasmByteCode = $util.newBuffer([]); - MsgStoreCode.prototype.source = ""; - MsgStoreCode.prototype.builder = ""; - MsgStoreCode.prototype.instantiatePermission = null; - MsgStoreCode.create = function create(properties) { - return new MsgStoreCode(properties); - }; - MsgStoreCode.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - if (m.sender != null && Object.hasOwnProperty.call(m, "sender")) w.uint32(10).string(m.sender); - if (m.wasmByteCode != null && Object.hasOwnProperty.call(m, "wasmByteCode")) - w.uint32(18).bytes(m.wasmByteCode); - if (m.source != null && Object.hasOwnProperty.call(m, "source")) w.uint32(26).string(m.source); - if (m.builder != null && Object.hasOwnProperty.call(m, "builder")) w.uint32(34).string(m.builder); - if (m.instantiatePermission != null && Object.hasOwnProperty.call(m, "instantiatePermission")) - $root.cosmwasm.wasm.v1beta1.AccessConfig.encode( - m.instantiatePermission, - w.uint32(42).fork(), - ).ldelim(); - return w; - }; - MsgStoreCode.decode = function decode(r, l) { - if (!(r instanceof $Reader)) r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, - m = new $root.cosmwasm.wasm.v1beta1.MsgStoreCode(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.sender = r.string(); - break; - case 2: - m.wasmByteCode = r.bytes(); - break; - case 3: - m.source = r.string(); - break; - case 4: - m.builder = r.string(); - break; - case 5: - m.instantiatePermission = $root.cosmwasm.wasm.v1beta1.AccessConfig.decode(r, r.uint32()); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return MsgStoreCode; - })(); - v1beta1.MsgInstantiateContract = (function () { - function MsgInstantiateContract(p) { - this.initFunds = []; - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; - } - MsgInstantiateContract.prototype.sender = ""; - MsgInstantiateContract.prototype.admin = ""; - MsgInstantiateContract.prototype.codeId = $util.Long ? $util.Long.fromBits(0, 0, true) : 0; - MsgInstantiateContract.prototype.label = ""; - MsgInstantiateContract.prototype.initMsg = $util.newBuffer([]); - MsgInstantiateContract.prototype.initFunds = $util.emptyArray; - MsgInstantiateContract.create = function create(properties) { - return new MsgInstantiateContract(properties); - }; - MsgInstantiateContract.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - if (m.sender != null && Object.hasOwnProperty.call(m, "sender")) w.uint32(10).string(m.sender); - if (m.admin != null && Object.hasOwnProperty.call(m, "admin")) w.uint32(18).string(m.admin); - if (m.codeId != null && Object.hasOwnProperty.call(m, "codeId")) w.uint32(24).uint64(m.codeId); - if (m.label != null && Object.hasOwnProperty.call(m, "label")) w.uint32(34).string(m.label); - if (m.initMsg != null && Object.hasOwnProperty.call(m, "initMsg")) w.uint32(42).bytes(m.initMsg); - if (m.initFunds != null && m.initFunds.length) { - for (var i = 0; i < m.initFunds.length; ++i) - $root.cosmos.base.v1beta1.Coin.encode(m.initFunds[i], w.uint32(50).fork()).ldelim(); - } - return w; - }; - MsgInstantiateContract.decode = function decode(r, l) { - if (!(r instanceof $Reader)) r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, - m = new $root.cosmwasm.wasm.v1beta1.MsgInstantiateContract(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.sender = r.string(); - break; - case 2: - m.admin = r.string(); - break; - case 3: - m.codeId = r.uint64(); - break; - case 4: - m.label = r.string(); - break; - case 5: - m.initMsg = r.bytes(); - break; - case 6: - if (!(m.initFunds && m.initFunds.length)) m.initFunds = []; - m.initFunds.push($root.cosmos.base.v1beta1.Coin.decode(r, r.uint32())); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return MsgInstantiateContract; - })(); - v1beta1.MsgExecuteContract = (function () { - function MsgExecuteContract(p) { - this.sentFunds = []; - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; - } - MsgExecuteContract.prototype.sender = ""; - MsgExecuteContract.prototype.contract = ""; - MsgExecuteContract.prototype.msg = $util.newBuffer([]); - MsgExecuteContract.prototype.sentFunds = $util.emptyArray; - MsgExecuteContract.create = function create(properties) { - return new MsgExecuteContract(properties); - }; - MsgExecuteContract.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - if (m.sender != null && Object.hasOwnProperty.call(m, "sender")) w.uint32(10).string(m.sender); - if (m.contract != null && Object.hasOwnProperty.call(m, "contract")) - w.uint32(18).string(m.contract); - if (m.msg != null && Object.hasOwnProperty.call(m, "msg")) w.uint32(26).bytes(m.msg); - if (m.sentFunds != null && m.sentFunds.length) { - for (var i = 0; i < m.sentFunds.length; ++i) - $root.cosmos.base.v1beta1.Coin.encode(m.sentFunds[i], w.uint32(42).fork()).ldelim(); - } - return w; - }; - MsgExecuteContract.decode = function decode(r, l) { - if (!(r instanceof $Reader)) r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, - m = new $root.cosmwasm.wasm.v1beta1.MsgExecuteContract(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.sender = r.string(); - break; - case 2: - m.contract = r.string(); - break; - case 3: - m.msg = r.bytes(); - break; - case 5: - if (!(m.sentFunds && m.sentFunds.length)) m.sentFunds = []; - m.sentFunds.push($root.cosmos.base.v1beta1.Coin.decode(r, r.uint32())); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return MsgExecuteContract; - })(); - v1beta1.MsgMigrateContract = (function () { - function MsgMigrateContract(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; - } - MsgMigrateContract.prototype.sender = ""; - MsgMigrateContract.prototype.contract = ""; - MsgMigrateContract.prototype.codeId = $util.Long ? $util.Long.fromBits(0, 0, true) : 0; - MsgMigrateContract.prototype.migrateMsg = $util.newBuffer([]); - MsgMigrateContract.create = function create(properties) { - return new MsgMigrateContract(properties); - }; - MsgMigrateContract.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - if (m.sender != null && Object.hasOwnProperty.call(m, "sender")) w.uint32(10).string(m.sender); - if (m.contract != null && Object.hasOwnProperty.call(m, "contract")) - w.uint32(18).string(m.contract); - if (m.codeId != null && Object.hasOwnProperty.call(m, "codeId")) w.uint32(24).uint64(m.codeId); - if (m.migrateMsg != null && Object.hasOwnProperty.call(m, "migrateMsg")) - w.uint32(34).bytes(m.migrateMsg); - return w; - }; - MsgMigrateContract.decode = function decode(r, l) { - if (!(r instanceof $Reader)) r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, - m = new $root.cosmwasm.wasm.v1beta1.MsgMigrateContract(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.sender = r.string(); - break; - case 2: - m.contract = r.string(); - break; - case 3: - m.codeId = r.uint64(); - break; - case 4: - m.migrateMsg = r.bytes(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return MsgMigrateContract; - })(); - v1beta1.MsgUpdateAdmin = (function () { - function MsgUpdateAdmin(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; - } - MsgUpdateAdmin.prototype.sender = ""; - MsgUpdateAdmin.prototype.newAdmin = ""; - MsgUpdateAdmin.prototype.contract = ""; - MsgUpdateAdmin.create = function create(properties) { - return new MsgUpdateAdmin(properties); - }; - MsgUpdateAdmin.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - if (m.sender != null && Object.hasOwnProperty.call(m, "sender")) w.uint32(10).string(m.sender); - if (m.newAdmin != null && Object.hasOwnProperty.call(m, "newAdmin")) - w.uint32(18).string(m.newAdmin); - if (m.contract != null && Object.hasOwnProperty.call(m, "contract")) - w.uint32(26).string(m.contract); - return w; - }; - MsgUpdateAdmin.decode = function decode(r, l) { - if (!(r instanceof $Reader)) r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, - m = new $root.cosmwasm.wasm.v1beta1.MsgUpdateAdmin(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.sender = r.string(); - break; - case 2: - m.newAdmin = r.string(); - break; - case 3: - m.contract = r.string(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return MsgUpdateAdmin; - })(); - v1beta1.MsgClearAdmin = (function () { - function MsgClearAdmin(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; - } - MsgClearAdmin.prototype.sender = ""; - MsgClearAdmin.prototype.contract = ""; - MsgClearAdmin.create = function create(properties) { - return new MsgClearAdmin(properties); - }; - MsgClearAdmin.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - if (m.sender != null && Object.hasOwnProperty.call(m, "sender")) w.uint32(10).string(m.sender); - if (m.contract != null && Object.hasOwnProperty.call(m, "contract")) - w.uint32(26).string(m.contract); - return w; - }; - MsgClearAdmin.decode = function decode(r, l) { - if (!(r instanceof $Reader)) r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, - m = new $root.cosmwasm.wasm.v1beta1.MsgClearAdmin(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.sender = r.string(); - break; - case 3: - m.contract = r.string(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return MsgClearAdmin; - })(); v1beta1.Query = (function () { function Query(rpcImpl, requestDelimited, responseDelimited) { $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); @@ -1177,6 +862,603 @@ exports.cosmwasm = $root.cosmwasm = (() => { }; return QueryCodesResponse; })(); + v1beta1.Msg = (function () { + function Msg(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } + (Msg.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Msg; + Msg.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); + }; + Object.defineProperty( + (Msg.prototype.storeCode = function storeCode(request, callback) { + return this.rpcCall( + storeCode, + $root.cosmwasm.wasm.v1beta1.MsgStoreCode, + $root.cosmwasm.wasm.v1beta1.MsgStoreCodeResponse, + request, + callback, + ); + }), + "name", + { value: "StoreCode" }, + ); + Object.defineProperty( + (Msg.prototype.instantiateContract = function instantiateContract(request, callback) { + return this.rpcCall( + instantiateContract, + $root.cosmwasm.wasm.v1beta1.MsgInstantiateContract, + $root.cosmwasm.wasm.v1beta1.MsgInstantiateContractResponse, + request, + callback, + ); + }), + "name", + { value: "InstantiateContract" }, + ); + Object.defineProperty( + (Msg.prototype.executeContract = function executeContract(request, callback) { + return this.rpcCall( + executeContract, + $root.cosmwasm.wasm.v1beta1.MsgExecuteContract, + $root.cosmwasm.wasm.v1beta1.MsgExecuteContractResponse, + request, + callback, + ); + }), + "name", + { value: "ExecuteContract" }, + ); + Object.defineProperty( + (Msg.prototype.migrateContract = function migrateContract(request, callback) { + return this.rpcCall( + migrateContract, + $root.cosmwasm.wasm.v1beta1.MsgMigrateContract, + $root.cosmwasm.wasm.v1beta1.MsgMigrateContractResponse, + request, + callback, + ); + }), + "name", + { value: "MigrateContract" }, + ); + Object.defineProperty( + (Msg.prototype.updateAdmin = function updateAdmin(request, callback) { + return this.rpcCall( + updateAdmin, + $root.cosmwasm.wasm.v1beta1.MsgUpdateAdmin, + $root.cosmwasm.wasm.v1beta1.MsgUpdateAdminResponse, + request, + callback, + ); + }), + "name", + { value: "UpdateAdmin" }, + ); + Object.defineProperty( + (Msg.prototype.clearAdmin = function clearAdmin(request, callback) { + return this.rpcCall( + clearAdmin, + $root.cosmwasm.wasm.v1beta1.MsgClearAdmin, + $root.cosmwasm.wasm.v1beta1.MsgClearAdminResponse, + request, + callback, + ); + }), + "name", + { value: "ClearAdmin" }, + ); + return Msg; + })(); + v1beta1.MsgStoreCode = (function () { + function MsgStoreCode(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; + } + MsgStoreCode.prototype.sender = ""; + MsgStoreCode.prototype.wasmByteCode = $util.newBuffer([]); + MsgStoreCode.prototype.source = ""; + MsgStoreCode.prototype.builder = ""; + MsgStoreCode.prototype.instantiatePermission = null; + MsgStoreCode.create = function create(properties) { + return new MsgStoreCode(properties); + }; + MsgStoreCode.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.sender != null && Object.hasOwnProperty.call(m, "sender")) w.uint32(10).string(m.sender); + if (m.wasmByteCode != null && Object.hasOwnProperty.call(m, "wasmByteCode")) + w.uint32(18).bytes(m.wasmByteCode); + if (m.source != null && Object.hasOwnProperty.call(m, "source")) w.uint32(26).string(m.source); + if (m.builder != null && Object.hasOwnProperty.call(m, "builder")) w.uint32(34).string(m.builder); + if (m.instantiatePermission != null && Object.hasOwnProperty.call(m, "instantiatePermission")) + $root.cosmwasm.wasm.v1beta1.AccessConfig.encode( + m.instantiatePermission, + w.uint32(42).fork(), + ).ldelim(); + return w; + }; + MsgStoreCode.decode = function decode(r, l) { + if (!(r instanceof $Reader)) r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, + m = new $root.cosmwasm.wasm.v1beta1.MsgStoreCode(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.sender = r.string(); + break; + case 2: + m.wasmByteCode = r.bytes(); + break; + case 3: + m.source = r.string(); + break; + case 4: + m.builder = r.string(); + break; + case 5: + m.instantiatePermission = $root.cosmwasm.wasm.v1beta1.AccessConfig.decode(r, r.uint32()); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return MsgStoreCode; + })(); + v1beta1.MsgStoreCodeResponse = (function () { + function MsgStoreCodeResponse(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; + } + MsgStoreCodeResponse.prototype.codeId = $util.Long ? $util.Long.fromBits(0, 0, true) : 0; + MsgStoreCodeResponse.create = function create(properties) { + return new MsgStoreCodeResponse(properties); + }; + MsgStoreCodeResponse.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.codeId != null && Object.hasOwnProperty.call(m, "codeId")) w.uint32(8).uint64(m.codeId); + return w; + }; + MsgStoreCodeResponse.decode = function decode(r, l) { + if (!(r instanceof $Reader)) r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, + m = new $root.cosmwasm.wasm.v1beta1.MsgStoreCodeResponse(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.codeId = r.uint64(); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return MsgStoreCodeResponse; + })(); + v1beta1.MsgInstantiateContract = (function () { + function MsgInstantiateContract(p) { + this.initFunds = []; + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; + } + MsgInstantiateContract.prototype.sender = ""; + MsgInstantiateContract.prototype.admin = ""; + MsgInstantiateContract.prototype.codeId = $util.Long ? $util.Long.fromBits(0, 0, true) : 0; + MsgInstantiateContract.prototype.label = ""; + MsgInstantiateContract.prototype.initMsg = $util.newBuffer([]); + MsgInstantiateContract.prototype.initFunds = $util.emptyArray; + MsgInstantiateContract.create = function create(properties) { + return new MsgInstantiateContract(properties); + }; + MsgInstantiateContract.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.sender != null && Object.hasOwnProperty.call(m, "sender")) w.uint32(10).string(m.sender); + if (m.admin != null && Object.hasOwnProperty.call(m, "admin")) w.uint32(18).string(m.admin); + if (m.codeId != null && Object.hasOwnProperty.call(m, "codeId")) w.uint32(24).uint64(m.codeId); + if (m.label != null && Object.hasOwnProperty.call(m, "label")) w.uint32(34).string(m.label); + if (m.initMsg != null && Object.hasOwnProperty.call(m, "initMsg")) w.uint32(42).bytes(m.initMsg); + if (m.initFunds != null && m.initFunds.length) { + for (var i = 0; i < m.initFunds.length; ++i) + $root.cosmos.base.v1beta1.Coin.encode(m.initFunds[i], w.uint32(50).fork()).ldelim(); + } + return w; + }; + MsgInstantiateContract.decode = function decode(r, l) { + if (!(r instanceof $Reader)) r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, + m = new $root.cosmwasm.wasm.v1beta1.MsgInstantiateContract(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.sender = r.string(); + break; + case 2: + m.admin = r.string(); + break; + case 3: + m.codeId = r.uint64(); + break; + case 4: + m.label = r.string(); + break; + case 5: + m.initMsg = r.bytes(); + break; + case 6: + if (!(m.initFunds && m.initFunds.length)) m.initFunds = []; + m.initFunds.push($root.cosmos.base.v1beta1.Coin.decode(r, r.uint32())); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return MsgInstantiateContract; + })(); + v1beta1.MsgInstantiateContractResponse = (function () { + function MsgInstantiateContractResponse(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; + } + MsgInstantiateContractResponse.prototype.address = ""; + MsgInstantiateContractResponse.create = function create(properties) { + return new MsgInstantiateContractResponse(properties); + }; + MsgInstantiateContractResponse.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.address != null && Object.hasOwnProperty.call(m, "address")) w.uint32(10).string(m.address); + return w; + }; + MsgInstantiateContractResponse.decode = function decode(r, l) { + if (!(r instanceof $Reader)) r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, + m = new $root.cosmwasm.wasm.v1beta1.MsgInstantiateContractResponse(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.address = r.string(); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return MsgInstantiateContractResponse; + })(); + v1beta1.MsgExecuteContract = (function () { + function MsgExecuteContract(p) { + this.sentFunds = []; + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; + } + MsgExecuteContract.prototype.sender = ""; + MsgExecuteContract.prototype.contract = ""; + MsgExecuteContract.prototype.msg = $util.newBuffer([]); + MsgExecuteContract.prototype.sentFunds = $util.emptyArray; + MsgExecuteContract.create = function create(properties) { + return new MsgExecuteContract(properties); + }; + MsgExecuteContract.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.sender != null && Object.hasOwnProperty.call(m, "sender")) w.uint32(10).string(m.sender); + if (m.contract != null && Object.hasOwnProperty.call(m, "contract")) + w.uint32(18).string(m.contract); + if (m.msg != null && Object.hasOwnProperty.call(m, "msg")) w.uint32(26).bytes(m.msg); + if (m.sentFunds != null && m.sentFunds.length) { + for (var i = 0; i < m.sentFunds.length; ++i) + $root.cosmos.base.v1beta1.Coin.encode(m.sentFunds[i], w.uint32(42).fork()).ldelim(); + } + return w; + }; + MsgExecuteContract.decode = function decode(r, l) { + if (!(r instanceof $Reader)) r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, + m = new $root.cosmwasm.wasm.v1beta1.MsgExecuteContract(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.sender = r.string(); + break; + case 2: + m.contract = r.string(); + break; + case 3: + m.msg = r.bytes(); + break; + case 5: + if (!(m.sentFunds && m.sentFunds.length)) m.sentFunds = []; + m.sentFunds.push($root.cosmos.base.v1beta1.Coin.decode(r, r.uint32())); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return MsgExecuteContract; + })(); + v1beta1.MsgExecuteContractResponse = (function () { + function MsgExecuteContractResponse(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; + } + MsgExecuteContractResponse.prototype.data = $util.newBuffer([]); + MsgExecuteContractResponse.create = function create(properties) { + return new MsgExecuteContractResponse(properties); + }; + MsgExecuteContractResponse.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.data != null && Object.hasOwnProperty.call(m, "data")) w.uint32(10).bytes(m.data); + return w; + }; + MsgExecuteContractResponse.decode = function decode(r, l) { + if (!(r instanceof $Reader)) r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, + m = new $root.cosmwasm.wasm.v1beta1.MsgExecuteContractResponse(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.data = r.bytes(); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return MsgExecuteContractResponse; + })(); + v1beta1.MsgMigrateContract = (function () { + function MsgMigrateContract(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; + } + MsgMigrateContract.prototype.sender = ""; + MsgMigrateContract.prototype.contract = ""; + MsgMigrateContract.prototype.codeId = $util.Long ? $util.Long.fromBits(0, 0, true) : 0; + MsgMigrateContract.prototype.migrateMsg = $util.newBuffer([]); + MsgMigrateContract.create = function create(properties) { + return new MsgMigrateContract(properties); + }; + MsgMigrateContract.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.sender != null && Object.hasOwnProperty.call(m, "sender")) w.uint32(10).string(m.sender); + if (m.contract != null && Object.hasOwnProperty.call(m, "contract")) + w.uint32(18).string(m.contract); + if (m.codeId != null && Object.hasOwnProperty.call(m, "codeId")) w.uint32(24).uint64(m.codeId); + if (m.migrateMsg != null && Object.hasOwnProperty.call(m, "migrateMsg")) + w.uint32(34).bytes(m.migrateMsg); + return w; + }; + MsgMigrateContract.decode = function decode(r, l) { + if (!(r instanceof $Reader)) r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, + m = new $root.cosmwasm.wasm.v1beta1.MsgMigrateContract(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.sender = r.string(); + break; + case 2: + m.contract = r.string(); + break; + case 3: + m.codeId = r.uint64(); + break; + case 4: + m.migrateMsg = r.bytes(); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return MsgMigrateContract; + })(); + v1beta1.MsgMigrateContractResponse = (function () { + function MsgMigrateContractResponse(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; + } + MsgMigrateContractResponse.prototype.data = $util.newBuffer([]); + MsgMigrateContractResponse.create = function create(properties) { + return new MsgMigrateContractResponse(properties); + }; + MsgMigrateContractResponse.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.data != null && Object.hasOwnProperty.call(m, "data")) w.uint32(10).bytes(m.data); + return w; + }; + MsgMigrateContractResponse.decode = function decode(r, l) { + if (!(r instanceof $Reader)) r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, + m = new $root.cosmwasm.wasm.v1beta1.MsgMigrateContractResponse(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.data = r.bytes(); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return MsgMigrateContractResponse; + })(); + v1beta1.MsgUpdateAdmin = (function () { + function MsgUpdateAdmin(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; + } + MsgUpdateAdmin.prototype.sender = ""; + MsgUpdateAdmin.prototype.newAdmin = ""; + MsgUpdateAdmin.prototype.contract = ""; + MsgUpdateAdmin.create = function create(properties) { + return new MsgUpdateAdmin(properties); + }; + MsgUpdateAdmin.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.sender != null && Object.hasOwnProperty.call(m, "sender")) w.uint32(10).string(m.sender); + if (m.newAdmin != null && Object.hasOwnProperty.call(m, "newAdmin")) + w.uint32(18).string(m.newAdmin); + if (m.contract != null && Object.hasOwnProperty.call(m, "contract")) + w.uint32(26).string(m.contract); + return w; + }; + MsgUpdateAdmin.decode = function decode(r, l) { + if (!(r instanceof $Reader)) r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, + m = new $root.cosmwasm.wasm.v1beta1.MsgUpdateAdmin(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.sender = r.string(); + break; + case 2: + m.newAdmin = r.string(); + break; + case 3: + m.contract = r.string(); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return MsgUpdateAdmin; + })(); + v1beta1.MsgUpdateAdminResponse = (function () { + function MsgUpdateAdminResponse(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; + } + MsgUpdateAdminResponse.create = function create(properties) { + return new MsgUpdateAdminResponse(properties); + }; + MsgUpdateAdminResponse.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + return w; + }; + MsgUpdateAdminResponse.decode = function decode(r, l) { + if (!(r instanceof $Reader)) r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, + m = new $root.cosmwasm.wasm.v1beta1.MsgUpdateAdminResponse(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return MsgUpdateAdminResponse; + })(); + v1beta1.MsgClearAdmin = (function () { + function MsgClearAdmin(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; + } + MsgClearAdmin.prototype.sender = ""; + MsgClearAdmin.prototype.contract = ""; + MsgClearAdmin.create = function create(properties) { + return new MsgClearAdmin(properties); + }; + MsgClearAdmin.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.sender != null && Object.hasOwnProperty.call(m, "sender")) w.uint32(10).string(m.sender); + if (m.contract != null && Object.hasOwnProperty.call(m, "contract")) + w.uint32(26).string(m.contract); + return w; + }; + MsgClearAdmin.decode = function decode(r, l) { + if (!(r instanceof $Reader)) r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, + m = new $root.cosmwasm.wasm.v1beta1.MsgClearAdmin(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.sender = r.string(); + break; + case 3: + m.contract = r.string(); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return MsgClearAdmin; + })(); + v1beta1.MsgClearAdminResponse = (function () { + function MsgClearAdminResponse(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; + } + MsgClearAdminResponse.create = function create(properties) { + return new MsgClearAdminResponse(properties); + }; + MsgClearAdminResponse.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + return w; + }; + MsgClearAdminResponse.decode = function decode(r, l) { + if (!(r instanceof $Reader)) r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, + m = new $root.cosmwasm.wasm.v1beta1.MsgClearAdminResponse(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return MsgClearAdminResponse; + })(); v1beta1.AccessType = (function () { const valuesById = {}, values = Object.create(valuesById); @@ -1568,1795 +1850,6 @@ exports.cosmwasm = $root.cosmwasm = (() => { })(); return cosmwasm; })(); -exports.google = $root.google = (() => { - const google = {}; - google.api = (function () { - const api = {}; - api.Http = (function () { - function Http(p) { - this.rules = []; - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; - } - Http.prototype.rules = $util.emptyArray; - Http.create = function create(properties) { - return new Http(properties); - }; - Http.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - if (m.rules != null && m.rules.length) { - for (var i = 0; i < m.rules.length; ++i) - $root.google.api.HttpRule.encode(m.rules[i], w.uint32(10).fork()).ldelim(); - } - return w; - }; - Http.decode = function decode(r, l) { - if (!(r instanceof $Reader)) r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, - m = new $root.google.api.Http(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - if (!(m.rules && m.rules.length)) m.rules = []; - m.rules.push($root.google.api.HttpRule.decode(r, r.uint32())); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return Http; - })(); - api.HttpRule = (function () { - function HttpRule(p) { - this.additionalBindings = []; - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; - } - HttpRule.prototype.get = ""; - HttpRule.prototype.put = ""; - HttpRule.prototype.post = ""; - HttpRule.prototype["delete"] = ""; - HttpRule.prototype.patch = ""; - HttpRule.prototype.custom = null; - HttpRule.prototype.selector = ""; - HttpRule.prototype.body = ""; - HttpRule.prototype.additionalBindings = $util.emptyArray; - let $oneOfFields; - Object.defineProperty(HttpRule.prototype, "pattern", { - get: $util.oneOfGetter(($oneOfFields = ["get", "put", "post", "delete", "patch", "custom"])), - set: $util.oneOfSetter($oneOfFields), - }); - HttpRule.create = function create(properties) { - return new HttpRule(properties); - }; - HttpRule.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - if (m.selector != null && Object.hasOwnProperty.call(m, "selector")) w.uint32(10).string(m.selector); - if (m.get != null && Object.hasOwnProperty.call(m, "get")) w.uint32(18).string(m.get); - if (m.put != null && Object.hasOwnProperty.call(m, "put")) w.uint32(26).string(m.put); - if (m.post != null && Object.hasOwnProperty.call(m, "post")) w.uint32(34).string(m.post); - if (m["delete"] != null && Object.hasOwnProperty.call(m, "delete")) w.uint32(42).string(m["delete"]); - if (m.patch != null && Object.hasOwnProperty.call(m, "patch")) w.uint32(50).string(m.patch); - if (m.body != null && Object.hasOwnProperty.call(m, "body")) w.uint32(58).string(m.body); - if (m.custom != null && Object.hasOwnProperty.call(m, "custom")) - $root.google.api.CustomHttpPattern.encode(m.custom, w.uint32(66).fork()).ldelim(); - if (m.additionalBindings != null && m.additionalBindings.length) { - for (var i = 0; i < m.additionalBindings.length; ++i) - $root.google.api.HttpRule.encode(m.additionalBindings[i], w.uint32(90).fork()).ldelim(); - } - return w; - }; - HttpRule.decode = function decode(r, l) { - if (!(r instanceof $Reader)) r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, - m = new $root.google.api.HttpRule(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 2: - m.get = r.string(); - break; - case 3: - m.put = r.string(); - break; - case 4: - m.post = r.string(); - break; - case 5: - m["delete"] = r.string(); - break; - case 6: - m.patch = r.string(); - break; - case 8: - m.custom = $root.google.api.CustomHttpPattern.decode(r, r.uint32()); - break; - case 1: - m.selector = r.string(); - break; - case 7: - m.body = r.string(); - break; - case 11: - if (!(m.additionalBindings && m.additionalBindings.length)) m.additionalBindings = []; - m.additionalBindings.push($root.google.api.HttpRule.decode(r, r.uint32())); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return HttpRule; - })(); - api.CustomHttpPattern = (function () { - function CustomHttpPattern(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; - } - CustomHttpPattern.prototype.kind = ""; - CustomHttpPattern.prototype.path = ""; - CustomHttpPattern.create = function create(properties) { - return new CustomHttpPattern(properties); - }; - CustomHttpPattern.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - if (m.kind != null && Object.hasOwnProperty.call(m, "kind")) w.uint32(10).string(m.kind); - if (m.path != null && Object.hasOwnProperty.call(m, "path")) w.uint32(18).string(m.path); - return w; - }; - CustomHttpPattern.decode = function decode(r, l) { - if (!(r instanceof $Reader)) r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, - m = new $root.google.api.CustomHttpPattern(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.kind = r.string(); - break; - case 2: - m.path = r.string(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return CustomHttpPattern; - })(); - return api; - })(); - google.protobuf = (function () { - const protobuf = {}; - protobuf.FileDescriptorSet = (function () { - function FileDescriptorSet(p) { - this.file = []; - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; - } - FileDescriptorSet.prototype.file = $util.emptyArray; - FileDescriptorSet.create = function create(properties) { - return new FileDescriptorSet(properties); - }; - FileDescriptorSet.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - if (m.file != null && m.file.length) { - for (var i = 0; i < m.file.length; ++i) - $root.google.protobuf.FileDescriptorProto.encode(m.file[i], w.uint32(10).fork()).ldelim(); - } - return w; - }; - FileDescriptorSet.decode = function decode(r, l) { - if (!(r instanceof $Reader)) r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, - m = new $root.google.protobuf.FileDescriptorSet(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - if (!(m.file && m.file.length)) m.file = []; - m.file.push($root.google.protobuf.FileDescriptorProto.decode(r, r.uint32())); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return FileDescriptorSet; - })(); - protobuf.FileDescriptorProto = (function () { - function FileDescriptorProto(p) { - this.dependency = []; - this.publicDependency = []; - this.weakDependency = []; - this.messageType = []; - this.enumType = []; - this.service = []; - this.extension = []; - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; - } - FileDescriptorProto.prototype.name = ""; - FileDescriptorProto.prototype["package"] = ""; - FileDescriptorProto.prototype.dependency = $util.emptyArray; - FileDescriptorProto.prototype.publicDependency = $util.emptyArray; - FileDescriptorProto.prototype.weakDependency = $util.emptyArray; - FileDescriptorProto.prototype.messageType = $util.emptyArray; - FileDescriptorProto.prototype.enumType = $util.emptyArray; - FileDescriptorProto.prototype.service = $util.emptyArray; - FileDescriptorProto.prototype.extension = $util.emptyArray; - FileDescriptorProto.prototype.options = null; - FileDescriptorProto.prototype.sourceCodeInfo = null; - FileDescriptorProto.prototype.syntax = ""; - FileDescriptorProto.create = function create(properties) { - return new FileDescriptorProto(properties); - }; - FileDescriptorProto.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - if (m.name != null && Object.hasOwnProperty.call(m, "name")) w.uint32(10).string(m.name); - if (m["package"] != null && Object.hasOwnProperty.call(m, "package")) - w.uint32(18).string(m["package"]); - if (m.dependency != null && m.dependency.length) { - for (var i = 0; i < m.dependency.length; ++i) w.uint32(26).string(m.dependency[i]); - } - if (m.messageType != null && m.messageType.length) { - for (var i = 0; i < m.messageType.length; ++i) - $root.google.protobuf.DescriptorProto.encode(m.messageType[i], w.uint32(34).fork()).ldelim(); - } - if (m.enumType != null && m.enumType.length) { - for (var i = 0; i < m.enumType.length; ++i) - $root.google.protobuf.EnumDescriptorProto.encode(m.enumType[i], w.uint32(42).fork()).ldelim(); - } - if (m.service != null && m.service.length) { - for (var i = 0; i < m.service.length; ++i) - $root.google.protobuf.ServiceDescriptorProto.encode(m.service[i], w.uint32(50).fork()).ldelim(); - } - if (m.extension != null && m.extension.length) { - for (var i = 0; i < m.extension.length; ++i) - $root.google.protobuf.FieldDescriptorProto.encode(m.extension[i], w.uint32(58).fork()).ldelim(); - } - if (m.options != null && Object.hasOwnProperty.call(m, "options")) - $root.google.protobuf.FileOptions.encode(m.options, w.uint32(66).fork()).ldelim(); - if (m.sourceCodeInfo != null && Object.hasOwnProperty.call(m, "sourceCodeInfo")) - $root.google.protobuf.SourceCodeInfo.encode(m.sourceCodeInfo, w.uint32(74).fork()).ldelim(); - if (m.publicDependency != null && m.publicDependency.length) { - for (var i = 0; i < m.publicDependency.length; ++i) w.uint32(80).int32(m.publicDependency[i]); - } - if (m.weakDependency != null && m.weakDependency.length) { - for (var i = 0; i < m.weakDependency.length; ++i) w.uint32(88).int32(m.weakDependency[i]); - } - if (m.syntax != null && Object.hasOwnProperty.call(m, "syntax")) w.uint32(98).string(m.syntax); - return w; - }; - FileDescriptorProto.decode = function decode(r, l) { - if (!(r instanceof $Reader)) r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, - m = new $root.google.protobuf.FileDescriptorProto(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.name = r.string(); - break; - case 2: - m["package"] = r.string(); - break; - case 3: - if (!(m.dependency && m.dependency.length)) m.dependency = []; - m.dependency.push(r.string()); - break; - case 10: - if (!(m.publicDependency && m.publicDependency.length)) m.publicDependency = []; - if ((t & 7) === 2) { - var c2 = r.uint32() + r.pos; - while (r.pos < c2) m.publicDependency.push(r.int32()); - } else m.publicDependency.push(r.int32()); - break; - case 11: - if (!(m.weakDependency && m.weakDependency.length)) m.weakDependency = []; - if ((t & 7) === 2) { - var c2 = r.uint32() + r.pos; - while (r.pos < c2) m.weakDependency.push(r.int32()); - } else m.weakDependency.push(r.int32()); - break; - case 4: - if (!(m.messageType && m.messageType.length)) m.messageType = []; - m.messageType.push($root.google.protobuf.DescriptorProto.decode(r, r.uint32())); - break; - case 5: - if (!(m.enumType && m.enumType.length)) m.enumType = []; - m.enumType.push($root.google.protobuf.EnumDescriptorProto.decode(r, r.uint32())); - break; - case 6: - if (!(m.service && m.service.length)) m.service = []; - m.service.push($root.google.protobuf.ServiceDescriptorProto.decode(r, r.uint32())); - break; - case 7: - if (!(m.extension && m.extension.length)) m.extension = []; - m.extension.push($root.google.protobuf.FieldDescriptorProto.decode(r, r.uint32())); - break; - case 8: - m.options = $root.google.protobuf.FileOptions.decode(r, r.uint32()); - break; - case 9: - m.sourceCodeInfo = $root.google.protobuf.SourceCodeInfo.decode(r, r.uint32()); - break; - case 12: - m.syntax = r.string(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return FileDescriptorProto; - })(); - protobuf.DescriptorProto = (function () { - function DescriptorProto(p) { - this.field = []; - this.extension = []; - this.nestedType = []; - this.enumType = []; - this.extensionRange = []; - this.oneofDecl = []; - this.reservedRange = []; - this.reservedName = []; - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; - } - DescriptorProto.prototype.name = ""; - DescriptorProto.prototype.field = $util.emptyArray; - DescriptorProto.prototype.extension = $util.emptyArray; - DescriptorProto.prototype.nestedType = $util.emptyArray; - DescriptorProto.prototype.enumType = $util.emptyArray; - DescriptorProto.prototype.extensionRange = $util.emptyArray; - DescriptorProto.prototype.oneofDecl = $util.emptyArray; - DescriptorProto.prototype.options = null; - DescriptorProto.prototype.reservedRange = $util.emptyArray; - DescriptorProto.prototype.reservedName = $util.emptyArray; - DescriptorProto.create = function create(properties) { - return new DescriptorProto(properties); - }; - DescriptorProto.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - if (m.name != null && Object.hasOwnProperty.call(m, "name")) w.uint32(10).string(m.name); - if (m.field != null && m.field.length) { - for (var i = 0; i < m.field.length; ++i) - $root.google.protobuf.FieldDescriptorProto.encode(m.field[i], w.uint32(18).fork()).ldelim(); - } - if (m.nestedType != null && m.nestedType.length) { - for (var i = 0; i < m.nestedType.length; ++i) - $root.google.protobuf.DescriptorProto.encode(m.nestedType[i], w.uint32(26).fork()).ldelim(); - } - if (m.enumType != null && m.enumType.length) { - for (var i = 0; i < m.enumType.length; ++i) - $root.google.protobuf.EnumDescriptorProto.encode(m.enumType[i], w.uint32(34).fork()).ldelim(); - } - if (m.extensionRange != null && m.extensionRange.length) { - for (var i = 0; i < m.extensionRange.length; ++i) - $root.google.protobuf.DescriptorProto.ExtensionRange.encode( - m.extensionRange[i], - w.uint32(42).fork(), - ).ldelim(); - } - if (m.extension != null && m.extension.length) { - for (var i = 0; i < m.extension.length; ++i) - $root.google.protobuf.FieldDescriptorProto.encode(m.extension[i], w.uint32(50).fork()).ldelim(); - } - if (m.options != null && Object.hasOwnProperty.call(m, "options")) - $root.google.protobuf.MessageOptions.encode(m.options, w.uint32(58).fork()).ldelim(); - if (m.oneofDecl != null && m.oneofDecl.length) { - for (var i = 0; i < m.oneofDecl.length; ++i) - $root.google.protobuf.OneofDescriptorProto.encode(m.oneofDecl[i], w.uint32(66).fork()).ldelim(); - } - if (m.reservedRange != null && m.reservedRange.length) { - for (var i = 0; i < m.reservedRange.length; ++i) - $root.google.protobuf.DescriptorProto.ReservedRange.encode( - m.reservedRange[i], - w.uint32(74).fork(), - ).ldelim(); - } - if (m.reservedName != null && m.reservedName.length) { - for (var i = 0; i < m.reservedName.length; ++i) w.uint32(82).string(m.reservedName[i]); - } - return w; - }; - DescriptorProto.decode = function decode(r, l) { - if (!(r instanceof $Reader)) r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, - m = new $root.google.protobuf.DescriptorProto(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.name = r.string(); - break; - case 2: - if (!(m.field && m.field.length)) m.field = []; - m.field.push($root.google.protobuf.FieldDescriptorProto.decode(r, r.uint32())); - break; - case 6: - if (!(m.extension && m.extension.length)) m.extension = []; - m.extension.push($root.google.protobuf.FieldDescriptorProto.decode(r, r.uint32())); - break; - case 3: - if (!(m.nestedType && m.nestedType.length)) m.nestedType = []; - m.nestedType.push($root.google.protobuf.DescriptorProto.decode(r, r.uint32())); - break; - case 4: - if (!(m.enumType && m.enumType.length)) m.enumType = []; - m.enumType.push($root.google.protobuf.EnumDescriptorProto.decode(r, r.uint32())); - break; - case 5: - if (!(m.extensionRange && m.extensionRange.length)) m.extensionRange = []; - m.extensionRange.push( - $root.google.protobuf.DescriptorProto.ExtensionRange.decode(r, r.uint32()), - ); - break; - case 8: - if (!(m.oneofDecl && m.oneofDecl.length)) m.oneofDecl = []; - m.oneofDecl.push($root.google.protobuf.OneofDescriptorProto.decode(r, r.uint32())); - break; - case 7: - m.options = $root.google.protobuf.MessageOptions.decode(r, r.uint32()); - break; - case 9: - if (!(m.reservedRange && m.reservedRange.length)) m.reservedRange = []; - m.reservedRange.push($root.google.protobuf.DescriptorProto.ReservedRange.decode(r, r.uint32())); - break; - case 10: - if (!(m.reservedName && m.reservedName.length)) m.reservedName = []; - m.reservedName.push(r.string()); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - DescriptorProto.ExtensionRange = (function () { - function ExtensionRange(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; - } - ExtensionRange.prototype.start = 0; - ExtensionRange.prototype.end = 0; - ExtensionRange.create = function create(properties) { - return new ExtensionRange(properties); - }; - ExtensionRange.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - if (m.start != null && Object.hasOwnProperty.call(m, "start")) w.uint32(8).int32(m.start); - if (m.end != null && Object.hasOwnProperty.call(m, "end")) w.uint32(16).int32(m.end); - return w; - }; - ExtensionRange.decode = function decode(r, l) { - if (!(r instanceof $Reader)) r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, - m = new $root.google.protobuf.DescriptorProto.ExtensionRange(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.start = r.int32(); - break; - case 2: - m.end = r.int32(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return ExtensionRange; - })(); - DescriptorProto.ReservedRange = (function () { - function ReservedRange(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; - } - ReservedRange.prototype.start = 0; - ReservedRange.prototype.end = 0; - ReservedRange.create = function create(properties) { - return new ReservedRange(properties); - }; - ReservedRange.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - if (m.start != null && Object.hasOwnProperty.call(m, "start")) w.uint32(8).int32(m.start); - if (m.end != null && Object.hasOwnProperty.call(m, "end")) w.uint32(16).int32(m.end); - return w; - }; - ReservedRange.decode = function decode(r, l) { - if (!(r instanceof $Reader)) r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, - m = new $root.google.protobuf.DescriptorProto.ReservedRange(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.start = r.int32(); - break; - case 2: - m.end = r.int32(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return ReservedRange; - })(); - return DescriptorProto; - })(); - protobuf.FieldDescriptorProto = (function () { - function FieldDescriptorProto(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; - } - FieldDescriptorProto.prototype.name = ""; - FieldDescriptorProto.prototype.number = 0; - FieldDescriptorProto.prototype.label = 1; - FieldDescriptorProto.prototype.type = 1; - FieldDescriptorProto.prototype.typeName = ""; - FieldDescriptorProto.prototype.extendee = ""; - FieldDescriptorProto.prototype.defaultValue = ""; - FieldDescriptorProto.prototype.oneofIndex = 0; - FieldDescriptorProto.prototype.jsonName = ""; - FieldDescriptorProto.prototype.options = null; - FieldDescriptorProto.create = function create(properties) { - return new FieldDescriptorProto(properties); - }; - FieldDescriptorProto.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - if (m.name != null && Object.hasOwnProperty.call(m, "name")) w.uint32(10).string(m.name); - if (m.extendee != null && Object.hasOwnProperty.call(m, "extendee")) w.uint32(18).string(m.extendee); - if (m.number != null && Object.hasOwnProperty.call(m, "number")) w.uint32(24).int32(m.number); - if (m.label != null && Object.hasOwnProperty.call(m, "label")) w.uint32(32).int32(m.label); - if (m.type != null && Object.hasOwnProperty.call(m, "type")) w.uint32(40).int32(m.type); - if (m.typeName != null && Object.hasOwnProperty.call(m, "typeName")) w.uint32(50).string(m.typeName); - if (m.defaultValue != null && Object.hasOwnProperty.call(m, "defaultValue")) - w.uint32(58).string(m.defaultValue); - if (m.options != null && Object.hasOwnProperty.call(m, "options")) - $root.google.protobuf.FieldOptions.encode(m.options, w.uint32(66).fork()).ldelim(); - if (m.oneofIndex != null && Object.hasOwnProperty.call(m, "oneofIndex")) - w.uint32(72).int32(m.oneofIndex); - if (m.jsonName != null && Object.hasOwnProperty.call(m, "jsonName")) w.uint32(82).string(m.jsonName); - return w; - }; - FieldDescriptorProto.decode = function decode(r, l) { - if (!(r instanceof $Reader)) r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, - m = new $root.google.protobuf.FieldDescriptorProto(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.name = r.string(); - break; - case 3: - m.number = r.int32(); - break; - case 4: - m.label = r.int32(); - break; - case 5: - m.type = r.int32(); - break; - case 6: - m.typeName = r.string(); - break; - case 2: - m.extendee = r.string(); - break; - case 7: - m.defaultValue = r.string(); - break; - case 9: - m.oneofIndex = r.int32(); - break; - case 10: - m.jsonName = r.string(); - break; - case 8: - m.options = $root.google.protobuf.FieldOptions.decode(r, r.uint32()); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - FieldDescriptorProto.Type = (function () { - const valuesById = {}, - values = Object.create(valuesById); - values[(valuesById[1] = "TYPE_DOUBLE")] = 1; - values[(valuesById[2] = "TYPE_FLOAT")] = 2; - values[(valuesById[3] = "TYPE_INT64")] = 3; - values[(valuesById[4] = "TYPE_UINT64")] = 4; - values[(valuesById[5] = "TYPE_INT32")] = 5; - values[(valuesById[6] = "TYPE_FIXED64")] = 6; - values[(valuesById[7] = "TYPE_FIXED32")] = 7; - values[(valuesById[8] = "TYPE_BOOL")] = 8; - values[(valuesById[9] = "TYPE_STRING")] = 9; - values[(valuesById[10] = "TYPE_GROUP")] = 10; - values[(valuesById[11] = "TYPE_MESSAGE")] = 11; - values[(valuesById[12] = "TYPE_BYTES")] = 12; - values[(valuesById[13] = "TYPE_UINT32")] = 13; - values[(valuesById[14] = "TYPE_ENUM")] = 14; - values[(valuesById[15] = "TYPE_SFIXED32")] = 15; - values[(valuesById[16] = "TYPE_SFIXED64")] = 16; - values[(valuesById[17] = "TYPE_SINT32")] = 17; - values[(valuesById[18] = "TYPE_SINT64")] = 18; - return values; - })(); - FieldDescriptorProto.Label = (function () { - const valuesById = {}, - values = Object.create(valuesById); - values[(valuesById[1] = "LABEL_OPTIONAL")] = 1; - values[(valuesById[2] = "LABEL_REQUIRED")] = 2; - values[(valuesById[3] = "LABEL_REPEATED")] = 3; - return values; - })(); - return FieldDescriptorProto; - })(); - protobuf.OneofDescriptorProto = (function () { - function OneofDescriptorProto(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; - } - OneofDescriptorProto.prototype.name = ""; - OneofDescriptorProto.prototype.options = null; - OneofDescriptorProto.create = function create(properties) { - return new OneofDescriptorProto(properties); - }; - OneofDescriptorProto.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - if (m.name != null && Object.hasOwnProperty.call(m, "name")) w.uint32(10).string(m.name); - if (m.options != null && Object.hasOwnProperty.call(m, "options")) - $root.google.protobuf.OneofOptions.encode(m.options, w.uint32(18).fork()).ldelim(); - return w; - }; - OneofDescriptorProto.decode = function decode(r, l) { - if (!(r instanceof $Reader)) r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, - m = new $root.google.protobuf.OneofDescriptorProto(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.name = r.string(); - break; - case 2: - m.options = $root.google.protobuf.OneofOptions.decode(r, r.uint32()); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return OneofDescriptorProto; - })(); - protobuf.EnumDescriptorProto = (function () { - function EnumDescriptorProto(p) { - this.value = []; - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; - } - EnumDescriptorProto.prototype.name = ""; - EnumDescriptorProto.prototype.value = $util.emptyArray; - EnumDescriptorProto.prototype.options = null; - EnumDescriptorProto.create = function create(properties) { - return new EnumDescriptorProto(properties); - }; - EnumDescriptorProto.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - if (m.name != null && Object.hasOwnProperty.call(m, "name")) w.uint32(10).string(m.name); - if (m.value != null && m.value.length) { - for (var i = 0; i < m.value.length; ++i) - $root.google.protobuf.EnumValueDescriptorProto.encode(m.value[i], w.uint32(18).fork()).ldelim(); - } - if (m.options != null && Object.hasOwnProperty.call(m, "options")) - $root.google.protobuf.EnumOptions.encode(m.options, w.uint32(26).fork()).ldelim(); - return w; - }; - EnumDescriptorProto.decode = function decode(r, l) { - if (!(r instanceof $Reader)) r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, - m = new $root.google.protobuf.EnumDescriptorProto(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.name = r.string(); - break; - case 2: - if (!(m.value && m.value.length)) m.value = []; - m.value.push($root.google.protobuf.EnumValueDescriptorProto.decode(r, r.uint32())); - break; - case 3: - m.options = $root.google.protobuf.EnumOptions.decode(r, r.uint32()); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return EnumDescriptorProto; - })(); - protobuf.EnumValueDescriptorProto = (function () { - function EnumValueDescriptorProto(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; - } - EnumValueDescriptorProto.prototype.name = ""; - EnumValueDescriptorProto.prototype.number = 0; - EnumValueDescriptorProto.prototype.options = null; - EnumValueDescriptorProto.create = function create(properties) { - return new EnumValueDescriptorProto(properties); - }; - EnumValueDescriptorProto.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - if (m.name != null && Object.hasOwnProperty.call(m, "name")) w.uint32(10).string(m.name); - if (m.number != null && Object.hasOwnProperty.call(m, "number")) w.uint32(16).int32(m.number); - if (m.options != null && Object.hasOwnProperty.call(m, "options")) - $root.google.protobuf.EnumValueOptions.encode(m.options, w.uint32(26).fork()).ldelim(); - return w; - }; - EnumValueDescriptorProto.decode = function decode(r, l) { - if (!(r instanceof $Reader)) r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, - m = new $root.google.protobuf.EnumValueDescriptorProto(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.name = r.string(); - break; - case 2: - m.number = r.int32(); - break; - case 3: - m.options = $root.google.protobuf.EnumValueOptions.decode(r, r.uint32()); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return EnumValueDescriptorProto; - })(); - protobuf.ServiceDescriptorProto = (function () { - function ServiceDescriptorProto(p) { - this.method = []; - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; - } - ServiceDescriptorProto.prototype.name = ""; - ServiceDescriptorProto.prototype.method = $util.emptyArray; - ServiceDescriptorProto.prototype.options = null; - ServiceDescriptorProto.create = function create(properties) { - return new ServiceDescriptorProto(properties); - }; - ServiceDescriptorProto.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - if (m.name != null && Object.hasOwnProperty.call(m, "name")) w.uint32(10).string(m.name); - if (m.method != null && m.method.length) { - for (var i = 0; i < m.method.length; ++i) - $root.google.protobuf.MethodDescriptorProto.encode(m.method[i], w.uint32(18).fork()).ldelim(); - } - if (m.options != null && Object.hasOwnProperty.call(m, "options")) - $root.google.protobuf.ServiceOptions.encode(m.options, w.uint32(26).fork()).ldelim(); - return w; - }; - ServiceDescriptorProto.decode = function decode(r, l) { - if (!(r instanceof $Reader)) r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, - m = new $root.google.protobuf.ServiceDescriptorProto(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.name = r.string(); - break; - case 2: - if (!(m.method && m.method.length)) m.method = []; - m.method.push($root.google.protobuf.MethodDescriptorProto.decode(r, r.uint32())); - break; - case 3: - m.options = $root.google.protobuf.ServiceOptions.decode(r, r.uint32()); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return ServiceDescriptorProto; - })(); - protobuf.MethodDescriptorProto = (function () { - function MethodDescriptorProto(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; - } - MethodDescriptorProto.prototype.name = ""; - MethodDescriptorProto.prototype.inputType = ""; - MethodDescriptorProto.prototype.outputType = ""; - MethodDescriptorProto.prototype.options = null; - MethodDescriptorProto.prototype.clientStreaming = false; - MethodDescriptorProto.prototype.serverStreaming = false; - MethodDescriptorProto.create = function create(properties) { - return new MethodDescriptorProto(properties); - }; - MethodDescriptorProto.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - if (m.name != null && Object.hasOwnProperty.call(m, "name")) w.uint32(10).string(m.name); - if (m.inputType != null && Object.hasOwnProperty.call(m, "inputType")) - w.uint32(18).string(m.inputType); - if (m.outputType != null && Object.hasOwnProperty.call(m, "outputType")) - w.uint32(26).string(m.outputType); - if (m.options != null && Object.hasOwnProperty.call(m, "options")) - $root.google.protobuf.MethodOptions.encode(m.options, w.uint32(34).fork()).ldelim(); - if (m.clientStreaming != null && Object.hasOwnProperty.call(m, "clientStreaming")) - w.uint32(40).bool(m.clientStreaming); - if (m.serverStreaming != null && Object.hasOwnProperty.call(m, "serverStreaming")) - w.uint32(48).bool(m.serverStreaming); - return w; - }; - MethodDescriptorProto.decode = function decode(r, l) { - if (!(r instanceof $Reader)) r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, - m = new $root.google.protobuf.MethodDescriptorProto(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.name = r.string(); - break; - case 2: - m.inputType = r.string(); - break; - case 3: - m.outputType = r.string(); - break; - case 4: - m.options = $root.google.protobuf.MethodOptions.decode(r, r.uint32()); - break; - case 5: - m.clientStreaming = r.bool(); - break; - case 6: - m.serverStreaming = r.bool(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return MethodDescriptorProto; - })(); - protobuf.FileOptions = (function () { - function FileOptions(p) { - this.uninterpretedOption = []; - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; - } - FileOptions.prototype.javaPackage = ""; - FileOptions.prototype.javaOuterClassname = ""; - FileOptions.prototype.javaMultipleFiles = false; - FileOptions.prototype.javaGenerateEqualsAndHash = false; - FileOptions.prototype.javaStringCheckUtf8 = false; - FileOptions.prototype.optimizeFor = 1; - FileOptions.prototype.goPackage = ""; - FileOptions.prototype.ccGenericServices = false; - FileOptions.prototype.javaGenericServices = false; - FileOptions.prototype.pyGenericServices = false; - FileOptions.prototype.deprecated = false; - FileOptions.prototype.ccEnableArenas = false; - FileOptions.prototype.objcClassPrefix = ""; - FileOptions.prototype.csharpNamespace = ""; - FileOptions.prototype.uninterpretedOption = $util.emptyArray; - FileOptions.create = function create(properties) { - return new FileOptions(properties); - }; - FileOptions.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - if (m.javaPackage != null && Object.hasOwnProperty.call(m, "javaPackage")) - w.uint32(10).string(m.javaPackage); - if (m.javaOuterClassname != null && Object.hasOwnProperty.call(m, "javaOuterClassname")) - w.uint32(66).string(m.javaOuterClassname); - if (m.optimizeFor != null && Object.hasOwnProperty.call(m, "optimizeFor")) - w.uint32(72).int32(m.optimizeFor); - if (m.javaMultipleFiles != null && Object.hasOwnProperty.call(m, "javaMultipleFiles")) - w.uint32(80).bool(m.javaMultipleFiles); - if (m.goPackage != null && Object.hasOwnProperty.call(m, "goPackage")) - w.uint32(90).string(m.goPackage); - if (m.ccGenericServices != null && Object.hasOwnProperty.call(m, "ccGenericServices")) - w.uint32(128).bool(m.ccGenericServices); - if (m.javaGenericServices != null && Object.hasOwnProperty.call(m, "javaGenericServices")) - w.uint32(136).bool(m.javaGenericServices); - if (m.pyGenericServices != null && Object.hasOwnProperty.call(m, "pyGenericServices")) - w.uint32(144).bool(m.pyGenericServices); - if (m.javaGenerateEqualsAndHash != null && Object.hasOwnProperty.call(m, "javaGenerateEqualsAndHash")) - w.uint32(160).bool(m.javaGenerateEqualsAndHash); - if (m.deprecated != null && Object.hasOwnProperty.call(m, "deprecated")) - w.uint32(184).bool(m.deprecated); - if (m.javaStringCheckUtf8 != null && Object.hasOwnProperty.call(m, "javaStringCheckUtf8")) - w.uint32(216).bool(m.javaStringCheckUtf8); - if (m.ccEnableArenas != null && Object.hasOwnProperty.call(m, "ccEnableArenas")) - w.uint32(248).bool(m.ccEnableArenas); - if (m.objcClassPrefix != null && Object.hasOwnProperty.call(m, "objcClassPrefix")) - w.uint32(290).string(m.objcClassPrefix); - if (m.csharpNamespace != null && Object.hasOwnProperty.call(m, "csharpNamespace")) - w.uint32(298).string(m.csharpNamespace); - if (m.uninterpretedOption != null && m.uninterpretedOption.length) { - for (var i = 0; i < m.uninterpretedOption.length; ++i) - $root.google.protobuf.UninterpretedOption.encode( - m.uninterpretedOption[i], - w.uint32(7994).fork(), - ).ldelim(); - } - return w; - }; - FileOptions.decode = function decode(r, l) { - if (!(r instanceof $Reader)) r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, - m = new $root.google.protobuf.FileOptions(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.javaPackage = r.string(); - break; - case 8: - m.javaOuterClassname = r.string(); - break; - case 10: - m.javaMultipleFiles = r.bool(); - break; - case 20: - m.javaGenerateEqualsAndHash = r.bool(); - break; - case 27: - m.javaStringCheckUtf8 = r.bool(); - break; - case 9: - m.optimizeFor = r.int32(); - break; - case 11: - m.goPackage = r.string(); - break; - case 16: - m.ccGenericServices = r.bool(); - break; - case 17: - m.javaGenericServices = r.bool(); - break; - case 18: - m.pyGenericServices = r.bool(); - break; - case 23: - m.deprecated = r.bool(); - break; - case 31: - m.ccEnableArenas = r.bool(); - break; - case 36: - m.objcClassPrefix = r.string(); - break; - case 37: - m.csharpNamespace = r.string(); - break; - case 999: - if (!(m.uninterpretedOption && m.uninterpretedOption.length)) m.uninterpretedOption = []; - m.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(r, r.uint32())); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - FileOptions.OptimizeMode = (function () { - const valuesById = {}, - values = Object.create(valuesById); - values[(valuesById[1] = "SPEED")] = 1; - values[(valuesById[2] = "CODE_SIZE")] = 2; - values[(valuesById[3] = "LITE_RUNTIME")] = 3; - return values; - })(); - return FileOptions; - })(); - protobuf.MessageOptions = (function () { - function MessageOptions(p) { - this.uninterpretedOption = []; - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; - } - MessageOptions.prototype.messageSetWireFormat = false; - MessageOptions.prototype.noStandardDescriptorAccessor = false; - MessageOptions.prototype.deprecated = false; - MessageOptions.prototype.mapEntry = false; - MessageOptions.prototype.uninterpretedOption = $util.emptyArray; - MessageOptions.create = function create(properties) { - return new MessageOptions(properties); - }; - MessageOptions.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - if (m.messageSetWireFormat != null && Object.hasOwnProperty.call(m, "messageSetWireFormat")) - w.uint32(8).bool(m.messageSetWireFormat); - if ( - m.noStandardDescriptorAccessor != null && - Object.hasOwnProperty.call(m, "noStandardDescriptorAccessor") - ) - w.uint32(16).bool(m.noStandardDescriptorAccessor); - if (m.deprecated != null && Object.hasOwnProperty.call(m, "deprecated")) - w.uint32(24).bool(m.deprecated); - if (m.mapEntry != null && Object.hasOwnProperty.call(m, "mapEntry")) w.uint32(56).bool(m.mapEntry); - if (m.uninterpretedOption != null && m.uninterpretedOption.length) { - for (var i = 0; i < m.uninterpretedOption.length; ++i) - $root.google.protobuf.UninterpretedOption.encode( - m.uninterpretedOption[i], - w.uint32(7994).fork(), - ).ldelim(); - } - return w; - }; - MessageOptions.decode = function decode(r, l) { - if (!(r instanceof $Reader)) r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, - m = new $root.google.protobuf.MessageOptions(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.messageSetWireFormat = r.bool(); - break; - case 2: - m.noStandardDescriptorAccessor = r.bool(); - break; - case 3: - m.deprecated = r.bool(); - break; - case 7: - m.mapEntry = r.bool(); - break; - case 999: - if (!(m.uninterpretedOption && m.uninterpretedOption.length)) m.uninterpretedOption = []; - m.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(r, r.uint32())); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return MessageOptions; - })(); - protobuf.FieldOptions = (function () { - function FieldOptions(p) { - this.uninterpretedOption = []; - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; - } - FieldOptions.prototype.ctype = 0; - FieldOptions.prototype.packed = false; - FieldOptions.prototype.jstype = 0; - FieldOptions.prototype.lazy = false; - FieldOptions.prototype.deprecated = false; - FieldOptions.prototype.weak = false; - FieldOptions.prototype.uninterpretedOption = $util.emptyArray; - FieldOptions.create = function create(properties) { - return new FieldOptions(properties); - }; - FieldOptions.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - if (m.ctype != null && Object.hasOwnProperty.call(m, "ctype")) w.uint32(8).int32(m.ctype); - if (m.packed != null && Object.hasOwnProperty.call(m, "packed")) w.uint32(16).bool(m.packed); - if (m.deprecated != null && Object.hasOwnProperty.call(m, "deprecated")) - w.uint32(24).bool(m.deprecated); - if (m.lazy != null && Object.hasOwnProperty.call(m, "lazy")) w.uint32(40).bool(m.lazy); - if (m.jstype != null && Object.hasOwnProperty.call(m, "jstype")) w.uint32(48).int32(m.jstype); - if (m.weak != null && Object.hasOwnProperty.call(m, "weak")) w.uint32(80).bool(m.weak); - if (m.uninterpretedOption != null && m.uninterpretedOption.length) { - for (var i = 0; i < m.uninterpretedOption.length; ++i) - $root.google.protobuf.UninterpretedOption.encode( - m.uninterpretedOption[i], - w.uint32(7994).fork(), - ).ldelim(); - } - return w; - }; - FieldOptions.decode = function decode(r, l) { - if (!(r instanceof $Reader)) r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, - m = new $root.google.protobuf.FieldOptions(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.ctype = r.int32(); - break; - case 2: - m.packed = r.bool(); - break; - case 6: - m.jstype = r.int32(); - break; - case 5: - m.lazy = r.bool(); - break; - case 3: - m.deprecated = r.bool(); - break; - case 10: - m.weak = r.bool(); - break; - case 999: - if (!(m.uninterpretedOption && m.uninterpretedOption.length)) m.uninterpretedOption = []; - m.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(r, r.uint32())); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - FieldOptions.CType = (function () { - const valuesById = {}, - values = Object.create(valuesById); - values[(valuesById[0] = "STRING")] = 0; - values[(valuesById[1] = "CORD")] = 1; - values[(valuesById[2] = "STRING_PIECE")] = 2; - return values; - })(); - FieldOptions.JSType = (function () { - const valuesById = {}, - values = Object.create(valuesById); - values[(valuesById[0] = "JS_NORMAL")] = 0; - values[(valuesById[1] = "JS_STRING")] = 1; - values[(valuesById[2] = "JS_NUMBER")] = 2; - return values; - })(); - return FieldOptions; - })(); - protobuf.OneofOptions = (function () { - function OneofOptions(p) { - this.uninterpretedOption = []; - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; - } - OneofOptions.prototype.uninterpretedOption = $util.emptyArray; - OneofOptions.create = function create(properties) { - return new OneofOptions(properties); - }; - OneofOptions.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - if (m.uninterpretedOption != null && m.uninterpretedOption.length) { - for (var i = 0; i < m.uninterpretedOption.length; ++i) - $root.google.protobuf.UninterpretedOption.encode( - m.uninterpretedOption[i], - w.uint32(7994).fork(), - ).ldelim(); - } - return w; - }; - OneofOptions.decode = function decode(r, l) { - if (!(r instanceof $Reader)) r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, - m = new $root.google.protobuf.OneofOptions(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 999: - if (!(m.uninterpretedOption && m.uninterpretedOption.length)) m.uninterpretedOption = []; - m.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(r, r.uint32())); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return OneofOptions; - })(); - protobuf.EnumOptions = (function () { - function EnumOptions(p) { - this.uninterpretedOption = []; - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; - } - EnumOptions.prototype.allowAlias = false; - EnumOptions.prototype.deprecated = false; - EnumOptions.prototype.uninterpretedOption = $util.emptyArray; - EnumOptions.create = function create(properties) { - return new EnumOptions(properties); - }; - EnumOptions.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - if (m.allowAlias != null && Object.hasOwnProperty.call(m, "allowAlias")) - w.uint32(16).bool(m.allowAlias); - if (m.deprecated != null && Object.hasOwnProperty.call(m, "deprecated")) - w.uint32(24).bool(m.deprecated); - if (m.uninterpretedOption != null && m.uninterpretedOption.length) { - for (var i = 0; i < m.uninterpretedOption.length; ++i) - $root.google.protobuf.UninterpretedOption.encode( - m.uninterpretedOption[i], - w.uint32(7994).fork(), - ).ldelim(); - } - return w; - }; - EnumOptions.decode = function decode(r, l) { - if (!(r instanceof $Reader)) r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, - m = new $root.google.protobuf.EnumOptions(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 2: - m.allowAlias = r.bool(); - break; - case 3: - m.deprecated = r.bool(); - break; - case 999: - if (!(m.uninterpretedOption && m.uninterpretedOption.length)) m.uninterpretedOption = []; - m.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(r, r.uint32())); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return EnumOptions; - })(); - protobuf.EnumValueOptions = (function () { - function EnumValueOptions(p) { - this.uninterpretedOption = []; - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; - } - EnumValueOptions.prototype.deprecated = false; - EnumValueOptions.prototype.uninterpretedOption = $util.emptyArray; - EnumValueOptions.create = function create(properties) { - return new EnumValueOptions(properties); - }; - EnumValueOptions.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - if (m.deprecated != null && Object.hasOwnProperty.call(m, "deprecated")) - w.uint32(8).bool(m.deprecated); - if (m.uninterpretedOption != null && m.uninterpretedOption.length) { - for (var i = 0; i < m.uninterpretedOption.length; ++i) - $root.google.protobuf.UninterpretedOption.encode( - m.uninterpretedOption[i], - w.uint32(7994).fork(), - ).ldelim(); - } - return w; - }; - EnumValueOptions.decode = function decode(r, l) { - if (!(r instanceof $Reader)) r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, - m = new $root.google.protobuf.EnumValueOptions(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.deprecated = r.bool(); - break; - case 999: - if (!(m.uninterpretedOption && m.uninterpretedOption.length)) m.uninterpretedOption = []; - m.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(r, r.uint32())); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return EnumValueOptions; - })(); - protobuf.ServiceOptions = (function () { - function ServiceOptions(p) { - this.uninterpretedOption = []; - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; - } - ServiceOptions.prototype.deprecated = false; - ServiceOptions.prototype.uninterpretedOption = $util.emptyArray; - ServiceOptions.create = function create(properties) { - return new ServiceOptions(properties); - }; - ServiceOptions.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - if (m.deprecated != null && Object.hasOwnProperty.call(m, "deprecated")) - w.uint32(264).bool(m.deprecated); - if (m.uninterpretedOption != null && m.uninterpretedOption.length) { - for (var i = 0; i < m.uninterpretedOption.length; ++i) - $root.google.protobuf.UninterpretedOption.encode( - m.uninterpretedOption[i], - w.uint32(7994).fork(), - ).ldelim(); - } - return w; - }; - ServiceOptions.decode = function decode(r, l) { - if (!(r instanceof $Reader)) r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, - m = new $root.google.protobuf.ServiceOptions(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 33: - m.deprecated = r.bool(); - break; - case 999: - if (!(m.uninterpretedOption && m.uninterpretedOption.length)) m.uninterpretedOption = []; - m.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(r, r.uint32())); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return ServiceOptions; - })(); - protobuf.MethodOptions = (function () { - function MethodOptions(p) { - this.uninterpretedOption = []; - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; - } - MethodOptions.prototype.deprecated = false; - MethodOptions.prototype.uninterpretedOption = $util.emptyArray; - MethodOptions.prototype[".google.api.http"] = null; - MethodOptions.create = function create(properties) { - return new MethodOptions(properties); - }; - MethodOptions.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - if (m.deprecated != null && Object.hasOwnProperty.call(m, "deprecated")) - w.uint32(264).bool(m.deprecated); - if (m.uninterpretedOption != null && m.uninterpretedOption.length) { - for (var i = 0; i < m.uninterpretedOption.length; ++i) - $root.google.protobuf.UninterpretedOption.encode( - m.uninterpretedOption[i], - w.uint32(7994).fork(), - ).ldelim(); - } - if (m[".google.api.http"] != null && Object.hasOwnProperty.call(m, ".google.api.http")) - $root.google.api.HttpRule.encode(m[".google.api.http"], w.uint32(578365826).fork()).ldelim(); - return w; - }; - MethodOptions.decode = function decode(r, l) { - if (!(r instanceof $Reader)) r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, - m = new $root.google.protobuf.MethodOptions(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 33: - m.deprecated = r.bool(); - break; - case 999: - if (!(m.uninterpretedOption && m.uninterpretedOption.length)) m.uninterpretedOption = []; - m.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(r, r.uint32())); - break; - case 72295728: - m[".google.api.http"] = $root.google.api.HttpRule.decode(r, r.uint32()); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return MethodOptions; - })(); - protobuf.UninterpretedOption = (function () { - function UninterpretedOption(p) { - this.name = []; - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; - } - UninterpretedOption.prototype.name = $util.emptyArray; - UninterpretedOption.prototype.identifierValue = ""; - UninterpretedOption.prototype.positiveIntValue = $util.Long ? $util.Long.fromBits(0, 0, true) : 0; - UninterpretedOption.prototype.negativeIntValue = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; - UninterpretedOption.prototype.doubleValue = 0; - UninterpretedOption.prototype.stringValue = $util.newBuffer([]); - UninterpretedOption.prototype.aggregateValue = ""; - UninterpretedOption.create = function create(properties) { - return new UninterpretedOption(properties); - }; - UninterpretedOption.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - if (m.name != null && m.name.length) { - for (var i = 0; i < m.name.length; ++i) - $root.google.protobuf.UninterpretedOption.NamePart.encode( - m.name[i], - w.uint32(18).fork(), - ).ldelim(); - } - if (m.identifierValue != null && Object.hasOwnProperty.call(m, "identifierValue")) - w.uint32(26).string(m.identifierValue); - if (m.positiveIntValue != null && Object.hasOwnProperty.call(m, "positiveIntValue")) - w.uint32(32).uint64(m.positiveIntValue); - if (m.negativeIntValue != null && Object.hasOwnProperty.call(m, "negativeIntValue")) - w.uint32(40).int64(m.negativeIntValue); - if (m.doubleValue != null && Object.hasOwnProperty.call(m, "doubleValue")) - w.uint32(49).double(m.doubleValue); - if (m.stringValue != null && Object.hasOwnProperty.call(m, "stringValue")) - w.uint32(58).bytes(m.stringValue); - if (m.aggregateValue != null && Object.hasOwnProperty.call(m, "aggregateValue")) - w.uint32(66).string(m.aggregateValue); - return w; - }; - UninterpretedOption.decode = function decode(r, l) { - if (!(r instanceof $Reader)) r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, - m = new $root.google.protobuf.UninterpretedOption(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 2: - if (!(m.name && m.name.length)) m.name = []; - m.name.push($root.google.protobuf.UninterpretedOption.NamePart.decode(r, r.uint32())); - break; - case 3: - m.identifierValue = r.string(); - break; - case 4: - m.positiveIntValue = r.uint64(); - break; - case 5: - m.negativeIntValue = r.int64(); - break; - case 6: - m.doubleValue = r.double(); - break; - case 7: - m.stringValue = r.bytes(); - break; - case 8: - m.aggregateValue = r.string(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - UninterpretedOption.NamePart = (function () { - function NamePart(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; - } - NamePart.prototype.namePart = ""; - NamePart.prototype.isExtension = false; - NamePart.create = function create(properties) { - return new NamePart(properties); - }; - NamePart.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - w.uint32(10).string(m.namePart); - w.uint32(16).bool(m.isExtension); - return w; - }; - NamePart.decode = function decode(r, l) { - if (!(r instanceof $Reader)) r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, - m = new $root.google.protobuf.UninterpretedOption.NamePart(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.namePart = r.string(); - break; - case 2: - m.isExtension = r.bool(); - break; - default: - r.skipType(t & 7); - break; - } - } - if (!m.hasOwnProperty("namePart")) - throw $util.ProtocolError("missing required 'namePart'", { instance: m }); - if (!m.hasOwnProperty("isExtension")) - throw $util.ProtocolError("missing required 'isExtension'", { instance: m }); - return m; - }; - return NamePart; - })(); - return UninterpretedOption; - })(); - protobuf.SourceCodeInfo = (function () { - function SourceCodeInfo(p) { - this.location = []; - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; - } - SourceCodeInfo.prototype.location = $util.emptyArray; - SourceCodeInfo.create = function create(properties) { - return new SourceCodeInfo(properties); - }; - SourceCodeInfo.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - if (m.location != null && m.location.length) { - for (var i = 0; i < m.location.length; ++i) - $root.google.protobuf.SourceCodeInfo.Location.encode(m.location[i], w.uint32(10).fork()).ldelim(); - } - return w; - }; - SourceCodeInfo.decode = function decode(r, l) { - if (!(r instanceof $Reader)) r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, - m = new $root.google.protobuf.SourceCodeInfo(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - if (!(m.location && m.location.length)) m.location = []; - m.location.push($root.google.protobuf.SourceCodeInfo.Location.decode(r, r.uint32())); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - SourceCodeInfo.Location = (function () { - function Location(p) { - this.path = []; - this.span = []; - this.leadingDetachedComments = []; - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; - } - Location.prototype.path = $util.emptyArray; - Location.prototype.span = $util.emptyArray; - Location.prototype.leadingComments = ""; - Location.prototype.trailingComments = ""; - Location.prototype.leadingDetachedComments = $util.emptyArray; - Location.create = function create(properties) { - return new Location(properties); - }; - Location.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - if (m.path != null && m.path.length) { - w.uint32(10).fork(); - for (var i = 0; i < m.path.length; ++i) w.int32(m.path[i]); - w.ldelim(); - } - if (m.span != null && m.span.length) { - w.uint32(18).fork(); - for (var i = 0; i < m.span.length; ++i) w.int32(m.span[i]); - w.ldelim(); - } - if (m.leadingComments != null && Object.hasOwnProperty.call(m, "leadingComments")) - w.uint32(26).string(m.leadingComments); - if (m.trailingComments != null && Object.hasOwnProperty.call(m, "trailingComments")) - w.uint32(34).string(m.trailingComments); - if (m.leadingDetachedComments != null && m.leadingDetachedComments.length) { - for (var i = 0; i < m.leadingDetachedComments.length; ++i) - w.uint32(50).string(m.leadingDetachedComments[i]); - } - return w; - }; - Location.decode = function decode(r, l) { - if (!(r instanceof $Reader)) r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, - m = new $root.google.protobuf.SourceCodeInfo.Location(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - if (!(m.path && m.path.length)) m.path = []; - if ((t & 7) === 2) { - var c2 = r.uint32() + r.pos; - while (r.pos < c2) m.path.push(r.int32()); - } else m.path.push(r.int32()); - break; - case 2: - if (!(m.span && m.span.length)) m.span = []; - if ((t & 7) === 2) { - var c2 = r.uint32() + r.pos; - while (r.pos < c2) m.span.push(r.int32()); - } else m.span.push(r.int32()); - break; - case 3: - m.leadingComments = r.string(); - break; - case 4: - m.trailingComments = r.string(); - break; - case 6: - if (!(m.leadingDetachedComments && m.leadingDetachedComments.length)) - m.leadingDetachedComments = []; - m.leadingDetachedComments.push(r.string()); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return Location; - })(); - return SourceCodeInfo; - })(); - protobuf.GeneratedCodeInfo = (function () { - function GeneratedCodeInfo(p) { - this.annotation = []; - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; - } - GeneratedCodeInfo.prototype.annotation = $util.emptyArray; - GeneratedCodeInfo.create = function create(properties) { - return new GeneratedCodeInfo(properties); - }; - GeneratedCodeInfo.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - if (m.annotation != null && m.annotation.length) { - for (var i = 0; i < m.annotation.length; ++i) - $root.google.protobuf.GeneratedCodeInfo.Annotation.encode( - m.annotation[i], - w.uint32(10).fork(), - ).ldelim(); - } - return w; - }; - GeneratedCodeInfo.decode = function decode(r, l) { - if (!(r instanceof $Reader)) r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, - m = new $root.google.protobuf.GeneratedCodeInfo(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - if (!(m.annotation && m.annotation.length)) m.annotation = []; - m.annotation.push($root.google.protobuf.GeneratedCodeInfo.Annotation.decode(r, r.uint32())); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - GeneratedCodeInfo.Annotation = (function () { - function Annotation(p) { - this.path = []; - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; - } - Annotation.prototype.path = $util.emptyArray; - Annotation.prototype.sourceFile = ""; - Annotation.prototype.begin = 0; - Annotation.prototype.end = 0; - Annotation.create = function create(properties) { - return new Annotation(properties); - }; - Annotation.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - if (m.path != null && m.path.length) { - w.uint32(10).fork(); - for (var i = 0; i < m.path.length; ++i) w.int32(m.path[i]); - w.ldelim(); - } - if (m.sourceFile != null && Object.hasOwnProperty.call(m, "sourceFile")) - w.uint32(18).string(m.sourceFile); - if (m.begin != null && Object.hasOwnProperty.call(m, "begin")) w.uint32(24).int32(m.begin); - if (m.end != null && Object.hasOwnProperty.call(m, "end")) w.uint32(32).int32(m.end); - return w; - }; - Annotation.decode = function decode(r, l) { - if (!(r instanceof $Reader)) r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, - m = new $root.google.protobuf.GeneratedCodeInfo.Annotation(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - if (!(m.path && m.path.length)) m.path = []; - if ((t & 7) === 2) { - var c2 = r.uint32() + r.pos; - while (r.pos < c2) m.path.push(r.int32()); - } else m.path.push(r.int32()); - break; - case 2: - m.sourceFile = r.string(); - break; - case 3: - m.begin = r.int32(); - break; - case 4: - m.end = r.int32(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return Annotation; - })(); - return GeneratedCodeInfo; - })(); - return protobuf; - })(); - return google; -})(); exports.cosmos = $root.cosmos = (() => { const cosmos = {}; cosmos.base = (function () { diff --git a/packages/cosmwasm-stargate/types/codec/generated/codecimpl.d.ts b/packages/cosmwasm-stargate/types/codec/generated/codecimpl.d.ts index 22d9bf39..98d5e340 100644 --- a/packages/cosmwasm-stargate/types/codec/generated/codecimpl.d.ts +++ b/packages/cosmwasm-stargate/types/codec/generated/codecimpl.d.ts @@ -5,414 +5,6 @@ export namespace cosmwasm { namespace wasm { /** Namespace v1beta1. */ namespace v1beta1 { - /** Properties of a MsgStoreCode. */ - interface IMsgStoreCode { - /** MsgStoreCode sender */ - sender?: string | null; - - /** MsgStoreCode wasmByteCode */ - wasmByteCode?: Uint8Array | null; - - /** MsgStoreCode source */ - source?: string | null; - - /** MsgStoreCode builder */ - builder?: string | null; - - /** MsgStoreCode instantiatePermission */ - instantiatePermission?: cosmwasm.wasm.v1beta1.IAccessConfig | null; - } - - /** Represents a MsgStoreCode. */ - class MsgStoreCode implements IMsgStoreCode { - /** - * Constructs a new MsgStoreCode. - * @param [p] Properties to set - */ - constructor(p?: cosmwasm.wasm.v1beta1.IMsgStoreCode); - - /** MsgStoreCode sender. */ - public sender: string; - - /** MsgStoreCode wasmByteCode. */ - public wasmByteCode: Uint8Array; - - /** MsgStoreCode source. */ - public source: string; - - /** MsgStoreCode builder. */ - public builder: string; - - /** MsgStoreCode instantiatePermission. */ - public instantiatePermission?: cosmwasm.wasm.v1beta1.IAccessConfig | null; - - /** - * Creates a new MsgStoreCode instance using the specified properties. - * @param [properties] Properties to set - * @returns MsgStoreCode instance - */ - public static create( - properties?: cosmwasm.wasm.v1beta1.IMsgStoreCode, - ): cosmwasm.wasm.v1beta1.MsgStoreCode; - - /** - * Encodes the specified MsgStoreCode message. Does not implicitly {@link cosmwasm.wasm.v1beta1.MsgStoreCode.verify|verify} messages. - * @param m MsgStoreCode message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmwasm.wasm.v1beta1.IMsgStoreCode, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a MsgStoreCode message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns MsgStoreCode - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): cosmwasm.wasm.v1beta1.MsgStoreCode; - } - - /** Properties of a MsgInstantiateContract. */ - interface IMsgInstantiateContract { - /** MsgInstantiateContract sender */ - sender?: string | null; - - /** MsgInstantiateContract admin */ - admin?: string | null; - - /** MsgInstantiateContract codeId */ - codeId?: Long | null; - - /** MsgInstantiateContract label */ - label?: string | null; - - /** MsgInstantiateContract initMsg */ - initMsg?: Uint8Array | null; - - /** MsgInstantiateContract initFunds */ - initFunds?: cosmos.base.v1beta1.ICoin[] | null; - } - - /** Represents a MsgInstantiateContract. */ - class MsgInstantiateContract implements IMsgInstantiateContract { - /** - * Constructs a new MsgInstantiateContract. - * @param [p] Properties to set - */ - constructor(p?: cosmwasm.wasm.v1beta1.IMsgInstantiateContract); - - /** MsgInstantiateContract sender. */ - public sender: string; - - /** MsgInstantiateContract admin. */ - public admin: string; - - /** MsgInstantiateContract codeId. */ - public codeId: Long; - - /** MsgInstantiateContract label. */ - public label: string; - - /** MsgInstantiateContract initMsg. */ - public initMsg: Uint8Array; - - /** MsgInstantiateContract initFunds. */ - public initFunds: cosmos.base.v1beta1.ICoin[]; - - /** - * Creates a new MsgInstantiateContract instance using the specified properties. - * @param [properties] Properties to set - * @returns MsgInstantiateContract instance - */ - public static create( - properties?: cosmwasm.wasm.v1beta1.IMsgInstantiateContract, - ): cosmwasm.wasm.v1beta1.MsgInstantiateContract; - - /** - * Encodes the specified MsgInstantiateContract message. Does not implicitly {@link cosmwasm.wasm.v1beta1.MsgInstantiateContract.verify|verify} messages. - * @param m MsgInstantiateContract message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: cosmwasm.wasm.v1beta1.IMsgInstantiateContract, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a MsgInstantiateContract message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns MsgInstantiateContract - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): cosmwasm.wasm.v1beta1.MsgInstantiateContract; - } - - /** Properties of a MsgExecuteContract. */ - interface IMsgExecuteContract { - /** MsgExecuteContract sender */ - sender?: string | null; - - /** MsgExecuteContract contract */ - contract?: string | null; - - /** MsgExecuteContract msg */ - msg?: Uint8Array | null; - - /** MsgExecuteContract sentFunds */ - sentFunds?: cosmos.base.v1beta1.ICoin[] | null; - } - - /** Represents a MsgExecuteContract. */ - class MsgExecuteContract implements IMsgExecuteContract { - /** - * Constructs a new MsgExecuteContract. - * @param [p] Properties to set - */ - constructor(p?: cosmwasm.wasm.v1beta1.IMsgExecuteContract); - - /** MsgExecuteContract sender. */ - public sender: string; - - /** MsgExecuteContract contract. */ - public contract: string; - - /** MsgExecuteContract msg. */ - public msg: Uint8Array; - - /** MsgExecuteContract sentFunds. */ - public sentFunds: cosmos.base.v1beta1.ICoin[]; - - /** - * Creates a new MsgExecuteContract instance using the specified properties. - * @param [properties] Properties to set - * @returns MsgExecuteContract instance - */ - public static create( - properties?: cosmwasm.wasm.v1beta1.IMsgExecuteContract, - ): cosmwasm.wasm.v1beta1.MsgExecuteContract; - - /** - * Encodes the specified MsgExecuteContract message. Does not implicitly {@link cosmwasm.wasm.v1beta1.MsgExecuteContract.verify|verify} messages. - * @param m MsgExecuteContract message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: cosmwasm.wasm.v1beta1.IMsgExecuteContract, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a MsgExecuteContract message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns MsgExecuteContract - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): cosmwasm.wasm.v1beta1.MsgExecuteContract; - } - - /** Properties of a MsgMigrateContract. */ - interface IMsgMigrateContract { - /** MsgMigrateContract sender */ - sender?: string | null; - - /** MsgMigrateContract contract */ - contract?: string | null; - - /** MsgMigrateContract codeId */ - codeId?: Long | null; - - /** MsgMigrateContract migrateMsg */ - migrateMsg?: Uint8Array | null; - } - - /** Represents a MsgMigrateContract. */ - class MsgMigrateContract implements IMsgMigrateContract { - /** - * Constructs a new MsgMigrateContract. - * @param [p] Properties to set - */ - constructor(p?: cosmwasm.wasm.v1beta1.IMsgMigrateContract); - - /** MsgMigrateContract sender. */ - public sender: string; - - /** MsgMigrateContract contract. */ - public contract: string; - - /** MsgMigrateContract codeId. */ - public codeId: Long; - - /** MsgMigrateContract migrateMsg. */ - public migrateMsg: Uint8Array; - - /** - * Creates a new MsgMigrateContract instance using the specified properties. - * @param [properties] Properties to set - * @returns MsgMigrateContract instance - */ - public static create( - properties?: cosmwasm.wasm.v1beta1.IMsgMigrateContract, - ): cosmwasm.wasm.v1beta1.MsgMigrateContract; - - /** - * Encodes the specified MsgMigrateContract message. Does not implicitly {@link cosmwasm.wasm.v1beta1.MsgMigrateContract.verify|verify} messages. - * @param m MsgMigrateContract message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: cosmwasm.wasm.v1beta1.IMsgMigrateContract, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a MsgMigrateContract message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns MsgMigrateContract - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): cosmwasm.wasm.v1beta1.MsgMigrateContract; - } - - /** Properties of a MsgUpdateAdmin. */ - interface IMsgUpdateAdmin { - /** MsgUpdateAdmin sender */ - sender?: string | null; - - /** MsgUpdateAdmin newAdmin */ - newAdmin?: string | null; - - /** MsgUpdateAdmin contract */ - contract?: string | null; - } - - /** Represents a MsgUpdateAdmin. */ - class MsgUpdateAdmin implements IMsgUpdateAdmin { - /** - * Constructs a new MsgUpdateAdmin. - * @param [p] Properties to set - */ - constructor(p?: cosmwasm.wasm.v1beta1.IMsgUpdateAdmin); - - /** MsgUpdateAdmin sender. */ - public sender: string; - - /** MsgUpdateAdmin newAdmin. */ - public newAdmin: string; - - /** MsgUpdateAdmin contract. */ - public contract: string; - - /** - * Creates a new MsgUpdateAdmin instance using the specified properties. - * @param [properties] Properties to set - * @returns MsgUpdateAdmin instance - */ - public static create( - properties?: cosmwasm.wasm.v1beta1.IMsgUpdateAdmin, - ): cosmwasm.wasm.v1beta1.MsgUpdateAdmin; - - /** - * Encodes the specified MsgUpdateAdmin message. Does not implicitly {@link cosmwasm.wasm.v1beta1.MsgUpdateAdmin.verify|verify} messages. - * @param m MsgUpdateAdmin message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: cosmwasm.wasm.v1beta1.IMsgUpdateAdmin, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a MsgUpdateAdmin message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns MsgUpdateAdmin - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): cosmwasm.wasm.v1beta1.MsgUpdateAdmin; - } - - /** Properties of a MsgClearAdmin. */ - interface IMsgClearAdmin { - /** MsgClearAdmin sender */ - sender?: string | null; - - /** MsgClearAdmin contract */ - contract?: string | null; - } - - /** Represents a MsgClearAdmin. */ - class MsgClearAdmin implements IMsgClearAdmin { - /** - * Constructs a new MsgClearAdmin. - * @param [p] Properties to set - */ - constructor(p?: cosmwasm.wasm.v1beta1.IMsgClearAdmin); - - /** MsgClearAdmin sender. */ - public sender: string; - - /** MsgClearAdmin contract. */ - public contract: string; - - /** - * Creates a new MsgClearAdmin instance using the specified properties. - * @param [properties] Properties to set - * @returns MsgClearAdmin instance - */ - public static create( - properties?: cosmwasm.wasm.v1beta1.IMsgClearAdmin, - ): cosmwasm.wasm.v1beta1.MsgClearAdmin; - - /** - * Encodes the specified MsgClearAdmin message. Does not implicitly {@link cosmwasm.wasm.v1beta1.MsgClearAdmin.verify|verify} messages. - * @param m MsgClearAdmin message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmwasm.wasm.v1beta1.IMsgClearAdmin, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a MsgClearAdmin message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns MsgClearAdmin - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): cosmwasm.wasm.v1beta1.MsgClearAdmin; - } - /** Represents a Query */ class Query extends $protobuf.rpc.Service { /** @@ -1682,6 +1274,908 @@ export namespace cosmwasm { ): cosmwasm.wasm.v1beta1.QueryCodesResponse; } + /** Represents a Msg */ + class Msg extends $protobuf.rpc.Service { + /** + * Constructs a new Msg service. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + */ + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + + /** + * Creates new Msg service using the specified rpc implementation. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + * @returns RPC service. Useful where requests and/or responses are streamed. + */ + public static create( + rpcImpl: $protobuf.RPCImpl, + requestDelimited?: boolean, + responseDelimited?: boolean, + ): Msg; + + /** + * Calls StoreCode. + * @param request MsgStoreCode message or plain object + * @param callback Node-style callback called with the error, if any, and MsgStoreCodeResponse + */ + public storeCode( + request: cosmwasm.wasm.v1beta1.IMsgStoreCode, + callback: cosmwasm.wasm.v1beta1.Msg.StoreCodeCallback, + ): void; + + /** + * Calls StoreCode. + * @param request MsgStoreCode message or plain object + * @returns Promise + */ + public storeCode( + request: cosmwasm.wasm.v1beta1.IMsgStoreCode, + ): Promise; + + /** + * Calls InstantiateContract. + * @param request MsgInstantiateContract message or plain object + * @param callback Node-style callback called with the error, if any, and MsgInstantiateContractResponse + */ + public instantiateContract( + request: cosmwasm.wasm.v1beta1.IMsgInstantiateContract, + callback: cosmwasm.wasm.v1beta1.Msg.InstantiateContractCallback, + ): void; + + /** + * Calls InstantiateContract. + * @param request MsgInstantiateContract message or plain object + * @returns Promise + */ + public instantiateContract( + request: cosmwasm.wasm.v1beta1.IMsgInstantiateContract, + ): Promise; + + /** + * Calls ExecuteContract. + * @param request MsgExecuteContract message or plain object + * @param callback Node-style callback called with the error, if any, and MsgExecuteContractResponse + */ + public executeContract( + request: cosmwasm.wasm.v1beta1.IMsgExecuteContract, + callback: cosmwasm.wasm.v1beta1.Msg.ExecuteContractCallback, + ): void; + + /** + * Calls ExecuteContract. + * @param request MsgExecuteContract message or plain object + * @returns Promise + */ + public executeContract( + request: cosmwasm.wasm.v1beta1.IMsgExecuteContract, + ): Promise; + + /** + * Calls MigrateContract. + * @param request MsgMigrateContract message or plain object + * @param callback Node-style callback called with the error, if any, and MsgMigrateContractResponse + */ + public migrateContract( + request: cosmwasm.wasm.v1beta1.IMsgMigrateContract, + callback: cosmwasm.wasm.v1beta1.Msg.MigrateContractCallback, + ): void; + + /** + * Calls MigrateContract. + * @param request MsgMigrateContract message or plain object + * @returns Promise + */ + public migrateContract( + request: cosmwasm.wasm.v1beta1.IMsgMigrateContract, + ): Promise; + + /** + * Calls UpdateAdmin. + * @param request MsgUpdateAdmin message or plain object + * @param callback Node-style callback called with the error, if any, and MsgUpdateAdminResponse + */ + public updateAdmin( + request: cosmwasm.wasm.v1beta1.IMsgUpdateAdmin, + callback: cosmwasm.wasm.v1beta1.Msg.UpdateAdminCallback, + ): void; + + /** + * Calls UpdateAdmin. + * @param request MsgUpdateAdmin message or plain object + * @returns Promise + */ + public updateAdmin( + request: cosmwasm.wasm.v1beta1.IMsgUpdateAdmin, + ): Promise; + + /** + * Calls ClearAdmin. + * @param request MsgClearAdmin message or plain object + * @param callback Node-style callback called with the error, if any, and MsgClearAdminResponse + */ + public clearAdmin( + request: cosmwasm.wasm.v1beta1.IMsgClearAdmin, + callback: cosmwasm.wasm.v1beta1.Msg.ClearAdminCallback, + ): void; + + /** + * Calls ClearAdmin. + * @param request MsgClearAdmin message or plain object + * @returns Promise + */ + public clearAdmin( + request: cosmwasm.wasm.v1beta1.IMsgClearAdmin, + ): Promise; + } + + namespace Msg { + /** + * Callback as used by {@link cosmwasm.wasm.v1beta1.Msg#storeCode}. + * @param error Error, if any + * @param [response] MsgStoreCodeResponse + */ + type StoreCodeCallback = ( + error: Error | null, + response?: cosmwasm.wasm.v1beta1.MsgStoreCodeResponse, + ) => void; + + /** + * Callback as used by {@link cosmwasm.wasm.v1beta1.Msg#instantiateContract}. + * @param error Error, if any + * @param [response] MsgInstantiateContractResponse + */ + type InstantiateContractCallback = ( + error: Error | null, + response?: cosmwasm.wasm.v1beta1.MsgInstantiateContractResponse, + ) => void; + + /** + * Callback as used by {@link cosmwasm.wasm.v1beta1.Msg#executeContract}. + * @param error Error, if any + * @param [response] MsgExecuteContractResponse + */ + type ExecuteContractCallback = ( + error: Error | null, + response?: cosmwasm.wasm.v1beta1.MsgExecuteContractResponse, + ) => void; + + /** + * Callback as used by {@link cosmwasm.wasm.v1beta1.Msg#migrateContract}. + * @param error Error, if any + * @param [response] MsgMigrateContractResponse + */ + type MigrateContractCallback = ( + error: Error | null, + response?: cosmwasm.wasm.v1beta1.MsgMigrateContractResponse, + ) => void; + + /** + * Callback as used by {@link cosmwasm.wasm.v1beta1.Msg#updateAdmin}. + * @param error Error, if any + * @param [response] MsgUpdateAdminResponse + */ + type UpdateAdminCallback = ( + error: Error | null, + response?: cosmwasm.wasm.v1beta1.MsgUpdateAdminResponse, + ) => void; + + /** + * Callback as used by {@link cosmwasm.wasm.v1beta1.Msg#clearAdmin}. + * @param error Error, if any + * @param [response] MsgClearAdminResponse + */ + type ClearAdminCallback = ( + error: Error | null, + response?: cosmwasm.wasm.v1beta1.MsgClearAdminResponse, + ) => void; + } + + /** Properties of a MsgStoreCode. */ + interface IMsgStoreCode { + /** MsgStoreCode sender */ + sender?: string | null; + + /** MsgStoreCode wasmByteCode */ + wasmByteCode?: Uint8Array | null; + + /** MsgStoreCode source */ + source?: string | null; + + /** MsgStoreCode builder */ + builder?: string | null; + + /** MsgStoreCode instantiatePermission */ + instantiatePermission?: cosmwasm.wasm.v1beta1.IAccessConfig | null; + } + + /** Represents a MsgStoreCode. */ + class MsgStoreCode implements IMsgStoreCode { + /** + * Constructs a new MsgStoreCode. + * @param [p] Properties to set + */ + constructor(p?: cosmwasm.wasm.v1beta1.IMsgStoreCode); + + /** MsgStoreCode sender. */ + public sender: string; + + /** MsgStoreCode wasmByteCode. */ + public wasmByteCode: Uint8Array; + + /** MsgStoreCode source. */ + public source: string; + + /** MsgStoreCode builder. */ + public builder: string; + + /** MsgStoreCode instantiatePermission. */ + public instantiatePermission?: cosmwasm.wasm.v1beta1.IAccessConfig | null; + + /** + * Creates a new MsgStoreCode instance using the specified properties. + * @param [properties] Properties to set + * @returns MsgStoreCode instance + */ + public static create( + properties?: cosmwasm.wasm.v1beta1.IMsgStoreCode, + ): cosmwasm.wasm.v1beta1.MsgStoreCode; + + /** + * Encodes the specified MsgStoreCode message. Does not implicitly {@link cosmwasm.wasm.v1beta1.MsgStoreCode.verify|verify} messages. + * @param m MsgStoreCode message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: cosmwasm.wasm.v1beta1.IMsgStoreCode, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MsgStoreCode message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns MsgStoreCode + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + r: $protobuf.Reader | Uint8Array, + l?: number, + ): cosmwasm.wasm.v1beta1.MsgStoreCode; + } + + /** Properties of a MsgStoreCodeResponse. */ + interface IMsgStoreCodeResponse { + /** MsgStoreCodeResponse codeId */ + codeId?: Long | null; + } + + /** Represents a MsgStoreCodeResponse. */ + class MsgStoreCodeResponse implements IMsgStoreCodeResponse { + /** + * Constructs a new MsgStoreCodeResponse. + * @param [p] Properties to set + */ + constructor(p?: cosmwasm.wasm.v1beta1.IMsgStoreCodeResponse); + + /** MsgStoreCodeResponse codeId. */ + public codeId: Long; + + /** + * Creates a new MsgStoreCodeResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns MsgStoreCodeResponse instance + */ + public static create( + properties?: cosmwasm.wasm.v1beta1.IMsgStoreCodeResponse, + ): cosmwasm.wasm.v1beta1.MsgStoreCodeResponse; + + /** + * Encodes the specified MsgStoreCodeResponse message. Does not implicitly {@link cosmwasm.wasm.v1beta1.MsgStoreCodeResponse.verify|verify} messages. + * @param m MsgStoreCodeResponse message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: cosmwasm.wasm.v1beta1.IMsgStoreCodeResponse, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a MsgStoreCodeResponse message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns MsgStoreCodeResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + r: $protobuf.Reader | Uint8Array, + l?: number, + ): cosmwasm.wasm.v1beta1.MsgStoreCodeResponse; + } + + /** Properties of a MsgInstantiateContract. */ + interface IMsgInstantiateContract { + /** MsgInstantiateContract sender */ + sender?: string | null; + + /** MsgInstantiateContract admin */ + admin?: string | null; + + /** MsgInstantiateContract codeId */ + codeId?: Long | null; + + /** MsgInstantiateContract label */ + label?: string | null; + + /** MsgInstantiateContract initMsg */ + initMsg?: Uint8Array | null; + + /** MsgInstantiateContract initFunds */ + initFunds?: cosmos.base.v1beta1.ICoin[] | null; + } + + /** Represents a MsgInstantiateContract. */ + class MsgInstantiateContract implements IMsgInstantiateContract { + /** + * Constructs a new MsgInstantiateContract. + * @param [p] Properties to set + */ + constructor(p?: cosmwasm.wasm.v1beta1.IMsgInstantiateContract); + + /** MsgInstantiateContract sender. */ + public sender: string; + + /** MsgInstantiateContract admin. */ + public admin: string; + + /** MsgInstantiateContract codeId. */ + public codeId: Long; + + /** MsgInstantiateContract label. */ + public label: string; + + /** MsgInstantiateContract initMsg. */ + public initMsg: Uint8Array; + + /** MsgInstantiateContract initFunds. */ + public initFunds: cosmos.base.v1beta1.ICoin[]; + + /** + * Creates a new MsgInstantiateContract instance using the specified properties. + * @param [properties] Properties to set + * @returns MsgInstantiateContract instance + */ + public static create( + properties?: cosmwasm.wasm.v1beta1.IMsgInstantiateContract, + ): cosmwasm.wasm.v1beta1.MsgInstantiateContract; + + /** + * Encodes the specified MsgInstantiateContract message. Does not implicitly {@link cosmwasm.wasm.v1beta1.MsgInstantiateContract.verify|verify} messages. + * @param m MsgInstantiateContract message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: cosmwasm.wasm.v1beta1.IMsgInstantiateContract, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a MsgInstantiateContract message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns MsgInstantiateContract + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + r: $protobuf.Reader | Uint8Array, + l?: number, + ): cosmwasm.wasm.v1beta1.MsgInstantiateContract; + } + + /** Properties of a MsgInstantiateContractResponse. */ + interface IMsgInstantiateContractResponse { + /** MsgInstantiateContractResponse address */ + address?: string | null; + } + + /** Represents a MsgInstantiateContractResponse. */ + class MsgInstantiateContractResponse implements IMsgInstantiateContractResponse { + /** + * Constructs a new MsgInstantiateContractResponse. + * @param [p] Properties to set + */ + constructor(p?: cosmwasm.wasm.v1beta1.IMsgInstantiateContractResponse); + + /** MsgInstantiateContractResponse address. */ + public address: string; + + /** + * Creates a new MsgInstantiateContractResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns MsgInstantiateContractResponse instance + */ + public static create( + properties?: cosmwasm.wasm.v1beta1.IMsgInstantiateContractResponse, + ): cosmwasm.wasm.v1beta1.MsgInstantiateContractResponse; + + /** + * Encodes the specified MsgInstantiateContractResponse message. Does not implicitly {@link cosmwasm.wasm.v1beta1.MsgInstantiateContractResponse.verify|verify} messages. + * @param m MsgInstantiateContractResponse message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: cosmwasm.wasm.v1beta1.IMsgInstantiateContractResponse, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a MsgInstantiateContractResponse message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns MsgInstantiateContractResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + r: $protobuf.Reader | Uint8Array, + l?: number, + ): cosmwasm.wasm.v1beta1.MsgInstantiateContractResponse; + } + + /** Properties of a MsgExecuteContract. */ + interface IMsgExecuteContract { + /** MsgExecuteContract sender */ + sender?: string | null; + + /** MsgExecuteContract contract */ + contract?: string | null; + + /** MsgExecuteContract msg */ + msg?: Uint8Array | null; + + /** MsgExecuteContract sentFunds */ + sentFunds?: cosmos.base.v1beta1.ICoin[] | null; + } + + /** Represents a MsgExecuteContract. */ + class MsgExecuteContract implements IMsgExecuteContract { + /** + * Constructs a new MsgExecuteContract. + * @param [p] Properties to set + */ + constructor(p?: cosmwasm.wasm.v1beta1.IMsgExecuteContract); + + /** MsgExecuteContract sender. */ + public sender: string; + + /** MsgExecuteContract contract. */ + public contract: string; + + /** MsgExecuteContract msg. */ + public msg: Uint8Array; + + /** MsgExecuteContract sentFunds. */ + public sentFunds: cosmos.base.v1beta1.ICoin[]; + + /** + * Creates a new MsgExecuteContract instance using the specified properties. + * @param [properties] Properties to set + * @returns MsgExecuteContract instance + */ + public static create( + properties?: cosmwasm.wasm.v1beta1.IMsgExecuteContract, + ): cosmwasm.wasm.v1beta1.MsgExecuteContract; + + /** + * Encodes the specified MsgExecuteContract message. Does not implicitly {@link cosmwasm.wasm.v1beta1.MsgExecuteContract.verify|verify} messages. + * @param m MsgExecuteContract message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: cosmwasm.wasm.v1beta1.IMsgExecuteContract, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a MsgExecuteContract message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns MsgExecuteContract + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + r: $protobuf.Reader | Uint8Array, + l?: number, + ): cosmwasm.wasm.v1beta1.MsgExecuteContract; + } + + /** Properties of a MsgExecuteContractResponse. */ + interface IMsgExecuteContractResponse { + /** MsgExecuteContractResponse data */ + data?: Uint8Array | null; + } + + /** Represents a MsgExecuteContractResponse. */ + class MsgExecuteContractResponse implements IMsgExecuteContractResponse { + /** + * Constructs a new MsgExecuteContractResponse. + * @param [p] Properties to set + */ + constructor(p?: cosmwasm.wasm.v1beta1.IMsgExecuteContractResponse); + + /** MsgExecuteContractResponse data. */ + public data: Uint8Array; + + /** + * Creates a new MsgExecuteContractResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns MsgExecuteContractResponse instance + */ + public static create( + properties?: cosmwasm.wasm.v1beta1.IMsgExecuteContractResponse, + ): cosmwasm.wasm.v1beta1.MsgExecuteContractResponse; + + /** + * Encodes the specified MsgExecuteContractResponse message. Does not implicitly {@link cosmwasm.wasm.v1beta1.MsgExecuteContractResponse.verify|verify} messages. + * @param m MsgExecuteContractResponse message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: cosmwasm.wasm.v1beta1.IMsgExecuteContractResponse, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a MsgExecuteContractResponse message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns MsgExecuteContractResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + r: $protobuf.Reader | Uint8Array, + l?: number, + ): cosmwasm.wasm.v1beta1.MsgExecuteContractResponse; + } + + /** Properties of a MsgMigrateContract. */ + interface IMsgMigrateContract { + /** MsgMigrateContract sender */ + sender?: string | null; + + /** MsgMigrateContract contract */ + contract?: string | null; + + /** MsgMigrateContract codeId */ + codeId?: Long | null; + + /** MsgMigrateContract migrateMsg */ + migrateMsg?: Uint8Array | null; + } + + /** Represents a MsgMigrateContract. */ + class MsgMigrateContract implements IMsgMigrateContract { + /** + * Constructs a new MsgMigrateContract. + * @param [p] Properties to set + */ + constructor(p?: cosmwasm.wasm.v1beta1.IMsgMigrateContract); + + /** MsgMigrateContract sender. */ + public sender: string; + + /** MsgMigrateContract contract. */ + public contract: string; + + /** MsgMigrateContract codeId. */ + public codeId: Long; + + /** MsgMigrateContract migrateMsg. */ + public migrateMsg: Uint8Array; + + /** + * Creates a new MsgMigrateContract instance using the specified properties. + * @param [properties] Properties to set + * @returns MsgMigrateContract instance + */ + public static create( + properties?: cosmwasm.wasm.v1beta1.IMsgMigrateContract, + ): cosmwasm.wasm.v1beta1.MsgMigrateContract; + + /** + * Encodes the specified MsgMigrateContract message. Does not implicitly {@link cosmwasm.wasm.v1beta1.MsgMigrateContract.verify|verify} messages. + * @param m MsgMigrateContract message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: cosmwasm.wasm.v1beta1.IMsgMigrateContract, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a MsgMigrateContract message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns MsgMigrateContract + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + r: $protobuf.Reader | Uint8Array, + l?: number, + ): cosmwasm.wasm.v1beta1.MsgMigrateContract; + } + + /** Properties of a MsgMigrateContractResponse. */ + interface IMsgMigrateContractResponse { + /** MsgMigrateContractResponse data */ + data?: Uint8Array | null; + } + + /** Represents a MsgMigrateContractResponse. */ + class MsgMigrateContractResponse implements IMsgMigrateContractResponse { + /** + * Constructs a new MsgMigrateContractResponse. + * @param [p] Properties to set + */ + constructor(p?: cosmwasm.wasm.v1beta1.IMsgMigrateContractResponse); + + /** MsgMigrateContractResponse data. */ + public data: Uint8Array; + + /** + * Creates a new MsgMigrateContractResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns MsgMigrateContractResponse instance + */ + public static create( + properties?: cosmwasm.wasm.v1beta1.IMsgMigrateContractResponse, + ): cosmwasm.wasm.v1beta1.MsgMigrateContractResponse; + + /** + * Encodes the specified MsgMigrateContractResponse message. Does not implicitly {@link cosmwasm.wasm.v1beta1.MsgMigrateContractResponse.verify|verify} messages. + * @param m MsgMigrateContractResponse message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: cosmwasm.wasm.v1beta1.IMsgMigrateContractResponse, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a MsgMigrateContractResponse message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns MsgMigrateContractResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + r: $protobuf.Reader | Uint8Array, + l?: number, + ): cosmwasm.wasm.v1beta1.MsgMigrateContractResponse; + } + + /** Properties of a MsgUpdateAdmin. */ + interface IMsgUpdateAdmin { + /** MsgUpdateAdmin sender */ + sender?: string | null; + + /** MsgUpdateAdmin newAdmin */ + newAdmin?: string | null; + + /** MsgUpdateAdmin contract */ + contract?: string | null; + } + + /** Represents a MsgUpdateAdmin. */ + class MsgUpdateAdmin implements IMsgUpdateAdmin { + /** + * Constructs a new MsgUpdateAdmin. + * @param [p] Properties to set + */ + constructor(p?: cosmwasm.wasm.v1beta1.IMsgUpdateAdmin); + + /** MsgUpdateAdmin sender. */ + public sender: string; + + /** MsgUpdateAdmin newAdmin. */ + public newAdmin: string; + + /** MsgUpdateAdmin contract. */ + public contract: string; + + /** + * Creates a new MsgUpdateAdmin instance using the specified properties. + * @param [properties] Properties to set + * @returns MsgUpdateAdmin instance + */ + public static create( + properties?: cosmwasm.wasm.v1beta1.IMsgUpdateAdmin, + ): cosmwasm.wasm.v1beta1.MsgUpdateAdmin; + + /** + * Encodes the specified MsgUpdateAdmin message. Does not implicitly {@link cosmwasm.wasm.v1beta1.MsgUpdateAdmin.verify|verify} messages. + * @param m MsgUpdateAdmin message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: cosmwasm.wasm.v1beta1.IMsgUpdateAdmin, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a MsgUpdateAdmin message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns MsgUpdateAdmin + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + r: $protobuf.Reader | Uint8Array, + l?: number, + ): cosmwasm.wasm.v1beta1.MsgUpdateAdmin; + } + + /** Properties of a MsgUpdateAdminResponse. */ + interface IMsgUpdateAdminResponse {} + + /** Represents a MsgUpdateAdminResponse. */ + class MsgUpdateAdminResponse implements IMsgUpdateAdminResponse { + /** + * Constructs a new MsgUpdateAdminResponse. + * @param [p] Properties to set + */ + constructor(p?: cosmwasm.wasm.v1beta1.IMsgUpdateAdminResponse); + + /** + * Creates a new MsgUpdateAdminResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns MsgUpdateAdminResponse instance + */ + public static create( + properties?: cosmwasm.wasm.v1beta1.IMsgUpdateAdminResponse, + ): cosmwasm.wasm.v1beta1.MsgUpdateAdminResponse; + + /** + * Encodes the specified MsgUpdateAdminResponse message. Does not implicitly {@link cosmwasm.wasm.v1beta1.MsgUpdateAdminResponse.verify|verify} messages. + * @param m MsgUpdateAdminResponse message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: cosmwasm.wasm.v1beta1.IMsgUpdateAdminResponse, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a MsgUpdateAdminResponse message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns MsgUpdateAdminResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + r: $protobuf.Reader | Uint8Array, + l?: number, + ): cosmwasm.wasm.v1beta1.MsgUpdateAdminResponse; + } + + /** Properties of a MsgClearAdmin. */ + interface IMsgClearAdmin { + /** MsgClearAdmin sender */ + sender?: string | null; + + /** MsgClearAdmin contract */ + contract?: string | null; + } + + /** Represents a MsgClearAdmin. */ + class MsgClearAdmin implements IMsgClearAdmin { + /** + * Constructs a new MsgClearAdmin. + * @param [p] Properties to set + */ + constructor(p?: cosmwasm.wasm.v1beta1.IMsgClearAdmin); + + /** MsgClearAdmin sender. */ + public sender: string; + + /** MsgClearAdmin contract. */ + public contract: string; + + /** + * Creates a new MsgClearAdmin instance using the specified properties. + * @param [properties] Properties to set + * @returns MsgClearAdmin instance + */ + public static create( + properties?: cosmwasm.wasm.v1beta1.IMsgClearAdmin, + ): cosmwasm.wasm.v1beta1.MsgClearAdmin; + + /** + * Encodes the specified MsgClearAdmin message. Does not implicitly {@link cosmwasm.wasm.v1beta1.MsgClearAdmin.verify|verify} messages. + * @param m MsgClearAdmin message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: cosmwasm.wasm.v1beta1.IMsgClearAdmin, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MsgClearAdmin message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns MsgClearAdmin + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + r: $protobuf.Reader | Uint8Array, + l?: number, + ): cosmwasm.wasm.v1beta1.MsgClearAdmin; + } + + /** Properties of a MsgClearAdminResponse. */ + interface IMsgClearAdminResponse {} + + /** Represents a MsgClearAdminResponse. */ + class MsgClearAdminResponse implements IMsgClearAdminResponse { + /** + * Constructs a new MsgClearAdminResponse. + * @param [p] Properties to set + */ + constructor(p?: cosmwasm.wasm.v1beta1.IMsgClearAdminResponse); + + /** + * Creates a new MsgClearAdminResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns MsgClearAdminResponse instance + */ + public static create( + properties?: cosmwasm.wasm.v1beta1.IMsgClearAdminResponse, + ): cosmwasm.wasm.v1beta1.MsgClearAdminResponse; + + /** + * Encodes the specified MsgClearAdminResponse message. Does not implicitly {@link cosmwasm.wasm.v1beta1.MsgClearAdminResponse.verify|verify} messages. + * @param m MsgClearAdminResponse message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: cosmwasm.wasm.v1beta1.IMsgClearAdminResponse, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a MsgClearAdminResponse message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns MsgClearAdminResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + r: $protobuf.Reader | Uint8Array, + l?: number, + ): cosmwasm.wasm.v1beta1.MsgClearAdminResponse; + } + /** AccessType enum. */ enum AccessType { ACCESS_TYPE_UNSPECIFIED = 0, @@ -2175,1940 +2669,6 @@ export namespace cosmwasm { } } -/** Namespace google. */ -export namespace google { - /** Namespace api. */ - namespace api { - /** Properties of a Http. */ - interface IHttp { - /** Http rules */ - rules?: google.api.IHttpRule[] | null; - } - - /** Represents a Http. */ - class Http implements IHttp { - /** - * Constructs a new Http. - * @param [p] Properties to set - */ - constructor(p?: google.api.IHttp); - - /** Http rules. */ - public rules: google.api.IHttpRule[]; - - /** - * Creates a new Http instance using the specified properties. - * @param [properties] Properties to set - * @returns Http instance - */ - public static create(properties?: google.api.IHttp): google.api.Http; - - /** - * Encodes the specified Http message. Does not implicitly {@link google.api.Http.verify|verify} messages. - * @param m Http message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: google.api.IHttp, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Http message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns Http - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(r: $protobuf.Reader | Uint8Array, l?: number): google.api.Http; - } - - /** Properties of a HttpRule. */ - interface IHttpRule { - /** HttpRule get */ - get?: string | null; - - /** HttpRule put */ - put?: string | null; - - /** HttpRule post */ - post?: string | null; - - /** HttpRule delete */ - delete?: string | null; - - /** HttpRule patch */ - patch?: string | null; - - /** HttpRule custom */ - custom?: google.api.ICustomHttpPattern | null; - - /** HttpRule selector */ - selector?: string | null; - - /** HttpRule body */ - body?: string | null; - - /** HttpRule additionalBindings */ - additionalBindings?: google.api.IHttpRule[] | null; - } - - /** Represents a HttpRule. */ - class HttpRule implements IHttpRule { - /** - * Constructs a new HttpRule. - * @param [p] Properties to set - */ - constructor(p?: google.api.IHttpRule); - - /** HttpRule get. */ - public get: string; - - /** HttpRule put. */ - public put: string; - - /** HttpRule post. */ - public post: string; - - /** HttpRule delete. */ - public delete: string; - - /** HttpRule patch. */ - public patch: string; - - /** HttpRule custom. */ - public custom?: google.api.ICustomHttpPattern | null; - - /** HttpRule selector. */ - public selector: string; - - /** HttpRule body. */ - public body: string; - - /** HttpRule additionalBindings. */ - public additionalBindings: google.api.IHttpRule[]; - - /** HttpRule pattern. */ - public pattern?: "get" | "put" | "post" | "delete" | "patch" | "custom"; - - /** - * Creates a new HttpRule instance using the specified properties. - * @param [properties] Properties to set - * @returns HttpRule instance - */ - public static create(properties?: google.api.IHttpRule): google.api.HttpRule; - - /** - * Encodes the specified HttpRule message. Does not implicitly {@link google.api.HttpRule.verify|verify} messages. - * @param m HttpRule message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: google.api.IHttpRule, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a HttpRule message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns HttpRule - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(r: $protobuf.Reader | Uint8Array, l?: number): google.api.HttpRule; - } - - /** Properties of a CustomHttpPattern. */ - interface ICustomHttpPattern { - /** CustomHttpPattern kind */ - kind?: string | null; - - /** CustomHttpPattern path */ - path?: string | null; - } - - /** Represents a CustomHttpPattern. */ - class CustomHttpPattern implements ICustomHttpPattern { - /** - * Constructs a new CustomHttpPattern. - * @param [p] Properties to set - */ - constructor(p?: google.api.ICustomHttpPattern); - - /** CustomHttpPattern kind. */ - public kind: string; - - /** CustomHttpPattern path. */ - public path: string; - - /** - * Creates a new CustomHttpPattern instance using the specified properties. - * @param [properties] Properties to set - * @returns CustomHttpPattern instance - */ - public static create(properties?: google.api.ICustomHttpPattern): google.api.CustomHttpPattern; - - /** - * Encodes the specified CustomHttpPattern message. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages. - * @param m CustomHttpPattern message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: google.api.ICustomHttpPattern, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a CustomHttpPattern message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns CustomHttpPattern - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(r: $protobuf.Reader | Uint8Array, l?: number): google.api.CustomHttpPattern; - } - } - - /** Namespace protobuf. */ - namespace protobuf { - /** Properties of a FileDescriptorSet. */ - interface IFileDescriptorSet { - /** FileDescriptorSet file */ - file?: google.protobuf.IFileDescriptorProto[] | null; - } - - /** Represents a FileDescriptorSet. */ - class FileDescriptorSet implements IFileDescriptorSet { - /** - * Constructs a new FileDescriptorSet. - * @param [p] Properties to set - */ - constructor(p?: google.protobuf.IFileDescriptorSet); - - /** FileDescriptorSet file. */ - public file: google.protobuf.IFileDescriptorProto[]; - - /** - * Creates a new FileDescriptorSet instance using the specified properties. - * @param [properties] Properties to set - * @returns FileDescriptorSet instance - */ - public static create( - properties?: google.protobuf.IFileDescriptorSet, - ): google.protobuf.FileDescriptorSet; - - /** - * Encodes the specified FileDescriptorSet message. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages. - * @param m FileDescriptorSet message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: google.protobuf.IFileDescriptorSet, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a FileDescriptorSet message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns FileDescriptorSet - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(r: $protobuf.Reader | Uint8Array, l?: number): google.protobuf.FileDescriptorSet; - } - - /** Properties of a FileDescriptorProto. */ - interface IFileDescriptorProto { - /** FileDescriptorProto name */ - name?: string | null; - - /** FileDescriptorProto package */ - package?: string | null; - - /** FileDescriptorProto dependency */ - dependency?: string[] | null; - - /** FileDescriptorProto publicDependency */ - publicDependency?: number[] | null; - - /** FileDescriptorProto weakDependency */ - weakDependency?: number[] | null; - - /** FileDescriptorProto messageType */ - messageType?: google.protobuf.IDescriptorProto[] | null; - - /** FileDescriptorProto enumType */ - enumType?: google.protobuf.IEnumDescriptorProto[] | null; - - /** FileDescriptorProto service */ - service?: google.protobuf.IServiceDescriptorProto[] | null; - - /** FileDescriptorProto extension */ - extension?: google.protobuf.IFieldDescriptorProto[] | null; - - /** FileDescriptorProto options */ - options?: google.protobuf.IFileOptions | null; - - /** FileDescriptorProto sourceCodeInfo */ - sourceCodeInfo?: google.protobuf.ISourceCodeInfo | null; - - /** FileDescriptorProto syntax */ - syntax?: string | null; - } - - /** Represents a FileDescriptorProto. */ - class FileDescriptorProto implements IFileDescriptorProto { - /** - * Constructs a new FileDescriptorProto. - * @param [p] Properties to set - */ - constructor(p?: google.protobuf.IFileDescriptorProto); - - /** FileDescriptorProto name. */ - public name: string; - - /** FileDescriptorProto package. */ - public package: string; - - /** FileDescriptorProto dependency. */ - public dependency: string[]; - - /** FileDescriptorProto publicDependency. */ - public publicDependency: number[]; - - /** FileDescriptorProto weakDependency. */ - public weakDependency: number[]; - - /** FileDescriptorProto messageType. */ - public messageType: google.protobuf.IDescriptorProto[]; - - /** FileDescriptorProto enumType. */ - public enumType: google.protobuf.IEnumDescriptorProto[]; - - /** FileDescriptorProto service. */ - public service: google.protobuf.IServiceDescriptorProto[]; - - /** FileDescriptorProto extension. */ - public extension: google.protobuf.IFieldDescriptorProto[]; - - /** FileDescriptorProto options. */ - public options?: google.protobuf.IFileOptions | null; - - /** FileDescriptorProto sourceCodeInfo. */ - public sourceCodeInfo?: google.protobuf.ISourceCodeInfo | null; - - /** FileDescriptorProto syntax. */ - public syntax: string; - - /** - * Creates a new FileDescriptorProto instance using the specified properties. - * @param [properties] Properties to set - * @returns FileDescriptorProto instance - */ - public static create( - properties?: google.protobuf.IFileDescriptorProto, - ): google.protobuf.FileDescriptorProto; - - /** - * Encodes the specified FileDescriptorProto message. Does not implicitly {@link google.protobuf.FileDescriptorProto.verify|verify} messages. - * @param m FileDescriptorProto message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: google.protobuf.IFileDescriptorProto, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a FileDescriptorProto message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns FileDescriptorProto - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(r: $protobuf.Reader | Uint8Array, l?: number): google.protobuf.FileDescriptorProto; - } - - /** Properties of a DescriptorProto. */ - interface IDescriptorProto { - /** DescriptorProto name */ - name?: string | null; - - /** DescriptorProto field */ - field?: google.protobuf.IFieldDescriptorProto[] | null; - - /** DescriptorProto extension */ - extension?: google.protobuf.IFieldDescriptorProto[] | null; - - /** DescriptorProto nestedType */ - nestedType?: google.protobuf.IDescriptorProto[] | null; - - /** DescriptorProto enumType */ - enumType?: google.protobuf.IEnumDescriptorProto[] | null; - - /** DescriptorProto extensionRange */ - extensionRange?: google.protobuf.DescriptorProto.IExtensionRange[] | null; - - /** DescriptorProto oneofDecl */ - oneofDecl?: google.protobuf.IOneofDescriptorProto[] | null; - - /** DescriptorProto options */ - options?: google.protobuf.IMessageOptions | null; - - /** DescriptorProto reservedRange */ - reservedRange?: google.protobuf.DescriptorProto.IReservedRange[] | null; - - /** DescriptorProto reservedName */ - reservedName?: string[] | null; - } - - /** Represents a DescriptorProto. */ - class DescriptorProto implements IDescriptorProto { - /** - * Constructs a new DescriptorProto. - * @param [p] Properties to set - */ - constructor(p?: google.protobuf.IDescriptorProto); - - /** DescriptorProto name. */ - public name: string; - - /** DescriptorProto field. */ - public field: google.protobuf.IFieldDescriptorProto[]; - - /** DescriptorProto extension. */ - public extension: google.protobuf.IFieldDescriptorProto[]; - - /** DescriptorProto nestedType. */ - public nestedType: google.protobuf.IDescriptorProto[]; - - /** DescriptorProto enumType. */ - public enumType: google.protobuf.IEnumDescriptorProto[]; - - /** DescriptorProto extensionRange. */ - public extensionRange: google.protobuf.DescriptorProto.IExtensionRange[]; - - /** DescriptorProto oneofDecl. */ - public oneofDecl: google.protobuf.IOneofDescriptorProto[]; - - /** DescriptorProto options. */ - public options?: google.protobuf.IMessageOptions | null; - - /** DescriptorProto reservedRange. */ - public reservedRange: google.protobuf.DescriptorProto.IReservedRange[]; - - /** DescriptorProto reservedName. */ - public reservedName: string[]; - - /** - * Creates a new DescriptorProto instance using the specified properties. - * @param [properties] Properties to set - * @returns DescriptorProto instance - */ - public static create(properties?: google.protobuf.IDescriptorProto): google.protobuf.DescriptorProto; - - /** - * Encodes the specified DescriptorProto message. Does not implicitly {@link google.protobuf.DescriptorProto.verify|verify} messages. - * @param m DescriptorProto message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: google.protobuf.IDescriptorProto, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a DescriptorProto message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns DescriptorProto - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(r: $protobuf.Reader | Uint8Array, l?: number): google.protobuf.DescriptorProto; - } - - namespace DescriptorProto { - /** Properties of an ExtensionRange. */ - interface IExtensionRange { - /** ExtensionRange start */ - start?: number | null; - - /** ExtensionRange end */ - end?: number | null; - } - - /** Represents an ExtensionRange. */ - class ExtensionRange implements IExtensionRange { - /** - * Constructs a new ExtensionRange. - * @param [p] Properties to set - */ - constructor(p?: google.protobuf.DescriptorProto.IExtensionRange); - - /** ExtensionRange start. */ - public start: number; - - /** ExtensionRange end. */ - public end: number; - - /** - * Creates a new ExtensionRange instance using the specified properties. - * @param [properties] Properties to set - * @returns ExtensionRange instance - */ - public static create( - properties?: google.protobuf.DescriptorProto.IExtensionRange, - ): google.protobuf.DescriptorProto.ExtensionRange; - - /** - * Encodes the specified ExtensionRange message. Does not implicitly {@link google.protobuf.DescriptorProto.ExtensionRange.verify|verify} messages. - * @param m ExtensionRange message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: google.protobuf.DescriptorProto.IExtensionRange, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes an ExtensionRange message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns ExtensionRange - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): google.protobuf.DescriptorProto.ExtensionRange; - } - - /** Properties of a ReservedRange. */ - interface IReservedRange { - /** ReservedRange start */ - start?: number | null; - - /** ReservedRange end */ - end?: number | null; - } - - /** Represents a ReservedRange. */ - class ReservedRange implements IReservedRange { - /** - * Constructs a new ReservedRange. - * @param [p] Properties to set - */ - constructor(p?: google.protobuf.DescriptorProto.IReservedRange); - - /** ReservedRange start. */ - public start: number; - - /** ReservedRange end. */ - public end: number; - - /** - * Creates a new ReservedRange instance using the specified properties. - * @param [properties] Properties to set - * @returns ReservedRange instance - */ - public static create( - properties?: google.protobuf.DescriptorProto.IReservedRange, - ): google.protobuf.DescriptorProto.ReservedRange; - - /** - * Encodes the specified ReservedRange message. Does not implicitly {@link google.protobuf.DescriptorProto.ReservedRange.verify|verify} messages. - * @param m ReservedRange message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: google.protobuf.DescriptorProto.IReservedRange, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a ReservedRange message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns ReservedRange - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): google.protobuf.DescriptorProto.ReservedRange; - } - } - - /** Properties of a FieldDescriptorProto. */ - interface IFieldDescriptorProto { - /** FieldDescriptorProto name */ - name?: string | null; - - /** FieldDescriptorProto number */ - number?: number | null; - - /** FieldDescriptorProto label */ - label?: google.protobuf.FieldDescriptorProto.Label | null; - - /** FieldDescriptorProto type */ - type?: google.protobuf.FieldDescriptorProto.Type | null; - - /** FieldDescriptorProto typeName */ - typeName?: string | null; - - /** FieldDescriptorProto extendee */ - extendee?: string | null; - - /** FieldDescriptorProto defaultValue */ - defaultValue?: string | null; - - /** FieldDescriptorProto oneofIndex */ - oneofIndex?: number | null; - - /** FieldDescriptorProto jsonName */ - jsonName?: string | null; - - /** FieldDescriptorProto options */ - options?: google.protobuf.IFieldOptions | null; - } - - /** Represents a FieldDescriptorProto. */ - class FieldDescriptorProto implements IFieldDescriptorProto { - /** - * Constructs a new FieldDescriptorProto. - * @param [p] Properties to set - */ - constructor(p?: google.protobuf.IFieldDescriptorProto); - - /** FieldDescriptorProto name. */ - public name: string; - - /** FieldDescriptorProto number. */ - public number: number; - - /** FieldDescriptorProto label. */ - public label: google.protobuf.FieldDescriptorProto.Label; - - /** FieldDescriptorProto type. */ - public type: google.protobuf.FieldDescriptorProto.Type; - - /** FieldDescriptorProto typeName. */ - public typeName: string; - - /** FieldDescriptorProto extendee. */ - public extendee: string; - - /** FieldDescriptorProto defaultValue. */ - public defaultValue: string; - - /** FieldDescriptorProto oneofIndex. */ - public oneofIndex: number; - - /** FieldDescriptorProto jsonName. */ - public jsonName: string; - - /** FieldDescriptorProto options. */ - public options?: google.protobuf.IFieldOptions | null; - - /** - * Creates a new FieldDescriptorProto instance using the specified properties. - * @param [properties] Properties to set - * @returns FieldDescriptorProto instance - */ - public static create( - properties?: google.protobuf.IFieldDescriptorProto, - ): google.protobuf.FieldDescriptorProto; - - /** - * Encodes the specified FieldDescriptorProto message. Does not implicitly {@link google.protobuf.FieldDescriptorProto.verify|verify} messages. - * @param m FieldDescriptorProto message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: google.protobuf.IFieldDescriptorProto, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a FieldDescriptorProto message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns FieldDescriptorProto - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): google.protobuf.FieldDescriptorProto; - } - - namespace FieldDescriptorProto { - /** Type enum. */ - enum Type { - TYPE_DOUBLE = 1, - TYPE_FLOAT = 2, - TYPE_INT64 = 3, - TYPE_UINT64 = 4, - TYPE_INT32 = 5, - TYPE_FIXED64 = 6, - TYPE_FIXED32 = 7, - TYPE_BOOL = 8, - TYPE_STRING = 9, - TYPE_GROUP = 10, - TYPE_MESSAGE = 11, - TYPE_BYTES = 12, - TYPE_UINT32 = 13, - TYPE_ENUM = 14, - TYPE_SFIXED32 = 15, - TYPE_SFIXED64 = 16, - TYPE_SINT32 = 17, - TYPE_SINT64 = 18, - } - - /** Label enum. */ - enum Label { - LABEL_OPTIONAL = 1, - LABEL_REQUIRED = 2, - LABEL_REPEATED = 3, - } - } - - /** Properties of an OneofDescriptorProto. */ - interface IOneofDescriptorProto { - /** OneofDescriptorProto name */ - name?: string | null; - - /** OneofDescriptorProto options */ - options?: google.protobuf.IOneofOptions | null; - } - - /** Represents an OneofDescriptorProto. */ - class OneofDescriptorProto implements IOneofDescriptorProto { - /** - * Constructs a new OneofDescriptorProto. - * @param [p] Properties to set - */ - constructor(p?: google.protobuf.IOneofDescriptorProto); - - /** OneofDescriptorProto name. */ - public name: string; - - /** OneofDescriptorProto options. */ - public options?: google.protobuf.IOneofOptions | null; - - /** - * Creates a new OneofDescriptorProto instance using the specified properties. - * @param [properties] Properties to set - * @returns OneofDescriptorProto instance - */ - public static create( - properties?: google.protobuf.IOneofDescriptorProto, - ): google.protobuf.OneofDescriptorProto; - - /** - * Encodes the specified OneofDescriptorProto message. Does not implicitly {@link google.protobuf.OneofDescriptorProto.verify|verify} messages. - * @param m OneofDescriptorProto message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: google.protobuf.IOneofDescriptorProto, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an OneofDescriptorProto message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns OneofDescriptorProto - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): google.protobuf.OneofDescriptorProto; - } - - /** Properties of an EnumDescriptorProto. */ - interface IEnumDescriptorProto { - /** EnumDescriptorProto name */ - name?: string | null; - - /** EnumDescriptorProto value */ - value?: google.protobuf.IEnumValueDescriptorProto[] | null; - - /** EnumDescriptorProto options */ - options?: google.protobuf.IEnumOptions | null; - } - - /** Represents an EnumDescriptorProto. */ - class EnumDescriptorProto implements IEnumDescriptorProto { - /** - * Constructs a new EnumDescriptorProto. - * @param [p] Properties to set - */ - constructor(p?: google.protobuf.IEnumDescriptorProto); - - /** EnumDescriptorProto name. */ - public name: string; - - /** EnumDescriptorProto value. */ - public value: google.protobuf.IEnumValueDescriptorProto[]; - - /** EnumDescriptorProto options. */ - public options?: google.protobuf.IEnumOptions | null; - - /** - * Creates a new EnumDescriptorProto instance using the specified properties. - * @param [properties] Properties to set - * @returns EnumDescriptorProto instance - */ - public static create( - properties?: google.protobuf.IEnumDescriptorProto, - ): google.protobuf.EnumDescriptorProto; - - /** - * Encodes the specified EnumDescriptorProto message. Does not implicitly {@link google.protobuf.EnumDescriptorProto.verify|verify} messages. - * @param m EnumDescriptorProto message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: google.protobuf.IEnumDescriptorProto, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an EnumDescriptorProto message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns EnumDescriptorProto - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(r: $protobuf.Reader | Uint8Array, l?: number): google.protobuf.EnumDescriptorProto; - } - - /** Properties of an EnumValueDescriptorProto. */ - interface IEnumValueDescriptorProto { - /** EnumValueDescriptorProto name */ - name?: string | null; - - /** EnumValueDescriptorProto number */ - number?: number | null; - - /** EnumValueDescriptorProto options */ - options?: google.protobuf.IEnumValueOptions | null; - } - - /** Represents an EnumValueDescriptorProto. */ - class EnumValueDescriptorProto implements IEnumValueDescriptorProto { - /** - * Constructs a new EnumValueDescriptorProto. - * @param [p] Properties to set - */ - constructor(p?: google.protobuf.IEnumValueDescriptorProto); - - /** EnumValueDescriptorProto name. */ - public name: string; - - /** EnumValueDescriptorProto number. */ - public number: number; - - /** EnumValueDescriptorProto options. */ - public options?: google.protobuf.IEnumValueOptions | null; - - /** - * Creates a new EnumValueDescriptorProto instance using the specified properties. - * @param [properties] Properties to set - * @returns EnumValueDescriptorProto instance - */ - public static create( - properties?: google.protobuf.IEnumValueDescriptorProto, - ): google.protobuf.EnumValueDescriptorProto; - - /** - * Encodes the specified EnumValueDescriptorProto message. Does not implicitly {@link google.protobuf.EnumValueDescriptorProto.verify|verify} messages. - * @param m EnumValueDescriptorProto message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: google.protobuf.IEnumValueDescriptorProto, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes an EnumValueDescriptorProto message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns EnumValueDescriptorProto - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): google.protobuf.EnumValueDescriptorProto; - } - - /** Properties of a ServiceDescriptorProto. */ - interface IServiceDescriptorProto { - /** ServiceDescriptorProto name */ - name?: string | null; - - /** ServiceDescriptorProto method */ - method?: google.protobuf.IMethodDescriptorProto[] | null; - - /** ServiceDescriptorProto options */ - options?: google.protobuf.IServiceOptions | null; - } - - /** Represents a ServiceDescriptorProto. */ - class ServiceDescriptorProto implements IServiceDescriptorProto { - /** - * Constructs a new ServiceDescriptorProto. - * @param [p] Properties to set - */ - constructor(p?: google.protobuf.IServiceDescriptorProto); - - /** ServiceDescriptorProto name. */ - public name: string; - - /** ServiceDescriptorProto method. */ - public method: google.protobuf.IMethodDescriptorProto[]; - - /** ServiceDescriptorProto options. */ - public options?: google.protobuf.IServiceOptions | null; - - /** - * Creates a new ServiceDescriptorProto instance using the specified properties. - * @param [properties] Properties to set - * @returns ServiceDescriptorProto instance - */ - public static create( - properties?: google.protobuf.IServiceDescriptorProto, - ): google.protobuf.ServiceDescriptorProto; - - /** - * Encodes the specified ServiceDescriptorProto message. Does not implicitly {@link google.protobuf.ServiceDescriptorProto.verify|verify} messages. - * @param m ServiceDescriptorProto message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: google.protobuf.IServiceDescriptorProto, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a ServiceDescriptorProto message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns ServiceDescriptorProto - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): google.protobuf.ServiceDescriptorProto; - } - - /** Properties of a MethodDescriptorProto. */ - interface IMethodDescriptorProto { - /** MethodDescriptorProto name */ - name?: string | null; - - /** MethodDescriptorProto inputType */ - inputType?: string | null; - - /** MethodDescriptorProto outputType */ - outputType?: string | null; - - /** MethodDescriptorProto options */ - options?: google.protobuf.IMethodOptions | null; - - /** MethodDescriptorProto clientStreaming */ - clientStreaming?: boolean | null; - - /** MethodDescriptorProto serverStreaming */ - serverStreaming?: boolean | null; - } - - /** Represents a MethodDescriptorProto. */ - class MethodDescriptorProto implements IMethodDescriptorProto { - /** - * Constructs a new MethodDescriptorProto. - * @param [p] Properties to set - */ - constructor(p?: google.protobuf.IMethodDescriptorProto); - - /** MethodDescriptorProto name. */ - public name: string; - - /** MethodDescriptorProto inputType. */ - public inputType: string; - - /** MethodDescriptorProto outputType. */ - public outputType: string; - - /** MethodDescriptorProto options. */ - public options?: google.protobuf.IMethodOptions | null; - - /** MethodDescriptorProto clientStreaming. */ - public clientStreaming: boolean; - - /** MethodDescriptorProto serverStreaming. */ - public serverStreaming: boolean; - - /** - * Creates a new MethodDescriptorProto instance using the specified properties. - * @param [properties] Properties to set - * @returns MethodDescriptorProto instance - */ - public static create( - properties?: google.protobuf.IMethodDescriptorProto, - ): google.protobuf.MethodDescriptorProto; - - /** - * Encodes the specified MethodDescriptorProto message. Does not implicitly {@link google.protobuf.MethodDescriptorProto.verify|verify} messages. - * @param m MethodDescriptorProto message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: google.protobuf.IMethodDescriptorProto, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a MethodDescriptorProto message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns MethodDescriptorProto - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): google.protobuf.MethodDescriptorProto; - } - - /** Properties of a FileOptions. */ - interface IFileOptions { - /** FileOptions javaPackage */ - javaPackage?: string | null; - - /** FileOptions javaOuterClassname */ - javaOuterClassname?: string | null; - - /** FileOptions javaMultipleFiles */ - javaMultipleFiles?: boolean | null; - - /** FileOptions javaGenerateEqualsAndHash */ - javaGenerateEqualsAndHash?: boolean | null; - - /** FileOptions javaStringCheckUtf8 */ - javaStringCheckUtf8?: boolean | null; - - /** FileOptions optimizeFor */ - optimizeFor?: google.protobuf.FileOptions.OptimizeMode | null; - - /** FileOptions goPackage */ - goPackage?: string | null; - - /** FileOptions ccGenericServices */ - ccGenericServices?: boolean | null; - - /** FileOptions javaGenericServices */ - javaGenericServices?: boolean | null; - - /** FileOptions pyGenericServices */ - pyGenericServices?: boolean | null; - - /** FileOptions deprecated */ - deprecated?: boolean | null; - - /** FileOptions ccEnableArenas */ - ccEnableArenas?: boolean | null; - - /** FileOptions objcClassPrefix */ - objcClassPrefix?: string | null; - - /** FileOptions csharpNamespace */ - csharpNamespace?: string | null; - - /** FileOptions uninterpretedOption */ - uninterpretedOption?: google.protobuf.IUninterpretedOption[] | null; - } - - /** Represents a FileOptions. */ - class FileOptions implements IFileOptions { - /** - * Constructs a new FileOptions. - * @param [p] Properties to set - */ - constructor(p?: google.protobuf.IFileOptions); - - /** FileOptions javaPackage. */ - public javaPackage: string; - - /** FileOptions javaOuterClassname. */ - public javaOuterClassname: string; - - /** FileOptions javaMultipleFiles. */ - public javaMultipleFiles: boolean; - - /** FileOptions javaGenerateEqualsAndHash. */ - public javaGenerateEqualsAndHash: boolean; - - /** FileOptions javaStringCheckUtf8. */ - public javaStringCheckUtf8: boolean; - - /** FileOptions optimizeFor. */ - public optimizeFor: google.protobuf.FileOptions.OptimizeMode; - - /** FileOptions goPackage. */ - public goPackage: string; - - /** FileOptions ccGenericServices. */ - public ccGenericServices: boolean; - - /** FileOptions javaGenericServices. */ - public javaGenericServices: boolean; - - /** FileOptions pyGenericServices. */ - public pyGenericServices: boolean; - - /** FileOptions deprecated. */ - public deprecated: boolean; - - /** FileOptions ccEnableArenas. */ - public ccEnableArenas: boolean; - - /** FileOptions objcClassPrefix. */ - public objcClassPrefix: string; - - /** FileOptions csharpNamespace. */ - public csharpNamespace: string; - - /** FileOptions uninterpretedOption. */ - public uninterpretedOption: google.protobuf.IUninterpretedOption[]; - - /** - * Creates a new FileOptions instance using the specified properties. - * @param [properties] Properties to set - * @returns FileOptions instance - */ - public static create(properties?: google.protobuf.IFileOptions): google.protobuf.FileOptions; - - /** - * Encodes the specified FileOptions message. Does not implicitly {@link google.protobuf.FileOptions.verify|verify} messages. - * @param m FileOptions message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: google.protobuf.IFileOptions, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a FileOptions message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns FileOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(r: $protobuf.Reader | Uint8Array, l?: number): google.protobuf.FileOptions; - } - - namespace FileOptions { - /** OptimizeMode enum. */ - enum OptimizeMode { - SPEED = 1, - CODE_SIZE = 2, - LITE_RUNTIME = 3, - } - } - - /** Properties of a MessageOptions. */ - interface IMessageOptions { - /** MessageOptions messageSetWireFormat */ - messageSetWireFormat?: boolean | null; - - /** MessageOptions noStandardDescriptorAccessor */ - noStandardDescriptorAccessor?: boolean | null; - - /** MessageOptions deprecated */ - deprecated?: boolean | null; - - /** MessageOptions mapEntry */ - mapEntry?: boolean | null; - - /** MessageOptions uninterpretedOption */ - uninterpretedOption?: google.protobuf.IUninterpretedOption[] | null; - } - - /** Represents a MessageOptions. */ - class MessageOptions implements IMessageOptions { - /** - * Constructs a new MessageOptions. - * @param [p] Properties to set - */ - constructor(p?: google.protobuf.IMessageOptions); - - /** MessageOptions messageSetWireFormat. */ - public messageSetWireFormat: boolean; - - /** MessageOptions noStandardDescriptorAccessor. */ - public noStandardDescriptorAccessor: boolean; - - /** MessageOptions deprecated. */ - public deprecated: boolean; - - /** MessageOptions mapEntry. */ - public mapEntry: boolean; - - /** MessageOptions uninterpretedOption. */ - public uninterpretedOption: google.protobuf.IUninterpretedOption[]; - - /** - * Creates a new MessageOptions instance using the specified properties. - * @param [properties] Properties to set - * @returns MessageOptions instance - */ - public static create(properties?: google.protobuf.IMessageOptions): google.protobuf.MessageOptions; - - /** - * Encodes the specified MessageOptions message. Does not implicitly {@link google.protobuf.MessageOptions.verify|verify} messages. - * @param m MessageOptions message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: google.protobuf.IMessageOptions, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a MessageOptions message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns MessageOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(r: $protobuf.Reader | Uint8Array, l?: number): google.protobuf.MessageOptions; - } - - /** Properties of a FieldOptions. */ - interface IFieldOptions { - /** FieldOptions ctype */ - ctype?: google.protobuf.FieldOptions.CType | null; - - /** FieldOptions packed */ - packed?: boolean | null; - - /** FieldOptions jstype */ - jstype?: google.protobuf.FieldOptions.JSType | null; - - /** FieldOptions lazy */ - lazy?: boolean | null; - - /** FieldOptions deprecated */ - deprecated?: boolean | null; - - /** FieldOptions weak */ - weak?: boolean | null; - - /** FieldOptions uninterpretedOption */ - uninterpretedOption?: google.protobuf.IUninterpretedOption[] | null; - } - - /** Represents a FieldOptions. */ - class FieldOptions implements IFieldOptions { - /** - * Constructs a new FieldOptions. - * @param [p] Properties to set - */ - constructor(p?: google.protobuf.IFieldOptions); - - /** FieldOptions ctype. */ - public ctype: google.protobuf.FieldOptions.CType; - - /** FieldOptions packed. */ - public packed: boolean; - - /** FieldOptions jstype. */ - public jstype: google.protobuf.FieldOptions.JSType; - - /** FieldOptions lazy. */ - public lazy: boolean; - - /** FieldOptions deprecated. */ - public deprecated: boolean; - - /** FieldOptions weak. */ - public weak: boolean; - - /** FieldOptions uninterpretedOption. */ - public uninterpretedOption: google.protobuf.IUninterpretedOption[]; - - /** - * Creates a new FieldOptions instance using the specified properties. - * @param [properties] Properties to set - * @returns FieldOptions instance - */ - public static create(properties?: google.protobuf.IFieldOptions): google.protobuf.FieldOptions; - - /** - * Encodes the specified FieldOptions message. Does not implicitly {@link google.protobuf.FieldOptions.verify|verify} messages. - * @param m FieldOptions message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: google.protobuf.IFieldOptions, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a FieldOptions message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns FieldOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(r: $protobuf.Reader | Uint8Array, l?: number): google.protobuf.FieldOptions; - } - - namespace FieldOptions { - /** CType enum. */ - enum CType { - STRING = 0, - CORD = 1, - STRING_PIECE = 2, - } - - /** JSType enum. */ - enum JSType { - JS_NORMAL = 0, - JS_STRING = 1, - JS_NUMBER = 2, - } - } - - /** Properties of an OneofOptions. */ - interface IOneofOptions { - /** OneofOptions uninterpretedOption */ - uninterpretedOption?: google.protobuf.IUninterpretedOption[] | null; - } - - /** Represents an OneofOptions. */ - class OneofOptions implements IOneofOptions { - /** - * Constructs a new OneofOptions. - * @param [p] Properties to set - */ - constructor(p?: google.protobuf.IOneofOptions); - - /** OneofOptions uninterpretedOption. */ - public uninterpretedOption: google.protobuf.IUninterpretedOption[]; - - /** - * Creates a new OneofOptions instance using the specified properties. - * @param [properties] Properties to set - * @returns OneofOptions instance - */ - public static create(properties?: google.protobuf.IOneofOptions): google.protobuf.OneofOptions; - - /** - * Encodes the specified OneofOptions message. Does not implicitly {@link google.protobuf.OneofOptions.verify|verify} messages. - * @param m OneofOptions message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: google.protobuf.IOneofOptions, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an OneofOptions message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns OneofOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(r: $protobuf.Reader | Uint8Array, l?: number): google.protobuf.OneofOptions; - } - - /** Properties of an EnumOptions. */ - interface IEnumOptions { - /** EnumOptions allowAlias */ - allowAlias?: boolean | null; - - /** EnumOptions deprecated */ - deprecated?: boolean | null; - - /** EnumOptions uninterpretedOption */ - uninterpretedOption?: google.protobuf.IUninterpretedOption[] | null; - } - - /** Represents an EnumOptions. */ - class EnumOptions implements IEnumOptions { - /** - * Constructs a new EnumOptions. - * @param [p] Properties to set - */ - constructor(p?: google.protobuf.IEnumOptions); - - /** EnumOptions allowAlias. */ - public allowAlias: boolean; - - /** EnumOptions deprecated. */ - public deprecated: boolean; - - /** EnumOptions uninterpretedOption. */ - public uninterpretedOption: google.protobuf.IUninterpretedOption[]; - - /** - * Creates a new EnumOptions instance using the specified properties. - * @param [properties] Properties to set - * @returns EnumOptions instance - */ - public static create(properties?: google.protobuf.IEnumOptions): google.protobuf.EnumOptions; - - /** - * Encodes the specified EnumOptions message. Does not implicitly {@link google.protobuf.EnumOptions.verify|verify} messages. - * @param m EnumOptions message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: google.protobuf.IEnumOptions, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an EnumOptions message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns EnumOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(r: $protobuf.Reader | Uint8Array, l?: number): google.protobuf.EnumOptions; - } - - /** Properties of an EnumValueOptions. */ - interface IEnumValueOptions { - /** EnumValueOptions deprecated */ - deprecated?: boolean | null; - - /** EnumValueOptions uninterpretedOption */ - uninterpretedOption?: google.protobuf.IUninterpretedOption[] | null; - } - - /** Represents an EnumValueOptions. */ - class EnumValueOptions implements IEnumValueOptions { - /** - * Constructs a new EnumValueOptions. - * @param [p] Properties to set - */ - constructor(p?: google.protobuf.IEnumValueOptions); - - /** EnumValueOptions deprecated. */ - public deprecated: boolean; - - /** EnumValueOptions uninterpretedOption. */ - public uninterpretedOption: google.protobuf.IUninterpretedOption[]; - - /** - * Creates a new EnumValueOptions instance using the specified properties. - * @param [properties] Properties to set - * @returns EnumValueOptions instance - */ - public static create(properties?: google.protobuf.IEnumValueOptions): google.protobuf.EnumValueOptions; - - /** - * Encodes the specified EnumValueOptions message. Does not implicitly {@link google.protobuf.EnumValueOptions.verify|verify} messages. - * @param m EnumValueOptions message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: google.protobuf.IEnumValueOptions, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an EnumValueOptions message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns EnumValueOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(r: $protobuf.Reader | Uint8Array, l?: number): google.protobuf.EnumValueOptions; - } - - /** Properties of a ServiceOptions. */ - interface IServiceOptions { - /** ServiceOptions deprecated */ - deprecated?: boolean | null; - - /** ServiceOptions uninterpretedOption */ - uninterpretedOption?: google.protobuf.IUninterpretedOption[] | null; - } - - /** Represents a ServiceOptions. */ - class ServiceOptions implements IServiceOptions { - /** - * Constructs a new ServiceOptions. - * @param [p] Properties to set - */ - constructor(p?: google.protobuf.IServiceOptions); - - /** ServiceOptions deprecated. */ - public deprecated: boolean; - - /** ServiceOptions uninterpretedOption. */ - public uninterpretedOption: google.protobuf.IUninterpretedOption[]; - - /** - * Creates a new ServiceOptions instance using the specified properties. - * @param [properties] Properties to set - * @returns ServiceOptions instance - */ - public static create(properties?: google.protobuf.IServiceOptions): google.protobuf.ServiceOptions; - - /** - * Encodes the specified ServiceOptions message. Does not implicitly {@link google.protobuf.ServiceOptions.verify|verify} messages. - * @param m ServiceOptions message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: google.protobuf.IServiceOptions, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ServiceOptions message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns ServiceOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(r: $protobuf.Reader | Uint8Array, l?: number): google.protobuf.ServiceOptions; - } - - /** Properties of a MethodOptions. */ - interface IMethodOptions { - /** MethodOptions deprecated */ - deprecated?: boolean | null; - - /** MethodOptions uninterpretedOption */ - uninterpretedOption?: google.protobuf.IUninterpretedOption[] | null; - - /** MethodOptions .google.api.http */ - ".google.api.http"?: google.api.IHttpRule | null; - } - - /** Represents a MethodOptions. */ - class MethodOptions implements IMethodOptions { - /** - * Constructs a new MethodOptions. - * @param [p] Properties to set - */ - constructor(p?: google.protobuf.IMethodOptions); - - /** MethodOptions deprecated. */ - public deprecated: boolean; - - /** MethodOptions uninterpretedOption. */ - public uninterpretedOption: google.protobuf.IUninterpretedOption[]; - - /** - * Creates a new MethodOptions instance using the specified properties. - * @param [properties] Properties to set - * @returns MethodOptions instance - */ - public static create(properties?: google.protobuf.IMethodOptions): google.protobuf.MethodOptions; - - /** - * Encodes the specified MethodOptions message. Does not implicitly {@link google.protobuf.MethodOptions.verify|verify} messages. - * @param m MethodOptions message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: google.protobuf.IMethodOptions, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a MethodOptions message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns MethodOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(r: $protobuf.Reader | Uint8Array, l?: number): google.protobuf.MethodOptions; - } - - /** Properties of an UninterpretedOption. */ - interface IUninterpretedOption { - /** UninterpretedOption name */ - name?: google.protobuf.UninterpretedOption.INamePart[] | null; - - /** UninterpretedOption identifierValue */ - identifierValue?: string | null; - - /** UninterpretedOption positiveIntValue */ - positiveIntValue?: Long | null; - - /** UninterpretedOption negativeIntValue */ - negativeIntValue?: Long | null; - - /** UninterpretedOption doubleValue */ - doubleValue?: number | null; - - /** UninterpretedOption stringValue */ - stringValue?: Uint8Array | null; - - /** UninterpretedOption aggregateValue */ - aggregateValue?: string | null; - } - - /** Represents an UninterpretedOption. */ - class UninterpretedOption implements IUninterpretedOption { - /** - * Constructs a new UninterpretedOption. - * @param [p] Properties to set - */ - constructor(p?: google.protobuf.IUninterpretedOption); - - /** UninterpretedOption name. */ - public name: google.protobuf.UninterpretedOption.INamePart[]; - - /** UninterpretedOption identifierValue. */ - public identifierValue: string; - - /** UninterpretedOption positiveIntValue. */ - public positiveIntValue: Long; - - /** UninterpretedOption negativeIntValue. */ - public negativeIntValue: Long; - - /** UninterpretedOption doubleValue. */ - public doubleValue: number; - - /** UninterpretedOption stringValue. */ - public stringValue: Uint8Array; - - /** UninterpretedOption aggregateValue. */ - public aggregateValue: string; - - /** - * Creates a new UninterpretedOption instance using the specified properties. - * @param [properties] Properties to set - * @returns UninterpretedOption instance - */ - public static create( - properties?: google.protobuf.IUninterpretedOption, - ): google.protobuf.UninterpretedOption; - - /** - * Encodes the specified UninterpretedOption message. Does not implicitly {@link google.protobuf.UninterpretedOption.verify|verify} messages. - * @param m UninterpretedOption message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: google.protobuf.IUninterpretedOption, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an UninterpretedOption message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns UninterpretedOption - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(r: $protobuf.Reader | Uint8Array, l?: number): google.protobuf.UninterpretedOption; - } - - namespace UninterpretedOption { - /** Properties of a NamePart. */ - interface INamePart { - /** NamePart namePart */ - namePart: string; - - /** NamePart isExtension */ - isExtension: boolean; - } - - /** Represents a NamePart. */ - class NamePart implements INamePart { - /** - * Constructs a new NamePart. - * @param [p] Properties to set - */ - constructor(p?: google.protobuf.UninterpretedOption.INamePart); - - /** NamePart namePart. */ - public namePart: string; - - /** NamePart isExtension. */ - public isExtension: boolean; - - /** - * Creates a new NamePart instance using the specified properties. - * @param [properties] Properties to set - * @returns NamePart instance - */ - public static create( - properties?: google.protobuf.UninterpretedOption.INamePart, - ): google.protobuf.UninterpretedOption.NamePart; - - /** - * Encodes the specified NamePart message. Does not implicitly {@link google.protobuf.UninterpretedOption.NamePart.verify|verify} messages. - * @param m NamePart message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: google.protobuf.UninterpretedOption.INamePart, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a NamePart message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns NamePart - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): google.protobuf.UninterpretedOption.NamePart; - } - } - - /** Properties of a SourceCodeInfo. */ - interface ISourceCodeInfo { - /** SourceCodeInfo location */ - location?: google.protobuf.SourceCodeInfo.ILocation[] | null; - } - - /** Represents a SourceCodeInfo. */ - class SourceCodeInfo implements ISourceCodeInfo { - /** - * Constructs a new SourceCodeInfo. - * @param [p] Properties to set - */ - constructor(p?: google.protobuf.ISourceCodeInfo); - - /** SourceCodeInfo location. */ - public location: google.protobuf.SourceCodeInfo.ILocation[]; - - /** - * Creates a new SourceCodeInfo instance using the specified properties. - * @param [properties] Properties to set - * @returns SourceCodeInfo instance - */ - public static create(properties?: google.protobuf.ISourceCodeInfo): google.protobuf.SourceCodeInfo; - - /** - * Encodes the specified SourceCodeInfo message. Does not implicitly {@link google.protobuf.SourceCodeInfo.verify|verify} messages. - * @param m SourceCodeInfo message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: google.protobuf.ISourceCodeInfo, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a SourceCodeInfo message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns SourceCodeInfo - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(r: $protobuf.Reader | Uint8Array, l?: number): google.protobuf.SourceCodeInfo; - } - - namespace SourceCodeInfo { - /** Properties of a Location. */ - interface ILocation { - /** Location path */ - path?: number[] | null; - - /** Location span */ - span?: number[] | null; - - /** Location leadingComments */ - leadingComments?: string | null; - - /** Location trailingComments */ - trailingComments?: string | null; - - /** Location leadingDetachedComments */ - leadingDetachedComments?: string[] | null; - } - - /** Represents a Location. */ - class Location implements ILocation { - /** - * Constructs a new Location. - * @param [p] Properties to set - */ - constructor(p?: google.protobuf.SourceCodeInfo.ILocation); - - /** Location path. */ - public path: number[]; - - /** Location span. */ - public span: number[]; - - /** Location leadingComments. */ - public leadingComments: string; - - /** Location trailingComments. */ - public trailingComments: string; - - /** Location leadingDetachedComments. */ - public leadingDetachedComments: string[]; - - /** - * Creates a new Location instance using the specified properties. - * @param [properties] Properties to set - * @returns Location instance - */ - public static create( - properties?: google.protobuf.SourceCodeInfo.ILocation, - ): google.protobuf.SourceCodeInfo.Location; - - /** - * Encodes the specified Location message. Does not implicitly {@link google.protobuf.SourceCodeInfo.Location.verify|verify} messages. - * @param m Location message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: google.protobuf.SourceCodeInfo.ILocation, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a Location message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns Location - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): google.protobuf.SourceCodeInfo.Location; - } - } - - /** Properties of a GeneratedCodeInfo. */ - interface IGeneratedCodeInfo { - /** GeneratedCodeInfo annotation */ - annotation?: google.protobuf.GeneratedCodeInfo.IAnnotation[] | null; - } - - /** Represents a GeneratedCodeInfo. */ - class GeneratedCodeInfo implements IGeneratedCodeInfo { - /** - * Constructs a new GeneratedCodeInfo. - * @param [p] Properties to set - */ - constructor(p?: google.protobuf.IGeneratedCodeInfo); - - /** GeneratedCodeInfo annotation. */ - public annotation: google.protobuf.GeneratedCodeInfo.IAnnotation[]; - - /** - * Creates a new GeneratedCodeInfo instance using the specified properties. - * @param [properties] Properties to set - * @returns GeneratedCodeInfo instance - */ - public static create( - properties?: google.protobuf.IGeneratedCodeInfo, - ): google.protobuf.GeneratedCodeInfo; - - /** - * Encodes the specified GeneratedCodeInfo message. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.verify|verify} messages. - * @param m GeneratedCodeInfo message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: google.protobuf.IGeneratedCodeInfo, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GeneratedCodeInfo message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns GeneratedCodeInfo - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(r: $protobuf.Reader | Uint8Array, l?: number): google.protobuf.GeneratedCodeInfo; - } - - namespace GeneratedCodeInfo { - /** Properties of an Annotation. */ - interface IAnnotation { - /** Annotation path */ - path?: number[] | null; - - /** Annotation sourceFile */ - sourceFile?: string | null; - - /** Annotation begin */ - begin?: number | null; - - /** Annotation end */ - end?: number | null; - } - - /** Represents an Annotation. */ - class Annotation implements IAnnotation { - /** - * Constructs a new Annotation. - * @param [p] Properties to set - */ - constructor(p?: google.protobuf.GeneratedCodeInfo.IAnnotation); - - /** Annotation path. */ - public path: number[]; - - /** Annotation sourceFile. */ - public sourceFile: string; - - /** Annotation begin. */ - public begin: number; - - /** Annotation end. */ - public end: number; - - /** - * Creates a new Annotation instance using the specified properties. - * @param [properties] Properties to set - * @returns Annotation instance - */ - public static create( - properties?: google.protobuf.GeneratedCodeInfo.IAnnotation, - ): google.protobuf.GeneratedCodeInfo.Annotation; - - /** - * Encodes the specified Annotation message. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.Annotation.verify|verify} messages. - * @param m Annotation message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: google.protobuf.GeneratedCodeInfo.IAnnotation, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes an Annotation message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns Annotation - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): google.protobuf.GeneratedCodeInfo.Annotation; - } - } - } -} - /** Namespace cosmos. */ export namespace cosmos { /** Namespace base. */